!function(e){"use strict";function t(){}var n=function(e,t){return function(){for(var n=[],r=0;r=e.length&&t(n)}}(i))}))}))}(e,qt.nu)},Wt=function(e){return{is:function(t){return e===t},isValue:l,isError:c,getOr:r(e),getOrThunk:r(e),getOrDie:r(e),or:function(t){return Wt(e)},orThunk:function(t){return Wt(e)},fold:function(t,n){return n(e)},map:function(t){return Wt(t(e))},mapError:function(t){return Wt(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOption:function(){return R.some(e)}}},Kt=function(e){return{is:c,isValue:c,isError:l,getOr:o,getOrThunk:function(e){return e()},getOrDie:function(){return function(e){return function(){throw new Error(e)}}(String(e))()},or:function(e){return e},orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return Kt(e)},mapError:function(t){return Kt(t(e))},each:t,bind:function(t){return Kt(e)},exists:c,forall:l,toOption:R.none}},Xt={value:Wt,error:Kt,fromOption:function(e,t){return e.fold((function(){return Kt(t)}),Wt)}},Yt=window.Promise?window.Promise:(Pt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Lt=Jt.immediateFn||"function"==typeof e.setImmediate&&e.setImmediate||function(t){e.setTimeout(t,1)},Jt.prototype.catch=function(e){return this.then(null,e)},Jt.prototype.then=function(e,t){var n=this;return new Jt((function(r,o){Qt.call(n,new nn(e,t,r,o))}))},Jt.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&Pt(arguments[0])?arguments[0]:arguments);return new Jt((function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,(function(e){o(i,e)}),n)}e[i]=a,0==--r&&t(e)}catch(h){n(h)}}for(var i=0;i\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Kn=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xn=/[<>&\"\']/g,Yn=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Gn={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Jn(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n":">","&":"&","`":"`"},_n={"<":"<",">":">","&":"&",""":'"',"'":"'"},Rn=Jn("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var tr={encodeRaw:Qn,encodeAllRaw:function(e){return(""+e).replace(Xn,(function(e){return Dn[e]||e}))},encodeNumeric:Zn,encodeNamed:er,getEncodeFunc:function(e,t){var n=Jn(t)||Rn,r=$n(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?Wn:Kn,(function(e){return void 0!==Dn[e]?Dn[e]:void 0!==n[e]?n[e]:1>10),56320+(1023&t))):Gn[t]||String.fromCharCode(t):_n[e]||Rn[e]||function(e){var t;return(t=pt.fromTag("div").dom()).innerHTML=e,t.textContent||t.innerText||e}(e)}))}},nr={},rr={},or=Sn.makeMap,ir=Sn.each,ar=Sn.extend,ur=Sn.explode,sr=Sn.inArray,cr=function(e,t){return(e=Sn.trim(e))?e.split(t||" "):[]},lr=function(e){function t(e,t,n){function o(e,t){var n,r,o={};for(n=0,r=e.length;n