play.js 366 KB

123456789101112
  1. !function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e){"use strict";var t=function(e){return e&&e.__esModule?e["default"]:e};e("es6-shim");var n=t(e("react")),r=t(e("./io")),o=t(e("./components/GameInterface")),i=window.location.pathname.replace("/play/","").split("/");i[1]=parseInt(i[1],10),i[2]=parseInt(i[2],10),n.render(n.createElement(o,{io:r,params:i}),document.getElementById("container"))},{"./components/GameInterface":260,"./io":267,"es6-shim":5,react:201}],2:[function(e,t){function n(){if(!a){a=!0;for(var e,t=i.length;t;){e=i,i=[];for(var n=-1;++n<t;)e[n]();t=i.length}a=!1}}function r(){}var o=t.exports={},i=[],a=!1;o.nextTick=function(e){i.push(e),a||setTimeout(n,0)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=r,o.addListener=r,o.once=r,o.off=r,o.removeListener=r,o.removeAllListeners=r,o.emit=r,o.binding=function(){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],3:[function(e,t,n){"use strict";var r=function(e){function t(){at=new Array(128),st={w:L,b:L},ut=j,ct={w:0,b:0},lt=L,pt=0,ft=1,ht=[],dt={},s(i())}function n(){r(K)}function r(e){var n=e.split(/\s+/),r=n[0],a=0;if(!o(e).valid)return!1;t();for(var u=0;u<r.length;u++){var l=r.charAt(u);if("/"===l)a+=8;else if(k(l))a+=parseInt(l,10);else{var p="a">l?j:A;c({type:l.toLowerCase(),color:p},S(a)),a++}}return ut=n[1],n[2].indexOf("K")>-1&&(ct.w|=Z.KSIDE_CASTLE),n[2].indexOf("Q")>-1&&(ct.w|=Z.QSIDE_CASTLE),n[2].indexOf("k")>-1&&(ct.b|=Z.KSIDE_CASTLE),n[2].indexOf("q")>-1&&(ct.b|=Z.QSIDE_CASTLE),lt="-"===n[3]?L:ot[n[3]],pt=parseInt(n[4],10),ft=parseInt(n[5],10),s(i()),!0}function o(e){var t={0:"No errors.",1:"FEN string must contain six space-delimited fields.",2:"6th field (move number) must be a positive integer.",3:"5th field (half move counter) must be a non-negative integer.",4:"4th field (en-passant square) is invalid.",5:"3rd field (castling availability) is invalid.",6:"2nd field (side to move) is invalid.",7:"1st field (piece positions) does not contain 8 '/'-delimited rows.",8:"1st field (piece positions) is invalid [consecutive numbers].",9:"1st field (piece positions) is invalid [invalid piece].",10:"1st field (piece positions) is invalid [row too large]."},n=e.split(/\s+/);if(6!==n.length)return{valid:!1,error_number:1,error:t[1]};if(isNaN(n[5])||parseInt(n[5],10)<=0)return{valid:!1,error_number:2,error:t[2]};if(isNaN(n[4])||parseInt(n[4],10)<0)return{valid:!1,error_number:3,error:t[3]};if(!/^(-|[abcdefgh][36])$/.test(n[3]))return{valid:!1,error_number:4,error:t[4]};if(!/^(KQ?k?q?|Qk?q?|kq?|q|-)$/.test(n[2]))return{valid:!1,error_number:5,error:t[5]};if(!/^(w|b)$/.test(n[1]))return{valid:!1,error_number:6,error:t[6]};var r=n[0].split("/");if(8!==r.length)return{valid:!1,error_number:7,error:t[7]};for(var o=0;o<r.length;o++){for(var i=0,a=!1,s=0;s<r[o].length;s++)if(isNaN(r[o][s])){if(!/^[prnbqkPRNBQK]$/.test(r[o][s]))return{valid:!1,error_number:9,error:t[9]};i+=1,a=!1}else{if(a)return{valid:!1,error_number:8,error:t[8]};i+=parseInt(r[o][s],10),a=!0}if(8!==i)return{valid:!1,error_number:10,error:t[10]}}return{valid:!0,error_number:0,error:t[0]}}function i(){for(var e=0,t="",n=ot.a8;n<=ot.h1;n++){if(null==at[n])e++;else{e>0&&(t+=e,e=0);var r=at[n].color,o=at[n].type;t+=r===j?o.toUpperCase():o.toLowerCase()}n+1&136&&(e>0&&(t+=e),n!==ot.h1&&(t+="/"),e=0,n+=8)}var i="";ct[j]&Z.KSIDE_CASTLE&&(i+="K"),ct[j]&Z.QSIDE_CASTLE&&(i+="Q"),ct[A]&Z.KSIDE_CASTLE&&(i+="k"),ct[A]&Z.QSIDE_CASTLE&&(i+="q"),i=i||"-";var a=lt===L?"-":S(lt);return[t,ut,i,a,pt,ft].join(" ")}function a(e){for(var t=0;t<e.length;t+=2)"string"==typeof e[t]&&"string"==typeof e[t+1]&&(dt[e[t]]=e[t+1]);return dt}function s(e){ht.length>0||(e!==K?(dt.SetUp="1",dt.FEN=e):(delete dt.SetUp,delete dt.FEN))}function u(e){var t=at[ot[e]];return t?{type:t.type,color:t.color}:null}function c(e,t){if(!("type"in e&&"color"in e))return!1;if(-1===W.indexOf(e.type.toLowerCase()))return!1;if(!(t in ot))return!1;var n=ot[t];return e.type==V&&st[e.color]!=L&&st[e.color]!=n?!1:(at[n]={type:e.type,color:e.color},e.type===V&&(st[e.color]=n),s(i()),!0)}function l(e){var t=u(e);return at[ot[e]]=null,t&&t.type===V&&(st[t.color]=L),s(i()),t}function p(e,t,n,r,o){var i={color:ut,from:t,to:n,flags:r,piece:e[t].type};return o&&(i.flags|=Z.PROMOTION,i.promotion=o),e[n]?i.captured=e[n].type:r&Z.EP_CAPTURE&&(i.captured=U),i}function f(e){function t(e,t,n,r,o){if(e[n].type!==U||M(r)!==rt&&M(r)!==et)t.push(p(e,n,r,o));else for(var i=[z,q,F,B],a=0,s=i.length;s>a;a++)t.push(p(e,n,r,o,i[a]))}var n=[],r=ut,o=T(r),i={b:nt,w:tt},a=ot.a8,s=ot.h1,u=!1,c="undefined"!=typeof e&&"legal"in e?e.legal:!0;if("undefined"!=typeof e&&"square"in e){if(!(e.square in ot))return[];a=s=ot[e.square],u=!0}for(var l=a;s>=l;l++)if(136&l)l+=7;else{var f=at[l];if(null!=f&&f.color===r)if(f.type===U){var h=l+G[r][0];if(null==at[h]){t(at,n,l,h,Z.NORMAL);var h=l+G[r][1];i[r]===M(l)&&null==at[h]&&t(at,n,l,h,Z.BIG_PAWN)}for(m=2;4>m;m++){var h=l+G[r][m];136&h||(null!=at[h]&&at[h].color===o?t(at,n,l,h,Z.CAPTURE):h===lt&&t(at,n,l,lt,Z.EP_CAPTURE))}}else for(var m=0,y=$[f.type].length;y>m;m++)for(var g=$[f.type][m],h=l;;){if(h+=g,136&h)break;if(null!=at[h]){if(at[h].color===r)break;t(at,n,l,h,Z.CAPTURE);break}if(t(at,n,l,h,Z.NORMAL),"n"===f.type||"k"===f.type)break}}if(!u||s===st[r]){if(ct[r]&Z.KSIDE_CASTLE){var _=st[r],b=_+2;null!=at[_+1]||null!=at[b]||d(o,st[r])||d(o,_+1)||d(o,b)||t(at,n,st[r],b,Z.KSIDE_CASTLE)}if(ct[r]&Z.QSIDE_CASTLE){var _=st[r],b=_-2;null!=at[_-1]||null!=at[_-2]||null!=at[_-3]||d(o,st[r])||d(o,_-1)||d(o,b)||t(at,n,st[r],b,Z.QSIDE_CASTLE)}}if(!c)return n;for(var E=[],l=0,y=n.length;y>l;l++)w(n[l]),v(r)||E.push(n[l]),C();return E}function h(e){var t="";if(e.flags&Z.KSIDE_CASTLE)t="O-O";else if(e.flags&Z.QSIDE_CASTLE)t="O-O-O";else{var n=R(e);e.piece!==U&&(t+=e.piece.toUpperCase()+n),e.flags&(Z.CAPTURE|Z.EP_CAPTURE)&&(e.piece===U&&(t+=S(e.from)[0]),t+="x"),t+=S(e.to),e.flags&Z.PROMOTION&&(t+="="+e.promotion.toUpperCase())}return w(e),m()&&(t+=y()?"#":"+"),C(),t}function d(e,t){for(var n=ot.a8;n<=ot.h1;n++)if(136&n)n+=7;else if(null!=at[n]&&at[n].color===e){var r=at[n],o=n-t,i=o+119;if(Q[i]&1<<X[r.type]){if(r.type===U){if(o>0){if(r.color===j)return!0}else if(r.color===A)return!0;continue}if("n"===r.type||"k"===r.type)return!0;for(var a=Y[i],s=n+a,u=!1;s!==t;){if(null!=at[s]){u=!0;break}s+=a}if(!u)return!0}}return!1}function v(e){return d(T(e),st[e])}function m(){return v(ut)}function y(){return m()&&0===f().length}function g(){return!m()&&0===f().length}function _(){for(var e={},t=[],n=0,r=0,o=ot.a8;o<=ot.h1;o++)if(r=(r+1)%2,136&o)o+=7;else{var i=at[o];i&&(e[i.type]=i.type in e?e[i.type]+1:1,i.type===F&&t.push(r),n++)}if(2===n)return!0;if(3===n&&(1===e[F]||1===e[B]))return!0;if(n===e[F]+2){for(var a=0,s=t.length,o=0;s>o;o++)a+=t[o];if(0===a||a===s)return!0}return!1}function b(){for(var e=[],t={},n=!1;;){var r=C();if(!r)break;e.push(r)}for(;;){var o=i().split(" ").slice(0,4).join(" ");if(t[o]=o in t?t[o]+1:1,t[o]>=3&&(n=!0),!e.length)break;w(e.pop())}return n}function E(e){ht.push({move:e,kings:{b:st.b,w:st.w},turn:ut,castling:{b:ct.b,w:ct.w},ep_square:lt,half_moves:pt,move_number:ft})}function w(e){var t=ut,n=T(t);if(E(e),at[e.to]=at[e.from],at[e.from]=null,e.flags&Z.EP_CAPTURE&&(ut===A?at[e.to-16]=null:at[e.to+16]=null),e.flags&Z.PROMOTION&&(at[e.to]={type:e.promotion,color:t}),at[e.to].type===V){if(st[at[e.to].color]=e.to,e.flags&Z.KSIDE_CASTLE){var r=e.to-1,o=e.to+1;at[r]=at[o],at[o]=null}else if(e.flags&Z.QSIDE_CASTLE){var r=e.to+1,o=e.to-2;at[r]=at[o],at[o]=null}ct[t]=""}if(ct[t])for(var i=0,a=it[t].length;a>i;i++)if(e.from===it[t][i].square&&ct[t]&it[t][i].flag){ct[t]^=it[t][i].flag;break}if(ct[n])for(var i=0,a=it[n].length;a>i;i++)if(e.to===it[n][i].square&&ct[n]&it[n][i].flag){ct[n]^=it[n][i].flag;break}lt=e.flags&Z.BIG_PAWN?"b"===ut?e.to-16:e.to+16:L,e.piece===U?pt=0:e.flags&(Z.CAPTURE|Z.EP_CAPTURE)?pt=0:pt++,ut===A&&ft++,ut=T(ut)}function C(){var e=ht.pop();if(null==e)return null;var t=e.move;st=e.kings,ut=e.turn,ct=e.castling,lt=e.ep_square,pt=e.half_moves,ft=e.move_number;var n=ut,r=T(ut);if(at[t.from]=at[t.to],at[t.from].type=t.piece,at[t.to]=null,t.flags&Z.CAPTURE)at[t.to]={type:t.captured,color:r};else if(t.flags&Z.EP_CAPTURE){var o;o=n===A?t.to-16:t.to+16,at[o]={type:U,color:r}}if(t.flags&(Z.KSIDE_CASTLE|Z.QSIDE_CASTLE)){var i,a;t.flags&Z.KSIDE_CASTLE?(i=t.to+1,a=t.to-1):t.flags&Z.QSIDE_CASTLE&&(i=t.to-2,a=t.to+1),at[i]=at[a],at[a]=null}return t}function R(e){for(var t=f(),n=e.from,r=e.to,o=e.piece,i=0,a=0,s=0,u=0,c=t.length;c>u;u++){var l=t[u].from,p=t[u].to,h=t[u].piece;o===h&&n!==l&&r===p&&(i++,M(n)===M(l)&&a++,x(n)===x(l)&&s++)}return i>0?a>0&&s>0?S(n):S(n).charAt(s>0?1:0):""}function O(){for(var e=" +------------------------+\n",t=ot.a8;t<=ot.h1;t++){if(0===x(t)&&(e+=" "+"87654321"[M(t)]+" |"),null==at[t])e+=" . ";else{var n=at[t].type,r=at[t].color,o=r===j?n.toUpperCase():n.toLowerCase();e+=" "+o+" "}t+1&136&&(e+="|\n",t+=8)}return e+=" +------------------------+\n",e+=" a b c d e f g h\n"}function M(e){return e>>4}function x(e){return 15&e}function S(e){var t=x(e),n=M(e);return"abcdefgh".substring(t,t+1)+"87654321".substring(n,n+1)}function T(e){return e===j?A:j}function k(e){return-1!=="0123456789".indexOf(e)}function I(e){var t=P(e);t.san=h(t),t.to=S(t.to),t.from=S(t.from);var n="";for(var r in Z)Z[r]&t.flags&&(n+=J[r]);return t.flags=n,t}function P(e){var t=e instanceof Array?[]:{};for(var n in e)t[n]="object"==typeof n?P(e[n]):e[n];return t}function D(e){return e.replace(/^\s+|\s+$/g,"")}function N(e){for(var t=f({legal:!1}),n=0,r=ut,o=0,i=t.length;i>o;o++){if(w(t[o]),!v(r))if(e-1>0){var a=N(e-1);n+=a}else n++;C()}return n}var A="b",j="w",L=-1,U="p",B="n",F="b",q="r",z="q",V="k",W="pnbrqkPNBRQK",K="rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",H=["1-0","0-1","1/2-1/2","*"],G={b:[16,32,17,15],w:[-16,-32,-17,-15]},$={n:[-18,-33,-31,-14,18,33,31,14],b:[-17,-15,17,15],r:[-16,1,16,-1],q:[-17,-16,-15,1,17,16,15,-1],k:[-17,-16,-15,1,17,16,15,-1]},Q=[20,0,0,0,0,0,0,24,0,0,0,0,0,0,20,0,0,20,0,0,0,0,0,24,0,0,0,0,0,20,0,0,0,0,20,0,0,0,0,24,0,0,0,0,20,0,0,0,0,0,0,20,0,0,0,24,0,0,0,20,0,0,0,0,0,0,0,0,20,0,0,24,0,0,20,0,0,0,0,0,0,0,0,0,0,20,2,24,2,20,0,0,0,0,0,0,0,0,0,0,0,2,53,56,53,2,0,0,0,0,0,0,24,24,24,24,24,24,56,0,56,24,24,24,24,24,24,0,0,0,0,0,0,2,53,56,53,2,0,0,0,0,0,0,0,0,0,0,0,20,2,24,2,20,0,0,0,0,0,0,0,0,0,0,20,0,0,24,0,0,20,0,0,0,0,0,0,0,0,20,0,0,0,24,0,0,0,20,0,0,0,0,0,0,20,0,0,0,0,24,0,0,0,0,20,0,0,0,0,20,0,0,0,0,0,24,0,0,0,0,0,20,0,0,20,0,0,0,0,0,0,24,0,0,0,0,0,0,20],Y=[17,0,0,0,0,0,0,16,0,0,0,0,0,0,15,0,0,17,0,0,0,0,0,16,0,0,0,0,0,15,0,0,0,0,17,0,0,0,0,16,0,0,0,0,15,0,0,0,0,0,0,17,0,0,0,16,0,0,0,15,0,0,0,0,0,0,0,0,17,0,0,16,0,0,15,0,0,0,0,0,0,0,0,0,0,17,0,16,0,15,0,0,0,0,0,0,0,0,0,0,0,0,17,16,15,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,-1,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,-15,-16,-17,0,0,0,0,0,0,0,0,0,0,0,0,-15,0,-16,0,-17,0,0,0,0,0,0,0,0,0,0,-15,0,0,-16,0,0,-17,0,0,0,0,0,0,0,0,-15,0,0,0,-16,0,0,0,-17,0,0,0,0,0,0,-15,0,0,0,0,-16,0,0,0,0,-17,0,0,0,0,-15,0,0,0,0,0,-16,0,0,0,0,0,-17,0,0,-15,0,0,0,0,0,0,-16,0,0,0,0,0,0,-17],X={p:0,n:1,b:2,r:3,q:4,k:5},J={NORMAL:"n",CAPTURE:"c",BIG_PAWN:"b",EP_CAPTURE:"e",PROMOTION:"p",KSIDE_CASTLE:"k",QSIDE_CASTLE:"q"},Z={NORMAL:1,CAPTURE:2,BIG_PAWN:4,EP_CAPTURE:8,PROMOTION:16,KSIDE_CASTLE:32,QSIDE_CASTLE:64},et=7,tt=6,nt=1,rt=0,ot={a8:0,b8:1,c8:2,d8:3,e8:4,f8:5,g8:6,h8:7,a7:16,b7:17,c7:18,d7:19,e7:20,f7:21,g7:22,h7:23,a6:32,b6:33,c6:34,d6:35,e6:36,f6:37,g6:38,h6:39,a5:48,b5:49,c5:50,d5:51,e5:52,f5:53,g5:54,h5:55,a4:64,b4:65,c4:66,d4:67,e4:68,f4:69,g4:70,h4:71,a3:80,b3:81,c3:82,d3:83,e3:84,f3:85,g3:86,h3:87,a2:96,b2:97,c2:98,d2:99,e2:100,f2:101,g2:102,h2:103,a1:112,b1:113,c1:114,d1:115,e1:116,f1:117,g1:118,h1:119},it={w:[{square:ot.a1,flag:Z.QSIDE_CASTLE},{square:ot.h1,flag:Z.KSIDE_CASTLE}],b:[{square:ot.a8,flag:Z.QSIDE_CASTLE},{square:ot.h8,flag:Z.KSIDE_CASTLE}]},at=new Array(128),st={w:L,b:L},ut=j,ct={w:0,b:0},lt=L,pt=0,ft=1,ht=[],dt={};return r("undefined"==typeof e?K:e),{WHITE:j,BLACK:A,PAWN:U,KNIGHT:B,BISHOP:F,ROOK:q,QUEEN:z,KING:V,SQUARES:function(){for(var e=[],t=ot.a8;t<=ot.h1;t++)136&t?t+=7:e.push(S(t));return e}(),FLAGS:J,load:function(e){return r(e)},reset:function(){return n()},moves:function(e){for(var t=f(e),n=[],r=0,o=t.length;o>r;r++)n.push("undefined"!=typeof e&&"verbose"in e&&e.verbose?I(t[r]):h(t[r]));return n},in_check:function(){return m()},in_checkmate:function(){return y()},in_stalemate:function(){return g()},in_draw:function(){return pt>=100||g()||_()||b()},insufficient_material:function(){return _()},in_threefold_repetition:function(){return b()},game_over:function(){return pt>=100||y()||g()||_()||b()},validate_fen:function(e){return o(e)},fen:function(){return i()},pgn:function(e){var t="object"==typeof e&&"string"==typeof e.newline_char?e.newline_char:"\n",n="object"==typeof e&&"number"==typeof e.max_width?e.max_width:0,r=[],o=!1;for(var i in dt)r.push("["+i+' "'+dt[i]+'"]'+t),o=!0;o&&ht.length&&r.push(t);for(var a=[];ht.length>0;)a.push(C());for(var s=[],u="",c=1;a.length>0;){var l=a.pop();1===c&&"b"===l.color?(u="1. ...",c++):"w"===l.color&&(u.length&&s.push(u),u=c+".",c++),u=u+" "+h(l),w(l)}if(u.length&&s.push(u),"undefined"!=typeof dt.Result&&s.push(dt.Result),0===n)return r.join("")+s.join(" ");for(var p=0,i=0;i<s.length;i++)p+s[i].length>n&&0!==i?(" "===r[r.length-1]&&r.pop(),r.push(t),p=0):0!==i&&(r.push(" "),p++),r.push(s[i]),p+=s[i].length;return r.join("")},load_pgn:function(e,t){function r(e){return e.replace(/\\/g,"\\")}function o(e){for(var t=f(),n=0,r=t.length;r>n;n++)if(e.replace(/[+#?!=]+$/,"")==h(t[n]).replace(/[+#?!=]+$/,""))return t[n];return null}function i(e){return o(D(e))}function s(e){var t=!1;for(var n in e)t=!0;return t}function u(e,t){for(var n="object"==typeof t&&"string"==typeof t.newline_char?t.newline_char:"\r?\n",o={},i=e.split(new RegExp(r(n))),a="",s="",u=0;u<i.length;u++)a=i[u].replace(/^\[([A-Z][A-Za-z]*)\s.*\]$/,"$1"),s=i[u].replace(/^\[[A-Za-z]+\s"(.*)"\]$/,"$1"),D(a).length>0&&(o[a]=s);return o}var c="object"==typeof t&&"string"==typeof t.newline_char?t.newline_char:"\r?\n",l=new RegExp("^(\\[(.|"+r(c)+")*\\])("+r(c)+")*1.("+r(c)+"|.)*$","g"),p=e.replace(l,"$1");"["!==p[0]&&(p=""),n();var d=u(p,t);for(var v in d)a([v,d[v]]);var m=e.replace(p,"").replace(new RegExp(r(c),"g")," ");m=m.replace(/(\{[^}]+\})+?/g,""),m=m.replace(/\d+\./g,"");var y=D(m).split(new RegExp(/\s+/));y=y.join(",").replace(/,,+/g,",").split(",");for(var g="",_=0;_<y.length-1;_++){if(g=i(y[_]),null==g)return!1;w(g)}if(g=y[y.length-1],H.indexOf(g)>-1)s(dt)&&"undefined"==typeof dt.Result&&a(["Result",g]);else{if(g=i(g),null==g)return!1;w(g)}return!0},header:function(){return a(arguments)},ascii:function(){return O()},turn:function(){return ut},move:function(e){var t=null,n=f();if("string"==typeof e){for(var r=0,o=n.length;o>r;r++)if(e===h(n[r])){t=n[r];break}}else if("object"==typeof e)for(var r=0,o=n.length;o>r;r++)if(!(e.from!==S(n[r].from)||e.to!==S(n[r].to)||"promotion"in n[r]&&e.promotion!==n[r].promotion)){t=n[r];break}if(!t)return null;var i=I(t);return w(t),i},undo:function(){var e=C();return e?I(e):null},clear:function(){return t()},put:function(e,t){return c(e,t)},get:function(e){return u(e)},remove:function(e){return l(e)},perft:function(e){return N(e)},square_color:function(e){if(e in ot){var t=ot[e];return(M(t)+x(t))%2===0?"light":"dark"}return null},history:function(e){for(var t=[],n=[],r=("undefined"!=typeof e&&"verbose"in e&&e.verbose);ht.length>0;)t.push(C());for(;t.length>0;){var o=t.pop();n.push(r?I(o):h(o)),w(o)}return n}}};"undefined"!=typeof n&&(n.Chess=r),"undefined"!=typeof define&&define(function(){return r})},{}],4:[function(e,t){function n(){for(var e,t="",r=0;r<arguments.length;r++)if(e=arguments[r])if("string"==typeof e||"number"==typeof e)t+=" "+e;else if("[object Array]"===Object.prototype.toString.call(e))t+=" "+n.apply(null,e);else if("object"==typeof e)for(var o in e)e.hasOwnProperty(o)&&e[o]&&(t+=" "+o);return t.substr(1)}"undefined"!=typeof t&&t.exports&&(t.exports=n)},{}],5:[function(e,t,n){(function(e){!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof n?t.exports=r():e.returnExports=r()}(this,function(){"use strict";function t(e){var t=[];for(var n in e)t.push(n);return t}var n,r=function(e){try{e()}catch(t){return!1}return!0},o=function(e,t){try{var n=function(){e.apply(this,arguments)};return n.__proto__?(Object.setPrototypeOf(n,e),n.prototype=Object.create(e.prototype,{constructor:{value:e}}),t(n)):!1}catch(r){return!1}},i=function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}},a=function(){var e=!1;if(String.prototype.startsWith)try{"/a/".startsWith(/a/)}catch(t){e=!0}return e},s=new Function("return this;"),u=s(),c=u.isFinite,l=!!Object.defineProperty&&i(),p=a(),f=Function.call.bind(String.prototype.indexOf),h=Function.call.bind(Object.prototype.toString),d=Function.call.bind(Object.prototype.hasOwnProperty),v=function(){},m=u.Symbol||{},y=m.species||"@@species",g={object:function(e){return null!==e&&"object"==typeof e},string:function(e){return"[object String]"===h(e)},regex:function(e){return"[object RegExp]"===h(e)},symbol:function(e){return"function"==typeof u.Symbol&&"symbol"==typeof e}},_=function(e,t,n,r){!r&&t in e||(l?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n}):e[t]=n)},b={getter:function(e,t,n){if(!l)throw new TypeError("getters require true ES5 support");Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:n})},proxy:function(e,t,n){if(!l)throw new TypeError("getters require true ES5 support");var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,{configurable:r.configurable,enumerable:r.enumerable,get:function(){return e[t]},set:function(n){e[t]=n}})},redefine:function(e,t,n){if(l){var r=Object.getOwnPropertyDescriptor(e,t);r.value=n,Object.defineProperty(e,t,r)}else e[t]=n},preserveToString:function(e,t){_(e,"toString",t.toString.bind(t),!0)}},E=function(e,t){Object.keys(t).forEach(function(n){var r=t[n];_(e,n,r,!1)})},w=Object.create||function(e,t){function n(){}n.prototype=e;var r=new n;return"undefined"!=typeof t&&E(r,t),r},C=g.symbol(m.iterator)?m.iterator:"_es6-shim iterator_";u.Set&&"function"==typeof(new u.Set)["@@iterator"]&&(C="@@iterator");var R=function(e,t){t||(t=function(){return this});var n={};n[C]=t,E(e,n),!e[C]&&g.symbol(C)&&(e[C]=t)},O=function(e){var t=h(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===h(e.callee)),n},M=Function.call.bind(Function.apply),x={Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!x.IsCallable(e))throw new TypeError(e+" is not a function");return M(e,t,n)},RequireObjectCoercible:function(e,t){if(null==e)throw new TypeError(t||"Cannot call method on "+e)},TypeIsObject:function(e){return null!=e&&Object(e)===e},ToObject:function(e,t){return x.RequireObjectCoercible(e,t),Object(e)},IsCallable:function(e){return"function"==typeof e&&"[object Function]"===h(e)},ToInt32:function(e){return x.ToNumber(e)>>0},ToUint32:function(e){return x.ToNumber(e)>>>0},ToNumber:function(e){if("[object Symbol]"===h(e))throw new TypeError("Cannot convert a Symbol value to a number");return+e},ToInteger:function(e){var t=x.ToNumber(e);return Number.isNaN(t)?0:0!==t&&Number.isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t},ToLength:function(e){var t=x.ToInteger(e);return 0>=t?0:t>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t},SameValue:function(e,t){return e===t?0===e?1/e===1/t:!0:Number.isNaN(e)&&Number.isNaN(t)},SameValueZero:function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)},IsIterable:function(e){return x.TypeIsObject(e)&&("undefined"!=typeof e[C]||O(e))},GetIterator:function(e){if(O(e))return new n(e,"value");var t=e[C];if(!x.IsCallable(t))throw new TypeError("value is not an iterable");var r=t.call(e);if(!x.TypeIsObject(r))throw new TypeError("bad iterator");return r},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!x.TypeIsObject(t))throw new TypeError("bad iterator");return t},Construct:function(e,t){var n;n=x.IsCallable(e[y])?e[y]():w(e.prototype||null),E(n,{_es6construct:!0});var r=x.Call(e,n,t);return x.TypeIsObject(r)?r:n},CreateHTML:function(e,t,n,r){var o=String(e),i="<"+t;if(""!==n){var a=String(r),s=a.replace(/"/g,"&quot;");i+=" "+n+'="'+s+'"'}var u=i+">",c=u+o;return c+"</"+t+">"}},S=function(e){if(!x.TypeIsObject(e))throw new TypeError("bad object");return e._es6construct||(e.constructor&&x.IsCallable(e.constructor[y])&&(e=e.constructor[y](e)),E(e,{_es6construct:!0})),e},T=function(){function e(e){var t=Math.floor(e),n=e-t;return.5>n?t:n>.5?t+1:t%2?t+1:t}function t(t,n,r){var o,i,a,s,u,c,l,p=(1<<n-1)-1;for(t!==t?(i=(1<<n)-1,a=Math.pow(2,r-1),o=0):1/0===t||t===-1/0?(i=(1<<n)-1,a=0,o=0>t?1:0):0===t?(i=0,a=0,o=1/t===-1/0?1:0):(o=0>t,t=Math.abs(t),t>=Math.pow(2,1-p)?(i=Math.min(Math.floor(Math.log(t)/Math.LN2),1023),a=e(t/Math.pow(2,i)*Math.pow(2,r)),a/Math.pow(2,r)>=2&&(i+=1,a=1),i>p?(i=(1<<n)-1,a=0):(i+=p,a-=Math.pow(2,r))):(i=0,a=e(t/Math.pow(2,1-p-r)))),u=[],s=r;s;s-=1)u.push(a%2?1:0),a=Math.floor(a/2);for(s=n;s;s-=1)u.push(i%2?1:0),i=Math.floor(i/2);for(u.push(o?1:0),u.reverse(),c=u.join(""),l=[];c.length;)l.push(parseInt(c.slice(0,8),2)),c=c.slice(8);return l}function n(e,t,n){var r,o,i,a,s,u,c,l,p=[];for(r=e.length;r;r-=1)for(i=e[r-1],o=8;o;o-=1)p.push(i%2?1:0),i>>=1;return p.reverse(),a=p.join(""),s=(1<<t-1)-1,u=parseInt(a.slice(0,1),2)?-1:1,c=parseInt(a.slice(1,1+t),2),l=parseInt(a.slice(1+t),2),c===(1<<t)-1?0!==l?0/0:1/0*u:c>0?u*Math.pow(2,c-s)*(1+l/Math.pow(2,n)):0!==l?u*Math.pow(2,-(s-1))*(l/Math.pow(2,n)):0>u?-0:0}function r(e){return n(e,8,23)}function o(e){return t(e,8,23)}var i={toFloat32:function(e){return r(o(e))}};if("undefined"!=typeof Float32Array){var a=new Float32Array(1);i.toFloat32=function(e){return a[0]=e,a[0]}}return i}();if(E(String,{fromCodePoint:function(){for(var e,t=[],n=0,r=arguments.length;r>n;n++){if(e=Number(arguments[n]),!x.SameValue(e,x.ToInteger(e))||0>e||e>1114111)throw new RangeError("Invalid code point "+e);65536>e?t.push(String.fromCharCode(e)):(e-=65536,t.push(String.fromCharCode((e>>10)+55296)),t.push(String.fromCharCode(e%1024+56320)))}return t.join("")},raw:function(e){var t=x.ToObject(e,"bad callSite"),n=t.raw,r=x.ToObject(n,"bad raw value"),o=r.length,i=x.ToLength(o);if(0>=i)return"";for(var a,s,u,c,l=[],p=0;i>p&&(a=String(p),s=r[a],u=String(s),l.push(u),!(p+1>=i));)s=p+1<arguments.length?arguments[p+1]:"",c=String(s),l.push(c),p++;return l.join("")}}),1!==String.fromCodePoint.length){var k=Function.apply.bind(String.fromCodePoint);_(String,"fromCodePoint",function(){return k(this,arguments)},!0)}var I=function Bt(e,t){if(1>t)return"";if(t%2)return Bt(e,t-1)+e;var n=Bt(e,t/2);return n+n},P=1/0,D={repeat:function(e){x.RequireObjectCoercible(this);var t=String(this);if(e=x.ToInteger(e),0>e||e>=P)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return I(t,e)},startsWith:function(e){x.RequireObjectCoercible(this);var t=String(this);if(g.regex(e))throw new TypeError('Cannot call method "startsWith" with a regex');e=String(e);var n=arguments.length>1?arguments[1]:void 0,r=Math.max(x.ToInteger(n),0);return t.slice(r,r+e.length)===e},endsWith:function(e){x.RequireObjectCoercible(this);var t=String(this);if(g.regex(e))throw new TypeError('Cannot call method "endsWith" with a regex');e=String(e);var n=t.length,r=arguments.length>1?arguments[1]:void 0,o="undefined"==typeof r?n:x.ToInteger(r),i=Math.min(Math.max(o,0),n);return t.slice(i-e.length,i)===e},includes:function(e){var t=arguments.length>1?arguments[1]:void 0;return-1!==f(this,e,t)},codePointAt:function(e){x.RequireObjectCoercible(this);var t=String(this),n=x.ToInteger(e),r=t.length;if(n>=0&&r>n){var o=t.charCodeAt(n),i=n+1===r;if(55296>o||o>56319||i)return o;var a=t.charCodeAt(n+1);return 56320>a||a>57343?o:1024*(o-55296)+(a-56320)+65536}}};E(String.prototype,D);var N=1!=="…".trim().length;if(N){delete String.prototype.trim;var A=[" \n \f\r   ᠎    ","          \u2028","\u2029"].join(""),j=new RegExp("(^["+A+"]+)|(["+A+"]+$)","g");E(String.prototype,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(j,"")}})}var L=function(e){x.RequireObjectCoercible(e),this._s=String(e),this._i=0};L.prototype.next=function(){var e=this._s,t=this._i;if("undefined"==typeof e||t>=e.length)return this._s=void 0,{value:void 0,done:!0};var n,r,o=e.charCodeAt(t);return 55296>o||o>56319||t+1===e.length?r=1:(n=e.charCodeAt(t+1),r=56320>n||n>57343?1:2),this._i=t+r,{value:e.substr(t,r),done:!1}},R(L.prototype),R(String.prototype,function(){return new L(this)}),p||(_(String.prototype,"startsWith",D.startsWith,!0),_(String.prototype,"endsWith",D.endsWith,!0));var U={from:function(e){var t=arguments.length>1?arguments[1]:void 0,n=x.ToObject(e,"bad iterable");if("undefined"!=typeof t&&!x.IsCallable(t))throw new TypeError("Array.from: when provided, the second argument must be a function");var r,o,i,a,s=arguments.length>2,u=s?arguments[2]:void 0,c=x.IsIterable(n);if(c){i=0,o=x.IsCallable(this)?Object(new this):[];var l,p=c?x.GetIterator(n):null;do l=x.IteratorNext(p),l.done||(a=l.value,o[i]=t?s?t.call(u,a,i):t(a,i):a,i+=1);while(!l.done);r=i}else for(r=x.ToLength(n.length),o=x.IsCallable(this)?Object(new this(r)):new Array(r),i=0;r>i;++i)a=n[i],o[i]=t?s?t.call(u,a,i):t(a,i):a;return o.length=r,o},of:function(){return Array.from.call(this,arguments)}};E(Array,U);var B=function(){try{return 0===Array.from({length:-1}).length}catch(e){return!1}};B()||_(Array,"from",U.from,!0);var F=function(e){return{value:e,done:0===arguments.length}};n=function(e,t){this.i=0,this.array=e,this.kind=t},E(n.prototype,{next:function(){var e=this.i,t=this.array;if(!(this instanceof n))throw new TypeError("Not an ArrayIterator");if("undefined"!=typeof t)for(var r=x.ToLength(t.length);r>e;e++){var o,i=this.kind;return"key"===i?o=e:"value"===i?o=t[e]:"entry"===i&&(o=[e,t[e]]),this.i=e+1,{value:o,done:!1}}return this.array=void 0,{value:void 0,done:!0}}}),R(n.prototype);var q=function(e,t){this.object=e,this.array=null,this.kind=t};E(q.prototype,{next:function(){var e,n=this.array;if(!(this instanceof q))throw new TypeError("Not an ObjectIterator");for(null===n&&(n=this.array=t(this.object));x.ToLength(n.length)>0;)if(e=n.shift(),e in this.object)return F("key"===this.kind?e:"value"===this.kind?this.object[e]:[e,this.object[e]]);return F()}}),R(q.prototype);var z={copyWithin:function(e,t){var n=arguments[2],r=x.ToObject(this),o=x.ToLength(r.length);e=x.ToInteger(e),t=x.ToInteger(t);var i=0>e?Math.max(o+e,0):Math.min(e,o),a=0>t?Math.max(o+t,0):Math.min(t,o);n="undefined"==typeof n?o:x.ToInteger(n);var s=0>n?Math.max(o+n,0):Math.min(n,o),u=Math.min(s-a,o-i),c=1;for(i>a&&a+u>i&&(c=-1,a+=u-1,i+=u-1);u>0;)d(r,a)?r[i]=r[a]:delete r[a],a+=c,i+=c,u-=1;return r},fill:function(e){var t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=x.ToObject(this),o=x.ToLength(r.length);t=x.ToInteger("undefined"==typeof t?0:t),n=x.ToInteger("undefined"==typeof n?o:n);for(var i=0>t?Math.max(o+t,0):Math.min(t,o),a=0>n?o+n:n,s=i;o>s&&a>s;++s)r[s]=e;return r},find:function(e){var t=x.ToObject(this),n=x.ToLength(t.length);if(!x.IsCallable(e))throw new TypeError("Array#find: predicate must be a function");for(var r,o=arguments.length>1?arguments[1]:null,i=0;n>i;i++)if(r=t[i],o){if(e.call(o,r,i,t))return r}else if(e(r,i,t))return r},findIndex:function(e){var t=x.ToObject(this),n=x.ToLength(t.length);if(!x.IsCallable(e))throw new TypeError("Array#findIndex: predicate must be a function");for(var r=arguments.length>1?arguments[1]:null,o=0;n>o;o++)if(r){if(e.call(r,t[o],o,t))return o}else if(e(t[o],o,t))return o;return-1},keys:function(){return new n(this,"key")},values:function(){return new n(this,"value")},entries:function(){return new n(this,"entry")}};if(Array.prototype.keys&&!x.IsCallable([1].keys().next)&&delete Array.prototype.keys,Array.prototype.entries&&!x.IsCallable([1].entries().next)&&delete Array.prototype.entries,Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[C]&&(E(Array.prototype,{values:Array.prototype[C]}),g.symbol(m.unscopables)&&(Array.prototype[m.unscopables].values=!0)),Array.prototype.values&&"values"!==Array.prototype.values.name){var V=Array.prototype.values;_(Array.prototype,"values",function(){return V.call(this)},!0),_(Array.prototype,C,Array.prototype.values,!0),b.preserveToString(Array.prototype.values,V)}E(Array.prototype,z),R(Array.prototype,function(){return this.values()}),Object.getPrototypeOf&&R(Object.getPrototypeOf([].values()));var W=Math.pow(2,53)-1;E(Number,{MAX_SAFE_INTEGER:W,MIN_SAFE_INTEGER:-W,EPSILON:2.220446049250313e-16,parseInt:u.parseInt,parseFloat:u.parseFloat,isFinite:function(e){return"number"==typeof e&&c(e)},isInteger:function(e){return Number.isFinite(e)&&x.ToInteger(e)===e},isSafeInteger:function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER},isNaN:function(e){return e!==e}}),[,1].find(function(e,t){return 0===t})||_(Array.prototype,"find",z.find,!0),0!==[,1].findIndex(function(e,t){return 0===t})&&_(Array.prototype,"findIndex",z.findIndex,!0),l&&E(Object,{assign:function(e){if(!x.TypeIsObject(e))throw new TypeError("target must be an object");return Array.prototype.reduce.call(arguments,function(e,t){return Object.keys(Object(t)).reduce(function(e,n){return e[n]=t[n],e},e)})},is:function(e,t){return x.SameValue(e,t)},setPrototypeOf:function(e,t){var n,r=function(e,t){if(!x.TypeIsObject(e))throw new TypeError("cannot set prototype on a non-object");if(null!==t&&!x.TypeIsObject(t))throw new TypeError("can only set prototype to an object or null"+t)},o=function(e,t){return r(e,t),n.call(e,t),e};try{n=e.getOwnPropertyDescriptor(e.prototype,t).set,n.call({},null)}catch(i){if(e.prototype!=={}[t])return;n=function(e){this[t]=e},o.polyfill=o(o({},null),e.prototype)instanceof e}return o}(Object,"__proto__")}),Object.setPrototypeOf&&Object.getPrototypeOf&&null!==Object.getPrototypeOf(Object.setPrototypeOf({},null))&&null===Object.getPrototypeOf(Object.create(null))&&!function(){var e=Object.create(null),t=Object.getPrototypeOf,n=Object.setPrototypeOf;Object.getPrototypeOf=function(n){var r=t(n);return r===e?null:r},Object.setPrototypeOf=function(t,r){return null===r&&(r=e),n(t,r)},Object.setPrototypeOf.polyfill=!1}();var K=function(){try{return Object.keys("foo"),!0}catch(e){return!1}}();if(!K){var H=Object.keys;_(Object,"keys",function(e){return H(x.ToObject(e))},!0),b.preserveToString(Object.keys,H)}if(Object.getOwnPropertyNames){var G=function(){try{return Object.getOwnPropertyNames("foo"),!0}catch(e){return!1}}();if(!G){var $=Object.getOwnPropertyNames;_(Object,"getOwnPropertyNames",function(e){return $(x.ToObject(e))},!0),b.preserveToString(Object.getOwnPropertyNames,$)}}if(Object.getOwnPropertyDescriptor){var Q=function(){try{return Object.getOwnPropertyDescriptor("foo","bar"),!0}catch(e){return!1}}();if(!Q){var Y=Object.getOwnPropertyDescriptor;_(Object,"getOwnPropertyDescriptor",function(e,t){return Y(x.ToObject(e),t)},!0),b.preserveToString(Object.getOwnPropertyDescriptor,Y)}}if(Object.seal){var X=function(){try{return Object.seal("foo"),!0}catch(e){return!1}}();if(!X){var J=Object.seal;
  2. _(Object,"seal",function(e){return g.object(e)?J(e):e},!0),b.preserveToString(Object.seal,J)}}if(Object.isSealed){var Z=function(){try{return Object.isSealed("foo"),!0}catch(e){return!1}}();if(!Z){var et=Object.isSealed;_(Object,"isSealed",function(e){return g.object(e)?et(e):!0},!0),b.preserveToString(Object.isSealed,et)}}if(Object.freeze){var tt=function(){try{return Object.freeze("foo"),!0}catch(e){return!1}}();if(!tt){var nt=Object.freeze;_(Object,"freeze",function(e){return g.object(e)?nt(e):e},!0),b.preserveToString(Object.freeze,nt)}}if(Object.isFrozen){var rt=function(){try{return Object.isFrozen("foo"),!0}catch(e){return!1}}();if(!rt){var ot=Object.isFrozen;_(Object,"isFrozen",function(e){return g.object(e)?ot(e):!0},!0),b.preserveToString(Object.isFrozen,ot)}}if(Object.preventExtensions){var it=function(){try{return Object.preventExtensions("foo"),!0}catch(e){return!1}}();if(!it){var at=Object.preventExtensions;_(Object,"preventExtensions",function(e){return g.object(e)?at(e):e},!0),b.preserveToString(Object.preventExtensions,at)}}if(Object.isExtensible){var st=function(){try{return Object.isExtensible("foo"),!0}catch(e){return!1}}();if(!st){var ut=Object.isExtensible;_(Object,"isExtensible",function(e){return g.object(e)?ut(e):!1},!0),b.preserveToString(Object.isExtensible,ut)}}if(Object.getPrototypeOf){var ct=function(){try{return Object.getPrototypeOf("foo"),!0}catch(e){return!1}}();if(!ct){var lt=Object.getPrototypeOf;_(Object,"getPrototypeOf",function(e){return lt(x.ToObject(e))},!0),b.preserveToString(Object.getPrototypeOf,lt)}}if(!RegExp.prototype.flags&&l){var pt=function(){if(!x.TypeIsObject(this))throw new TypeError("Method called on incompatible type: must be an object.");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e};b.getter(RegExp.prototype,"flags",pt)}var ft=function(){try{return"/a/i"===String(new RegExp(/a/g,"i"))}catch(e){return!1}}();if(!ft&&l){var ht=RegExp,dt=function Ft(e,t){return g.regex(e)&&g.string(t)?new Ft(e.source,t):new ht(e,t)};b.preserveToString(dt,ht),Object.setPrototypeOf&&Object.setPrototypeOf(ht,dt),Object.getOwnPropertyNames(ht).forEach(function(e){"$input"!==e&&(e in v||b.proxy(ht,e,dt))}),dt.prototype=ht.prototype,b.redefine(ht.prototype,"constructor",dt),RegExp=dt,b.redefine(u,"RegExp",dt)}var vt={acosh:function(e){var t=Number(e);return Number.isNaN(t)||1>e?0/0:1===t?0:1/0===t?t:Math.log(t/Math.E+Math.sqrt(t+1)*Math.sqrt(t-1)/Math.E)+1},asinh:function(e){return e=Number(e),0!==e&&c(e)?0>e?-Math.asinh(-e):Math.log(e+Math.sqrt(e*e+1)):e},atanh:function(e){return e=Number(e),Number.isNaN(e)||-1>e||e>1?0/0:-1===e?-1/0:1===e?1/0:0===e?e:.5*Math.log((1+e)/(1-e))},cbrt:function(e){if(e=Number(e),0===e)return e;var t,n=0>e;return n&&(e=-e),t=Math.pow(e,1/3),n?-t:t},clz32:function(e){e=Number(e);var t=x.ToUint32(e);return 0===t?32:32-t.toString(2).length},cosh:function(e){return e=Number(e),0===e?1:Number.isNaN(e)?0/0:c(e)?(0>e&&(e=-e),e>21?Math.exp(e)/2:(Math.exp(e)+Math.exp(-e))/2):1/0},expm1:function(e){var t=Number(e);if(t===-1/0)return-1;if(!c(t)||0===e)return t;if(Math.abs(t)>.5)return Math.exp(t)-1;for(var n=t,r=0,o=1;r+n!==r;)r+=n,o+=1,n*=t/o;return r},hypot:function(){var e=!1,t=!0,n=!1,r=[];if(Array.prototype.every.call(arguments,function(o){var i=Number(o);return Number.isNaN(i)?e=!0:1/0===i||i===-1/0?n=!0:0!==i&&(t=!1),n?!1:(e||r.push(Math.abs(i)),!0)}),n)return 1/0;if(e)return 0/0;if(t)return 0;r.sort(function(e,t){return t-e});var o=r[0],i=r.map(function(e){return e/o}),a=i.reduce(function(e,t){return e+t*t},0);return o*Math.sqrt(a)},log2:function(e){return Math.log(e)*Math.LOG2E},log10:function(e){return Math.log(e)*Math.LOG10E},log1p:function(e){var t=Number(e);return-1>t||Number.isNaN(t)?0/0:0===t||1/0===t?t:-1===t?-1/0:1+t-1===0?t:t*(Math.log(1+t)/(1+t-1))},sign:function(e){var t=+e;return 0===t?t:Number.isNaN(t)?t:0>t?-1:1},sinh:function(e){var t=Number(e);return c(e)&&0!==e?Math.abs(t)<1?(Math.expm1(t)-Math.expm1(-t))/2:(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2:e},tanh:function(e){var t=Number(e);if(Number.isNaN(e)||0===t)return t;if(1/0===t)return 1;if(t===-1/0)return-1;var n=Math.expm1(t),r=Math.expm1(-t);return 1/0===n?1:1/0===r?-1:(n-r)/(Math.exp(t)+Math.exp(-t))},trunc:function(e){var t=Number(e);return 0>t?-Math.floor(-t):Math.floor(t)},imul:function(e,t){e=x.ToUint32(e),t=x.ToUint32(t);var n=e>>>16&65535,r=65535&e,o=t>>>16&65535,i=65535&t;return r*i+(n*i+r*o<<16>>>0)|0},fround:function(e){if(0===e||1/0===e||e===-1/0||Number.isNaN(e))return e;var t=Number(e);return T.toFloat32(t)}};E(Math,vt),_(Math,"tanh",vt.tanh,-2e-17!==Math.tanh(-2e-17)),_(Math,"acosh",vt.acosh,1/0===Math.acosh(Number.MAX_VALUE)),_(Math,"sinh",vt.sinh,-2e-17!==Math.sinh(-2e-17));var mt=Math.expm1(10);_(Math,"expm1",vt.expm1,mt>22025.465794806718||22025.465794806718>mt);var yt=0===Math.round(.5-Number.EPSILON/4)&&1===Math.round(-.5+Number.EPSILON/3.99),gt=Math.round;_(Math,"round",function(e){return e>=-.5&&.5>e&&0!==e?Math.sign(0*e):gt(e)},!yt),-5!==Math.imul(4294967295,5)&&(Math.imul=vt.imul);var _t=function(){var t,n;x.IsPromise=function(e){return x.TypeIsObject(e)&&e._promiseConstructor?"undefined"==typeof e._status?!1:!0:!1};var r,o=function(e){if(!x.IsCallable(e))throw new TypeError("bad promise constructor");var t=this,n=function(e,n){t.resolve=e,t.reject=n};if(t.promise=x.Construct(e,[n]),!t.promise._es6construct)throw new TypeError("bad promise constructor");if(!x.IsCallable(t.resolve)||!x.IsCallable(t.reject))throw new TypeError("bad promise constructor")},i=u.setTimeout;"undefined"!=typeof window&&x.IsCallable(window.postMessage)&&(r=function(){var e=[],t="zero-timeout-message",n=function(n){e.push(n),window.postMessage(t,"*")},r=function(n){if(n.source===window&&n.data===t){if(n.stopPropagation(),0===e.length)return;var r=e.shift();r()}};return window.addEventListener("message",r,!0),n});var a=function(){var e=u.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}},s=x.IsCallable(u.setImmediate)?u.setImmediate.bind(u):"object"==typeof e&&e.nextTick?e.nextTick:a()||(x.IsCallable(r)?r():function(e){i(e,0)}),c=function(e,t){if(!x.TypeIsObject(e))return!1;var n=t.resolve,r=t.reject;try{var o=e.then;if(!x.IsCallable(o))return!1;o.call(e,n,r)}catch(i){r(i)}return!0},l=function(e,t){e.forEach(function(e){s(function(){var n=e.handler,r=e.capability,o=r.resolve,i=r.reject;try{var a=n(t);if(a===r.promise)throw new TypeError("self resolution");var s=c(a,r);s||o(a)}catch(u){i(u)}})})},p=function(e,t,n){return function(r){if(r===e)return n(new TypeError("self resolution"));var i=e._promiseConstructor,a=new o(i),s=c(r,a);return s?a.promise.then(t,n):t(r)}};t=function(e){var t=this;if(t=S(t),!t._promiseConstructor)throw new TypeError("bad promise");if("undefined"!=typeof t._status)throw new TypeError("promise already initialized");if(!x.IsCallable(e))throw new TypeError("not a valid resolver");t._status="unresolved",t._resolveReactions=[],t._rejectReactions=[];var n=function(e){if("unresolved"===t._status){var n=t._resolveReactions;t._result=e,t._resolveReactions=void 0,t._rejectReactions=void 0,t._status="has-resolution",l(n,e)}},r=function(e){if("unresolved"===t._status){var n=t._rejectReactions;t._result=e,t._resolveReactions=void 0,t._rejectReactions=void 0,t._status="has-rejection",l(n,e)}};try{e(n,r)}catch(o){r(o)}return t},n=t.prototype;var f=function(e,t,n,r){var o=!1;return function(i){if(!o&&(o=!0,t[e]=i,0===--r.count)){var a=n.resolve;a(t)}}};return _(t,y,function(e){var t=this,r=t.prototype||n;return e=e||w(r),E(e,{_status:void 0,_result:void 0,_resolveReactions:void 0,_rejectReactions:void 0,_promiseConstructor:void 0}),e._promiseConstructor=t,e}),E(t,{all:function(e){var t=this,n=new o(t),r=n.resolve,i=n.reject;try{if(!x.IsIterable(e))throw new TypeError("bad iterable");for(var a=x.GetIterator(e),s=[],u={count:1},c=0;;c++){var l=x.IteratorNext(a);if(l.done)break;var p=t.resolve(l.value),h=f(c,s,n,u);u.count++,p.then(h,n.reject)}0===--u.count&&r(s)}catch(d){i(d)}return n.promise},race:function(e){var t=this,n=new o(t),r=n.resolve,i=n.reject;try{if(!x.IsIterable(e))throw new TypeError("bad iterable");for(var a=x.GetIterator(e);;){var s=x.IteratorNext(a);if(s.done)break;var u=t.resolve(s.value);u.then(r,i)}}catch(c){i(c)}return n.promise},reject:function(e){var t=this,n=new o(t),r=n.reject;return r(e),n.promise},resolve:function(e){var t=this;if(x.IsPromise(e)){var n=e._promiseConstructor;if(n===t)return e}var r=new o(t),i=r.resolve;return i(e),r.promise}}),E(n,{"catch":function(e){return this.then(void 0,e)},then:function(e,t){var n=this;if(!x.IsPromise(n))throw new TypeError("not a promise");var r=this.constructor,i=new o(r);x.IsCallable(t)||(t=function(e){throw e}),x.IsCallable(e)||(e=function(e){return e});var a=p(n,e,t),s={capability:i,handler:a},u={capability:i,handler:t};switch(n._status){case"unresolved":n._resolveReactions.push(s),n._rejectReactions.push(u);break;case"has-resolution":l([s],n._result);break;case"has-rejection":l([u],n._result);break;default:throw new TypeError("unexpected")}return i.promise}}),t}();u.Promise&&(delete u.Promise.accept,delete u.Promise.defer,delete u.Promise.prototype.chain),E(u,{Promise:_t});var bt=o(u.Promise,function(e){return e.resolve(42)instanceof e}),Et=function(){try{return u.Promise.reject(42).then(null,5).then(null,v),!0}catch(e){return!1}}(),wt=function(){try{Promise.call(3,v)}catch(e){return!0}return!1}();bt&&Et&&wt||(Promise=_t,_(u,"Promise",_t,!0));var Ct=function(e){var t=Object.keys(e.reduce(function(e,t){return e[t]=!0,e},{}));return e.join(":")===t.join(":")},Rt=Ct(["z","a","bb"]),Ot=Ct(["z",1,"a","3",2]);if(l){var Mt=function(e){if(!Rt)return null;var t=typeof e;return"string"===t?"$"+e:"number"===t?Ot?e:"n"+e:null},xt=function(){return Object.create?Object.create(null):{}},St={Map:function(){function e(e,t){this.key=e,this.value=t,this.next=null,this.prev=null}function t(e,t){this.head=e._head,this.i=this.head,this.kind=t}function n(t){var n=this;if(!x.TypeIsObject(n))throw new TypeError("Constructor Map requires 'new'");if(n=S(n),!n._es6map)throw new TypeError("bad map");var r=new e(null,null);if(r.next=r.prev=r,E(n,{_head:r,_storage:xt(),_size:0}),"undefined"!=typeof t&&null!==t){var o=x.GetIterator(t),i=n.set;if(!x.IsCallable(i))throw new TypeError("bad map");for(;;){var a=x.IteratorNext(o);if(a.done)break;var s=a.value;if(!x.TypeIsObject(s))throw new TypeError("expected iterable of pairs");i.call(n,s[0],s[1])}}return n}var r={};e.prototype.isRemoved=function(){return this.key===r},t.prototype={next:function(){var e,t=this.i,n=this.kind,r=this.head;if("undefined"==typeof this.i)return{value:void 0,done:!0};for(;t.isRemoved()&&t!==r;)t=t.prev;for(;t.next!==r;)if(t=t.next,!t.isRemoved())return e="key"===n?t.key:"value"===n?t.value:[t.key,t.value],this.i=t,{value:e,done:!1};return this.i=void 0,{value:void 0,done:!0}}},R(t.prototype);var o=n.prototype;return _(n,y,function(e){var t=this,n=t.prototype||o;return e=e||w(n),E(e,{_es6map:!0}),e}),b.getter(n.prototype,"size",function(){if("undefined"==typeof this._size)throw new TypeError("size method called on incompatible Map");return this._size}),E(n.prototype,{get:function(e){var t=Mt(e);if(null!==t){var n=this._storage[t];return n?n.value:void 0}for(var r=this._head,o=r;(o=o.next)!==r;)if(x.SameValueZero(o.key,e))return o.value},has:function(e){var t=Mt(e);if(null!==t)return"undefined"!=typeof this._storage[t];for(var n=this._head,r=n;(r=r.next)!==n;)if(x.SameValueZero(r.key,e))return!0;return!1},set:function(t,n){var r,o=this._head,i=o,a=Mt(t);if(null!==a){if("undefined"!=typeof this._storage[a])return this._storage[a].value=n,this;r=this._storage[a]=new e(t,n),i=o.prev}for(;(i=i.next)!==o;)if(x.SameValueZero(i.key,t))return i.value=n,this;return r=r||new e(t,n),x.SameValue(-0,t)&&(r.key=0),r.next=this._head,r.prev=this._head.prev,r.prev.next=r,r.next.prev=r,this._size+=1,this},"delete":function(e){var t=this._head,n=t,o=Mt(e);if(null!==o){if("undefined"==typeof this._storage[o])return!1;n=this._storage[o].prev,delete this._storage[o]}for(;(n=n.next)!==t;)if(x.SameValueZero(n.key,e))return n.key=n.value=r,n.prev.next=n.next,n.next.prev=n.prev,this._size-=1,!0;return!1},clear:function(){this._size=0,this._storage=xt();for(var e=this._head,t=e,n=t.next;(t=n)!==e;)t.key=t.value=r,n=t.next,t.next=t.prev=e;e.next=e.prev=e},keys:function(){return new t(this,"key")},values:function(){return new t(this,"value")},entries:function(){return new t(this,"key+value")},forEach:function(e){for(var t=arguments.length>1?arguments[1]:null,n=this.entries(),r=n.next();!r.done;r=n.next())t?e.call(t,r.value[1],r.value[0],this):e(r.value[1],r.value[0],this)}}),R(n.prototype,function(){return this.entries()}),n}(),Set:function(){var e=function(e){var t=this;if(!x.TypeIsObject(t))throw new TypeError("Constructor Set requires 'new'");if(t=S(t),!t._es6set)throw new TypeError("bad set");if(E(t,{"[[SetData]]":null,_storage:xt()}),"undefined"!=typeof e&&null!==e){var n=x.GetIterator(e),r=t.add;if(!x.IsCallable(r))throw new TypeError("bad set");for(;;){var o=x.IteratorNext(n);if(o.done)break;var i=o.value;r.call(t,i)}}return t},t=e.prototype;_(e,y,function(e){var n=this,r=n.prototype||t;return e=e||w(r),E(e,{_es6set:!0}),e});var n=function(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new St.Map;Object.keys(e._storage).forEach(function(e){e=36===e.charCodeAt(0)?e.slice(1):"n"===e.charAt(0)?+e.slice(1):+e,t.set(e,e)}),e._storage=null}};return b.getter(e.prototype,"size",function(){if("undefined"==typeof this._storage)throw new TypeError("size method called on incompatible Set");return n(this),this["[[SetData]]"].size}),E(e.prototype,{has:function(e){var t;return this._storage&&null!==(t=Mt(e))?!!this._storage[t]:(n(this),this["[[SetData]]"].has(e))},add:function(e){var t;return this._storage&&null!==(t=Mt(e))?(this._storage[t]=!0,this):(n(this),this["[[SetData]]"].set(e,e),this)},"delete":function(e){var t;if(this._storage&&null!==(t=Mt(e))){var r=d(this._storage,t);return delete this._storage[t]&&r}return n(this),this["[[SetData]]"]["delete"](e)},clear:function(){this._storage?this._storage=xt():this["[[SetData]]"].clear()},values:function(){return n(this),this["[[SetData]]"].values()},entries:function(){return n(this),this["[[SetData]]"].entries()},forEach:function(e){var t=arguments.length>1?arguments[1]:null,r=this;n(r),this["[[SetData]]"].forEach(function(n,o){t?e.call(t,o,o,r):e(o,o,r)})}}),_(e,"keys",e.values,!0),R(e.prototype,function(){return this.values()}),e}()};E(u,St),(u.Map||u.Set)&&("function"!=typeof u.Map.prototype.clear||0!==(new u.Set).size||0!==(new u.Map).size||"function"!=typeof u.Map.prototype.keys||"function"!=typeof u.Set.prototype.keys||"function"!=typeof u.Map.prototype.forEach||"function"!=typeof u.Set.prototype.forEach||r(u.Map)||r(u.Set)||!o(u.Map,function(e){var t=new e([]);return t.set(42,42),t instanceof e}))&&(u.Map=St.Map,u.Set=St.Set),u.Set.prototype.keys!==u.Set.prototype.values&&_(u.Set.prototype,"keys",u.Set.prototype.values,!0),R(Object.getPrototypeOf((new u.Map).keys())),R(Object.getPrototypeOf((new u.Set).keys()))}u.Reflect||_(u,"Reflect",{});var Tt=u.Reflect,kt=function(e){if(!x.TypeIsObject(e))throw new TypeError("target must be an object")};if(E(u.Reflect,{apply:function(){return x.Call.apply(null,arguments)},construct:function(e,t){if(!x.IsCallable(e))throw new TypeError("First argument must be callable.");return x.Construct(e,t)},deleteProperty:function(e,t){if(kt(e),l){var n=Object.getOwnPropertyDescriptor(e,t);if(n&&!n.configurable)return!1}return delete e[t]},enumerate:function(e){return kt(e),new q(e,"key")},has:function(e,t){return kt(e),t in e}}),Object.getOwnPropertyNames&&E(u.Reflect,{ownKeys:function(e){kt(e);var t=Object.getOwnPropertyNames(e);return x.IsCallable(Object.getOwnPropertySymbols)&&t.push.apply(t,Object.getOwnPropertySymbols(e)),t}}),Object.preventExtensions&&E(u.Reflect,{isExtensible:function(e){return kt(e),Object.isExtensible(e)},preventExtensions:function(e){return kt(e),Dt(function(){Object.preventExtensions(e)})}}),l){var It=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(!r){var o=Object.getPrototypeOf(e);return null===o?void 0:It(o,t,n)}return"value"in r?r.value:r.get?r.get.call(n):void 0},Pt=function(e,t,n,r){var o=Object.getOwnPropertyDescriptor(e,t);if(!o){var i=Object.getPrototypeOf(e);if(null!==i)return Pt(i,t,n,r);o={value:void 0,writable:!0,enumerable:!0,configurable:!0}}if("value"in o){if(!o.writable)return!1;if(!x.TypeIsObject(r))return!1;var a=Object.getOwnPropertyDescriptor(r,t);return a?Tt.defineProperty(r,t,{value:n}):Tt.defineProperty(r,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}return o.set?(o.set.call(r,n),!0):!1},Dt=function(e){try{e()}catch(t){return!1}return!0};E(u.Reflect,{defineProperty:function(e,t,n){return kt(e),Dt(function(){Object.defineProperty(e,t,n)})},getOwnPropertyDescriptor:function(e,t){return kt(e),Object.getOwnPropertyDescriptor(e,t)},get:function(e,t){kt(e);var n=arguments.length>2?arguments[2]:e;return It(e,t,n)},set:function(e,t,n){kt(e);var r=arguments.length>3?arguments[3]:e;return Pt(e,t,n,r)}})}if(Object.getPrototypeOf){var Nt=Object.getPrototypeOf;E(u.Reflect,{getPrototypeOf:function(e){return kt(e),Nt(e)}})}if(Object.setPrototypeOf){var At=function(e,t){for(;t;){if(e===t)return!0;t=Tt.getPrototypeOf(t)}return!1};E(u.Reflect,{setPrototypeOf:function(e,t){if(kt(e),null!==t&&!x.TypeIsObject(t))throw new TypeError("proto must be an object or null");return t===Tt.getPrototypeOf(e)?!0:Tt.isExtensible&&!Tt.isExtensible(e)?!1:At(e,t)?!1:(Object.setPrototypeOf(e,t),!0)}})}if("Invalid Date"!==String(new Date(0/0))){var jt=Date.prototype.toString,Lt=function(){var e=+this;return e!==e?"Invalid Date":jt.call(this)};_(Lt,"toString",jt.toString,!0),_(Date.prototype,"toString",Lt,!0)}var Ut={anchor:function(e){return x.CreateHTML(this,"a","name",e)},big:function(){return x.CreateHTML(this,"big","","")},blink:function(){return x.CreateHTML(this,"blink","","")},bold:function(){return x.CreateHTML(this,"b","","")},fixed:function(){return x.CreateHTML(this,"tt","","")},fontcolor:function(e){return x.CreateHTML(this,"font","color",e)},fontsize:function(e){return x.CreateHTML(this,"font","size",e)},italics:function(){return x.CreateHTML(this,"i","","")},link:function(e){return x.CreateHTML(this,"a","href",e)},small:function(){return x.CreateHTML(this,"small","","")},strike:function(){return x.CreateHTML(this,"strike","","")},sub:function(){return x.CreateHTML(this,"sub","","")},sup:function(){return x.CreateHTML(this,"sup","","")}};return E(String.prototype,Ut),Object.keys(Ut).forEach(function(e){var t=String.prototype[e],n=!1;if(x.IsCallable(t)){var r=t.call("",' " '),o=[].concat(r.match(/"/g)).length;n=r!==r.toLowerCase()||o>2}else n=!0;n&&_(String.prototype,e,Ut[e],!0)}),u})}).call(this,e("_process"))},{_process:2}],6:[function(e,t,n){!function(){function e(){this._events={},this._conf&&t.call(this,this._conf)}function t(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),e.maxListeners&&(this._events.maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this.newListener=e.newListener),this.wildcard&&(this.listenerTree={}))}function r(e){this._events={},this.newListener=!1,t.call(this,e)}function o(e,t,n,r){if(!n)return[];var i,a,s,u,c,l,p,f=[],h=t.length,d=t[r],v=t[r+1];if(r===h&&n._listeners){if("function"==typeof n._listeners)return e&&e.push(n._listeners),[n];for(i=0,a=n._listeners.length;a>i;i++)e&&e.push(n._listeners[i]);return[n]}if("*"===d||"**"===d||n[d]){if("*"===d){for(s in n)"_listeners"!==s&&n.hasOwnProperty(s)&&(f=f.concat(o(e,t,n[s],r+1)));return f}if("**"===d){p=r+1===h||r+2===h&&"*"===v,p&&n._listeners&&(f=f.concat(o(e,t,n,h)));for(s in n)"_listeners"!==s&&n.hasOwnProperty(s)&&("*"===s||"**"===s?(n[s]._listeners&&!p&&(f=f.concat(o(e,t,n[s],h))),f=f.concat(o(e,t,n[s],r))):f=f.concat(s===v?o(e,t,n[s],r+2):o(e,t,n[s],r)));return f}f=f.concat(o(e,t,n[d],r+1))}if(u=n["*"],u&&o(e,t,u,r+1),c=n["**"])if(h>r){c._listeners&&o(e,t,c,h);for(s in c)"_listeners"!==s&&c.hasOwnProperty(s)&&(s===v?o(e,t,c[s],r+2):s===d?o(e,t,c[s],r+1):(l={},l[s]=c[s],o(e,t,{"**":l},r+1)))}else c._listeners?o(e,t,c,h):c["*"]&&c["*"]._listeners&&o(e,t,c["*"],h);return f}function i(e,t){e="string"==typeof e?e.split(this.delimiter):e.slice();for(var n=0,r=e.length;r>n+1;n++)if("**"===e[n]&&"**"===e[n+1])return;for(var o=this.listenerTree,i=e.shift();i;){if(o[i]||(o[i]={}),o=o[i],0===e.length){if(o._listeners){if("function"==typeof o._listeners)o._listeners=[o._listeners,t];else if(a(o._listeners)&&(o._listeners.push(t),!o._listeners.warned)){var u=s;"undefined"!=typeof this._events.maxListeners&&(u=this._events.maxListeners),u>0&&o._listeners.length>u&&(o._listeners.warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",o._listeners.length),console.trace())}}else o._listeners=t;return!0}i=e.shift()}return!0}var a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=10;r.prototype.delimiter=".",r.prototype.setMaxListeners=function(t){this._events||e.call(this),this._events.maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t},r.prototype.event="",r.prototype.once=function(e,t){return this.many(e,1,t),this},r.prototype.many=function(e,t,n){function r(){0===--t&&o.off(e,r),n.apply(this,arguments)}var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");return r._origin=n,this.on(e,r),o},r.prototype.emit=function(){this._events||e.call(this);var t=arguments[0];if("newListener"===t&&!this.newListener&&!this._events.newListener)return!1;if(this._all){for(var n=arguments.length,r=new Array(n-1),i=1;n>i;i++)r[i-1]=arguments[i];for(i=0,n=this._all.length;n>i;i++)this.event=t,this._all[i].apply(this,r)}if("error"===t&&!(this._all||this._events.error||this.wildcard&&this.listenerTree.error))throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");var a;if(this.wildcard){a=[];var s="string"==typeof t?t.split(this.delimiter):t.slice();o.call(this,a,s,this.listenerTree,0)}else a=this._events[t];if("function"==typeof a){if(this.event=t,1===arguments.length)a.call(this);else if(arguments.length>1)switch(arguments.length){case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:for(var n=arguments.length,r=new Array(n-1),i=1;n>i;i++)r[i-1]=arguments[i];a.apply(this,r)}return!0}if(a){for(var n=arguments.length,r=new Array(n-1),i=1;n>i;i++)r[i-1]=arguments[i];for(var u=a.slice(),i=0,n=u.length;n>i;i++)this.event=t,u[i].apply(this,r);return u.length>0||!!this._all}return!!this._all},r.prototype.on=function(t,n){if("function"==typeof t)return this.onAny(t),this;if("function"!=typeof n)throw new Error("on only accepts instances of Function");if(this._events||e.call(this),this.emit("newListener",t,n),this.wildcard)return i.call(this,t,n),this;if(this._events[t]){if("function"==typeof this._events[t])this._events[t]=[this._events[t],n];else if(a(this._events[t])&&(this._events[t].push(n),!this._events[t].warned)){var r=s;"undefined"!=typeof this._events.maxListeners&&(r=this._events.maxListeners),r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}}else this._events[t]=n;return this},r.prototype.onAny=function(e){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),this._all.push(e),this},r.prototype.addListener=r.prototype.on,r.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,r=[];if(this.wildcard){var i="string"==typeof e?e.split(this.delimiter):e.slice();r=o.call(this,null,i,this.listenerTree,0)}else{if(!this._events[e])return this;n=this._events[e],r.push({_listeners:n})}for(var s=0;s<r.length;s++){var u=r[s];if(n=u._listeners,a(n)){for(var c=-1,l=0,p=n.length;p>l;l++)if(n[l]===t||n[l].listener&&n[l].listener===t||n[l]._origin&&n[l]._origin===t){c=l;break}if(0>c)continue;return this.wildcard?u._listeners.splice(c,1):this._events[e].splice(c,1),0===n.length&&(this.wildcard?delete u._listeners:delete this._events[e]),this}(n===t||n.listener&&n.listener===t||n._origin&&n._origin===t)&&(this.wildcard?delete u._listeners:delete this._events[e])}return this},r.prototype.offAny=function(e){var t,n=0,r=0;if(e&&this._all&&this._all.length>0){for(t=this._all,n=0,r=t.length;r>n;n++)if(e===t[n])return t.splice(n,1),this}else this._all=[];return this},r.prototype.removeListener=r.prototype.off,r.prototype.removeAllListeners=function(t){if(0===arguments.length)return!this._events||e.call(this),this;if(this.wildcard)for(var n="string"==typeof t?t.split(this.delimiter):t.slice(),r=o.call(this,null,n,this.listenerTree,0),i=0;i<r.length;i++){var a=r[i];a._listeners=null}else{if(!this._events[t])return this;this._events[t]=null}return this},r.prototype.listeners=function(t){if(this.wildcard){var n=[],r="string"==typeof t?t.split(this.delimiter):t.slice();return o.call(this,n,r,this.listenerTree,0),n}return this._events||e.call(this),this._events[t]||(this._events[t]=[]),a(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]},r.prototype.listenersAny=function(){return this._all?this._all:[]},"function"==typeof define&&define.amd?define(function(){return r}):"object"==typeof n?n.EventEmitter2=r:window.EventEmitter2=r}()},{}],7:[function(e,t){t.exports.Dispatcher=e("./lib/Dispatcher")},{"./lib/Dispatcher":8}],8:[function(e,t){"use strict";function n(){this.$Dispatcher_callbacks={},this.$Dispatcher_isPending={},this.$Dispatcher_isHandled={},this.$Dispatcher_isDispatching=!1,this.$Dispatcher_pendingPayload=null}var r=e("./invariant"),o=1,i="ID_";n.prototype.register=function(e){var t=i+o++;return this.$Dispatcher_callbacks[t]=e,t},n.prototype.unregister=function(e){r(this.$Dispatcher_callbacks[e],"Dispatcher.unregister(...): `%s` does not map to a registered callback.",e),delete this.$Dispatcher_callbacks[e]},n.prototype.waitFor=function(e){r(this.$Dispatcher_isDispatching,"Dispatcher.waitFor(...): Must be invoked while dispatching.");for(var t=0;t<e.length;t++){var n=e[t];this.$Dispatcher_isPending[n]?r(this.$Dispatcher_isHandled[n],"Dispatcher.waitFor(...): Circular dependency detected while waiting for `%s`.",n):(r(this.$Dispatcher_callbacks[n],"Dispatcher.waitFor(...): `%s` does not map to a registered callback.",n),this.$Dispatcher_invokeCallback(n))}},n.prototype.dispatch=function(e){r(!this.$Dispatcher_isDispatching,"Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch."),this.$Dispatcher_startDispatching(e);try{for(var t in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[t]||this.$Dispatcher_invokeCallback(t)}finally{this.$Dispatcher_stopDispatching()}},n.prototype.isDispatching=function(){return this.$Dispatcher_isDispatching},n.prototype.$Dispatcher_invokeCallback=function(e){this.$Dispatcher_isPending[e]=!0,this.$Dispatcher_callbacks[e](this.$Dispatcher_pendingPayload),this.$Dispatcher_isHandled[e]=!0},n.prototype.$Dispatcher_startDispatching=function(e){for(var t in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[t]=!1,this.$Dispatcher_isHandled[t]=!1;this.$Dispatcher_pendingPayload=e,this.$Dispatcher_isDispatching=!0},n.prototype.$Dispatcher_stopDispatching=function(){this.$Dispatcher_pendingPayload=null,this.$Dispatcher_isDispatching=!1},t.exports=n},{"./invariant":9}],9:[function(e,t){"use strict";var n=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return c[l++]}))}throw u.framesToPop=1,u}};t.exports=n},{}],10:[function(e,t,n){!function(e,r){"object"==typeof n&&"undefined"!=typeof t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.Immutable=r()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return e.value=!1,e}function n(e){e&&(e.value=!0)}function r(){}function o(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;n>o;o++)r[o]=e[o+t];return r}function i(e){return void 0===e.size&&(e.size=e.__iterate(s)),e.size}function a(e,t){return t>=0?+t:i(e)+ +t}function s(){return!0}function u(e,t,n){return(0===e||void 0!==n&&-n>=e)&&(void 0===t||void 0!==n&&t>=n)}function c(e,t){return p(e,t,0)}function l(e,t){return p(e,t,t)}function p(e,t,n){return void 0===e?n:0>e?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function f(e){return m(e)?e:T(e)}function h(e){return y(e)?e:k(e)}function d(e){return g(e)?e:I(e)}function v(e){return m(e)&&!_(e)?e:P(e)}function m(e){return!(!e||!e[vr])}function y(e){return!(!e||!e[mr])}function g(e){return!(!e||!e[yr])}function _(e){return y(e)||g(e)}function b(e){return!(!e||!e[gr])}function E(e){this.next=e}function w(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function C(){return{value:void 0,done:!0}}function R(e){return!!x(e)}function O(e){return e&&"function"==typeof e.next}function M(e){var t=x(e);return t&&t.call(e)}function x(e){var t=e&&(wr&&e[wr]||e[Cr]);return"function"==typeof t?t:void 0}function S(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?U():m(e)?e.toSeq():q(e)}function k(e){return null===e||void 0===e?U().toKeyedSeq():m(e)?y(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?U():m(e)?y(e)?e.entrySeq():e.toIndexedSeq():F(e)}function P(e){return(null===e||void 0===e?U():m(e)?y(e)?e.entrySeq():e:F(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function N(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function j(e){this._iterator=e,this._iteratorCache=[]}function L(e){return!(!e||!e[Or])}function U(){return Mr||(Mr=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():O(e)?new j(e).fromEntrySeq():R(e)?new A(e).fromEntrySeq():"object"==typeof e?new N(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function F(e){var t=z(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function q(e){var t=z(e)||"object"==typeof e&&new N(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function z(e){return S(e)?new D(e):O(e)?new j(e):R(e)?new A(e):void 0}function V(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;i>=a;a++){var s=o[n?i-a:a];if(t(s[1],r?s[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,n)}function W(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new E(function(){var e=o[n?i-a:a];return a++>i?C():w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function K(){throw TypeError("Abstract")}function H(){}function G(){}function $(){}function Q(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return"function"==typeof e.equals&&"function"==typeof t.equals&&e.equals(t)?!0:!1}function Y(e,t){return t?X(t,e,"",{"":e}):J(e)}function X(e,t,n,r){return Array.isArray(t)?e.call(r,n,I(t).map(function(n,r){return X(e,n,r,t)})):Z(t)?e.call(r,n,k(t).map(function(n,r){return X(e,n,r,t)})):t}function J(e){return Array.isArray(e)?I(e).map(J).toList():Z(e)?k(e).map(J).toMap():e}function Z(e){return e&&(e.constructor===Object||void 0===e.constructor)
  3. }function et(e){return e>>>1&1073741824|3221225471&e}function tt(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return et(n)}return"string"===t?e.length>Nr?nt(e):rt(e):"function"==typeof e.hashCode?e.hashCode():ot(e)}function nt(e){var t=Lr[e];return void 0===t&&(t=rt(e),jr===Ar&&(jr=0,Lr={}),jr++,Lr[e]=t),t}function rt(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return et(t)}function ot(e){var t;if(Ir&&(t=xr.get(e),void 0!==t))return t;if(t=e[Dr],void 0!==t)return t;if(!kr){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Dr],void 0!==t)return t;if(t=it(e),void 0!==t)return t}if(t=++Pr,1073741824&Pr&&(Pr=0),Ir)xr.set(e,t);else{if(void 0!==Tr&&Tr(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(kr)Object.defineProperty(e,Dr,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Dr]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Dr]=t}}return t}function it(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function at(e,t){if(!e)throw new Error(t)}function st(e){at(1/0!==e,"Cannot perform this action with an infinite size.")}function ut(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ct(e){this._iter=e,this.size=e.size}function lt(e){this._iter=e,this.size=e.size}function pt(e){this._iter=e,this.size=e.size}function ft(e){var t=Dt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.contains(t)},t.contains=function(t){return e.has(t)},t.cacheResult=Nt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===Er){var r=e.__iterator(t,n);return new E(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===br?_r:br,n)},t}function ht(e,t,n){var r=Dt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,fr);return i===fr?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return r(t.call(n,e,o,a),o,i)!==!1},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Er,o);return new E(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),o)})},r}function dt(e,t){var n=Dt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=ft(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.contains=function(t){return e.contains(t)},n.cacheResult=Nt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function vt(e,t,n,r){var o=Dt(e);return r&&(o.has=function(r){var o=e.get(r,fr);return o!==fr&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,fr);return i!==fr&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){return t.call(n,e,i,u)?(s++,o(e,r?i:s-1,a)):void 0},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Er,i),s=0;return new E(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return w(o,r?c:s++,l,i)}})},o}function mt(e,t,n){var r=Lt().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}function yt(e,t,n){var r=y(e),o=(b(e)?Rn():Lt()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return e=e||[],e.push(r?[a,i]:i),e})});var i=Pt(e);return o.map(function(t){return Tt(e,i(t))})}function gt(e,t,n,r){var o=e.size;if(u(t,n,o))return e;var i=c(t,o),s=l(n,o);if(i!==i||s!==s)return gt(e.toSeq().cacheResult(),t,n,r);var p=s-i;0>p&&(p=0);var f=Dt(e);return f.size=0===p?p:e.size&&p||void 0,!r&&L(e)&&p>=0&&(f.get=function(t,n){return t=a(this,t),t>=0&&p>t?e.get(t+i,n):n}),f.__iterateUncached=function(t,n){var o=this;if(0===p)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,u=0;return e.__iterate(function(e,n){return s&&(s=a++<i)?void 0:(u++,t(e,r?n:u-1,o)!==!1&&u!==p)}),u},f.__iteratorUncached=function(t,n){if(p&&n)return this.cacheResult().__iterator(t,n);var o=p&&e.__iterator(t,n),a=0,s=0;return new E(function(){for(;a++<i;)o.next();if(++s>p)return C();var e=o.next();return r||t===br?e:t===_r?w(t,s-1,void 0,e):w(t,s-1,e.value[1],e)})},f}function _t(e,t,n){var r=Dt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Er,o),s=!0;return new E(function(){if(!s)return C();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],c=o[1];return t.call(n,c,u,i)?r===Er?e:w(r,u,c,e):(s=!1,C())})},r}function bt(e,t,n,r){var o=Dt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,c){return s&&(s=t.call(n,e,i,c))?void 0:(u++,o(e,r?i:u-1,a))}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Er,i),u=!0,c=0;return new E(function(){var e,i,l;do{if(e=s.next(),e.done)return r||o===br?e:o===_r?w(o,c++,void 0,e):w(o,c++,e.value[1],e);var p=e.value;i=p[0],l=p[1],u&&(u=t.call(n,l,i,a))}while(u);return o===Er?e:w(o,i,l,e)})},o}function Et(e,t){var n=y(e),r=[e].concat(t).map(function(e){return m(e)?n&&(e=h(e)):e=n?B(e):F(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&y(o)||g(e)&&g(o))return o}var i=new D(r);return n?i=i.toKeyedSeq():g(e)||(i=i.toSetSeq()),i=i.flatten(!0),i.size=r.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),i}function wt(e,t,n){var r=Dt(e);return r.__iterateUncached=function(r,o){function i(e,u){var c=this;e.__iterate(function(e,o){return(!t||t>u)&&m(e)?i(e,u+1):r(e,n?o:a++,c)===!1&&(s=!0),!s},o)}var a=0,s=!1;return i(e,0),a},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),a=[],s=0;return new E(function(){for(;i;){var e=i.next();if(e.done===!1){var u=e.value;if(r===Er&&(u=u[1]),t&&!(a.length<t)||!m(u))return n?e:w(r,s++,u,e);a.push(i),i=u.__iterator(r,o)}else i=a.pop()}return C()})},r}function Ct(e,t,n){var r=Pt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}function Rt(e,t){var n=Dt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate(function(e){return(!i||n(t,i++,o)!==!1)&&n(e,i++,o)!==!1},r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(br,r),a=0;return new E(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?w(n,a++,t):w(n,a++,o.value,o)})},n}function Ot(e,t,n){t||(t=At);var r=y(e),o=0,i=e.toSeq().map(function(t,r){return[r,t,o++,n?n(t,r,e):t]}).toArray();return i.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?k(i):g(e)?I(i):P(i)}function Mt(e,t,n){if(t||(t=At),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return xt(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return xt(t,e,n)?n:e})}function xt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function St(e,t,n){var r=Dt(e);return r.size=new D(n).map(function(e){return e.size}).min(),r.__iterate=function(e,t){for(var n,r=this.__iterator(br,t),o=0;!(n=r.next()).done&&e(n.value,o++,this)!==!1;);return o},r.__iteratorUncached=function(e,r){var o=n.map(function(e){return e=f(e),M(r?e.reverse():e)}),i=0,a=!1;return new E(function(){var n;return a||(n=o.map(function(e){return e.next()}),a=n.some(function(e){return e.done})),a?C():w(e,i++,t.apply(null,n.map(function(e){return e.value})))})},r}function Tt(e,t){return L(e)?t:e.constructor(t)}function kt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function It(e){return st(e.size),i(e)}function Pt(e){return y(e)?h:g(e)?d:v}function Dt(e){return Object.create((y(e)?k:g(e)?I:P).prototype)}function Nt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function At(e,t){return e>t?1:t>e?-1:0}function jt(e){var t=M(e);if(!t){if(!S(e))throw new TypeError("Expected iterable or array-like: "+e);t=M(f(e))}return t}function Lt(e){return null===e||void 0===e?$t():Ut(e)?e:$t().withMutations(function(t){var n=h(e);st(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Ut(e){return!(!e||!e[Ur])}function Bt(e,t){this.ownerID=e,this.entries=t}function Ft(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function qt(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function zt(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Vt(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Wt(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ht(e._root)}function Kt(e,t){return w(e,t[0],t[1])}function Ht(e,t){return{node:e,index:0,__prev:t}}function Gt(e,t,n,r){var o=Object.create(Br);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function $t(){return Fr||(Fr=Gt(0))}function Qt(e,n,r){var o,i;if(e._root){var a=t(hr),s=t(dr);if(o=Yt(e._root,e.__ownerID,0,void 0,n,r,a,s),!s.value)return e;i=e.size+(a.value?r===fr?-1:1:0)}else{if(r===fr)return e;i=1,o=new Bt(e.__ownerID,[[n,r]])}return e.__ownerID?(e.size=i,e._root=o,e.__hash=void 0,e.__altered=!0,e):o?Gt(i,o):$t()}function Yt(e,t,r,o,i,a,s,u){return e?e.update(t,r,o,i,a,s,u):a===fr?e:(n(u),n(s),new Vt(t,o,[i,a]))}function Xt(e){return e.constructor===Vt||e.constructor===zt}function Jt(e,t,n,r,o){if(e.keyHash===r)return new zt(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&pr,s=(0===n?r:r>>>n)&pr,u=a===s?[Jt(e,t,n+cr,r,o)]:(i=new Vt(t,r,o),s>a?[e,i]:[i,e]);return new Ft(t,1<<a|1<<s,u)}function Zt(e,t,n,o){e||(e=new r);for(var i=new Vt(e,tt(n),[n,o]),a=0;a<t.length;a++){var s=t[a];i=i.update(e,0,void 0,s[0],s[1])}return i}function en(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,u=1,c=t.length;c>s;s++,u<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=u,a[i++]=l)}return new Ft(e,o,a)}function tn(e,t,n,r,o){for(var i=0,a=new Array(lr),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new qt(e,i+1,a)}function nn(e,t,n){for(var r=[],o=0;o<n.length;o++){var i=n[o],a=h(i);m(i)||(a=a.map(function(e){return Y(e)})),r.push(a)}return on(e,t,r)}function rn(e){return function(t,n,r){return t&&t.mergeDeepWith&&m(n)?t.mergeDeepWith(e,n):e?e(t,n,r):n}}function on(e,t,n){return n=n.filter(function(e){return 0!==e.size}),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,fr,function(e){return e===fr?n:t(e,n,r)})}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)}):e.constructor(n[0])}function an(e,t,n,r){var o=e===fr,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}at(o||e&&e.set,"invalid keyPath");var u=i.value,c=o?fr:e.get(u,fr),l=an(c,t,n,r);return l===c?e:l===fr?e.remove(u):(o?$t():e).set(u,l)}function sn(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function un(e,t,n,r){var i=r?e:o(e);return i[t]=n,i}function cn(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;o>s;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function ln(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;r>a;a++)a===t&&(i=1),o[a]=e[a+i];return o}function pn(e){var t=mn();if(null===e||void 0===e)return t;if(fn(e))return e;var n=d(e),r=n.size;return 0===r?t:(st(r),r>0&&lr>r?vn(0,r,cr,null,new hn(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}function fn(e){return!(!e||!e[Wr])}function hn(e,t){this.array=e,this.ownerID=t}function dn(e,t){function n(e,t,n){return 0===t?r(e,n):o(e,t,n)}function r(e,n){var r=n===s?u&&u.array:e&&e.array,o=n>i?0:i-n,c=a-n;return c>lr&&(c=lr),function(){if(o===c)return Gr;var e=t?--c:o++;return r&&r[e]}}function o(e,r,o){var s,u=e&&e.array,c=o>i?0:i-o>>r,l=(a-o>>r)+1;return l>lr&&(l=lr),function(){for(;;){if(s){var e=s();if(e!==Gr)return e;s=null}if(c===l)return Gr;var i=t?--l:c++;s=n(u&&u[i],r-cr,o+(i<<r))}}}var i=e._origin,a=e._capacity,s=Cn(a),u=e._tail;return n(e._root,e._level,0)}function vn(e,t,n,r,o,i,a){var s=Object.create(Kr);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function mn(){return Hr||(Hr=vn(0,0,cr))}function yn(e,n,r){if(n=a(e,n),n>=e.size||0>n)return e.withMutations(function(e){0>n?En(e,n).set(0,r):En(e,0,n+1).set(n,r)});n+=e._origin;var o=e._tail,i=e._root,s=t(dr);return n>=Cn(e._capacity)?o=gn(o,e.__ownerID,0,n,r,s):i=gn(i,e.__ownerID,e._level,n,r,s),s.value?e.__ownerID?(e._root=i,e._tail=o,e.__hash=void 0,e.__altered=!0,e):vn(e._origin,e._capacity,e._level,i,o):e}function gn(e,t,r,o,i,a){var s=o>>>r&pr,u=e&&s<e.array.length;if(!u&&void 0===i)return e;var c;if(r>0){var l=e&&e.array[s],p=gn(l,t,r-cr,o,i,a);return p===l?e:(c=_n(e,t),c.array[s]=p,c)}return u&&e.array[s]===i?e:(n(a),c=_n(e,t),void 0===i&&s===c.array.length-1?c.array.pop():c.array[s]=i,c)}function _n(e,t){return t&&e&&t===e.ownerID?e:new hn(e?e.array.slice():[],t)}function bn(e,t){if(t>=Cn(e._capacity))return e._tail;if(t<1<<e._level+cr){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&pr],r-=cr;return n}}function En(e,t,n){var o=e.__ownerID||new r,i=e._origin,a=e._capacity,s=i+t,u=void 0===n?a:0>n?a+n:i+n;if(s===i&&u===a)return e;if(s>=u)return e.clear();for(var c=e._level,l=e._root,p=0;0>s+p;)l=new hn(l&&l.array.length?[void 0,l]:[],o),c+=cr,p+=1<<c;p&&(s+=p,i+=p,u+=p,a+=p);for(var f=Cn(a),h=Cn(u);h>=1<<c+cr;)l=new hn(l&&l.array.length?[l]:[],o),c+=cr;var d=e._tail,v=f>h?bn(e,u-1):h>f?new hn([],o):d;if(d&&h>f&&a>s&&d.array.length){l=_n(l,o);for(var m=l,y=c;y>cr;y-=cr){var g=f>>>y&pr;m=m.array[g]=_n(m.array[g],o)}m.array[f>>>cr&pr]=d}if(a>u&&(v=v&&v.removeAfter(o,0,u)),s>=h)s-=h,u-=h,c=cr,l=null,v=v&&v.removeBefore(o,0,s);else if(s>i||f>h){for(p=0;l;){var _=s>>>c&pr;if(_!==h>>>c&pr)break;_&&(p+=(1<<c)*_),c-=cr,l=l.array[_]}l&&s>i&&(l=l.removeBefore(o,c,s-p)),l&&f>h&&(l=l.removeAfter(o,c,h-p)),p&&(s-=p,u-=p)}return e.__ownerID?(e.size=u-s,e._origin=s,e._capacity=u,e._level=c,e._root=l,e._tail=v,e.__hash=void 0,e.__altered=!0,e):vn(s,u,c,l,v)}function wn(e,t,n){for(var r=[],o=0,i=0;i<n.length;i++){var a=n[i],s=d(a);s.size>o&&(o=s.size),m(a)||(s=s.map(function(e){return Y(e)})),r.push(s)}return o>e.size&&(e=e.setSize(o)),on(e,t,r)}function Cn(e){return lr>e?0:e-1>>>cr<<cr}function Rn(e){return null===e||void 0===e?xn():On(e)?e:xn().withMutations(function(t){var n=h(e);st(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function On(e){return Ut(e)&&b(e)}function Mn(e,t,n,r){var o=Object.create(Rn.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function xn(){return $r||($r=Mn($t(),mn()))}function Sn(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),u=void 0!==s;if(n===fr){if(!u)return e;a.size>=lr&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Mn(r,o)}function Tn(e){return null===e||void 0===e?Pn():kn(e)?e:Pn().unshiftAll(e)}function kn(e){return!(!e||!e[Qr])}function In(e,t,n,r){var o=Object.create(Yr);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Pn(){return Xr||(Xr=In(0))}function Dn(e){return null===e||void 0===e?Ln():Nn(e)?e:Ln().withMutations(function(t){var n=v(e);st(n.size),n.forEach(function(e){return t.add(e)})})}function Nn(e){return!(!e||!e[Jr])}function An(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function jn(e,t){var n=Object.create(Zr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ln(){return eo||(eo=jn($t()))}function Un(e){return null===e||void 0===e?qn():Bn(e)?e:qn().withMutations(function(t){var n=v(e);st(n.size),n.forEach(function(e){return t.add(e)})})}function Bn(e){return Nn(e)&&b(e)}function Fn(e,t){var n=Object.create(to);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function qn(){return no||(no=Fn(xn()))}function zn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);Kn(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Lt(i)},o=r.prototype=Object.create(ro);return o.constructor=r,r}function Vn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Wn(e){return e._name||e.constructor.name||"Record"}function Kn(e,t){try{t.forEach(Hn.bind(void 0,e))}catch(n){}}function Hn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){at(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Gn(e,t){if(e===t)return!0;if(!m(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||y(e)!==y(t)||g(e)!==g(t)||b(e)!==b(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!_(e);if(b(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&Q(o[1],e)&&(n||Q(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var a=!0,s=t.__iterate(function(t,r){return(n?e.has(t):o?Q(t,e.get(r,fr)):Q(e.get(r,fr),t))?void 0:(a=!1,!1)});return a&&e.size===s}function $n(e,t,n){if(!(this instanceof $n))return new $n(e,t,n);if(at(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),e>t&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(oo)return oo;oo=this}}function Qn(e,t){if(!(this instanceof Qn))return new Qn(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(io)return io;io=this}}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Xn(e,t){return t}function Jn(e,t){return[t,e]}function Zn(e){return function(){return!e.apply(this,arguments)}}function er(e){return function(){return-e.apply(this,arguments)}}function tr(e){return"string"==typeof e?JSON.stringify(e):e}function nr(){return o(arguments)}function rr(e,t){return t>e?1:e>t?-1:0}function or(e){if(1/0===e.size)return 0;var t=b(e),n=y(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+ar(tt(e),tt(t))|0}:function(e,t){r=r+ar(tt(e),tt(t))|0}:t?function(e){r=31*r+tt(e)|0}:function(e){r=r+tt(e)|0});return ir(o,r)}function ir(e,t){return t=Sr(t,3432918353),t=Sr(t<<15|t>>>-15,461845907),t=Sr(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Sr(t^t>>>16,2246822507),t=Sr(t^t>>>13,3266489909),t=et(t^t>>>16)}function ar(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var sr=Array.prototype.slice,ur="delete",cr=5,lr=1<<cr,pr=lr-1,fr={},hr={value:!1},dr={value:!1};e(h,f),e(d,f),e(v,f),f.isIterable=m,f.isKeyed=y,f.isIndexed=g,f.isAssociative=_,f.isOrdered=b,f.Keyed=h,f.Indexed=d,f.Set=v;var vr="@@__IMMUTABLE_ITERABLE__@@",mr="@@__IMMUTABLE_KEYED__@@",yr="@@__IMMUTABLE_INDEXED__@@",gr="@@__IMMUTABLE_ORDERED__@@",_r=0,br=1,Er=2,wr="function"==typeof Symbol&&Symbol.iterator,Cr="@@iterator",Rr=wr||Cr;E.prototype.toString=function(){return"[Iterator]"},E.KEYS=_r,E.VALUES=br,E.ENTRIES=Er,E.prototype.inspect=E.prototype.toSource=function(){return this.toString()},E.prototype[Rr]=function(){return this},e(T,f),T.of=function(){return T(arguments)},T.prototype.toSeq=function(){return this},T.prototype.toString=function(){return this.__toString("Seq {","}")},T.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},T.prototype.__iterate=function(e,t){return V(this,e,t,!0)},T.prototype.__iterator=function(e,t){return W(this,e,t,!0)},e(k,T),k.prototype.toKeyedSeq=function(){return this},e(I,T),I.of=function(){return I(arguments)},I.prototype.toIndexedSeq=function(){return this},I.prototype.toString=function(){return this.__toString("Seq [","]")},I.prototype.__iterate=function(e,t){return V(this,e,t,!1)},I.prototype.__iterator=function(e,t){return W(this,e,t,!1)},e(P,T),P.of=function(){return P(arguments)},P.prototype.toSetSeq=function(){return this},T.isSeq=L,T.Keyed=k,T.Set=P,T.Indexed=I;var Or="@@__IMMUTABLE_SEQ__@@";T.prototype[Or]=!0,e(D,I),D.prototype.get=function(e,t){return this.has(e)?this._array[a(this,e)]:t},D.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;r>=o;o++)if(e(n[t?r-o:o],o,this)===!1)return o+1;return o},D.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new E(function(){return o>r?C():w(e,o,n[t?r-o++:o++])})},e(N,k),N.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},N.prototype.has=function(e){return this._object.hasOwnProperty(e)},N.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;o>=i;i++){var a=r[t?o-i:i];if(e(n[a],a,this)===!1)return i+1}return i},N.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new E(function(){var a=r[t?o-i:i];return i++>o?C():w(e,a,n[a])})},N.prototype[gr]=!0,e(A,I),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=M(n),o=0;if(O(r))for(var i;!(i=r.next()).done&&e(i.value,o++,this)!==!1;);return o},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=M(n);if(!O(r))return new E(C);var o=0;return new E(function(){var t=r.next();return t.done?t:w(e,o++,t.value)})},e(j,I),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o<r.length;)if(e(r[o],o++,this)===!1)return o;for(var i;!(i=n.next()).done;){var a=i.value;if(r[o]=a,e(a,o++,this)===!1)break}return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new E(function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return w(e,o,r[o++])})};var Mr;e(K,f),e(H,K),e(G,K),e($,K),K.Keyed=H,K.Indexed=G,K.Set=$;var xr,Sr="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e=0|e,t=0|t;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Tr=Object.isExtensible,kr=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Ir="function"==typeof WeakMap;Ir&&(xr=new WeakMap);var Pr=0,Dr="__immutablehash__";"function"==typeof Symbol&&(Dr=Symbol(Dr));var Nr=16,Ar=255,jr=0,Lr={};e(ut,k),ut.prototype.get=function(e,t){return this._iter.get(e,t)},ut.prototype.has=function(e){return this._iter.has(e)},ut.prototype.valueSeq=function(){return this._iter.valueSeq()},ut.prototype.reverse=function(){var e=this,t=dt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},ut.prototype.map=function(e,t){var n=this,r=ht(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},ut.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?It(this):0,function(o){return e(o,t?--n:n++,r)}),t)},ut.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(br,t),r=t?It(this):0;return new E(function(){var o=n.next();return o.done?o:w(e,t?--r:r++,o.value,o)})},ut.prototype[gr]=!0,e(ct,I),ct.prototype.contains=function(e){return this._iter.contains(e)},ct.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ct.prototype.__iterator=function(e,t){var n=this._iter.__iterator(br,t),r=0;return new E(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(lt,P),lt.prototype.has=function(e){return this._iter.contains(e)},lt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},lt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(br,t);return new E(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(pt,k),pt.prototype.entrySeq=function(){return this._iter.toSeq()},pt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){kt(t);var r=m(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},pt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(br,t);return new E(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){kt(r);var o=m(r);return w(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ct.prototype.cacheResult=ut.prototype.cacheResult=lt.prototype.cacheResult=pt.prototype.cacheResult=Nt,e(Lt,H),Lt.prototype.toString=function(){return this.__toString("Map {","}")},Lt.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Lt.prototype.set=function(e,t){return Qt(this,e,t)},Lt.prototype.setIn=function(e,t){return this.updateIn(e,fr,function(){return t})},Lt.prototype.remove=function(e){return Qt(this,e,fr)},Lt.prototype.deleteIn=function(e){return this.updateIn(e,function(){return fr})},Lt.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Lt.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=an(this,jt(e),t,n);return r===fr?void 0:r},Lt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):$t()},Lt.prototype.merge=function(){return nn(this,void 0,arguments)},Lt.prototype.mergeWith=function(e){var t=sr.call(arguments,1);return nn(this,e,t)},Lt.prototype.mergeIn=function(e){var t=sr.call(arguments,1);return this.updateIn(e,$t(),function(e){return e.merge.apply(e,t)})},Lt.prototype.mergeDeep=function(){return nn(this,rn(void 0),arguments)},Lt.prototype.mergeDeepWith=function(e){var t=sr.call(arguments,1);return nn(this,rn(e),t)},Lt.prototype.mergeDeepIn=function(e){var t=sr.call(arguments,1);return this.updateIn(e,$t(),function(e){return e.mergeDeep.apply(e,t)})},Lt.prototype.sort=function(e){return Rn(Ot(this,e))},Lt.prototype.sortBy=function(e,t){return Rn(Ot(this,t,e))},Lt.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Lt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new r)},Lt.prototype.asImmutable=function(){return this.__ensureOwner()},Lt.prototype.wasAltered=function(){return this.__altered},Lt.prototype.__iterator=function(e,t){return new Wt(this,e,t)},Lt.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},Lt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Lt.isMap=Ut;var Ur="@@__IMMUTABLE_MAP__@@",Br=Lt.prototype;Br[Ur]=!0,Br[ur]=Br.remove,Br.removeIn=Br.deleteIn,Bt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;a>i;i++)if(Q(n,o[i][0]))return o[i][1];return r},Bt.prototype.update=function(e,t,r,i,a,s,u){for(var c=a===fr,l=this.entries,p=0,f=l.length;f>p&&!Q(i,l[p][0]);p++);var h=f>p;if(h?l[p][1]===a:c)return this;if(n(u),(c||!h)&&n(s),!c||1!==l.length){if(!h&&!c&&l.length>=qr)return Zt(e,l,i,a);var d=e&&e===this.ownerID,v=d?l:o(l);return h?c?p===f-1?v.pop():v[p]=v.pop():v[p]=[i,a]:v.push([i,a]),d?(this.entries=v,this):new Bt(e,v)}},Ft.prototype.get=function(e,t,n,r){void 0===t&&(t=tt(n));var o=1<<((0===e?t:t>>>e)&pr),i=this.bitmap;return 0===(i&o)?r:this.nodes[sn(i&o-1)].get(e+cr,t,n,r)},Ft.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=tt(r));var s=(0===t?n:n>>>t)&pr,u=1<<s,c=this.bitmap,l=0!==(c&u);if(!l&&o===fr)return this;var p=sn(c&u-1),f=this.nodes,h=l?f[p]:void 0,d=Yt(h,e,t+cr,n,r,o,i,a);if(d===h)return this;if(!l&&d&&f.length>=zr)return tn(e,f,c,s,d);if(l&&!d&&2===f.length&&Xt(f[1^p]))return f[1^p];if(l&&d&&1===f.length&&Xt(d))return d;var v=e&&e===this.ownerID,m=l?d?c:c^u:c|u,y=l?d?un(f,p,d,v):ln(f,p,v):cn(f,p,d,v);return v?(this.bitmap=m,this.nodes=y,this):new Ft(e,m,y)},qt.prototype.get=function(e,t,n,r){void 0===t&&(t=tt(n));var o=(0===e?t:t>>>e)&pr,i=this.nodes[o];return i?i.get(e+cr,t,n,r):r},qt.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=tt(r));var s=(0===t?n:n>>>t)&pr,u=o===fr,c=this.nodes,l=c[s];if(u&&!l)return this;var p=Yt(l,e,t+cr,n,r,o,i,a);if(p===l)return this;var f=this.count;if(l){if(!p&&(f--,Vr>f))return en(e,c,f,s)}else f++;var h=e&&e===this.ownerID,d=un(c,s,p,h);return h?(this.count=f,this.nodes=d,this):new qt(e,f,d)},zt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;a>i;i++)if(Q(n,o[i][0]))return o[i][1];return r},zt.prototype.update=function(e,t,r,i,a,s,u){void 0===r&&(r=tt(i));var c=a===fr;if(r!==this.keyHash)return c?this:(n(u),n(s),Jt(this,e,t,r,[i,a]));for(var l=this.entries,p=0,f=l.length;f>p&&!Q(i,l[p][0]);p++);var h=f>p;if(h?l[p][1]===a:c)return this;if(n(u),(c||!h)&&n(s),c&&2===f)return new Vt(e,this.keyHash,l[1^p]);var d=e&&e===this.ownerID,v=d?l:o(l);return h?c?p===f-1?v.pop():v[p]=v.pop():v[p]=[i,a]:v.push([i,a]),d?(this.entries=v,this):new zt(e,this.keyHash,v)},Vt.prototype.get=function(e,t,n,r){return Q(n,this.entry[0])?this.entry[1]:r},Vt.prototype.update=function(e,t,r,o,i,a,s){var u=i===fr,c=Q(o,this.entry[0]);return(c?i===this.entry[1]:u)?this:(n(s),u?void n(a):c?e&&e===this.ownerID?(this.entry[1]=i,this):new Vt(e,this.keyHash,[o,i]):(n(a),Jt(this,e,t,tt(o),[o,i])))},Bt.prototype.iterate=zt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;o>=r;r++)if(e(n[t?o-r:r])===!1)return!1},Ft.prototype.iterate=qt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;o>=r;r++){var i=n[t?o-r:r];if(i&&i.iterate(e,t)===!1)return!1}},Vt.prototype.iterate=function(e){return e(this.entry)},e(Wt,E),Wt.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return Kt(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,n>=o)return Kt(e,r.entries[this._reverse?n-o:o])}else if(n=r.nodes.length-1,n>=o){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Kt(e,i.entry);t=this._stack=Ht(i,t)}continue}t=this._stack=this._stack.__prev}return C()};var Fr,qr=lr/4,zr=lr/2,Vr=lr/4;e(pn,G),pn.of=function(){return this(arguments)},pn.prototype.toString=function(){return this.__toString("List [","]")},pn.prototype.get=function(e,t){if(e=a(this,e),0>e||e>=this.size)return t;e+=this._origin;var n=bn(this,e);return n&&n.array[e&pr]},pn.prototype.set=function(e,t){return yn(this,e,t)},pn.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this
  4. },pn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=cr,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):mn()},pn.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){En(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},pn.prototype.pop=function(){return En(this,0,-1)},pn.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){En(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},pn.prototype.shift=function(){return En(this,1)},pn.prototype.merge=function(){return wn(this,void 0,arguments)},pn.prototype.mergeWith=function(e){var t=sr.call(arguments,1);return wn(this,e,t)},pn.prototype.mergeDeep=function(){return wn(this,rn(void 0),arguments)},pn.prototype.mergeDeepWith=function(e){var t=sr.call(arguments,1);return wn(this,rn(e),t)},pn.prototype.setSize=function(e){return En(this,0,e)},pn.prototype.slice=function(e,t){var n=this.size;return u(e,t,n)?this:En(this,c(e,n),l(t,n))},pn.prototype.__iterator=function(e,t){var n=0,r=dn(this,t);return new E(function(){var t=r();return t===Gr?C():w(e,n++,t)})},pn.prototype.__iterate=function(e,t){for(var n,r=0,o=dn(this,t);(n=o())!==Gr&&e(n,r++,this)!==!1;);return r},pn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?vn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},pn.isList=fn;var Wr="@@__IMMUTABLE_LIST__@@",Kr=pn.prototype;Kr[Wr]=!0,Kr[ur]=Kr.remove,Kr.setIn=Br.setIn,Kr.deleteIn=Kr.removeIn=Br.removeIn,Kr.update=Br.update,Kr.updateIn=Br.updateIn,Kr.mergeIn=Br.mergeIn,Kr.mergeDeepIn=Br.mergeDeepIn,Kr.withMutations=Br.withMutations,Kr.asMutable=Br.asMutable,Kr.asImmutable=Br.asImmutable,Kr.wasAltered=Br.wasAltered,hn.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0||0===this.array.length)return this;var r=n>>>t&pr;if(r>=this.array.length)return new hn([],e);var o,i=0===r;if(t>0){var a=this.array[r];if(o=a&&a.removeBefore(e,t-cr,n),o===a&&i)return this}if(i&&!o)return this;var s=_n(this,e);if(!i)for(var u=0;r>u;u++)s.array[u]=void 0;return o&&(s.array[r]=o),s},hn.prototype.removeAfter=function(e,t,n){if(n===t?1<<t:0||0===this.array.length)return this;var r=n-1>>>t&pr;if(r>=this.array.length)return this;var o,i=r===this.array.length-1;if(t>0){var a=this.array[r];if(o=a&&a.removeAfter(e,t-cr,n),o===a&&i)return this}if(i&&!o)return this;var s=_n(this,e);return i||s.array.pop(),o&&(s.array[r]=o),s};var Hr,Gr={};e(Rn,Lt),Rn.of=function(){return this(arguments)},Rn.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Rn.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Rn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):xn()},Rn.prototype.set=function(e,t){return Sn(this,e,t)},Rn.prototype.remove=function(e){return Sn(this,e,fr)},Rn.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Rn.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Rn.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Rn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Mn(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Rn.isOrderedMap=On,Rn.prototype[gr]=!0,Rn.prototype[ur]=Rn.prototype.remove;var $r;e(Tn,G),Tn.of=function(){return this(arguments)},Tn.prototype.toString=function(){return this.__toString("Stack [","]")},Tn.prototype.get=function(e,t){var n=this._head;for(e=a(this,e);n&&e--;)n=n.next;return n?n.value:t},Tn.prototype.peek=function(){return this._head&&this._head.value},Tn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):In(e,t)},Tn.prototype.pushAll=function(e){if(e=d(e),0===e.size)return this;st(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):In(t,n)},Tn.prototype.pop=function(){return this.slice(1)},Tn.prototype.unshift=function(){return this.push.apply(this,arguments)},Tn.prototype.unshiftAll=function(e){return this.pushAll(e)},Tn.prototype.shift=function(){return this.pop.apply(this,arguments)},Tn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Pn()},Tn.prototype.slice=function(e,t){if(u(e,t,this.size))return this;var n=c(e,this.size),r=l(t,this.size);if(r!==this.size)return G.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):In(o,i)},Tn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?In(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Tn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},Tn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new E(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return C()})},Tn.isStack=kn;var Qr="@@__IMMUTABLE_STACK__@@",Yr=Tn.prototype;Yr[Qr]=!0,Yr.withMutations=Br.withMutations,Yr.asMutable=Br.asMutable,Yr.asImmutable=Br.asImmutable,Yr.wasAltered=Br.wasAltered;var Xr;e(Dn,$),Dn.of=function(){return this(arguments)},Dn.fromKeys=function(e){return this(h(e).keySeq())},Dn.prototype.toString=function(){return this.__toString("Set {","}")},Dn.prototype.has=function(e){return this._map.has(e)},Dn.prototype.add=function(e){return An(this,this._map.set(e,!0))},Dn.prototype.remove=function(e){return An(this,this._map.remove(e))},Dn.prototype.clear=function(){return An(this,this._map.clear())},Dn.prototype.union=function(){var e=sr.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)v(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},Dn.prototype.intersect=function(){var e=sr.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return v(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.every(function(e){return e.contains(t)})||n.remove(t)})})},Dn.prototype.subtract=function(){var e=sr.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return v(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.some(function(e){return e.contains(t)})&&n.remove(t)})})},Dn.prototype.merge=function(){return this.union.apply(this,arguments)},Dn.prototype.mergeWith=function(){var e=sr.call(arguments,1);return this.union.apply(this,e)},Dn.prototype.sort=function(e){return Un(Ot(this,e))},Dn.prototype.sortBy=function(e,t){return Un(Ot(this,t,e))},Dn.prototype.wasAltered=function(){return this._map.wasAltered()},Dn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},Dn.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Dn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Dn.isSet=Nn;var Jr="@@__IMMUTABLE_SET__@@",Zr=Dn.prototype;Zr[Jr]=!0,Zr[ur]=Zr.remove,Zr.mergeDeep=Zr.merge,Zr.mergeDeepWith=Zr.mergeWith,Zr.withMutations=Br.withMutations,Zr.asMutable=Br.asMutable,Zr.asImmutable=Br.asImmutable,Zr.__empty=Ln,Zr.__make=jn;var eo;e(Un,Dn),Un.of=function(){return this(arguments)},Un.fromKeys=function(e){return this(h(e).keySeq())},Un.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Un.isOrderedSet=Bn;var to=Un.prototype;to[gr]=!0,to.__empty=qn,to.__make=Fn;var no;e(zn,H),zn.prototype.toString=function(){return this.__toString(Wn(this)+" {","}")},zn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},zn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},zn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Vn(this,$t()))},zn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Wn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Vn(this,n)},zn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Vn(this,t)},zn.prototype.wasAltered=function(){return this._map.wasAltered()},zn.prototype.__iterator=function(e,t){var n=this;return h(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},zn.prototype.__iterate=function(e,t){var n=this;return h(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},zn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Vn(this,t,e):(this.__ownerID=e,this._map=t,this)};var ro=zn.prototype;ro[ur]=ro.remove,ro.deleteIn=ro.removeIn=Br.removeIn,ro.merge=Br.merge,ro.mergeWith=Br.mergeWith,ro.mergeIn=Br.mergeIn,ro.mergeDeep=Br.mergeDeep,ro.mergeDeepWith=Br.mergeDeepWith,ro.mergeDeepIn=Br.mergeDeepIn,ro.setIn=Br.setIn,ro.update=Br.update,ro.updateIn=Br.updateIn,ro.withMutations=Br.withMutations,ro.asMutable=Br.asMutable,ro.asImmutable=Br.asImmutable,e($n,I),$n.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},$n.prototype.get=function(e,t){return this.has(e)?this._start+a(this,e)*this._step:t},$n.prototype.contains=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},$n.prototype.slice=function(e,t){return u(e,t,this.size)?this:(e=c(e,this.size),t=l(t,this.size),e>=t?new $n(0,0):new $n(this.get(e,this._end),this.get(t,this._end),this._step))},$n.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},$n.prototype.lastIndexOf=function(e){return this.indexOf(e)},$n.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;n>=i;i++){if(e(o,i,this)===!1)return i+1;o+=t?-r:r}return i},$n.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new E(function(){var a=o;return o+=t?-r:r,i>n?C():w(e,i++,a)})},$n.prototype.equals=function(e){return e instanceof $n?this._start===e._start&&this._end===e._end&&this._step===e._step:Gn(this,e)};var oo;e(Qn,I),Qn.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Qn.prototype.get=function(e,t){return this.has(e)?this._value:t},Qn.prototype.contains=function(e){return Q(this._value,e)},Qn.prototype.slice=function(e,t){var n=this.size;return u(e,t,n)?this:new Qn(this._value,l(t,n)-c(e,n))},Qn.prototype.reverse=function(){return this},Qn.prototype.indexOf=function(e){return Q(this._value,e)?0:-1},Qn.prototype.lastIndexOf=function(e){return Q(this._value,e)?this.size:-1},Qn.prototype.__iterate=function(e){for(var t=0;t<this.size;t++)if(e(this._value,t,this)===!1)return t+1;return t},Qn.prototype.__iterator=function(e){var t=this,n=0;return new E(function(){return n<t.size?w(e,n++,t._value):C()})},Qn.prototype.equals=function(e){return e instanceof Qn?Q(this._value,e._value):Gn(e)};var io;f.Iterator=E,Yn(f,{toArray:function(){st(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new ct(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new ut(this,!0)},toMap:function(){return Lt(this.toKeyedSeq())},toObject:function(){st(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Rn(this.toKeyedSeq())},toOrderedSet:function(){return Un(y(this)?this.valueSeq():this)},toSet:function(){return Dn(y(this)?this.valueSeq():this)},toSetSeq:function(){return new lt(this)},toSeq:function(){return g(this)?this.toIndexedSeq():y(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Tn(y(this)?this.valueSeq():this)},toList:function(){return pn(y(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=sr.call(arguments,0);return Tt(this,Et(this,e))},contains:function(e){return this.some(function(t){return Q(t,e)})},entries:function(){return this.__iterator(Er)},every:function(e,t){st(this.size);var n=!0;return this.__iterate(function(r,o,i){return e.call(t,r,o,i)?void 0:(n=!1,!1)}),n},filter:function(e,t){return Tt(this,vt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,o,i){return e.call(t,r,o,i)?(n=[o,r],!1):void 0}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return st(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){st(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(_r)},map:function(e,t){return Tt(this,ht(this,e,t))},reduce:function(e,t,n){st(this.size);var r,o;return arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(){var e=this.toKeyedSeq().reverse();return e.reduce.apply(e,arguments)},reverse:function(){return Tt(this,dt(this,!0))},slice:function(e,t){return Tt(this,gt(this,e,t,!0))},some:function(e,t){return!this.every(Zn(e),t)},sort:function(e){return Tt(this,Ot(this,e))},values:function(){return this.__iterator(br)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return i(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return mt(this,e,t)},equals:function(e){return Gn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Jn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Zn(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(s)},flatMap:function(e,t){return Tt(this,Ct(this,e,t))},flatten:function(e){return Tt(this,wt(this,e,!0))},fromEntrySeq:function(){return new pt(this)},get:function(e,t){return this.find(function(t,n){return Q(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=jt(e);!(n=o.next()).done;){var i=n.value;if(r=r&&r.get?r.get(i,fr):fr,r===fr)return t}return r},groupBy:function(e,t){return yt(this,e,t)},has:function(e){return this.get(e,fr)!==fr},hasIn:function(e){return this.getIn(e,fr)!==fr},isSubset:function(e){return e="function"==typeof e.contains?e:f(e),this.every(function(t){return e.contains(t)})},isSuperset:function(e){return e.isSubset(this)},keySeq:function(){return this.toSeq().map(Xn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Mt(this,e)},maxBy:function(e,t){return Mt(this,t,e)},min:function(e){return Mt(this,e?er(e):rr)},minBy:function(e,t){return Mt(this,t?er(t):rr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Tt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Tt(this,bt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Zn(e),t)},sortBy:function(e,t){return Tt(this,Ot(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Tt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Tt(this,_t(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Zn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=or(this))}});var ao=f.prototype;ao[vr]=!0,ao[Rr]=ao.values,ao.__toJS=ao.toArray,ao.__toStringMapper=tr,ao.inspect=ao.toSource=function(){return this.toString()},ao.chain=ao.flatMap,function(){try{Object.defineProperty(ao,"length",{get:function(){if(!f.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(h,{flip:function(){return Tt(this,ft(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return Q(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return Q(t,e)})},mapEntries:function(e,t){var n=this,r=0;return Tt(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Tt(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var so=h.prototype;so[mr]=!0,so[Rr]=ao.entries,so.__toJS=ao.toObject,so.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tr(e)},Yn(d,{toKeyedSeq:function(){return new ut(this,!1)},filter:function(e,t){return Tt(this,vt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){return this.toSeq().reverse().indexOf(e)},reverse:function(){return Tt(this,dt(this,!1))},slice:function(e,t){return Tt(this,gt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=c(e,this.size);var r=this.slice(0,e);return Tt(this,1===n?r:r.concat(o(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Tt(this,wt(this,e,!1))},get:function(e,t){return e=a(this,e),0>e||1/0===this.size||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=a(this,e),e>=0&&(void 0!==this.size?1/0===this.size||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Tt(this,Rt(this,e))},interleave:function(){var e=[this].concat(o(arguments)),t=St(this.toSeq(),I.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Tt(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Tt(this,bt(this,e,t,!1))},zip:function(){var e=[this].concat(o(arguments));return Tt(this,St(this,nr,e))},zipWith:function(e){var t=o(arguments);return t[0]=this,Tt(this,St(this,e,t))}}),d.prototype[yr]=!0,d.prototype[gr]=!0,Yn(v,{get:function(e,t){return this.has(e)?e:t},contains:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),v.prototype.has=ao.contains,Yn(k,h.prototype),Yn(I,d.prototype),Yn(P,v.prototype),Yn(H,h.prototype),Yn(G,d.prototype),Yn($,v.prototype);var uo={Iterable:f,Seq:T,Collection:K,Map:Lt,OrderedMap:Rn,List:pn,Stack:Tn,Set:Dn,OrderedSet:Un,Record:zn,Range:$n,Repeat:Qn,is:Q,fromJS:Y};return uo})},{}],11:[function(e,t){var n=e("lodash._arraymap"),r=e("lodash._basedifference"),o=e("lodash._baseflatten"),i=e("lodash._bindcallback"),a=e("lodash._pickbyarray"),s=e("lodash._pickbycallback"),u=e("lodash.keysin"),c=e("lodash.restparam"),l=c(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=n(o(t),String);return a(e,r(u(e),t))}var c=i(t[0],t[1],3);return s(e,function(e,t,n){return!c(e,t,n)})});t.exports=l},{"lodash._arraymap":12,"lodash._basedifference":13,"lodash._baseflatten":18,"lodash._bindcallback":21,"lodash._pickbyarray":22,"lodash._pickbycallback":23,"lodash.keysin":25,"lodash.restparam":28}],12:[function(e,t){function n(e,t){for(var n=-1,r=e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}t.exports=n},{}],13:[function(e,t){function n(e,t){var n=e?e.length:0,a=[];if(!n)return a;var s=-1,u=r,c=!0,l=c&&t.length>=200?i(t):null,p=t.length;l&&(u=o,c=!1,t=l);e:for(;++s<n;){var f=e[s];if(c&&f===f){for(var h=p;h--;)if(t[h]===f)continue e;a.push(f)}else u(t,f,0)<0&&a.push(f)}return a}var r=e("lodash._baseindexof"),o=e("lodash._cacheindexof"),i=e("lodash._createcache");t.exports=n},{"lodash._baseindexof":14,"lodash._cacheindexof":15,"lodash._createcache":16}],14:[function(e,t){function n(e,t,n){if(t!==t)return r(e,n);for(var o=n-1,i=e.length;++o<i;)if(e[o]===t)return o;return-1}function r(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var i=e[o];if(i!==i)return o}return-1}t.exports=n},{}],15:[function(e,t){function n(e,t){var n=e.data,o="string"==typeof t||r(t)?n.set.has(t):n.hash[t];return o?0:-1}function r(e){var t=typeof e;return"function"==t||!!e&&"object"==t}t.exports=n},{}],16:[function(e,t){(function(n){function r(e){var t=e?e.length:0;for(this.data={hash:c(null),set:new u};t--;)this.push(e[t])}function o(e){var t=this.data;"string"==typeof e||i(e)?t.set.add(e):t.hash[e]=!0}function i(e){var t=typeof e;return"function"==t||!!e&&"object"==t}function a(e){return function(){return e}}var s=e("lodash.isnative"),u=s(u=n.Set)&&u,c=s(c=Object.create)&&c,l=c&&u?function(e){return new r(e)}:a(null);r.prototype.push=o,t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"lodash.isnative":17}],17:[function(e,t){function n(e){return"string"==typeof e?e:null==e?"":e+""}function r(e){return!!e&&"object"==typeof e}function o(e){return null==e?!1:f.call(e)==a?h.test(p.call(e)):r(e)&&s.test(e)}function i(e){return e=n(e),e&&c.test(e)?e.replace(u,"\\$&"):e}var a="[object Function]",s=/^\[object .+?Constructor\]$/,u=/[.*+?^${}()|[\]\/\\]/g,c=RegExp(u.source),l=Object.prototype,p=Function.prototype.toString,f=l.toString,h=RegExp("^"+i(f).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},{}],18:[function(e,t){function n(e){return!!e&&"object"==typeof e}function r(e,t,s){for(var u=-1,c=e.length,l=-1,p=[];++u<c;){var f=e[u];if(n(f)&&o(f.length)&&(a(f)||i(f))){t&&(f=r(f,t,s));var h=-1,d=f.length;for(p.length+=d;++h<d;)p[++l]=f[h]}else s||(p[++l]=f)}return p}function o(e){return"number"==typeof e&&e>-1&&e%1==0&&s>=e}var i=e("lodash.isarguments"),a=e("lodash.isarray"),s=Math.pow(2,53)-1;t.exports=r},{"lodash.isarguments":19,"lodash.isarray":20}],19:[function(e,t){function n(e){return!!e&&"object"==typeof e}function r(e){return"number"==typeof e&&e>-1&&e%1==0&&u>=e}function o(e){var t=n(e)?e.length:void 0;return r(t)&&s.call(e)==i}var i="[object Arguments]",a=Object.prototype,s=a.toString,u=Math.pow(2,53)-1;t.exports=o},{}],20:[function(e,t){function n(e){return"string"==typeof e?e:null==e?"":e+""}function r(e){return!!e&&"object"==typeof e}function o(e){return"number"==typeof e&&e>-1&&e%1==0&&y>=e}function i(e){return null==e?!1:d.call(e)==u?v.test(h.call(e)):r(e)&&c.test(e)}function a(e){return e=n(e),e&&p.test(e)?e.replace(l,"\\$&"):e}var s="[object Array]",u="[object Function]",c=/^\[object .+?Constructor\]$/,l=/[.*+?^${}()|[\]\/\\]/g,p=RegExp(l.source),f=Object.prototype,h=Function.prototype.toString,d=f.toString,v=RegExp("^"+a(d).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=i(m=Array.isArray)&&m,y=Math.pow(2,53)-1,g=m||function(e){return r(e)&&o(e.length)&&d.call(e)==s};t.exports=g},{}],21:[function(e,t){function n(e,t,n){if("function"!=typeof e)return r;if("undefined"==typeof t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)};case 5:return function(n,r,o,i,a){return e.call(t,n,r,o,i,a)}}return function(){return e.apply(t,arguments)}}function r(e){return e}t.exports=n},{}],22:[function(e,t){function n(e,t){e=r(e);for(var n=-1,o=t.length,i={};++n<o;){var a=t[n];a in e&&(i[a]=e[a])}return i}function r(e){return o(e)?e:Object(e)}function o(e){var t=typeof e;return"function"==t||!!e&&"object"==t}t.exports=n},{}],23:[function(e,t){function n(e,t){return o(e,t,i)}function r(e,t){var r={};return n(e,function(e,n,o){t(e,n,o)&&(r[n]=e)}),r}var o=e("lodash._basefor"),i=e("lodash.keysin");t.exports=r},{"lodash._basefor":24,"lodash.keysin":25}],24:[function(e,t){function n(e){return function(t,n,o){for(var i=r(t),a=o(t),s=a.length,u=e?s:-1;e?u--:++u<s;){var c=a[u];if(n(i[c],c,i)===!1)break}return t}}function r(e){return o(e)?e:Object(e)}function o(e){var t=typeof e;return"function"==t||!!e&&"object"==t}var i=n();t.exports=i},{}],25:[function(e,t){function n(e,t){return e=+e,t=null==t?p:t,e>-1&&e%1==0&&t>e}function r(e){return"number"==typeof e&&e>-1&&e%1==0&&p>=e}function o(e){var t=typeof e;return"function"==t||!!e&&"object"==t}function i(e){if(null==e)return[];o(e)||(e=Object(e));var t=e.length;t=t&&r(t)&&(s(e)||f.nonEnumArgs&&a(e))&&t||0;for(var i=e.constructor,u=-1,l="function"==typeof i&&i.prototype===e,p=Array(t),h=t>0;++u<t;)p[u]=u+"";for(var d in e)h&&n(d,t)||"constructor"==d&&(l||!c.call(e,d))||p.push(d);return p}var a=e("lodash.isarguments"),s=e("lodash.isarray"),u=Object.prototype,c=u.hasOwnProperty,l=u.propertyIsEnumerable,p=Math.pow(2,53)-1,f={};!function(){try{f.nonEnumArgs=!l.call(arguments,1)}catch(e){f.nonEnumArgs=!0}}(0,0),t.exports=i},{"lodash.isarguments":26,"lodash.isarray":27}],26:[function(e,t,n){arguments[4][19][0].apply(n,arguments)},{dup:19}],27:[function(e,t,n){arguments[4][20][0].apply(n,arguments)},{dup:20}],28:[function(e,t){function n(e,t){if("function"!=typeof e)throw new TypeError(r);return t=o("undefined"==typeof t?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,i=o(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var s=Array(t+1);for(r=-1;++r<t;)s[r]=n[r];return s[t]=a,e.apply(this,s)}}var r="Expected a function",o=Math.max;t.exports=n},{}],29:[function(e,t){t.exports=e("./lib/ReactWithAddons")},{"./lib/ReactWithAddons":129}],30:[function(e,t){"use strict";var n=e("./focusNode"),r={componentDidMount:function(){this.props.autoFocus&&n(this.getDOMNode())}};t.exports=r},{"./focusNode":163}],31:[function(e,t){"use strict";function n(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function o(e){switch(e){case x.topCompositionStart:return S.compositionStart;case x.topCompositionEnd:return S.compositionEnd;case x.topCompositionUpdate:return S.compositionUpdate}}function i(e,t){return e===x.topKeyDown&&t.keyCode===b}function a(e,t){switch(e){case x.topKeyUp:return-1!==_.indexOf(t.keyCode);case x.topKeyDown:return t.keyCode!==b;case x.topKeyPress:case x.topMouseDown:case x.topBlur:return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,r){var u,c;if(E?u=o(e):k?a(e,r)&&(u=S.compositionEnd):i(e,r)&&(u=S.compositionStart),!u)return null;R&&(k||u!==S.compositionStart?u===S.compositionEnd&&k&&(c=k.getData()):k=v.getPooled(t));var l=m.getPooled(u,n,r);if(c)l.data=c;else{var p=s(r);null!==p&&(l.data=p)}return h.accumulateTwoPhaseDispatches(l),l}function c(e,t){switch(e){case x.topCompositionEnd:return s(t);case x.topKeyPress:var n=t.which;return n!==O?null:(T=!0,M);case x.topTextInput:var r=t.data;return r===M&&T?null:r;default:return null}}function l(e,t){if(k){if(e===x.topCompositionEnd||a(e,t)){var n=k.getData();return v.release(k),k=null,n}return null}switch(e){case x.topPaste:return null;case x.topKeyPress:return t.which&&!r(t)?String.fromCharCode(t.which):null;case x.topCompositionEnd:return R?null:t.data;default:return null}}function p(e,t,n,r){var o;if(o=C?c(e,r):l(e,r),!o)return null;var i=y.getPooled(S.beforeInput,n,r);return i.data=o,h.accumulateTwoPhaseDispatches(i),i}var f=e("./EventConstants"),h=e("./EventPropagators"),d=e("./ExecutionEnvironment"),v=e("./FallbackCompositionState"),m=e("./SyntheticCompositionEvent"),y=e("./SyntheticInputEvent"),g=e("./keyOf"),_=[9,13,27,32],b=229,E=d.canUseDOM&&"CompositionEvent"in window,w=null;d.canUseDOM&&"documentMode"in document&&(w=document.documentMode);var C=d.canUseDOM&&"TextEvent"in window&&!w&&!n(),R=d.canUseDOM&&(!E||w&&w>8&&11>=w),O=32,M=String.fromCharCode(O),x=f.topLevelTypes,S={beforeInput:{phasedRegistrationNames:{bubbled:g({onBeforeInput:null}),captured:g({onBeforeInputCapture:null})},dependencies:[x.topCompositionEnd,x.topKeyPress,x.topTextInput,x.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:g({onCompositionEnd:null}),captured:g({onCompositionEndCapture:null})},dependencies:[x.topBlur,x.topCompositionEnd,x.topKeyDown,x.topKeyPress,x.topKeyUp,x.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:g({onCompositionStart:null}),captured:g({onCompositionStartCapture:null})},dependencies:[x.topBlur,x.topCompositionStart,x.topKeyDown,x.topKeyPress,x.topKeyUp,x.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:g({onCompositionUpdate:null}),captured:g({onCompositionUpdateCapture:null})},dependencies:[x.topBlur,x.topCompositionUpdate,x.topKeyDown,x.topKeyPress,x.topKeyUp,x.topMouseDown]}},T=!1,k=null,I={eventTypes:S,extractEvents:function(e,t,n,r){return[u(e,t,n,r),p(e,t,n,r)]}};t.exports=I},{"./EventConstants":44,"./EventPropagators":49,"./ExecutionEnvironment":50,"./FallbackCompositionState":51,"./SyntheticCompositionEvent":135,"./SyntheticInputEvent":139,"./keyOf":186}],32:[function(e,t){var n=e("./invariant"),r={addClass:function(e,t){return n(!/\s/.test(t)),t&&(e.classList?e.classList.add(t):r.hasClass(e,t)||(e.className=e.className+" "+t)),e},removeClass:function(e,t){return n(!/\s/.test(t)),t&&(e.classList?e.classList.remove(t):r.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?r.addClass:r.removeClass)(e,t)},hasClass:function(e,t){return n(!/\s/.test(t)),e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}};t.exports=r},{"./invariant":179}],33:[function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeOpacity:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[n(t,e)]=r[e]})});var i={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:i};
  5. t.exports=a},{}],34:[function(e,t){"use strict";var n=e("./CSSProperty"),r=e("./ExecutionEnvironment"),o=(e("./camelizeStyleName"),e("./dangerousStyleValue")),i=e("./hyphenateStyleName"),a=e("./memoizeStringOnly"),s=(e("./warning"),a(function(e){return i(e)})),u="cssFloat";r.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(u="styleFloat");var c={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=s(n)+":",t+=o(n,r)+";")}return t||null},setValueForStyles:function(e,t){var r=e.style;for(var i in t)if(t.hasOwnProperty(i)){var a=o(i,t[i]);if("float"===i&&(i=u),a)r[i]=a;else{var s=n.shorthandPropertyExpansions[i];if(s)for(var c in s)r[c]="";else r[i]=""}}}};t.exports=c},{"./CSSProperty":33,"./ExecutionEnvironment":50,"./camelizeStyleName":150,"./dangerousStyleValue":157,"./hyphenateStyleName":177,"./memoizeStringOnly":188,"./warning":200}],35:[function(e,t){"use strict";function n(){this._callbacks=null,this._contexts=null}var r=e("./PooledClass"),o=e("./Object.assign"),i=e("./invariant");o(n.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){i(e.length===t.length),this._callbacks=null,this._contexts=null;for(var n=0,r=e.length;r>n;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),r.addPoolingTo(n),t.exports=n},{"./Object.assign":57,"./PooledClass":58,"./invariant":179}],36:[function(e,t){"use strict";function n(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function r(e){var t=w.getPooled(x.change,T,e);_.accumulateTwoPhaseDispatches(t),E.batchedUpdates(o,t)}function o(e){g.enqueueEvents(e),g.processEventQueue()}function i(e,t){S=e,T=t,S.attachEvent("onchange",r)}function a(){S&&(S.detachEvent("onchange",r),S=null,T=null)}function s(e,t,n){return e===M.topChange?n:void 0}function u(e,t,n){e===M.topFocus?(a(),i(t,n)):e===M.topBlur&&a()}function c(e,t){S=e,T=t,k=e.value,I=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(S,"value",N),S.attachEvent("onpropertychange",p)}function l(){S&&(delete S.value,S.detachEvent("onpropertychange",p),S=null,T=null,k=null,I=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==k&&(k=t,r(e))}}function f(e,t,n){return e===M.topInput?n:void 0}function h(e,t,n){e===M.topFocus?(l(),c(t,n)):e===M.topBlur&&l()}function d(e){return e!==M.topSelectionChange&&e!==M.topKeyUp&&e!==M.topKeyDown||!S||S.value===k?void 0:(k=S.value,T)}function v(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function m(e,t,n){return e===M.topClick?n:void 0}var y=e("./EventConstants"),g=e("./EventPluginHub"),_=e("./EventPropagators"),b=e("./ExecutionEnvironment"),E=e("./ReactUpdates"),w=e("./SyntheticEvent"),C=e("./isEventSupported"),R=e("./isTextInputElement"),O=e("./keyOf"),M=y.topLevelTypes,x={change:{phasedRegistrationNames:{bubbled:O({onChange:null}),captured:O({onChangeCapture:null})},dependencies:[M.topBlur,M.topChange,M.topClick,M.topFocus,M.topInput,M.topKeyDown,M.topKeyUp,M.topSelectionChange]}},S=null,T=null,k=null,I=null,P=!1;b.canUseDOM&&(P=C("change")&&(!("documentMode"in document)||document.documentMode>8));var D=!1;b.canUseDOM&&(D=C("input")&&(!("documentMode"in document)||document.documentMode>9));var N={get:function(){return I.get.call(this)},set:function(e){k=""+e,I.set.call(this,e)}},A={eventTypes:x,extractEvents:function(e,t,r,o){var i,a;if(n(t)?P?i=s:a=u:R(t)?D?i=f:(i=d,a=h):v(t)&&(i=m),i){var c=i(e,t,r);if(c){var l=w.getPooled(x.change,c,o);return _.accumulateTwoPhaseDispatches(l),l}}a&&a(e,t,r)}};t.exports=A},{"./EventConstants":44,"./EventPluginHub":46,"./EventPropagators":49,"./ExecutionEnvironment":50,"./ReactUpdates":128,"./SyntheticEvent":137,"./isEventSupported":180,"./isTextInputElement":182,"./keyOf":186}],37:[function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};t.exports=r},{}],38:[function(e,t){"use strict";function n(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var r=e("./Danger"),o=e("./ReactMultiChildUpdateTypes"),i=e("./setTextContent"),a=e("./invariant"),s={dangerouslyReplaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup,updateTextContent:i,processUpdates:function(e,t){for(var s,u=null,c=null,l=0;l<e.length;l++)if(s=e[l],s.type===o.MOVE_EXISTING||s.type===o.REMOVE_NODE){var p=s.fromIndex,f=s.parentNode.childNodes[p],h=s.parentID;a(f),u=u||{},u[h]=u[h]||[],u[h][p]=f,c=c||[],c.push(f)}var d=r.dangerouslyRenderMarkup(t);if(c)for(var v=0;v<c.length;v++)c[v].parentNode.removeChild(c[v]);for(var m=0;m<e.length;m++)switch(s=e[m],s.type){case o.INSERT_MARKUP:n(s.parentNode,d[s.markupIndex],s.toIndex);break;case o.MOVE_EXISTING:n(s.parentNode,u[s.parentID][s.fromIndex],s.toIndex);break;case o.TEXT_CONTENT:i(s.parentNode,s.textContent);break;case o.REMOVE_NODE:}}};t.exports=s},{"./Danger":41,"./ReactMultiChildUpdateTypes":107,"./invariant":179,"./setTextContent":194}],39:[function(e,t){"use strict";function n(e,t){return(e&t)===t}var r=e("./invariant"),o={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=e.Properties||{},i=e.DOMAttributeNames||{},s=e.DOMPropertyNames||{},u=e.DOMMutationMethods||{};e.isCustomAttribute&&a._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var c in t){r(!a.isStandardName.hasOwnProperty(c)),a.isStandardName[c]=!0;var l=c.toLowerCase();if(a.getPossibleStandardName[l]=c,i.hasOwnProperty(c)){var p=i[c];a.getPossibleStandardName[p]=c,a.getAttributeName[c]=p}else a.getAttributeName[c]=l;a.getPropertyName[c]=s.hasOwnProperty(c)?s[c]:c,a.getMutationMethod[c]=u.hasOwnProperty(c)?u[c]:null;var f=t[c];a.mustUseAttribute[c]=n(f,o.MUST_USE_ATTRIBUTE),a.mustUseProperty[c]=n(f,o.MUST_USE_PROPERTY),a.hasSideEffects[c]=n(f,o.HAS_SIDE_EFFECTS),a.hasBooleanValue[c]=n(f,o.HAS_BOOLEAN_VALUE),a.hasNumericValue[c]=n(f,o.HAS_NUMERIC_VALUE),a.hasPositiveNumericValue[c]=n(f,o.HAS_POSITIVE_NUMERIC_VALUE),a.hasOverloadedBooleanValue[c]=n(f,o.HAS_OVERLOADED_BOOLEAN_VALUE),r(!a.mustUseAttribute[c]||!a.mustUseProperty[c]),r(a.mustUseProperty[c]||!a.hasSideEffects[c]),r(!!a.hasBooleanValue[c]+!!a.hasNumericValue[c]+!!a.hasOverloadedBooleanValue[c]<=1)}}},i={},a={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<a._isCustomAttributeFunctions.length;t++){var n=a._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=i[e];return r||(i[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:o};t.exports=a},{"./invariant":179}],40:[function(e,t){"use strict";function n(e,t){return null==t||r.hasBooleanValue[e]&&!t||r.hasNumericValue[e]&&isNaN(t)||r.hasPositiveNumericValue[e]&&1>t||r.hasOverloadedBooleanValue[e]&&t===!1}var r=e("./DOMProperty"),o=e("./quoteAttributeValueForBrowser"),i=(e("./warning"),{createMarkupForID:function(e){return r.ID_ATTRIBUTE_NAME+"="+o(e)},createMarkupForProperty:function(e,t){if(r.isStandardName.hasOwnProperty(e)&&r.isStandardName[e]){if(n(e,t))return"";var i=r.getAttributeName[e];return r.hasBooleanValue[e]||r.hasOverloadedBooleanValue[e]&&t===!0?i:i+"="+o(t)}return r.isCustomAttribute(e)?null==t?"":e+"="+o(t):null},setValueForProperty:function(e,t,o){if(r.isStandardName.hasOwnProperty(t)&&r.isStandardName[t]){var i=r.getMutationMethod[t];if(i)i(e,o);else if(n(t,o))this.deleteValueForProperty(e,t);else if(r.mustUseAttribute[t])e.setAttribute(r.getAttributeName[t],""+o);else{var a=r.getPropertyName[t];r.hasSideEffects[t]&&""+e[a]==""+o||(e[a]=o)}}else r.isCustomAttribute(t)&&(null==o?e.removeAttribute(t):e.setAttribute(t,""+o))},deleteValueForProperty:function(e,t){if(r.isStandardName.hasOwnProperty(t)&&r.isStandardName[t]){var n=r.getMutationMethod[t];if(n)n(e,void 0);else if(r.mustUseAttribute[t])e.removeAttribute(r.getAttributeName[t]);else{var o=r.getPropertyName[t],i=r.getDefaultValueForProperty(e.nodeName,o);r.hasSideEffects[t]&&""+e[o]===i||(e[o]=i)}}else r.isCustomAttribute(t)&&e.removeAttribute(t)}});t.exports=i},{"./DOMProperty":39,"./quoteAttributeValueForBrowser":192,"./warning":200}],41:[function(e,t){"use strict";function n(e){return e.substring(1,e.indexOf(" "))}var r=e("./ExecutionEnvironment"),o=e("./createNodesFromMarkup"),i=e("./emptyFunction"),a=e("./getMarkupWrap"),s=e("./invariant"),u=/^(<[^ \/>]+)/,c="data-danger-index",l={dangerouslyRenderMarkup:function(e){s(r.canUseDOM);for(var t,l={},p=0;p<e.length;p++)s(e[p]),t=n(e[p]),t=a(t)?t:"*",l[t]=l[t]||[],l[t][p]=e[p];var f=[],h=0;for(t in l)if(l.hasOwnProperty(t)){var d,v=l[t];for(d in v)if(v.hasOwnProperty(d)){var m=v[d];v[d]=m.replace(u,"$1 "+c+'="'+d+'" ')}for(var y=o(v.join(""),i),g=0;g<y.length;++g){var _=y[g];_.hasAttribute&&_.hasAttribute(c)&&(d=+_.getAttribute(c),_.removeAttribute(c),s(!f.hasOwnProperty(d)),f[d]=_,h+=1)}}return s(h===f.length),s(f.length===e.length),f},dangerouslyReplaceNodeWithMarkup:function(e,t){s(r.canUseDOM),s(t),s("html"!==e.tagName.toLowerCase());var n=o(t,i)[0];e.parentNode.replaceChild(n,e)}};t.exports=l},{"./ExecutionEnvironment":50,"./createNodesFromMarkup":155,"./emptyFunction":158,"./getMarkupWrap":171,"./invariant":179}],42:[function(e,t){"use strict";var n=e("./keyOf"),r=[n({ResponderEventPlugin:null}),n({SimpleEventPlugin:null}),n({TapEventPlugin:null}),n({EnterLeaveEventPlugin:null}),n({ChangeEventPlugin:null}),n({SelectEventPlugin:null}),n({BeforeInputEventPlugin:null}),n({AnalyticsEventPlugin:null}),n({MobileSafariClickEventPlugin:null})];t.exports=r},{"./keyOf":186}],43:[function(e,t){"use strict";var n=e("./EventConstants"),r=e("./EventPropagators"),o=e("./SyntheticMouseEvent"),i=e("./ReactMount"),a=e("./keyOf"),s=n.topLevelTypes,u=i.getFirstReactDOM,c={mouseEnter:{registrationName:a({onMouseEnter:null}),dependencies:[s.topMouseOut,s.topMouseOver]},mouseLeave:{registrationName:a({onMouseLeave:null}),dependencies:[s.topMouseOut,s.topMouseOver]}},l=[null,null],p={eventTypes:c,extractEvents:function(e,t,n,a){if(e===s.topMouseOver&&(a.relatedTarget||a.fromElement))return null;if(e!==s.topMouseOut&&e!==s.topMouseOver)return null;var p;if(t.window===t)p=t;else{var f=t.ownerDocument;p=f?f.defaultView||f.parentWindow:window}var h,d;if(e===s.topMouseOut?(h=t,d=u(a.relatedTarget||a.toElement)||p):(h=p,d=t),h===d)return null;var v=h?i.getID(h):"",m=d?i.getID(d):"",y=o.getPooled(c.mouseLeave,v,a);y.type="mouseleave",y.target=h,y.relatedTarget=d;var g=o.getPooled(c.mouseEnter,m,a);return g.type="mouseenter",g.target=d,g.relatedTarget=h,r.accumulateEnterLeaveDispatches(y,g,v,m),l[0]=y,l[1]=g,l}};t.exports=p},{"./EventConstants":44,"./EventPropagators":49,"./ReactMount":105,"./SyntheticMouseEvent":141,"./keyOf":186}],44:[function(e,t){"use strict";var n=e("./keyMirror"),r=n({bubbled:null,captured:null}),o=n({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),i={topLevelTypes:o,PropagationPhases:r};t.exports=i},{"./keyMirror":185}],45:[function(e,t){var n=e("./emptyFunction"),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,r){return e.addEventListener?(e.addEventListener(t,r,!0),{remove:function(){e.removeEventListener(t,r,!0)}}):{remove:n}},registerDefault:function(){}};t.exports=r},{"./emptyFunction":158}],46:[function(e,t){"use strict";var n=e("./EventPluginRegistry"),r=e("./EventPluginUtils"),o=e("./accumulateInto"),i=e("./forEachAccumulated"),a=e("./invariant"),s={},u=null,c=function(e){if(e){var t=r.executeDispatch,o=n.getPluginModuleForEvent(e);o&&o.executeDispatch&&(t=o.executeDispatch),r.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e)}},l=null,p={injection:{injectMount:r.injection.injectMount,injectInstanceHandle:function(e){l=e},getInstanceHandle:function(){return l},injectEventPluginOrder:n.injectEventPluginOrder,injectEventPluginsByName:n.injectEventPluginsByName},eventNameDispatchConfigs:n.eventNameDispatchConfigs,registrationNameModules:n.registrationNameModules,putListener:function(e,t,n){a(!n||"function"==typeof n);var r=s[t]||(s[t]={});r[e]=n},getListener:function(e,t){var n=s[t];return n&&n[e]},deleteListener:function(e,t){var n=s[t];n&&delete n[e]},deleteAllListeners:function(e){for(var t in s)delete s[t][e]},extractEvents:function(e,t,r,i){for(var a,s=n.plugins,u=0,c=s.length;c>u;u++){var l=s[u];if(l){var p=l.extractEvents(e,t,r,i);p&&(a=o(a,p))}}return a},enqueueEvents:function(e){e&&(u=o(u,e))},processEventQueue:function(){var e=u;u=null,i(e,c),a(!u)},__purge:function(){s={}},__getListenerBank:function(){return s}};t.exports=p},{"./EventPluginRegistry":47,"./EventPluginUtils":48,"./accumulateInto":147,"./forEachAccumulated":164,"./invariant":179}],47:[function(e,t){"use strict";function n(){if(a)for(var e in s){var t=s[e],n=a.indexOf(e);if(i(n>-1),!u.plugins[n]){i(t.extractEvents),u.plugins[n]=t;var o=t.eventTypes;for(var c in o)i(r(o[c],t,c))}}}function r(e,t,n){i(!u.eventNameDispatchConfigs.hasOwnProperty(n)),u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];o(s,t,n)}return!0}return e.registrationName?(o(e.registrationName,t,n),!0):!1}function o(e,t,n){i(!u.registrationNameModules[e]),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var i=e("./invariant"),a=null,s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){i(!a),a=Array.prototype.slice.call(e),n()},injectEventPluginsByName:function(e){var t=!1;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];s.hasOwnProperty(r)&&s[r]===o||(i(!s[r]),s[r]=o,t=!0)}t&&n()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=u.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){a=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=u},{"./invariant":179}],48:[function(e,t){"use strict";function n(e){return e===v.topMouseUp||e===v.topTouchEnd||e===v.topTouchCancel}function r(e){return e===v.topMouseMove||e===v.topTouchMove}function o(e){return e===v.topMouseDown||e===v.topTouchStart}function i(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)t(e,n[o],r[o]);else n&&t(e,n,r)}function a(e,t,n){e.currentTarget=d.Mount.getNode(n);var r=t(e,n);return e.currentTarget=null,r}function s(e,t){i(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function u(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function c(e){var t=u(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function l(e){var t=e._dispatchListeners,n=e._dispatchIDs;h(!Array.isArray(t));var r=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function p(e){return!!e._dispatchListeners}var f=e("./EventConstants"),h=e("./invariant"),d={Mount:null,injectMount:function(e){d.Mount=e}},v=f.topLevelTypes,m={isEndish:n,isMoveish:r,isStartish:o,executeDirectDispatch:l,executeDispatch:a,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:c,hasDispatches:p,injection:d,useTouchEvents:!1};t.exports=m},{"./EventConstants":44,"./invariant":179}],49:[function(e,t){"use strict";function n(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return v(e,r)}function r(e,t,r){var o=t?d.bubbled:d.captured,i=n(e,r,o);i&&(r._dispatchListeners=f(r._dispatchListeners,i),r._dispatchIDs=f(r._dispatchIDs,e))}function o(e){e&&e.dispatchConfig.phasedRegistrationNames&&p.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,r,e)}function i(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=v(e,r);o&&(n._dispatchListeners=f(n._dispatchListeners,o),n._dispatchIDs=f(n._dispatchIDs,e))}}function a(e){e&&e.dispatchConfig.registrationName&&i(e.dispatchMarker,null,e)}function s(e){h(e,o)}function u(e,t,n,r){p.injection.getInstanceHandle().traverseEnterLeave(n,r,i,e,t)}function c(e){h(e,a)}var l=e("./EventConstants"),p=e("./EventPluginHub"),f=e("./accumulateInto"),h=e("./forEachAccumulated"),d=l.PropagationPhases,v=p.getListener,m={accumulateTwoPhaseDispatches:s,accumulateDirectDispatches:c,accumulateEnterLeaveDispatches:u};t.exports=m},{"./EventConstants":44,"./EventPluginHub":46,"./accumulateInto":147,"./forEachAccumulated":164}],50:[function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=r},{}],51:[function(e,t){"use strict";function n(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=e("./PooledClass"),o=e("./Object.assign"),i=e("./getTextContentAccessor");o(n.prototype,{getText:function(){return"value"in this._root?this._root.value:this._root[i()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;r>e&&n[e]===o[e];e++);var a=r-e;for(t=1;a>=t&&n[r-t]===o[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),r.addPoolingTo(n),t.exports=n},{"./Object.assign":57,"./PooledClass":58,"./getTextContentAccessor":174}],52:[function(e,t){"use strict";var n,r=e("./DOMProperty"),o=e("./ExecutionEnvironment"),i=r.injection.MUST_USE_ATTRIBUTE,a=r.injection.MUST_USE_PROPERTY,s=r.injection.HAS_BOOLEAN_VALUE,u=r.injection.HAS_SIDE_EFFECTS,c=r.injection.HAS_NUMERIC_VALUE,l=r.injection.HAS_POSITIVE_NUMERIC_VALUE,p=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(o.canUseDOM){var f=document.implementation;n=f&&f.hasFeature&&f.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:i|s,allowTransparency:i,alt:null,async:s,autoComplete:null,autoPlay:s,cellPadding:null,cellSpacing:null,charSet:i,checked:a|s,classID:i,className:n?i:a,cols:i|l,colSpan:null,content:null,contentEditable:null,contextMenu:i,controls:a|s,coords:null,crossOrigin:null,data:null,dateTime:i,defer:s,dir:null,disabled:i|s,download:p,draggable:null,encType:null,form:i,formAction:i,formEncType:i,formMethod:i,formNoValidate:s,formTarget:i,frameBorder:i,headers:null,height:i,hidden:i|s,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:a,label:null,lang:null,list:i,loop:a|s,manifest:i,marginHeight:null,marginWidth:null,max:null,maxLength:i,media:i,mediaGroup:null,method:null,min:null,multiple:a|s,muted:a|s,name:null,noValidate:s,open:s,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:a|s,rel:null,required:s,role:i,rows:i|l,rowSpan:null,sandbox:null,scope:null,scrolling:null,seamless:i|s,selected:a|s,shape:null,size:i|l,sizes:i,span:l,spellCheck:null,src:null,srcDoc:a,srcSet:i,start:c,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:a|u,width:i,wmode:i,autoCapitalize:null,autoCorrect:null,itemProp:i,itemScope:i|s,itemType:i,itemID:i,itemRef:i,property:null},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=h},{"./DOMProperty":39,"./ExecutionEnvironment":50}],53:[function(e,t){"use strict";var n=e("./ReactLink"),r=e("./ReactStateSetters"),o={linkState:function(e){return new n(this.state[e],r.createStateKeySetter(this,e))}};t.exports=o},{"./ReactLink":103,"./ReactStateSetters":122}],54:[function(e,t){"use strict";function n(e){u(null==e.props.checkedLink||null==e.props.valueLink)}function r(e){n(e),u(null==e.props.value&&null==e.props.onChange)}function o(e){n(e),u(null==e.props.checked&&null==e.props.onChange)}function i(e){this.props.valueLink.requestChange(e.target.value)}function a(e){this.props.checkedLink.requestChange(e.target.checked)}var s=e("./ReactPropTypes"),u=e("./invariant"),c={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},l={Mixin:{propTypes:{value:function(e,t){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func}},getValue:function(e){return e.props.valueLink?(r(e),e.props.valueLink.value):e.props.value},getChecked:function(e){return e.props.checkedLink?(o(e),e.props.checkedLink.value):e.props.checked},getOnChange:function(e){return e.props.valueLink?(r(e),i):e.props.checkedLink?(o(e),a):e.props.onChange}};t.exports=l},{"./ReactPropTypes":114,"./invariant":179}],55:[function(e,t){"use strict";function n(e){e.remove()}var r=e("./ReactBrowserEventEmitter"),o=e("./accumulateInto"),i=e("./forEachAccumulated"),a=e("./invariant"),s={trapBubbledEvent:function(e,t){a(this.isMounted());var n=this.getDOMNode();a(n);var i=r.trapBubbledEvent(e,t,n);this._localEventListeners=o(this._localEventListeners,i)},componentWillUnmount:function(){this._localEventListeners&&i(this._localEventListeners,n)}};t.exports=s},{"./ReactBrowserEventEmitter":61,"./accumulateInto":147,"./forEachAccumulated":164,"./invariant":179}],56:[function(e,t){"use strict";var n=e("./EventConstants"),r=e("./emptyFunction"),o=n.topLevelTypes,i={eventTypes:null,extractEvents:function(e,t,n,i){if(e===o.topTouchStart){var a=i.target;a&&!a.onclick&&(a.onclick=r)}}};t.exports=i},{"./EventConstants":44,"./emptyFunction":158}],57:[function(e,t){"use strict";function n(e){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var t=Object(e),n=Object.prototype.hasOwnProperty,r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o){var i=Object(o);for(var a in i)n.call(i,a)&&(t[a]=i[a])}}return t}t.exports=n},{}],58:[function(e,t){"use strict";var n=e("./invariant"),r=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},o=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},i=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},a=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},s=function(e){var t=this;n(e instanceof t),e.destructor&&e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=10,c=r,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||c,n.poolSize||(n.poolSize=u),n.release=s,n},p={addPoolingTo:l,oneArgumentPooler:r,twoArgumentPooler:o,threeArgumentPooler:i,fiveArgumentPooler:a};t.exports=p},{"./invariant":179}],59:[function(e,t){"use strict";var n=e("./EventPluginUtils"),r=e("./ReactChildren"),o=e("./ReactComponent"),i=e("./ReactClass"),a=e("./ReactContext"),s=e("./ReactCurrentOwner"),u=e("./ReactElement"),c=(e("./ReactElementValidator"),e("./ReactDOM")),l=e("./ReactDOMTextComponent"),p=e("./ReactDefaultInjection"),f=e("./ReactInstanceHandles"),h=e("./ReactMount"),d=e("./ReactPerf"),v=e("./ReactPropTypes"),m=e("./ReactReconciler"),y=e("./ReactServerRendering"),g=e("./Object.assign"),_=e("./findDOMNode"),b=e("./onlyChild");p.inject();var E=u.createElement,w=u.createFactory,C=u.cloneElement,R=d.measure("React","render",h.render),O={Children:{map:r.map,forEach:r.forEach,count:r.count,only:b},Component:o,DOM:c,PropTypes:v,initializeTouchEvents:function(e){n.useTouchEvents=e},createClass:i.createClass,createElement:E,cloneElement:C,createFactory:w,createMixin:function(e){return e},constructAndRenderComponent:h.constructAndRenderComponent,constructAndRenderComponentByID:h.constructAndRenderComponentByID,findDOMNode:_,render:R,renderToString:y.renderToString,renderToStaticMarkup:y.renderToStaticMarkup,unmountComponentAtNode:h.unmountComponentAtNode,isValidElement:u.isValidElement,withContext:a.withContext,__spread:g};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:s,InstanceHandles:f,Mount:h,Reconciler:m,TextComponent:l});O.version="0.13.1",t.exports=O},{"./EventPluginUtils":48,"./ExecutionEnvironment":50,"./Object.assign":57,"./ReactChildren":65,"./ReactClass":66,"./ReactComponent":67,"./ReactContext":72,"./ReactCurrentOwner":73,"./ReactDOM":74,"./ReactDOMTextComponent":85,"./ReactDefaultInjection":88,"./ReactElement":91,"./ReactElementValidator":92,"./ReactInstanceHandles":100,"./ReactMount":105,"./ReactPerf":110,"./ReactPropTypes":114,"./ReactReconciler":117,"./ReactServerRendering":120,"./findDOMNode":161,"./onlyChild":189}],60:[function(e,t){"use strict";var n=e("./findDOMNode"),r={getDOMNode:function(){return n(this)}};t.exports=r},{"./findDOMNode":161}],61:[function(e,t){"use strict";function n(e){return Object.prototype.hasOwnProperty.call(e,d)||(e[d]=f++,l[e[d]]={}),l[e[d]]}var r=e("./EventConstants"),o=e("./EventPluginHub"),i=e("./EventPluginRegistry"),a=e("./ReactEventEmitterMixin"),s=e("./ViewportMetrics"),u=e("./Object.assign"),c=e("./isEventSupported"),l={},p=!1,f=0,h={topBlur:"blur",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topWheel:"wheel"},d="_reactListenersID"+String(Math.random()).slice(2),v=u({},a,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var o=t,a=n(o),s=i.registrationNameDependencies[e],u=r.topLevelTypes,l=0,p=s.length;p>l;l++){var f=s[l];a.hasOwnProperty(f)&&a[f]||(f===u.topWheel?c("wheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",o):c("mousewheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",o):v.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",o):f===u.topScroll?c("scroll",!0)?v.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",o):v.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):f===u.topFocus||f===u.topBlur?(c("focus",!0)?(v.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",o),v.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",o)):c("focusin")&&(v.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",o),v.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",o)),a[u.topBlur]=!0,a[u.topFocus]=!0):h.hasOwnProperty(f)&&v.ReactEventListener.trapBubbledEvent(f,h[f],o),a[f]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!p){var e=s.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),p=!0}},eventNameDispatchConfigs:o.eventNameDispatchConfigs,registrationNameModules:o.registrationNameModules,putListener:o.putListener,getListener:o.getListener,deleteListener:o.deleteListener,deleteAllListeners:o.deleteAllListeners});t.exports=v},{"./EventConstants":44,"./EventPluginHub":46,"./EventPluginRegistry":47,"./Object.assign":57,"./ReactEventEmitterMixin":95,"./ViewportMetrics":146,"./isEventSupported":180}],62:[function(e,t){"use strict";var n=e("./React"),r=e("./Object.assign"),o=n.createFactory(e("./ReactTransitionGroup")),i=n.createFactory(e("./ReactCSSTransitionGroupChild")),a=n.createClass({displayName:"ReactCSSTransitionGroup",propTypes:{transitionName:n.PropTypes.string.isRequired,transitionAppear:n.PropTypes.bool,transitionEnter:n.PropTypes.bool,transitionLeave:n.PropTypes.bool},getDefaultProps:function(){return{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}},_wrapChild:function(e){return i({name:this.props.transitionName,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave},e)},render:function(){return o(r({},this.props,{childFactory:this._wrapChild}))}});t.exports=a},{"./Object.assign":57,"./React":59,"./ReactCSSTransitionGroupChild":63,"./ReactTransitionGroup":126}],63:[function(e,t){"use strict";var n=e("./React"),r=e("./CSSCore"),o=e("./ReactTransitionEvents"),i=e("./onlyChild"),a=(e("./warning"),17),s=n.createClass({displayName:"ReactCSSTransitionGroupChild",transition:function(e,t){var n=this.getDOMNode(),i=this.props.name+"-"+e,a=i+"-active",s=function(e){e&&e.target!==n||(r.removeClass(n,i),r.removeClass(n,a),o.removeEndEventListener(n,s),t&&t())};o.addEndEventListener(n,s),r.addClass(n,i),this.queueClass(a)},queueClass:function(e){this.classNameQueue.push(e),this.timeout||(this.timeout=setTimeout(this.flushClassNameQueue,a))
  6. },flushClassNameQueue:function(){this.isMounted()&&this.classNameQueue.forEach(r.addClass.bind(r,this.getDOMNode())),this.classNameQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameQueue=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout)},componentWillAppear:function(e){this.props.appear?this.transition("appear",e):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e):e()},render:function(){return i(this.props.children)}});t.exports=s},{"./CSSCore":32,"./React":59,"./ReactTransitionEvents":125,"./onlyChild":189,"./warning":200}],64:[function(e,t){"use strict";var n=e("./ReactReconciler"),r=e("./flattenChildren"),o=e("./instantiateReactComponent"),i=e("./shouldUpdateReactComponent"),a={instantiateChildren:function(e){var t=r(e);for(var n in t)if(t.hasOwnProperty(n)){var i=t[n],a=o(i,null);t[n]=a}return t},updateChildren:function(e,t,a,s){var u=r(t);if(!u&&!e)return null;var c;for(c in u)if(u.hasOwnProperty(c)){var l=e&&e[c],p=l&&l._currentElement,f=u[c];if(i(p,f))n.receiveComponent(l,f,a,s),u[c]=l;else{l&&n.unmountComponent(l,c);var h=o(f,null);u[c]=h}}for(c in e)!e.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||n.unmountComponent(e[c]);return u},unmountChildren:function(e){for(var t in e){var r=e[t];n.unmountComponent(r)}}};t.exports=a},{"./ReactReconciler":117,"./flattenChildren":162,"./instantiateReactComponent":178,"./shouldUpdateReactComponent":196}],65:[function(e,t){"use strict";function n(e,t){this.forEachFunction=e,this.forEachContext=t}function r(e,t,n,r){var o=e;o.forEachFunction.call(o.forEachContext,t,r)}function o(e,t,o){if(null==e)return e;var i=n.getPooled(t,o);f(e,r,i),n.release(i)}function i(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function a(e,t,n,r){var o=e,i=o.mapResult,a=!i.hasOwnProperty(n);if(a){var s=o.mapFunction.call(o.mapContext,t,r);i[n]=s}}function s(e,t,n){if(null==e)return e;var r={},o=i.getPooled(r,t,n);return f(e,a,o),i.release(o),p.create(r)}function u(){return null}function c(e){return f(e,u,null)}var l=e("./PooledClass"),p=e("./ReactFragment"),f=e("./traverseAllChildren"),h=(e("./warning"),l.twoArgumentPooler),d=l.threeArgumentPooler;l.addPoolingTo(n,h),l.addPoolingTo(i,d);var v={forEach:o,map:s,count:c};t.exports=v},{"./PooledClass":58,"./ReactFragment":97,"./traverseAllChildren":198,"./warning":200}],66:[function(e,t){"use strict";function n(e,t){var n=C.hasOwnProperty(t)?C[t]:null;O.hasOwnProperty(t)&&y(n===E.OVERRIDE_BASE),e.hasOwnProperty(t)&&y(n===E.DEFINE_MANY||n===E.DEFINE_MANY_MERGED)}function r(e,t){if(t){y("function"!=typeof t),y(!p.isValidElement(t));var r=e.prototype;t.hasOwnProperty(b)&&R.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==b){var i=t[o];if(n(r,o),R.hasOwnProperty(o))R[o](e,i);else{var u=C.hasOwnProperty(o),c=r.hasOwnProperty(o),l=i&&i.__reactDontBind,f="function"==typeof i,h=f&&!u&&!c&&!l;if(h)r.__reactAutoBindMap||(r.__reactAutoBindMap={}),r.__reactAutoBindMap[o]=i,r[o]=i;else if(c){var d=C[o];y(u&&(d===E.DEFINE_MANY_MERGED||d===E.DEFINE_MANY)),d===E.DEFINE_MANY_MERGED?r[o]=a(r[o],i):d===E.DEFINE_MANY&&(r[o]=s(r[o],i))}else r[o]=i}}}}function o(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in R;y(!o);var i=n in e;y(!i),e[n]=r}}}function i(e,t){y(e&&t&&"object"==typeof e&&"object"==typeof t);for(var n in t)t.hasOwnProperty(n)&&(y(void 0===e[n]),e[n]=t[n]);return e}function a(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return i(o,n),i(o,r),o}}function s(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function u(e,t){var n=t.bind(e);return n}function c(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=u(e,f.guard(n,e.constructor.displayName+"."+t))}}var l=e("./ReactComponent"),p=(e("./ReactCurrentOwner"),e("./ReactElement")),f=e("./ReactErrorUtils"),h=e("./ReactInstanceMap"),d=e("./ReactLifeCycle"),v=(e("./ReactPropTypeLocations"),e("./ReactPropTypeLocationNames"),e("./ReactUpdateQueue")),m=e("./Object.assign"),y=e("./invariant"),g=e("./keyMirror"),_=e("./keyOf"),b=(e("./warning"),_({mixins:null})),E=g({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),w=[],C={mixins:E.DEFINE_MANY,statics:E.DEFINE_MANY,propTypes:E.DEFINE_MANY,contextTypes:E.DEFINE_MANY,childContextTypes:E.DEFINE_MANY,getDefaultProps:E.DEFINE_MANY_MERGED,getInitialState:E.DEFINE_MANY_MERGED,getChildContext:E.DEFINE_MANY_MERGED,render:E.DEFINE_ONCE,componentWillMount:E.DEFINE_MANY,componentDidMount:E.DEFINE_MANY,componentWillReceiveProps:E.DEFINE_MANY,shouldComponentUpdate:E.DEFINE_ONCE,componentWillUpdate:E.DEFINE_MANY,componentDidUpdate:E.DEFINE_MANY,componentWillUnmount:E.DEFINE_MANY,updateComponent:E.OVERRIDE_BASE},R={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)r(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=m({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=m({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps=e.getDefaultProps?a(e.getDefaultProps,t):t},propTypes:function(e,t){e.propTypes=m({},e.propTypes,t)},statics:function(e,t){o(e,t)}},O={replaceState:function(e,t){v.enqueueReplaceState(this,e),t&&v.enqueueCallback(this,t)},isMounted:function(){var e=h.get(this);return e&&e!==d.currentlyMountingInstance},setProps:function(e,t){v.enqueueSetProps(this,e),t&&v.enqueueCallback(this,t)},replaceProps:function(e,t){v.enqueueReplaceProps(this,e),t&&v.enqueueCallback(this,t)}},M=function(){};m(M.prototype,l.prototype,O);var x={createClass:function(e){var t=function(e,t){this.__reactAutoBindMap&&c(this),this.props=e,this.context=t,this.state=null;var n=this.getInitialState?this.getInitialState():null;y("object"==typeof n&&!Array.isArray(n)),this.state=n};t.prototype=new M,t.prototype.constructor=t,w.forEach(r.bind(null,t)),r(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),y(t.prototype.render);for(var n in C)t.prototype[n]||(t.prototype[n]=null);return t.type=t,t},injection:{injectMixin:function(e){w.push(e)}}};t.exports=x},{"./Object.assign":57,"./ReactComponent":67,"./ReactCurrentOwner":73,"./ReactElement":91,"./ReactErrorUtils":94,"./ReactInstanceMap":101,"./ReactLifeCycle":102,"./ReactPropTypeLocationNames":112,"./ReactPropTypeLocations":113,"./ReactUpdateQueue":127,"./invariant":179,"./keyMirror":185,"./keyOf":186,"./warning":200}],67:[function(e,t){"use strict";function n(e,t){this.props=e,this.context=t}{var r=e("./ReactUpdateQueue"),o=e("./invariant");e("./warning")}n.prototype.setState=function(e,t){o("object"==typeof e||"function"==typeof e||null==e),r.enqueueSetState(this,e),t&&r.enqueueCallback(this,t)},n.prototype.forceUpdate=function(e){r.enqueueForceUpdate(this),e&&r.enqueueCallback(this,e)};t.exports=n},{"./ReactUpdateQueue":127,"./invariant":179,"./warning":200}],68:[function(e,t){"use strict";var n=e("./ReactDOMIDOperations"),r=e("./ReactMount"),o={processChildrenUpdates:n.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:n.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){r.purgeID(e)}};t.exports=o},{"./ReactDOMIDOperations":78,"./ReactMount":105}],69:[function(e,t){"use strict";var n=e("./invariant"),r=!1,o={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){n(!r),o.unmountIDFromEnvironment=e.unmountIDFromEnvironment,o.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,o.processChildrenUpdates=e.processChildrenUpdates,r=!0}}};t.exports=o},{"./invariant":179}],70:[function(e,t){"use strict";var n=e("./shallowEqual"),r={shouldComponentUpdate:function(e,t){return!n(this.props,e)||!n(this.state,t)}};t.exports=r},{"./shallowEqual":195}],71:[function(e,t){"use strict";function n(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}var r=e("./ReactComponentEnvironment"),o=e("./ReactContext"),i=e("./ReactCurrentOwner"),a=e("./ReactElement"),s=(e("./ReactElementValidator"),e("./ReactInstanceMap")),u=e("./ReactLifeCycle"),c=e("./ReactNativeComponent"),l=e("./ReactPerf"),p=e("./ReactPropTypeLocations"),f=(e("./ReactPropTypeLocationNames"),e("./ReactReconciler")),h=e("./ReactUpdates"),d=e("./Object.assign"),v=e("./emptyObject"),m=e("./invariant"),y=e("./shouldUpdateReactComponent"),g=(e("./warning"),1),_={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=g++,this._rootNodeID=e;var r=this._processProps(this._currentElement.props),o=this._processContext(this._currentElement._context),i=c.getComponentClassForElement(this._currentElement),a=new i(r,o);a.props=r,a.context=o,a.refs=v,this._instance=a,s.set(a,this);var l=a.state;void 0===l&&(a.state=l=null),m("object"==typeof l&&!Array.isArray(l)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var p,h=u.currentlyMountingInstance;u.currentlyMountingInstance=this;try{a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),p=this._renderValidatedComponent()}finally{u.currentlyMountingInstance=h}this._renderedComponent=this._instantiateReactComponent(p,this._currentElement.type);var d=f.mountComponent(this._renderedComponent,e,t,this._processChildContext(n));return a.componentDidMount&&t.getReactMountReady().enqueue(a.componentDidMount,a),d},unmountComponent:function(){var e=this._instance;if(e.componentWillUnmount){var t=u.currentlyUnmountingInstance;u.currentlyUnmountingInstance=this;try{e.componentWillUnmount()}finally{u.currentlyUnmountingInstance=t}}f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,s.remove(e)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=a.cloneAndReplaceProps(n,d({},n.props,e)),h.enqueueUpdate(this,t)},_maskContext:function(e){var t=null;if("string"==typeof this._currentElement.type)return v;var n=this._currentElement.type.contextTypes;if(!n)return v;t={};for(var r in n)t[r]=e[r];return t},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();if(n){m("object"==typeof t.constructor.childContextTypes);for(var r in n)m(r in t.constructor.childContextTypes);return d({},e,n)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,r){var o=this.getName();for(var i in e)if(e.hasOwnProperty(i)){var a;try{m("function"==typeof e[i]),a=e[i](t,i,o,r)}catch(s){a=s}if(a instanceof Error){{n(this)}r===p.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},_warnIfContextsDiffer:function(e,t){e=this._maskContext(e),t=this._maskContext(t);for(var n=Object.keys(t).sort(),r=(this.getName()||"ReactCompositeComponent",0);r<n.length;r++){n[r]}},updateComponent:function(e,t,n,r,o){var i=this._instance,a=i.context,s=i.props;t!==n&&(a=this._processContext(n._context),s=this._processProps(n.props),i.componentWillReceiveProps&&i.componentWillReceiveProps(s,a));var u=this._processPendingState(s,a),c=this._pendingForceUpdate||!i.shouldComponentUpdate||i.shouldComponentUpdate(s,u,a);c?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,s,u,a,e,o)):(this._currentElement=n,this._context=o,i.props=s,i.state=u,i.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;for(var i=d({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var s=r[a];d(i,"function"==typeof s?s.call(n,i,e,t):s)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a=this._instance,s=a.props,u=a.state,c=a.context;a.componentWillUpdate&&a.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,a.props=t,a.state=n,a.context=r,this._updateRenderedComponent(o,i),a.componentDidUpdate&&o.getReactMountReady().enqueue(a.componentDidUpdate.bind(a,s,u,c),a)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent();if(y(r,o))f.receiveComponent(n,o,e,this._processChildContext(t));else{var i=this._rootNodeID,a=n._rootNodeID;f.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(o,this._currentElement.type);var s=f.mountComponent(this._renderedComponent,i,e,t);this._replaceNodeWithMarkupByID(a,s)}},_replaceNodeWithMarkupByID:function(e,t){r.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(){var e,t=o.current;o.current=this._processChildContext(this._currentElement._context),i.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{o.current=t,i.current=null}return m(null===e||e===!1||a.isValidElement(e)),e},attachRef:function(e,t){var n=this.getPublicInstance(),r=n.refs===v?n.refs={}:n.refs;r[e]=t.getPublicInstance()},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};l.measureMethods(_,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var b={Mixin:_};t.exports=b},{"./Object.assign":57,"./ReactComponentEnvironment":69,"./ReactContext":72,"./ReactCurrentOwner":73,"./ReactElement":91,"./ReactElementValidator":92,"./ReactInstanceMap":101,"./ReactLifeCycle":102,"./ReactNativeComponent":108,"./ReactPerf":110,"./ReactPropTypeLocationNames":112,"./ReactPropTypeLocations":113,"./ReactReconciler":117,"./ReactUpdates":128,"./emptyObject":159,"./invariant":179,"./shouldUpdateReactComponent":196,"./warning":200}],72:[function(e,t){"use strict";var n=e("./Object.assign"),r=e("./emptyObject"),o=(e("./warning"),{current:r,withContext:function(e,t){var r,i=o.current;o.current=n({},i,e);try{r=t()}finally{o.current=i}return r}});t.exports=o},{"./Object.assign":57,"./emptyObject":159,"./warning":200}],73:[function(e,t){"use strict";var n={current:null};t.exports=n},{}],74:[function(e,t){"use strict";function n(e){return r.createFactory(e)}var r=e("./ReactElement"),o=(e("./ReactElementValidator"),e("./mapObject")),i=o({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",defs:"defs",ellipse:"ellipse",g:"g",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},n);t.exports=i},{"./ReactElement":91,"./ReactElementValidator":92,"./mapObject":187}],75:[function(e,t){"use strict";var n=e("./AutoFocusMixin"),r=e("./ReactBrowserComponentMixin"),o=e("./ReactClass"),i=e("./ReactElement"),a=e("./keyMirror"),s=i.createFactory("button"),u=a({onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0}),c=o.createClass({displayName:"ReactDOMButton",tagName:"BUTTON",mixins:[n,r],render:function(){var e={};for(var t in this.props)!this.props.hasOwnProperty(t)||this.props.disabled&&u[t]||(e[t]=this.props[t]);return s(e,this.props.children)}});t.exports=c},{"./AutoFocusMixin":30,"./ReactBrowserComponentMixin":60,"./ReactClass":66,"./ReactElement":91,"./keyMirror":185}],76:[function(e,t){"use strict";function n(e){e&&(null!=e.dangerouslySetInnerHTML&&(m(null==e.children),m(null!=e.dangerouslySetInnerHTML.__html)),m(null==e.style||"object"==typeof e.style))}function r(e,t,n,r){var o=p.findReactContainerForID(e);if(o){var i=o.nodeType===C?o.ownerDocument:o;_(t,i)}r.getPutListenerQueue().enqueuePutListener(e,t,n)}function o(e){S.call(x,e)||(m(M.test(e)),x[e]=!0)}function i(e){o(e),this._tag=e,this._renderedChildren=null,this._previousStyleCopy=null,this._rootNodeID=null}var a=e("./CSSPropertyOperations"),s=e("./DOMProperty"),u=e("./DOMPropertyOperations"),c=e("./ReactBrowserEventEmitter"),l=e("./ReactComponentBrowserEnvironment"),p=e("./ReactMount"),f=e("./ReactMultiChild"),h=e("./ReactPerf"),d=e("./Object.assign"),v=e("./escapeTextContentForBrowser"),m=e("./invariant"),y=(e("./isEventSupported"),e("./keyOf")),g=(e("./warning"),c.deleteListener),_=c.listenTo,b=c.registrationNameModules,E={string:!0,number:!0},w=y({style:null}),C=1,R=null,O={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},M=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,x={},S={}.hasOwnProperty;i.displayName="ReactDOMComponent",i.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,r){this._rootNodeID=e,n(this._currentElement.props);var o=O[this._tag]?"":"</"+this._tag+">";return this._createOpenTagMarkupAndPutListeners(t)+this._createContentMarkup(t,r)+o},_createOpenTagMarkupAndPutListeners:function(e){var t=this._currentElement.props,n="<"+this._tag;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];if(null!=i)if(b.hasOwnProperty(o))r(this._rootNodeID,o,i,e);else{o===w&&(i&&(i=this._previousStyleCopy=d({},t.style)),i=a.createMarkupForStyles(i));var s=u.createMarkupForProperty(o,i);s&&(n+=" "+s)}}if(e.renderToStaticMarkup)return n+">";var c=u.createMarkupForID(this._rootNodeID);return n+" "+c+">"},_createContentMarkup:function(e,t){var n="";("listing"===this._tag||"pre"===this._tag||"textarea"===this._tag)&&(n="\n");var r=this._currentElement.props,o=r.dangerouslySetInnerHTML;if(null!=o){if(null!=o.__html)return n+o.__html}else{var i=E[typeof r.children]?r.children:null,a=null!=i?null:r.children;if(null!=i)return n+v(i);if(null!=a){var s=this.mountChildren(a,e,t);return n+s.join("")}}return n},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,r,o){n(this._currentElement.props),this._updateDOMProperties(t.props,e),this._updateDOMChildren(t.props,e,o)},_updateDOMProperties:function(e,t){var n,o,i,a=this._currentElement.props;for(n in e)if(!a.hasOwnProperty(n)&&e.hasOwnProperty(n))if(n===w){var u=this._previousStyleCopy;for(o in u)u.hasOwnProperty(o)&&(i=i||{},i[o]="");this._previousStyleCopy=null}else b.hasOwnProperty(n)?g(this._rootNodeID,n):(s.isStandardName[n]||s.isCustomAttribute(n))&&R.deletePropertyByID(this._rootNodeID,n);for(n in a){var c=a[n],l=n===w?this._previousStyleCopy:e[n];if(a.hasOwnProperty(n)&&c!==l)if(n===w)if(c&&(c=this._previousStyleCopy=d({},c)),l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(i=i||{},i[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(i=i||{},i[o]=c[o])}else i=c;else b.hasOwnProperty(n)?r(this._rootNodeID,n,c,t):(s.isStandardName[n]||s.isCustomAttribute(n))&&R.updatePropertyByID(this._rootNodeID,n,c)}i&&R.updateStylesByID(this._rootNodeID,i)},_updateDOMChildren:function(e,t,n){var r=this._currentElement.props,o=E[typeof e.children]?e.children:null,i=E[typeof r.children]?r.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=r.dangerouslySetInnerHTML&&r.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,c=null!=i?null:r.children,l=null!=o||null!=a,p=null!=i||null!=s;null!=u&&null==c?this.updateChildren(null,t,n):l&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=s?a!==s&&R.updateInnerHTMLByID(this._rootNodeID,s):null!=c&&this.updateChildren(c,t,n)},unmountComponent:function(){this.unmountChildren(),c.deleteAllListeners(this._rootNodeID),l.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},h.measureMethods(i,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),d(i.prototype,i.Mixin,f.Mixin),i.injection={injectIDOperations:function(e){i.BackendIDOperations=R=e}},t.exports=i},{"./CSSPropertyOperations":34,"./DOMProperty":39,"./DOMPropertyOperations":40,"./Object.assign":57,"./ReactBrowserEventEmitter":61,"./ReactComponentBrowserEnvironment":68,"./ReactMount":105,"./ReactMultiChild":106,"./ReactPerf":110,"./escapeTextContentForBrowser":160,"./invariant":179,"./isEventSupported":180,"./keyOf":186,"./warning":200}],77:[function(e,t){"use strict";var n=e("./EventConstants"),r=e("./LocalEventTrapMixin"),o=e("./ReactBrowserComponentMixin"),i=e("./ReactClass"),a=e("./ReactElement"),s=a.createFactory("form"),u=i.createClass({displayName:"ReactDOMForm",tagName:"FORM",mixins:[o,r],render:function(){return s(this.props)},componentDidMount:function(){this.trapBubbledEvent(n.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(n.topLevelTypes.topSubmit,"submit")}});t.exports=u},{"./EventConstants":44,"./LocalEventTrapMixin":55,"./ReactBrowserComponentMixin":60,"./ReactClass":66,"./ReactElement":91}],78:[function(e,t){"use strict";var n=e("./CSSPropertyOperations"),r=e("./DOMChildrenOperations"),o=e("./DOMPropertyOperations"),i=e("./ReactMount"),a=e("./ReactPerf"),s=e("./invariant"),u=e("./setInnerHTML"),c={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},l={updatePropertyByID:function(e,t,n){var r=i.getNode(e);s(!c.hasOwnProperty(t)),null!=n?o.setValueForProperty(r,t,n):o.deleteValueForProperty(r,t)},deletePropertyByID:function(e,t,n){var r=i.getNode(e);s(!c.hasOwnProperty(t)),o.deleteValueForProperty(r,t,n)},updateStylesByID:function(e,t){var r=i.getNode(e);n.setValueForStyles(r,t)},updateInnerHTMLByID:function(e,t){var n=i.getNode(e);u(n,t)},updateTextContentByID:function(e,t){var n=i.getNode(e);r.updateTextContent(n,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=i.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=i.getNode(e[n].parentID);r.processUpdates(e,t)}};a.measureMethods(l,"ReactDOMIDOperations",{updatePropertyByID:"updatePropertyByID",deletePropertyByID:"deletePropertyByID",updateStylesByID:"updateStylesByID",updateInnerHTMLByID:"updateInnerHTMLByID",updateTextContentByID:"updateTextContentByID",dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),t.exports=l},{"./CSSPropertyOperations":34,"./DOMChildrenOperations":38,"./DOMPropertyOperations":40,"./ReactMount":105,"./ReactPerf":110,"./invariant":179,"./setInnerHTML":193}],79:[function(e,t){"use strict";var n=e("./EventConstants"),r=e("./LocalEventTrapMixin"),o=e("./ReactBrowserComponentMixin"),i=e("./ReactClass"),a=e("./ReactElement"),s=a.createFactory("iframe"),u=i.createClass({displayName:"ReactDOMIframe",tagName:"IFRAME",mixins:[o,r],render:function(){return s(this.props)},componentDidMount:function(){this.trapBubbledEvent(n.topLevelTypes.topLoad,"load")}});t.exports=u},{"./EventConstants":44,"./LocalEventTrapMixin":55,"./ReactBrowserComponentMixin":60,"./ReactClass":66,"./ReactElement":91}],80:[function(e,t){"use strict";var n=e("./EventConstants"),r=e("./LocalEventTrapMixin"),o=e("./ReactBrowserComponentMixin"),i=e("./ReactClass"),a=e("./ReactElement"),s=a.createFactory("img"),u=i.createClass({displayName:"ReactDOMImg",tagName:"IMG",mixins:[o,r],render:function(){return s(this.props)},componentDidMount:function(){this.trapBubbledEvent(n.topLevelTypes.topLoad,"load"),this.trapBubbledEvent(n.topLevelTypes.topError,"error")}});t.exports=u},{"./EventConstants":44,"./LocalEventTrapMixin":55,"./ReactBrowserComponentMixin":60,"./ReactClass":66,"./ReactElement":91}],81:[function(e,t){"use strict";function n(){this.isMounted()&&this.forceUpdate()}var r=e("./AutoFocusMixin"),o=e("./DOMPropertyOperations"),i=e("./LinkedValueUtils"),a=e("./ReactBrowserComponentMixin"),s=e("./ReactClass"),u=e("./ReactElement"),c=e("./ReactMount"),l=e("./ReactUpdates"),p=e("./Object.assign"),f=e("./invariant"),h=u.createFactory("input"),d={},v=s.createClass({displayName:"ReactDOMInput",tagName:"INPUT",mixins:[r,i.Mixin,a],getInitialState:function(){var e=this.props.defaultValue;return{initialChecked:this.props.defaultChecked||!1,initialValue:null!=e?e:null}},render:function(){var e=p({},this.props);e.defaultChecked=null,e.defaultValue=null;var t=i.getValue(this);e.value=null!=t?t:this.state.initialValue;var n=i.getChecked(this);return e.checked=null!=n?n:this.state.initialChecked,e.onChange=this._handleChange,h(e,this.props.children)},componentDidMount:function(){var e=c.getID(this.getDOMNode());d[e]=this},componentWillUnmount:function(){var e=this.getDOMNode(),t=c.getID(e);delete d[t]},componentDidUpdate:function(){var e=this.getDOMNode();null!=this.props.checked&&o.setValueForProperty(e,"checked",this.props.checked||!1);var t=i.getValue(this);null!=t&&o.setValueForProperty(e,"value",""+t)},_handleChange:function(e){var t,r=i.getOnChange(this);r&&(t=r.call(this,e)),l.asap(n,this);var o=this.props.name;if("radio"===this.props.type&&null!=o){for(var a=this.getDOMNode(),s=a;s.parentNode;)s=s.parentNode;for(var u=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),p=0,h=u.length;h>p;p++){var v=u[p];if(v!==a&&v.form===a.form){var m=c.getID(v);f(m);var y=d[m];f(y),l.asap(n,y)}}}return t}});t.exports=v},{"./AutoFocusMixin":30,"./DOMPropertyOperations":40,"./LinkedValueUtils":54,"./Object.assign":57,"./ReactBrowserComponentMixin":60,"./ReactClass":66,"./ReactElement":91,"./ReactMount":105,"./ReactUpdates":128,"./invariant":179}],82:[function(e,t){"use strict";var n=e("./ReactBrowserComponentMixin"),r=e("./ReactClass"),o=e("./ReactElement"),i=(e("./warning"),o.createFactory("option")),a=r.createClass({displayName:"ReactDOMOption",tagName:"OPTION",mixins:[n],componentWillMount:function(){},render:function(){return i(this.props,this.props.children)}});t.exports=a},{"./ReactBrowserComponentMixin":60,"./ReactClass":66,"./ReactElement":91,"./warning":200}],83:[function(e,t){"use strict";function n(){if(this._pendingUpdate){this._pendingUpdate=!1;var e=a.getValue(this);null!=e&&this.isMounted()&&o(this,e)}}function r(e,t){if(null==e[t])return null;if(e.multiple){if(!Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function o(e,t){var n,r,o,i=e.getDOMNode().options;if(e.props.multiple){for(n={},r=0,o=t.length;o>r;r++)n[""+t[r]]=!0;for(r=0,o=i.length;o>r;r++){var a=n.hasOwnProperty(i[r].value);i[r].selected!==a&&(i[r].selected=a)}}else{for(n=""+t,r=0,o=i.length;o>r;r++)if(i[r].value===n)return void(i[r].selected=!0);i.length&&(i[0].selected=!0)}}var i=e("./AutoFocusMixin"),a=e("./LinkedValueUtils"),s=e("./ReactBrowserComponentMixin"),u=e("./ReactClass"),c=e("./ReactElement"),l=e("./ReactUpdates"),p=e("./Object.assign"),f=c.createFactory("select"),h=u.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[i,a.Mixin,s],propTypes:{defaultValue:r,value:r},render:function(){var e=p({},this.props);return e.onChange=this._handleChange,e.value=null,f(e,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var e=a.getValue(this);null!=e?o(this,e):null!=this.props.defaultValue&&o(this,this.props.defaultValue)},componentDidUpdate:function(e){var t=a.getValue(this);null!=t?(this._pendingUpdate=!1,o(this,t)):!e.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?o(this,this.props.defaultValue):o(this,this.props.multiple?[]:""))},_handleChange:function(e){var t,r=a.getOnChange(this);return r&&(t=r.call(this,e)),this._pendingUpdate=!0,l.asap(n,this),t}});t.exports=h},{"./AutoFocusMixin":30,"./LinkedValueUtils":54,"./Object.assign":57,"./ReactBrowserComponentMixin":60,"./ReactClass":66,"./ReactElement":91,"./ReactUpdates":128}],84:[function(e,t){"use strict";function n(e,t,n,r){return e===n&&t===r}function r(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function o(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0),u=n(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:s.toString().length,l=s.cloneRange();l.selectNodeContents(e),l.setEnd(s.startContainer,s.startOffset);var p=n(l.startContainer,l.startOffset,l.endContainer,l.endOffset),f=p?0:l.toString().length,h=f+c,d=document.createRange();d.setStart(r,o),d.setEnd(i,a);var v=d.collapsed;return{start:v?h:f,end:v?f:h}}function i(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function a(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=u(e,o),l=u(e,i);if(s&&l){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(l.node,l.offset)):(p.setEnd(l.node,l.offset),n.addRange(p))}}}var s=e("./ExecutionEnvironment"),u=e("./getNodeForCharacterOffset"),c=e("./getTextContentAccessor"),l=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:l?r:o,setOffsets:l?i:a};
  7. t.exports=p},{"./ExecutionEnvironment":50,"./getNodeForCharacterOffset":172,"./getTextContentAccessor":174}],85:[function(e,t){"use strict";var n=e("./DOMPropertyOperations"),r=e("./ReactComponentBrowserEnvironment"),o=e("./ReactDOMComponent"),i=e("./Object.assign"),a=e("./escapeTextContentForBrowser"),s=function(){};i(s.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t){this._rootNodeID=e;var r=a(this._stringText);return t.renderToStaticMarkup?r:"<span "+n.createMarkupForID(e)+">"+r+"</span>"},receiveComponent:function(e){if(e!==this._currentElement){this._currentElement=e;var t=""+e;t!==this._stringText&&(this._stringText=t,o.BackendIDOperations.updateTextContentByID(this._rootNodeID,t))}},unmountComponent:function(){r.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=s},{"./DOMPropertyOperations":40,"./Object.assign":57,"./ReactComponentBrowserEnvironment":68,"./ReactDOMComponent":76,"./escapeTextContentForBrowser":160}],86:[function(e,t){"use strict";function n(){this.isMounted()&&this.forceUpdate()}var r=e("./AutoFocusMixin"),o=e("./DOMPropertyOperations"),i=e("./LinkedValueUtils"),a=e("./ReactBrowserComponentMixin"),s=e("./ReactClass"),u=e("./ReactElement"),c=e("./ReactUpdates"),l=e("./Object.assign"),p=e("./invariant"),f=(e("./warning"),u.createFactory("textarea")),h=s.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[r,i.Mixin,a],getInitialState:function(){var e=this.props.defaultValue,t=this.props.children;null!=t&&(p(null==e),Array.isArray(t)&&(p(t.length<=1),t=t[0]),e=""+t),null==e&&(e="");var n=i.getValue(this);return{initialValue:""+(null!=n?n:e)}},render:function(){var e=l({},this.props);return p(null==e.dangerouslySetInnerHTML),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,f(e,this.state.initialValue)},componentDidUpdate:function(){var e=i.getValue(this);if(null!=e){var t=this.getDOMNode();o.setValueForProperty(t,"value",""+e)}},_handleChange:function(e){var t,r=i.getOnChange(this);return r&&(t=r.call(this,e)),c.asap(n,this),t}});t.exports=h},{"./AutoFocusMixin":30,"./DOMPropertyOperations":40,"./LinkedValueUtils":54,"./Object.assign":57,"./ReactBrowserComponentMixin":60,"./ReactClass":66,"./ReactElement":91,"./ReactUpdates":128,"./invariant":179,"./warning":200}],87:[function(e,t){"use strict";function n(){this.reinitializeTransaction()}var r=e("./ReactUpdates"),o=e("./Transaction"),i=e("./Object.assign"),a=e("./emptyFunction"),s={initialize:a,close:function(){p.isBatchingUpdates=!1}},u={initialize:a,close:r.flushBatchedUpdates.bind(r)},c=[u,s];i(n.prototype,o.Mixin,{getTransactionWrappers:function(){return c}});var l=new n,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o){var i=p.isBatchingUpdates;p.isBatchingUpdates=!0,i?e(t,n,r,o):l.perform(e,null,t,n,r,o)}};t.exports=p},{"./Object.assign":57,"./ReactUpdates":128,"./Transaction":145,"./emptyFunction":158}],88:[function(e,t){"use strict";function n(e){return h.createClass({tagName:e.toUpperCase(),render:function(){return new x(e,null,null,null,null,this.props)}})}function r(){T.EventEmitter.injectReactEventListener(S),T.EventPluginHub.injectEventPluginOrder(s),T.EventPluginHub.injectInstanceHandle(k),T.EventPluginHub.injectMount(I),T.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:A,EnterLeaveEventPlugin:u,ChangeEventPlugin:i,MobileSafariClickEventPlugin:p,SelectEventPlugin:D,BeforeInputEventPlugin:o}),T.NativeComponent.injectGenericComponentClass(m),T.NativeComponent.injectTextComponentClass(M),T.NativeComponent.injectAutoWrapper(n),T.Class.injectMixin(f),T.NativeComponent.injectComponentClasses({button:y,form:g,iframe:E,img:_,input:w,option:C,select:R,textarea:O,html:L("html"),head:L("head"),body:L("body")}),T.DOMProperty.injectDOMPropertyConfig(l),T.DOMProperty.injectDOMPropertyConfig(j),T.EmptyComponent.injectEmptyComponent("noscript"),T.Updates.injectReconcileTransaction(P),T.Updates.injectBatchingStrategy(v),T.RootIndex.injectCreateReactRootIndex(c.canUseDOM?a.createReactRootIndex:N.createReactRootIndex),T.Component.injectEnvironment(d),T.DOMComponent.injectIDOperations(b)}var o=e("./BeforeInputEventPlugin"),i=e("./ChangeEventPlugin"),a=e("./ClientReactRootIndex"),s=e("./DefaultEventPluginOrder"),u=e("./EnterLeaveEventPlugin"),c=e("./ExecutionEnvironment"),l=e("./HTMLDOMPropertyConfig"),p=e("./MobileSafariClickEventPlugin"),f=e("./ReactBrowserComponentMixin"),h=e("./ReactClass"),d=e("./ReactComponentBrowserEnvironment"),v=e("./ReactDefaultBatchingStrategy"),m=e("./ReactDOMComponent"),y=e("./ReactDOMButton"),g=e("./ReactDOMForm"),_=e("./ReactDOMImg"),b=e("./ReactDOMIDOperations"),E=e("./ReactDOMIframe"),w=e("./ReactDOMInput"),C=e("./ReactDOMOption"),R=e("./ReactDOMSelect"),O=e("./ReactDOMTextarea"),M=e("./ReactDOMTextComponent"),x=e("./ReactElement"),S=e("./ReactEventListener"),T=e("./ReactInjection"),k=e("./ReactInstanceHandles"),I=e("./ReactMount"),P=e("./ReactReconcileTransaction"),D=e("./SelectEventPlugin"),N=e("./ServerReactRootIndex"),A=e("./SimpleEventPlugin"),j=e("./SVGDOMPropertyConfig"),L=e("./createFullPageComponent");t.exports={inject:r}},{"./BeforeInputEventPlugin":31,"./ChangeEventPlugin":36,"./ClientReactRootIndex":37,"./DefaultEventPluginOrder":42,"./EnterLeaveEventPlugin":43,"./ExecutionEnvironment":50,"./HTMLDOMPropertyConfig":52,"./MobileSafariClickEventPlugin":56,"./ReactBrowserComponentMixin":60,"./ReactClass":66,"./ReactComponentBrowserEnvironment":68,"./ReactDOMButton":75,"./ReactDOMComponent":76,"./ReactDOMForm":77,"./ReactDOMIDOperations":78,"./ReactDOMIframe":79,"./ReactDOMImg":80,"./ReactDOMInput":81,"./ReactDOMOption":82,"./ReactDOMSelect":83,"./ReactDOMTextComponent":85,"./ReactDOMTextarea":86,"./ReactDefaultBatchingStrategy":87,"./ReactDefaultPerf":89,"./ReactElement":91,"./ReactEventListener":96,"./ReactInjection":98,"./ReactInstanceHandles":100,"./ReactMount":105,"./ReactReconcileTransaction":116,"./SVGDOMPropertyConfig":130,"./SelectEventPlugin":131,"./ServerReactRootIndex":132,"./SimpleEventPlugin":133,"./createFullPageComponent":154}],89:[function(e,t){"use strict";function n(e){return Math.floor(100*e)/100}function r(e,t,n){e[t]=(e[t]||0)+n}var o=e("./DOMProperty"),i=e("./ReactDefaultPerfAnalysis"),a=e("./ReactMount"),s=e("./ReactPerf"),u=e("./performanceNow"),c={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){c._injected||s.injection.injectMeasure(c.measure),c._allMeasurements.length=0,s.enableMeasure=!0},stop:function(){s.enableMeasure=!1},getLastMeasurements:function(){return c._allMeasurements},printExclusive:function(e){e=e||c._allMeasurements;var t=i.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":n(e.inclusive),"Exclusive mount time (ms)":n(e.exclusive),"Exclusive render time (ms)":n(e.render),"Mount time per instance (ms)":n(e.exclusive/e.count),"Render time per instance (ms)":n(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||c._allMeasurements;var t=i.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":n(e.time),Instances:e.count}})),console.log("Total time:",i.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){var t=i.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||c._allMeasurements,console.table(c.getMeasurementsSummaryMap(e)),console.log("Total time:",i.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||c._allMeasurements;var t=i.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[o.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",i.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,r){var o=c._allMeasurements[c._allMeasurements.length-1].writes;o[e]=o[e]||[],o[e].push({type:t,time:n,args:r})},measure:function(e,t,n){return function(){for(var o=[],i=0,s=arguments.length;s>i;i++)o.push(arguments[i]);var l,p,f;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return c._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0}),f=u(),p=n.apply(this,o),c._allMeasurements[c._allMeasurements.length-1].totalTime=u()-f,p;if("_mountImageIntoNode"===t||"ReactDOMIDOperations"===e){if(f=u(),p=n.apply(this,o),l=u()-f,"_mountImageIntoNode"===t){var h=a.getID(o[1]);c._recordWrite(h,t,l,o[0])}else"dangerouslyProcessChildrenUpdates"===t?o[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=o[1][e.markupIndex]),c._recordWrite(e.parentID,e.type,l,t)}):c._recordWrite(o[0],t,l,Array.prototype.slice.call(o,1));return p}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,o);if("string"==typeof this._currentElement.type)return n.apply(this,o);var d="mountComponent"===t?o[0]:this._rootNodeID,v="_renderValidatedComponent"===t,m="mountComponent"===t,y=c._mountStack,g=c._allMeasurements[c._allMeasurements.length-1];if(v?r(g.counts,d,1):m&&y.push(0),f=u(),p=n.apply(this,o),l=u()-f,v)r(g.render,d,l);else if(m){var _=y.pop();y[y.length-1]+=l,r(g.exclusive,d,l-_),r(g.inclusive,d,l)}else r(g.inclusive,d,l);return g.displayNames[d]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},p}}};t.exports=c},{"./DOMProperty":39,"./ReactDefaultPerfAnalysis":90,"./ReactMount":105,"./ReactPerf":110,"./performanceNow":191}],90:[function(e,t){function n(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function r(e){for(var t=[],n=0;n<e.length;n++){var r,o=e[n];for(r in o.writes)o.writes[r].forEach(function(e){t.push({id:r,type:c[e.type]||e.type,args:e.args})})}return t}function o(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r],i=s({},o.exclusive,o.inclusive);for(var a in i)t=o.displayNames[a].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},o.render[a]&&(n[t].render+=o.render[a]),o.exclusive[a]&&(n[t].exclusive+=o.exclusive[a]),o.inclusive[a]&&(n[t].inclusive+=o.inclusive[a]),o.counts[a]&&(n[t].count+=o.counts[a])}var c=[];for(t in n)n[t].exclusive>=u&&c.push(n[t]);return c.sort(function(e,t){return t.exclusive-e.exclusive}),c}function i(e,t){for(var n,r={},o=0;o<e.length;o++){var i,c=e[o],l=s({},c.exclusive,c.inclusive);t&&(i=a(c));for(var p in l)if(!t||i[p]){var f=c.displayNames[p];n=f.owner+" > "+f.current,r[n]=r[n]||{componentName:n,time:0,count:0},c.inclusive[p]&&(r[n].time+=c.inclusive[p]),c.counts[p]&&(r[n].count+=c.counts[p])}}var h=[];for(n in r)r[n].time>=u&&h.push(r[n]);return h.sort(function(e,t){return t.time-e.time}),h}function a(e){var t={},n=Object.keys(e.writes),r=s({},e.exclusive,e.inclusive);for(var o in r){for(var i=!1,a=0;a<n.length;a++)if(0===n[a].indexOf(o)){i=!0;break}!i&&e.counts[o]>0&&(t[o]=!0)}return t}var s=e("./Object.assign"),u=1.2,c={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",TEXT_CONTENT:"set textContent",updatePropertyByID:"update attribute",deletePropertyByID:"delete attribute",updateStylesByID:"update styles",updateInnerHTMLByID:"set innerHTML",dangerouslyReplaceNodeWithMarkupByID:"replace"},l={getExclusiveSummary:o,getInclusiveSummary:i,getDOMSummary:r,getTotalTime:n};t.exports=l},{"./Object.assign":57}],91:[function(e,t){"use strict";var n=e("./ReactContext"),r=e("./ReactCurrentOwner"),o=e("./Object.assign"),i=(e("./warning"),{key:!0,ref:!0}),a=function(e,t,n,r,o,i){this.type=e,this.key=t,this.ref=n,this._owner=r,this._context=o,this.props=i};a.prototype={_isReactElement:!0},a.createElement=function(e,t,o){var s,u={},c=null,l=null;if(null!=t){l=void 0===t.ref?null:t.ref,c=void 0===t.key?null:""+t.key;for(s in t)t.hasOwnProperty(s)&&!i.hasOwnProperty(s)&&(u[s]=t[s])}var p=arguments.length-2;if(1===p)u.children=o;else if(p>1){for(var f=Array(p),h=0;p>h;h++)f[h]=arguments[h+2];u.children=f}if(e&&e.defaultProps){var d=e.defaultProps;for(s in d)"undefined"==typeof u[s]&&(u[s]=d[s])}return new a(e,c,l,r.current,n.current,u)},a.createFactory=function(e){var t=a.createElement.bind(null,e);return t.type=e,t},a.cloneAndReplaceProps=function(e,t){var n=new a(e.type,e.key,e.ref,e._owner,e._context,t);return n},a.cloneElement=function(e,t,n){var s,u=o({},e.props),c=e.key,l=e.ref,p=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,p=r.current),void 0!==t.key&&(c=""+t.key);for(s in t)t.hasOwnProperty(s)&&!i.hasOwnProperty(s)&&(u[s]=t[s])}var f=arguments.length-2;if(1===f)u.children=n;else if(f>1){for(var h=Array(f),d=0;f>d;d++)h[d]=arguments[d+2];u.children=h}return new a(e.type,c,l,p,e._context,u)},a.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},t.exports=a},{"./Object.assign":57,"./ReactContext":72,"./ReactCurrentOwner":73,"./warning":200}],92:[function(e,t){"use strict";function n(){if(y.current){var e=y.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function r(e){var t=e&&e.getPublicInstance();if(!t)return void 0;var n=t.constructor;return n?n.displayName||n.name||void 0:void 0}function o(){var e=y.current;return e&&r(e)||void 0}function i(e,t){e._store.validated||null!=e.key||(e._store.validated=!0,s('Each child in an array or iterator should have a unique "key" prop.',e,t))}function a(e,t,n){C.test(e)&&s("Child objects should have non-numeric keys so ordering is preserved.",t,n)}function s(e,t,n){var i=o(),a="string"==typeof n?n:n.displayName||n.name,s=i||a,u=E[e]||(E[e]={});if(!u.hasOwnProperty(s)){u[s]=!0;var c="";if(t&&t._owner&&t._owner!==y.current){var l=r(t._owner);c=" It was passed a child from "+l+"."}}}function u(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];d.isValidElement(r)&&i(r,t)}else if(d.isValidElement(e))e._store.validated=!0;else if(e){var o=_(e);if(o){if(o!==e.entries)for(var s,u=o.call(e);!(s=u.next()).done;)d.isValidElement(s.value)&&i(s.value,t)}else if("object"==typeof e){var c=v.extractIfFragment(e);for(var l in c)c.hasOwnProperty(l)&&a(l,c[l],t)}}}function c(e,t,r,o){for(var i in t)if(t.hasOwnProperty(i)){var a;try{b("function"==typeof t[i]),a=t[i](r,i,e,o)}catch(s){a=s}if(a instanceof Error&&!(a.message in w)){w[a.message]=!0;{n(this)}}}}function l(e,t){var n=t.type,r="string"==typeof n?n:n.displayName,o=t._owner?t._owner.getPublicInstance().constructor.displayName:null,i=e+"|"+r+"|"+o;if(!R.hasOwnProperty(i)){R[i]=!0;var a="";r&&(a=" <"+r+" />");var s="";o&&(s=" The element was created by "+o+".")}}function p(e,t){return e!==e?t!==t:0===e&&0===t?1/e===1/t:e===t}function f(e){if(e._store){var t=e._store.originalProps,n=e.props;for(var r in n)n.hasOwnProperty(r)&&(t.hasOwnProperty(r)&&p(t[r],n[r])||(l(r,e),t[r]=n[r]))}}function h(e){if(null!=e.type){var t=g.getComponentClassForElement(e),n=t.displayName||t.name;t.propTypes&&c(n,t.propTypes,e.props,m.prop),"function"==typeof t.getDefaultProps}}var d=e("./ReactElement"),v=e("./ReactFragment"),m=e("./ReactPropTypeLocations"),y=(e("./ReactPropTypeLocationNames"),e("./ReactCurrentOwner")),g=e("./ReactNativeComponent"),_=e("./getIteratorFn"),b=e("./invariant"),E=(e("./warning"),{}),w={},C=/^\d+$/,R={},O={checkAndWarnForMutatedProps:f,createElement:function(e){var t=d.createElement.apply(this,arguments);if(null==t)return t;for(var n=2;n<arguments.length;n++)u(arguments[n],e);return h(t),t},createFactory:function(e){var t=O.createElement.bind(null,e);return t.type=e,t},cloneElement:function(){for(var e=d.cloneElement.apply(this,arguments),t=2;t<arguments.length;t++)u(arguments[t],e.type);return h(e),e}};t.exports=O},{"./ReactCurrentOwner":73,"./ReactElement":91,"./ReactFragment":97,"./ReactNativeComponent":108,"./ReactPropTypeLocationNames":112,"./ReactPropTypeLocations":113,"./getIteratorFn":170,"./invariant":179,"./warning":200}],93:[function(e,t){"use strict";function n(e){c[e]=!0}function r(e){delete c[e]}function o(e){return!!c[e]}var i,a=e("./ReactElement"),s=e("./ReactInstanceMap"),u=e("./invariant"),c={},l={injectEmptyComponent:function(e){i=a.createFactory(e)}},p=function(){};p.prototype.componentDidMount=function(){var e=s.get(this);e&&n(e._rootNodeID)},p.prototype.componentWillUnmount=function(){var e=s.get(this);e&&r(e._rootNodeID)},p.prototype.render=function(){return u(i),i()};var f=a.createElement(p),h={emptyElement:f,injection:l,isNullComponentID:o};t.exports=h},{"./ReactElement":91,"./ReactInstanceMap":101,"./invariant":179}],94:[function(e,t){"use strict";var n={guard:function(e){return e}};t.exports=n},{}],95:[function(e,t){"use strict";function n(e){r.enqueueEvents(e),r.processEventQueue()}var r=e("./EventPluginHub"),o={handleTopLevel:function(e,t,o,i){var a=r.extractEvents(e,t,o,i);n(a)}};t.exports=o},{"./EventPluginHub":46}],96:[function(e,t){"use strict";function n(e){var t=l.getID(e),n=c.getReactRootIDFromNodeID(t),r=l.findReactContainerForID(n),o=l.getFirstReactDOM(r);return o}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function o(e){for(var t=l.getFirstReactDOM(h(e.nativeEvent))||window,r=t;r;)e.ancestors.push(r),r=n(r);for(var o=0,i=e.ancestors.length;i>o;o++){t=e.ancestors[o];var a=l.getID(t)||"";v._handleTopLevel(e.topLevelType,t,a,e.nativeEvent)}}function i(e){var t=d(window);e(t)}var a=e("./EventListener"),s=e("./ExecutionEnvironment"),u=e("./PooledClass"),c=e("./ReactInstanceHandles"),l=e("./ReactMount"),p=e("./ReactUpdates"),f=e("./Object.assign"),h=e("./getEventTarget"),d=e("./getUnboundedScrollPosition");f(r.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),u.addPoolingTo(r,u.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:s.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?a.listen(r,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?a.capture(r,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=i.bind(null,e);a.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=r.getPooled(e,t);try{p.batchedUpdates(o,n)}finally{r.release(n)}}}};t.exports=v},{"./EventListener":45,"./ExecutionEnvironment":50,"./Object.assign":57,"./PooledClass":58,"./ReactInstanceHandles":100,"./ReactMount":105,"./ReactUpdates":128,"./getEventTarget":169,"./getUnboundedScrollPosition":175}],97:[function(e,t){"use strict";var n=(e("./ReactElement"),e("./warning"),{create:function(e){return e},extract:function(e){return e},extractIfFragment:function(e){return e}});t.exports=n},{"./ReactElement":91,"./warning":200}],98:[function(e,t){"use strict";var n=e("./DOMProperty"),r=e("./EventPluginHub"),o=e("./ReactComponentEnvironment"),i=e("./ReactClass"),a=e("./ReactEmptyComponent"),s=e("./ReactBrowserEventEmitter"),u=e("./ReactNativeComponent"),c=e("./ReactDOMComponent"),l=e("./ReactPerf"),p=e("./ReactRootIndex"),f=e("./ReactUpdates"),h={Component:o.injection,Class:i.injection,DOMComponent:c.injection,DOMProperty:n.injection,EmptyComponent:a.injection,EventPluginHub:r.injection,EventEmitter:s.injection,NativeComponent:u.injection,Perf:l.injection,RootIndex:p.injection,Updates:f.injection};t.exports=h},{"./DOMProperty":39,"./EventPluginHub":46,"./ReactBrowserEventEmitter":61,"./ReactClass":66,"./ReactComponentEnvironment":69,"./ReactDOMComponent":76,"./ReactEmptyComponent":93,"./ReactNativeComponent":108,"./ReactPerf":110,"./ReactRootIndex":119,"./ReactUpdates":128}],99:[function(e,t){"use strict";function n(e){return o(document.documentElement,e)}var r=e("./ReactDOMSelection"),o=e("./containsNode"),i=e("./focusNode"),a=e("./getActiveElement"),s={hasSelectionCapabilities:function(e){return e&&("INPUT"===e.nodeName&&"text"===e.type||"TEXTAREA"===e.nodeName||"true"===e.contentEditable)},getSelectionInformation:function(){var e=a();return{focusedElem:e,selectionRange:s.hasSelectionCapabilities(e)?s.getSelection(e):null}},restoreSelection:function(e){var t=a(),r=e.focusedElem,o=e.selectionRange;t!==r&&n(r)&&(s.hasSelectionCapabilities(r)&&s.setSelection(r,o),i(r))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&"INPUT"===e.nodeName){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=r.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,o=t.end;if("undefined"==typeof o&&(o=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(o,e.value.length);else if(document.selection&&"INPUT"===e.nodeName){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",o-n),i.select()}else r.setOffsets(e,t)}};t.exports=s},{"./ReactDOMSelection":84,"./containsNode":152,"./focusNode":163,"./getActiveElement":165}],100:[function(e,t){"use strict";function n(e){return f+e.toString(36)}function r(e,t){return e.charAt(t)===f||t===e.length}function o(e){return""===e||e.charAt(0)===f&&e.charAt(e.length-1)!==f}function i(e,t){return 0===t.indexOf(e)&&r(t,e.length)}function a(e){return e?e.substr(0,e.lastIndexOf(f)):""}function s(e,t){if(p(o(e)&&o(t)),p(i(e,t)),e===t)return e;var n,a=e.length+h;for(n=a;n<t.length&&!r(t,n);n++);return t.substr(0,n)}function u(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var i=0,a=0;n>=a;a++)if(r(e,a)&&r(t,a))i=a;else if(e.charAt(a)!==t.charAt(a))break;var s=e.substr(0,i);return p(o(s)),s}function c(e,t,n,r,o,u){e=e||"",t=t||"",p(e!==t);var c=i(t,e);p(c||i(e,t));for(var l=0,f=c?a:s,h=e;;h=f(h,t)){var v;if(o&&h===e||u&&h===t||(v=n(h,c,r)),v===!1||h===t)break;p(l++<d)}}var l=e("./ReactRootIndex"),p=e("./invariant"),f=".",h=f.length,d=100,v={createReactRootID:function(){return n(l.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===f&&e.length>1){var t=e.indexOf(f,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=u(e,t);i!==e&&c(e,i,n,r,!1,!0),i!==t&&c(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},_getFirstCommonAncestorID:u,_getNextDescendantID:s,isAncestorIDOf:i,SEPARATOR:f};t.exports=v},{"./ReactRootIndex":119,"./invariant":179}],101:[function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=n},{}],102:[function(e,t){"use strict";var n={currentlyMountingInstance:null,currentlyUnmountingInstance:null};t.exports=n},{}],103:[function(e,t){"use strict";function n(e,t){this.value=e,this.requestChange=t}function r(e){var t={value:"undefined"==typeof e?o.PropTypes.any.isRequired:e.isRequired,requestChange:o.PropTypes.func.isRequired};return o.PropTypes.shape(t)}var o=e("./React");n.PropTypes={link:r},t.exports=n},{"./React":59}],104:[function(e,t){"use strict";var n=e("./adler32"),r={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=n(e);return e.replace(">"," "+r.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var o=t.getAttribute(r.CHECKSUM_ATTR_NAME);o=o&&parseInt(o,10);var i=n(e);return i===o}};t.exports=r},{"./adler32":148}],105:[function(e,t){"use strict";function n(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function r(e){var t=S(e);return t&&z.getID(t)}function o(e){var t=i(e);if(t)if(A.hasOwnProperty(t)){var n=A[t];n!==e&&(k(!c(n,t)),A[t]=e)}else A[t]=e;return t}function i(e){return e&&e.getAttribute&&e.getAttribute(N)||""}function a(e,t){var n=i(e);n!==t&&delete A[n],e.setAttribute(N,t),A[t]=e}function s(e){return A.hasOwnProperty(e)&&c(A[e],e)||(A[e]=z.findReactNodeByID(e)),A[e]}function u(e){var t=b.get(e)._rootNodeID;return g.isNullComponentID(t)?null:(A.hasOwnProperty(t)&&c(A[t],t)||(A[t]=z.findReactNodeByID(t)),A[t])}function c(e,t){if(e){k(i(e)===t);var n=z.findReactContainerForID(t);if(n&&x(n,e))return!0}return!1}function l(e){delete A[e]}function p(e){var t=A[e];return t&&c(t,e)?void(q=t):!1}function f(e){q=null,_.traverseAncestors(e,p);var t=q;return q=null,t}function h(e,t,n,r,o){var i=C.mountComponent(e,t,r,M);e._isTopLevel=!0,z._mountImageIntoNode(i,n,o)}function d(e,t,n,r){var o=O.ReactReconcileTransaction.getPooled();o.perform(h,null,e,t,n,o,r),O.ReactReconcileTransaction.release(o)}var v=e("./DOMProperty"),m=e("./ReactBrowserEventEmitter"),y=(e("./ReactCurrentOwner"),e("./ReactElement")),g=(e("./ReactElementValidator"),e("./ReactEmptyComponent")),_=e("./ReactInstanceHandles"),b=e("./ReactInstanceMap"),E=e("./ReactMarkupChecksum"),w=e("./ReactPerf"),C=e("./ReactReconciler"),R=e("./ReactUpdateQueue"),O=e("./ReactUpdates"),M=e("./emptyObject"),x=e("./containsNode"),S=e("./getReactRootElementInContainer"),T=e("./instantiateReactComponent"),k=e("./invariant"),I=e("./setInnerHTML"),P=e("./shouldUpdateReactComponent"),D=(e("./warning"),_.SEPARATOR),N=v.ID_ATTRIBUTE_NAME,A={},j=1,L=9,U={},B={},F=[],q=null,z={_instancesByReactRootID:U,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return z.scrollMonitor(n,function(){R.enqueueElementInternal(e,t),r&&R.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){k(t&&(t.nodeType===j||t.nodeType===L)),m.ensureScrollValueMonitoring();var n=z.registerContainer(t);return U[n]=e,n},_renderNewRootComponent:function(e,t,n){var r=T(e,null),o=z._registerComponent(r,t);return O.batchedUpdates(d,r,o,t,n),r},render:function(e,t,n){k(y.isValidElement(e));var o=U[r(t)];if(o){var i=o._currentElement;if(P(i,e))return z._updateRootComponent(o,e,t,n).getPublicInstance();z.unmountComponentAtNode(t)}var a=S(t),s=a&&z.isRenderedByReact(a),u=s&&!o,c=z._renderNewRootComponent(e,t,u).getPublicInstance();return n&&n.call(c),c},constructAndRenderComponent:function(e,t,n){var r=y.createElement(e,t);return z.render(r,n)},constructAndRenderComponentByID:function(e,t,n){var r=document.getElementById(n);return k(r),z.constructAndRenderComponent(e,t,r)},registerContainer:function(e){var t=r(e);return t&&(t=_.getReactRootIDFromNodeID(t)),t||(t=_.createReactRootID()),B[t]=e,t},unmountComponentAtNode:function(e){k(e&&(e.nodeType===j||e.nodeType===L));var t=r(e),n=U[t];return n?(z.unmountComponentFromNode(n,e),delete U[t],delete B[t],!0):!1},unmountComponentFromNode:function(e,t){for(C.unmountComponent(e),t.nodeType===L&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var t=_.getReactRootIDFromNodeID(e),n=B[t];return n},findReactNodeByID:function(e){var t=z.findReactContainerForID(e);return z.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=z.getID(e);return t?t.charAt(0)===D:!1},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(z.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,t){var n=F,r=0,o=f(t)||e;for(n[0]=o.firstChild,n.length=1;r<n.length;){for(var i,a=n[r++];a;){var s=z.getID(a);s?t===s?i=a:_.isAncestorIDOf(s,t)&&(n.length=r=0,n.push(a.firstChild)):n.push(a.firstChild),a=a.nextSibling}if(i)return n.length=0,i}n.length=0,k(!1)},_mountImageIntoNode:function(e,t,r){if(k(t&&(t.nodeType===j||t.nodeType===L)),r){var o=S(t);if(E.canReuseMarkup(e,o))return;var i=o.getAttribute(E.CHECKSUM_ATTR_NAME);o.removeAttribute(E.CHECKSUM_ATTR_NAME);var a=o.outerHTML;o.setAttribute(E.CHECKSUM_ATTR_NAME,i);{var s=n(e,a);" (client) "+e.substring(s-20,s+20)+"\n (server) "+a.substring(s-20,s+20)}k(t.nodeType!==L)}k(t.nodeType!==L),I(t,e)},getReactRootID:r,getID:o,setID:a,getNode:s,getNodeFromInstance:u,purgeID:l};w.measureMethods(z,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),t.exports=z},{"./DOMProperty":39,"./ReactBrowserEventEmitter":61,"./ReactCurrentOwner":73,"./ReactElement":91,"./ReactElementValidator":92,"./ReactEmptyComponent":93,"./ReactInstanceHandles":100,"./ReactInstanceMap":101,"./ReactMarkupChecksum":104,"./ReactPerf":110,"./ReactReconciler":117,"./ReactUpdateQueue":127,"./ReactUpdates":128,"./containsNode":152,"./emptyObject":159,"./getReactRootElementInContainer":173,"./instantiateReactComponent":178,"./invariant":179,"./setInnerHTML":193,"./shouldUpdateReactComponent":196,"./warning":200}],106:[function(e,t){"use strict";function n(e,t,n){h.push({parentID:e,parentNode:null,type:c.INSERT_MARKUP,markupIndex:d.push(t)-1,textContent:null,fromIndex:null,toIndex:n})}function r(e,t,n){h.push({parentID:e,parentNode:null,type:c.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:t,toIndex:n})}function o(e,t){h.push({parentID:e,parentNode:null,type:c.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:t,toIndex:null})}function i(e,t){h.push({parentID:e,parentNode:null,type:c.TEXT_CONTENT,markupIndex:null,textContent:t,fromIndex:null,toIndex:null})}function a(){h.length&&(u.processChildrenUpdates(h,d),s())}function s(){h.length=0,d.length=0}var u=e("./ReactComponentEnvironment"),c=e("./ReactMultiChildUpdateTypes"),l=e("./ReactReconciler"),p=e("./ReactChildReconciler"),f=0,h=[],d=[],v={Mixin:{mountChildren:function(e,t,n){var r=p.instantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=this._rootNodeID+a,c=l.mountComponent(s,u,t,n);s._mountIndex=i,o.push(c),i++}return o},updateTextContent:function(e){f++;var t=!0;try{var n=this._renderedChildren;p.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setTextContent(e),t=!1}finally{f--,f||(t?s():a())}},updateChildren:function(e,t,n){f++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{f--,f||(r?s():a())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=p.updateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var i,a=0,s=0;for(i in o)if(o.hasOwnProperty(i)){var u=r&&r[i],c=o[i];u===c?(this.moveChild(u,s,a),a=Math.max(u._mountIndex,a),u._mountIndex=s):(u&&(a=Math.max(u._mountIndex,a),this._unmountChildByName(u,i)),this._mountChildByNameAtIndex(c,i,s,t,n)),s++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChildByName(r[i],i)}},unmountChildren:function(){var e=this._renderedChildren;p.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&r(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){n(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){o(this._rootNodeID,e._mountIndex)},setTextContent:function(e){i(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var i=this._rootNodeID+t,a=l.mountComponent(e,i,r,o);e._mountIndex=n,this.createChild(e,a)},_unmountChildByName:function(e){this.removeChild(e),e._mountIndex=null}}};t.exports=v},{"./ReactChildReconciler":64,"./ReactComponentEnvironment":69,"./ReactMultiChildUpdateTypes":107,"./ReactReconciler":117}],107:[function(e,t){"use strict";var n=e("./keyMirror"),r=n({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});t.exports=r},{"./keyMirror":185}],108:[function(e,t){"use strict";function n(e){if("function"==typeof e.type)return e.type;var t=e.type,n=l[t];return null==n&&(l[t]=n=u(t)),n}function r(e){return s(c),new c(e.type,e.props)}function o(e){return new p(e)}function i(e){return e instanceof p}var a=e("./Object.assign"),s=e("./invariant"),u=null,c=null,l={},p=null,f={injectGenericComponentClass:function(e){c=e
  8. },injectTextComponentClass:function(e){p=e},injectComponentClasses:function(e){a(l,e)},injectAutoWrapper:function(e){u=e}},h={getComponentClassForElement:n,createInternalComponent:r,createInstanceForText:o,isTextComponent:i,injection:f};t.exports=h},{"./Object.assign":57,"./invariant":179}],109:[function(e,t){"use strict";var n=e("./invariant"),r={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,o){n(r.isValidOwner(o)),o.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,o){n(r.isValidOwner(o)),o.getPublicInstance().refs[t]===e.getPublicInstance()&&o.detachRef(t)}};t.exports=r},{"./invariant":179}],110:[function(e,t){"use strict";function n(e,t,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){r.storedMeasure=e}}};t.exports=r},{}],111:[function(e,t){"use strict";function n(e){return function(t,n,r){t[n]=t.hasOwnProperty(n)?e(t[n],r):r}}function r(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=u[n];r&&u.hasOwnProperty(n)?r(e,n,t[n]):e.hasOwnProperty(n)||(e[n]=t[n])}return e}var o=e("./Object.assign"),i=e("./emptyFunction"),a=e("./joinClasses"),s=n(function(e,t){return o({},t,e)}),u={children:i,className:n(a),style:s},c={mergeProps:function(e,t){return r(o({},e),t)}};t.exports=c},{"./Object.assign":57,"./emptyFunction":158,"./joinClasses":184}],112:[function(e,t){"use strict";var n={};t.exports=n},{}],113:[function(e,t){"use strict";var n=e("./keyMirror"),r=n({prop:null,context:null,childContext:null});t.exports=r},{"./keyMirror":185}],114:[function(e,t){"use strict";function n(e){function t(t,n,r,o,i){if(o=o||b,null==n[r]){var a=g[i];return t?new Error("Required "+a+" `"+r+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function r(e){function t(t,n,r,o){var i=t[n],a=d(i);if(a!==e){var s=g[o],u=v(i);return new Error("Invalid "+s+" `"+n+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `"+e+"`."))}return null}return n(t)}function o(){return n(_.thatReturns(null))}function i(e){function t(t,n,r,o){var i=t[n];if(!Array.isArray(i)){var a=g[o],s=d(i);return new Error("Invalid "+a+" `"+n+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u<i.length;u++){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return n(t)}function a(){function e(e,t,n,r){if(!m.isValidElement(e[t])){var o=g[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactElement."))}return null}return n(e)}function s(e){function t(t,n,r,o){if(!(t[n]instanceof e)){var i=g[o],a=e.name||b;return new Error("Invalid "+i+" `"+n+"` supplied to "+("`"+r+"`, expected instance of `"+a+"`."))}return null}return n(t)}function u(e){function t(t,n,r,o){for(var i=t[n],a=0;a<e.length;a++)if(i===e[a])return null;var s=g[o],u=JSON.stringify(e);return new Error("Invalid "+s+" `"+n+"` of value `"+i+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return n(t)}function c(e){function t(t,n,r,o){var i=t[n],a=d(i);if("object"!==a){var s=g[o];return new Error("Invalid "+s+" `"+n+"` of type "+("`"+a+"` supplied to `"+r+"`, expected an object."))}for(var u in i)if(i.hasOwnProperty(u)){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return n(t)}function l(e){function t(t,n,r,o){for(var i=0;i<e.length;i++){var a=e[i];if(null==a(t,n,r,o))return null}var s=g[o];return new Error("Invalid "+s+" `"+n+"` supplied to "+("`"+r+"`."))}return n(t)}function p(){function e(e,t,n,r){if(!h(e[t])){var o=g[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return n(e)}function f(e){function t(t,n,r,o){var i=t[n],a=d(i);if("object"!==a){var s=g[o];return new Error("Invalid "+s+" `"+n+"` of type `"+a+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var c=e[u];if(c){var l=c(i,u,r,o);if(l)return l}}return null}return n(t)}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||m.isValidElement(e))return!0;e=y.extractIfFragment(e);for(var t in e)if(!h(e[t]))return!1;return!0;default:return!1}}function d(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function v(e){var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}var m=e("./ReactElement"),y=e("./ReactFragment"),g=e("./ReactPropTypeLocationNames"),_=e("./emptyFunction"),b="<<anonymous>>",E=a(),w=p(),C={array:r("array"),bool:r("boolean"),func:r("function"),number:r("number"),object:r("object"),string:r("string"),any:o(),arrayOf:i,element:E,instanceOf:s,node:w,objectOf:c,oneOf:u,oneOfType:l,shape:f};t.exports=C},{"./ReactElement":91,"./ReactFragment":97,"./ReactPropTypeLocationNames":112,"./emptyFunction":158}],115:[function(e,t){"use strict";function n(){this.listenersToPut=[]}var r=e("./PooledClass"),o=e("./ReactBrowserEventEmitter"),i=e("./Object.assign");i(n.prototype,{enqueuePutListener:function(e,t,n){this.listenersToPut.push({rootNodeID:e,propKey:t,propValue:n})},putListeners:function(){for(var e=0;e<this.listenersToPut.length;e++){var t=this.listenersToPut[e];o.putListener(t.rootNodeID,t.propKey,t.propValue)}},reset:function(){this.listenersToPut.length=0},destructor:function(){this.reset()}}),r.addPoolingTo(n),t.exports=n},{"./Object.assign":57,"./PooledClass":58,"./ReactBrowserEventEmitter":61}],116:[function(e,t){"use strict";function n(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=r.getPooled(null),this.putListenerQueue=s.getPooled()}var r=e("./CallbackQueue"),o=e("./PooledClass"),i=e("./ReactBrowserEventEmitter"),a=e("./ReactInputSelection"),s=e("./ReactPutListenerQueue"),u=e("./Transaction"),c=e("./Object.assign"),l={initialize:a.getSelectionInformation,close:a.restoreSelection},p={initialize:function(){var e=i.isEnabled();return i.setEnabled(!1),e},close:function(e){i.setEnabled(e)}},f={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h={initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},d=[h,l,p,f],v={getTransactionWrappers:function(){return d},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){r.release(this.reactMountReady),this.reactMountReady=null,s.release(this.putListenerQueue),this.putListenerQueue=null}};c(n.prototype,u.Mixin,v),o.addPoolingTo(n),t.exports=n},{"./CallbackQueue":35,"./Object.assign":57,"./PooledClass":58,"./ReactBrowserEventEmitter":61,"./ReactInputSelection":99,"./ReactPutListenerQueue":115,"./Transaction":145}],117:[function(e,t){"use strict";function n(){r.attachRefs(this,this._currentElement)}var r=e("./ReactRef"),o=(e("./ReactElementValidator"),{mountComponent:function(e,t,r,o){var i=e.mountComponent(t,r,o);return r.getReactMountReady().enqueue(n,e),i},unmountComponent:function(e){r.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,o,i){var a=e._currentElement;if(t!==a||null==t._owner){var s=r.shouldUpdateRefs(a,t);s&&r.detachRefs(e,a),e.receiveComponent(t,o,i),s&&o.getReactMountReady().enqueue(n,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}});t.exports=o},{"./ReactElementValidator":92,"./ReactRef":118}],118:[function(e,t){"use strict";function n(e,t,n){"function"==typeof e?e(t.getPublicInstance()):o.addComponentAsRefTo(t,e,n)}function r(e,t,n){"function"==typeof e?e(null):o.removeComponentAsRefFrom(t,e,n)}var o=e("./ReactOwner"),i={};i.attachRefs=function(e,t){var r=t.ref;null!=r&&n(r,e,t._owner)},i.shouldUpdateRefs=function(e,t){return t._owner!==e._owner||t.ref!==e.ref},i.detachRefs=function(e,t){var n=t.ref;null!=n&&r(n,e,t._owner)},t.exports=i},{"./ReactOwner":109}],119:[function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};t.exports=r},{}],120:[function(e,t){"use strict";function n(e){l(o.isValidElement(e));var t;try{var n=i.createReactRootID();return t=s.getPooled(!1),t.perform(function(){var r=c(e,null),o=r.mountComponent(n,t,u);return a.addChecksumToMarkup(o)},null)}finally{s.release(t)}}function r(e){l(o.isValidElement(e));var t;try{var n=i.createReactRootID();return t=s.getPooled(!0),t.perform(function(){var r=c(e,null);return r.mountComponent(n,t,u)},null)}finally{s.release(t)}}var o=e("./ReactElement"),i=e("./ReactInstanceHandles"),a=e("./ReactMarkupChecksum"),s=e("./ReactServerRenderingTransaction"),u=e("./emptyObject"),c=e("./instantiateReactComponent"),l=e("./invariant");t.exports={renderToString:n,renderToStaticMarkup:r}},{"./ReactElement":91,"./ReactInstanceHandles":100,"./ReactMarkupChecksum":104,"./ReactServerRenderingTransaction":121,"./emptyObject":159,"./instantiateReactComponent":178,"./invariant":179}],121:[function(e,t){"use strict";function n(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=o.getPooled(null),this.putListenerQueue=i.getPooled()}var r=e("./PooledClass"),o=e("./CallbackQueue"),i=e("./ReactPutListenerQueue"),a=e("./Transaction"),s=e("./Object.assign"),u=e("./emptyFunction"),c={initialize:function(){this.reactMountReady.reset()},close:u},l={initialize:function(){this.putListenerQueue.reset()},close:u},p=[l,c],f={getTransactionWrappers:function(){return p},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null,i.release(this.putListenerQueue),this.putListenerQueue=null}};s(n.prototype,a.Mixin,f),r.addPoolingTo(n),t.exports=n},{"./CallbackQueue":35,"./Object.assign":57,"./PooledClass":58,"./ReactPutListenerQueue":115,"./Transaction":145,"./emptyFunction":158}],122:[function(e,t){"use strict";function n(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var r={createStateSetter:function(e,t){return function(n,r,o,i,a,s){var u=t.call(e,n,r,o,i,a,s);u&&e.setState(u)}},createStateKeySetter:function(e,t){var r=e.__keySetters||(e.__keySetters={});return r[t]||(r[t]=n(e,t))}};r.Mixin={createStateSetter:function(e){return r.createStateSetter(this,e)},createStateKeySetter:function(e){return r.createStateKeySetter(this,e)}},t.exports=r},{}],123:[function(e,t){"use strict";function n(){}function r(e){return function(t,r){var o;E.isDOMComponent(t)?o=t.getDOMNode():t.tagName&&(o=t);var i=new n;i.target=o;var a=new g(f.eventNameDispatchConfigs[e],m.getID(o),i);_(a,r),u.accumulateTwoPhaseDispatches(a),y.batchedUpdates(function(){s.enqueueEvents(a),s.processEventQueue()})}}function o(){E.Simulate={};var e;for(e in f.eventNameDispatchConfigs)E.Simulate[e]=r(e)}function i(e){return function(t,r){var o=new n(e);_(o,r),E.isDOMComponent(t)?E.simulateNativeEventOnDOMComponent(e,t,o):t.tagName&&E.simulateNativeEventOnNode(e,t,o)}}var a=e("./EventConstants"),s=e("./EventPluginHub"),u=e("./EventPropagators"),c=e("./React"),l=e("./ReactElement"),p=e("./ReactEmptyComponent"),f=e("./ReactBrowserEventEmitter"),h=e("./ReactCompositeComponent"),d=e("./ReactInstanceHandles"),v=e("./ReactInstanceMap"),m=e("./ReactMount"),y=e("./ReactUpdates"),g=e("./SyntheticEvent"),_=e("./Object.assign"),b=a.topLevelTypes,E={renderIntoDocument:function(e){var t=document.createElement("div");return c.render(e,t)},isElement:function(e){return l.isValidElement(e)},isElementOfType:function(e,t){return l.isValidElement(e)&&e.type===t},isDOMComponent:function(e){return!!(e&&e.tagName&&e.getDOMNode)},isDOMComponentElement:function(e){return!!(e&&l.isValidElement(e)&&e.tagName)},isCompositeComponent:function(e){return"function"==typeof e.render&&"function"==typeof e.setState},isCompositeComponentWithType:function(e,t){return!(!E.isCompositeComponent(e)||e.constructor!==t)},isCompositeComponentElement:function(e){if(!l.isValidElement(e))return!1;var t=e.type.prototype;return"function"==typeof t.render&&"function"==typeof t.setState},isCompositeComponentElementWithType:function(e,t){return!(!E.isCompositeComponentElement(e)||e.constructor!==t)},getRenderedChildOfCompositeComponent:function(e){if(!E.isCompositeComponent(e))return null;var t=v.get(e);return t._renderedComponent.getPublicInstance()},findAllInRenderedTree:function(e,t){if(!e)return[];var n=t(e)?[e]:[];if(E.isDOMComponent(e)){var r,o=v.get(e),i=o._renderedComponent._renderedChildren;for(r in i)i.hasOwnProperty(r)&&i[r].getPublicInstance&&(n=n.concat(E.findAllInRenderedTree(i[r].getPublicInstance(),t)))}else E.isCompositeComponent(e)&&(n=n.concat(E.findAllInRenderedTree(E.getRenderedChildOfCompositeComponent(e),t)));return n},scryRenderedDOMComponentsWithClass:function(e,t){return E.findAllInRenderedTree(e,function(e){var n=e.props.className;return E.isDOMComponent(e)&&n&&-1!==(" "+n+" ").indexOf(" "+t+" ")})},findRenderedDOMComponentWithClass:function(e,t){var n=E.scryRenderedDOMComponentsWithClass(e,t);if(1!==n.length)throw new Error("Did not find exactly one match (found: "+n.length+") for class:"+t);return n[0]},scryRenderedDOMComponentsWithTag:function(e,t){return E.findAllInRenderedTree(e,function(e){return E.isDOMComponent(e)&&e.tagName===t.toUpperCase()})},findRenderedDOMComponentWithTag:function(e,t){var n=E.scryRenderedDOMComponentsWithTag(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for tag:"+t);return n[0]},scryRenderedComponentsWithType:function(e,t){return E.findAllInRenderedTree(e,function(e){return E.isCompositeComponentWithType(e,t)})},findRenderedComponentWithType:function(e,t){var n=E.scryRenderedComponentsWithType(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for componentType:"+t);return n[0]},mockComponent:function(e,t){return t=t||e.mockTagName||"div",e.prototype.render.mockImplementation(function(){return c.createElement(t,null,this.props.children)}),this},simulateNativeEventOnNode:function(e,t,n){n.target=t,f.ReactEventListener.dispatchEvent(e,n)},simulateNativeEventOnDOMComponent:function(e,t,n){E.simulateNativeEventOnNode(e,t.getDOMNode(),n)},nativeTouchData:function(e,t){return{touches:[{pageX:e,pageY:t}]}},createRenderer:function(){return new w},Simulate:null,SimulateNative:{}},w=function(){this._instance=null};w.prototype.getRenderOutput=function(){return this._instance&&this._instance._renderedComponent&&this._instance._renderedComponent._renderedOutput||null};var C=function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?p.emptyElement:e};C.prototype={mountComponent:function(){},receiveComponent:function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?p.emptyElement:e},unmountComponent:function(){}};var R=function(){};_(R.prototype,h.Mixin,{_instantiateReactComponent:function(e){return new C(e)},_replaceNodeWithMarkupByID:function(){},_renderValidatedComponent:h.Mixin._renderValidatedComponentWithoutOwnerOrContext}),w.prototype.render=function(e,t){var n=y.ReactReconcileTransaction.getPooled();this._render(e,n,t),y.ReactReconcileTransaction.release(n)},w.prototype.unmount=function(){this._instance&&this._instance.unmountComponent()},w.prototype._render=function(e,t,n){if(this._instance)this._instance.receiveComponent(e,t,n);else{var r=d.createReactRootID(),o=new R(e.type);o.construct(e),o.mountComponent(r,t,n),this._instance=o}};var O=s.injection.injectEventPluginOrder;s.injection.injectEventPluginOrder=function(){O.apply(this,arguments),o()};var M=s.injection.injectEventPluginsByName;s.injection.injectEventPluginsByName=function(){M.apply(this,arguments),o()},o();var x;for(x in b){var S=0===x.indexOf("top")?x.charAt(3).toLowerCase()+x.substr(4):x;E.SimulateNative[S]=i(x)}t.exports=E},{"./EventConstants":44,"./EventPluginHub":46,"./EventPropagators":49,"./Object.assign":57,"./React":59,"./ReactBrowserEventEmitter":61,"./ReactCompositeComponent":71,"./ReactElement":91,"./ReactEmptyComponent":93,"./ReactInstanceHandles":100,"./ReactInstanceMap":101,"./ReactMount":105,"./ReactUpdates":128,"./SyntheticEvent":137}],124:[function(e,t){"use strict";var n=e("./ReactChildren"),r=e("./ReactFragment"),o={getChildMapping:function(e){return e?r.extract(n.map(e,function(e){return e})):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}};t.exports=o},{"./ReactChildren":65,"./ReactFragment":97}],125:[function(e,t){"use strict";function n(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a){var r=a[n];for(var o in r)if(o in t){s.push(r[o]);break}}}function r(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}var i=e("./ExecutionEnvironment"),a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},s=[];i.canUseDOM&&n();var u={addEndEventListener:function(e,t){return 0===s.length?void window.setTimeout(t,0):void s.forEach(function(n){r(e,n,t)})},removeEndEventListener:function(e,t){0!==s.length&&s.forEach(function(n){o(e,n,t)})}};t.exports=u},{"./ExecutionEnvironment":50}],126:[function(e,t){"use strict";var n=e("./React"),r=e("./ReactTransitionChildMapping"),o=e("./Object.assign"),i=e("./cloneWithProps"),a=e("./emptyFunction"),s=n.createClass({displayName:"ReactTransitionGroup",propTypes:{component:n.PropTypes.any,childFactory:n.PropTypes.func},getDefaultProps:function(){return{component:"span",childFactory:a.thatReturnsArgument}},getInitialState:function(){return{children:r.getChildMapping(this.props.children)}},componentWillMount:function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},componentDidMount:function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},componentWillReceiveProps:function(e){var t=r.getChildMapping(e.children),n=this.state.children;this.setState({children:r.mergeChildMappings(n,t)});var o;for(o in t){var i=n&&n.hasOwnProperty(o);!t[o]||i||this.currentlyTransitioningKeys[o]||this.keysToEnter.push(o)}for(o in n){var a=t&&t.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},componentDidUpdate:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},performAppear:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)},_handleDoneAppearing:function(e){var t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e];var n=r.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performEnter:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)},_handleDoneEntering:function(e){var t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e];var n=r.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performLeave:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)},_handleDoneLeaving:function(e){var t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];var n=r.getChildMapping(this.props.children);if(n&&n.hasOwnProperty(e))this.performEnter(e);else{var i=o({},this.state.children);delete i[e],this.setState({children:i})}},render:function(){var e=[];for(var t in this.state.children){var r=this.state.children[t];r&&e.push(i(this.props.childFactory(r),{ref:t,key:t}))}return n.createElement(this.props.component,this.props,e)}});t.exports=s},{"./Object.assign":57,"./React":59,"./ReactTransitionChildMapping":124,"./cloneWithProps":151,"./emptyFunction":158}],127:[function(e,t){"use strict";function n(e){e!==o.currentlyMountingInstance&&u.enqueueUpdate(e)}function r(e,t){l(null==i.current);var n=s.get(e);return n?n===o.currentlyUnmountingInstance?null:n:null}var o=e("./ReactLifeCycle"),i=e("./ReactCurrentOwner"),a=e("./ReactElement"),s=e("./ReactInstanceMap"),u=e("./ReactUpdates"),c=e("./Object.assign"),l=e("./invariant"),p=(e("./warning"),{enqueueCallback:function(e,t){l("function"==typeof t);var i=r(e);return i&&i!==o.currentlyMountingInstance?(i._pendingCallbacks?i._pendingCallbacks.push(t):i._pendingCallbacks=[t],void n(i)):null},enqueueCallbackInternal:function(e,t){l("function"==typeof t),e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],n(e)},enqueueForceUpdate:function(e){var t=r(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,n(t))},enqueueReplaceState:function(e,t){var o=r(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,n(o))},enqueueSetState:function(e,t){var o=r(e,"setState");if(o){var i=o._pendingStateQueue||(o._pendingStateQueue=[]);i.push(t),n(o)}},enqueueSetProps:function(e,t){var o=r(e,"setProps");if(o){l(o._isTopLevel);var i=o._pendingElement||o._currentElement,s=c({},i.props,t);o._pendingElement=a.cloneAndReplaceProps(i,s),n(o)}},enqueueReplaceProps:function(e,t){var o=r(e,"replaceProps");if(o){l(o._isTopLevel);var i=o._pendingElement||o._currentElement;o._pendingElement=a.cloneAndReplaceProps(i,t),n(o)}},enqueueElementInternal:function(e,t){e._pendingElement=t,n(e)}});t.exports=p},{"./Object.assign":57,"./ReactCurrentOwner":73,"./ReactElement":91,"./ReactInstanceMap":101,"./ReactLifeCycle":102,"./ReactUpdates":128,"./invariant":179,"./warning":200}],128:[function(e,t){"use strict";function n(){v(O.ReactReconcileTransaction&&_)}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled()}function o(e,t,r,o,i){n(),_.batchedUpdates(e,t,r,o,i)}function i(e,t){return e._mountOrder-t._mountOrder}function a(e){var t=e.dirtyComponentsLength;v(t===m.length),m.sort(i);for(var n=0;t>n;n++){var r=m[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,f.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var a=0;a<o.length;a++)e.callbackQueue.enqueue(o[a],r.getPublicInstance())}}function s(e){return n(),_.isBatchingUpdates?void m.push(e):void _.batchedUpdates(s,e)}function u(e,t){v(_.isBatchingUpdates),y.enqueue(e,t),g=!0}var c=e("./CallbackQueue"),l=e("./PooledClass"),p=(e("./ReactCurrentOwner"),e("./ReactPerf")),f=e("./ReactReconciler"),h=e("./Transaction"),d=e("./Object.assign"),v=e("./invariant"),m=(e("./warning"),[]),y=c.getPooled(),g=!1,_=null,b={initialize:function(){this.dirtyComponentsLength=m.length},close:function(){this.dirtyComponentsLength!==m.length?(m.splice(0,this.dirtyComponentsLength),C()):m.length=0}},E={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},w=[b,E];d(r.prototype,h.Mixin,{getTransactionWrappers:function(){return w},destructor:function(){this.dirtyComponentsLength=null,c.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return h.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),l.addPoolingTo(r);var C=function(){for(;m.length||g;){if(m.length){var e=r.getPooled();e.perform(a,null,e),r.release(e)}if(g){g=!1;var t=y;y=c.getPooled(),t.notifyAll(),c.release(t)}}};C=p.measure("ReactUpdates","flushBatchedUpdates",C);var R={injectReconcileTransaction:function(e){v(e),O.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){v(e),v("function"==typeof e.batchedUpdates),v("boolean"==typeof e.isBatchingUpdates),_=e}},O={ReactReconcileTransaction:null,batchedUpdates:o,enqueueUpdate:s,flushBatchedUpdates:C,injection:R,asap:u};t.exports=O},{"./CallbackQueue":35,"./Object.assign":57,"./PooledClass":58,"./ReactCurrentOwner":73,"./ReactPerf":110,"./ReactReconciler":117,"./Transaction":145,"./invariant":179,"./warning":200}],129:[function(e,t){"use strict";var n=e("./LinkedStateMixin"),r=e("./React"),o=e("./ReactComponentWithPureRenderMixin"),i=e("./ReactCSSTransitionGroup"),a=e("./ReactFragment"),s=e("./ReactTransitionGroup"),u=e("./ReactUpdates"),c=e("./cx"),l=e("./cloneWithProps"),p=e("./update");r.addons={CSSTransitionGroup:i,LinkedStateMixin:n,PureRenderMixin:o,TransitionGroup:s,batchedUpdates:u.batchedUpdates,classSet:c,cloneWithProps:l,createFragment:a.create,update:p},t.exports=r},{"./LinkedStateMixin":53,"./React":59,"./ReactCSSTransitionGroup":62,"./ReactComponentWithPureRenderMixin":70,"./ReactDefaultPerf":89,"./ReactFragment":97,"./ReactTestUtils":123,"./ReactTransitionGroup":126,"./ReactUpdates":128,"./cloneWithProps":151,"./cx":156,"./update":199}],130:[function(e,t){"use strict";var n=e("./DOMProperty"),r=n.injection.MUST_USE_ATTRIBUTE,o={Properties:{cx:r,cy:r,d:r,dx:r,dy:r,fill:r,fillOpacity:r,fontFamily:r,fontSize:r,fx:r,fy:r,gradientTransform:r,gradientUnits:r,markerEnd:r,markerMid:r,markerStart:r,offset:r,opacity:r,patternContentUnits:r,patternUnits:r,points:r,preserveAspectRatio:r,r:r,rx:r,ry:r,spreadMethod:r,stopColor:r,stopOpacity:r,stroke:r,strokeDasharray:r,strokeLinecap:r,strokeOpacity:r,strokeWidth:r,textAnchor:r,transform:r,version:r,viewBox:r,x1:r,x2:r,x:r,y1:r,y2:r,y:r},DOMAttributeNames:{fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox"}};t.exports=o},{"./DOMProperty":39}],131:[function(e,t){"use strict";function n(e){if("selectionStart"in e&&a.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function r(e){if(y||null==d||d!==u())return null;var t=n(d);if(!m||!p(m,t)){m=t;var r=s.getPooled(h.select,v,e);return r.type="select",r.target=d,i.accumulateTwoPhaseDispatches(r),r}}var o=e("./EventConstants"),i=e("./EventPropagators"),a=e("./ReactInputSelection"),s=e("./SyntheticEvent"),u=e("./getActiveElement"),c=e("./isTextInputElement"),l=e("./keyOf"),p=e("./shallowEqual"),f=o.topLevelTypes,h={select:{phasedRegistrationNames:{bubbled:l({onSelect:null}),captured:l({onSelectCapture:null})},dependencies:[f.topBlur,f.topContextMenu,f.topFocus,f.topKeyDown,f.topMouseDown,f.topMouseUp,f.topSelectionChange]}},d=null,v=null,m=null,y=!1,g={eventTypes:h,extractEvents:function(e,t,n,o){switch(e){case f.topFocus:(c(t)||"true"===t.contentEditable)&&(d=t,v=n,m=null);break;case f.topBlur:d=null,v=null,m=null;break;case f.topMouseDown:y=!0;break;case f.topContextMenu:case f.topMouseUp:return y=!1,r(o);case f.topSelectionChange:case f.topKeyDown:case f.topKeyUp:return r(o)}}};t.exports=g},{"./EventConstants":44,"./EventPropagators":49,"./ReactInputSelection":99,"./SyntheticEvent":137,"./getActiveElement":165,"./isTextInputElement":182,"./keyOf":186,"./shallowEqual":195}],132:[function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};t.exports=r},{}],133:[function(e,t){"use strict";var n=e("./EventConstants"),r=e("./EventPluginUtils"),o=e("./EventPropagators"),i=e("./SyntheticClipboardEvent"),a=e("./SyntheticEvent"),s=e("./SyntheticFocusEvent"),u=e("./SyntheticKeyboardEvent"),c=e("./SyntheticMouseEvent"),l=e("./SyntheticDragEvent"),p=e("./SyntheticTouchEvent"),f=e("./SyntheticUIEvent"),h=e("./SyntheticWheelEvent"),d=e("./getEventCharCode"),v=e("./invariant"),m=e("./keyOf"),y=(e("./warning"),n.topLevelTypes),g={blur:{phasedRegistrationNames:{bubbled:m({onBlur:!0}),captured:m({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:m({onClick:!0}),captured:m({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:m({onContextMenu:!0}),captured:m({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:m({onCopy:!0}),captured:m({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:m({onCut:!0}),captured:m({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:m({onDoubleClick:!0}),captured:m({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:m({onDrag:!0}),captured:m({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:m({onDragEnd:!0}),captured:m({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:m({onDragEnter:!0}),captured:m({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:m({onDragExit:!0}),captured:m({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:m({onDragLeave:!0}),captured:m({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:m({onDragOver:!0}),captured:m({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:m({onDragStart:!0}),captured:m({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:m({onDrop:!0}),captured:m({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:m({onFocus:!0}),captured:m({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:m({onInput:!0}),captured:m({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:m({onKeyDown:!0}),captured:m({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:m({onKeyPress:!0}),captured:m({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:m({onKeyUp:!0}),captured:m({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:m({onLoad:!0}),captured:m({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:m({onError:!0}),captured:m({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:m({onMouseDown:!0}),captured:m({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:m({onMouseMove:!0}),captured:m({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:m({onMouseOut:!0}),captured:m({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:m({onMouseOver:!0}),captured:m({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:m({onMouseUp:!0}),captured:m({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:m({onPaste:!0}),captured:m({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:m({onReset:!0}),captured:m({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:m({onScroll:!0}),captured:m({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:m({onSubmit:!0}),captured:m({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:m({onTouchCancel:!0}),captured:m({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:m({onTouchEnd:!0}),captured:m({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:m({onTouchMove:!0}),captured:m({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:m({onTouchStart:!0}),captured:m({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:m({onWheel:!0}),captured:m({onWheelCapture:!0})}}},_={topBlur:g.blur,topClick:g.click,topContextMenu:g.contextMenu,topCopy:g.copy,topCut:g.cut,topDoubleClick:g.doubleClick,topDrag:g.drag,topDragEnd:g.dragEnd,topDragEnter:g.dragEnter,topDragExit:g.dragExit,topDragLeave:g.dragLeave,topDragOver:g.dragOver,topDragStart:g.dragStart,topDrop:g.drop,topError:g.error,topFocus:g.focus,topInput:g.input,topKeyDown:g.keyDown,topKeyPress:g.keyPress,topKeyUp:g.keyUp,topLoad:g.load,topMouseDown:g.mouseDown,topMouseMove:g.mouseMove,topMouseOut:g.mouseOut,topMouseOver:g.mouseOver,topMouseUp:g.mouseUp,topPaste:g.paste,topReset:g.reset,topScroll:g.scroll,topSubmit:g.submit,topTouchCancel:g.touchCancel,topTouchEnd:g.touchEnd,topTouchMove:g.touchMove,topTouchStart:g.touchStart,topWheel:g.wheel};
  9. for(var b in _)_[b].dependencies=[b];var E={eventTypes:g,executeDispatch:function(e,t,n){var o=r.executeDispatch(e,t,n);o===!1&&(e.stopPropagation(),e.preventDefault())},extractEvents:function(e,t,n,r){var m=_[e];if(!m)return null;var g;switch(e){case y.topInput:case y.topLoad:case y.topError:case y.topReset:case y.topSubmit:g=a;break;case y.topKeyPress:if(0===d(r))return null;case y.topKeyDown:case y.topKeyUp:g=u;break;case y.topBlur:case y.topFocus:g=s;break;case y.topClick:if(2===r.button)return null;case y.topContextMenu:case y.topDoubleClick:case y.topMouseDown:case y.topMouseMove:case y.topMouseOut:case y.topMouseOver:case y.topMouseUp:g=c;break;case y.topDrag:case y.topDragEnd:case y.topDragEnter:case y.topDragExit:case y.topDragLeave:case y.topDragOver:case y.topDragStart:case y.topDrop:g=l;break;case y.topTouchCancel:case y.topTouchEnd:case y.topTouchMove:case y.topTouchStart:g=p;break;case y.topScroll:g=f;break;case y.topWheel:g=h;break;case y.topCopy:case y.topCut:case y.topPaste:g=i}v(g);var b=g.getPooled(m,n,r);return o.accumulateTwoPhaseDispatches(b),b}};t.exports=E},{"./EventConstants":44,"./EventPluginUtils":48,"./EventPropagators":49,"./SyntheticClipboardEvent":134,"./SyntheticDragEvent":136,"./SyntheticEvent":137,"./SyntheticFocusEvent":138,"./SyntheticKeyboardEvent":140,"./SyntheticMouseEvent":141,"./SyntheticTouchEvent":142,"./SyntheticUIEvent":143,"./SyntheticWheelEvent":144,"./getEventCharCode":166,"./invariant":179,"./keyOf":186,"./warning":200}],134:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticEvent"),o={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};r.augmentClass(n,o),t.exports=n},{"./SyntheticEvent":137}],135:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticEvent"),o={data:null};r.augmentClass(n,o),t.exports=n},{"./SyntheticEvent":137}],136:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticMouseEvent"),o={dataTransfer:null};r.augmentClass(n,o),t.exports=n},{"./SyntheticMouseEvent":141}],137:[function(e,t){"use strict";function n(e,t,n){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];this[o]=a?a(n):n[o]}var s=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;this.isDefaultPrevented=s?i.thatReturnsTrue:i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse}var r=e("./PooledClass"),o=e("./Object.assign"),i=e("./emptyFunction"),a=e("./getEventTarget"),s={type:null,target:a,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=i.thatReturnsTrue},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=i.thatReturnsTrue},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),n.Interface=s,n.augmentClass=function(e,t){var n=this,i=Object.create(n.prototype);o(i,e.prototype),e.prototype=i,e.prototype.constructor=e,e.Interface=o({},n.Interface,t),e.augmentClass=n.augmentClass,r.addPoolingTo(e,r.threeArgumentPooler)},r.addPoolingTo(n,r.threeArgumentPooler),t.exports=n},{"./Object.assign":57,"./PooledClass":58,"./emptyFunction":158,"./getEventTarget":169}],138:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticUIEvent"),o={relatedTarget:null};r.augmentClass(n,o),t.exports=n},{"./SyntheticUIEvent":143}],139:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticEvent"),o={data:null};r.augmentClass(n,o),t.exports=n},{"./SyntheticEvent":137}],140:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticUIEvent"),o=e("./getEventCharCode"),i=e("./getEventKey"),a=e("./getEventModifierState"),s={key:i,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:a,charCode:function(e){return"keypress"===e.type?o(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?o(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};r.augmentClass(n,s),t.exports=n},{"./SyntheticUIEvent":143,"./getEventCharCode":166,"./getEventKey":167,"./getEventModifierState":168}],141:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticUIEvent"),o=e("./ViewportMetrics"),i=e("./getEventModifierState"),a={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:i,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+o.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+o.currentScrollTop}};r.augmentClass(n,a),t.exports=n},{"./SyntheticUIEvent":143,"./ViewportMetrics":146,"./getEventModifierState":168}],142:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticUIEvent"),o=e("./getEventModifierState"),i={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:o};r.augmentClass(n,i),t.exports=n},{"./SyntheticUIEvent":143,"./getEventModifierState":168}],143:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticEvent"),o=e("./getEventTarget"),i={view:function(e){if(e.view)return e.view;var t=o(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};r.augmentClass(n,i),t.exports=n},{"./SyntheticEvent":137,"./getEventTarget":169}],144:[function(e,t){"use strict";function n(e,t,n){r.call(this,e,t,n)}var r=e("./SyntheticMouseEvent"),o={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};r.augmentClass(n,o),t.exports=n},{"./SyntheticMouseEvent":141}],145:[function(e,t){"use strict";var n=e("./invariant"),r={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,r,o,i,a,s,u){n(!this.isInTransaction());var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=e.call(t,r,o,i,a,s,u),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(p){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=o.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(i){}}}},closeAll:function(e){n(this.isInTransaction());for(var t=this.transactionWrappers,r=e;r<t.length;r++){var i,a=t[r],s=this.wrapperInitData[r];try{i=!0,s!==o.OBSERVED_ERROR&&a.close&&a.close.call(this,s),i=!1}finally{if(i)try{this.closeAll(r+1)}catch(u){}}}this.wrapperInitData.length=0}},o={Mixin:r,OBSERVED_ERROR:{}};t.exports=o},{"./invariant":179}],146:[function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};t.exports=n},{}],147:[function(e,t){"use strict";function n(e,t){if(r(null!=t),null==e)return t;var n=Array.isArray(e),o=Array.isArray(t);return n&&o?(e.push.apply(e,t),e):n?(e.push(t),e):o?[e].concat(t):[e,t]}var r=e("./invariant");t.exports=n},{"./invariant":179}],148:[function(e,t){"use strict";function n(e){for(var t=1,n=0,o=0;o<e.length;o++)t=(t+e.charCodeAt(o))%r,n=(n+t)%r;return t|n<<16}var r=65521;t.exports=n},{}],149:[function(e,t){function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;t.exports=n},{}],150:[function(e,t){"use strict";function n(e){return r(e.replace(o,"ms-"))}var r=e("./camelize"),o=/^-ms-/;t.exports=n},{"./camelize":149}],151:[function(e,t){"use strict";function n(e,t){var n=o.mergeProps(t,e.props);return!n.hasOwnProperty(a)&&e.props.hasOwnProperty(a)&&(n.children=e.props.children),r.createElement(e.type,n)}var r=e("./ReactElement"),o=e("./ReactPropTransferer"),i=e("./keyOf"),a=(e("./warning"),i({children:null}));t.exports=n},{"./ReactElement":91,"./ReactPropTransferer":111,"./keyOf":186,"./warning":200}],152:[function(e,t){function n(e,t){return e&&t?e===t?!0:r(e)?!1:r(t)?n(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var r=e("./isTextNode");t.exports=n},{"./isTextNode":183}],153:[function(e,t){function n(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function r(e){return n(e)?Array.isArray(e)?e.slice():o(e):[e]}var o=e("./toArray");t.exports=r},{"./toArray":197}],154:[function(e,t){"use strict";function n(e){var t=o.createFactory(e),n=r.createClass({tagName:e.toUpperCase(),displayName:"ReactFullPageComponent"+e,componentWillUnmount:function(){i(!1)},render:function(){return t(this.props)}});return n}var r=e("./ReactClass"),o=e("./ReactElement"),i=e("./invariant");t.exports=n},{"./ReactClass":66,"./ReactElement":91,"./invariant":179}],155:[function(e,t){function n(e){var t=e.match(c);return t&&t[1].toLowerCase()}function r(e,t){var r=u;s(!!u);var o=n(e),c=o&&a(o);if(c){r.innerHTML=c[1]+e+c[2];for(var l=c[0];l--;)r=r.lastChild}else r.innerHTML=e;var p=r.getElementsByTagName("script");p.length&&(s(t),i(p).forEach(t));for(var f=i(r.childNodes);r.lastChild;)r.removeChild(r.lastChild);return f}var o=e("./ExecutionEnvironment"),i=e("./createArrayFromMixed"),a=e("./getMarkupWrap"),s=e("./invariant"),u=o.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=r},{"./ExecutionEnvironment":50,"./createArrayFromMixed":153,"./getMarkupWrap":171,"./invariant":179}],156:[function(e,t){"use strict";function n(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).join(" "):Array.prototype.join.call(arguments," ")}e("./warning");t.exports=n},{"./warning":200}],157:[function(e,t){"use strict";function n(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||o.hasOwnProperty(e)&&o[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var r=e("./CSSProperty"),o=r.isUnitlessNumber;t.exports=n},{"./CSSProperty":33}],158:[function(e,t){function n(e){return function(){return e}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},t.exports=r},{}],159:[function(e,t){"use strict";var n={};t.exports=n},{}],160:[function(e,t){"use strict";function n(e){return o[e]}function r(e){return(""+e).replace(i,n)}var o={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},i=/[&><"']/g;t.exports=r},{}],161:[function(e,t){"use strict";function n(e){return null==e?null:a(e)?e:r.has(e)?o.getNodeFromInstance(e):(i(null==e.render||"function"!=typeof e.render),void i(!1))}{var r=(e("./ReactCurrentOwner"),e("./ReactInstanceMap")),o=e("./ReactMount"),i=e("./invariant"),a=e("./isNode");e("./warning")}t.exports=n},{"./ReactCurrentOwner":73,"./ReactInstanceMap":101,"./ReactMount":105,"./invariant":179,"./isNode":181,"./warning":200}],162:[function(e,t){"use strict";function n(e,t,n){var r=e,o=!r.hasOwnProperty(n);o&&null!=t&&(r[n]=t)}function r(e){if(null==e)return e;var t={};return o(e,n,t),t}{var o=e("./traverseAllChildren");e("./warning")}t.exports=r},{"./traverseAllChildren":198,"./warning":200}],163:[function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}t.exports=n},{}],164:[function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=n},{}],165:[function(e,t){function n(){try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=n},{}],166:[function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=n},{}],167:[function(e,t){"use strict";function n(e){if(e.key){var t=o[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=r(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?i[e.keyCode]||"Unidentified":""}var r=e("./getEventCharCode"),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=n},{"./getEventCharCode":166}],168:[function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},{}],169:[function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}t.exports=n},{}],170:[function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";t.exports=n},{}],171:[function(e,t){function n(e){return o(!!i),p.hasOwnProperty(e)||(e="*"),a.hasOwnProperty(e)||(i.innerHTML="*"===e?"<link />":"<"+e+"></"+e+">",a[e]=!i.firstChild),a[e]?p[e]:null}var r=e("./ExecutionEnvironment"),o=e("./invariant"),i=r.canUseDOM?document.createElement("div"):null,a={circle:!0,defs:!0,ellipse:!0,g:!0,line:!0,linearGradient:!0,path:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,text:!0},s=[1,'<select multiple="true">',"</select>"],u=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],l=[1,"<svg>","</svg>"],p={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c,circle:l,defs:l,ellipse:l,g:l,line:l,linearGradient:l,path:l,polygon:l,polyline:l,radialGradient:l,rect:l,stop:l,text:l};t.exports=n},{"./ExecutionEnvironment":50,"./invariant":179}],172:[function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,t>=i&&a>=t)return{node:o,offset:t-i};i=a}o=n(r(o))}}t.exports=o},{}],173:[function(e,t){"use strict";function n(e){return e?e.nodeType===r?e.documentElement:e.firstChild:null}var r=9;t.exports=n},{}],174:[function(e,t){"use strict";function n(){return!o&&r.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var r=e("./ExecutionEnvironment"),o=null;t.exports=n},{"./ExecutionEnvironment":50}],175:[function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=n},{}],176:[function(e,t){function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},{}],177:[function(e,t){"use strict";function n(e){return r(e).replace(o,"-ms-")}var r=e("./hyphenate"),o=/^ms-/;t.exports=n},{"./hyphenate":176}],178:[function(e,t){"use strict";function n(e){return"function"==typeof e&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function r(e,t){var r;if((null===e||e===!1)&&(e=i.emptyElement),"object"==typeof e){var o=e;r=t===o.type&&"string"==typeof o.type?a.createInternalComponent(o):n(o.type)?new o.type(o):new c}else"string"==typeof e||"number"==typeof e?r=a.createInstanceForText(e):u(!1);return r.construct(e),r._mountIndex=0,r._mountImage=null,r}var o=e("./ReactCompositeComponent"),i=e("./ReactEmptyComponent"),a=e("./ReactNativeComponent"),s=e("./Object.assign"),u=e("./invariant"),c=(e("./warning"),function(){});s(c.prototype,o.Mixin,{_instantiateReactComponent:r}),t.exports=r},{"./Object.assign":57,"./ReactCompositeComponent":71,"./ReactEmptyComponent":93,"./ReactNativeComponent":108,"./invariant":179,"./warning":200}],179:[function(e,t){"use strict";var n=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return c[l++]}))}throw u.framesToPop=1,u}};t.exports=n},{}],180:[function(e,t){"use strict";function n(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var r,o=e("./ExecutionEnvironment");o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=n},{"./ExecutionEnvironment":50}],181:[function(e,t){function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=n},{}],182:[function(e,t){"use strict";function n(e){return e&&("INPUT"===e.nodeName&&r[e.type]||"TEXTAREA"===e.nodeName)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=n},{}],183:[function(e,t){function n(e){return r(e)&&3==e.nodeType}var r=e("./isNode");t.exports=n},{"./isNode":181}],184:[function(e,t){"use strict";function n(e){e||(e="");var t,n=arguments.length;if(n>1)for(var r=1;n>r;r++)t=arguments[r],t&&(e=(e?e+" ":"")+t);return e}t.exports=n},{}],185:[function(e,t){"use strict";var n=e("./invariant"),r=function(e){var t,r={};n(e instanceof Object&&!Array.isArray(e));for(t in e)e.hasOwnProperty(t)&&(r[t]=t);return r};t.exports=r},{"./invariant":179}],186:[function(e,t){var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=n},{}],187:[function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}var r=Object.prototype.hasOwnProperty;t.exports=n},{}],188:[function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=n},{}],189:[function(e,t){"use strict";function n(e){return o(r.isValidElement(e)),e}var r=e("./ReactElement"),o=e("./invariant");t.exports=n},{"./ReactElement":91,"./invariant":179}],190:[function(e,t){"use strict";var n,r=e("./ExecutionEnvironment");r.canUseDOM&&(n=window.performance||window.msPerformance||window.webkitPerformance),t.exports=n||{}},{"./ExecutionEnvironment":50}],191:[function(e,t){var n=e("./performance");n&&n.now||(n=Date);var r=n.now.bind(n);t.exports=r},{"./performance":190}],192:[function(e,t){"use strict";function n(e){return'"'+r(e)+'"'}var r=e("./escapeTextContentForBrowser");t.exports=n},{"./escapeTextContentForBrowser":160}],193:[function(e,t){"use strict";var n=e("./ExecutionEnvironment"),r=/^[ \r\n\t\f]/,o=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,i=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(i=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),n.canUseDOM){var a=document.createElement("div");a.innerHTML=" ",""===a.innerHTML&&(i=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),r.test(t)||"<"===t[0]&&o.test(t)){e.innerHTML=""+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}t.exports=i},{"./ExecutionEnvironment":50}],194:[function(e,t){"use strict";var n=e("./ExecutionEnvironment"),r=e("./escapeTextContentForBrowser"),o=e("./setInnerHTML"),i=function(e,t){e.textContent=t};n.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){o(e,r(t))})),t.exports=i},{"./ExecutionEnvironment":50,"./escapeTextContentForBrowser":160,"./setInnerHTML":193}],195:[function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}t.exports=n},{}],196:[function(e,t){"use strict";function n(e,t){if(null!=e&&null!=t){var n=typeof e,r=typeof t;if("string"===n||"number"===n)return"string"===r||"number"===r;if("object"===r&&e.type===t.type&&e.key===t.key){var o=e._owner===t._owner;return o}}return!1}e("./warning");t.exports=n},{"./warning":200}],197:[function(e,t){function n(e){var t=e.length;if(r(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e)),r("number"==typeof t),r(0===t||t-1 in e),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var o=Array(t),i=0;t>i;i++)o[i]=e[i];return o}var r=e("./invariant");t.exports=n},{"./invariant":179}],198:[function(e,t){"use strict";function n(e){return v[e]}function r(e,t){return e&&null!=e.key?i(e.key):t.toString(36)}function o(e){return(""+e).replace(m,n)}function i(e){return"$"+o(e)}function a(e,t,n,o,s){var l=typeof e;if(("undefined"===l||"boolean"===l)&&(e=null),null===e||"string"===l||"number"===l||u.isValidElement(e))return o(s,e,""===t?h+r(e,0):t,n),1;var v,m,y,g=0;if(Array.isArray(e))for(var _=0;_<e.length;_++)v=e[_],m=(""!==t?t+d:h)+r(v,_),y=n+g,g+=a(v,m,y,o,s);else{var b=p(e);if(b){var E,w=b.call(e);if(b!==e.entries)for(var C=0;!(E=w.next()).done;)v=E.value,m=(""!==t?t+d:h)+r(v,C++),y=n+g,g+=a(v,m,y,o,s);else for(;!(E=w.next()).done;){var R=E.value;R&&(v=R[1],m=(""!==t?t+d:h)+i(R[0])+d+r(v,0),y=n+g,g+=a(v,m,y,o,s))}}else if("object"===l){f(1!==e.nodeType);var O=c.extract(e);for(var M in O)O.hasOwnProperty(M)&&(v=O[M],m=(""!==t?t+d:h)+i(M)+d+r(v,0),y=n+g,g+=a(v,m,y,o,s))}}return g}function s(e,t,n){return null==e?0:a(e,"",0,t,n)}var u=e("./ReactElement"),c=e("./ReactFragment"),l=e("./ReactInstanceHandles"),p=e("./getIteratorFn"),f=e("./invariant"),h=(e("./warning"),l.SEPARATOR),d=":",v={"=":"=0",".":"=1",":":"=2"},m=/[=.:]/g;t.exports=s},{"./ReactElement":91,"./ReactFragment":97,"./ReactInstanceHandles":100,"./getIteratorFn":170,"./invariant":179,"./warning":200}],199:[function(e,t){"use strict";function n(e){return Array.isArray(e)?e.concat():e&&"object"==typeof e?i(new e.constructor,e):e}function r(e,t,n){s(Array.isArray(e));var r=t[n];s(Array.isArray(r))}function o(e,t){if(s("object"==typeof t),t.hasOwnProperty(p))return s(1===Object.keys(t).length),t[p];var a=n(e);if(t.hasOwnProperty(f)){var d=t[f];s(d&&"object"==typeof d),s(a&&"object"==typeof a),i(a,t[f])}t.hasOwnProperty(u)&&(r(e,t,u),t[u].forEach(function(e){a.push(e)})),t.hasOwnProperty(c)&&(r(e,t,c),t[c].forEach(function(e){a.unshift(e)})),t.hasOwnProperty(l)&&(s(Array.isArray(e)),s(Array.isArray(t[l])),t[l].forEach(function(e){s(Array.isArray(e)),a.splice.apply(a,e)})),t.hasOwnProperty(h)&&(s("function"==typeof t[h]),a=t[h](a));for(var m in t)v.hasOwnProperty(m)&&v[m]||(a[m]=o(e[m],t[m]));return a}var i=e("./Object.assign"),a=e("./keyOf"),s=e("./invariant"),u=a({$push:null}),c=a({$unshift:null}),l=a({$splice:null}),p=a({$set:null}),f=a({$merge:null}),h=a({$apply:null}),d=[u,c,l,p,f,h],v={};d.forEach(function(e){v[e]=!0}),t.exports=o},{"./Object.assign":57,"./invariant":179,"./keyOf":186}],200:[function(e,t){"use strict";var n=e("./emptyFunction"),r=n;t.exports=r},{"./emptyFunction":158}],201:[function(e,t){t.exports=e("./lib/React")},{"./lib/React":59}],202:[function(e,t){t.exports=e("./lib/")},{"./lib/":203}],203:[function(e,t,n){function r(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r=o(e),i=r.source,c=r.id;return t.forceNew||t["force new connection"]||!1===t.multiplex?(s("ignoring socket cache for %s",i),n=a(i,t)):(u[c]||(s("new io instance for %s",i),u[c]=a(i,t)),n=u[c]),n.socket(r.path)}var o=e("./url"),i=e("socket.io-parser"),a=e("./manager"),s=e("debug")("socket.io-client");t.exports=n=r;var u=n.managers={};n.protocol=i.protocol,n.connect=r,n.Manager=e("./manager"),n.Socket=e("./socket")},{"./manager":204,"./socket":206,"./url":207,debug:211,"socket.io-parser":247}],204:[function(e,t){function n(e,t){return this instanceof n?(e&&"object"==typeof e&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connected=[],this.encoding=!1,this.packetBuffer=[],this.encoder=new a.Encoder,this.decoder=new a.Decoder,this.autoConnect=t.autoConnect!==!1,void(this.autoConnect&&this.open())):new n(e,t)}var r=(e("./url"),e("engine.io-client")),o=e("./socket"),i=e("component-emitter"),a=e("socket.io-parser"),s=e("./on"),u=e("component-bind"),c=(e("object-component"),e("debug")("socket.io-client:manager")),l=e("indexof"),p=e("backo2");t.exports=n,n.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)this.nsps[e].emit.apply(this.nsps[e],arguments)},n.prototype.updateSocketIds=function(){for(var e in this.nsps)this.nsps[e].id=this.engine.id},i(n.prototype),n.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},n.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},n.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},n.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},n.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},n.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},n.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},n.prototype.open=n.prototype.connect=function(e){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=r(this.uri,this.opts);var t=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var o=s(t,"open",function(){n.onopen(),e&&e()}),i=s(t,"error",function(t){if(c("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",t),e){var r=new Error("Connection error");r.data=t,e(r)}else n.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;c("connect attempt will timeout after %d",a);var u=setTimeout(function(){c("connect attempt timed out after %d",a),o.destroy(),t.close(),t.emit("error","timeout"),n.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(o),this.subs.push(i),this},n.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(s(e,"data",u(this,"ondata"))),this.subs.push(s(this.decoder,"decoded",u(this,"ondecoded"))),this.subs.push(s(e,"error",u(this,"onerror"))),this.subs.push(s(e,"close",u(this,"onclose")))},n.prototype.ondata=function(e){this.decoder.add(e)},n.prototype.ondecoded=function(e){this.emit("packet",e)},n.prototype.onerror=function(e){c("error",e),this.emitAll("error",e)},n.prototype.socket=function(e){var t=this.nsps[e];if(!t){t=new o(this,e),this.nsps[e]=t;var n=this;t.on("connect",function(){t.id=n.engine.id,~l(n.connected,t)||n.connected.push(t)})}return t},n.prototype.destroy=function(e){var t=l(this.connected,e);~t&&this.connected.splice(t,1),this.connected.length||this.close()},n.prototype.packet=function(e){c("writing packet %j",e);var t=this;t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(e){for(var n=0;n<e.length;n++)t.engine.write(e[n]);t.encoding=!1,t.processPacketQueue()}))},n.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},n.prototype.cleanup=function(){for(var e;e=this.subs.shift();)e.destroy();this.packetBuffer=[],this.encoding=!1,this.decoder.destroy()},n.prototype.close=n.prototype.disconnect=function(){this.skipReconnect=!0,this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},n.prototype.onclose=function(e){c("close"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},n.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},n.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},{"./on":205,"./socket":206,"./url":207,backo2:208,"component-bind":209,"component-emitter":210,debug:211,"engine.io-client":212,indexof:243,"object-component":244,"socket.io-parser":247}],205:[function(e,t){function n(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}t.exports=n},{}],206:[function(e,t,n){function r(e,t){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.io.autoConnect&&this.open(),this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0}var o=e("socket.io-parser"),i=e("component-emitter"),a=e("to-array"),s=e("./on"),u=e("component-bind"),c=e("debug")("socket.io-client:socket"),l=e("has-binary");
  10. t.exports=n=r;var p={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1},f=i.prototype.emit;i(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[s(e,"open",u(this,"onopen")),s(e,"packet",u(this,"onpacket")),s(e,"close",u(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"==this.io.readyState&&this.onopen(),this)},r.prototype.send=function(){var e=a(arguments);return e.unshift("message"),this.emit.apply(this,e),this},r.prototype.emit=function(e){if(p.hasOwnProperty(e))return f.apply(this,arguments),this;var t=a(arguments),n=o.EVENT;l(t)&&(n=o.BINARY_EVENT);var r={type:n,data:t};return"function"==typeof t[t.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),this},r.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},r.prototype.onopen=function(){c("transport is open - connecting"),"/"!=this.nsp&&this.packet({type:o.CONNECT})},r.prototype.onclose=function(e){c("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},r.prototype.onpacket=function(e){if(e.nsp==this.nsp)switch(e.type){case o.CONNECT:this.onconnect();break;case o.EVENT:this.onevent(e);break;case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:this.onack(e);break;case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",e.data)}},r.prototype.onevent=function(e){var t=e.data||[];c("emitting event %j",t),null!=e.id&&(c("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?f.apply(this,t):this.receiveBuffer.push(t)},r.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var r=a(arguments);c("sending ack %j",r);var i=l(r)?o.BINARY_ACK:o.ACK;t.packet({type:i,id:e,data:r})}}},r.prototype.onack=function(e){c("calling ack %s with %j",e.id,e.data);var t=this.acks[e.id];t.apply(this,e.data),delete this.acks[e.id]},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)f.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{"./on":205,"component-bind":209,"component-emitter":210,debug:211,"has-binary":241,"socket.io-parser":247,"to-array":251}],207:[function(e,t){(function(n){function r(e,t){var r=e,t=t||n.location;return null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"==e.charAt(0)&&(e="/"==e.charAt(1)?t.protocol+e:t.hostname+e),/^(https?|wss?):\/\//.test(e)||(i("protocol-less url %s",e),e="undefined"!=typeof t?t.protocol+"//"+e:"https://"+e),i("parse %s",e),r=o(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/",r.id=r.protocol+"://"+r.host+":"+r.port,r.href=r.protocol+"://"+r.host+(t&&t.port==r.port?"":":"+r.port),r}var o=e("parseuri"),i=e("debug")("socket.io-client:url");t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{debug:211,parseuri:245}],208:[function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},{}],209:[function(e,t){var n=[].slice;t.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}},{}],210:[function(e,t){function n(e){return e?r(e):void 0}function r(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},n.prototype.once=function(e,t){function n(){r.off(e,n),t.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},n.fn=t,this.on(e,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks[e];if(n){n=n.slice(0);for(var r=0,o=n.length;o>r;++r)n[r].apply(this,t)}return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],211:[function(e,t){function n(e){return n.enabled(e)?function(t){t=r(t);var o=new Date,i=o-(n[e]||o);n[e]=o,t=e+" "+t+" +"+n.humanize(i),window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function r(e){return e instanceof Error?e.stack||e.message:e}t.exports=n,n.names=[],n.skips=[],n.enable=function(e){try{localStorage.debug=e}catch(t){}for(var r=(e||"").split(/[\s,]+/),o=r.length,i=0;o>i;i++)e=r[i].replace("*",".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$"))},n.disable=function(){n.enable("")},n.humanize=function(e){var t=1e3,n=6e4,r=60*n;return e>=r?(e/r).toFixed(1)+"h":e>=n?(e/n).toFixed(1)+"m":e>=t?(e/t|0)+"s":e+"ms"},n.enabled=function(e){for(var t=0,r=n.skips.length;r>t;t++)if(n.skips[t].test(e))return!1;for(var t=0,r=n.names.length;r>t;t++)if(n.names[t].test(e))return!0;return!1};try{window.localStorage&&n.enable(localStorage.debug)}catch(o){}},{}],212:[function(e,t){t.exports=e("./lib/")},{"./lib/":213}],213:[function(e,t){t.exports=e("./socket"),t.exports.parser=e("engine.io-parser")},{"./socket":214,"engine.io-parser":226}],214:[function(e,t){(function(n){function r(e,t){if(!(this instanceof r))return new r(e,t);if(t=t||{},e&&"object"==typeof e&&(t=e,e=null),e&&(e=l(e),t.host=e.host,t.secure="https"==e.protocol||"wss"==e.protocol,t.port=e.port,e.query&&(t.query=e.query)),this.secure=null!=t.secure?t.secure:n.location&&"https:"==location.protocol,t.host){var o=t.host.split(":");t.hostname=o.shift(),o.length?t.port=o.pop():t.port||(t.port=this.secure?"443":"80")}this.agent=t.agent||!1,this.hostname=t.hostname||(n.location?location.hostname:"localhost"),this.port=t.port||(n.location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=f.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.callbackBuffer=[],this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=t.rejectUnauthorized||null,this.open()}function o(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var i=e("./transports"),a=e("component-emitter"),s=e("debug")("engine.io-client:socket"),u=e("indexof"),c=e("engine.io-parser"),l=e("parseuri"),p=e("parsejson"),f=e("parseqs");t.exports=r,r.priorWebsocketSuccess=!1,a(r.prototype),r.protocol=c.protocol,r.Socket=r,r.Transport=e("./transport"),r.transports=e("./transports"),r.parser=e("engine.io-parser"),r.prototype.createTransport=function(e){s('creating transport "%s"',e);var t=o(this.query);t.EIO=c.protocol,t.transport=e,this.id&&(t.sid=this.id);var n=new i[e]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:t,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized});return n},r.prototype.open=function(){var e;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!=this.transports.indexOf("websocket"))e="websocket";else{if(0==this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";var e;try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},r.prototype.setTransport=function(e){s("setting transport %s",e.name);var t=this;this.transport&&(s("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},r.prototype.probe=function(e){function t(){if(f.onlyBinaryUpgrades){var t=!this.supportsBinary&&f.transport.supportsBinary;p=p||t}p||(s('probe transport "%s" opened',e),l.send([{type:"ping",data:"probe"}]),l.once("packet",function(t){if(!p)if("pong"==t.type&&"probe"==t.data){if(s('probe transport "%s" pong',e),f.upgrading=!0,f.emit("upgrading",l),!l)return;r.priorWebsocketSuccess="websocket"==l.name,s('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){p||"closed"!=f.readyState&&(s("changing transport and sending upgrade packet"),c(),f.setTransport(l),l.send([{type:"upgrade"}]),f.emit("upgrade",l),l=null,f.upgrading=!1,f.flush())})}else{s('probe transport "%s" failed',e);var n=new Error("probe error");n.transport=l.name,f.emit("upgradeError",n)}}))}function n(){p||(p=!0,c(),l.close(),l=null)}function o(t){var r=new Error("probe error: "+t);r.transport=l.name,n(),s('probe transport "%s" failed because of error: %s',e,t),f.emit("upgradeError",r)}function i(){o("transport closed")}function a(){o("socket closed")}function u(e){l&&e.name!=l.name&&(s('"%s" works - aborting "%s"',e.name,l.name),n())}function c(){l.removeListener("open",t),l.removeListener("error",o),l.removeListener("close",i),f.removeListener("close",a),f.removeListener("upgrading",u)}s('probing transport "%s"',e);var l=this.createTransport(e,{probe:1}),p=!1,f=this;r.priorWebsocketSuccess=!1,l.once("open",t),l.once("error",o),l.once("close",i),this.once("close",a),this.once("upgrading",u),l.open()},r.prototype.onOpen=function(){if(s("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"==this.transport.name,this.emit("open"),this.flush(),"open"==this.readyState&&this.upgrade&&this.transport.pause){s("starting upgrade probes");for(var e=0,t=this.upgrades.length;t>e;e++)this.probe(this.upgrades[e])}},r.prototype.onPacket=function(e){if("opening"==this.readyState||"open"==this.readyState)switch(s('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(p(e.data));break;case"pong":this.setPing();break;case"error":var t=new Error("server error");t.code=e.data,this.emit("error",t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else s('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!=this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!=t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},r.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){s("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},r.prototype.ping=function(){this.sendPacket("ping")},r.prototype.onDrain=function(){for(var e=0;e<this.prevBufferLen;e++)this.callbackBuffer[e]&&this.callbackBuffer[e]();this.writeBuffer.splice(0,this.prevBufferLen),this.callbackBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0==this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(s("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(e,t){return this.sendPacket("message",e,t),this},r.prototype.sendPacket=function(e,t,n){if("closing"!=this.readyState&&"closed"!=this.readyState){var r={type:e,data:t};this.emit("packetCreate",r),this.writeBuffer.push(r),this.callbackBuffer.push(n),this.flush()}},r.prototype.close=function(){function e(){r.onClose("forced close"),s("socket closing - telling transport to close"),r.transport.close()}function t(){r.removeListener("upgrade",t),r.removeListener("upgradeError",t),e()}function n(){r.once("upgrade",t),r.once("upgradeError",t)}if("opening"==this.readyState||"open"==this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():e()}):this.upgrading?n():e()}return this},r.prototype.onError=function(e){s("socket error %j",e),r.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},r.prototype.onClose=function(e,t){if("opening"==this.readyState||"open"==this.readyState||"closing"==this.readyState){s('socket close with reason: "%s"',e);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),setTimeout(function(){n.writeBuffer=[],n.callbackBuffer=[],n.prevBufferLen=0},0),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t)}},r.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;r>n;n++)~u(this.transports,e[n])&&t.push(e[n]);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./transport":215,"./transports":216,"component-emitter":210,debug:223,"engine.io-parser":226,indexof:243,parsejson:237,parseqs:238,parseuri:239}],215:[function(e,t){function n(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized}var r=e("engine.io-parser"),o=e("component-emitter");t.exports=n,o(n.prototype),n.timestamps=0,n.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},n.prototype.open=function(){return("closed"==this.readyState||""==this.readyState)&&(this.readyState="opening",this.doOpen()),this},n.prototype.close=function(){return("opening"==this.readyState||"open"==this.readyState)&&(this.doClose(),this.onClose()),this},n.prototype.send=function(e){if("open"!=this.readyState)throw new Error("Transport not open");this.write(e)},n.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},n.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},n.prototype.onPacket=function(e){this.emit("packet",e)},n.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},{"component-emitter":210,"engine.io-parser":226}],216:[function(e,t,n){(function(t){function r(e){var n,r=!1,s=!1,u=!1!==e.jsonp;if(t.location){var c="https:"==location.protocol,l=location.port;l||(l=c?443:80),r=e.hostname!=location.hostname||l!=e.port,s=e.secure!=c}if(e.xdomain=r,e.xscheme=s,n=new o(e),"open"in n&&!e.forceJSONP)return new i(e);if(!u)throw new Error("JSONP disabled");return new a(e)}var o=e("xmlhttprequest"),i=e("./polling-xhr"),a=e("./polling-jsonp"),s=e("./websocket");n.polling=r,n.websocket=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling-jsonp":217,"./polling-xhr":218,"./websocket":220,xmlhttprequest:221}],217:[function(e,t){(function(n){function r(){}function o(e){i.call(this,e),this.query=this.query||{},s||(n.___eio||(n.___eio=[]),s=n.___eio),this.index=s.length;var t=this;s.push(function(e){t.onData(e)}),this.query.j=this.index,n.document&&n.addEventListener&&n.addEventListener("beforeunload",function(){t.script&&(t.script.onerror=r)},!1)}var i=e("./polling"),a=e("component-inherit");t.exports=o;var s,u=/\n/g,c=/\\n/g;a(o,i),o.prototype.supportsBinary=!1,o.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),i.prototype.doClose.call(this)},o.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n),this.script=t;var r="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},o.prototype.doWrite=function(e,t){function n(){r(),t()}function r(){if(o.iframe)try{o.form.removeChild(o.iframe)}catch(e){o.onError("jsonp polling iframe removal error",e)}try{var t='<iframe src="javascript:0" name="'+o.iframeId+'">';i=document.createElement(t)}catch(e){i=document.createElement("iframe"),i.name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}var o=this;if(!this.form){var i,a=document.createElement("form"),s=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=l,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),e=e.replace(c,"\\\n"),this.area.value=e.replace(u,"\\n");try{this.form.submit()}catch(p){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"==o.iframe.readyState&&n()}:this.iframe.onload=n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling":219,"component-inherit":222}],218:[function(e,t){(function(n){function r(){}function o(e){if(u.call(this,e),n.location){var t="https:"==location.protocol,r=location.port;r||(r=t?443:80),this.xd=e.hostname!=n.location.hostname||r!=e.port,this.xs=e.secure!=t}}function i(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!=e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.create()}function a(){for(var e in i.requests)i.requests.hasOwnProperty(e)&&i.requests[e].abort()}var s=e("xmlhttprequest"),u=e("./polling"),c=e("component-emitter"),l=e("component-inherit"),p=e("debug")("engine.io-client:polling-xhr");t.exports=o,t.exports.Request=i,l(o,u),o.prototype.supportsBinary=!0,o.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,new i(e)},o.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",function(e){o.onError("xhr post error",e)}),this.sendXhr=r},o.prototype.doPoll=function(){p("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},c(i.prototype),i.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new s(e),r=this;try{if(p("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async),this.supportsBinary&&(t.responseType="arraybuffer"),"POST"==this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(o){}"withCredentials"in t&&(t.withCredentials=!0),this.hasXDR()?(t.onload=function(){r.onLoad()},t.onerror=function(){r.onError(t.responseText)}):t.onreadystatechange=function(){4==t.readyState&&(200==t.status||1223==t.status?r.onLoad():setTimeout(function(){r.onError(t.status)},0))},p("xhr data %s",this.data),t.send(this.data)}catch(o){return void setTimeout(function(){r.onError(o)},0)}n.document&&(this.index=i.requestsCount++,i.requests[this.index]=this)},i.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},i.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},i.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},i.prototype.cleanup=function(e){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,e)try{this.xhr.abort()}catch(t){}n.document&&delete i.requests[this.index],this.xhr=null}},i.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(n){}e="application/octet-stream"===t?this.xhr.response:this.supportsBinary?"ok":this.xhr.responseText}catch(n){this.onError(n)}null!=e&&this.onData(e)},i.prototype.hasXDR=function(){return"undefined"!=typeof n.XDomainRequest&&!this.xs&&this.enablesXDR},i.prototype.abort=function(){this.cleanup()},n.document&&(i.requestsCount=0,i.requests={},n.attachEvent?n.attachEvent("onunload",a):n.addEventListener&&n.addEventListener("beforeunload",a,!1))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling":219,"component-emitter":210,"component-inherit":222,debug:223,xmlhttprequest:221}],219:[function(e,t){function n(e){var t=e&&e.forceBase64;(!u||t)&&(this.supportsBinary=!1),r.call(this,e)}var r=e("../transport"),o=e("parseqs"),i=e("engine.io-parser"),a=e("component-inherit"),s=e("debug")("engine.io-client:polling");t.exports=n;var u=function(){var t=e("xmlhttprequest"),n=new t({xdomain:!1});return null!=n.responseType}();a(n,r),n.prototype.name="polling",n.prototype.doOpen=function(){this.poll()},n.prototype.pause=function(e){function t(){s("paused"),n.readyState="paused",e()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(s("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){s("pre-pause polling complete"),--r||t()})),this.writable||(s("we are currently writing - waiting to pause"),r++,this.once("drain",function(){s("pre-pause writing complete"),--r||t()}))}else t()},n.prototype.poll=function(){s("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},n.prototype.onData=function(e){var t=this;s("polling got data %s",e);var n=function(e){return"opening"==t.readyState&&t.onOpen(),"close"==e.type?(t.onClose(),!1):void t.onPacket(e)};i.decodePayload(e,this.socket.binaryType,n),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():s('ignoring poll - transport state "%s"',this.readyState))},n.prototype.doClose=function(){function e(){s("writing close packet"),t.write([{type:"close"}])}var t=this;"open"==this.readyState?(s("transport open - closing"),e()):(s("transport not open - deferring close"),this.once("open",e))},n.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")},t=this;i.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},n.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=+new Date+"-"+r.timestamps++),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"==t&&443!=this.port||"http"==t&&80!=this.port)&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+this.hostname+n+this.path+e}},{"../transport":215,"component-inherit":222,debug:223,"engine.io-parser":226,parseqs:238,xmlhttprequest:221}],220:[function(e,t){function n(e){var t=e&&e.forceBase64;t&&(this.supportsBinary=!1),r.call(this,e)}var r=e("../transport"),o=e("engine.io-parser"),i=e("parseqs"),a=e("component-inherit"),s=e("debug")("engine.io-client:websocket"),u=e("ws");t.exports=n,a(n,r),n.prototype.name="websocket",n.prototype.supportsBinary=!0,n.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=void 0,n={agent:this.agent};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.ws=new u(e,t,n),void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.binaryType="arraybuffer",this.addEventListeners()}},n.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},"undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(n.prototype.onData=function(e){var t=this;setTimeout(function(){r.prototype.onData.call(t,e)},0)}),n.prototype.write=function(e){function t(){n.writable=!0,n.emit("drain")}var n=this;this.writable=!1;for(var r=0,i=e.length;i>r;r++)o.encodePacket(e[r],this.supportsBinary,function(e){try{n.ws.send(e)}catch(t){s("websocket closed before onclose event")}});setTimeout(t,0)},n.prototype.onClose=function(){r.prototype.onClose.call(this)},n.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},n.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"==t&&443!=this.port||"ws"==t&&80!=this.port)&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=+new Date),this.supportsBinary||(e.b64=1),e=i.encode(e),e.length&&(e="?"+e),t+"://"+this.hostname+n+this.path+e},n.prototype.check=function(){return!(!u||"__initialize"in u&&this.name===n.prototype.name)}},{"../transport":215,"component-inherit":222,debug:223,"engine.io-parser":226,parseqs:238,ws:240}],221:[function(e,t){var n=e("has-cors");t.exports=function(e){var t=e.xdomain,r=e.xscheme,o=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n))return new XMLHttpRequest}catch(i){}try{if("undefined"!=typeof XDomainRequest&&!r&&o)return new XDomainRequest}catch(i){}if(!t)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(i){}}},{"has-cors":235}],222:[function(e,t){t.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],223:[function(e,t,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var e=arguments,t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!t)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var o=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r),e}function i(){return"object"==typeof console&&"function"==typeof console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?localStorage.removeItem("debug"):localStorage.debug=e}catch(t){}}function s(){var e;try{e=localStorage.debug}catch(t){}return e}n=t.exports=e("./debug"),n.log=i,n.formatArgs=o,n.save=a,n.load=s,n.useColors=r,n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){return JSON.stringify(e)},n.enable(s())},{"./debug":224}],224:[function(e,t,n){function r(){return n.colors[l++%n.colors.length]}function o(e){function t(){}function o(){var e=o,t=+new Date,i=t-(c||t);e.diff=i,e.prev=c,e.curr=t,c=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=r());var a=Array.prototype.slice.call(arguments);a[0]=n.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(t,r){if("%%"===t)return t;s++;var o=n.formatters[r];if("function"==typeof o){var i=a[s];t=o.call(e,i),a.splice(s,1),s--}return t}),"function"==typeof n.formatArgs&&(a=n.formatArgs.apply(e,a));var u=o.log||n.log||console.log.bind(console);u.apply(e,a)}t.enabled=!1,o.enabled=!0;var i=n.enabled(e)?o:t;return i.namespace=e,i}function i(e){n.save(e);for(var t=(e||"").split(/[\s,]+/),r=t.length,o=0;r>o;o++)t[o]&&(e=t[o].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function a(){n.enable("")}function s(e){var t,r;for(t=0,r=n.skips.length;r>t;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;r>t;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=o,n.coerce=u,n.disable=a,n.enable=i,n.enabled=s,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var c,l=0},{ms:225}],225:[function(e,t){function n(e){var t=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();
  11. switch(r){case"years":case"year":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"h":return n*u;case"minutes":case"minute":case"m":return n*s;case"seconds":case"second":case"s":return n*a;case"ms":return n}}}function r(e){return e>=c?Math.round(e/c)+"d":e>=u?Math.round(e/u)+"h":e>=s?Math.round(e/s)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function o(e){return i(e,c,"day")||i(e,u,"hour")||i(e,s,"minute")||i(e,a,"second")||e+" ms"}function i(e,t,n){return t>e?void 0:1.5*t>e?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var a=1e3,s=60*a,u=60*s,c=24*u,l=365.25*c;t.exports=function(e,t){return t=t||{},"string"==typeof e?n(e):t["long"]?o(e):r(e)}},{}],226:[function(e,t,n){(function(t){function r(e,t){var r="b"+n.packets[e.type]+e.data.data;return t(r)}function o(e,t,r){if(!t)return n.encodeBase64Packet(e,r);var o=e.data,i=new Uint8Array(o),a=new Uint8Array(1+o.byteLength);a[0]=y[e.type];for(var s=0;s<i.length;s++)a[s+1]=i[s];return r(a.buffer)}function i(e,t,r){if(!t)return n.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){e.data=o.result,n.encodePacket(e,t,!0,r)},o.readAsArrayBuffer(e.data)}function a(e,t,r){if(!t)return n.encodeBase64Packet(e,r);if(m)return i(e,t,r);var o=new Uint8Array(1);o[0]=y[e.type];var a=new b([o.buffer,e.data]);return r(a)}function s(e,t,n){for(var r=new Array(e.length),o=f(e.length,n),i=function(e,n,o){t(n,function(t,n){r[e]=n,o(t,r)})},a=0;a<e.length;a++)i(a,e[a],o)}var u=e("./keys"),c=e("has-binary"),l=e("arraybuffer.slice"),p=e("base64-arraybuffer"),f=e("after"),h=e("utf8"),d=navigator.userAgent.match(/Android/i),v=/PhantomJS/i.test(navigator.userAgent),m=d||v;n.protocol=3;var y=n.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},g=u(y),_={type:"error",data:"parser error"},b=e("blob");n.encodePacket=function(e,n,i,s){"function"==typeof n&&(s=n,n=!1),"function"==typeof i&&(s=i,i=null);var u=void 0===e.data?void 0:e.data.buffer||e.data;if(t.ArrayBuffer&&u instanceof ArrayBuffer)return o(e,n,s);if(b&&u instanceof t.Blob)return a(e,n,s);if(u&&u.base64)return r(e,s);var c=y[e.type];return void 0!==e.data&&(c+=i?h.encode(String(e.data)):String(e.data)),s(""+c)},n.encodeBase64Packet=function(e,r){var o="b"+n.packets[e.type];if(b&&e.data instanceof b){var i=new FileReader;return i.onload=function(){var e=i.result.split(",")[1];r(o+e)},i.readAsDataURL(e.data)}var a;try{a=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(s){for(var u=new Uint8Array(e.data),c=new Array(u.length),l=0;l<u.length;l++)c[l]=u[l];a=String.fromCharCode.apply(null,c)}return o+=t.btoa(a),r(o)},n.decodePacket=function(e,t,r){if("string"==typeof e||void 0===e){if("b"==e.charAt(0))return n.decodeBase64Packet(e.substr(1),t);if(r)try{e=h.decode(e)}catch(o){return _}var i=e.charAt(0);return Number(i)==i&&g[i]?e.length>1?{type:g[i],data:e.substring(1)}:{type:g[i]}:_}var a=new Uint8Array(e),i=a[0],s=l(e,1);return b&&"blob"===t&&(s=new b([s])),{type:g[i],data:s}},n.decodeBase64Packet=function(e,n){var r=g[e.charAt(0)];if(!t.ArrayBuffer)return{type:r,data:{base64:!0,data:e.substr(1)}};var o=p.decode(e.substr(1));return"blob"===n&&b&&(o=new b([o])),{type:r,data:o}},n.encodePayload=function(e,t,r){function o(e){return e.length+":"+e}function i(e,r){n.encodePacket(e,a?t:!1,!0,function(e){r(null,o(e))})}"function"==typeof t&&(r=t,t=null);var a=c(e);return t&&a?b&&!m?n.encodePayloadAsBlob(e,r):n.encodePayloadAsArrayBuffer(e,r):e.length?void s(e,i,function(e,t){return r(t.join(""))}):r("0:")},n.decodePayload=function(e,t,r){if("string"!=typeof e)return n.decodePayloadAsBinary(e,t,r);"function"==typeof t&&(r=t,t=null);var o;if(""==e)return r(_,0,1);for(var i,a,s="",u=0,c=e.length;c>u;u++){var l=e.charAt(u);if(":"!=l)s+=l;else{if(""==s||s!=(i=Number(s)))return r(_,0,1);if(a=e.substr(u+1,i),s!=a.length)return r(_,0,1);if(a.length){if(o=n.decodePacket(a,t,!0),_.type==o.type&&_.data==o.data)return r(_,0,1);var p=r(o,u+i,c);if(!1===p)return}u+=i,s=""}}return""!=s?r(_,0,1):void 0},n.encodePayloadAsArrayBuffer=function(e,t){function r(e,t){n.encodePacket(e,!0,!0,function(e){return t(null,e)})}return e.length?void s(e,r,function(e,n){var r=n.reduce(function(e,t){var n;return n="string"==typeof t?t.length:t.byteLength,e+n.toString().length+n+2},0),o=new Uint8Array(r),i=0;return n.forEach(function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);n=r.buffer}o[i++]=t?0:1;for(var s=n.byteLength.toString(),a=0;a<s.length;a++)o[i++]=parseInt(s[a]);o[i++]=255;for(var r=new Uint8Array(n),a=0;a<r.length;a++)o[i++]=r[a]}),t(o.buffer)}):t(new ArrayBuffer(0))},n.encodePayloadAsBlob=function(e,t){function r(e,t){n.encodePacket(e,!0,!0,function(e){var n=new Uint8Array(1);if(n[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,n[0]=0}for(var i=e instanceof ArrayBuffer?e.byteLength:e.size,a=i.toString(),s=new Uint8Array(a.length+1),o=0;o<a.length;o++)s[o]=parseInt(a[o]);if(s[a.length]=255,b){var u=new b([n.buffer,s.buffer,e]);t(null,u)}})}s(e,r,function(e,n){return t(new b(n))})},n.decodePayloadAsBinary=function(e,t,r){"function"==typeof t&&(r=t,t=null);for(var o=e,i=[],a=!1;o.byteLength>0;){for(var s=new Uint8Array(o),u=0===s[0],c="",p=1;255!=s[p];p++){if(c.length>310){a=!0;break}c+=s[p]}if(a)return r(_,0,1);o=l(o,2+c.length),c=parseInt(c);var f=l(o,0,c);if(u)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(h){var d=new Uint8Array(f);f="";for(var p=0;p<d.length;p++)f+=String.fromCharCode(d[p])}i.push(f),o=l(o,c)}var v=i.length;i.forEach(function(e,o){r(n.decodePacket(e,t,!0),o,v)})}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":227,after:228,"arraybuffer.slice":229,"base64-arraybuffer":230,blob:231,"has-binary":232,utf8:234}],227:[function(e,t){t.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},{}],228:[function(e,t){function n(e,t,n){function o(e,r){if(o.count<=0)throw new Error("after called too many times");--o.count,e?(i=!0,t(e),t=n):0!==o.count||i||t(null,r)}var i=!1;return n=n||r,o.count=e,0===e?t():o}function r(){}t.exports=n},{}],229:[function(e,t){t.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(0>t&&(t+=r),0>n&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,s=0;n>a;a++,s++)i[s]=o[a];return i.buffer}},{}],230:[function(e,t,n){!function(e){"use strict";n.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;o>n;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},n.decode=function(t){var n,r,o,i,a,s=.75*t.length,u=t.length,c=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l=new ArrayBuffer(s),p=new Uint8Array(l);for(n=0;u>n;n+=4)r=e.indexOf(t[n]),o=e.indexOf(t[n+1]),i=e.indexOf(t[n+2]),a=e.indexOf(t[n+3]),p[c++]=r<<2|o>>4,p[c++]=(15&o)<<4|i>>2,p[c++]=(3&i)<<6|63&a;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],231:[function(e,t){(function(e){function n(e,t){t=t||{};for(var n=new r,o=0;o<e.length;o++)n.append(e[o]);return t.type?n.getBlob(t.type):n.getBlob()}var r=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,o=function(){try{var e=new Blob(["hi"]);return 2==e.size}catch(t){return!1}}(),i=r&&r.prototype.append&&r.prototype.getBlob;t.exports=function(){return o?e.Blob:i?n:void 0}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],232:[function(e,t){(function(n){function r(e){function t(e){if(!e)return!1;if(n.Buffer&&n.Buffer.isBuffer(e)||n.ArrayBuffer&&e instanceof ArrayBuffer||n.Blob&&e instanceof Blob||n.File&&e instanceof File)return!0;if(o(e)){for(var r=0;r<e.length;r++)if(t(e[r]))return!0}else if(e&&"object"==typeof e){e.toJSON&&(e=e.toJSON());for(var i in e)if(e.hasOwnProperty(i)&&t(e[i]))return!0}return!1}return t(e)}var o=e("isarray");t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{isarray:233}],233:[function(e,t){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],234:[function(e,t,n){(function(e){!function(r){function o(e){for(var t,n,r=[],o=0,i=e.length;i>o;)t=e.charCodeAt(o++),t>=55296&&56319>=t&&i>o?(n=e.charCodeAt(o++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--)):r.push(t);return r}function i(e){for(var t,n=e.length,r=-1,o="";++r<n;)t=e[r],t>65535&&(t-=65536,o+=g(t>>>10&1023|55296),t=56320|1023&t),o+=g(t);return o}function a(e,t){return g(e>>t&63|128)}function s(e){if(0==(4294967168&e))return g(e);var t="";return 0==(4294965248&e)?t=g(e>>6&31|192):0==(4294901760&e)?(t=g(e>>12&15|224),t+=a(e,6)):0==(4292870144&e)&&(t=g(e>>18&7|240),t+=a(e,12),t+=a(e,6)),t+=g(63&e|128)}function u(e){for(var t,n=o(e),r=n.length,i=-1,a="";++i<r;)t=n[i],a+=s(t);return a}function c(){if(y>=m)throw Error("Invalid byte index");var e=255&v[y];if(y++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(){var e,t,n,r,o;if(y>m)throw Error("Invalid byte index");if(y==m)return!1;if(e=255&v[y],y++,0==(128&e))return e;if(192==(224&e)){var t=c();if(o=(31&e)<<6|t,o>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if(t=c(),n=c(),o=(15&e)<<12|t<<6|n,o>=2048)return o;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=c(),n=c(),r=c(),o=(15&e)<<18|t<<12|n<<6|r,o>=65536&&1114111>=o))return o;throw Error("Invalid UTF-8 detected")}function p(e){v=o(e),m=v.length,y=0;for(var t,n=[];(t=l())!==!1;)n.push(t);return i(n)}var f="object"==typeof n&&n,h="object"==typeof t&&t&&t.exports==f&&t,d="object"==typeof e&&e;(d.global===d||d.window===d)&&(r=d);var v,m,y,g=String.fromCharCode,_={version:"2.0.0",encode:u,decode:p};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return _});else if(f&&!f.nodeType)if(h)h.exports=_;else{var b={},E=b.hasOwnProperty;for(var w in _)E.call(_,w)&&(f[w]=_[w])}else r.utf8=_}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],235:[function(e,t){var n=e("global");try{t.exports="XMLHttpRequest"in n&&"withCredentials"in new n.XMLHttpRequest}catch(r){t.exports=!1}},{global:236}],236:[function(e,t){t.exports=function(){return this}()},{}],237:[function(e,t){(function(e){var n=/^[\],:{}\s]*$/,r=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,o=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,i=/(?:^|:|,)(?:\s*\[)+/g,a=/^\s+/,s=/\s+$/;t.exports=function(t){return"string"==typeof t&&t?(t=t.replace(a,"").replace(s,""),e.JSON&&JSON.parse?JSON.parse(t):n.test(t.replace(r,"@").replace(o,"]").replace(i,""))?new Function("return "+t)():void 0):null}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],238:[function(e,t,n){n.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},n.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;o>r;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},{}],239:[function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(e){var t=e,o=e.indexOf("["),i=e.indexOf("]");-1!=o&&-1!=i&&(e=e.substring(0,o)+e.substring(o,i).replace(/:/g,";")+e.substring(i,e.length));for(var a=n.exec(e||""),s={},u=14;u--;)s[r[u]]=a[u]||"";return-1!=o&&-1!=i&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},{}],240:[function(e,t){function n(e,t){var n;return n=t?new o(e,t):new o(e)}var r=function(){return this}(),o=r.WebSocket||r.MozWebSocket;t.exports=o?n:null,o&&(n.prototype=o.prototype)},{}],241:[function(e,t){(function(n){function r(e){function t(e){if(!e)return!1;if(n.Buffer&&n.Buffer.isBuffer(e)||n.ArrayBuffer&&e instanceof ArrayBuffer||n.Blob&&e instanceof Blob||n.File&&e instanceof File)return!0;if(o(e)){for(var r=0;r<e.length;r++)if(t(e[r]))return!0}else if(e&&"object"==typeof e){e.toJSON&&(e=e.toJSON());for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t(e[i]))return!0}return!1}return t(e)}var o=e("isarray");t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{isarray:242}],242:[function(e,t,n){arguments[4][233][0].apply(n,arguments)},{dup:233}],243:[function(e,t){var n=[].indexOf;t.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},{}],244:[function(e,t,n){var r=Object.prototype.hasOwnProperty;n.keys=Object.keys||function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t},n.values=function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(e[n]);return t},n.merge=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e},n.length=function(e){return n.keys(e).length},n.isEmpty=function(e){return 0==n.length(e)}},{}],245:[function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(e){for(var t=n.exec(e||""),o={},i=14;i--;)o[r[i]]=t[i]||"";return o}},{}],246:[function(e,t,n){(function(t){var r=e("isarray"),o=e("./is-buffer");n.deconstructPacket=function(e){function t(e){if(!e)return e;if(o(e)){var i={_placeholder:!0,num:n.length};return n.push(e),i}if(r(e)){for(var a=new Array(e.length),s=0;s<e.length;s++)a[s]=t(e[s]);return a}if("object"==typeof e&&!(e instanceof Date)){var a={};for(var u in e)a[u]=t(e[u]);return a}return e}var n=[],i=e.data,a=e;return a.data=t(i),a.attachments=n.length,{packet:a,buffers:n}},n.reconstructPacket=function(e,t){function n(e){if(e&&e._placeholder){var o=t[e.num];return o}if(r(e)){for(var i=0;i<e.length;i++)e[i]=n(e[i]);return e}if(e&&"object"==typeof e){for(var a in e)e[a]=n(e[a]);return e}return e}return e.data=n(e.data),e.attachments=void 0,e},n.removeBlobs=function(e,n){function i(e,u,c){if(!e)return e;if(t.Blob&&e instanceof Blob||t.File&&e instanceof File){a++;var l=new FileReader;l.onload=function(){c?c[u]=this.result:s=this.result,--a||n(s)},l.readAsArrayBuffer(e)}else if(r(e))for(var p=0;p<e.length;p++)i(e[p],p,e);else if(e&&"object"==typeof e&&!o(e))for(var f in e)i(e[f],f,e)}var a=0,s=e;i(s),a||n(s)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./is-buffer":248,isarray:249}],247:[function(e,t,n){function r(){}function o(e){var t="",r=!1;return t+=e.type,(n.BINARY_EVENT==e.type||n.BINARY_ACK==e.type)&&(t+=e.attachments,t+="-"),e.nsp&&"/"!=e.nsp&&(r=!0,t+=e.nsp),null!=e.id&&(r&&(t+=",",r=!1),t+=e.id),null!=e.data&&(r&&(t+=","),t+=p.stringify(e.data)),l("encoded %j as %s",e,t),t}function i(e,t){function n(e){var n=h.deconstructPacket(e),r=o(n.packet),i=n.buffers;i.unshift(r),t(i)}h.removeBlobs(e,n)}function a(){this.reconstructor=null}function s(e){var t={},r=0;if(t.type=Number(e.charAt(0)),null==n.types[t.type])return c();if(n.BINARY_EVENT==t.type||n.BINARY_ACK==t.type){for(var o="";"-"!=e.charAt(++r)&&(o+=e.charAt(r),r!=e.length););if(o!=Number(o)||"-"!=e.charAt(r))throw new Error("Illegal attachments");t.attachments=Number(o)}if("/"==e.charAt(r+1))for(t.nsp="";++r;){var i=e.charAt(r);if(","==i)break;if(t.nsp+=i,r==e.length)break}else t.nsp="/";var a=e.charAt(r+1);if(""!==a&&Number(a)==a){for(t.id="";++r;){var i=e.charAt(r);if(null==i||Number(i)!=i){--r;break}if(t.id+=e.charAt(r),r==e.length)break}t.id=Number(t.id)}if(e.charAt(++r))try{t.data=p.parse(e.substr(r))}catch(s){return c()}return l("decoded %s as %j",e,t),t}function u(e){this.reconPack=e,this.buffers=[]}function c(){return{type:n.ERROR,data:"parser error"}}var l=e("debug")("socket.io-parser"),p=e("json3"),f=(e("isarray"),e("component-emitter")),h=e("./binary"),d=e("./is-buffer");n.protocol=4,n.types=["CONNECT","DISCONNECT","EVENT","BINARY_EVENT","ACK","BINARY_ACK","ERROR"],n.CONNECT=0,n.DISCONNECT=1,n.EVENT=2,n.ACK=3,n.ERROR=4,n.BINARY_EVENT=5,n.BINARY_ACK=6,n.Encoder=r,n.Decoder=a,r.prototype.encode=function(e,t){if(l("encoding packet %j",e),n.BINARY_EVENT==e.type||n.BINARY_ACK==e.type)i(e,t);else{var r=o(e);t([r])}},f(a.prototype),a.prototype.add=function(e){var t;if("string"==typeof e)t=s(e),n.BINARY_EVENT==t.type||n.BINARY_ACK==t.type?(this.reconstructor=new u(t),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",t)):this.emit("decoded",t);else{if(!d(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,this.emit("decoded",t))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},u.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length==this.reconPack.attachments){var t=h.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},u.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},{"./binary":246,"./is-buffer":248,"component-emitter":210,debug:211,isarray:249,json3:250}],248:[function(e,t){(function(e){function n(t){return e.Buffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer}t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],249:[function(e,t,n){arguments[4][233][0].apply(n,arguments)},{dup:233}],250:[function(e,t,n){!function(e){function t(e){if(t[e]!==i)return t[e];var n;if("bug-string-char-index"==e)n="a"!="a"[0];else if("json"==e)n=t("json-stringify")&&t("json-parse");else{var r,o='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var s=c.stringify,u="function"==typeof s&&l;if(u){(r=function(){return 1}).toJSON=r;try{u="0"===s(0)&&"0"===s(new Number)&&'""'==s(new String)&&s(a)===i&&s(i)===i&&s()===i&&"1"===s(r)&&"[1]"==s([r])&&"[null]"==s([i])&&"null"==s(null)&&"[null,null,null]"==s([i,a,null])&&s({a:[r,!0,!1,null,"\x00\b\n\f\r "]})==o&&"1"===s(null,r)&&"[\n 1,\n 2\n]"==s([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==s(new Date(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==s(new Date(864e13))&&'"-000001-01-01T00:00:00.000Z"'==s(new Date(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==s(new Date(-1))}catch(p){u=!1}}n=u}if("json-parse"==e){var f=c.parse;if("function"==typeof f)try{if(0===f("0")&&!f(!1)){r=f(o);var h=5==r.a.length&&1===r.a[0];if(h){try{h=!f('" "')}catch(p){}if(h)try{h=1!==f("01")}catch(p){}if(h)try{h=1!==f("1.")}catch(p){}}}}catch(p){h=!1}n=h}}return t[e]=!!n}var r,o,i,a={}.toString,s="function"==typeof define&&define.amd,u="object"==typeof JSON&&JSON,c="object"==typeof n&&n&&!n.nodeType&&n;c&&u?(c.stringify=u.stringify,c.parse=u.parse):c=e.JSON=u||{};var l=new Date(-0xc782b5b800cec);try{l=-109252==l.getUTCFullYear()&&0===l.getUTCMonth()&&1===l.getUTCDate()&&10==l.getUTCHours()&&37==l.getUTCMinutes()&&6==l.getUTCSeconds()&&708==l.getUTCMilliseconds()}catch(p){}if(!t("json")){var f="[object Function]",h="[object Date]",d="[object Number]",v="[object String]",m="[object Array]",y="[object Boolean]",g=t("bug-string-char-index");if(!l)var _=Math.floor,b=[0,31,59,90,120,151,181,212,243,273,304,334],E=function(e,t){return b[t]+365*(e-1970)+_((e-1969+(t=+(t>1)))/4)-_((e-1901+t)/100)+_((e-1601+t)/400)};(r={}.hasOwnProperty)||(r=function(e){var t,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=a?r=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(t=n.constructor,r=function(e){var n=(this.constructor||t).prototype;return e in this&&!(e in n&&this[e]===n[e])}),n=null,r.call(this,e)});var w={"boolean":1,number:1,string:1,undefined:1},C=function(e,t){var n=typeof e[t];return"object"==n?!!e[t]:!w[n]};if(o=function(e,t){var n,i,s,u=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,i=new n;for(s in i)r.call(i,s)&&u++;return n=i=null,u?o=2==u?function(e,t){var n,o={},i=a.call(e)==f;for(n in e)i&&"prototype"==n||r.call(o,n)||!(o[n]=1)||!r.call(e,n)||t(n)}:function(e,t){var n,o,i=a.call(e)==f;for(n in e)i&&"prototype"==n||!r.call(e,n)||(o="constructor"===n)||t(n);(o||r.call(e,n="constructor"))&&t(n)}:(i=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],o=function(e,t){var n,o,s=a.call(e)==f,u=!s&&"function"!=typeof e.constructor&&C(e,"hasOwnProperty")?e.hasOwnProperty:r;for(n in e)s&&"prototype"==n||!u.call(e,n)||t(n);for(o=i.length;n=i[--o];u.call(e,n)&&t(n));}),o(e,t)},!t("json-stringify")){var R={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},O="000000",M=function(e,t){return(O+(t||0)).slice(-e)},x="\\u00",S=function(e){var t,n='"',r=0,o=e.length,i=o>10&&g;for(i&&(t=e.split(""));o>r;r++){var a=e.charCodeAt(r);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:n+=R[a];break;default:if(32>a){n+=x+M(2,a.toString(16));break}n+=i?t[r]:g?e.charAt(r):e[r]}}return n+'"'},T=function(e,t,n,s,u,c,l){var p,f,g,b,w,C,R,O,x,k,I,P,D,N,A,j;try{p=t[e]}catch(L){}if("object"==typeof p&&p)if(f=a.call(p),f!=h||r.call(p,"toJSON"))"function"==typeof p.toJSON&&(f!=d&&f!=v&&f!=m||r.call(p,"toJSON"))&&(p=p.toJSON(e));else if(p>-1/0&&1/0>p){if(E){for(w=_(p/864e5),g=_(w/365.2425)+1970-1;E(g+1,0)<=w;g++);for(b=_((w-E(g,0))/30.42);E(g,b+1)<=w;b++);w=1+w-E(g,b),C=(p%864e5+864e5)%864e5,R=_(C/36e5)%24,O=_(C/6e4)%60,x=_(C/1e3)%60,k=C%1e3}else g=p.getUTCFullYear(),b=p.getUTCMonth(),w=p.getUTCDate(),R=p.getUTCHours(),O=p.getUTCMinutes(),x=p.getUTCSeconds(),k=p.getUTCMilliseconds();p=(0>=g||g>=1e4?(0>g?"-":"+")+M(6,0>g?-g:g):M(4,g))+"-"+M(2,b+1)+"-"+M(2,w)+"T"+M(2,R)+":"+M(2,O)+":"+M(2,x)+"."+M(3,k)+"Z"}else p=null;if(n&&(p=n.call(t,e,p)),null===p)return"null";if(f=a.call(p),f==y)return""+p;if(f==d)return p>-1/0&&1/0>p?""+p:"null";if(f==v)return S(""+p);if("object"==typeof p){for(N=l.length;N--;)if(l[N]===p)throw TypeError();if(l.push(p),I=[],A=c,c+=u,f==m){for(D=0,N=p.length;N>D;D++)P=T(D,p,n,s,u,c,l),I.push(P===i?"null":P);j=I.length?u?"[\n"+c+I.join(",\n"+c)+"\n"+A+"]":"["+I.join(",")+"]":"[]"}else o(s||p,function(e){var t=T(e,p,n,s,u,c,l);t!==i&&I.push(S(e)+":"+(u?" ":"")+t)}),j=I.length?u?"{\n"+c+I.join(",\n"+c)+"\n"+A+"}":"{"+I.join(",")+"}":"{}";return l.pop(),j}};c.stringify=function(e,t,n){var r,o,i,s;if("function"==typeof t||"object"==typeof t&&t)if((s=a.call(t))==f)o=t;else if(s==m){i={};for(var u,c=0,l=t.length;l>c;u=t[c++],s=a.call(u),(s==v||s==d)&&(i[u]=1));}if(n)if((s=a.call(n))==d){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else s==v&&(r=n.length<=10?n:n.slice(0,10));return T("",(u={},u[""]=e,u),o,i,r,"",[])}}if(!t("json-parse")){var k,I,P=String.fromCharCode,D={92:"\\",34:'"',47:"/",98:"\b",116:" ",110:"\n",102:"\f",114:"\r"},N=function(){throw k=I=null,SyntaxError()},A=function(){for(var e,t,n,r,o,i=I,a=i.length;a>k;)switch(o=i.charCodeAt(k)){case 9:case 10:case 13:case 32:k++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=g?i.charAt(k):i[k],k++,e;case 34:for(e="@",k++;a>k;)if(o=i.charCodeAt(k),32>o)N();else if(92==o)switch(o=i.charCodeAt(++k)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=D[o],k++;break;case 117:for(t=++k,n=k+4;n>k;k++)o=i.charCodeAt(k),o>=48&&57>=o||o>=97&&102>=o||o>=65&&70>=o||N();e+=P("0x"+i.slice(t,k));break;default:N()}else{if(34==o)break;for(o=i.charCodeAt(k),t=k;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++k);e+=i.slice(t,k)}if(34==i.charCodeAt(k))return k++,e;N();default:if(t=k,45==o&&(r=!0,o=i.charCodeAt(++k)),o>=48&&57>=o){for(48==o&&(o=i.charCodeAt(k+1),o>=48&&57>=o)&&N(),r=!1;a>k&&(o=i.charCodeAt(k),o>=48&&57>=o);k++);if(46==i.charCodeAt(k)){for(n=++k;a>n&&(o=i.charCodeAt(n),o>=48&&57>=o);n++);n==k&&N(),k=n}if(o=i.charCodeAt(k),101==o||69==o){for(o=i.charCodeAt(++k),(43==o||45==o)&&k++,n=k;a>n&&(o=i.charCodeAt(n),o>=48&&57>=o);n++);n==k&&N(),k=n}return+i.slice(t,k)}if(r&&N(),"true"==i.slice(k,k+4))return k+=4,!0;if("false"==i.slice(k,k+5))return k+=5,!1;if("null"==i.slice(k,k+4))return k+=4,null;N()}return"$"},j=function(e){var t,n;if("$"==e&&N(),"string"==typeof e){if("@"==(g?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];e=A(),"]"!=e;n||(n=!0))n&&(","==e?(e=A(),"]"==e&&N()):N()),","==e&&N(),t.push(j(e));return t}if("{"==e){for(t={};e=A(),"}"!=e;n||(n=!0))n&&(","==e?(e=A(),"}"==e&&N()):N()),(","==e||"string"!=typeof e||"@"!=(g?e.charAt(0):e[0])||":"!=A())&&N(),t[e.slice(1)]=j(A());return t}N()}return e},L=function(e,t,n){var r=U(e,t,n);r===i?delete e[t]:e[t]=r},U=function(e,t,n){var r,i=e[t];if("object"==typeof i&&i)if(a.call(i)==m)for(r=i.length;r--;)L(i,r,n);else o(i,function(e){L(i,e,n)});return n.call(e,t,i)};c.parse=function(e,t){var n,r;return k=0,I=""+e,n=j(A()),"$"!=A()&&N(),k=I=null,t&&a.call(t)==f?U((r={},r[""]=n,r),"",t):n}}}s&&define(function(){return c})}(this)},{}],251:[function(e,t){function n(e,t){var n=[];t=t||0;for(var r=t||0;r<e.length;r++)n[r-t]=e[r];return n}t.exports=n},{}],252:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("../constants/ChatConstants")),o=n(e("../dispatcher/AppDispatcher")),i={toggleVisibility:function(){o.handleViewAction({actionType:r.TOGGLE_VISIBILITY})},submitMessage:function(e,t,n){o.handleViewAction({actionType:r.SUBMIT_MESSAGE,message:e,className:t,received:n})}};t.exports=i},{"../constants/ChatConstants":263,"../dispatcher/AppDispatcher":266}],253:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("../constants/GameConstants")),o=n(e("../dispatcher/AppDispatcher")),i={makeMove:function(e,t,n,i){o.handleViewAction({actionType:r.MAKE_MOVE,from:e,to:t,capture:n,emitMove:i})},rematch:function(){o.handleViewAction({actionType:r.REMATCH})},gameOver:function(e){o.handleViewAction({actionType:r.GAME_OVER,options:e})},changePromotion:function(e){o.handleViewAction({actionType:r.CHANGE_PROMOTION,promotion:e})}};t.exports=i},{"../constants/GameConstants":265,"../dispatcher/AppDispatcher":266}],254:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("react/addons")),o=n(e("../stores/GameStore")),i=n(e("../mixins/onGameChange")),a=r.createClass({displayName:"CapturedPieces",mixins:[r.addons.PureRenderMixin,i],getInitialState:function(){return{capturedPieces:o.getCapturedPieces()}},render:function(){var e=this.state.capturedPieces;return r.createElement("div",{id:"captured-pieces"},e.map(function(e,t){return r.createElement("ul",{key:t},e.map(function(e,t){return r.createElement("li",{key:t},e)}).toArray())}).toArray())},_onGameChange:function(){this.setState({capturedPieces:o.getCapturedPieces()})}});t.exports=a},{"../mixins/onGameChange":269,"../stores/GameStore":271,"react/addons":29}],255:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("react/addons")),o=n(e("../stores/ChatStore")),i=n(e("../actions/ChatActions")),a=r.createClass({displayName:"Chat",propTypes:{io:r.PropTypes.object.isRequired,token:r.PropTypes.string.isRequired,color:r.PropTypes.oneOf(["white","black"]).isRequired,soundsEnabled:r.PropTypes.bool.isRequired,isOpponentAvailable:r.PropTypes.bool.isRequired,openModal:r.PropTypes.func.isRequired},mixins:[r.addons.PureRenderMixin],getInitialState:function(){var e=o.getState();return{isChatHidden:e.isChatHidden,messages:e.messages,message:""}},componentDidMount:function(){var e=this;this.props.io.on("receive-message",function(t){i.submitMessage(t.message,t.color+" left",!0),e._maybePlaySound()}),o.on("change",this._onChatStoreChange),window.innerWidth>1399&&i.toggleVisibility()},componentWillUnmount:function(){o.off("change",this._onChatStoreChange)},render:function(){return r.createElement("div",{id:"chat-wrapper",className:this.state.isChatHidden?"hidden":null},r.createElement("h4",null,"Chat"),r.createElement("a",{className:"close",onClick:i.toggleVisibility},"x"),r.createElement("audio",{preload:"auto",ref:"msgSnd"},r.createElement("source",{src:"/snd/message.mp3"})),r.createElement("ul",{id:"chat-list",ref:"chat"},this.state.messages.map(function(e,t){return r.createElement("li",{key:t,className:e.get("className")},e.get("message"))}).toArray()),r.createElement("span",null,"Write your message:"),r.createElement("form",{id:"chat-form",onSubmit:this._submitMessage},r.createElement("input",{type:"text",ref:"message",className:this.props.color,required:!0,value:this.state.message,onChange:this._onChangeMessage})))},_onChatStoreChange:function(){this.setState(o.getState(),this._scrollChat)},_onChangeMessage:function(e){this.setState({message:e.target.value})},_submitMessage:function(e){e.preventDefault();var t=this.props,n=t.io,r=t.token,o=t.color,a=t.isOpponentAvailable,s=this.state.message;return a?(i.submitMessage(s,o+" right",!1),this.setState({message:""}),void n.emit("send-message",{message:s,color:o,token:r})):(this.refs.message.getDOMNode().blur(),void this.props.openModal("info","Sorry, your opponent is not connected. You can‘t send messages."))},_scrollChat:function(){var e=this.refs.chat.getDOMNode();e.scrollTop=e.scrollHeight},_maybePlaySound:function(){this.props.soundsEnabled&&this.refs.msgSnd.getDOMNode().play()}});t.exports=a},{"../actions/ChatActions":252,"../stores/ChatStore":270,"react/addons":29}],256:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(e("react/addons")),i=n(e("../stores/GameStore")),a=n(e("../actions/GameActions")),s=n(e("../constants/ChessPieces")),u=(n(e("../mixins/onGameChange")),n(e("../mixins/maybeReverse"))),c=n(e("lodash.omit")),l=n(e("classnames")),p=e("immutable"),f=p.Seq,h=p.Repeat,d=(p.List,p.Set),v=f.Indexed("abcdefgh"),m=f.Indexed("12345678"),y=o.createClass({displayName:"Chessboard",propTypes:{io:o.PropTypes.object.isRequired,token:o.PropTypes.string.isRequired,maybePlaySound:o.PropTypes.func.isRequired,color:o.PropTypes.oneOf(["white","black"]).isRequired,gameOver:o.PropTypes.bool.isRequired,isOpponentAvailable:o.PropTypes.bool.isRequired},mixins:[o.addons.PureRenderMixin,u],getInitialState:function(){var e=i.getChessboardState();return{fen:e.fen,moveFrom:null,lastMove:e.lastMove,kingInCheck:!1}},componentDidMount:function(){{var e=this,t=this.props,n=t.io;t.token}i.on("change",this._onGameChange),i.on("new-move",this._onNewMove),n.on("move",function(t){if(a.makeMove(t.from,t.to,t.capture,!1),e.props.maybePlaySound(),t.gameOver||e._runClock(),document.hidden){var n=document.getElementsByTagName("title")[0];n.text="* "+n.text,window.addEventListener("focus",e._removeAsteriskFromTitle)}}),n.on("rematch-accepted",function(){return e.setState({moveFrom:null})})},componentWillUnmount:function(){i.off("change",this._onGameChange),i.on("new-move",this._onNewMove)},render:function(){var e=this,t=this.props,n=t.color,r=t.isOpponentAvailable,a=t.gameOver,s=this.state,u=s.fen,c=s.moveFrom,l=s.lastMove,p=s.kingInCheck,f=u.split(" "),h=f[0],d=f[1]===n.charAt(0),v=this._maybeReverse(h.split("/")),y=this._maybeReverse(m,"white");
  12. return o.createElement("table",{className:"chessboard"},v.map(function(t,s){return o.createElement(g,{key:s,rank:y.get(s),placement:t,color:n,isMoveable:d&&r&&!a,moveFrom:c,lastMove:l,setMoveFrom:e._setMoveFrom,kingInCheck:p,validMoves:i.getValidMoves(c)})}))},_onGameChange:function(e){var t=i.getChessboardState();this.setState({fen:t.fen,lastMove:t.lastMove,kingInCheck:t.check&&("w"===t.fen.split(" ")[1]?"K":"k")},e)},_setMoveFrom:function(e){this.setState({moveFrom:e})},_onNewMove:function(e){var t=this.props,n=t.io,r=t.token;n.emit("new-move",{token:r,move:e}),setTimeout(this.props.maybePlaySound,0)},_runClock:function(){var e=this.props,t=e.io,n=e.token,r=e.color;t.emit("clock-run",{token:n,color:r})},_removeAsteriskFromTitle:function(){var e=document.getElementsByTagName("title")[0];e.text=e.text.replace("* ",""),window.removeEventListener("focus",this._removeAsteriskFromTitle)}}),g=o.createClass({displayName:"Row",propTypes:{rank:o.PropTypes.oneOf(["1","2","3","4","5","6","7","8"]).isRequired,placement:o.PropTypes.string.isRequired,color:o.PropTypes.oneOf(["white","black"]).isRequired,isMoveable:o.PropTypes.bool.isRequired,moveFrom:o.PropTypes.string,lastMove:o.PropTypes.object,setMoveFrom:o.PropTypes.func.isRequired,kingInCheck:o.PropTypes.oneOf([!1,"K","k"]).isRequired,validMoves:o.PropTypes.instanceOf(d).isRequired},mixins:[u],render:function(){var e=this,t=this.props,n=t.rank,i=t.placement,a=(t.color,this._maybeReverse(v)),s=this._maybeReverse(i.length<8?f(i).flatMap(function(e){return/^\d$/.test(e)?h("-",parseInt(e,10)):e}).toArray():i.split(""));return o.createElement("tr",null,s.map(function(t,i){return o.createElement(_,r({key:i,square:a.get(i)+n,piece:t},c(e.props,"rank","placement")))}))}}),_=o.createClass({displayName:"Column",propTypes:{square:o.PropTypes.string.isRequired,piece:o.PropTypes.string.isRequired,color:o.PropTypes.oneOf(["white","black"]).isRequired,isMoveable:o.PropTypes.bool.isRequired,moveFrom:o.PropTypes.string,lastMove:o.PropTypes.object,setMoveFrom:o.PropTypes.func.isRequired,kingInCheck:o.PropTypes.oneOf([!1,"K","k"]).isRequired,validMoves:o.PropTypes.instanceOf(d).isRequired},render:function(){var e=this.props,t=e.moveFrom,n=e.lastMove,r=e.square,i=e.color,a=e.isMoveable,u=e.kingInCheck,c=e.validMoves,p=s[this.props.piece],f="white"===i?/^[KQRBNP]$/:/^[kqrbnp]$/,h=f.test(this.props.piece),d=t&&c.has(r);return o.createElement("td",{className:l({selected:t===r&&!c.isEmpty(),from:n.get("from")===r,to:n.get("to")===r,droppable:d}),onClick:p?null:this._onClickSquare,onDragOver:d?this._onDragOver:null,onDrop:d?this._onDrop:null},p?o.createElement("a",{className:u===this.props.piece?"in-check":null,onClick:this._onClickSquare,onDragStart:this._onDragStart,draggable:h&&a},p):null)},_onClickSquare:function(){var e=this.props,t=e.isMoveable,n=e.color,r=e.moveFrom,o=e.square,i=e.piece,u="white"===n?/^[KQRBNP]$/:/^[kqrbnp]$/;t&&(r||u.test(i))&&(r&&r===o?this.props.setMoveFrom(null):u.test(i)?this.props.setMoveFrom(o):a.makeMove(r,o,s[i],!0))},_onDragStart:function(e){e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",""),this.props.setMoveFrom(this.props.square)},_onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},_onDrop:function(e){e.preventDefault();var t=this.props,n=t.moveFrom,r=t.square,o=t.piece;a.makeMove(n,r,s[o],!0)}});t.exports=y},{"../actions/GameActions":253,"../constants/ChessPieces":264,"../mixins/maybeReverse":268,"../mixins/onGameChange":269,"../stores/GameStore":271,classnames:4,immutable:10,"lodash.omit":11,"react/addons":29}],257:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(e("react/addons")),i=n(e("../stores/GameStore")),a=n(e("../actions/GameActions")),s=n(e("../mixins/onGameChange")),u=n(e("./Chessboard")),c=n(e("./CapturedPieces")),l=n(e("./TableOfMoves")),p=n(e("lodash.omit")),f=o.createClass({displayName:"ChessboardInterface",propTypes:{io:o.PropTypes.object.isRequired,token:o.PropTypes.string.isRequired,soundsEnabled:o.PropTypes.bool.isRequired,color:o.PropTypes.oneOf(["white","black"]).isRequired,gameOver:o.PropTypes.object.isRequired,isOpponentAvailable:o.PropTypes.bool.isRequired},mixins:[o.addons.PureRenderMixin,s],getInitialState:function(){return i.getState()},componentDidUpdate:function(e){this.props.gameOver.get("status")&&!e.gameOver.get("status")&&this.props.openModal("info",this._getGameOverMessage())},render:function(){var e=this.state,t=e.promotion,n=e.turn,i=e.gameOver,a=e.check;return o.createElement("div",{id:"board-moves-wrapper",className:"clearfix"},o.createElement("audio",{preload:"auto",ref:"moveSnd"},o.createElement("source",{src:"/snd/move.mp3"})),o.createElement("audio",{preload:"auto",ref:"checkSnd"},o.createElement("source",{src:"/snd/check.mp3"})),o.createElement("div",{id:"board-wrapper"},o.createElement(c,null),o.createElement(u,r({},p(this.props,"soundsEnabled","gameOver"),{gameOver:i.get("status"),maybePlaySound:this._maybePlaySound}))),o.createElement(l,null),o.createElement("span",{className:"promotion"},o.createElement("label",null,o.createElement("span",null,"Promotion: "),o.createElement("select",{value:t,onChange:this._onPromotionChange},o.createElement("option",{value:"q"},"Queen"),o.createElement("option",{value:"r"},"Rook"),o.createElement("option",{value:"b"},"Bishop"),o.createElement("option",{value:"n"},"Knight")))),o.createElement("span",{className:"feedback"},i.get("status")?o.createElement("strong",null,o.createElement("span",{className:"icon"},"White"===i.get("winner")?"F":"f"),this._getGameOverMessage()):o.createElement("span",null,o.createElement("span",{className:"icon"},"w"===n?"F":"f"),""+("w"===n?"White":"Black")+" to move.",a?o.createElement("strong",null," Check."):null)))},_onGameChange:function(){this.setState(i.getState())},_onPromotionChange:function(e){a.changePromotion(e.target.value)},_maybePlaySound:function(){this.props.soundsEnabled&&this.refs[this.state.check?"checkSnd":"moveSnd"].getDOMNode().play()},_getGameOverMessage:function(){var e=this.props.gameOver.get("type"),t=this.props.gameOver.get("winner"),n="White"===t?"Black":"White";return"checkmate"===e?"Checkmate. "+t+" wins!":"timeout"===e?""+n+"‘s time is out. "+t+" wins!":"resign"===e?""+n+" has resigned. "+t+" wins!":"draw"===e?"Draw.":"stalemate"===e?"Draw (Stalemate).":"threefoldRepetition"===e?"Draw (Threefold Repetition).":"insufficientMaterial"===e?"Draw (Insufficient Material)":""}});t.exports=f},{"../actions/GameActions":253,"../mixins/onGameChange":269,"../stores/GameStore":271,"./CapturedPieces":254,"./Chessboard":256,"./TableOfMoves":262,"lodash.omit":11,"react/addons":29}],258:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var n,r=[],o=e[Symbol.iterator]();!(n=o.next()).done&&(r.push(n.value),!t||r.length!==t););return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0})},i=n(e("react/addons")),a=n(e("../actions/GameActions")),s=i.addons.PureRenderMixin,u=i.createClass({displayName:"Clock",propTypes:{io:i.PropTypes.object.isRequired,params:i.PropTypes.array.isRequired},mixins:[s],getInitialState:function(){var e=r(this.props.params,3),t=(e[0],e[1]),n=e[2];return{white:60*t,black:60*t,inc:n,countdown:null}},componentDidMount:function(){var e=this,t=this.props.io;t.on("countdown",function(t){return e.setState(function(){var e={};return o(e,t.color,t.time),o(e,"countdown",t.color),e}())}),t.on("countdown-gameover",function(t){e.setState({countdown:null}),a.gameOver({type:"timeout",winner:"black"===t.color?"White":"Black"})}),t.on("rematch-accepted",function(){e.setState({white:60*e.props.params[1],black:60*e.props.params[1]})})},render:function(){return i.createElement("ul",{id:"clock"},i.createElement(c,{color:"white",time:this.state.white,countdown:this.state.countdown}),i.createElement(c,{color:"black",time:this.state.black,countdown:this.state.countdown}))}}),c=i.createClass({displayName:"Timer",mixins:[s],render:function(){var e=this.props,t=e.time,n=e.color,r=e.countdown,o=Math.floor(t/60),a=t%60,s=""+o+":"+(10>a?"0"+a:a);return i.createElement("li",{className:n+(n===r?" ticking":"")},s)}});t.exports=u},{"../actions/GameActions":253,"react/addons":29}],259:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("react/addons")),o=n(e("./Clock")),i=n(e("../stores/ChatStore")),a=n(e("../actions/ChatActions")),s=n(e("lodash.omit")),u=r.createClass({displayName:"GameHeader",propTypes:{io:r.PropTypes.object.isRequired,params:r.PropTypes.array.isRequired,color:r.PropTypes.oneOf(["white","black"]).isRequired,openModal:r.PropTypes.func.isRequired,gameOver:r.PropTypes.bool.isRequired,isOpponentAvailable:r.PropTypes.bool.isRequired},mixins:[r.addons.PureRenderMixin],getInitialState:function(){return s(i.getState(),"messages")},componentDidMount:function(){i.on("change",this._onChatChange)},componentWillUnmount:function(){i.off("change",this._onChatChange)},render:function(){var e=this.props,t=e.io,n=e.params,i=e.gameOver,s=e.isOpponentAvailable,u=this.state.unseenCount;return r.createElement("header",{className:"clearfix"},r.createElement(o,{io:t,params:n}),r.createElement("span",{id:"game-type"},""+n[1]+"|"+n[2]),r.createElement("a",{className:"btn",href:"/"},"New game"),!i&&s?r.createElement("a",{className:"btn btn--red resign",onClick:this._onResign},"Resign"):i?r.createElement("a",{className:"btn btn--red rematch",onClick:this._onRematch},"Rematch"):null,r.createElement("a",{id:"chat-icon",onClick:a.toggleVisibility},u?r.createElement("span",{id:"chat-counter"},9>u?u:"9+"):null,r.createElement("img",{src:"/img/chat.svg",width:"50",height:"50"}),"Chat"))},_onChatChange:function(){this.setState(s(i.getState(),"messages"))},_onResign:function(){var e=this.props,t=e.io,n=e.params,r=e.color;t.emit("resign",{token:n[0],color:r})},_onRematch:function(){var e=this.props,t=e.io,n=e.params,r=e.openModal,o=e.isOpponentAvailable;return o?(t.emit("rematch-offer",{token:n[0]}),void r("info","Your offer has been sent.")):void r("info","Your opponent has disconnected. You need to generate a new link.")}});t.exports=u},{"../actions/ChatActions":252,"../stores/ChatStore":270,"./Clock":258,"lodash.omit":11,"react/addons":29}],260:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(e("react/addons")),i=n(e("./GameHeader")),a=n(e("./Chat")),s=n(e("./Modal")),u=n(e("../actions/GameActions")),c=n(e("../stores/GameStore")),l=n(e("./ChessboardInterface")),p=e("immutable").Map,f=o.createClass({displayName:"GameInterface",propTypes:{io:o.PropTypes.object.isRequired,params:o.PropTypes.array.isRequired},getInitialState:function(){return{isOpponentAvailable:!1,color:"white",modal:p({open:!1,message:"",type:"info",callbacks:{hide:this._hideModal,accept:this._acceptRematch,decline:this._declineRematch}}),soundsEnabled:!1,gameOver:c.getState().gameOver}},componentDidMount:function(){var e=this,t=this.props,n=t.io,r=t.params;n.on("token-invalid",function(){return e.setState({modal:e.state.modal.set("open",!0).set("message","Game link is invalid or has expired.").set("type","info")})}),n.emit("join",{token:r[0],time:60*r[1],inc:r[2]}),n.on("joined",function(t){"black"===t.color&&e.setState({color:"black"})}),n.on("both-joined",function(){return e.setState({isOpponentAvailable:!0},function(){"white"===e.state.color&&n.emit("clock-run",{token:r[0],color:"white"})})}),n.on("full",function(){window.alert("This game already has two players. You have to create a new one."),window.location="/"}),n.on("player-resigned",function(e){u.gameOver({type:"resign",winner:"black"===e.color?"White":"Black"})}),n.on("rematch-offered",function(){return e._openModal("offer","Your opponent has sent you a rematch offer.")}),n.on("rematch-declined",function(){return e._openModal("info","Rematch offer has been declined.")}),n.on("rematch-accepted",function(){u.rematch(),e.setState({color:"white"===e.state.color?"black":"white",modal:e.state.modal.set("open",!1)},function(){"white"===e.state.color&&n.emit("clock-run",{token:e.props.params[0],color:"white"})})}),n.on("opponent-disconnected",function(){e.state.gameOver.get("status")||e._openModal("info","Your opponent has disconnected."),e.setState({isOpponentAvailable:!1})}),c.on("change",this._onGameChange)},componentWillUnmount:function(){c.off("change",this._onGameChange)},render:function(){var e=this.props,t=e.io,n=e.params,u=this.state,c=u.color,p=u.soundsEnabled,f=u.gameOver,h=u.isOpponentAvailable,d={io:t,color:c,openModal:this._openModal,isOpponentAvailable:h};return o.createElement("div",null,o.createElement(i,r({},d,{params:n,gameOver:f.get("status")})),o.createElement("label",{id:"sounds-label"},o.createElement("input",{type:"checkbox",checked:p,onChange:this._toggleSounds}),o.createElement("span",null," Enable sounds")),o.createElement(a,r({},d,{token:n[0],soundsEnabled:p})),o.createElement(l,r({},d,{token:n[0],soundsEnabled:p,gameOver:f})),o.createElement(s,{data:this.state.modal}))},_onGameChange:function(){this.setState({gameOver:c.getState().gameOver})},_openModal:function(e,t){this.setState({modal:this.state.modal.set("open",!0).set("message",t).set("type",e)})},_hideModal:function(){this.setState({modal:this.state.modal.set("open",!1)})},_acceptRematch:function(){var e=this.props,t=e.io,n=e.params;t.emit("rematch-accept",{token:n[0],time:60*n[1],inc:n[2]}),this._hideModal()},_declineRematch:function(){var e=this.props,t=e.io,n=e.params;t.emit("rematch-decline",{token:n[0]}),this._hideModal()},_toggleSounds:function(){this.setState({soundsEnabled:!this.state.soundsEnabled})}});t.exports=f},{"../actions/GameActions":253,"../stores/GameStore":271,"./Chat":255,"./ChessboardInterface":257,"./GameHeader":259,"./Modal":261,immutable:10,"react/addons":29}],261:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("react/addons")),o=n(e("classnames")),i=r.createClass({displayName:"Modal",propTypes:{data:r.PropTypes.object.isRequired},mixins:[r.addons.PureRenderMixin],componentDidUpdate:function(){var e=this.props.data.get("open");e?document.addEventListener("keydown",this._onKeydown):document.removeEventListener("keydown",this._onKeydown)},render:function(){var e=this.props.data,t=e.get("type"),n=e.get("callbacks");return r.createElement("div",{className:o({"modal-mask":!0,hidden:!e.get("open")}),onClick:this._hideModal},r.createElement("p",null,r.createElement("strong",null,"Esc: "),r.createElement("span",null,"info"===t?"OK":"Decline"),r.createElement("br",null),r.createElement("strong",null,"Enter: "),r.createElement("span",null,"info"===t?"OK":"Accept")),r.createElement("div",{className:"modal",onClick:function(e){return e.stopPropagation()}},r.createElement("p",null,e.get("message")),"info"===t?r.createElement("a",{className:"btn ok",onClick:n.hide},"OK"):[r.createElement("a",{key:"a",className:"btn",style:{left:"4em"},onClick:n.accept},"Accept"),r.createElement("a",{key:"b",className:"btn btn--red",style:{right:"4em"},onClick:n.decline},"Decline")]))},_onKeydown:function(e){var t=this.props.data.get("type"),n=this.props.data.get("callbacks");"info"===t?(13===e.which||27===e.which)&&n.hide():"offer"===t&&(13===e.which?n.accept():27===e.which&&n.decline())},_hideModal:function(){this.props.data.get("callbacks").hide()}});t.exports=i},{classnames:4,"react/addons":29}],262:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("react/addons")),o=n(e("../stores/GameStore")),i=n(e("../mixins/onGameChange")),a=r.createClass({displayName:"TableOfMoves",mixins:[r.addons.PureRenderMixin,i],getInitialState:function(){return{moves:o.getMoves()}},render:function(){return r.createElement("table",{id:"moves",className:"clearfix"},r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",null,"Table of moves"))),r.createElement("tbody",null,this.state.moves.map(function(e,t){return r.createElement("tr",{key:t},r.createElement("td",null,r.createElement("strong",null,""+(t+1)+".")),e.map(function(e,t){return r.createElement("td",{key:t},r.createElement("span",null,e))}).toArray())}).toArray()))},_onGameChange:function(){this.setState({moves:o.getMoves()})}});t.exports=a},{"../mixins/onGameChange":269,"../stores/GameStore":271,"react/addons":29}],263:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("react/lib/keyMirror"));t.exports=r({TOGGLE_VISIBILITY:null,SUBMIT_MESSAGE:null})},{"react/lib/keyMirror":185}],264:[function(e,t){"use strict";var n={K:"F",Q:"E",R:"D",B:"C",N:"B",P:"A",k:"f",q:"e",r:"d",b:"c",n:"b",p:"a","-":void 0};t.exports=n},{}],265:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("react/lib/keyMirror"));t.exports=r({MAKE_MOVE:null,REMATCH:null,GAME_OVER:null,CHANGE_PROMOTION:null})},{"react/lib/keyMirror":185}],266:[function(e,t){"use strict";var n=e("flux").Dispatcher;t.exports=Object.assign(new n,{handleViewAction:function(e){this.dispatch({source:"VIEW_ACTION",action:e})}})},{flux:7}],267:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("socket.io-client")),o="http://localhost:3000",i=o;t.exports=r.connect(i)},{"socket.io-client":202}],268:[function(e,t){"use strict";var n={_maybeReverse:function(e,t){return this.props.color===(t||"black")?e.reverse():e}};t.exports=n},{}],269:[function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},r=n(e("../stores/GameStore")),o={componentDidMount:function(){r.on("change",this._onGameChange)},componentWillUnmount:function(){r.off("change",this._onGameChange)}};t.exports=o},{"../stores/GameStore":271}],270:[function(e,t){"use strict";function n(){d=!d,h=0}function r(e,t,n){f=f.push(l({message:e,className:t})),n&&d&&(h+=1)}var o=function(e){return e&&e.__esModule?e["default"]:e},i=o(e("../dispatcher/AppDispatcher")),a=e("eventemitter2").EventEmitter2,s=o(e("../constants/ChatConstants")),u=e("immutable"),c=u.List,l=u.Map,p="change",f=c(),h=0,d=!0,v=Object.assign({},a.prototype,{getState:function(){return{messages:f,unseenCount:h,isChatHidden:d}}});i.register(function(e){var t=e.action;switch(t.actionType){case s.TOGGLE_VISIBILITY:n();break;case s.SUBMIT_MESSAGE:r(t.message,t.className,t.received);break;default:return!0}return v.emit(p),!0}),t.exports=v},{"../constants/ChatConstants":263,"../dispatcher/AppDispatcher":266,eventemitter2:6,immutable:10}],271:[function(e,t){"use strict";function n(){i=E({status:!1,type:null,winner:null}),a=w([["w",b()],["b",b()]]),s=b(),u="q",c="w",l=!1,p=E(),f=new g}function r(e,t,n,r){var i=f.move({from:e,to:t,promotion:u});if(!i)return!1;if(c=f.turn(),l=f.in_check(),p=p.set("from",e).set("to",t),s=s.isEmpty()||2===s.last().size?s.push(b([i.san])):s.update(s.size-1,function(e){return e.push(i.san)}),(n||"e"===i.flags)&&!function(){var e=n||y["w"===c?"P":"p"];a=a.update(c,function(t){return t.push(e)})}(),f.game_over()){var h=f.in_checkmate()?"checkmate":f.in_stalemate()?"stalemate":f.in_threefold_repetition()?"threefoldRepetition":f.insufficient_material()?"insufficientMaterial":f.in_draw()?"draw":null;o({winner:"b"===c?"White":"Black",type:h})}return r&&M.emit(O,{from:e,to:t,capture:n,gameOver:f.game_over()}),!0}function o(e){i=i.set("status",!0).set("winner",e.winner).set("type",e.type)}var i,a,s,u,c,l,p,f,h=function(e){return e&&e.__esModule?e["default"]:e},d=h(e("../dispatcher/AppDispatcher")),v=e("eventemitter2").EventEmitter2,m=h(e("../constants/GameConstants")),y=h(e("../constants/ChessPieces")),g=e("chess.js").Chess,_=e("immutable"),b=_.List,E=_.Map,w=_.OrderedMap,C=_.Set,R="change",O="new-move";n();var M=Object.assign({},v.prototype,{getState:function(){return{gameOver:i,promotion:u,turn:c,check:l}},getCapturedPieces:function(){return a},getMoves:function(){return s},getChessboardState:function(){return{fen:f.fen(),lastMove:p,check:l}},getValidMoves:function(e){return e?C(f.moves({square:e,verbose:!0}).map(function(e){return e.to})):C()}});d.register(function(e){var t=e.action,i=!0;switch(t.actionType){case m.MAKE_MOVE:i=r(t.from,t.to,t.capture,t.emitMove);break;case m.CHANGE_PROMOTION:u=t.promotion;break;case m.GAME_OVER:o(t.options);break;case m.REMATCH:n();break;default:return!0}return i&&M.emit(R),!0}),t.exports=M},{"../constants/ChessPieces":264,"../constants/GameConstants":265,"../dispatcher/AppDispatcher":266,"chess.js":3,eventemitter2:6,immutable:10}]},{},[1]);