Content inside supertokenslib
(The raw file follows this syntax highlighted file.)
(()=>{function O(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function x(e){return function t(r){return arguments.length===0||O(r)?t:e.apply(this,arguments)}}function g(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return O(r)?t:x(function(o){return e(r,o)});default:return O(r)&&O(n)?t:O(r)?x(function(o){return e(o,n)}):O(n)?x(function(o){return e(r,o)}):e(r,n)}}}function gt(e,t){e=e||[],t=t||[];var r,n=e.length,o=t.length,a=[];for(r=0;r<n;)a[a.length]=e[r],r+=1;for(r=0;r<o;)a[a.length]=t[r],r+=1;return a}function X(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,o){return t.apply(this,arguments)};case 4:return function(r,n,o,a){return t.apply(this,arguments)};case 5:return function(r,n,o,a,u){return t.apply(this,arguments)};case 6:return function(r,n,o,a,u,s){return t.apply(this,arguments)};case 7:return function(r,n,o,a,u,s,i){return t.apply(this,arguments)};case 8:return function(r,n,o,a,u,s,i,c){return t.apply(this,arguments)};case 9:return function(r,n,o,a,u,s,i,c,f){return t.apply(this,arguments)};case 10:return function(r,n,o,a,u,s,i,c,f,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function kt(e,t,r){return function(){for(var n=[],o=0,a=e,u=0,s=!1;u<t.length||o<arguments.length;){var i;u<t.length&&(!O(t[u])||o>=arguments.length)?i=t[u]:(i=arguments[o],o+=1),n[u]=i,O(i)?s=!0:a-=1,u+=1}return!s&&a<=0?r.apply(this,n):X(Math.max(0,a),kt(e,n,r))}}var Gr=g(function(t,r){return t===1?x(r):X(t,kt(t,[],r))}),V=Gr;function z(e){return function t(r,n,o){switch(arguments.length){case 0:return t;case 1:return O(r)?t:g(function(a,u){return e(r,a,u)});case 2:return O(r)&&O(n)?t:O(r)?g(function(a,u){return e(a,n,u)}):O(n)?g(function(a,u){return e(r,a,u)}):x(function(a){return e(r,n,a)});default:return O(r)&&O(n)&&O(o)?t:O(r)&&O(n)?g(function(a,u){return e(a,u,o)}):O(r)&&O(o)?g(function(a,u){return e(a,n,u)}):O(n)&&O(o)?g(function(a,u){return e(r,a,u)}):O(r)?x(function(a){return e(a,n,o)}):O(n)?x(function(a){return e(r,a,o)}):O(o)?x(function(a){return e(r,n,a)}):e(r,n,o)}}}var E=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Kt(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function tt(e,t,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!E(n)){for(var o=0;o<e.length;){if(typeof n[e[o]]=="function")return n[e[o]].apply(n,Array.prototype.slice.call(arguments,0,-1));o+=1}if(Kt(n)){var a=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(n)}}return r.apply(this,arguments)}}var H={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function Tt(e){for(var t=[],r;!(r=e.next()).done;)t.push(r.value);return t}function Rt(e,t,r){for(var n=0,o=r.length;n<o;){if(e(t,r[n]))return!0;n+=1}return!1}function Jt(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function M(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Xr(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Xr;var We=Object.prototype.toString,tn=function(){return We.call(arguments)==="[object Arguments]"?function(t){return We.call(t)==="[object Arguments]"}:function(t){return M("callee",t)}}(),jt=tn;var en=!{toString:null}.propertyIsEnumerable("toString"),$e=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Fe=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),rn=function(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1},nn=typeof Object.keys=="function"&&!Fe?x(function(t){return Object(t)!==t?[]:Object.keys(t)}):x(function(t){if(Object(t)!==t)return[];var r,n,o=[],a=Fe&&jt(t);for(r in t)M(r,t)&&(!a||r!=="length")&&(o[o.length]=r);if(en)for(n=$e.length-1;n>=0;)r=$e[n],M(r,t)&&!rn(o,r)&&(o[o.length]=r),n-=1;return o}),N=nn;var on=x(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),Yt=on;function Ve(e,t,r,n){var o=Tt(e),a=Tt(t);function u(s,i){return yt(s,i,r.slice(),n.slice())}return!Rt(function(s,i){return!Rt(u,i,s)},a,o)}function yt(e,t,r,n){if(Ct(e,t))return!0;var o=Yt(e);if(o!==Yt(t))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&Jt(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&Ct(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!Ct(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size!==t.size?!1:Ve(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size!==t.size?!1:Ve(e.values(),t.values(),r.concat([e]),n.concat([t]));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=N(e);if(u.length!==N(t).length)return!1;var s=r.concat([e]),i=n.concat([t]);for(a=u.length-1;a>=0;){var c=u[a];if(!(M(c,t)&&yt(t[c],e[c],s,i)))return!1;a-=1}return!0}var an=g(function(t,r){return yt(t,r,[],[])}),Q=an;function Gt(e,t,r){var n,o;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(n=1/t;r<e.length;){if(o=e[r],o===0&&1/o===n)return r;r+=1}return-1}else if(t!==t){for(;r<e.length;){if(o=e[r],typeof o=="number"&&o!==o)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(t===null)return e.indexOf(t,r)}for(;r<e.length;){if(Q(e[r],t))return r;r+=1}return-1}function vt(e,t){return Gt(t,e,0)>=0}function et(e,t){for(var r=0,n=t.length,o=Array(n);r<n;)o[r]=e(t[r]),r+=1;return o}function xt(e){var t=e.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'"'+t.replace(/"/g,'\\"')+'"'}var _t=function(t){return(t<10?"0":"")+t},un=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+_t(t.getUTCMonth()+1)+"-"+_t(t.getUTCDate())+"T"+_t(t.getUTCHours())+":"+_t(t.getUTCMinutes())+":"+_t(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},ze=un;function Xt(e){return function(){return!e.apply(this,arguments)}}function L(e,t,r){for(var n=0,o=r.length;n<o;)t=e(t,r[n]),n+=1;return t}function te(e,t){for(var r=0,n=t.length,o=[];r<n;)e(t[r])&&(o[o.length]=t[r]),r+=1;return o}function wt(e){return Object.prototype.toString.call(e)==="[object Object]"}var sn=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=H.init,e.prototype["@@transducer/result"]=H.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e}();function ee(e){return function(t){return new sn(e,t)}}var fn=g(tt(["fantasy-land/filter","filter"],ee,function(e,t){return wt(t)?L(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{},N(t)):te(e,t)})),He=fn;var ln=g(function(t,r){return He(Xt(t),r)}),Qe=ln;function Et(e,t){var r=function(u){var s=t.concat([e]);return vt(u,s)?"<Circular>":Et(u,s)},n=function(a,u){return et(function(s){return xt(s)+": "+r(a[s])},u.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+et(r,e).join(", ")+"))";case"[object Array]":return"["+et(r,e).concat(n(e,Qe(function(a){return/^\d+$/.test(a)},N(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):xt(ze(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+r(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return typeof e=="object"?"new String("+r(e.valueOf())+")":xt(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var o=e.toString();if(o!=="[object Object]")return o}return"{"+n(e,N(e)).join(", ")+"}"}}var cn=x(function(t){return Et(t,[])}),re=cn;var pn=g(function(t,r){if(t===r)return r;function n(i,c){if(i>c!=c>i)return c>i?c:i}var o=n(t,r);if(o!==void 0)return o;var a=n(typeof t,typeof r);if(a!==void 0)return a===typeof t?t:r;var u=re(t),s=n(u,re(r));return s!==void 0&&s===u?t:r}),Mt=pn;var dn=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=H.init,e.prototype["@@transducer/result"]=H.result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e}(),mn=function(t){return function(r){return new dn(t,r)}},Ze=mn;var hn=g(tt(["fantasy-land/map","map"],Ze,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return V(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return L(function(n,o){return n[o]=t(r[o]),n},{},N(r));default:return et(t,r)}})),B=hn;var U=Number.isInteger||function(t){return t<<0===t};function rt(e){return Object.prototype.toString.call(e)==="[object String]"}var gn=g(function(t,r){var n=t<0?r.length+t:t;return rt(r)?r.charAt(n):r[n]}),Ke=gn;var yn=g(function(t,r){if(r!=null)return U(t)?Ke(t,r):r[t]}),Je=yn;var vn=g(function(t,r){return B(Je(t),r)}),Nt=vn;var xn=x(function(t){return E(t)?!0:!t||typeof t!="object"||rt(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),Ye=xn;var Ge=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function bt(e,t,r){return function(o,a,u){if(Ye(u))return e(o,a,u);if(u==null)return a;if(typeof u["fantasy-land/reduce"]=="function")return t(o,a,u,"fantasy-land/reduce");if(u[Ge]!=null)return r(o,a,u[Ge]());if(typeof u.next=="function")return r(o,a,u);if(typeof u.reduce=="function")return t(o,a,u,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ne(e,t,r){for(var n=0,o=r.length;n<o;){if(t=e["@@transducer/step"](t,r[n]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var _n=g(function(t,r){return X(t.length,function(){return t.apply(r,arguments)})}),Xe=_n;function wn(e,t,r){for(var n=r.next();!n.done;){if(t=e["@@transducer/step"](t,n.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function bn(e,t,r,n){return e["@@transducer/result"](r[n](Xe(e["@@transducer/step"],e),t))}var In=bt(ne,bn,wn),tr=In;var On=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function oe(e){return new On(e)}var Sn=z(function(e,t,r){return tr(typeof e=="function"?oe(e):e,t,r)}),Bt=Sn;var An=x(function(t){return V(Bt(Mt,0,Nt("length",t)),function(){for(var r=0,n=t.length;r<n;){if(!t[r].apply(this,arguments))return!1;r+=1}return!0})}),ae=An;var Pn=x(function(t){return V(Bt(Mt,0,Nt("length",t)),function(){for(var r=0,n=t.length;r<n;){if(t[r].apply(this,arguments))return!0;r+=1}return!1})}),ie=Pn;function kn(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Tn(e,t,r,n){return r[n](e,t)}var Rn=bt(L,Tn,kn),er=Rn;var Cn=g(function(t,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(r):typeof t=="function"?function(n){return t(n)(r(n))}:er(function(n,o){return gt(n,B(o,r))},[],t)}),rr=Cn;var jn=g(function(t,r){return gt(r,[t])}),ue=jn;function se(e,t,r){if(U(e)&&E(r)){var n=[].concat(r);return n[e]=t,n}var o={};for(var a in r)o[a]=r[a];return o[e]=t,o}var En=x(function(t){return t==null}),nt=En;var Mn=z(function e(t,r,n){if(t.length===0)return r;var o=t[0];if(t.length>1){var a=!nt(n)&&M(o,n)&&typeof n[o]=="object"?n[o]:U(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,a)}return se(o,r,n)}),nr=Mn;var Nn=z(function(t,r,n){return nr([t],r,n)}),or=Nn;var Bn=g(function(t,r){var n=V(t,r);return V(t,function(){return L(rr,B(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),ar=Bn;var Dn=x(function(t){return ar(t.length,t)}),ir=Dn;var Ln=x(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}),fe=Ln;var qn=x(function(t){return!t}),ur=qn;var Un=ir(ur),le=Un;function ce(e){return e}var Wn=x(ce),ot=Wn;var $n=z(function(t,r,n){var o=Array.prototype.slice.call(n,0);return o.splice(t,r),o}),sr=$n;function pe(e,t){if(t==null)return t;if(U(e)&&E(t))return sr(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}function Fn(e,t){if(U(e)&&E(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}var Vn=g(function e(t,r){if(r==null)return r;switch(t.length){case 0:return r;case 1:return pe(t[0],r);default:var n=t[0],o=Array.prototype.slice.call(t,1);return r[n]==null?Fn(n,r):or(n,e(o,r[n]),r)}}),fr=Vn;var zn=g(function(t,r){return fr([t],r)}),de=zn;function me(e){var t=Object.prototype.toString.call(e);return t==="[object Uint8ClampedArray]"||t==="[object Int8Array]"||t==="[object Uint8Array]"||t==="[object Int16Array]"||t==="[object Uint16Array]"||t==="[object Int32Array]"||t==="[object Uint32Array]"||t==="[object Float32Array]"||t==="[object Float64Array]"||t==="[object BigInt64Array]"||t==="[object BigUint64Array]"}var Hn=x(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():E(t)?[]:rt(t)?"":wt(t)?{}:jt(t)?function(){return arguments}():me(t)?t.constructor.from(""):void 0}),lr=Hn;var Qn=g(vt),Dt=Qn;function Zn(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,n=arguments.length;r<n;){var o=arguments[r];if(o!=null)for(var a in o)M(a,o)&&(t[a]=o[a]);r+=1}return t}var Lt=typeof Object.assign=="function"?Object.assign:Zn;var Kn=g(function(t,r){return r instanceof t||r!=null&&(r.constructor===t||t.name==="Object"&&typeof r=="object")}),he=Kn;var Jn=x(function(t){return t!=null&&Q(t,lr(t))}),qt=Jn;var Yn=x(function(t){return!nt(t)}),ge=Yn;var Gn=g(function(t,r){return L(function(n,o){return n[o]=t(r[o],o,r),n},{},N(r))}),Ut=Gn;var Xn=g(function(t,r){return Lt({},r,t)}),Wt=Xn;var to=g(function(t,r){return Lt({},t,r)}),st=to;var eo=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=H.init,e.prototype["@@transducer/result"]=H.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r),this.xf["@@transducer/step"](t,r)},e}();function ye(e){return function(t){return new eo(e,t)}}var ro=g(tt([],ye,function(t,r){return t(r),r})),ft=ro;var gr={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},we={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},oo=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],$t={CSS:{},springs:{}};function W(e,t,r){return Math.min(Math.max(e,t),r)}function It(e,t){return e.indexOf(t)>-1}function ve(e,t){return e.apply(null,t)}var p={arr:function(e){return Array.isArray(e)},obj:function(e){return It(Object.prototype.toString.call(e),"Object")},pth:function(e){return p.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||p.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return p.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return p.hex(e)||p.rgb(e)||p.hsl(e)},key:function(e){return!gr.hasOwnProperty(e)&&!we.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function yr(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(r){return parseFloat(r)}):[]}function vr(e,t){var r=yr(e),n=W(p.und(r[0])?1:r[0],.1,100),o=W(p.und(r[1])?100:r[1],.1,100),a=W(p.und(r[2])?10:r[2],.1,100),u=W(p.und(r[3])?0:r[3],.1,100),s=Math.sqrt(o/n),i=a/(2*Math.sqrt(o*n)),c=i<1?s*Math.sqrt(1-i*i):0,f=1,l=i<1?(i*s+-u)/c:-u+s;function m(_){var d=t?t*_/1e3:_;return i<1?d=Math.exp(-d*i*s)*(f*Math.cos(c*d)+l*Math.sin(c*d)):d=(f+l*d)*Math.exp(-d*s),_===0||_===1?_:1-d}function A(){var _=$t.springs[e];if(_)return _;for(var d=1/6,y=0,S=0;;)if(y+=d,m(y)===1){if(S++,S>=16)break}else S=0;var R=y*d*1e3;return $t.springs[e]=R,R}return t?m:A}function ao(e){return e===void 0&&(e=10),function(t){return Math.ceil(W(t,1e-6,1)*e)*(1/e)}}var io=function(){var e=11,t=1/(e-1);function r(f,l){return 1-3*l+3*f}function n(f,l){return 3*l-6*f}function o(f){return 3*f}function a(f,l,m){return((r(l,m)*f+n(l,m))*f+o(l))*f}function u(f,l,m){return 3*r(l,m)*f*f+2*n(l,m)*f+o(l)}function s(f,l,m,A,_){var d,y,S=0;do y=l+(m-l)/2,d=a(y,A,_)-f,d>0?m=y:l=y;while(Math.abs(d)>1e-7&&++S<10);return y}function i(f,l,m,A){for(var _=0;_<4;++_){var d=u(l,m,A);if(d===0)return l;var y=a(l,m,A)-f;l-=y/d}return l}function c(f,l,m,A){if(!(0<=f&&f<=1&&0<=m&&m<=1))return;var _=new Float32Array(e);if(f!==l||m!==A)for(var d=0;d<e;++d)_[d]=a(d*t,f,m);function y(S){for(var R=0,h=1,v=e-1;h!==v&&_[h]<=S;++h)R+=t;--h;var C=(S-_[h])/(_[h+1]-_[h]),j=R+C*t,I=u(j,f,m);return I>=.001?i(S,j,f,m):I===0?j:s(S,R,R+t,f,m)}return function(S){return f===l&&m===A||S===0||S===1?S:a(y(S),l,A)}}return c}(),xr=function(){var e={linear:function(){return function(n){return n}}},t={Sine:function(){return function(n){return 1-Math.cos(n*Math.PI/2)}},Circ:function(){return function(n){return 1-Math.sqrt(1-n*n)}},Back:function(){return function(n){return n*n*(3*n-2)}},Bounce:function(){return function(n){for(var o,a=4;n<((o=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((o*3-2)/22-n,2)}},Elastic:function(n,o){n===void 0&&(n=1),o===void 0&&(o=.5);var a=W(n,1,10),u=W(o,.1,2);return function(s){return s===0||s===1?s:-a*Math.pow(2,10*(s-1))*Math.sin((s-1-u/(Math.PI*2)*Math.asin(1/a))*(Math.PI*2)/u)}}},r=["Quad","Cubic","Quart","Quint","Expo"];return r.forEach(function(n,o){t[n]=function(){return function(a){return Math.pow(a,o+2)}}}),Object.keys(t).forEach(function(n){var o=t[n];e["easeIn"+n]=o,e["easeOut"+n]=function(a,u){return function(s){return 1-o(a,u)(1-s)}},e["easeInOut"+n]=function(a,u){return function(s){return s<.5?o(a,u)(s*2)/2:1-o(a,u)(s*-2+2)/2}},e["easeOutIn"+n]=function(a,u){return function(s){return s<.5?(1-o(a,u)(1-s*2))/2:(o(a,u)(s*2-1)+1)/2}}}),e}();function be(e,t){if(p.fnc(e))return e;var r=e.split("(")[0],n=xr[r],o=yr(e);switch(r){case"spring":return vr(e,t);case"cubicBezier":return ve(io,o);case"steps":return ve(ao,o);default:return ve(n,o)}}function _r(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function Ft(e,t){for(var r=e.length,n=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<r;a++)if(a in e){var u=e[a];t.call(n,u,a,e)&&o.push(u)}return o}function Vt(e){return e.reduce(function(t,r){return t.concat(p.arr(r)?Vt(r):r)},[])}function cr(e){return p.arr(e)?e:(p.str(e)&&(e=_r(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Ie(e,t){return e.some(function(r){return r===t})}function Oe(e){var t={};for(var r in e)t[r]=e[r];return t}function xe(e,t){var r=Oe(e);for(var n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function zt(e,t){var r=Oe(e);for(var n in t)r[n]=p.und(e[n])?t[n]:e[n];return r}function uo(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function so(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=e.replace(t,function(s,i,c,f){return i+i+c+c+f+f}),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),o=parseInt(n[1],16),a=parseInt(n[2],16),u=parseInt(n[3],16);return"rgba("+o+","+a+","+u+",1)"}function fo(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(t[1],10)/360,n=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[4]||1;function u(m,A,_){return _<0&&(_+=1),_>1&&(_-=1),_<1/6?m+(A-m)*6*_:_<1/2?A:_<2/3?m+(A-m)*(2/3-_)*6:m}var s,i,c;if(n==0)s=i=c=o;else{var f=o<.5?o*(1+n):o+n-o*n,l=2*o-f;s=u(l,f,r+1/3),i=u(l,f,r),c=u(l,f,r-1/3)}return"rgba("+s*255+","+i*255+","+c*255+","+a+")"}function lo(e){if(p.rgb(e))return uo(e);if(p.hex(e))return so(e);if(p.hsl(e))return fo(e)}function Z(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function co(e){if(It(e,"translate")||e==="perspective")return"px";if(It(e,"rotate")||It(e,"skew"))return"deg"}function _e(e,t){return p.fnc(e)?e(t.target,t.id,t.total):e}function $(e,t){return e.getAttribute(t)}function Se(e,t,r){var n=Z(t);if(Ie([r,"deg","rad","turn"],n))return t;var o=$t.CSS[t+r];if(!p.und(o))return o;var a=100,u=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(u),u.style.position="absolute",u.style.width=a+r;var i=a/u.offsetWidth;s.removeChild(u);var c=i*parseFloat(t);return $t.CSS[t+r]=c,c}function wr(e,t,r){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return r?Se(e,o,r):o}}function Ae(e,t){if(p.dom(e)&&!p.inp(e)&&(!p.nil($(e,t))||p.svg(e)&&e[t]))return"attribute";if(p.dom(e)&&Ie(oo,t))return"transform";if(p.dom(e)&&t!=="transform"&&wr(e,t))return"css";if(e[t]!=null)return"object"}function br(e){if(p.dom(e)){for(var t=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,n=new Map,o;o=r.exec(t);)n.set(o[1],o[2]);return n}}function po(e,t,r,n){var o=It(t,"scale")?1:0+co(t),a=br(e).get(t)||o;return r&&(r.transforms.list.set(t,a),r.transforms.last=t),n?Se(e,a,n):a}function Pe(e,t,r,n){switch(Ae(e,t)){case"transform":return po(e,t,n,r);case"css":return wr(e,t,r);case"attribute":return $(e,t);default:return e[t]||0}}function ke(e,t){var r=/^(\*=|\+=|-=)/.exec(e);if(!r)return e;var n=Z(e)||0,o=parseFloat(t),a=parseFloat(e.replace(r[0],""));switch(r[0][0]){case"+":return o+a+n;case"-":return o-a+n;case"*":return o*a+n}}function Ir(e,t){if(p.col(e))return lo(e);if(/\s/g.test(e))return e;var r=Z(e),n=r?e.substr(0,e.length-r.length):e;return t?n+t:n}function Te(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function mo(e){return Math.PI*2*$(e,"r")}function ho(e){return $(e,"width")*2+$(e,"height")*2}function go(e){return Te({x:$(e,"x1"),y:$(e,"y1")},{x:$(e,"x2"),y:$(e,"y2")})}function Or(e){for(var t=e.points,r=0,n,o=0;o<t.numberOfItems;o++){var a=t.getItem(o);o>0&&(r+=Te(n,a)),n=a}return r}function yo(e){var t=e.points;return Or(e)+Te(t.getItem(t.numberOfItems-1),t.getItem(0))}function Sr(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return mo(e);case"rect":return ho(e);case"line":return go(e);case"polyline":return Or(e);case"polygon":return yo(e)}}function vo(e){var t=Sr(e);return e.setAttribute("stroke-dasharray",t),t}function xo(e){for(var t=e.parentNode;p.svg(t)&&p.svg(t.parentNode);)t=t.parentNode;return t}function Ar(e,t){var r=t||{},n=r.el||xo(e),o=n.getBoundingClientRect(),a=$(n,"viewBox"),u=o.width,s=o.height,i=r.viewBox||(a?a.split(" "):[0,0,u,s]);return{el:n,viewBox:i,x:i[0]/1,y:i[1]/1,w:u,h:s,vW:i[2],vH:i[3]}}function _o(e,t){var r=p.str(e)?_r(e)[0]:e,n=t||100;return function(o){return{property:o,el:r,svg:Ar(r),totalLength:Sr(r)*(n/100)}}}function wo(e,t,r){function n(f){f===void 0&&(f=0);var l=t+f>=1?t+f:0;return e.el.getPointAtLength(l)}var o=Ar(e.el,e.svg),a=n(),u=n(-1),s=n(1),i=r?1:o.w/o.vW,c=r?1:o.h/o.vH;switch(e.property){case"x":return(a.x-o.x)*i;case"y":return(a.y-o.y)*c;case"angle":return Math.atan2(s.y-u.y,s.x-u.x)*180/Math.PI}}function pr(e,t){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=Ir(p.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(r)?n.match(r).map(Number):[0],strings:p.str(e)||t?n.split(r):[]}}function Re(e){var t=e?Vt(p.arr(e)?e.map(cr):cr(e)):[];return Ft(t,function(r,n,o){return o.indexOf(r)===n})}function Pr(e){var t=Re(e);return t.map(function(r,n){return{target:r,id:n,total:t.length,transforms:{list:br(r)}}})}function bo(e,t){var r=Oe(t);if(/^spring/.test(r.easing)&&(r.duration=vr(r.easing)),p.arr(e)){var n=e.length,o=n===2&&!p.obj(e[0]);o?e={value:e}:p.fnc(t.duration)||(r.duration=t.duration/n)}var a=p.arr(e)?e:[e];return a.map(function(u,s){var i=p.obj(u)&&!p.pth(u)?u:{value:u};return p.und(i.delay)&&(i.delay=s?0:t.delay),p.und(i.endDelay)&&(i.endDelay=s===a.length-1?t.endDelay:0),i}).map(function(u){return zt(u,r)})}function Io(e){for(var t=Ft(Vt(e.map(function(a){return Object.keys(a)})),function(a){return p.key(a)}).reduce(function(a,u){return a.indexOf(u)<0&&a.push(u),a},[]),r={},n=function(a){var u=t[a];r[u]=e.map(function(s){var i={};for(var c in s)p.key(c)?c==u&&(i.value=s[c]):i[c]=s[c];return i})},o=0;o<t.length;o++)n(o);return r}function Oo(e,t){var r=[],n=t.keyframes;n&&(t=zt(Io(n),t));for(var o in t)p.key(o)&&r.push({name:o,tweens:bo(t[o],e)});return r}function So(e,t){var r={};for(var n in e){var o=_e(e[n],t);p.arr(o)&&(o=o.map(function(a){return _e(a,t)}),o.length===1&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function Ao(e,t){var r;return e.tweens.map(function(n){var o=So(n,t),a=o.value,u=p.arr(a)?a[1]:a,s=Z(u),i=Pe(t.target,e.name,s,t),c=r?r.to.original:i,f=p.arr(a)?a[0]:c,l=Z(f)||Z(i),m=s||l;return p.und(u)&&(u=c),o.from=pr(f,m),o.to=pr(ke(u,f),m),o.start=r?r.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=be(o.easing,o.duration),o.isPath=p.pth(a),o.isPathTargetInsideSVG=o.isPath&&p.svg(t.target),o.isColor=p.col(o.from.original),o.isColor&&(o.round=1),r=o,o})}var kr={css:function(e,t,r){return e.style[t]=r},attribute:function(e,t,r){return e.setAttribute(t,r)},object:function(e,t,r){return e[t]=r},transform:function(e,t,r,n,o){if(n.list.set(t,r),t===n.last||o){var a="";n.list.forEach(function(u,s){a+=s+"("+u+") "}),e.style.transform=a}}};function Tr(e,t){var r=Pr(e);r.forEach(function(n){for(var o in t){var a=_e(t[o],n),u=n.target,s=Z(a),i=Pe(u,o,s,n),c=s||Z(i),f=ke(Ir(a,c),i),l=Ae(u,o);kr[l](u,o,f,n.transforms,!0)}})}function Po(e,t){var r=Ae(e.target,t.name);if(r){var n=Ao(t,e),o=n[n.length-1];return{type:r,property:t.name,animatable:e,tweens:n,duration:o.end,delay:n[0].delay,endDelay:o.endDelay}}}function ko(e,t){return Ft(Vt(e.map(function(r){return t.map(function(n){return Po(r,n)})})),function(r){return!p.und(r)})}function Rr(e,t){var r=e.length,n=function(a){return a.timelineOffset?a.timelineOffset:0},o={};return o.duration=r?Math.max.apply(Math,e.map(function(a){return n(a)+a.duration})):t.duration,o.delay=r?Math.min.apply(Math,e.map(function(a){return n(a)+a.delay})):t.delay,o.endDelay=r?o.duration-Math.max.apply(Math,e.map(function(a){return n(a)+a.duration-a.endDelay})):t.endDelay,o}var dr=0;function To(e){var t=xe(gr,e),r=xe(we,e),n=Oo(r,e),o=Pr(e.targets),a=ko(o,n),u=Rr(a,r),s=dr;return dr++,zt(t,{id:s,children:[],animatables:o,animations:a,duration:u.duration,delay:u.delay,endDelay:u.endDelay})}var q=[],Cr=function(){var e;function t(){!e&&(!mr()||!T.suspendWhenDocumentHidden)&&q.length>0&&(e=requestAnimationFrame(r))}function r(o){for(var a=q.length,u=0;u<a;){var s=q[u];s.paused?(q.splice(u,1),a--):(s.tick(o),u++)}e=u>0?requestAnimationFrame(r):void 0}function n(){T.suspendWhenDocumentHidden&&(mr()?e=cancelAnimationFrame(e):(q.forEach(function(o){return o._onDocumentVisibility()}),Cr()))}return typeof document<"u"&&document.addEventListener("visibilitychange",n),t}();function mr(){return!!document&&document.hidden}function T(e){e===void 0&&(e={});var t=0,r=0,n=0,o,a=0,u=null;function s(h){var v=window.Promise&&new Promise(function(C){return u=C});return h.finished=v,v}var i=To(e),c=s(i);function f(){var h=i.direction;h!=="alternate"&&(i.direction=h!=="normal"?"normal":"reverse"),i.reversed=!i.reversed,o.forEach(function(v){return v.reversed=i.reversed})}function l(h){return i.reversed?i.duration-h:h}function m(){t=0,r=l(i.currentTime)*(1/T.speed)}function A(h,v){v&&v.seek(h-v.timelineOffset)}function _(h){if(i.reversePlayback)for(var C=a;C--;)A(h,o[C]);else for(var v=0;v<a;v++)A(h,o[v])}function d(h){for(var v=0,C=i.animations,j=C.length;v<j;){var I=C[v],G=I.animatable,F=I.tweens,K=F.length-1,k=F[K];K&&(k=Ft(F,function(Yr){return h<Yr.end})[0]||k);for(var b=W(h-k.start-k.delay,0,k.duration)/k.duration,w=isNaN(b)?1:k.easing(b),J=k.to.strings,at=k.round,it=[],Jr=k.to.numbers.length,ut=void 0,dt=0;dt<Jr;dt++){var mt=void 0,De=k.to.numbers[dt],Le=k.from.numbers[dt]||0;k.isPath?mt=wo(k.value,w*De,k.isPathTargetInsideSVG):mt=Le+w*(De-Le),at&&(k.isColor&&dt>2||(mt=Math.round(mt*at)/at)),it.push(mt)}var qe=J.length;if(!qe)ut=it[0];else{ut=J[0];for(var ht=0;ht<qe;ht++){var Zo=J[ht],Ue=J[ht+1],Zt=it[ht];isNaN(Zt)||(Ue?ut+=Zt+Ue:ut+=Zt+" ")}}kr[I.type](G.target,I.property,ut,G.transforms),I.currentValue=ut,v++}}function y(h){i[h]&&!i.passThrough&&i[h](i)}function S(){i.remaining&&i.remaining!==!0&&i.remaining--}function R(h){var v=i.duration,C=i.delay,j=v-i.endDelay,I=l(h);i.progress=W(I/v*100,0,100),i.reversePlayback=I<i.currentTime,o&&_(I),!i.began&&i.currentTime>0&&(i.began=!0,y("begin")),!i.loopBegan&&i.currentTime>0&&(i.loopBegan=!0,y("loopBegin")),I<=C&&i.currentTime!==0&&d(0),(I>=j&&i.currentTime!==v||!v)&&d(v),I>C&&I<j?(i.changeBegan||(i.changeBegan=!0,i.changeCompleted=!1,y("changeBegin")),y("change"),d(I)):i.changeBegan&&(i.changeCompleted=!0,i.changeBegan=!1,y("changeComplete")),i.currentTime=W(I,0,v),i.began&&y("update"),h>=v&&(r=0,S(),i.remaining?(t=n,y("loopComplete"),i.loopBegan=!1,i.direction==="alternate"&&f()):(i.paused=!0,i.completed||(i.completed=!0,y("loopComplete"),y("complete"),!i.passThrough&&"Promise"in window&&(u(),c=s(i)))))}return i.reset=function(){var h=i.direction;i.passThrough=!1,i.currentTime=0,i.progress=0,i.paused=!0,i.began=!1,i.loopBegan=!1,i.changeBegan=!1,i.completed=!1,i.changeCompleted=!1,i.reversePlayback=!1,i.reversed=h==="reverse",i.remaining=i.loop,o=i.children,a=o.length;for(var v=a;v--;)i.children[v].reset();(i.reversed&&i.loop!==!0||h==="alternate"&&i.loop===1)&&i.remaining++,d(i.reversed?i.duration:0)},i._onDocumentVisibility=m,i.set=function(h,v){return Tr(h,v),i},i.tick=function(h){n=h,t||(t=n),R((n+(r-t))*T.speed)},i.seek=function(h){R(l(h))},i.pause=function(){i.paused=!0,m()},i.play=function(){i.paused&&(i.completed&&i.reset(),i.paused=!1,q.push(i),m(),Cr())},i.reverse=function(){f(),i.completed=!i.reversed,m()},i.restart=function(){i.reset(),i.play()},i.remove=function(h){var v=Re(h);jr(v,i)},i.reset(),i.autoplay&&i.play(),i}function hr(e,t){for(var r=t.length;r--;)Ie(e,t[r].animatable.target)&&t.splice(r,1)}function jr(e,t){var r=t.animations,n=t.children;hr(e,r);for(var o=n.length;o--;){var a=n[o],u=a.animations;hr(e,u),!u.length&&!a.children.length&&n.splice(o,1)}!r.length&&!n.length&&t.pause()}function Ro(e){for(var t=Re(e),r=q.length;r--;){var n=q[r];jr(t,n)}}function Co(e,t){t===void 0&&(t={});var r=t.direction||"normal",n=t.easing?be(t.easing):null,o=t.grid,a=t.axis,u=t.from||0,s=u==="first",i=u==="center",c=u==="last",f=p.arr(e),l=parseFloat(f?e[0]:e),m=f?parseFloat(e[1]):0,A=Z(f?e[1]:e)||0,_=t.start||0+(f?l:0),d=[],y=0;return function(S,R,h){if(s&&(u=0),i&&(u=(h-1)/2),c&&(u=h-1),!d.length){for(var v=0;v<h;v++){if(!o)d.push(Math.abs(u-v));else{var C=i?(o[0]-1)/2:u%o[0],j=i?(o[1]-1)/2:Math.floor(u/o[0]),I=v%o[0],G=Math.floor(v/o[0]),F=C-I,K=j-G,k=Math.sqrt(F*F+K*K);a==="x"&&(k=-F),a==="y"&&(k=-K),d.push(k)}y=Math.max.apply(Math,d)}n&&(d=d.map(function(w){return n(w/y)*y})),r==="reverse"&&(d=d.map(function(w){return a?w<0?w*-1:-w:Math.abs(y-w)}))}var b=f?(m-l)/y:l;return _+b*(Math.round(d[R]*100)/100)+A}}function jo(e){e===void 0&&(e={});var t=T(e);return t.duration=0,t.add=function(r,n){var o=q.indexOf(t),a=t.children;o>-1&&q.splice(o,1);function u(m){m.passThrough=!0}for(var s=0;s<a.length;s++)u(a[s]);var i=zt(r,xe(we,e));i.targets=i.targets||e.targets;var c=t.duration;i.autoplay=!1,i.direction=t.direction,i.timelineOffset=p.und(n)?c:ke(n,c),u(t),t.seek(i.timelineOffset);var f=T(i);u(f),a.push(f);var l=Rr(a,e);return t.delay=l.delay,t.endDelay=l.endDelay,t.duration=l.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}T.version="3.2.1";T.speed=1;T.suspendWhenDocumentHidden=!0;T.running=q;T.remove=Ro;T.get=Pe;T.set=Tr;T.convertPx=Se;T.path=_o;T.setDashoffset=vo;T.stagger=Co;T.timeline=jo;T.easing=be;T.penner=xr;T.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var lt=T;var Nr=0,Br=Object.create(null),Eo=["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 e of Eo)for(let t of["-webkit-","-ms-","-moz-","-o-",""])Br[t+e]=!0;function Ce(e,t){return e.replace(/&/g,t)}function Er(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).replace(/^ms-/,"-ms-")}function Mo(e){let t=5381,r=e.length;for(;r--;)t=t*33^e.charCodeAt(r);return(t>>>0).toString(36)}function No(e,t){return e.indexOf("&")===-1?`${t} ${e}`:Ce(e,t)}function Mr(e,t){return e[0]>t[0]?1:e[0]<t[0]?-1:e[2]-t[2]}function Bo([e,t]){return typeof t=="number"&&t&&!Br[e]?`${e}:${t}px`:`${e}:${String(t)}`}function Dr(e,t,r,n,o){let a=[],u=[];for(let d of Object.keys(n)){let y=n[d];if(d.charCodeAt(0)!==36&&y!=null)if(Array.isArray(y)){let S=Er(d);for(let R=0;R<y.length;R++){let h=y[R];h!=null&&a.push([S,h,R])}}else typeof y=="object"?u.push([d,y,0]):a.push([Er(d),y,0])}let s=!!n.$unique,i=n.$global?"":o,c=i?u:u.sort(Mr),f=a.sort(Mr).map(Bo).join(";"),l=f,m=i,A=e,_=t;r.charCodeAt(0)===64?(A=[],_=[],i&&f&&_.push({selector:m,style:f,isUnique:s}),e.push({selector:r,rules:A,styles:_,style:i?"":f})):(m=i?r?No(r,i):i:r,f&&t.push({selector:m,style:f,isUnique:s}));for(let[d,y]of c)l+=`|${d}#${Dr(A,_,d,y,m)}`;return l}function Lr(e,t,r,n,o){for(let{selector:a,style:u,isUnique:s}of r){let i=Ce(a,o),c=new Ee(u,s?(++Nr).toString(36):n);c.add(new je(i)),e.add(c)}for(let{selector:a,style:u,rules:s,styles:i}of t){let c=Ce(a,o),f=new Me(c,u,n);Lr(f,s,i,n,o),e.add(f)}}function qr(e){let t="";for(let r=0;r<e.length;r++)t+=e[r];return t}var Ot=class e{constructor(t){this.changes=t,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(t){let r=t.id,n=this._counters[r]||0,o=this._children[r]||t.clone();if(this._counters[r]=n+1,n===0)this._children[r]=o,this._keys.push(r),this.sheet.push(o.getStyles()),this.changeId++,this.changes&&this.changes.add(o,this._keys.length-1);else if(o instanceof e&&t instanceof e){let a=o.changeId;if(o.merge(t),o.changeId!==a){let u=this._keys.indexOf(r);this.sheet.splice(u,1,o.getStyles()),this.changeId++,this.changes&&this.changes.change(o,u,u)}}}remove(t){let r=t.id,n=this._counters[r];if(n){this._counters[r]=n-1;let o=this._children[r],a=this._keys.indexOf(r);if(n===1)delete this._counters[r],delete this._children[r],this._keys.splice(a,1),this.sheet.splice(a,1),this.changeId++,this.changes&&this.changes.remove(o,a);else if(o instanceof e&&t instanceof e){let u=o.changeId;o.unmerge(t),o.changeId!==u&&(this.sheet.splice(a,1,o.getStyles()),this.changeId++,this.changes&&this.changes.change(o,a,a))}}}values(){return this._keys.map(t=>this._children[t])}merge(t){for(let r of t.values())this.add(r);return this}unmerge(t){for(let r of t.values())this.remove(r);return this}clone(){return new e().merge(this)}},je=class{constructor(t){this.selector=t}get id(){return`k:${this.selector}`}getStyles(){return this.selector}clone(){return this}},Ee=class e extends Ot{constructor(t,r){super(),this.style=t,this.pid=r}get id(){return`s:${this.pid}:${this.style}`}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new e(this.style,this.pid).merge(this)}},Me=class e extends Ot{constructor(t,r,n){super(),this.rule=t,this.style=r,this.pid=n}get id(){return`r:${this.pid}:${this.rule}:${this.style}`}getStyles(){return`${this.rule}{${this.style}${qr(this.sheet)}}`}clone(){return new e(this.rule,this.style,this.pid).merge(this)}},Ne=class e extends Ot{constructor(t,r){super(r),this.id=t}registerStyle(t){let r=[],n=[],o=Dr(r,n,"",t,".&"),a=`f${Mo(o)}`;return Lr(this,r,n,a,a),a}getStyles(){return qr(this.sheet)}clone(){return new e(this.id,this.changes).merge(this)}};function Ur(e){return new Ne(`f${(++Nr).toString(36)}`,e)}var ct=ae([ge,le(qt)]),Wr=ie([nt,qt]),Do=(e,...t)=>{let r=e,n=t;return{state:()=>r,setState:o=>{Q(r,o)||(r=o,B(fe,n))},subscribe:o=>n=ue(o,n)}},St=document,Be=e=>St.createElement(e),Lo=e=>St.createTextNode(e),qo=e=>St.head.appendChild(e),Qr=e=>St.body.appendChild(e),Y="st"+crypto.randomUUID(),Uo=ft(e=>{Wr(e[Y].added)&&Wr(e[Y].removed)||new MutationObserver((t,r)=>B(n=>{Dt(e,n.addedNodes)&&ct(e[Y].added)&&e[Y].added(e),Dt(e,n.removedNodes)&&ct(e[Y].removed)&&(r.disconnect(),e[Y].removed(e))})(t)).observe(window.document,{childList:!0,subtree:!0})}),P=(e,t,...r)=>{let n=Be(e);return Ut((o,a)=>n[a]=o,de("lifecycle",t)),n[Y]={},Ut((o,a)=>n[Y][a]=o,t.lifecycle),B(o=>{o&&n.appendChild(he(String,o)?Lo(o):o)},r),Uo(n)},pt=e=>St.getElementById(e),$r=e=>pt(e).value,Ht=e=>pt(e).disabled=!0,Fr=e=>{ct(pt(e))&&pt(e).offsetParent!=null&&pt(e).focus()},At=e=>"{{.Cfg.SuperTokensWebLibBase}}"+e,Pt=e=>{let t=Be("script");t.setAttribute("src",e),t.async=!1,Qr(t)};Pt(At("/website.js"));Pt(At("/supertokens.js"));Pt(At("/session.js"));Pt(At("/passwordless.js"));Pt(At("/emailverification.js"));var D=e=>{let t=Ur(),r=t.registerStyle(e),n=Be("style");return n.textContent=t.getStyles(),qo(n),r},Wo=D({boxSizing:"border-box",position:"absolute",top:"12px",right:"12px",zIndex:999,display:"flex",alignItems:"flex-end",flexDirection:"column"}),$o=D({backgroundColor:"white",minWidth:"10em",display:"flex",flexDirection:"column",border:"black solid 1px",paddingTop:"4px",div:{minHeight:"10px",marginBottom:"4px"}}),Zr={padding:"4px",cursor:"pointer",marginLeft:"12px",fontVariant:"small-caps"},$f=D(Zr),Qt=D(st(Zr,{marginLeft:"0px",paddingLeft:"12px",display:"inline-block",width:"calc(100% - 16px)","&:hover":{backgroundColor:"#e6e6e6"}})),Fo=D({width:"32px",height:"32px",padding:"4px",border:0,cursor:"pointer",borderRadius:"16px",marginLeft:"12px"}),Vo=D({width:"24px",height:"24px"}),Vr=D({display:"flex",flexDirection:"column",padding:"4px",backgroundColor:"white",input:{marginBottom:"10px"}}),zr=D({textAlign:"center"}),zo=D({opacity:"0%"}),Hr=D({marginTop:"10px"}),Kr={display:"flex",alignItems:"center"},Ff=D(Kr),Ho=D(st(Kr,{width:"32px",height:"32px",justifyContent:"center"})),Qo=e=>()=>{lt({targets:e,opacity:["0%","100%"],duration:1e3,easing:"easeInOutQuad",complete:()=>{lt({targets:e,opacity:["100%","0%"],duration:1e3,delay:2e3,easing:"easeInOutQuad",complete:()=>{lt.remove(e)}})}})};window.onload=()=>{let e=Q("{{.Cfg.PlainUI}}","true"),t=b=>"{{.Cfg.APIBasePath}}"+b,r=()=>Q("{{.LoggedIn}}","true"),n=()=>"{{.UserEmail}}",o=()=>"{{.UserID}}",a="st"+crypto.randomUUID(),u=Do({init:!0,label:"...",stState:"init",showMenu:!1,menuItems:[]}),s=(b,w)=>b.setState(A(st(b.state(),w))),i=b=>w=>{(w.key==="Enter"||w.keyCode===13)&&b()},c=()=>{globalThis.stAuth.sendOTP($r(a+"email")),Ht(a+"email"),Ht(a+"emailButton")},f=()=>{globalThis.stAuth.verifyOTP($r(a+"otp")),Ht(a+"otp"),Ht(a+"otpButton")},l=()=>{u.setState(st(u.state(),{stState:"init",displayState:m.init()})),I.state("loggedOut")},m={init:()=>null,enterEmail:()=>P("div",{className:Vr},P("input",{id:a+"email",type:"text",placeholder:"your.email@address.com",onkeyup:i(c),className:zr}),P("button",{id:a+"emailButton",onclick:c},"Request one-time code"),P("button",{className:Hr,onclick:l},"Close")),enterOTP:()=>P("div",{className:Vr},P("input",{id:a+"otp",type:"text",placeholder:"One-time code",onkeyup:i(f),className:zr}),P("button",{id:a+"otpButton",onclick:f},"Verify code"),P("button",{className:Hr,onclick:l},"Close")),showEmail:()=>e?null:P("div",{className:Ho},P("div",{id:a+"userEmail",className:zo},n()),P("button",{className:Fo,onclick:Qo("#"+a+"userEmail")},P("img",{className:Vo,src:r()?t("/person_outline.svg"):null})))},A=b=>({init:ot,loggedOut:ot,checkEmail:Wt({displayState:m.enterOTP()}),wrongOTP:ot,oldOTP:ot,failedOTP:ot,signUpSuccess:ft(()=>window.location.reload()),signInSuccess:ft(()=>window.location.reload()),loggedIn:Wt({displayState:m.showEmail()}),logoutCompleted:ft(()=>window.location.reload())})[b.stState](b),_=()=>{r()||l(),s(u,{showMenu:!u.state().showMenu})},d=()=>s(u,{showMenu:!1}),y=()=>{d(),u.state().stState==="loggedOut"?s(u,{displayState:m.enterEmail()}):u.state().stState==="loggedIn"&&globalThis.stAuth.logout()},S=null,R=b=>{ct(S)&&!S.contains(b.target)&&d()},h=b=>{S=b,document.removeEventListener("click",R,!0)},v=b=>{S=b,h(b),document.addEventListener("click",R,!0)},C=b=>s(u,{menuItems:B(([w,J])=>P("div",{},P("a",{href:"#",className:Qt,onclick:()=>{d(),J()}},w)),b)}),j=()=>P("div",{id:a,className:Wo,style:"opacity:"+(u.state().stState=="init"?0:100)+"%;background:rgba(0,0,0,0)",onmouseleave:d,lifecycle:{added:v,removed:h}},P("button",{style:"width:32px;height:32px;padding:0;border:0;background-color:white;cursor:pointer",onclick:_},P("img",{style:"width:32px;height:32px",src:t("/menu.svg")})),u.state().displayState,u.state().showMenu?P("div",{className:$o},r()?null:P("div",{},P("a",{href:"#",className:Qt,onclick:y},"login")),r()?P("div",{className:Qt,style:"cursor:default;font-variant:normal"},n()):null,...u.state().menuItems,r()?P("div",{},P("a",{href:"#",className:Qt,onclick:y},"logout")):null):null);u.subscribe(()=>{pt(a).replaceWith(j()),Fr(a+"email"),Fr(a+"otp")}),Qr(j());let I={catch:(b,w)=>showError(b,w),state:(b,w)=>s(u,{stState:b,stData:w})},G=(b,w)=>I.catch(b+(w.isSuperTokensGeneralError?" (some other failure)":""),w);supertokens.init({appInfo:{apiDomain:"{{.Cfg.APIDomain}}",apiBasePath:"{{.Cfg.APIBasePath}}",appName:"{{.Cfg.AppName}}"},recipeList:[supertokensEmailVerification.init(),supertokensSession.init(),supertokensPasswordless.init()]});let F=async b=>{try{(await supertokensPasswordless.createCode({email:b})).status!="SIGN_IN_UP_NOT_ALLOWED"&&I.state("checkEmail")}catch(w){G("sendOTP",w)}},K=async b=>{try{let w=await supertokensPasswordless.consumeCode({userInputCode:b});w.status==="OK"?w.createdNewRecipeUser&&w.user.loginMethods.length===1?I.state("signUpSuccess",w.user.id):I.state("signInSuccess",w.user.id):w.status==="INCORRECT_USER_INPUT_CODE_ERROR"?I.state("wrongOTP"):w.status==="EXPIRED_USER_INPUT_CODE_ERROR"?I.state("oldOTP"):I.state("failedOTP")}catch(w){G("handleOTP",w)}},k=async()=>{await supertokensSession.signOut(),I.state("logoutCompleted")};globalThis.stAuth={sendOTP:F,verifyOTP:K,logout:k,isLoggedIn:r,userEmail:n,userID:o,setMenuItems:C},ct(globalThis.authHooks)&&globalThis.authHooks.forEach(([b,w])=>{let J=I[b];I[b]=(at,it)=>{J(at,it),w(at,it)}}),ct(globalThis.menuItems)&&C(globalThis.menuItems),r()?I.state("loggedIn",n()):I.state("loggedOut"),lt({targets:"#"+a,opacity:"100%",duration:1e3,easing:"easeInOutQuad",complete:()=>lt.remove("#"+a)})};})();
(()=>{function O(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function x(e){return function t(r){return arguments.length===0||O(r)?t:e.apply(this,arguments)}}function g(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return O(r)?t:x(function(o){return e(r,o)});default:return O(r)&&O(n)?t:O(r)?x(function(o){return e(o,n)}):O(n)?x(function(o){return e(r,o)}):e(r,n)}}}function gt(e,t){e=e||[],t=t||[];var r,n=e.length,o=t.length,a=[];for(r=0;r<n;)a[a.length]=e[r],r+=1;for(r=0;r<o;)a[a.length]=t[r],r+=1;return a}function X(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,o){return t.apply(this,arguments)};case 4:return function(r,n,o,a){return t.apply(this,arguments)};case 5:return function(r,n,o,a,u){return t.apply(this,arguments)};case 6:return function(r,n,o,a,u,s){return t.apply(this,arguments)};case 7:return function(r,n,o,a,u,s,i){return t.apply(this,arguments)};case 8:return function(r,n,o,a,u,s,i,c){return t.apply(this,arguments)};case 9:return function(r,n,o,a,u,s,i,c,f){return t.apply(this,arguments)};case 10:return function(r,n,o,a,u,s,i,c,f,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function kt(e,t,r){return function(){for(var n=[],o=0,a=e,u=0,s=!1;u<t.length||o<arguments.length;){var i;u<t.length&&(!O(t[u])||o>=arguments.length)?i=t[u]:(i=arguments[o],o+=1),n[u]=i,O(i)?s=!0:a-=1,u+=1}return!s&&a<=0?r.apply(this,n):X(Math.max(0,a),kt(e,n,r))}}var Gr=g(function(t,r){return t===1?x(r):X(t,kt(t,[],r))}),V=Gr;function z(e){return function t(r,n,o){switch(arguments.length){case 0:return t;case 1:return O(r)?t:g(function(a,u){return e(r,a,u)});case 2:return O(r)&&O(n)?t:O(r)?g(function(a,u){return e(a,n,u)}):O(n)?g(function(a,u){return e(r,a,u)}):x(function(a){return e(r,n,a)});default:return O(r)&&O(n)&&O(o)?t:O(r)&&O(n)?g(function(a,u){return e(a,u,o)}):O(r)&&O(o)?g(function(a,u){return e(a,n,u)}):O(n)&&O(o)?g(function(a,u){return e(r,a,u)}):O(r)?x(function(a){return e(a,n,o)}):O(n)?x(function(a){return e(r,a,o)}):O(o)?x(function(a){return e(r,n,a)}):e(r,n,o)}}}var E=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Kt(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function tt(e,t,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!E(n)){for(var o=0;o<e.length;){if(typeof n[e[o]]=="function")return n[e[o]].apply(n,Array.prototype.slice.call(arguments,0,-1));o+=1}if(Kt(n)){var a=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(n)}}return r.apply(this,arguments)}}var H={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function Tt(e){for(var t=[],r;!(r=e.next()).done;)t.push(r.value);return t}function Rt(e,t,r){for(var n=0,o=r.length;n<o;){if(e(t,r[n]))return!0;n+=1}return!1}function Jt(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function M(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Xr(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Xr;var We=Object.prototype.toString,tn=function(){return We.call(arguments)==="[object Arguments]"?function(t){return We.call(t)==="[object Arguments]"}:function(t){return M("callee",t)}}(),jt=tn;var en=!{toString:null}.propertyIsEnumerable("toString"),$e=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Fe=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),rn=function(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1},nn=typeof Object.keys=="function"&&!Fe?x(function(t){return Object(t)!==t?[]:Object.keys(t)}):x(function(t){if(Object(t)!==t)return[];var r,n,o=[],a=Fe&&jt(t);for(r in t)M(r,t)&&(!a||r!=="length")&&(o[o.length]=r);if(en)for(n=$e.length-1;n>=0;)r=$e[n],M(r,t)&&!rn(o,r)&&(o[o.length]=r),n-=1;return o}),N=nn;var on=x(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),Yt=on;function Ve(e,t,r,n){var o=Tt(e),a=Tt(t);function u(s,i){return yt(s,i,r.slice(),n.slice())}return!Rt(function(s,i){return!Rt(u,i,s)},a,o)}function yt(e,t,r,n){if(Ct(e,t))return!0;var o=Yt(e);if(o!==Yt(t))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&Jt(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&Ct(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!Ct(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size!==t.size?!1:Ve(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size!==t.size?!1:Ve(e.values(),t.values(),r.concat([e]),n.concat([t]));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=N(e);if(u.length!==N(t).length)return!1;var s=r.concat([e]),i=n.concat([t]);for(a=u.length-1;a>=0;){var c=u[a];if(!(M(c,t)&&yt(t[c],e[c],s,i)))return!1;a-=1}return!0}var an=g(function(t,r){return yt(t,r,[],[])}),Q=an;function Gt(e,t,r){var n,o;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(n=1/t;r<e.length;){if(o=e[r],o===0&&1/o===n)return r;r+=1}return-1}else if(t!==t){for(;r<e.length;){if(o=e[r],typeof o=="number"&&o!==o)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(t===null)return e.indexOf(t,r)}for(;r<e.length;){if(Q(e[r],t))return r;r+=1}return-1}function vt(e,t){return Gt(t,e,0)>=0}function et(e,t){for(var r=0,n=t.length,o=Array(n);r<n;)o[r]=e(t[r]),r+=1;return o}function xt(e){var t=e.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'"'+t.replace(/"/g,'\\"')+'"'}var _t=function(t){return(t<10?"0":"")+t},un=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+_t(t.getUTCMonth()+1)+"-"+_t(t.getUTCDate())+"T"+_t(t.getUTCHours())+":"+_t(t.getUTCMinutes())+":"+_t(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},ze=un;function Xt(e){return function(){return!e.apply(this,arguments)}}function L(e,t,r){for(var n=0,o=r.length;n<o;)t=e(t,r[n]),n+=1;return t}function te(e,t){for(var r=0,n=t.length,o=[];r<n;)e(t[r])&&(o[o.length]=t[r]),r+=1;return o}function wt(e){return Object.prototype.toString.call(e)==="[object Object]"}var sn=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=H.init,e.prototype["@@transducer/result"]=H.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e}();function ee(e){return function(t){return new sn(e,t)}}var fn=g(tt(["fantasy-land/filter","filter"],ee,function(e,t){return wt(t)?L(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{},N(t)):te(e,t)})),He=fn;var ln=g(function(t,r){return He(Xt(t),r)}),Qe=ln;function Et(e,t){var r=function(u){var s=t.concat([e]);return vt(u,s)?"<Circular>":Et(u,s)},n=function(a,u){return et(function(s){return xt(s)+": "+r(a[s])},u.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+et(r,e).join(", ")+"))";case"[object Array]":return"["+et(r,e).concat(n(e,Qe(function(a){return/^\d+$/.test(a)},N(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):xt(ze(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+r(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return typeof e=="object"?"new String("+r(e.valueOf())+")":xt(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var o=e.toString();if(o!=="[object Object]")return o}return"{"+n(e,N(e)).join(", ")+"}"}}var cn=x(function(t){return Et(t,[])}),re=cn;var pn=g(function(t,r){if(t===r)return r;function n(i,c){if(i>c!=c>i)return c>i?c:i}var o=n(t,r);if(o!==void 0)return o;var a=n(typeof t,typeof r);if(a!==void 0)return a===typeof t?t:r;var u=re(t),s=n(u,re(r));return s!==void 0&&s===u?t:r}),Mt=pn;var dn=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=H.init,e.prototype["@@transducer/result"]=H.result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e}(),mn=function(t){return function(r){return new dn(t,r)}},Ze=mn;var hn=g(tt(["fantasy-land/map","map"],Ze,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return V(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return L(function(n,o){return n[o]=t(r[o]),n},{},N(r));default:return et(t,r)}})),B=hn;var U=Number.isInteger||function(t){return t<<0===t};function rt(e){return Object.prototype.toString.call(e)==="[object String]"}var gn=g(function(t,r){var n=t<0?r.length+t:t;return rt(r)?r.charAt(n):r[n]}),Ke=gn;var yn=g(function(t,r){if(r!=null)return U(t)?Ke(t,r):r[t]}),Je=yn;var vn=g(function(t,r){return B(Je(t),r)}),Nt=vn;var xn=x(function(t){return E(t)?!0:!t||typeof t!="object"||rt(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),Ye=xn;var Ge=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function bt(e,t,r){return function(o,a,u){if(Ye(u))return e(o,a,u);if(u==null)return a;if(typeof u["fantasy-land/reduce"]=="function")return t(o,a,u,"fantasy-land/reduce");if(u[Ge]!=null)return r(o,a,u[Ge]());if(typeof u.next=="function")return r(o,a,u);if(typeof u.reduce=="function")return t(o,a,u,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ne(e,t,r){for(var n=0,o=r.length;n<o;){if(t=e["@@transducer/step"](t,r[n]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var _n=g(function(t,r){return X(t.length,function(){return t.apply(r,arguments)})}),Xe=_n;function wn(e,t,r){for(var n=r.next();!n.done;){if(t=e["@@transducer/step"](t,n.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function bn(e,t,r,n){return e["@@transducer/result"](r[n](Xe(e["@@transducer/step"],e),t))}var In=bt(ne,bn,wn),tr=In;var On=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function oe(e){return new On(e)}var Sn=z(function(e,t,r){return tr(typeof e=="function"?oe(e):e,t,r)}),Bt=Sn;var An=x(function(t){return V(Bt(Mt,0,Nt("length",t)),function(){for(var r=0,n=t.length;r<n;){if(!t[r].apply(this,arguments))return!1;r+=1}return!0})}),ae=An;var Pn=x(function(t){return V(Bt(Mt,0,Nt("length",t)),function(){for(var r=0,n=t.length;r<n;){if(t[r].apply(this,arguments))return!0;r+=1}return!1})}),ie=Pn;function kn(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Tn(e,t,r,n){return r[n](e,t)}var Rn=bt(L,Tn,kn),er=Rn;var Cn=g(function(t,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(r):typeof t=="function"?function(n){return t(n)(r(n))}:er(function(n,o){return gt(n,B(o,r))},[],t)}),rr=Cn;var jn=g(function(t,r){return gt(r,[t])}),ue=jn;function se(e,t,r){if(U(e)&&E(r)){var n=[].concat(r);return n[e]=t,n}var o={};for(var a in r)o[a]=r[a];return o[e]=t,o}var En=x(function(t){return t==null}),nt=En;var Mn=z(function e(t,r,n){if(t.length===0)return r;var o=t[0];if(t.length>1){var a=!nt(n)&&M(o,n)&&typeof n[o]=="object"?n[o]:U(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,a)}return se(o,r,n)}),nr=Mn;var Nn=z(function(t,r,n){return nr([t],r,n)}),or=Nn;var Bn=g(function(t,r){var n=V(t,r);return V(t,function(){return L(rr,B(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),ar=Bn;var Dn=x(function(t){return ar(t.length,t)}),ir=Dn;var Ln=x(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}),fe=Ln;var qn=x(function(t){return!t}),ur=qn;var Un=ir(ur),le=Un;function ce(e){return e}var Wn=x(ce),ot=Wn;var $n=z(function(t,r,n){var o=Array.prototype.slice.call(n,0);return o.splice(t,r),o}),sr=$n;function pe(e,t){if(t==null)return t;if(U(e)&&E(t))return sr(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}function Fn(e,t){if(U(e)&&E(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}var Vn=g(function e(t,r){if(r==null)return r;switch(t.length){case 0:return r;case 1:return pe(t[0],r);default:var n=t[0],o=Array.prototype.slice.call(t,1);return r[n]==null?Fn(n,r):or(n,e(o,r[n]),r)}}),fr=Vn;var zn=g(function(t,r){return fr([t],r)}),de=zn;function me(e){var t=Object.prototype.toString.call(e);return t==="[object Uint8ClampedArray]"||t==="[object Int8Array]"||t==="[object Uint8Array]"||t==="[object Int16Array]"||t==="[object Uint16Array]"||t==="[object Int32Array]"||t==="[object Uint32Array]"||t==="[object Float32Array]"||t==="[object Float64Array]"||t==="[object BigInt64Array]"||t==="[object BigUint64Array]"}var Hn=x(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():E(t)?[]:rt(t)?"":wt(t)?{}:jt(t)?function(){return arguments}():me(t)?t.constructor.from(""):void 0}),lr=Hn;var Qn=g(vt),Dt=Qn;function Zn(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,n=arguments.length;r<n;){var o=arguments[r];if(o!=null)for(var a in o)M(a,o)&&(t[a]=o[a]);r+=1}return t}var Lt=typeof Object.assign=="function"?Object.assign:Zn;var Kn=g(function(t,r){return r instanceof t||r!=null&&(r.constructor===t||t.name==="Object"&&typeof r=="object")}),he=Kn;var Jn=x(function(t){return t!=null&&Q(t,lr(t))}),qt=Jn;var Yn=x(function(t){return!nt(t)}),ge=Yn;var Gn=g(function(t,r){return L(function(n,o){return n[o]=t(r[o],o,r),n},{},N(r))}),Ut=Gn;var Xn=g(function(t,r){return Lt({},r,t)}),Wt=Xn;var to=g(function(t,r){return Lt({},t,r)}),st=to;var eo=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=H.init,e.prototype["@@transducer/result"]=H.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r),this.xf["@@transducer/step"](t,r)},e}();function ye(e){return function(t){return new eo(e,t)}}var ro=g(tt([],ye,function(t,r){return t(r),r})),ft=ro;var gr={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},we={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},oo=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],$t={CSS:{},springs:{}};function W(e,t,r){return Math.min(Math.max(e,t),r)}function It(e,t){return e.indexOf(t)>-1}function ve(e,t){return e.apply(null,t)}var p={arr:function(e){return Array.isArray(e)},obj:function(e){return It(Object.prototype.toString.call(e),"Object")},pth:function(e){return p.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||p.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return p.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return p.hex(e)||p.rgb(e)||p.hsl(e)},key:function(e){return!gr.hasOwnProperty(e)&&!we.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function yr(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(r){return parseFloat(r)}):[]}function vr(e,t){var r=yr(e),n=W(p.und(r[0])?1:r[0],.1,100),o=W(p.und(r[1])?100:r[1],.1,100),a=W(p.und(r[2])?10:r[2],.1,100),u=W(p.und(r[3])?0:r[3],.1,100),s=Math.sqrt(o/n),i=a/(2*Math.sqrt(o*n)),c=i<1?s*Math.sqrt(1-i*i):0,f=1,l=i<1?(i*s+-u)/c:-u+s;function m(_){var d=t?t*_/1e3:_;return i<1?d=Math.exp(-d*i*s)*(f*Math.cos(c*d)+l*Math.sin(c*d)):d=(f+l*d)*Math.exp(-d*s),_===0||_===1?_:1-d}function A(){var _=$t.springs[e];if(_)return _;for(var d=1/6,y=0,S=0;;)if(y+=d,m(y)===1){if(S++,S>=16)break}else S=0;var R=y*d*1e3;return $t.springs[e]=R,R}return t?m:A}function ao(e){return e===void 0&&(e=10),function(t){return Math.ceil(W(t,1e-6,1)*e)*(1/e)}}var io=function(){var e=11,t=1/(e-1);function r(f,l){return 1-3*l+3*f}function n(f,l){return 3*l-6*f}function o(f){return 3*f}function a(f,l,m){return((r(l,m)*f+n(l,m))*f+o(l))*f}function u(f,l,m){return 3*r(l,m)*f*f+2*n(l,m)*f+o(l)}function s(f,l,m,A,_){var d,y,S=0;do y=l+(m-l)/2,d=a(y,A,_)-f,d>0?m=y:l=y;while(Math.abs(d)>1e-7&&++S<10);return y}function i(f,l,m,A){for(var _=0;_<4;++_){var d=u(l,m,A);if(d===0)return l;var y=a(l,m,A)-f;l-=y/d}return l}function c(f,l,m,A){if(!(0<=f&&f<=1&&0<=m&&m<=1))return;var _=new Float32Array(e);if(f!==l||m!==A)for(var d=0;d<e;++d)_[d]=a(d*t,f,m);function y(S){for(var R=0,h=1,v=e-1;h!==v&&_[h]<=S;++h)R+=t;--h;var C=(S-_[h])/(_[h+1]-_[h]),j=R+C*t,I=u(j,f,m);return I>=.001?i(S,j,f,m):I===0?j:s(S,R,R+t,f,m)}return function(S){return f===l&&m===A||S===0||S===1?S:a(y(S),l,A)}}return c}(),xr=function(){var e={linear:function(){return function(n){return n}}},t={Sine:function(){return function(n){return 1-Math.cos(n*Math.PI/2)}},Circ:function(){return function(n){return 1-Math.sqrt(1-n*n)}},Back:function(){return function(n){return n*n*(3*n-2)}},Bounce:function(){return function(n){for(var o,a=4;n<((o=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((o*3-2)/22-n,2)}},Elastic:function(n,o){n===void 0&&(n=1),o===void 0&&(o=.5);var a=W(n,1,10),u=W(o,.1,2);return function(s){return s===0||s===1?s:-a*Math.pow(2,10*(s-1))*Math.sin((s-1-u/(Math.PI*2)*Math.asin(1/a))*(Math.PI*2)/u)}}},r=["Quad","Cubic","Quart","Quint","Expo"];return r.forEach(function(n,o){t[n]=function(){return function(a){return Math.pow(a,o+2)}}}),Object.keys(t).forEach(function(n){var o=t[n];e["easeIn"+n]=o,e["easeOut"+n]=function(a,u){return function(s){return 1-o(a,u)(1-s)}},e["easeInOut"+n]=function(a,u){return function(s){return s<.5?o(a,u)(s*2)/2:1-o(a,u)(s*-2+2)/2}},e["easeOutIn"+n]=function(a,u){return function(s){return s<.5?(1-o(a,u)(1-s*2))/2:(o(a,u)(s*2-1)+1)/2}}}),e}();function be(e,t){if(p.fnc(e))return e;var r=e.split("(")[0],n=xr[r],o=yr(e);switch(r){case"spring":return vr(e,t);case"cubicBezier":return ve(io,o);case"steps":return ve(ao,o);default:return ve(n,o)}}function _r(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function Ft(e,t){for(var r=e.length,n=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<r;a++)if(a in e){var u=e[a];t.call(n,u,a,e)&&o.push(u)}return o}function Vt(e){return e.reduce(function(t,r){return t.concat(p.arr(r)?Vt(r):r)},[])}function cr(e){return p.arr(e)?e:(p.str(e)&&(e=_r(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Ie(e,t){return e.some(function(r){return r===t})}function Oe(e){var t={};for(var r in e)t[r]=e[r];return t}function xe(e,t){var r=Oe(e);for(var n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function zt(e,t){var r=Oe(e);for(var n in t)r[n]=p.und(e[n])?t[n]:e[n];return r}function uo(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function so(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=e.replace(t,function(s,i,c,f){return i+i+c+c+f+f}),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),o=parseInt(n[1],16),a=parseInt(n[2],16),u=parseInt(n[3],16);return"rgba("+o+","+a+","+u+",1)"}function fo(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(t[1],10)/360,n=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[4]||1;function u(m,A,_){return _<0&&(_+=1),_>1&&(_-=1),_<1/6?m+(A-m)*6*_:_<1/2?A:_<2/3?m+(A-m)*(2/3-_)*6:m}var s,i,c;if(n==0)s=i=c=o;else{var f=o<.5?o*(1+n):o+n-o*n,l=2*o-f;s=u(l,f,r+1/3),i=u(l,f,r),c=u(l,f,r-1/3)}return"rgba("+s*255+","+i*255+","+c*255+","+a+")"}function lo(e){if(p.rgb(e))return uo(e);if(p.hex(e))return so(e);if(p.hsl(e))return fo(e)}function Z(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function co(e){if(It(e,"translate")||e==="perspective")return"px";if(It(e,"rotate")||It(e,"skew"))return"deg"}function _e(e,t){return p.fnc(e)?e(t.target,t.id,t.total):e}function $(e,t){return e.getAttribute(t)}function Se(e,t,r){var n=Z(t);if(Ie([r,"deg","rad","turn"],n))return t;var o=$t.CSS[t+r];if(!p.und(o))return o;var a=100,u=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(u),u.style.position="absolute",u.style.width=a+r;var i=a/u.offsetWidth;s.removeChild(u);var c=i*parseFloat(t);return $t.CSS[t+r]=c,c}function wr(e,t,r){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return r?Se(e,o,r):o}}function Ae(e,t){if(p.dom(e)&&!p.inp(e)&&(!p.nil($(e,t))||p.svg(e)&&e[t]))return"attribute";if(p.dom(e)&&Ie(oo,t))return"transform";if(p.dom(e)&&t!=="transform"&&wr(e,t))return"css";if(e[t]!=null)return"object"}function br(e){if(p.dom(e)){for(var t=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,n=new Map,o;o=r.exec(t);)n.set(o[1],o[2]);return n}}function po(e,t,r,n){var o=It(t,"scale")?1:0+co(t),a=br(e).get(t)||o;return r&&(r.transforms.list.set(t,a),r.transforms.last=t),n?Se(e,a,n):a}function Pe(e,t,r,n){switch(Ae(e,t)){case"transform":return po(e,t,n,r);case"css":return wr(e,t,r);case"attribute":return $(e,t);default:return e[t]||0}}function ke(e,t){var r=/^(\*=|\+=|-=)/.exec(e);if(!r)return e;var n=Z(e)||0,o=parseFloat(t),a=parseFloat(e.replace(r[0],""));switch(r[0][0]){case"+":return o+a+n;case"-":return o-a+n;case"*":return o*a+n}}function Ir(e,t){if(p.col(e))return lo(e);if(/\s/g.test(e))return e;var r=Z(e),n=r?e.substr(0,e.length-r.length):e;return t?n+t:n}function Te(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function mo(e){return Math.PI*2*$(e,"r")}function ho(e){return $(e,"width")*2+$(e,"height")*2}function go(e){return Te({x:$(e,"x1"),y:$(e,"y1")},{x:$(e,"x2"),y:$(e,"y2")})}function Or(e){for(var t=e.points,r=0,n,o=0;o<t.numberOfItems;o++){var a=t.getItem(o);o>0&&(r+=Te(n,a)),n=a}return r}function yo(e){var t=e.points;return Or(e)+Te(t.getItem(t.numberOfItems-1),t.getItem(0))}function Sr(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return mo(e);case"rect":return ho(e);case"line":return go(e);case"polyline":return Or(e);case"polygon":return yo(e)}}function vo(e){var t=Sr(e);return e.setAttribute("stroke-dasharray",t),t}function xo(e){for(var t=e.parentNode;p.svg(t)&&p.svg(t.parentNode);)t=t.parentNode;return t}function Ar(e,t){var r=t||{},n=r.el||xo(e),o=n.getBoundingClientRect(),a=$(n,"viewBox"),u=o.width,s=o.height,i=r.viewBox||(a?a.split(" "):[0,0,u,s]);return{el:n,viewBox:i,x:i[0]/1,y:i[1]/1,w:u,h:s,vW:i[2],vH:i[3]}}function _o(e,t){var r=p.str(e)?_r(e)[0]:e,n=t||100;return function(o){return{property:o,el:r,svg:Ar(r),totalLength:Sr(r)*(n/100)}}}function wo(e,t,r){function n(f){f===void 0&&(f=0);var l=t+f>=1?t+f:0;return e.el.getPointAtLength(l)}var o=Ar(e.el,e.svg),a=n(),u=n(-1),s=n(1),i=r?1:o.w/o.vW,c=r?1:o.h/o.vH;switch(e.property){case"x":return(a.x-o.x)*i;case"y":return(a.y-o.y)*c;case"angle":return Math.atan2(s.y-u.y,s.x-u.x)*180/Math.PI}}function pr(e,t){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=Ir(p.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(r)?n.match(r).map(Number):[0],strings:p.str(e)||t?n.split(r):[]}}function Re(e){var t=e?Vt(p.arr(e)?e.map(cr):cr(e)):[];return Ft(t,function(r,n,o){return o.indexOf(r)===n})}function Pr(e){var t=Re(e);return t.map(function(r,n){return{target:r,id:n,total:t.length,transforms:{list:br(r)}}})}function bo(e,t){var r=Oe(t);if(/^spring/.test(r.easing)&&(r.duration=vr(r.easing)),p.arr(e)){var n=e.length,o=n===2&&!p.obj(e[0]);o?e={value:e}:p.fnc(t.duration)||(r.duration=t.duration/n)}var a=p.arr(e)?e:[e];return a.map(function(u,s){var i=p.obj(u)&&!p.pth(u)?u:{value:u};return p.und(i.delay)&&(i.delay=s?0:t.delay),p.und(i.endDelay)&&(i.endDelay=s===a.length-1?t.endDelay:0),i}).map(function(u){return zt(u,r)})}function Io(e){for(var t=Ft(Vt(e.map(function(a){return Object.keys(a)})),function(a){return p.key(a)}).reduce(function(a,u){return a.indexOf(u)<0&&a.push(u),a},[]),r={},n=function(a){var u=t[a];r[u]=e.map(function(s){var i={};for(var c in s)p.key(c)?c==u&&(i.value=s[c]):i[c]=s[c];return i})},o=0;o<t.length;o++)n(o);return r}function Oo(e,t){var r=[],n=t.keyframes;n&&(t=zt(Io(n),t));for(var o in t)p.key(o)&&r.push({name:o,tweens:bo(t[o],e)});return r}function So(e,t){var r={};for(var n in e){var o=_e(e[n],t);p.arr(o)&&(o=o.map(function(a){return _e(a,t)}),o.length===1&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function Ao(e,t){var r;return e.tweens.map(function(n){var o=So(n,t),a=o.value,u=p.arr(a)?a[1]:a,s=Z(u),i=Pe(t.target,e.name,s,t),c=r?r.to.original:i,f=p.arr(a)?a[0]:c,l=Z(f)||Z(i),m=s||l;return p.und(u)&&(u=c),o.from=pr(f,m),o.to=pr(ke(u,f),m),o.start=r?r.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=be(o.easing,o.duration),o.isPath=p.pth(a),o.isPathTargetInsideSVG=o.isPath&&p.svg(t.target),o.isColor=p.col(o.from.original),o.isColor&&(o.round=1),r=o,o})}var kr={css:function(e,t,r){return e.style[t]=r},attribute:function(e,t,r){return e.setAttribute(t,r)},object:function(e,t,r){return e[t]=r},transform:function(e,t,r,n,o){if(n.list.set(t,r),t===n.last||o){var a="";n.list.forEach(function(u,s){a+=s+"("+u+") "}),e.style.transform=a}}};function Tr(e,t){var r=Pr(e);r.forEach(function(n){for(var o in t){var a=_e(t[o],n),u=n.target,s=Z(a),i=Pe(u,o,s,n),c=s||Z(i),f=ke(Ir(a,c),i),l=Ae(u,o);kr[l](u,o,f,n.transforms,!0)}})}function Po(e,t){var r=Ae(e.target,t.name);if(r){var n=Ao(t,e),o=n[n.length-1];return{type:r,property:t.name,animatable:e,tweens:n,duration:o.end,delay:n[0].delay,endDelay:o.endDelay}}}function ko(e,t){return Ft(Vt(e.map(function(r){return t.map(function(n){return Po(r,n)})})),function(r){return!p.und(r)})}function Rr(e,t){var r=e.length,n=function(a){return a.timelineOffset?a.timelineOffset:0},o={};return o.duration=r?Math.max.apply(Math,e.map(function(a){return n(a)+a.duration})):t.duration,o.delay=r?Math.min.apply(Math,e.map(function(a){return n(a)+a.delay})):t.delay,o.endDelay=r?o.duration-Math.max.apply(Math,e.map(function(a){return n(a)+a.duration-a.endDelay})):t.endDelay,o}var dr=0;function To(e){var t=xe(gr,e),r=xe(we,e),n=Oo(r,e),o=Pr(e.targets),a=ko(o,n),u=Rr(a,r),s=dr;return dr++,zt(t,{id:s,children:[],animatables:o,animations:a,duration:u.duration,delay:u.delay,endDelay:u.endDelay})}var q=[],Cr=function(){var e;function t(){!e&&(!mr()||!T.suspendWhenDocumentHidden)&&q.length>0&&(e=requestAnimationFrame(r))}function r(o){for(var a=q.length,u=0;u<a;){var s=q[u];s.paused?(q.splice(u,1),a--):(s.tick(o),u++)}e=u>0?requestAnimationFrame(r):void 0}function n(){T.suspendWhenDocumentHidden&&(mr()?e=cancelAnimationFrame(e):(q.forEach(function(o){return o._onDocumentVisibility()}),Cr()))}return typeof document<"u"&&document.addEventListener("visibilitychange",n),t}();function mr(){return!!document&&document.hidden}function T(e){e===void 0&&(e={});var t=0,r=0,n=0,o,a=0,u=null;function s(h){var v=window.Promise&&new Promise(function(C){return u=C});return h.finished=v,v}var i=To(e),c=s(i);function f(){var h=i.direction;h!=="alternate"&&(i.direction=h!=="normal"?"normal":"reverse"),i.reversed=!i.reversed,o.forEach(function(v){return v.reversed=i.reversed})}function l(h){return i.reversed?i.duration-h:h}function m(){t=0,r=l(i.currentTime)*(1/T.speed)}function A(h,v){v&&v.seek(h-v.timelineOffset)}function _(h){if(i.reversePlayback)for(var C=a;C--;)A(h,o[C]);else for(var v=0;v<a;v++)A(h,o[v])}function d(h){for(var v=0,C=i.animations,j=C.length;v<j;){var I=C[v],G=I.animatable,F=I.tweens,K=F.length-1,k=F[K];K&&(k=Ft(F,function(Yr){return h<Yr.end})[0]||k);for(var b=W(h-k.start-k.delay,0,k.duration)/k.duration,w=isNaN(b)?1:k.easing(b),J=k.to.strings,at=k.round,it=[],Jr=k.to.numbers.length,ut=void 0,dt=0;dt<Jr;dt++){var mt=void 0,De=k.to.numbers[dt],Le=k.from.numbers[dt]||0;k.isPath?mt=wo(k.value,w*De,k.isPathTargetInsideSVG):mt=Le+w*(De-Le),at&&(k.isColor&&dt>2||(mt=Math.round(mt*at)/at)),it.push(mt)}var qe=J.length;if(!qe)ut=it[0];else{ut=J[0];for(var ht=0;ht<qe;ht++){var Zo=J[ht],Ue=J[ht+1],Zt=it[ht];isNaN(Zt)||(Ue?ut+=Zt+Ue:ut+=Zt+" ")}}kr[I.type](G.target,I.property,ut,G.transforms),I.currentValue=ut,v++}}function y(h){i[h]&&!i.passThrough&&i[h](i)}function S(){i.remaining&&i.remaining!==!0&&i.remaining--}function R(h){var v=i.duration,C=i.delay,j=v-i.endDelay,I=l(h);i.progress=W(I/v*100,0,100),i.reversePlayback=I<i.currentTime,o&&_(I),!i.began&&i.currentTime>0&&(i.began=!0,y("begin")),!i.loopBegan&&i.currentTime>0&&(i.loopBegan=!0,y("loopBegin")),I<=C&&i.currentTime!==0&&d(0),(I>=j&&i.currentTime!==v||!v)&&d(v),I>C&&I<j?(i.changeBegan||(i.changeBegan=!0,i.changeCompleted=!1,y("changeBegin")),y("change"),d(I)):i.changeBegan&&(i.changeCompleted=!0,i.changeBegan=!1,y("changeComplete")),i.currentTime=W(I,0,v),i.began&&y("update"),h>=v&&(r=0,S(),i.remaining?(t=n,y("loopComplete"),i.loopBegan=!1,i.direction==="alternate"&&f()):(i.paused=!0,i.completed||(i.completed=!0,y("loopComplete"),y("complete"),!i.passThrough&&"Promise"in window&&(u(),c=s(i)))))}return i.reset=function(){var h=i.direction;i.passThrough=!1,i.currentTime=0,i.progress=0,i.paused=!0,i.began=!1,i.loopBegan=!1,i.changeBegan=!1,i.completed=!1,i.changeCompleted=!1,i.reversePlayback=!1,i.reversed=h==="reverse",i.remaining=i.loop,o=i.children,a=o.length;for(var v=a;v--;)i.children[v].reset();(i.reversed&&i.loop!==!0||h==="alternate"&&i.loop===1)&&i.remaining++,d(i.reversed?i.duration:0)},i._onDocumentVisibility=m,i.set=function(h,v){return Tr(h,v),i},i.tick=function(h){n=h,t||(t=n),R((n+(r-t))*T.speed)},i.seek=function(h){R(l(h))},i.pause=function(){i.paused=!0,m()},i.play=function(){i.paused&&(i.completed&&i.reset(),i.paused=!1,q.push(i),m(),Cr())},i.reverse=function(){f(),i.completed=!i.reversed,m()},i.restart=function(){i.reset(),i.play()},i.remove=function(h){var v=Re(h);jr(v,i)},i.reset(),i.autoplay&&i.play(),i}function hr(e,t){for(var r=t.length;r--;)Ie(e,t[r].animatable.target)&&t.splice(r,1)}function jr(e,t){var r=t.animations,n=t.children;hr(e,r);for(var o=n.length;o--;){var a=n[o],u=a.animations;hr(e,u),!u.length&&!a.children.length&&n.splice(o,1)}!r.length&&!n.length&&t.pause()}function Ro(e){for(var t=Re(e),r=q.length;r--;){var n=q[r];jr(t,n)}}function Co(e,t){t===void 0&&(t={});var r=t.direction||"normal",n=t.easing?be(t.easing):null,o=t.grid,a=t.axis,u=t.from||0,s=u==="first",i=u==="center",c=u==="last",f=p.arr(e),l=parseFloat(f?e[0]:e),m=f?parseFloat(e[1]):0,A=Z(f?e[1]:e)||0,_=t.start||0+(f?l:0),d=[],y=0;return function(S,R,h){if(s&&(u=0),i&&(u=(h-1)/2),c&&(u=h-1),!d.length){for(var v=0;v<h;v++){if(!o)d.push(Math.abs(u-v));else{var C=i?(o[0]-1)/2:u%o[0],j=i?(o[1]-1)/2:Math.floor(u/o[0]),I=v%o[0],G=Math.floor(v/o[0]),F=C-I,K=j-G,k=Math.sqrt(F*F+K*K);a==="x"&&(k=-F),a==="y"&&(k=-K),d.push(k)}y=Math.max.apply(Math,d)}n&&(d=d.map(function(w){return n(w/y)*y})),r==="reverse"&&(d=d.map(function(w){return a?w<0?w*-1:-w:Math.abs(y-w)}))}var b=f?(m-l)/y:l;return _+b*(Math.round(d[R]*100)/100)+A}}function jo(e){e===void 0&&(e={});var t=T(e);return t.duration=0,t.add=function(r,n){var o=q.indexOf(t),a=t.children;o>-1&&q.splice(o,1);function u(m){m.passThrough=!0}for(var s=0;s<a.length;s++)u(a[s]);var i=zt(r,xe(we,e));i.targets=i.targets||e.targets;var c=t.duration;i.autoplay=!1,i.direction=t.direction,i.timelineOffset=p.und(n)?c:ke(n,c),u(t),t.seek(i.timelineOffset);var f=T(i);u(f),a.push(f);var l=Rr(a,e);return t.delay=l.delay,t.endDelay=l.endDelay,t.duration=l.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}T.version="3.2.1";T.speed=1;T.suspendWhenDocumentHidden=!0;T.running=q;T.remove=Ro;T.get=Pe;T.set=Tr;T.convertPx=Se;T.path=_o;T.setDashoffset=vo;T.stagger=Co;T.timeline=jo;T.easing=be;T.penner=xr;T.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var lt=T;var Nr=0,Br=Object.create(null),Eo=["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 e of Eo)for(let t of["-webkit-","-ms-","-moz-","-o-",""])Br[t+e]=!0;function Ce(e,t){return e.replace(/&/g,t)}function Er(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).replace(/^ms-/,"-ms-")}function Mo(e){let t=5381,r=e.length;for(;r--;)t=t*33^e.charCodeAt(r);return(t>>>0).toString(36)}function No(e,t){return e.indexOf("&")===-1?`${t} ${e}`:Ce(e,t)}function Mr(e,t){return e[0]>t[0]?1:e[0]<t[0]?-1:e[2]-t[2]}function Bo([e,t]){return typeof t=="number"&&t&&!Br[e]?`${e}:${t}px`:`${e}:${String(t)}`}function Dr(e,t,r,n,o){let a=[],u=[];for(let d of Object.keys(n)){let y=n[d];if(d.charCodeAt(0)!==36&&y!=null)if(Array.isArray(y)){let S=Er(d);for(let R=0;R<y.length;R++){let h=y[R];h!=null&&a.push([S,h,R])}}else typeof y=="object"?u.push([d,y,0]):a.push([Er(d),y,0])}let s=!!n.$unique,i=n.$global?"":o,c=i?u:u.sort(Mr),f=a.sort(Mr).map(Bo).join(";"),l=f,m=i,A=e,_=t;r.charCodeAt(0)===64?(A=[],_=[],i&&f&&_.push({selector:m,style:f,isUnique:s}),e.push({selector:r,rules:A,styles:_,style:i?"":f})):(m=i?r?No(r,i):i:r,f&&t.push({selector:m,style:f,isUnique:s}));for(let[d,y]of c)l+=`|${d}#${Dr(A,_,d,y,m)}`;return l}function Lr(e,t,r,n,o){for(let{selector:a,style:u,isUnique:s}of r){let i=Ce(a,o),c=new Ee(u,s?(++Nr).toString(36):n);c.add(new je(i)),e.add(c)}for(let{selector:a,style:u,rules:s,styles:i}of t){let c=Ce(a,o),f=new Me(c,u,n);Lr(f,s,i,n,o),e.add(f)}}function qr(e){let t="";for(let r=0;r<e.length;r++)t+=e[r];return t}var Ot=class e{constructor(t){this.changes=t,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(t){let r=t.id,n=this._counters[r]||0,o=this._children[r]||t.clone();if(this._counters[r]=n+1,n===0)this._children[r]=o,this._keys.push(r),this.sheet.push(o.getStyles()),this.changeId++,this.changes&&this.changes.add(o,this._keys.length-1);else if(o instanceof e&&t instanceof e){let a=o.changeId;if(o.merge(t),o.changeId!==a){let u=this._keys.indexOf(r);this.sheet.splice(u,1,o.getStyles()),this.changeId++,this.changes&&this.changes.change(o,u,u)}}}remove(t){let r=t.id,n=this._counters[r];if(n){this._counters[r]=n-1;let o=this._children[r],a=this._keys.indexOf(r);if(n===1)delete this._counters[r],delete this._children[r],this._keys.splice(a,1),this.sheet.splice(a,1),this.changeId++,this.changes&&this.changes.remove(o,a);else if(o instanceof e&&t instanceof e){let u=o.changeId;o.unmerge(t),o.changeId!==u&&(this.sheet.splice(a,1,o.getStyles()),this.changeId++,this.changes&&this.changes.change(o,a,a))}}}values(){return this._keys.map(t=>this._children[t])}merge(t){for(let r of t.values())this.add(r);return this}unmerge(t){for(let r of t.values())this.remove(r);return this}clone(){return new e().merge(this)}},je=class{constructor(t){this.selector=t}get id(){return`k:${this.selector}`}getStyles(){return this.selector}clone(){return this}},Ee=class e extends Ot{constructor(t,r){super(),this.style=t,this.pid=r}get id(){return`s:${this.pid}:${this.style}`}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new e(this.style,this.pid).merge(this)}},Me=class e extends Ot{constructor(t,r,n){super(),this.rule=t,this.style=r,this.pid=n}get id(){return`r:${this.pid}:${this.rule}:${this.style}`}getStyles(){return`${this.rule}{${this.style}${qr(this.sheet)}}`}clone(){return new e(this.rule,this.style,this.pid).merge(this)}},Ne=class e extends Ot{constructor(t,r){super(r),this.id=t}registerStyle(t){let r=[],n=[],o=Dr(r,n,"",t,".&"),a=`f${Mo(o)}`;return Lr(this,r,n,a,a),a}getStyles(){return qr(this.sheet)}clone(){return new e(this.id,this.changes).merge(this)}};function Ur(e){return new Ne(`f${(++Nr).toString(36)}`,e)}var ct=ae([ge,le(qt)]),Wr=ie([nt,qt]),Do=(e,...t)=>{let r=e,n=t;return{state:()=>r,setState:o=>{Q(r,o)||(r=o,B(fe,n))},subscribe:o=>n=ue(o,n)}},St=document,Be=e=>St.createElement(e),Lo=e=>St.createTextNode(e),qo=e=>St.head.appendChild(e),Qr=e=>St.body.appendChild(e),Y="st"+crypto.randomUUID(),Uo=ft(e=>{Wr(e[Y].added)&&Wr(e[Y].removed)||new MutationObserver((t,r)=>B(n=>{Dt(e,n.addedNodes)&&ct(e[Y].added)&&e[Y].added(e),Dt(e,n.removedNodes)&&ct(e[Y].removed)&&(r.disconnect(),e[Y].removed(e))})(t)).observe(window.document,{childList:!0,subtree:!0})}),P=(e,t,...r)=>{let n=Be(e);return Ut((o,a)=>n[a]=o,de("lifecycle",t)),n[Y]={},Ut((o,a)=>n[Y][a]=o,t.lifecycle),B(o=>{o&&n.appendChild(he(String,o)?Lo(o):o)},r),Uo(n)},pt=e=>St.getElementById(e),$r=e=>pt(e).value,Ht=e=>pt(e).disabled=!0,Fr=e=>{ct(pt(e))&&pt(e).offsetParent!=null&&pt(e).focus()},At=e=>"{{.Cfg.SuperTokensWebLibBase}}"+e,Pt=e=>{let t=Be("script");t.setAttribute("src",e),t.async=!1,Qr(t)};Pt(At("/website.js"));Pt(At("/supertokens.js"));Pt(At("/session.js"));Pt(At("/passwordless.js"));Pt(At("/emailverification.js"));var D=e=>{let t=Ur(),r=t.registerStyle(e),n=Be("style");return n.textContent=t.getStyles(),qo(n),r},Wo=D({boxSizing:"border-box",position:"absolute",top:"12px",right:"12px",zIndex:999,display:"flex",alignItems:"flex-end",flexDirection:"column"}),$o=D({backgroundColor:"white",minWidth:"10em",display:"flex",flexDirection:"column",border:"black solid 1px",paddingTop:"4px",div:{minHeight:"10px",marginBottom:"4px"}}),Zr={padding:"4px",cursor:"pointer",marginLeft:"12px",fontVariant:"small-caps"},$f=D(Zr),Qt=D(st(Zr,{marginLeft:"0px",paddingLeft:"12px",display:"inline-block",width:"calc(100% - 16px)","&:hover":{backgroundColor:"#e6e6e6"}})),Fo=D({width:"32px",height:"32px",padding:"4px",border:0,cursor:"pointer",borderRadius:"16px",marginLeft:"12px"}),Vo=D({width:"24px",height:"24px"}),Vr=D({display:"flex",flexDirection:"column",padding:"4px",backgroundColor:"white",input:{marginBottom:"10px"}}),zr=D({textAlign:"center"}),zo=D({opacity:"0%"}),Hr=D({marginTop:"10px"}),Kr={display:"flex",alignItems:"center"},Ff=D(Kr),Ho=D(st(Kr,{width:"32px",height:"32px",justifyContent:"center"})),Qo=e=>()=>{lt({targets:e,opacity:["0%","100%"],duration:1e3,easing:"easeInOutQuad",complete:()=>{lt({targets:e,opacity:["100%","0%"],duration:1e3,delay:2e3,easing:"easeInOutQuad",complete:()=>{lt.remove(e)}})}})};window.onload=()=>{let e=Q("{{.Cfg.PlainUI}}","true"),t=b=>"{{.Cfg.APIBasePath}}"+b,r=()=>Q("{{.LoggedIn}}","true"),n=()=>"{{.UserEmail}}",o=()=>"{{.UserID}}",a="st"+crypto.randomUUID(),u=Do({init:!0,label:"...",stState:"init",showMenu:!1,menuItems:[]}),s=(b,w)=>b.setState(A(st(b.state(),w))),i=b=>w=>{(w.key==="Enter"||w.keyCode===13)&&b()},c=()=>{globalThis.stAuth.sendOTP($r(a+"email")),Ht(a+"email"),Ht(a+"emailButton")},f=()=>{globalThis.stAuth.verifyOTP($r(a+"otp")),Ht(a+"otp"),Ht(a+"otpButton")},l=()=>{u.setState(st(u.state(),{stState:"init",displayState:m.init()})),I.state("loggedOut")},m={init:()=>null,enterEmail:()=>P("div",{className:Vr},P("input",{id:a+"email",type:"text",placeholder:"your.email@address.com",onkeyup:i(c),className:zr}),P("button",{id:a+"emailButton",onclick:c},"Request one-time code"),P("button",{className:Hr,onclick:l},"Close")),enterOTP:()=>P("div",{className:Vr},P("input",{id:a+"otp",type:"text",placeholder:"One-time code",onkeyup:i(f),className:zr}),P("button",{id:a+"otpButton",onclick:f},"Verify code"),P("button",{className:Hr,onclick:l},"Close")),showEmail:()=>e?null:P("div",{className:Ho},P("div",{id:a+"userEmail",className:zo},n()),P("button",{className:Fo,onclick:Qo("#"+a+"userEmail")},P("img",{className:Vo,src:r()?t("/person_outline.svg"):null})))},A=b=>({init:ot,loggedOut:ot,checkEmail:Wt({displayState:m.enterOTP()}),wrongOTP:ot,oldOTP:ot,failedOTP:ot,signUpSuccess:ft(()=>window.location.reload()),signInSuccess:ft(()=>window.location.reload()),loggedIn:Wt({displayState:m.showEmail()}),logoutCompleted:ft(()=>window.location.reload())})[b.stState](b),_=()=>{r()||l(),s(u,{showMenu:!u.state().showMenu})},d=()=>s(u,{showMenu:!1}),y=()=>{d(),u.state().stState==="loggedOut"?s(u,{displayState:m.enterEmail()}):u.state().stState==="loggedIn"&&globalThis.stAuth.logout()},S=null,R=b=>{ct(S)&&!S.contains(b.target)&&d()},h=b=>{S=b,document.removeEventListener("click",R,!0)},v=b=>{S=b,h(b),document.addEventListener("click",R,!0)},C=b=>s(u,{menuItems:B(([w,J])=>P("div",{},P("a",{href:"#",className:Qt,onclick:()=>{d(),J()}},w)),b)}),j=()=>P("div",{id:a,className:Wo,style:"opacity:"+(u.state().stState=="init"?0:100)+"%;background:rgba(0,0,0,0)",onmouseleave:d,lifecycle:{added:v,removed:h}},P("button",{style:"width:32px;height:32px;padding:0;border:0;background-color:white;cursor:pointer",onclick:_},P("img",{style:"width:32px;height:32px",src:t("/menu.svg")})),u.state().displayState,u.state().showMenu?P("div",{className:$o},r()?null:P("div",{},P("a",{href:"#",className:Qt,onclick:y},"login")),r()?P("div",{className:Qt,style:"cursor:default;font-variant:normal"},n()):null,...u.state().menuItems,r()?P("div",{},P("a",{href:"#",className:Qt,onclick:y},"logout")):null):null);u.subscribe(()=>{pt(a).replaceWith(j()),Fr(a+"email"),Fr(a+"otp")}),Qr(j());let I={catch:(b,w)=>showError(b,w),state:(b,w)=>s(u,{stState:b,stData:w})},G=(b,w)=>I.catch(b+(w.isSuperTokensGeneralError?" (some other failure)":""),w);supertokens.init({appInfo:{apiDomain:"{{.Cfg.APIDomain}}",apiBasePath:"{{.Cfg.APIBasePath}}",appName:"{{.Cfg.AppName}}"},recipeList:[supertokensEmailVerification.init(),supertokensSession.init(),supertokensPasswordless.init()]});let F=async b=>{try{(await supertokensPasswordless.createCode({email:b})).status!="SIGN_IN_UP_NOT_ALLOWED"&&I.state("checkEmail")}catch(w){G("sendOTP",w)}},K=async b=>{try{let w=await supertokensPasswordless.consumeCode({userInputCode:b});w.status==="OK"?w.createdNewRecipeUser&&w.user.loginMethods.length===1?I.state("signUpSuccess",w.user.id):I.state("signInSuccess",w.user.id):w.status==="INCORRECT_USER_INPUT_CODE_ERROR"?I.state("wrongOTP"):w.status==="EXPIRED_USER_INPUT_CODE_ERROR"?I.state("oldOTP"):I.state("failedOTP")}catch(w){G("handleOTP",w)}},k=async()=>{await supertokensSession.signOut(),I.state("logoutCompleted")};globalThis.stAuth={sendOTP:F,verifyOTP:K,logout:k,isLoggedIn:r,userEmail:n,userID:o,setMenuItems:C},ct(globalThis.authHooks)&&globalThis.authHooks.forEach(([b,w])=>{let J=I[b];I[b]=(at,it)=>{J(at,it),w(at,it)}}),ct(globalThis.menuItems)&&C(globalThis.menuItems),r()?I.state("loggedIn",n()):I.state("loggedOut"),lt({targets:"#"+a,opacity:"100%",duration:1e3,easing:"easeInOutQuad",complete:()=>lt.remove("#"+a)})};})();