From 6e1758e0017a6455fab9a1486809ae08b52777bf Mon Sep 17 00:00:00 2001 From: Jane Adelmann Date: Wed, 30 Jan 2019 19:39:47 +0200 Subject: [PATCH] External report and version v2.1 --- ...white-4ae10676b15e573d5f4ba85e13352ffb.svg | 172 --- assets/viewer/public-report.bundle.min.js | 3 - assets/viewer/public-report.min.css | 1217 ----------------- ...prite-629f3f2022a6e5fc28f69395449a59a3.svg | 1 - .../wave-dc15a25d325f6e422665aaea4eee9834.svg | 42 - ...ve-qu-8ff3a7579823f9099d975ad581dc134e.svg | 42 - ...ve-rf-d7c35952140e971b52a5fbb5b5acf36d.svg | 42 - classes/plagiarism_pchkorg_api_provider.php | 18 +- lib.php | 4 +- page/report.php | 11 +- version.php | 4 +- view/report.php | 31 +- 12 files changed, 21 insertions(+), 1566 deletions(-) delete mode 100644 assets/viewer/logo-on-white-4ae10676b15e573d5f4ba85e13352ffb.svg delete mode 100644 assets/viewer/public-report.bundle.min.js delete mode 100644 assets/viewer/public-report.min.css delete mode 100644 assets/viewer/sprite-629f3f2022a6e5fc28f69395449a59a3.svg delete mode 100644 assets/viewer/wave-dc15a25d325f6e422665aaea4eee9834.svg delete mode 100644 assets/viewer/wave-qu-8ff3a7579823f9099d975ad581dc134e.svg delete mode 100644 assets/viewer/wave-rf-d7c35952140e971b52a5fbb5b5acf36d.svg diff --git a/assets/viewer/logo-on-white-4ae10676b15e573d5f4ba85e13352ffb.svg b/assets/viewer/logo-on-white-4ae10676b15e573d5f4ba85e13352ffb.svg deleted file mode 100644 index f144532..0000000 --- a/assets/viewer/logo-on-white-4ae10676b15e573d5f4ba85e13352ffb.svg +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/assets/viewer/public-report.bundle.min.js b/assets/viewer/public-report.bundle.min.js deleted file mode 100644 index b0fecfc..0000000 --- a/assets/viewer/public-report.bundle.min.js +++ /dev/null @@ -1,3 +0,0 @@ -/* eslint-disable */ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=354)}([function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,u],p=0;c=new Error(t.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,u],p=0;c=new Error(t.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,u],p=0;c=new Error(t.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r1||!r.part&&!p[O])return!1;return(!r.only||!l)&&x},t.flatten=function(e,n){for(var r=n||[],o=0;o1?n-1:0),o=1;o\?@\[\]\^`\{\|\}~\"\\]*$/.test(e),"Bad attribute value ("+e+")"),e.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')},t.escapeHtml=function(e){return u.escapeHtml(e)},t.escapeJavaScript=function(e){return u.escapeJavaScript(e)},t.escapeJson=function(e){return u.escapeJson(e)},t.once=function(e){if(e._hoekOnce)return e;var t=!1,n=function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),o=0;o1;)h=f.shift(),m[h]||(m[h]={}),m=m[h];h=f.shift(),m[h]=t.reach(e,d,r)}return u},t.uniqueFilename=function(e,t){t=t?"."!==t[0]?"."+t:t:"",e=a.resolve(e);var n=[Date.now(),r.pid,i.randomBytes(8).toString("hex")].join("-")+t;return a.join(e,n)},t.stringify=function(){try{for(var e=arguments.length,t=Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:this._flags;return c.create(e,t,n,r,o)},e.prototype.createOverrideError=function(e,t,n,r,o,i){return c.create(e,t,n,r,this._flags,o,i)},e.prototype.checkOptions=function(e){var t=n(18),r=t.options.validate(e);if(r.error)throw new Error(r.error.details[0].message)},e.prototype.clone=function(){var e=Object.create(Object.getPrototypeOf(this));e.isJoi=!0,e._currentJoi=this._currentJoi,e._type=this._type,e._settings=f.concatSettings(this._settings),e._baseType=this._baseType,e._valids=s.clone(this._valids),e._invalids=s.clone(this._invalids),e._tests=this._tests.slice(),e._refs=this._refs.slice(),e._flags=s.clone(this._flags),e._description=this._description,e._unit=this._unit,e._notes=this._notes.slice(),e._tags=this._tags.slice(),e._examples=this._examples.slice(),e._meta=this._meta.slice(),e._inner={};for(var t=Object.keys(this._inner),n=0;n=0?p[d[v]]={key:v,schema:p[d[v]].schema.concat(l[m].schema)}:p.push(l[m])}}else t._inner[c]=t._inner[c].concat(l);else t._inner[c]=l.slice()}}return t},e.prototype._test=function(e,t,n,r){var o=this.clone();return o._tests.push({func:n,name:e,arg:t,options:r}),o},e.prototype.options=function(e){s.assert(!e.context,"Cannot override context"),this.checkOptions(e);var t=this.clone();return t._settings=f.concatSettings(t._settings,e),t},e.prototype.strict=function(e){var t=this.clone();return t._settings=t._settings||{},t._settings.convert=void 0!==e&&!e,t},e.prototype.raw=function(e){var t=void 0===e||e;if(this._flags.raw===t)return this;var n=this.clone();return n._flags.raw=t,n},e.prototype.error=function(e){s.assert(e&&(e instanceof Error||"function"==typeof e),"Must provide a valid Error object or a function");var t=this.clone();return t._flags.error=e,t},e.prototype.allow=function(){for(var e=arguments.length,t=Array(e),n=0;n0,"description must be provided when default value is a function"));var n=this.clone();return n._flags.default=e,u.push(n._refs,e),n},e.prototype.empty=function(e){var t=this.clone();return void 0===e?delete t._flags.empty:t._flags.empty=p.schema(this._currentJoi,e),t},e.prototype.when=function(e,t){s.assert(t&&"object"===(void 0===t?"undefined":i(t)),"Invalid options"),s.assert(void 0!==t.then||void 0!==t.otherwise,'options must have at least one of "then" or "otherwise"');var r=t.hasOwnProperty("then")?this.concat(p.schema(this._currentJoi,t.then)):void 0,o=t.hasOwnProperty("otherwise")?this.concat(p.schema(this._currentJoi,t.otherwise)):void 0;l=l||n(10);var a={then:r,otherwise:o};Object.prototype.hasOwnProperty.call(t,"is")&&(a.is=t.is);var u=l.when(e,a);return u._flags.presence="ignore",u._baseType=this,u},e.prototype.description=function(e){s.assert(e&&"string"==typeof e,"Description must be a non-empty string");var t=this.clone();return t._description=e,t},e.prototype.notes=function(e){s.assert(e&&("string"==typeof e||Array.isArray(e)),"Notes must be a non-empty string or array");var t=this.clone();return t._notes=t._notes.concat(e),t},e.prototype.tags=function(e){s.assert(e&&("string"==typeof e||Array.isArray(e)),"Tags must be a non-empty string or array");var t=this.clone();return t._tags=t._tags.concat(e),t},e.prototype.meta=function(e){s.assert(void 0!==e,"Meta cannot be undefined");var t=this.clone();return t._meta=t._meta.concat(e),t},e.prototype.example=function(){s.assert(1===arguments.length,"Missing example");var e=arguments.length<=0?void 0:arguments[0],t=this._validate(e,null,f.defaults);s.assert(!t.errors,"Bad example:",t.errors&&c.process(t.errors,e));var n=this.clone();return n._examples.push(e),n},e.prototype.unit=function(e){s.assert(e&&"string"==typeof e,"Unit name must be a non-empty string");var t=this.clone();return t._unit=e,t},e.prototype._prepareEmptyValue=function(e){return"string"==typeof e&&this._flags.trim?e.trim():e},e.prototype._validate=function(e,t,n,r){var o=this,i=e;t=t||{key:"",path:[],parent:null,reference:r},this._settings&&(n=f.concatSettings(n,this._settings));var a=[],l=function(){var r=void 0;if(void 0!==e)r=o._flags.raw?i:e;else if(n.noDefaults)r=e;else if(u.isRef(o._flags.default))r=o._flags.default(t.parent,n);else if("function"!=typeof o._flags.default||o._flags.func&&!o._flags.default.description)r=s.clone(o._flags.default);else{var c=void 0;null!==t.parent&&o._flags.default.length>0&&(c=[s.clone(t.parent),n]);var l=f._try(o._flags.default,c);r=l.value,l.error&&a.push(o.createError("any.default",{error:l.error},t,n))}if(a.length&&"function"==typeof o._flags.error){var p=o._flags.error.call(o,a);a="string"==typeof p?[o.createOverrideError("override",{reason:a},t,n,p)]:[].concat(p).map(function(e){return e instanceof Error?e:o.createOverrideError(e.type||"override",e.context,t,n,e.message,e.template)})}return{value:o._flags.strip?void 0:r,finalValue:r,errors:a.length?a:null}};if(this._coerce){var p=this._coerce.call(this,e,t,n);if(p.errors)return e=p.value,a=a.concat(p.errors),l();e=p.value}this._flags.empty&&!this._flags.empty._validate(this._prepareEmptyValue(e),null,f.defaults).errors&&(e=void 0);var d=this._flags.presence||n.presence;if("optional"===d){if(void 0===e){var h=this._flags.hasOwnProperty("default")&&void 0===this._flags.default;if(!h||"object"!==this._type)return l();e={}}}else{if("required"===d&&void 0===e)return a.push(this.createError("any.required",null,t,n)),l();if("forbidden"===d)return void 0===e?l():(a.push(this.createError("any.unknown",null,t,n)),l())}if(this._valids.has(e,t,n,this._flags.insensitive))return l();if(this._invalids.has(e,t,n,this._flags.insensitive)&&(a.push(this.createError(""===e?"any.empty":"any.invalid",null,t,n)),n.abortEarly||void 0===e))return l();if(this._base){var m=this._base.call(this,e,t,n);if(m.errors)return e=m.value,a=a.concat(m.errors),l();if(m.value!==e){if(e=m.value,this._valids.has(e,t,n,this._flags.insensitive))return l();if(this._invalids.has(e,t,n,this._flags.insensitive)&&(a.push(this.createError(""===e?"any.empty":"any.invalid",null,t,n)),n.abortEarly))return l()}}if(this._flags.allowOnly&&(a.push(this.createError("any.allowOnly",{valids:this._valids.values({stripUndefined:!0})},t,n)),n.abortEarly))return l();for(var v=0;v=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),i.alloc(+e)}function v(e,t){if(i.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,o);if("number"==typeof t)return t&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,o){function i(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}var c;if(o){var l=-1;for(c=n;cs&&(n=s-u),c=n;c>=0;c--){for(var p=!0,f=0;fo&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+s<=n){var u,c,l,p;switch(s){case 1:i<128&&(a=i);break;case 2:u=e[o+1],128==(192&u)&&(p=(31&i)<<6|63&u)>127&&(a=p);break;case 3:u=e[o+1],c=e[o+2],128==(192&u)&&128==(192&c)&&(p=(15&i)<<12|(63&u)<<6|63&c)>2047&&(p<55296||p>57343)&&(a=p);break;case 4:u=e[o+1],c=e[o+2],l=e[o+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(p=(15&i)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&p<1114112&&(a=p)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return P(r)}function P(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,o,a){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function F(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return o||F(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||F(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,n,r,52,8),n+8}function H(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function $(e){return X.toByteArray(H(e))}function K(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function G(e){return e!==e}var X=n(30),J=n(31),Q=n(32);t.Buffer=i,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,t,n){return a(null,e,t,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,t,n){return u(null,e,t,n)},i.allocUnsafe=function(e){return c(null,e)},i.allocUnsafeSlow=function(e){return c(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},i.prototype.compare=function(e,t,n,r,o){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,s=n-t,u=Math.min(a,s),c=this.slice(r,o),l=e.slice(t,n),p=0;po)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i=o&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a1)for(var n=1;n2&&"!"===t[0]&&"!"===t[1];if(c&&(t=t.slice(2)),!u&&!c){var l=i.reach(n,"key");t="string"==typeof l?l+t:i.reach(a.errors,"key")+t}return t.replace(/\{\{(\!?)([^}]+)\}\}/g,function(t,n,o){var a=i.reach(e.context,o),u=s.stringify(a,r);return n&&e.options.escapeHtml?i.escapeHtml(u):u})},e}(),t.create=function(e,n,r,o,i,a,s){return new t.Err(e,n,r,o,i,a,s)},t.process=function(e,t){if(!e||!e.length)return null;var n="",r=[],o=function e(t,o){for(var i=0;i0){var a=t.indexOf(this);~a?(t.length=a+1,e.length=a+1,e[a]=r):(t.push(this),e.push(r)),~t.indexOf(i)&&(i=n.call(this,r,i))}else t.push(i);if(i){var u=i[s.annotations];if(u){if(Array.isArray(i)){for(var c=[],l=0;l=0;--u)for(var c=u+1,l=this.details[u],p=l.path,f=a,d=0;;++d){var h=p[d];if(f.isImmutable&&(f=f.clone()),!(d+10,"You need to provide at least one extension"),this.assert(v,t.extensionsSchema);var y=Object.create(this.any());u(y,this);for(var g=0;go.length)throw new Error("Unexpected number of arguments");for(var a=!1,s={},u=0;u0&&void 0!==arguments[0]?arguments[0]:"javascript",t=["javascript","unix"];if(c.assert(t.includes(e),'"type" must be one of "'+t.join('", "')+'"'),this._flags.timestamp===e)return this;var n=this.clone();return n._flags.timestamp=e,n._flags.multiplier="unix"===e?1e3:1,n},t.prototype._isIsoDate=function(e){return l.isoDate.test(e)},t}(s),l.compare=function(e,t){return function(n){var r="now"===n,o=u.isRef(n);return r||o||(n=l.Date.toDate(n)),c.assert(n,"Invalid date format"),this._test(e,n,function(i,a,s){var u=void 0;if(r)u=Date.now();else if(o){if(!(u=l.Date.toDate(n(a.reference||a.parent,s))))return this.createError("date.ref",{ref:n.key},a,s);u=u.getTime()}else u=n.getTime();return t(i.getTime(),u)?i:this.createError("date."+e,{limit:new Date(u)},a,s)})}},l.Date.prototype.min=l.compare("min",function(e,t){return e>=t}),l.Date.prototype.max=l.compare("max",function(e,t){return e<=t}),e.exports=new l.Date},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r=0,"limit must be a positive integer"),this._test("length",e,function(t,n,r){return Object.keys(t).length===e?t:this.createError("object.length",{limit:e},n,r)})},t.prototype.min=function(e){return u.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("min",e,function(t,n,r){return Object.keys(t).length>=e?t:this.createError("object.min",{limit:e},n,r)})},t.prototype.max=function(e){return u.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("max",e,function(t,n,r){return Object.keys(t).length<=e?t:this.createError("object.max",{limit:e},n,r)})},t.prototype.pattern=function(e,t){u.assert(e instanceof RegExp,"Invalid regular expression"),u.assert(void 0!==t,"Invalid rule"),e=new RegExp(e.source,e.ignoreCase?"i":void 0);try{t=f.schema(this._currentJoi,t)}catch(e){throw e.hasOwnProperty("path")&&(e.message=e.message+"("+e.path+")"),e}var n=this.clone();return n._inner.patterns.push({regex:e,rule:t}),n},t.prototype.schema=function(){return this._test("schema",null,function(e,t,n){return e instanceof l?e:this.createError("object.schema",null,t,n)})},t.prototype.with=function(e,t){return this._dependency("with",e,t)},t.prototype.without=function(e,t){return this._dependency("without",e,t)},t.prototype.xor=function(){for(var e=arguments.length,t=Array(e),n=0;n0,"expected at least one children");var o=d.groupChildren(e),i=void 0;if(""in o?(i=this[t].apply(this,n),delete o[""]):i=this.clone(),i._inner.children){r=r?r+".":"";for(var a=0;a0&&(t.renames=u.clone(this._inner.renames)),t},t.prototype.assert=function(e,t,n){e=f.ref(e),u.assert(e.isContext||e.depth>1,"Cannot use assertions for root level references - use direct key rules instead"),n=n||"pass the assertion test";try{t=f.schema(this._currentJoi,t)}catch(e){throw e.hasOwnProperty("path")&&(e.message=e.message+"("+e.path+")"),e}var r=e.path[e.path.length-1],o=e.path.join(".");return this._test("assert",{schema:t,ref:e},function(i,a,s){if(!t._validate(e(i),null,s,i).errors)return i;var c=u.merge({},a);return c.key=r,c.path=e.path,this.createError("object.assert",{ref:o,message:n},c,s)})},t.prototype.type=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.name;u.assert("function"==typeof e,"type must be a constructor function");var n={name:t,ctor:e};return this._test("type",n,function(t,r,o){return t instanceof e?t:this.createError("object.type",{type:n.name},r,o)})},t}(l),d.safeParse=function(e){try{return JSON.parse(e)}catch(e){}return e},d.renameDefaults={alias:!1,multiple:!1,override:!1},d.groupChildren=function(e){e.sort();for(var t={},n=0;n&\u2028\u2029]/g,function(e){return t=e.charCodeAt(0),60===t?"\\u003c":62===t?"\\u003e":38===t?"\\u0026":8232===t?"\\u2028":"\\u2029"})},n.escapeJavaScriptChar=function(t){if(t>=256)return"\\u"+n.padLeft(""+t,4);var r=new e(String.fromCharCode(t),"ascii").toString("hex");return"\\x"+n.padLeft(r,2)},n.escapeHtmlChar=function(t){var r=n.namedHtml[t];if(void 0!==r)return r;if(t>=256)return"&#"+t+";";var o=new e(String.fromCharCode(t),"ascii").toString("hex");return"&#x"+n.padLeft(o,2)+";"},n.padLeft=function(e,t){for(;e.length=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&(e[t]=null);return e}()}).call(t,n(3).Buffer)},function(e,t,n){"use strict";(function(e,r){var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(35),a={hasOwn:Object.prototype.hasOwnProperty,indexOf:Array.prototype.indexOf,defaultThreshold:16,maxIPv6Groups:8,categories:{valid:1,dnsWarn:7,rfc5321:15,cfws:31,deprecated:63,rfc5322:127,error:255},diagnoses:{valid:0,rfc5321TLD:9,rfc5321TLDNumeric:10,rfc5321QuotedString:11,rfc5321AddressLiteral:12,cfwsComment:17,cfwsFWS:18,deprecatedLocalPart:33,deprecatedFWS:34,deprecatedQTEXT:35,deprecatedQP:36,deprecatedComment:37,deprecatedCTEXT:38,deprecatedIPv6:39,deprecatedCFWSNearAt:49,rfc5322Domain:65,rfc5322TooLong:66,rfc5322LocalTooLong:67,rfc5322DomainTooLong:68,rfc5322LabelTooLong:69,rfc5322DomainLiteral:70,rfc5322DomainLiteralOBSDText:71,rfc5322IPv6GroupCount:72,rfc5322IPv62x2xColon:73,rfc5322IPv6BadCharacter:74,rfc5322IPv6MaxGroups:75,rfc5322IPv6ColonStart:76,rfc5322IPv6ColonEnd:77,errExpectingDTEXT:129,errNoLocalPart:130,errNoDomain:131,errConsecutiveDots:132,errATEXTAfterCFWS:133,errATEXTAfterQS:134,errATEXTAfterDomainLiteral:135,errExpectingQPair:136,errExpectingATEXT:137,errExpectingQTEXT:138,errExpectingCTEXT:139,errBackslashEnd:140,errDotStart:141,errDotEnd:142,errDomainHyphenStart:143,errDomainHyphenEnd:144,errUnclosedQuotedString:145,errUnclosedComment:146,errUnclosedDomainLiteral:147,errFWSCRLFx2:148,errFWSCRLFEnd:149,errCRNoLF:150,errUnknownTLD:160,errDomainTooShort:161},components:{localpart:0,domain:1,literal:2,contextComment:3,contextFWS:4,contextQuotedString:5,contextQuotedPair:6}};a.specials=function(){var e='()<>[]:;@\\,."',t=new Array(256);t.fill(!1);for(var n=0;nc&&(c=e)},p={now:a.components.localpart,prev:a.components.localpart,stack:[a.components.localpart]},f="",d={local:"",domain:""},h={locals:[""],domains:[""]},m=0,v=0,y=0,g=void 0,b=!1,_=!1,w=t.length,E=void 0,C=0;C64?l(a.diagnoses.rfc5322LocalTooLong):p.prev!==a.components.contextComment&&p.prev!==a.components.contextFWS||l(a.diagnoses.deprecatedCFWSNearAt),p.now=a.components.domain,p.stack[0]=a.components.domain,m=0,v=0,_=!1;break;default:if(_)switch(p.prev){case a.components.contextComment:case a.components.contextFWS:l(a.diagnoses.errATEXTAfterCFWS);break;case a.components.contextQuotedString:l(a.diagnoses.errATEXTAfterQS);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+p.prev)}else p.prev=p.now,g=E.codePointAt(0),(a.specials(g)||a.c0Controls(g)||a.c1Controls(g))&&l(a.diagnoses.errExpectingATEXT),d.local+=E,h.locals[m]+=E,v+=e.byteLength(E,"utf8")}break;case a.components.domain:switch(E){case"(":0===v?l(0===m?a.diagnoses.deprecatedCFWSNearAt:a.diagnoses.deprecatedComment):(_=!0,l(a.diagnoses.cfwsComment)),p.stack.push(p.now),p.now=a.components.contextComment;break;case".":var x=i.encode(h.domains[m]).length;0===v?l(0===m?a.diagnoses.errDotStart:a.diagnoses.errConsecutiveDots):b?l(a.diagnoses.errDomainHyphenEnd):x>63&&l(a.diagnoses.rfc5322LabelTooLong),_=!1,v=0,++m,h.domains[m]="",d.domain+=E;break;case"[":0===d.domain.length?(_=!0,v+=e.byteLength(E,"utf8"),p.stack.push(p.now),p.now=a.components.literal,d.domain+=E,h.domains[m]+=E,d.literal=""):l(a.diagnoses.errExpectingATEXT);break;case"\r":if(w===++C||"\n"!==t[C]){l(a.diagnoses.errCRNoLF);break}case" ":case"\t":0===v?l(0===m?a.diagnoses.deprecatedCFWSNearAt:a.diagnoses.deprecatedFWS):(l(a.diagnoses.cfwsFWS),_=!0),p.stack.push(p.now),p.now=a.components.contextFWS,f=E;break;default:if(_)switch(p.prev){case a.components.contextComment:case a.components.contextFWS:l(a.diagnoses.errATEXTAfterCFWS);break;case a.components.literal:l(a.diagnoses.errATEXTAfterDomainLiteral);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+p.prev)}g=E.codePointAt(0),b=!1,a.specials(g)||a.c0Controls(g)||a.c1Controls(g)?l(a.diagnoses.errExpectingATEXT):"-"===E?(0===v&&l(a.diagnoses.errDomainHyphenStart),b=!0):(g<48||g>122&&g<192||g>57&&g<65||g>90&&g<97)&&l(a.diagnoses.rfc5322Domain),d.domain+=E,h.domains[m]+=E,v+=e.byteLength(E,"utf8")}break;case a.components.literal:switch(E){case"]":if(cP?l(a.diagnoses.rfc5322IPv6MaxGroups):A.length===P&&l(a.diagnoses.deprecatedIPv6)):A.length!==P&&l(a.diagnoses.rfc5322IPv6GroupCount),l(":"===T[0]&&":"!==T[1]?a.diagnoses.rfc5322IPv6ColonStart:":"===T[T.length-1]&&":"!==T[T.length-2]?a.diagnoses.rfc5322IPv6ColonEnd:a.checkIpV6(A)?a.diagnoses.rfc5321AddressLiteral:a.diagnoses.rfc5322IPv6BadCharacter)}}else l(a.diagnoses.rfc5322DomainLiteral);d.domain+=E,h.domains[m]+=E,v+=e.byteLength(E,"utf8"),p.prev=p.now,p.now=p.stack.pop();break;case"\\":l(a.diagnoses.rfc5322DomainLiteralOBSDText),p.stack.push(p.now),p.now=a.components.contextQuotedPair;break;case"\r":if(w===++C||"\n"!==t[C]){l(a.diagnoses.errCRNoLF);break}case" ":case"\t":l(a.diagnoses.cfwsFWS),p.stack.push(p.now),p.now=a.components.contextFWS,f=E;break;default:if(127!==(g=E.codePointAt(0))&&a.c1Controls(g)||0===g||"["===E){l(a.diagnoses.errExpectingDTEXT);break}(a.c0Controls(g)||127===g)&&l(a.diagnoses.rfc5322DomainLiteralOBSDText),d.literal+=E,d.domain+=E,h.domains[m]+=E,v+=e.byteLength(E,"utf8")}break;case a.components.contextQuotedString:switch(E){case"\\":p.stack.push(p.now),p.now=a.components.contextQuotedPair;break;case"\r":if(w===++C||"\n"!==t[C]){l(a.diagnoses.errCRNoLF);break}case"\t":d.local+=" ",h.locals[m]+=" ",v+=e.byteLength(E,"utf8"),l(a.diagnoses.cfwsFWS),p.stack.push(p.now),p.now=a.components.contextFWS,f=E;break;case'"':d.local+=E,h.locals[m]+=E,v+=e.byteLength(E,"utf8"),p.prev=p.now,p.now=p.stack.pop();break;default:g=E.codePointAt(0),127!==g&&a.c1Controls(g)||0===g||10===g?l(a.diagnoses.errExpectingQTEXT):(a.c0Controls(g)||127===g)&&l(a.diagnoses.deprecatedQTEXT),d.local+=E,h.locals[m]+=E,v+=e.byteLength(E,"utf8")}break;case a.components.contextQuotedPair:g=E.codePointAt(0),127!==g&&a.c1Controls(g)?l(a.diagnoses.errExpectingQPair):(g<31&&9!==g||127===g)&&l(a.diagnoses.deprecatedQP),p.prev=p.now,p.now=p.stack.pop();var M="\\"+E;switch(p.now){case a.components.contextComment:break;case a.components.contextQuotedString:d.local+=M,h.locals[m]+=M,v+=2;break;case a.components.literal:d.domain+=M,h.domains[m]+=M,v+=2;break;default:throw new Error("quoted pair logic invoked in an invalid context: "+p.now)}break;case a.components.contextComment:switch(E){case"(":p.stack.push(p.now),p.now=a.components.contextComment;break;case")":p.prev=p.now,p.now=p.stack.pop();break;case"\\":p.stack.push(p.now),p.now=a.components.contextQuotedPair;break;case"\r":if(w===++C||"\n"!==t[C]){l(a.diagnoses.errCRNoLF);break}case" ":case"\t":l(a.diagnoses.cfwsFWS),p.stack.push(p.now),p.now=a.components.contextFWS,f=E;break;default:if(0===(g=E.codePointAt(0))||10===g||127!==g&&a.c1Controls(g)){l(a.diagnoses.errExpectingCTEXT);break}(a.c0Controls(g)||127===g)&&l(a.diagnoses.deprecatedCTEXT)}break;case a.components.contextFWS:if("\r"===f){if("\r"===E){l(a.diagnoses.errFWSCRLFx2);break}++y>1?l(a.diagnoses.deprecatedFWS):y=1}switch(E){case"\r":w!==++C&&"\n"===t[C]||l(a.diagnoses.errCRNoLF);break;case" ":case"\t":break;default:"\r"===f&&l(a.diagnoses.errFWSCRLFEnd),y=0,p.prev=p.now,p.now=p.stack.pop(),--C}f=E;break;default:throw new Error("unknown context: "+p.now)}if(c>a.categories.rfc5322)break}if(c255)l(a.diagnoses.rfc5322DomainTooLong);else if(e.byteLength(d.local,"utf8")+R+1>254)l(a.diagnoses.rfc5322TooLong);else if(v>63)l(a.diagnoses.rfc5322LabelTooLong);else if(n.minDomainAtoms&&h.domains.length=0?a.nulNormalize(e):e.normalize("NFC")}}).call(t,n(3).Buffer,n(5))},function(e,t,n){"use strict";t.errors={root:"value",key:'"{{!label}}" ',messages:{wrapArrays:!0},any:{unknown:"is not allowed",invalid:"contains an invalid value",empty:"is not allowed to be empty",required:"is required",allowOnly:"must be one of {{valids}}",default:"threw an error when running default method"},alternatives:{base:"not matching any of the allowed alternatives",child:null},array:{base:"must be an array",includes:"at position {{pos}} does not match any of the allowed types",includesSingle:'single value of "{{!label}}" does not match any of the allowed types',includesOne:"at position {{pos}} fails because {{reason}}",includesOneSingle:'single value of "{{!label}}" fails because {{reason}}',includesRequiredUnknowns:"does not contain {{unknownMisses}} required value(s)",includesRequiredKnowns:"does not contain {{knownMisses}}",includesRequiredBoth:"does not contain {{knownMisses}} and {{unknownMisses}} other required value(s)",excludes:"at position {{pos}} contains an excluded value",excludesSingle:'single value of "{{!label}}" contains an excluded value',min:"must contain at least {{limit}} items",max:"must contain less than or equal to {{limit}} items",length:"must contain {{limit}} items",ordered:"at position {{pos}} fails because {{reason}}",orderedLength:"at position {{pos}} fails because array must contain at most {{limit}} items",ref:'references "{{ref}}" which is not a positive integer',sparse:"must not be a sparse array",unique:"position {{pos}} contains a duplicate value"},boolean:{base:"must be a boolean"},binary:{base:"must be a buffer or a string",min:"must be at least {{limit}} bytes",max:"must be less than or equal to {{limit}} bytes",length:"must be {{limit}} bytes"},date:{base:"must be a number of milliseconds or valid date string",format:"must be a string with one of the following formats {{format}}",strict:"must be a valid date",min:'must be larger than or equal to "{{limit}}"',max:'must be less than or equal to "{{limit}}"',isoDate:"must be a valid ISO 8601 date",timestamp:{javascript:"must be a valid timestamp or number of milliseconds",unix:"must be a valid timestamp or number of seconds"},ref:'references "{{ref}}" which is not a date'},function:{base:"must be a Function",arity:"must have an arity of {{n}}",minArity:"must have an arity greater or equal to {{n}}",maxArity:"must have an arity lesser or equal to {{n}}",ref:"must be a Joi reference",class:"must be a class"},lazy:{base:"!!schema error: lazy schema must be set",schema:"!!schema error: lazy schema function must return a schema"},object:{base:"must be an object",child:'!!child "{{!child}}" fails because {{reason}}',min:"must have at least {{limit}} children",max:"must have less than or equal to {{limit}} children",length:"must have {{limit}} children",allowUnknown:'!!"{{!child}}" is not allowed',with:'!!"{{mainWithLabel}}" missing required peer "{{peerWithLabel}}"',without:'!!"{{mainWithLabel}}" conflict with forbidden peer "{{peerWithLabel}}"',missing:"must contain at least one of {{peersWithLabels}}",xor:"contains a conflict between exclusive peers {{peersWithLabels}}",or:"must contain at least one of {{peersWithLabels}}",and:"contains {{presentWithLabels}} without its required peers {{missingWithLabels}}",nand:'!!"{{mainWithLabel}}" must not exist simultaneously with {{peersWithLabels}}',assert:'!!"{{ref}}" validation failed because "{{ref}}" failed to {{message}}',rename:{multiple:'cannot rename child "{{from}}" because multiple renames are disabled and another key was already renamed to "{{to}}"',override:'cannot rename child "{{from}}" because override is disabled and target "{{to}}" exists',regex:{multiple:'cannot rename children {{from}} because multiple renames are disabled and another key was already renamed to "{{to}}"',override:'cannot rename children {{from}} because override is disabled and target "{{to}}" exists'}},type:'must be an instance of "{{type}}"',schema:"must be a Joi instance"},number:{base:"must be a number",min:"must be larger than or equal to {{limit}}",max:"must be less than or equal to {{limit}}",less:"must be less than {{limit}}",greater:"must be greater than {{limit}}",float:"must be a float or double",integer:"must be an integer",negative:"must be a negative number",positive:"must be a positive number",precision:"must have no more than {{limit}} decimal places",ref:'references "{{ref}}" which is not a number',multiple:"must be a multiple of {{multiple}}"},string:{base:"must be a string",min:"length must be at least {{limit}} characters long",max:"length must be less than or equal to {{limit}} characters long",length:"length must be {{limit}} characters long",alphanum:"must only contain alpha-numeric characters",token:"must only contain alpha-numeric and underscore characters",regex:{base:'with value "{{!value}}" fails to match the required pattern: {{pattern}}',name:'with value "{{!value}}" fails to match the {{name}} pattern',invert:{base:'with value "{{!value}}" matches the inverted pattern: {{pattern}}',name:'with value "{{!value}}" matches the inverted {{name}} pattern'}},email:"must be a valid email",uri:"must be a valid uri",uriRelativeOnly:"must be a valid relative uri",uriCustomScheme:"must be a valid uri with a scheme matching the {{scheme}} pattern",isoDate:"must be a valid ISO 8601 date",guid:"must be a valid GUID",hex:"must only contain hexadecimal characters",base64:"must be a valid base64 string",hostname:"must be a valid hostname",normalize:"must be unicode normalized in the {{form}} form",lowercase:"must only contain lowercase characters",uppercase:"must only contain uppercase characters",trim:"must not have leading or trailing whitespace",creditCard:"must be a credit card",ref:'references "{{ref}}" which is not a number',ip:"must be a valid ip address with a {{cidr}} CIDR",ipVersion:"must be a valid ip address of one of the following versions {{version}} with a {{cidr}} CIDR"}}},function(e,t,n){"use strict";var r=n(8);t.options=r.object({abortEarly:r.boolean(),convert:r.boolean(),allowUnknown:r.boolean(),skipFunctions:r.boolean(),stripUnknown:[r.boolean(),r.object({arrays:r.boolean(),objects:r.boolean()}).or("arrays","objects")],language:r.object(),presence:r.string().only("required","optional","forbidden","ignore"),raw:r.boolean(),context:r.object(),strip:r.boolean(),noDefaults:r.boolean(),escapeHtml:r.boolean()}).strict()},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r0){var b=s.shift();if(y=b._validate(p,v,r),y.errors){if(o.push(this.createError("array.ordered",{pos:l,reason:y.errors,value:p},{key:n.key,path:v.path},r)),r.abortEarly)return o}else if(b._flags.strip)f.fastSplice(e,l),--l,--c;else{if(!this._flags.sparse&&void 0===y.value){if(o.push(this.createError("array.sparse",null,{key:n.key,path:v.path,pos:l},r)),r.abortEarly)return o;continue}e[l]=y.value}continue}if(!this._inner.items.length){if(o.push(this.createError("array.orderedLength",{pos:l,limit:this._inner.ordereds.length},{key:n.key,path:v.path},r)),r.abortEarly)return o;continue}}for(var _=[],w=a.length,E=0;E=0||t,"limit must be a positive integer or reference"),this._test("min",e,function(n,r,o){var i=void 0;if(t){if(i=e(r.reference||r.parent,o),!(Number.isSafeInteger(i)&&i>=0))return this.createError("array.ref",{ref:e.key},r,o)}else i=e;return n.length>=i?n:this.createError("array.min",{limit:e,value:n},r,o)})},t.prototype.max=function(e){var t=l.isRef(e);return p.assert(Number.isSafeInteger(e)&&e>=0||t,"limit must be a positive integer or reference"),this._test("max",e,function(n,r,o){var i=void 0;if(t){if(i=e(r.reference||r.parent,o),!(Number.isSafeInteger(i)&&i>=0))return this.createError("array.ref",{ref:e.key},r,o)}else i=e;return n.length<=i?n:this.createError("array.max",{limit:e,value:n},r,o)})},t.prototype.length=function(e){var t=l.isRef(e);return p.assert(Number.isSafeInteger(e)&&e>=0||t,"limit must be a positive integer or reference"),this._test("length",e,function(n,r,o){var i=void 0;if(t){if(i=e(r.reference||r.parent,o),!(Number.isSafeInteger(i)&&i>=0))return this.createError("array.ref",{ref:e.key},r,o)}else i=e;return n.length===i?n:this.createError("array.length",{limit:e,value:n},r,o)})},t.prototype.unique=function(e){p.assert(void 0===e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string");var t={};return"string"==typeof e?t.path=e:"function"==typeof e&&(t.comparator=e),this._test("unique",t,function(e,n,r){for(var o={string:{},number:{},undefined:{},boolean:{},object:new Map,function:new Map,custom:new Map},i=t.comparator||p.deepEqual,a=0;a=0,"limit must be a positive integer"),this._test("min",e,function(t,n,r){return t.length>=e?t:this.createError("binary.min",{limit:e,value:t},n,r)})},n.prototype.max=function(e){return u.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("max",e,function(t,n,r){return t.length<=e?t:this.createError("binary.max",{limit:e,value:t},n,r)})},n.prototype.length=function(e){return u.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("length",e,function(t,n,r){return t.length===e?t:this.createError("binary.length",{limit:e,value:t},n,r)})},n}(s),e.exports=new c.Binary}).call(t,n(3).Buffer)},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r=0,"n must be a positive integer"),this._test("arity",e,function(t,n,r){return t.length===e?t:this.createError("function.arity",{n:e},n,r)})},t.prototype.minArity=function(e){return s.assert(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this._test("minArity",e,function(t,n,r){return t.length>=e?t:this.createError("function.minArity",{n:e},n,r)})},t.prototype.maxArity=function(e){return s.assert(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this._test("maxArity",e,function(t,n,r){return t.length<=e?t:this.createError("function.maxArity",{n:e},n,r)})},t.prototype.ref=function(){return this._test("ref",null,function(e,t,n){return c.isRef(e)?e:this.createError("function.ref",null,t,n)})},t.prototype.class=function(){return this._test("class",null,function(e,t,n){return/^\s*class\s/.test(e.toString())?e:this.createError("function.class",null,t,n)})},t}(u.constructor),e.exports=new l.Func},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r0,"multiple must be greater than 0")),this._test("multiple",e,function(n,r,o){var i=t?e(r.reference||r.parent,o):e;return!t||"number"==typeof i&&isFinite(i)?n%i==0?n:this.createError("number.multiple",{multiple:e,value:n},r,o):this.createError("number.ref",{ref:e.key},r,o)})},t.prototype.integer=function(){return this._test("integer",void 0,function(e,t,n){return Number.isSafeInteger(e)?e:this.createError("number.integer",{value:e},t,n)})},t.prototype.negative=function(){return this._test("negative",void 0,function(e,t,n){return e<0?e:this.createError("number.negative",{value:e},t,n)})},t.prototype.positive=function(){return this._test("positive",void 0,function(e,t,n){return e>0?e:this.createError("number.positive",{value:e},t,n)})},t.prototype.precision=function(e){c.assert(Number.isSafeInteger(e),"limit must be an integer"),c.assert(!("precision"in this._flags),"precision already set");var t=this._test("precision",e,function(t,n,r){var o=t.toString().match(l.precisionRx);return Math.max((o[1]?o[1].length:0)-(o[2]?parseInt(o[2],10):0),0)<=e?t:this.createError("number.precision",{limit:e,value:t},n,r)});return t._flags.precision=e,t},t}(s),l.compare=function(e,t){return function(n){var r=u.isRef(n),o="number"==typeof n&&!isNaN(n);return c.assert(o||r,"limit must be a number or reference"),this._test(e,n,function(o,i,a){var s=void 0;if(r){if("number"!=typeof(s=n(i.reference||i.parent,a))||isNaN(s))return this.createError("number.ref",{ref:n.key},i,a)}else s=n;return t(o,s)?o:this.createError("number."+e,{limit:s,value:o},i,a)})}},l.Number.prototype.min=l.compare("min",function(e,t){return e>=t}),l.Number.prototype.max=l.compare("max",function(e,t){return e<=t}),l.Number.prototype.greater=l.compare("greater",function(e,t){return e>t}),l.Number.prototype.less=l.compare("less",function(e,t){return e9),i^=3}return o%10==0&&o>0?e:this.createError("string.creditCard",{value:e},t,n)})},t.prototype.regex=function(e,t){c.assert(e instanceof RegExp,"pattern must be a RegExp");var n={pattern:new RegExp(e.source,e.ignoreCase?"i":void 0)};"string"==typeof t?n.name=t:"object"===(void 0===t?"undefined":s(t))&&(n.invert=!!t.invert,t.name&&(n.name=t.name));var r=["string.regex",n.invert?".invert":"",n.name?".name":".base"].join("");return this._test("regex",n,function(e,t,o){return n.pattern.test(e)^n.invert?e:this.createError(r,{name:n.name,pattern:n.pattern,value:e},t,o)})},t.prototype.alphanum=function(){return this._test("alphanum",void 0,function(e,t,n){return/^[a-zA-Z0-9]+$/.test(e)?e:this.createError("string.alphanum",{value:e},t,n)})},t.prototype.token=function(){return this._test("token",void 0,function(e,t,n){return/^\w+$/.test(e)?e:this.createError("string.token",{value:e},t,n)})},t.prototype.email=function(e){return e&&(c.assert("object"===(void 0===e?"undefined":s(e)),"email options must be an object"),c.assert(void 0===e.checkDNS,"checkDNS option is not supported"),c.assert(void 0===e.tldWhitelist||"object"===s(e.tldWhitelist),"tldWhitelist must be an array or object"),c.assert(void 0===e.minDomainAtoms||Number.isSafeInteger(e.minDomainAtoms)&&e.minDomainAtoms>0,"minDomainAtoms must be a positive integer"),c.assert(void 0===e.errorLevel||"boolean"==typeof e.errorLevel||Number.isSafeInteger(e.errorLevel)&&e.errorLevel>=0,"errorLevel must be a non-negative integer or boolean")),this._test("email",e,function(t,r,o){l=l||n(16);try{var i=l.validate(t,e);if(!0===i||0===i)return t}catch(e){}return this.createError("string.email",{value:t},r,o)})},t.prototype.ip=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=v.ipRegex;c.assert("object"===(void 0===e?"undefined":s(e)),"options must be an object"),e.cidr?(c.assert("string"==typeof e.cidr,"cidr must be a string"),e.cidr=e.cidr.toLowerCase(),c.assert(c.contain(v.cidrPresences,e.cidr),"cidr must be one of "+v.cidrPresences.join(", ")),e.version||"optional"===e.cidr||(t=m.createIpRegex(["ipv4","ipv6","ipvfuture"],e.cidr))):e.cidr="optional";var n=void 0;if(e.version){Array.isArray(e.version)||(e.version=[e.version]),c.assert(e.version.length>=1,"version must have at least 1 version specified"),n=[];for(var r=0;r=1,"scheme must have at least 1 scheme specified");for(var i=0;i=1,"version must have at least 1 valid version specified");for(var n=new Set,r=0;r0&&void 0!==arguments[0]?arguments[0]:{};c.assert("object"===(void 0===e?"undefined":s(e)),"base64 options must be an object"),c.assert(void 0===e.paddingRequired||"boolean"==typeof e.paddingRequired,"paddingRequired must be boolean");var t=!1===e.paddingRequired?e.paddingRequired:e.paddingRequired||!0,n=t?/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/:/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/;return this._test("base64",n,function(e,t,r){return n.test(e)?e:this.createError("string.base64",{value:e},t,r)})},t.prototype.hostname=function(){var e=/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/;return this._test("hostname",void 0,function(t,n,r){return t.length<=255&&e.test(t)||u.isIPv6(t)?t:this.createError("string.hostname",{value:t},n,r)})},t.prototype.normalize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";c.assert(c.contain(v.normalizationForms,e),"normalization form must be one of "+v.normalizationForms.join(", "));var t=this._test("normalize",e,function(t,n,r){return r.convert||t===t.normalize(e)?t:this.createError("string.normalize",{value:t,form:e},n,r)});return t._flags.normalize=e,t},t.prototype.lowercase=function(){var e=this._test("lowercase",void 0,function(e,t,n){return n.convert||e===e.toLocaleLowerCase()?e:this.createError("string.lowercase",{value:e},t,n)});return e._flags.case="lower",e},t.prototype.uppercase=function(){var e=this._test("uppercase",void 0,function(e,t,n){return n.convert||e===e.toLocaleUpperCase()?e:this.createError("string.uppercase",{value:e},t,n)});return e._flags.case="upper",e},t.prototype.trim=function(){var e=this._test("trim",void 0,function(e,t,n){return n.convert||e===e.trim()?e:this.createError("string.trim",{value:e},t,n)});return e._flags.trim=!0,e},t.prototype.replace=function(e,t){"string"==typeof e&&(e=new RegExp(c.escapeRegex(e),"g")),c.assert(e instanceof RegExp,"pattern must be a RegExp"),c.assert("string"==typeof t,"replacement must be a String");var n=this.clone();return n._inner.replacements||(n._inner.replacements=[]),n._inner.replacements.push({pattern:e,replacement:t}),n},t.prototype.truncate=function(e){var t=void 0===e||!!e;if(this._flags.truncate===t)return this;var n=this.clone();return n._flags.truncate=t,n},t}(p),v.compare=function(e,n){return function(r,o){var i=f.isRef(r);return c.assert(Number.isSafeInteger(r)&&r>=0||i,"limit must be a positive integer or reference"),c.assert(!o||t.isEncoding(o),"Invalid encoding:",o),this._test(e,r,function(t,a,s){var u=void 0;if(i){if(u=r(a.reference||a.parent,s),!Number.isSafeInteger(u))return this.createError("string.ref",{ref:r.key},a,s)}else u=r;return n(t,u,o)?t:this.createError("string."+e,{limit:u,value:t,encoding:o},a,s)})}},v.String.prototype.min=v.compare("min",function(e,n,r){return(r?t.byteLength(e,r):e.length)>=n}),v.String.prototype.max=v.compare("max",function(e,n,r){return(r?t.byteLength(e,r):e.length)<=n}),v.String.prototype.length=v.compare("length",function(e,n,r){return(r?t.byteLength(e,r):e.length)===n}),v.String.prototype.uuid=v.String.prototype.guid,e.exports=new v.String}).call(t,n(3).Buffer)},function(e,t,n){"use strict";var r=n(13),o={Ip:{cidrs:{ipv4:{required:"\\/(?:"+r.ipv4Cidr+")",optional:"(?:\\/(?:"+r.ipv4Cidr+"))?",forbidden:""},ipv6:{required:"\\/"+r.ipv6Cidr,optional:"(?:\\/"+r.ipv6Cidr+")?",forbidden:""},ipvfuture:{required:"\\/"+r.ipv6Cidr,optional:"(?:\\/"+r.ipv6Cidr+")?",forbidden:""}},versions:{ipv4:r.IPv4address,ipv6:r.IPv6address,ipvfuture:r.IPvFuture}}};o.Ip.createIpRegex=function(e,t){for(var n=void 0,r=0;r0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return 3*e.length/4-r(e)}function i(e){var t,n,o,i,a,s=e.length;i=r(e),a=new p(3*s/4-i),n=i>0?s-4:s;var u=0;for(t=0;t>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,a[u++]=255&o):1===i&&(o=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}function a(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function s(e,t,n){for(var r,o=[],i=t;iu?u:a+16383));return 1===r?(t=e[n-1],o+=c[t>>2],o+=c[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=c[t>>10],o+=c[t>>4&63],o+=c[t<<2&63],o+="="),i.push(o),i.join("")}t.byteLength=o,t.toByteArray=i,t.fromByteArray=u;for(var c=[],l=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,h=f.length;d>1,l=-7,p=n?o-1:0,f=n?-1:1,d=e[t+p];for(p+=f,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+p],p+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+p],p+=f,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=c}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+p>=1?f/u:f*Math.pow(2,1-p),t*u>=2&&(a++,u/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(t*u-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,c-=8);e[n+d-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports={_args:[["joi@13.0.1","/Users/jeff/projects/joi-browser"]],_development:!0,_from:"joi@13.0.1",_id:"joi@13.0.1",_inBundle:!1,_integrity:"sha512-ChTMfmbIg5yrN9pUdeaLL8vzylMQhUteXiXa1MWINsMUs3jTQ8I87lUZwR5GdfCLJlpK04U7UgrxgmU8Zp7PhQ==",_location:"/joi",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"joi@13.0.1",name:"joi",escapedName:"joi",rawSpec:"13.0.1",saveSpec:null,fetchSpec:"13.0.1"},_requiredBy:["#DEV:/"],_resolved:"https://registry.npmjs.org/joi/-/joi-13.0.1.tgz",_spec:"13.0.1",_where:"/Users/jeff/projects/joi-browser",bugs:{url:"https://github.com/hapijs/joi/issues"},dependencies:{hoek:"5.x.x",isemail:"3.x.x",topo:"3.x.x"},description:"Object schema validation",devDependencies:{hapitoc:"1.x.x",lab:"14.x.x"},engines:{node:">=8.3.0"},homepage:"https://github.com/hapijs/joi",keywords:["hapi","schema","validation"],license:"BSD-3-Clause",main:"lib/index.js",name:"joi",repository:{type:"git",url:"git://github.com/hapijs/joi.git"},scripts:{test:"lab -t 100 -a code -L","test-cov-html":"lab -r html -o coverage.html -a code","test-debug":"lab -a code",toc:"hapitoc",version:"npm run toc && git add API.md README.md"},version:"13.0.1"}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+t||"."},t.normalize=function(e){var o=t.isAbsolute(e),i="/"===a(e,-1);return e=n(r(e.split("/"),function(e){return!!e}),!o).join("/"),e||o||(e="."),e&&i&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u1&&(r=n[0]+"@",e=n[1]),e=e.replace(M,"."),r+s(e.split("."),t).join(".")}function c(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(e-=65536,t+=N(e>>>10&1023|55296),e=56320|1023&e),t+=N(e)}).join("")}function p(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function f(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,n){var r=0;for(e=n?I(e/O):e>>1,e+=I(e/t);e>D*C>>1;r+=w)e=I(e/D);return I(r+(D+1)*e/(e+x))}function h(e){var t,n,r,o,i,s,u,c,f,h,m=[],v=e.length,y=0,g=k,b=S;for(n=e.lastIndexOf(T),n<0&&(n=0),r=0;r=128&&a("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=v&&a("invalid-input"),c=p(e.charCodeAt(o++)),(c>=w||c>I((_-y)/s))&&a("overflow"),y+=c*s,f=u<=b?E:u>=b+C?C:u-b,!(cI(_/h)&&a("overflow"),s*=h;t=m.length+1,b=d(y-i,t,0==i),I(y/t)>_-g&&a("overflow"),g+=I(y/t),y%=t,m.splice(y++,0,g)}return l(m)}function m(e){var t,n,r,o,i,s,u,l,p,h,m,v,y,g,b,x=[];for(e=c(e),v=e.length,t=k,n=0,i=S,s=0;s=t&&mI((_-n)/y)&&a("overflow"),n+=(u-t)*y,t=u,s=0;s_&&a("overflow"),m==t){for(l=n,p=w;h=p<=i?E:p>=i+C?C:p-i,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=w-E,I=Math.floor,N=String.fromCharCode;b={version:"1.4.1",ucs2:{decode:c,encode:l},decode:h,encode:m,toASCII:y,toUnicode:v},void 0!==(o=function(){return b}.call(t,n,t,e))&&(e.exports=o)}()}).call(t,n(39)(e),n(7))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t,n){(function(e,r){function o(e,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),u(r,e,r.depth)}function i(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=u(e,o,r)),o}var i=c(e,n);if(i)return i;var a=Object.keys(n),m=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),O(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(S(n)){var v=n.name?": "+n.name:"";return e.stylize("[Function"+v+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return l(n)}var y="",g=!1,_=["{","}"];if(h(n)&&(g=!0,_=["[","]"]),S(n)){y=" [Function"+(n.name?": "+n.name:"")+"]"}if(E(n)&&(y=" "+RegExp.prototype.toString.call(n)),x(n)&&(y=" "+Date.prototype.toUTCString.call(n)),O(n)&&(y=" "+l(n)),0===a.length&&(!g||0==n.length))return _[0]+y+_[1];if(r<0)return E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var w;return w=g?p(e,n,r,m,a):a.map(function(t){return f(e,n,r,m,t,g)}),e.seen.pop(),d(w,y,_)}function c(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o){for(var i=[],a=0,s=t.length;a-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),w(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return null==e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function _(e){return"symbol"==typeof e}function w(e){return void 0===e}function E(e){return C(e)&&"[object RegExp]"===T(e)}function C(e){return"object"==typeof e&&null!==e}function x(e){return C(e)&&"[object Date]"===T(e)}function O(e){return C(e)&&("[object Error]"===T(e)||e instanceof Error)}function S(e){return"function"==typeof e}function k(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}function A(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),N[e.getMonth()],t].join(" ")}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var R=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n",e):2===arguments.length&&"function"==typeof t?U(e,t):1===arguments.length&&"string"==typeof e?o(e):o(t).apply(null,arguments)}function o(e){return function(t,n,r){return r&&"function"==typeof r.value?(r.value=U(e,r.value),r.enumerable=!1,r.configurable=!0,r):Lt(e).apply(this,arguments)}}function i(e,t,n){var r="string"==typeof e?e:e.name||"",o="function"==typeof e?e:t,i="function"==typeof e?t:n;return gt("function"==typeof o,"`runInAction` expects a function"),gt(0===o.length,"`runInAction` expects a function without arguments"),gt("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),B(r,o,i,void 0)}function a(e){return"function"==typeof e&&!0===e.isMobxAction}function s(e,t,n){function r(){i(u)}var o,i,s;"string"==typeof e?(o=e,i=t,s=n):"function"==typeof e&&(o=e.name||"Autorun@"+yt(),i=e,s=t),We(i,"autorun methods cannot have modifiers"),gt("function"==typeof i,"autorun expects a function"),gt(!1===a(i),"Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action."),s&&(i=i.bind(s));var u=new Xt(o,function(){this.track(r)});return u.schedule(),u.getDisposer()}function u(e,t,n,r){var o,i,a,u;return"string"==typeof e?(o=e,i=t,a=n,u=r):"function"==typeof e&&(o="When@"+yt(),i=e,a=t,u=n),s(o,function(e){if(i.call(u)){e.dispose();var t=ee();a.call(u),te(t)}})}function c(e,t,n){return bt("`autorunUntil` is deprecated, please use `when`."),u.apply(null,arguments)}function l(e,t,n,r){function o(){s(p)}var i,s,u,c;"string"==typeof e?(i=e,s=t,u=n,c=r):"function"==typeof e&&(i=e.name||"AutorunAsync@"+yt(),s=e,u=t,c=n),gt(!1===a(s),"Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action."),void 0===u&&(u=1),c&&(s=s.bind(c));var l=!1,p=new Xt(i,function(){l||(l=!0,setTimeout(function(){l=!1,p.isDisposed||p.track(o)},u))});return p.schedule(),p.getDisposer()}function p(e,t,n,o,i,a){function s(){if(!w.isDisposed){var e=!1;w.track(function(){var t=v(w);e=St(y,_,t),_=t}),g&&p&&l(_,w),g||!0!==e||l(_,w),g&&(g=!1)}}var u,c,l,p,f,d;"string"==typeof e?(u=e,c=t,l=n,p=o,f=i,d=a):(u=e.name||t.name||"Reaction@"+yt(),c=e,l=t,p=n,f=o,d=i),void 0===p&&(p=!1),void 0===f&&(f=0);var h=Ue(c,tn.Reference),m=h[0],v=h[1],y=m===tn.Structure;d&&(v=v.bind(d),l=r(u,l.bind(d)));var g=!0,b=!1,_=void 0,w=new Xt(u,function(){f<1?s():b||(b=!0,setTimeout(function(){b=!1,s()},f))});return w.schedule(),w.getDisposer()}function f(e,t,n,r){return("function"==typeof e||He(e))&&arguments.length<3?"function"==typeof t?d(e,t,void 0):d(e,void 0,t):Ft.apply(null,arguments)}function d(e,t,n){var r=Ue(e,tn.Recursive),o=r[0],i=r[1];return new zt(i,n,o===tn.Structure,i.name,t)}function h(e,t){gt("function"==typeof e&&1===e.length,"createTransformer expects a function that accepts one argument");var n={},r=Gt.resetId,o=function(r){function o(t,n){r.call(this,function(){return e(n)},null,!1,"Transformer-"+e.name+"-"+t,void 0),this.sourceIdentifier=t,this.sourceObject=n}return jt(o,r),o.prototype.onBecomeUnobserved=function(){var e=this.value;r.prototype.onBecomeUnobserved.call(this),delete n[this.sourceIdentifier],t&&t(e,this.sourceObject)},o}(zt);return function(e){r!==Gt.resetId&&(n={},r=Gt.resetId);var t=m(e),i=n[t];return i?i.get():(i=n[t]=new o(t,e),i.get())}}function m(e){if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object, got: "+e);var t=e.$transformId;return void 0===t&&(t=yt(),Tt(e,"$transformId",t)),t}function v(e,t){return $()||console.warn("[mobx.expr] 'expr' should only be used inside other reactive functions."),f(e,t).get()}function y(e){for(var t=[],n=1;n=2,"extendObservable expected 2 or more arguments"),gt("object"==typeof e,"extendObservable expects an object as first argument"),gt(!fn(e),"extendObservable should not be used on maps, use map.merge instead"),t.forEach(function(t){gt("object"==typeof t,"all arguments of extendObservable should be objects"),gt(!k(t),"extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540"),g(e,t,tn.Recursive,null)}),e}function g(e,t,n,r){var o=Qe(e,r,n);for(var i in t)if(kt(t,i)){if(e===t&&!At(e,i))continue;var a=Object.getOwnPropertyDescriptor(t,i);et(o,i,a)}return e}function b(e,t){return _(st(e,t))}function _(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=wt(e.observing).map(_)),t}function w(e,t){return E(st(e,t))}function E(e){var t={name:e.name};return oe(e)&&(t.observers=ie(e).map(E)),t}function C(e,t,n){return"function"==typeof n?O(e,t,n):x(e,t)}function x(e,t){return xt(e)&&!at(e)?(bt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),ut(P(e)).intercept(t)):ut(e).intercept(t)}function O(e,t,n){return xt(e)&&!at(e)?(bt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),y(e,{property:e[t]}),O(e,t,n)):ut(e,t).intercept(n)}function S(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(!1===at(e))return!1;var n=st(e,t);return Yt(n)}return Yt(e)}function k(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(Xe(e)||fn(e))throw new Error("[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");if(at(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return at(e)||!!e.$mobx||qt(e)||Zt(e)||Yt(e)}function T(e,t,n){return gt(arguments.length>=2&&arguments.length<=3,"Illegal decorator config",t),Mt(e,t),gt(!n||!n.get,"@observable can not be used on getters, use @computed instead"),Ut.apply(null,arguments)}function P(e,t){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return T.apply(null,arguments);if(gt(arguments.length<3,"observable expects zero, one or two arguments"),k(e))return e;var n=Ue(e,tn.Recursive),r=n[0],o=n[1];switch(r===tn.Reference?Bt.Reference:A(o)){case Bt.Array:case Bt.PlainObject:return Ve(o,r);case Bt.Reference:case Bt.ComplexObject:return new bn(o,r);case Bt.ComplexFunction:throw new Error("[mobx.observable] To be able to make a function reactive it should not have arguments. If you need an observable reference to a function, use `observable(asReference(f))`");case Bt.ViewFunction:return bt("Use `computed(expr)` instead of `observable(expr)`"),f(e,t)}gt(!1,"Illegal State")}function A(e){return null===e||void 0===e?Bt.Reference:"function"==typeof e?e.length?Bt.ComplexFunction:Bt.ViewFunction:Nt(e)?Bt.Array:"object"==typeof e?xt(e)?Bt.PlainObject:Bt.ComplexObject:Bt.Reference}function M(e,t,n,r){return"function"==typeof n?D(e,t,n,r):R(e,t,n)}function R(e,t,n){return xt(e)&&!at(e)?(bt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),ut(P(e)).observe(t,n)):ut(e).observe(t,n)}function D(e,t,n,r){return xt(e)&&!at(e)?(bt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),y(e,{property:e[t]}),D(e,t,n,r)):ut(e,t).observe(n,r)}function I(e,t,n){function r(r){return t&&n.push([e,r]),r}if(void 0===t&&(t=!0),void 0===n&&(n=null),k(e)){if(t&&null===n&&(n=[]),t&&null!==e&&"object"==typeof e)for(var o=0,i=n.length;o0,"actions should have valid names, got: '"+e+"'");var n=function(){return B(e,t,this,arguments)};return n.isMobxAction=!0,n}function B(e,t,n,r){gt(!Yt(Gt.trackingDerivation),"Computed values or transformers should not invoke actions or trigger other side effects");var o,i=ge();if(i){o=Date.now();var a=r&&r.length||0,s=new Array(a);if(a>0)for(var u=0;u0}function ie(e){return e.observers}function ae(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function se(e,t){if(1===e.observers.length)e.observers.length=0,ue(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function ue(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,Gt.pendingUnobservations.push(e))}function ce(){Gt.inBatch++}function le(){if(1===Gt.inBatch){for(var e=Gt.pendingUnobservations,t=0;t0||Qt(ve)}function ve(){Gt.isRunningReactions=!0;for(var e=Gt.pendingReactions,t=0;e.length>0;){if(++t===Jt)throw re(),new Error("Reaction doesn't converge to a stable state after "+Jt+" iterations. Probably there is a cycle in the reactive function: "+e[0]);for(var n=e.splice(0),r=0,o=n.length;r0}function Te(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),_t(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Pe(e,t){var n=ee();try{for(var r=e.interceptors,o=0,i=r.length;o0}function Me(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),_t(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Re(e,t){var n=ee(),r=e.changeListeners;if(r){r=r.slice();for(var o=0,i=r.length;o=this.length,value:tt?" (... and "+(e.length-t)+"more)":""):""}function Ct(e){return null!==e&&"object"==typeof e}function xt(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Ot(){for(var e=arguments[0],t=1,n=arguments.length;t=0;r--)if(!Dt(e[r],t[r]))return!1;return!0}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(Rt(e).length!==Rt(t).length)return!1;for(var o in e){if(!(o in t))return!1;if(!Dt(e[o],t[o]))return!1}return!0}return e===t}function It(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return Ct(e)&&!0===e[n]}}function Nt(e){return Array.isArray(e)||Xe(e)}var jt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};t.extras={allowStateChanges:W,getAtom:st,getDebugName:ct,getDependencyTree:b,getObserverTree:w,isComputingDerivation:$,isSpyEnabled:ge,resetGlobalState:re,spyReport:be,spyReportEnd:we,spyReportStart:_e,trackTransitions:Ce,setReactionScheduler:ye},t._={getAdministration:ut,resetGlobalState:re},"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx(e.exports);var Lt=lt(function(e,t,n,o,i){Tt(e,t,r(o&&1===o.length?o[0]:n.name||t||"",n))},function(e){return this[e]},function(){gt(!1,"It is not allowed to assign new values to @action fields")},!1,!0);t.action=r,t.runInAction=i,t.isAction=a,t.autorun=s,t.when=u,t.autorunUntil=c,t.autorunAsync=l,t.reaction=p;var Ft=lt(function(e,t,n,r,o){gt(void 0!==o,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.");var i=o.get,a=o.set;gt("function"==typeof i,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'");var s=!1;r&&1===r.length&&!0===r[0].asStructure&&(s=!0),tt(Qe(e,void 0,tn.Recursive),t,s?je(i):i,!1,a)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){this.$mobx.values[e].set(t)},!1,!0);t.computed=f,t.createTransformer=h,t.expr=v,t.extendObservable=y,t.intercept=C,t.isComputed=S,t.isObservable=k;var Ut=lt(function(e,t,n){var r=q(!0);"function"==typeof n&&(n=Ne(n)),tt(Qe(e,void 0,tn.Recursive),t,n,!0,void 0),z(r)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){ot(this,e,t)},!0,!1);t.observable=P;var Bt;!function(e){e[e.Reference=0]="Reference",e[e.PlainObject=1]="PlainObject",e[e.ComplexObject=2]="ComplexObject",e[e.Array=3]="Array",e[e.ViewFunction=4]="ViewFunction",e[e.ComplexFunction=5]="ComplexFunction"}(Bt||(Bt={})),t.observe=M,t.toJS=I,t.toJSlegacy=N,t.toJSON=j,t.whyRun=F,t.useStrict=H,t.isStrictModeEnabled=V;var Ht=function(){function e(e){void 0===e&&(e="Atom@"+yt()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Wt.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){pe(this)},e.prototype.reportChanged=function(){Oe("propagatingAtomChange",null,!1),fe(this),Se(!1)},e.prototype.toString=function(){return this.name},e}();t.BaseAtom=Ht;var Vt=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+yt()),void 0===n&&(n=On),void 0===r&&(r=On),e.call(this,t),this.name=t,this.onBecomeObservedHandler=n,this.onBecomeUnobservedHandler=r,this.isPendingUnobservation=!1,this.isBeingTracked=!1}return jt(t,e),t.prototype.reportObserved=function(){return ce(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),le(),!!Gt.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(Ht);t.Atom=Vt;var Wt,qt=It("Atom",Ht),zt=function(){function e(e,t,n,r,o){this.derivation=e,this.scope=t,this.compareStructural=n,this.dependenciesState=Wt.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Wt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+yt(),this.value=void 0,this.isComputing=!1,this.isRunningSetter=!1,this.name=r||"ComputedValue@"+yt(),o&&(this.setter=U(r+"-setter",o))}return e.prototype.peek=function(){this.isComputing=!0;var e=q(!1),t=this.derivation.call(this.scope);return z(e),this.isComputing=!1,t},e.prototype.peekUntracked=function(){var e=!0;try{var t=this.peek();return e=!1,t}finally{e&&X(this)}},e.prototype.onBecomeStale=function(){he(this)},e.prototype.onBecomeUnobserved=function(){gt(this.dependenciesState!==Wt.NOT_TRACKING,"INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row"),Q(this),this.value=void 0},e.prototype.get=function(){gt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),ce(),1===Gt.inBatch?Y(this)&&(this.value=this.peekUntracked()):(pe(this),Y(this)&&this.trackAndCompute()&&de(this));var e=this.value;return le(),e},e.prototype.recoverFromError=function(){this.isComputing=!1},e.prototype.set=function(e){if(this.setter){gt(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else gt(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){ge()&&be({object:this,type:"compute",fn:this.derivation,target:this.scope});var e=this.value,t=this.value=G(this,this.peek);return St(this.compareStructural,t,e)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return s(function(){var i=n.get();if(!r||t){var a=ee();e(i,o),te(a)}r=!1,o=i})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.whyRun=function(){var e=Boolean(Gt.trackingDerivation),t=wt(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),n=wt(ie(this).map(function(e){return e.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===Wt.NOT_TRACKING?" * This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).\n":" * This computation will re-run if any of the following observables changes:\n "+Et(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n * If the outcome of this computation changes, the following observers will be re-run:\n "+Et(n)+"\n")},e}(),Yt=It("ComputedValue",zt);!function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(Wt||(Wt={})),t.IDerivationState=Wt,t.untracked=Z;var $t=["mobxGuid","resetId","spyListeners","strictMode","runId"],Kt=function(){function e(){this.version=4,this.trackingDerivation=null,this.runId=0,this.mobxGuid=0,this.inTransaction=0,this.isRunningReactions=!1,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[]}return e}(),Gt=function(){var e=new Kt;if(n.__mobservableTrackingStack||n.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(n.__mobxGlobal&&n.__mobxGlobal.version!==e.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");return n.__mobxGlobal?n.__mobxGlobal:n.__mobxGlobal=e}(),Xt=function(){function e(e,t){void 0===e&&(e="Reaction@"+yt()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=Wt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+yt(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Gt.pendingReactions.push(this),ce(),me(),le())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(this._isScheduled=!1,Y(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&ge()&&be({object:this,type:"scheduled-reaction"})))},e.prototype.track=function(e){ce();var t,n=ge();n&&(t=Date.now(),_e({object:this,type:"reaction",fn:e})),this._isRunning=!0,G(this,e),this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Q(this),n&&we({time:Date.now()-t}),le()},e.prototype.recoverFromError=function(){this._isRunning=!1,this._isTrackPending=!1},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ce(),Q(this),le()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=wt(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+Et(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"},e}();t.Reaction=Xt;var Jt=100,Qt=function(e){return e()},Zt=It("Reaction",Xt),en={spyReportEnd:!0};t.spy=Ee,t.transaction=xe;var tn;!function(e){e[e.Recursive=0]="Recursive",e[e.Reference=1]="Reference",e[e.Structure=2]="Structure",e[e.Flat=3]="Flat"}(tn||(tn={})),t.ValueMode=tn,t.asReference=Ne,Ne.mobxModifier=tn.Reference,t.asStructure=je,je.mobxModifier=tn.Structure,t.asFlat=Le,Le.mobxModifier=tn.Flat,t.asMap=Fe;var nn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),rn=0,on=function(){function e(){}return e}();on.prototype=[];var an=function(){function e(e,t,n,r){this.mode=t,this.array=n,this.owned=r,this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new Ht(e||"ObservableArray@"+yt())}return e.prototype.makeReactiveArrayItem=function(e){return We(e,"Array values cannot have modifiers"),this.mode===tn.Flat||this.mode===tn.Reference?e:Ve(e,this.mode,this.atom.name+"[..]")},e.prototype.intercept=function(e){return Te(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Me(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;e!==t&&(e>t?this.spliceWithArray(t,0,new Array(e-t)):this.spliceWithArray(e,t-e))},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>rn&&$e(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){K();var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:void 0===t||null===t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=[]),ke(this)){var o=Pe(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return Cn;t=o.removedCount,n=o.added}n=n.map(this.makeReactiveArrayItem,this);var i=n.length-t;this.updateArrayLength(r,i);var a=(s=this.values).splice.apply(s,[e,t].concat(n));return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),a;var s},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&ge(),o=Ae(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&_e(i),this.atom.reportChanged(),o&&Re(this,i),r&&we()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&ge(),o=Ae(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&_e(i),this.atom.reportChanged(),o&&Re(this,i),r&&we()},e}(),sn=function(e){function t(t,n,r,o){void 0===o&&(o=!1),e.call(this);var i=new an(r,n,this,o);Pt(this,"$mobx",i),t&&t.length?(i.updateArrayLength(0,t.length),i.values=t.map(i.makeReactiveArrayItem,i),i.notifyArraySplice(0,i.values.slice(),Cn)):i.values=[],nn&&Object.defineProperty(i.array,"0",un)}return jt(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.init(t,n)}return e.prototype.init=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||a,this.options=t,this.debug=t.debug},e.prototype.setDebug=function(e){this.debug=e},e.prototype.log=function(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var h=Array(d),m=0;m1){for(var y=Array(v),g=0;g1){for(var h=Array(d),m=0;m1){for(var y=Array(v),g=0;g1){for(var h=Array(d),m=0;m1){for(var y=Array(v),g=0;g-1&&n.observers[e].splice(r,1)}else delete n.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r()\"'{}`\\-—|?:;,.~!$%^&*№]+","i"),t.LIST_DISPLAY_STEPS=[20,40,60],t.PAYMENT_RETURN_STATUSES_REGEXPS=[/^\/success\/\d*\/\d*\/?$/,/^\/failed?\/?$/,/^\/pending\/\d*\/?$/,/^\/cancel\/?$/]},function(e,t,n){"use strict";t.__esModule=!0;t.BACKET="BACKET",t.VERIFY_EMAIL="VERIFY_EMAIL",t.NEW_CHECK_VERIFY_EMAIL="NEW_CHECK_VERIFY_EMAIL",t.CHANGE_PASSWORD="CHANGE_PASSWORD",t.BUY_MORE="BUY_MORE",t.CONFIRM_NEW_CHECK_FILES="CONFIRM_NEW_CHECK_FILES",t.CONFIRM_NEW_CHECK_TEXT="CONFIRM_NEW_CHECK_TEXT",t.USER_AGREEMENTS="USER_AGREEMENTS",t.CHANGE_PROFILE_INFO="CHANGE_PROFILE_INFO",t.CONFIRM_PROFILE_REMOVE="CONFIRM_PROFILE_REMOVE",t.CONFIRM_REMOVE_GROUP_MEMBER="CONFIRM_REMOVE_GROUP_MEMBER",t.MOVE_DOC_TO_FOLDER="MOVE_DOC_TO_FOLDER",t.CREATE_FOLDER="CREATE_FOLDER",t.EDIT_MEMBER="EDIT_MEMBER",t.UPLOAD_MEMBERS_FROM_FILE="UPLOAD_MEMBERS_FROM_FILE",t.PAYMENT_RESULT="PAYMENT_RESULT",t.INTEGRATION_WORKS="INTEGRATION_WORKS",t.SHARE_REPORT="SHARE_REPORT"},function(e,t,n){"use strict";function r(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}t.__esModule=!0,t.ModalsStore=void 0;var a,s,u=function(){function e(e,t){for(var n=0;n]/;e.exports=o},function(e,t,n){"use strict";var r,o=n(22),i=n(128),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(136),c=u(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=c},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return u});var r=n(287),o=n(289),i=n(79),a=Object.assign||function(e){for(var t=1;t]/;e.exports=o},function(e,t,n){"use strict";var r,o=n(23),i=n(151),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(159),c=u(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=c},function(e,t,n){"use strict";function r(){f=!1}function o(e){if(!e)return void(l!==h&&(l=h,r()));if(e!==l){if(e.length!==h.length)throw new Error("Custom alphabet for shortid must be "+h.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(e,t,n){return t!==n.lastIndexOf(e)});if(t.length)throw new Error("Custom alphabet for shortid must be "+h.length+" unique characters. These characters were not unique: "+t.join(", "));l=e,r()}}function i(e){return o(e),l}function a(e){d.seed(e),p!==e&&(r(),p=e)}function s(){l||o(h);for(var e,t=l.split(""),n=[],r=d.nextValue();t.length>0;)r=d.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}function u(){return f||(f=s())}function c(e){return u()[e]}var l,p,f,d=n(694),h="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";e.exports={characters:i,seed:a,lookup:c,shuffled:u}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){return null==e?"":""+e}function o(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}function i(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}function a(e,t,n){var r=i(e,t,Object);r.obj[r.k]=n}function s(e,t,n,r){var o=i(e,t,Object),a=o.obj,s=o.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(n)),r||a[s].push(n)}function u(e,t){var n=i(e,t),r=n.obj,o=n.k;if(r)return r[o]}function c(e,t,n){for(var r in t)r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):c(e[r],t[r],n):e[r]=t[r];return e}function l(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function p(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return f[e]}):e}t.f=r,t.a=o,t.g=a,t.b=s,t.c=u,t.h=c,t.e=l,t.d=p;var f={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=d++,p[e[m]]={}),p[e[m]]}var o,i=n(13),a=n(173),s=n(772),u=n(310),c=n(804),l=n(184),p={},f=!1,d=0,h={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",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",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},s,{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 n=t,o=r(n),i=a.registrationNameDependencies[e],s=0;s]/;e.exports=o},function(e,t,n){"use strict";var r,o=n(25),i=n(172),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(180),c=u(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(382),i=r(o),a=n(18),s=r(a);t.default=function(e){var t=e.data;return(0,s.default)({report:{id:t.report.id,createdAt:t.report.created_at,sourceCount:t.report.source_count,percent:t.report.percent,textId:t.report.text_id},reportData:{version:t.report_data.version,length:t.report_data.length,createdAt:t.report_data.created_at,nodes:t.report_data.nodes.map(function(e){return{enabled:e.enabled,start:e.start,end:e.end,text:e.text,sources:e.sources,sourcesImproved:e.sources_improved,references:e.references,headers:e.headers,quotes:e.quotes,destinationsClusters:e.destinations_clusters}}),indexes:t.report_data.indexes.map(function(e){return{id:e.id,dbId:e.db_id,name:e.name,status:e.status,queries:e.queries,type:e.type}}),references:t.report_data.references,header:t.report_data.header,quotes:t.report_data.quotes,sources:t.report_data.sources.map(function(e,t){return{id:t,hasExternalReport:e.dst_pos_success,contentType:e.content_type,index:e.index,source:e.source,length:e.length,percent:e.percent,link:{name:e.link.name,urls:e.link.urls},plagiarismLength:e.plagiarism_length,plagiarismPercent:e.plagiarism_percent}}),sourcesCount:t.report_data.sources_count,matchedLength:t.report_data.matched_length,matchedPercent:t.report_data.matched_percent,externalQueries:t.report_data.external_queries,destinationsClusters:t.report_data.destinations_clusters&&t.report_data.destinations_clusters.map(function(e){return{source:e.source,id:e.id,offsets:e.offsets.map(function(e){return{start:e.start,end:e.end,cos:e.cos}})}})}},i.default)},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:{};this.isSubmit=!0;var r=_.default.balance,o=void 0,i=_.default.isNegativeTextAllowed;if("current-user"!==this.paymentAccount){o=E.default.getGroup(this.paymentAccount),r=o.balance;var a=o.group.balanceType;a&&2===a&&(i=!0)}I.default.textValidate(m({text:e,language:_.default.profile.allowedLanguages[0],hash:this.textHash},n)).catch(function(e){return e.body}).then(function(e){return(e.success||3===e.code||4===e.code)&&(t.textHash=e.hash,S.default.addModal({type:g.CONFIRM_NEW_CHECK_TEXT,props:{responceCode:e.code,isNegativeTextAllowed:i,avatar:_.default.profile.avatar,balance:r,groupsLength:E.default.groups.length,userRoleInGroup:o&&o.userRole,groupOwnerEmail:o&&o.owner.email,groupLimit:o&&o.group.limit,pagesCount:e.pages,paymentAccount:t.paymentAccount,onOpenModal:function(e){return S.default.addModal(e)},onBuy:function(e){return t.buyOrder(e)},onContinue:function(n){return t.validateModalContinue(n,e.code)}}})),e}).catch(function(e){console.error(e)}).finally(function(){t.isSubmit=!1})},e.prototype.validateModalContinue=function(e,t){return 3===t||4===t?void this.submit({skip_english_words_validation:!0,skip_percentage_words_validation:!0}):e?void this.loadNewCheckText(this.getPagesString(_.default.balance)):void this.loadNewCheckText(this.newCheckText)},e.prototype.buyOrder=function(e){return T.default.addOrder(e).then(function(e){return S.default.addModal({type:g.BACKET}),e})},e.prototype.chooseCheckAccount=function(e){this.paymentAccount=e||"current-user";var t=_.default.getLocalProfile(_.default.profile.id)||{};_.default.setProfileToLocalStorage(m({},t,{paymentAccount:e}),_.default.profile.id)},e.prototype.defaultChooseGroupCheckAccount=function(e){var t=_.default.getLocalProfile(_.default.profile.id)||{};t.paymentAccount&&E.default.getGroup(t.paymentAccount)||this.chooseCheckAccount(e)},e.prototype.submit=function(e){if(A.default.attachedFiles.length){if(0===A.default.validAttachedFiles.length)return void(this.error="Please upload correct file")}else{if(!this.newCheckText.length)return void(this.error="This field is required");if(this.newCheckText.length1&&void 0!==arguments[1]?arguments[1]:[];return this.documentsMap.keys().map(function(e){return t.documentsMap.get(e)}).filter(function(t){return t.document.folderId===e&&n.includes(t.document.id)}).sort(function(e,t){return parseInt(t.document.createdAt,10)-parseInt(e.document.createdAt,10)})},e.prototype.loadMoreDocuments=function(){var e=this;return this.isLoadDocuments=!0,this.loadDocuments(this.documents[this.documents.length-1].document.id).finally(function(){e.isLoadDocuments=!1})},e.prototype.loadDocuments=function(e){var t=this;return x.default.getDocuments(e).then(function(e){e.documents.map(function(n){t.setDocument(n.id,n),n.state===O.DOCUMENT_IN_PROCESS&&t.waitReadyDocument(n.id),t.moreDocuments=e.more})}).catch(function(e){return console.error(e)})},e.prototype.loadSavedDocuments=function(){var e=this,t=JSON.parse(window.localStorage.getItem("openDocuments"+_.default.profile.id));return new Promise(function(n){t&&t.length?t.forEach(function(r,o){return e.documentsMap.has(r.id)?(e.openDocumentsMap.set(r.id,r.id),e.loadReport(r.id).finally(function(){o===t.length-1&&n()})):e.loadDocument(r.id).then(function(){e.openDocumentsMap.set(r.id,r.id),e.loadReport(r.id).finally(function(){o===t.length-1&&n()})}).catch(function(e){return console.error(e)})}):n()})},e.prototype.loadReport=function(e){var t=this;return x.default.getReport(e).then(function(n){return t.reportsMap.set(e,n),n}).catch(function(e){return console.error(e),e})},e.prototype.shortenSources=function(e){var t=this,n=this.getDocumentReport(e).reportData.sources;return Promise.all(n.map(function(e){return t.shortenSource(e).then(function(t){e.shortSource=t}).catch(function(e){return console.error(e)})})).finally(function(){var r=t.getDocumentReport(e);r.reportData.sources=n,t.reportsMap.set(e,r)})},e.prototype.shortenSource=function(e){return x.default.shortenSource(e.source).then(function(e){return e.id})},e.prototype.changeCheckedInAllDocuments=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],r=arguments[3];this.checkedAllDocuments=e,this.documentsMap.forEach(function(o){if(n||t.length){var i=o.document[n];return void((i===r&&void 0!==i||t.includes(o.document.id))&&o.changeChecked(e))}void 0!==o.document.groupId&&null!==o.document.groupId||o.changeChecked(e),o.document.state!==O.DOCUMENT_READY&&o.changeChecked(!1)})},e.prototype.removeDocuments=function(){var e=this;this.checkedAllDocuments=!1;var t="id[]=";this.checkedDocuments.forEach(function(n){t+=n.document.id+"&id[]=",e.removeLocalDocument(n.document.id)}),x.default.removeDocuments(t.slice(0,-5)).catch(function(e){return console.error(e)})},e.prototype.removeDocument=function(e){this.removeLocalDocument(e),x.default.removeDocuments("id[]="+e).catch(function(e){return console.error(e)})},e.prototype.removeLocalDocument=function(e){this.documentsMap.delete(e),this.openDocumentsMap.delete(e);var t=this.openDocumentsMap.keys().map(function(e){return e}),n="openDocuments"+_.default.profile.id;t.length?window.localStorage.setItem(n,JSON.stringify(this.openDocuments)):window.localStorage.removeItem(n)},e.prototype.openDocument=function(e,t){var n=this;return!this.reportsMap.has(e)||t?(this.openDocumentsMap.set(e,e),this.loadReport(e).then(function(e){return window.localStorage.setItem("openDocuments"+_.default.profile.id,JSON.stringify(n.openDocuments)),e}).catch(function(e){return console.log(e),e})):new Promise(function(t){return t(n.reportsMap.get(e))})},e.prototype.fullStackOpenDocument=function(e){var t=this;return new Promise(function(n,r){_.default.loadProfile().then(function(){return t.loadDocument(e).then(function(){return t.openDocument(e).then(function(e){n(e)})})}).catch(function(e){return r(e)})})},e.prototype.loadDocument=function(e){var t=this;return x.default.getDocument(e).then(function(e){t.setDocument(e.id,e)}).catch(function(e){return console.error(e),e})},e.prototype.waitReadyDocument=function(e){var t=this,n=setInterval(function(){x.default.getDocument(e).then(function(e){e.groupId&&(e.authorName=_.default.username),e.state!==O.DOCUMENT_IN_PROCESS&&(t.setDocument(e.id,e),clearInterval(n)),e.state===O.DOCUMENT_READY&&t.openDocument(e.id).then(function(){k.default.trigger("profile"),k.default.trigger("")})}).catch(function(e){clearInterval(n),E.default.history.push("/new-check"),console.error(e)})},5e3)},e.prototype.setDocument=function(e,t){this.documentsMap.set(e,new g.default({document:t}))},e.prototype.setDocumentStore=function(e,t){this.documentsMap.set(e,t)},e.prototype.setOpenDocument=function(e){this.openDocumentsMap.set(e,e)},e.prototype.wasDocumentOpened=function(e){var t="openDocuments"+(_.default.profile&&_.default.profile.id),n=JSON.parse(window.localStorage.getItem(t));return n?!!n.filter(function(t){return t.id===""+e}).length||this.openDocumentsMap.has(e):this.openDocumentsMap.has(e)},m(e,[{key:"documents",get:function(){var e=this;return this.documentsMap.keys().map(function(t){return e.documentsMap.get(t)}).filter(function(e){return void 0===e.document.groupId||null===e.document.groupId}).sort(function(e,t){return parseInt(t.document.createdAt,10)-parseInt(e.document.createdAt,10)})}},{key:"checkedDocuments",get:function(){var e=this;return this.documentsMap.keys().map(function(t){return e.documentsMap.get(t)}).filter(function(e){return e.checked})}},{key:"openDocuments",get:function(){var e=this;return this.openDocumentsMap.keys().map(function(t){var n=e.documentsMap.get(t);if(n)return{id:t,groupId:n.document.groupId,title:n.document.filename+"..."}}).filter(function(e){return e})}}]),e}(),u=a(s.prototype,"documentsMap",[v.observable],{enumerable:!0,initializer:function(){return(0,v.map)()}}),c=a(s.prototype,"reportsMap",[v.observable],{enumerable:!0,initializer:function(){return(0,v.map)()}}),l=a(s.prototype,"openDocumentsMap",[v.observable],{enumerable:!0,initializer:function(){return(0,v.map)()}}),p=a(s.prototype,"checkedAllDocuments",[v.observable],{enumerable:!0,initializer:function(){return!1}}),f=a(s.prototype,"moreDocuments",[v.observable],{enumerable:!0,initializer:function(){return!1}}),d=a(s.prototype,"isLoadDocuments",[v.observable],{enumerable:!0,initializer:function(){return!1}}),a(s.prototype,"documents",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"documents"),s.prototype),a(s.prototype,"checkedDocuments",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"checkedDocuments"),s.prototype),a(s.prototype,"openDocuments",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"openDocuments"),s.prototype),a(s.prototype,"loadDocuments",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"loadDocuments"),s.prototype),a(s.prototype,"loadSavedDocuments",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"loadSavedDocuments"),s.prototype),a(s.prototype,"loadReport",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"loadReport"),s.prototype),a(s.prototype,"changeCheckedInAllDocuments",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"changeCheckedInAllDocuments"),s.prototype),a(s.prototype,"removeDocuments",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"removeDocuments"),s.prototype),a(s.prototype,"removeDocument",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"removeDocument"),s.prototype),a(s.prototype,"removeLocalDocument",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"removeLocalDocument"),s.prototype),a(s.prototype,"openDocument",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"openDocument"),s.prototype),a(s.prototype,"fullStackOpenDocument",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"fullStackOpenDocument"),s.prototype),h=a(s.prototype,"closeDocument",[v.action],{enumerable:!0,initializer:function(){var e=this;return function(t,n){e.openDocumentsMap.delete(t);var r=e.openDocumentsMap.keys().map(function(e){return e}),o="openDocuments"+_.default.profile.id;if(r.length){var i=e.getDocumentStore(r[r.length-1]),a=i.document.groupId;window.localStorage.setItem(o,JSON.stringify(e.openDocuments)),E.default.history.push("/check-document-report/"+r[r.length-1]+"/"+(a?"group/"+a:""))}else window.localStorage.removeItem(o),E.default.history.push(n?"/my-documents/group/"+n:"/my-documents")}}}),a(s.prototype,"loadDocument",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"loadDocument"),s.prototype),a(s.prototype,"waitReadyDocument",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"waitReadyDocument"),s.prototype),s);t.default=new T,t.UserDocumentsStore=T},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(257),a=r(i),s=n(548),u=r(s),c=n(400),l=r(c),p=n(399),f=r(p),d=n(96),h=r(d),m=n(35),v=r(m),y={READY_STATE_CHANGE:"readystatechange",LOAD_START:"loadstart",PROGRESS:"progress",ABORT:"abort",ERROR:"error",LOAD:"load",TIMEOUT:"timeout",LOAD_END:"loadend"},g=window.location.protocol+"//"+window.location.host,b=function(e){switch(e){case"blob":return"response";default:return"responseText"}};t.default=function(e){var t=e.data,n=void 0===t?{}:t,r=e.method,i=e.url,s=e.onProgress,c=e.requestHeaders,p=e.responseType,d=void 0===p?"":p,m=e.isAuth;return new Promise(function(e,t){var p=void 0,_=""+g+i,w=void 0,E=c||{},C=n;if("object"===(void 0===n?"undefined":o(n))&&n instanceof window.FormData==!1&&(C=(0,f.default)(n)),C instanceof window.FormData!=!1||E["Content-Type"]&&E["Content-Type"].includes("application/json"))w=E["Content-Type"]&&E["Content-Type"].includes("application/json")?JSON.stringify(C):C;else if(p="application/x-www-form-urlencoded; charset=UTF-8","GET"===r.toUpperCase())C&&Object.keys(C).length&&(_+=(-1===_.indexOf("?")?"?":"&")+a.default.stringify((0,l.default)(C)));else{var x=(0,l.default)(C);w="string"==typeof x?x:a.default.stringify(x)}var O=new window.XMLHttpRequest;O.open(r.toUpperCase(),_,!0),O.responseType=d;var S=b(d);if(O.addEventListener(y.ABORT,function(){return t(new u.default("Server request aborted","Server request aborted"),O[S])}),O.addEventListener(y.ERROR,function(){return t(new u.default("Server request failed","Server request failed"),O[S])}),O.addEventListener(y.TIMEOUT,function(){return t(new u.default("Server request timeout","Server request timeout"),O[S])}),O.addEventListener(y.LOAD,function(){if(401===O.status)t(new u.default("Authorisation needed","Authorisation needed"));else if(500===O.status)t(new u.default({message:"Something went wrong. Please try again or contact support.",body:"Something went wrong. Please try again or contact support.",code:500}));else if(O.status>=400){var n=void 0;try{n=(0,h.default)(O[S])}catch(e){console.log(e)}n?t(new u.default({message:n&&n.message||n.errors&&n.errors[0]||n.messages&&n.messages[0],body:n,code:n&&n.code||O.status}),O[S]):t(new u.default("Something went wrong. We can not get error.","Something went wrong. We can not get error."))}else e(O[S])}),O.setRequestHeader("Accept","application/json"),p&&!E["Content-Type"]&&O.setRequestHeader("Content-Type",p),m&&(E["x-api-token"]=v.default.apiToken),Object.keys(E).forEach(function(e){O.setRequestHeader(e,E[e])}),s){var k=function(){return O.abort()};O.addEventListener(y.PROGRESS,function(e){return s(e,k)}),O.upload.addEventListener(y.PROGRESS,function(e){return s(e,k)})}O.send(w)})},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.integrationSubmissionsParser=t.integrationsParser=t.addAgreementParser=t.agreementsParser=t.folderParser=t.foldersParser=t.addMemberParser=t.folderDocumentsParser=t.membersParser=t.singleGroupParser=t.groupsParser=t.documentParser=t.newCheckParser=t.toggleOrderParser=t.reportParser=t.documentsParser=t.groupTransactionsParser=t.transactionsParser=t.profileParser=void 0;var o=n(419),i=r(o),a=n(422),s=r(a),u=n(413),c=r(u),l=n(409),p=r(l),f=n(119),d=r(f),h=n(421),m=r(h),v=n(418),y=r(v),g=n(408),b=r(g),_=n(414),w=r(_),E=n(420),C=r(E),x=n(417),O=r(x),S=n(411),k=r(S),T=n(406),P=r(T),A=n(412),M=r(A),R=n(410),D=r(R),I=n(407),N=r(I),j=n(405),L=r(j),F=n(416),U=r(F),B=n(415),H=r(B);t.profileParser=i.default,t.transactionsParser=s.default,t.groupTransactionsParser=c.default,t.documentsParser=p.default,t.reportParser=d.default,t.toggleOrderParser=m.default,t.newCheckParser=y.default,t.documentParser=b.default,t.groupsParser=w.default,t.singleGroupParser=C.default,t.membersParser=O.default,t.folderDocumentsParser=k.default,t.addMemberParser=P.default,t.foldersParser=M.default,t.folderParser=D.default,t.agreementsParser=N.default,t.addAgreementParser=L.default,t.integrationsParser=U.default,t.integrationSubmissionsParser=H.default},function(e,t,n){"use strict";var r=n(103),o=n.n(r),i=function(){var e=null,t=function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,i):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n-1||a("96",e),!c.plugins[n]){t.extractEvents||a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)||a("98",i,e)}}}function o(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]&&a("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(3),s=(n(1),null),u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&a("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]&&a("102",n),u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(o,n,e):m.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(3),s=(n(43),n(75)),u=(n(31),n(37)),c=(n(1),n(8),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){c.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,o(e))}});e.exports=c},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(22);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=r},function(e,t,n){"use strict";var r=(n(12),n(34)),o=(n(8),r);e.exports=o},function(e,t,n){"use strict";var r=n(144);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(57),s=n.n(a),u=n(41),c=n.n(u),l=n(14),p=n.n(l),f=n(19),d=n.n(f),h=Object.assign||function(e){for(var t=1;t may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){s()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);m.propTypes={history:d.a.object.isRequired,children:d.a.node},m.contextTypes={router:d.a.object},m.childContextTypes={router:d.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var r=n(212),o=n.n(r),i={},a=0,s=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var s=[],u=o()(e,s,t),c={re:u,keys:s};return a<1e4&&(r[e]=c,a++),c},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,o=r.path,i=r.exact,a=void 0!==i&&i,u=r.strict,c=void 0!==u&&u,l=r.sensitive,p=void 0!==l&&l;if(null==o)return n;var f=s(o,{end:a,strict:c,sensitive:p}),d=f.re,h=f.keys,m=d.exec(e);if(!m)return null;var v=m[0],y=m.slice(1),g=e===v;return a&&!g?null:{path:o,url:"/"===o&&""===v?"/":v,isExact:g,params:h.reduce(function(e,t,n){return e[t.name]=y[n],e},{})}};t.a=u},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a-1||a("96",e),!c.plugins[n]){t.extractEvents||a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)||a("98",i,e)}}}function o(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]&&a("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(6),s=(n(0),null),u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&a("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]&&a("102",n),u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(o,n,e):m.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(6),s=(n(45),n(82)),u=(n(32),n(38)),c=(n(0),n(4),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){c.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,o(e))}});e.exports=c},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(23);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=r},function(e,t,n){"use strict";var r=(n(10),n(29)),o=(n(4),r);e.exports=o},function(e,t,n){"use strict";var r=n(168);t.a=r.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(659);n.d(t,"BrowserRouter",function(){return r.a});var o=n(660);n.d(t,"HashRouter",function(){return o.a});var i=n(279);n.d(t,"Link",function(){return i.a});var a=n(661);n.d(t,"MemoryRouter",function(){return a.a});var s=n(662);n.d(t,"NavLink",function(){return s.a});var u=n(663);n.d(t,"Prompt",function(){return u.a});var c=n(664);n.d(t,"Redirect",function(){return c.a});var l=n(280);n.d(t,"Route",function(){return l.a});var p=n(166);n.d(t,"Router",function(){return p.a});var f=n(665);n.d(t,"StaticRouter",function(){return f.a});var d=n(666);n.d(t,"Switch",function(){return d.a});var h=n(667);n.d(t,"matchPath",function(){return h.a});var m=n(668);n.d(t,"withRouter",function(){return m.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(21),s=n.n(a),u=n(24),c=n.n(u),l=n(11),p=n.n(l),f=n(27),d=n.n(f),h=Object.assign||function(e){for(var t=1;t may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){s()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);m.propTypes={history:d.a.object.isRequired,children:d.a.node},m.contextTypes={router:d.a.object},m.childContextTypes={router:d.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var r=n(579),o=n.n(r),i={},a=0,s=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var s=[],u=o()(e,s,t),c={re:u,keys:s};return a<1e4&&(r[e]=c,a++),c},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var n=t,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,u=n.strict,c=void 0!==u&&u,l=n.sensitive,p=void 0!==l&&l,f=s(o,{end:a,strict:c,sensitive:p}),d=f.re,h=f.keys,m=d.exec(e);if(!m)return null;var v=m[0],y=m.slice(1),g=e===v;return a&&!g?null:{path:o,url:"/"===o&&""===v?"/":v,isExact:g,params:h.reduce(function(e,t,n){return e[t.name]=y[n],e},{})}};t.a=u},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a-1||a("96",e),!c.plugins[n]){t.extractEvents||a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)||a("98",i,e)}}}function o(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]&&a("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(7),s=(n(2),null),u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&a("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]&&a("102",n),u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(o,n,e):m.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(7),s=(n(47),n(89)),u=(n(33),n(40)),c=(n(2),n(9),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){c.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,o(e))}});e.exports=c},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(25);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=r},function(e,t,n){"use strict";var r=(n(13),n(39)),o=(n(9),r);e.exports=o},function(e,t,n){!function(t,r){e.exports=r(n(211),n(14),n(188))}(0,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.reactiveComponent=t.PropTypes=t.propTypes=t.inject=t.Provider=t.useStaticRendering=t.trackComponents=t.componentByNodeRegistery=t.renderReporter=t.observer=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=arguments,a=n(1);Object.defineProperty(t,"observer",{enumerable:!0,get:function(){return a.observer}}),Object.defineProperty(t,"renderReporter",{enumerable:!0,get:function(){return a.renderReporter}}),Object.defineProperty(t,"componentByNodeRegistery",{enumerable:!0,get:function(){return a.componentByNodeRegistery}}),Object.defineProperty(t,"trackComponents",{enumerable:!0,get:function(){return a.trackComponents}}),Object.defineProperty(t,"useStaticRendering",{enumerable:!0,get:function(){return a.useStaticRendering}});var s=n(9);Object.defineProperty(t,"Provider",{enumerable:!0,get:function(){return r(s).default}});var u=n(6);Object.defineProperty(t,"inject",{enumerable:!0,get:function(){return r(u).default}});var c=n(2),l=r(c),p=n(3),f=r(p),d=n(10),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(d),m=void 0;if(m="mobx-react",!l.default)throw new Error(m+" requires the MobX package");if(!f.default)throw new Error(m+" requires React to be available");t.propTypes=h,t.PropTypes=h,t.default=e.exports;t.reactiveComponent=function(){return console.warn("[mobx-react] `reactiveComponent` has been renamed to `observer` and will be removed in 1.1."),observer.apply(null,i)};"object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":o(__MOBX_DEVTOOLS_GLOBAL_HOOK__))&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(e.exports,l.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return v.default?v.default.findDOMNode(e):null}function i(e){var t=o(e);t&&C&&C.set(t,e),x.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function a(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");w||(w=!0)}function s(e){E=e}function u(e,t){var n=e[t],r=O[t];e[t]=n?function(){n.apply(this,arguments),r.apply(this,arguments)}:r}function c(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return t?_.default.apply(null,e)(c(t)):function(t){return c(e,t)};var n=e;if(void 0!==n.isInjector&&n.isInjector&&console.warn("Mobx Observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof n||n.prototype&&n.prototype.render||n.isReactClass||h.default.Component.isPrototypeOf(n)))return c(h.default.createClass({displayName:n.displayName||n.name,propTypes:n.propTypes,contextTypes:n.contextTypes,getDefaultProps:function(){return n.defaultProps},render:function(){return n.call(this,this.props,this.context)}}));if(!n)throw new Error("Please pass a valid component to 'observer'");var r=n.prototype||n;return["componentWillMount","componentWillUnmount","componentDidMount","componentDidUpdate"].forEach(function(e){u(r,e)}),r.shouldComponentUpdate||(r.shouldComponentUpdate=O.shouldComponentUpdate),n.isMobXReactObserver=!0,n}Object.defineProperty(t,"__esModule",{value:!0}),t.renderReporter=t.componentByNodeRegistery=void 0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.trackComponents=a,t.useStaticRendering=s,t.observer=c;var p=n(2),f=r(p),d=n(3),h=r(d),m=n(4),v=r(m),y=n(5),g=r(y),b=n(6),_=r(b),w=!1,E=!1,C=t.componentByNodeRegistery="undefined"!=typeof WeakMap?new WeakMap:void 0,x=t.renderReporter=new g.default,O={componentWillMount:function(){var e=this;if(!0!==E){var t=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"",n=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID,r=this.render.bind(this),o=null,i=!1,a=function(){return o=new f.default.Reaction(t+"#"+n+".render()",function(){if(!i&&(i=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{h.default.Component.prototype.forceUpdate.call(e),t=!1}finally{t&&o.dispose()}}}),s.$mobx=o,e.render=s,s()},s=function(){i=!1;var t=void 0;return o.track(function(){w&&(e.__$mobRenderStart=Date.now()),t=f.default.extras.allowStateChanges(!1,r),w&&(e.__$mobRenderEnd=Date.now())}),t};this.render=a}},componentWillUnmount:function(){if(!0!==E&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,w)){var e=o(this);e&&C&&C.delete(e),x.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){w&&i(this)},componentDidUpdate:function(){w&&i(this)},shouldComponentUpdate:function(e,t){if(E&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t)return!0;var n=Object.keys(this.props);if(n.length!==Object.keys(e).length)return!0;for(var r=void 0,o=n.length-1;r=n[o];o--){var i=e[r];if(i!==this.props[r])return!0;if(i&&"object"===(void 0===i?"undefined":l(i))&&!f.default.isObservable(i))return!0}return!1}}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n1)for(var r=1;r6?s-6:0),c=6;c>",a=a||r,null==n[r]){if(t){var s=null===n[r]?"null":"undefined";return new Error("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+s+"`.")}return null}return e.apply(void 0,[n,r,o,i,a].concat(u))})}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function i(e){var t=void 0===e?"undefined":c(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":o(t,e)?"symbol":t}function a(e){var t=i(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function s(e,t){return r(function(n,r,o,s,u){return(0,l.untracked)(function(){if(e&&i(n[r])===t.toLowerCase())return null;var s=void 0;switch(t){case"Array":s=l.isObservableArray;break;case"Object":s=l.isObservableObject;break;case"Map":s=l.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var c=n[r];if(!s(c)){var p=a(c),f=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+u+"` of type `"+p+"` supplied to `"+o+"`, expected `mobx.Observable"+t+"`"+f+".")}return null})})}function u(e,t){return r(function(n,r,o,i,a){for(var u=arguments.length,c=Array(u>5?u-5:0),p=5;p1){for(var u=Array(a),c=0;c1&&void 0!==arguments[1])||arguments[1];i(this,e),o(this,"groupId",u,this),o(this,"_more",c,this),o(this,"_items",l,this),o(this,"filterStore",p,this),o(this,"isLoadingItems",f,this),this.groupId=t,this.isLoadingItems=n}return e.prototype.addItem=function(e){this._items.push(e)},e.prototype.removeItem=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";this._items=this.items.filter(function(n){return n[t]!==e}),this.filterStore&&(this.filterStore.items=this.filterStore.items.filter(function(n){return n[t]!==e}))},e.prototype.rewriteItem=function(e,t){this.removeItem(void 0!==t?t:e.id),this.addItem(e)},e.prototype.setLoadingItems=function(e){this.isLoadingItems=e},e.prototype.clearFilter=function(){this.filterStore=void 0},e.prototype.haveItem=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";return Boolean(this.items.filter(function(n){return n[t]===e}).length)},e.prototype.getItem=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";return this.items.filter(function(n){return n[t]===e})[0]},e.prototype.loadItems=function(e,t,n,r,o,i){var a=this,s=e.filterId,u=e.filterEmail,c=e.filterName;this.setLoadingItems(!0);var l=u||c||this.filterStore,p=s+u+c,f=l?this.filterLastId:this.lastId;return n(d({},e,{lastId:f,token:y.default.apiToken})).then(function(e){var n=a.itemsFormatting({items:e[t],SavedItemInstance:o,savedItemsField:r,savedItemInstanceArgs:i});return f?a.loadItemsPagination(n,e.more,p):a.initialGetItems(n,e.more,p,l),e}).catch(function(e){return console.log(e)}).finally(function(){return a.setLoadingItems(!1)})},e.prototype.loadItemsPagination=function(e,t){this.filterStore?(this.filterStore.addItems(e),this.filterStore.setMore(t)):(this._items=this._items.concat(e),this._more=t)},e.prototype.initialGetItems=function(e,t,n,r){r?this.filterStore=new b.default({id:n,moreItems:t,items:e}):(this._items=e,this._more=t)},e.prototype.itemsFormatting=function(e){var t=this,n=e.items,r=e.savedItemsField,o=e.SavedItemInstance,i=e.savedItemInstanceArgs,a=n;return r&&(a=n.map(function(e){var t;return t={},t[r]=e[r],t})),o&&(a=n.map(function(e){return new(Function.prototype.bind.apply(o,[null].concat([e,t.groupId],i)))})),a},h(e,[{key:"items",get:function(){return this.filterStore?this.filterStore.items:this._items}},{key:"more",get:function(){return this.filterStore?this.filterStore.more:this._more}},{key:"lastId",get:function(){var e=this._items[this._items.length-1],t=e&&e.id;return this._items.forEach(function(e){e.id/),n=e.match(/<.*?>/g),r="";return t.forEach(function(e,t){e.replace(/\s|\n|\t/g,"").length?r+=''+e+"":r+=e,r+=""+((n||"")&&(n[t]||""))}),r}(o);n=n.slice(0,e.start+r)+i+n.slice(e.end+1+r),r+=i.length-o.length}),n},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e)switch(e){case"profile":u.default.loadProfile();break;default:l()}}t.__esModule=!0;var i=n(575),a=r(i),s=n(35),u=r(s),c=n(396),l=function(){},p=function(e){return e};t.default=function(){if("ie"!==c.browser.name){var e=(0,a.default)("user",p,o);return e.start(!0),e.isFallback&&console.warn("browser doesnt support local storage synchronization, falling back to cookie synchronization."),e}return{trigger:function(){},isRunning:!1,stop:function(){}}}(),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&"object"===(void 0===e?"undefined":i(e))&&!Array.isArray(e)}function o(e,t){if(!t||!Object.keys(t).length)return e;var n=Object.assign({},e);return r(e)&&r(t)&&Object.keys(t).forEach(function(i){if(r(t[i]))if(i in e)n[i]=o(e[i],t[i]);else{var a;Object.assign(n,(a={},a[i]=t[i],a))}else{var s;Object.assign(n,(s={},s[i]=t[i],s))}}),n}t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.mergeDeep=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.quotes&&e.quotes.length>0}function i(e){return e.sources&&e.sources.length>0}function a(e){return e.headers&&e.headers.length>0}function s(e){return e.references&&e.references.length>0}function u(e,t,n,r,o,i){return[{id:void 0,arrayIndex:0,key:v.default.generate(),enabled:r,link:{name:"All"},percent:0,source:o,locked:!1,sourceType:o}].concat(e.map(function(e,t){return Object.assign({},e,{arrayIndex:t+1,key:v.default.generate(),enabled:r,active:!1,locked:!1,ignored:!1,highlighted:!1,plagiarism_percent:n[e.id],percent:n[e.id],sourceType:o,isCache:e.index===i,isExternalReport:e.hasExternalReport&&"text/html"===e.contentType})}).filter(function(e){return Object.keys(n).includes(""+e.id)}).sort(function(e,t){return t.percent-e.percent}).map(function(e,t){return h({},e,{arrayIndex:t+1})}))}function c(e){return!!e.sources.length&&(o(e)?"quSources":s(e)?"reSources":!a(e)&&"sources")}function l(e){return e.map(function(e){return Object.assign({},e,{active:!1,locked:!1,activeSources:a(e)?[]:e.sources.map(function(t){return Object.assign({},{id:t,enabled:!o(e)&&!s(e),ignored:!1})}),key:v.default.generate(),isPlagiarism:!o(e)&&!s(e)&&!a(e)&&i(e),isQuote:!a(e)&&o(e)&&i(e),isReference:!a(e)&&s(e)&&i(e),isHeader:a(e),sourcesType:c(e),text:(0,y.htmlDecode)(e.text)})})}function p(e,t){var n={sources:{},quSources:{},reSources:{},approximately:{sources:0,quSources:0,reSources:0}};return e.forEach(function(e){var r=c(e),o=100/t*(e.end-e.start+1);r&&(e.sources.forEach(function(e){n[r][e]=(n[r][e]||0)+o}),n.approximately[c(e)]+=o)}),Object.keys(n).forEach(function(e){return Object.keys(n[e]).forEach(function(t){n[e][t]=(0,_.default)(n[e][t],2)})}),n}function f(e,t){var n=e.reportData.indexes.filter(function(e){return"cache"===e.type})[0];e.reportData.sources=e.reportData.sources.map(function(e,t){return e.id=void 0!==e.id?e.id:t,e});var r=w(e.reportData.sources,n),o=E(e.reportData.nodes,r),i=l(o),a=p(i,e.reportData.length),s=e.reportData.indexes,c=u(r,t,a.sources,!0,"sources",n&&n.id),f=u(r,t,a.quSources,!1,"quSources",n&&n.id),d=u(r,t,a.reSources,!1,"reSources",n&&n.id);return(0,g.mergeDeep)(e,{ready:!0,reportData:{indexes:s,sources:c,quSources:f,reSources:d,nodes:i,approximatelyPercents:a.approximately}})}function d(e,t,n){var r=e.reportData.nodes.map(function(e){if(e.sourcesType===n){var r=h({},e),o=[];return t.forEach(function(t){-1!==e.sources.indexOf(t.id)&&o.push(t.arrayIndex)}),r.sources=o,r}return e});return(0,g.mergeDeep)(e,{reportData:{nodes:r}})}t.__esModule=!0,t.cleanCacheSources=void 0;var h=Object.assign||function(e){for(var t=1;ti.length?void r(e,o):e.length===i.length&&e.index!==t?void r(e,o):void 0:void r(e,o,Object.keys(n).length)}),Object.keys(n).map(function(e){return n[e]})},E=function(e,t){return e.map(function(e){var n=h({},e);return n.sources=n.sources.map(function(e){var n=void 0;return t.forEach(function(t){t.lastIndex!==e&&t.rewriteIndex!==e||(n=t.id)}),n}).filter(function(e){return"number"==typeof e}).sort(function(e,t){return e-t}),n.sources=n.sources.filter(function(e,t){return n.sources.indexOf(e)===t}),n})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0,t.default=void 0;var u,c,l,p,f,d=Object.assign||function(e){for(var t=1;t1){for(var u=Array(a),c=0;c",e):2===arguments.length&&"function"==typeof t?U(e,t):1===arguments.length&&"string"==typeof e?o(e):o(t).apply(null,arguments)}function o(e){return function(t,n,r){return r&&"function"==typeof r.value?(r.value=U(e,r.value),r.enumerable=!1,r.configurable=!0,r):Lt(e).apply(this,arguments)}}function i(e,t,n){var r="string"==typeof e?e:e.name||"",o="function"==typeof e?e:t,i="function"==typeof e?t:n;return gt("function"==typeof o,"`runInAction` expects a function"),gt(0===o.length,"`runInAction` expects a function without arguments"),gt("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),B(r,o,i,void 0)}function a(e){return"function"==typeof e&&!0===e.isMobxAction}function s(e,t,n){function r(){i(u)}var o,i,s;"string"==typeof e?(o=e,i=t,s=n):"function"==typeof e&&(o=e.name||"Autorun@"+yt(),i=e,s=t),We(i,"autorun methods cannot have modifiers"),gt("function"==typeof i,"autorun expects a function"),gt(!1===a(i),"Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action."),s&&(i=i.bind(s));var u=new Xt(o,function(){this.track(r)});return u.schedule(),u.getDisposer()}function u(e,t,n,r){var o,i,a,u;return"string"==typeof e?(o=e,i=t,a=n,u=r):"function"==typeof e&&(o="When@"+yt(),i=e,a=t,u=n),s(o,function(e){if(i.call(u)){e.dispose();var t=ee();a.call(u),te(t)}})}function c(e,t,n){return bt("`autorunUntil` is deprecated, please use `when`."),u.apply(null,arguments)}function l(e,t,n,r){function o(){s(p)}var i,s,u,c;"string"==typeof e?(i=e,s=t,u=n,c=r):"function"==typeof e&&(i=e.name||"AutorunAsync@"+yt(),s=e,u=t,c=n),gt(!1===a(s),"Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action."),void 0===u&&(u=1),c&&(s=s.bind(c));var l=!1,p=new Xt(i,function(){l||(l=!0,setTimeout(function(){l=!1,p.isDisposed||p.track(o)},u))});return p.schedule(),p.getDisposer()}function p(e,t,n,o,i,a){function s(){if(!w.isDisposed){var e=!1;w.track(function(){var t=v(w);e=St(y,_,t),_=t}),g&&p&&l(_,w),g||!0!==e||l(_,w),g&&(g=!1)}}var u,c,l,p,f,d;"string"==typeof e?(u=e,c=t,l=n,p=o,f=i,d=a):(u=e.name||t.name||"Reaction@"+yt(),c=e,l=t,p=n,f=o,d=i),void 0===p&&(p=!1),void 0===f&&(f=0);var h=Ue(c,tn.Reference),m=h[0],v=h[1],y=m===tn.Structure;d&&(v=v.bind(d),l=r(u,l.bind(d)));var g=!0,b=!1,_=void 0,w=new Xt(u,function(){f<1?s():b||(b=!0,setTimeout(function(){b=!1,s()},f))});return w.schedule(),w.getDisposer()}function f(e,t,n,r){return("function"==typeof e||He(e))&&arguments.length<3?"function"==typeof t?d(e,t,void 0):d(e,void 0,t):Ft.apply(null,arguments)}function d(e,t,n){var r=Ue(e,tn.Recursive),o=r[0],i=r[1];return new zt(i,n,o===tn.Structure,i.name,t)}function h(e,t){gt("function"==typeof e&&1===e.length,"createTransformer expects a function that accepts one argument");var n={},r=Gt.resetId,o=function(r){function o(t,n){r.call(this,function(){return e(n)},null,!1,"Transformer-"+e.name+"-"+t,void 0),this.sourceIdentifier=t,this.sourceObject=n}return jt(o,r),o.prototype.onBecomeUnobserved=function(){var e=this.value;r.prototype.onBecomeUnobserved.call(this),delete n[this.sourceIdentifier],t&&t(e,this.sourceObject)},o}(zt);return function(e){r!==Gt.resetId&&(n={},r=Gt.resetId);var t=m(e),i=n[t];return i?i.get():(i=n[t]=new o(t,e),i.get())}}function m(e){if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object, got: "+e);var t=e.$transformId;return void 0===t&&(t=yt(),Tt(e,"$transformId",t)),t}function v(e,t){return $()||console.warn("[mobx.expr] 'expr' should only be used inside other reactive functions."),f(e,t).get()}function y(e){for(var t=[],n=1;n=2,"extendObservable expected 2 or more arguments"),gt("object"==typeof e,"extendObservable expects an object as first argument"),gt(!fn(e),"extendObservable should not be used on maps, use map.merge instead"),t.forEach(function(t){gt("object"==typeof t,"all arguments of extendObservable should be objects"),gt(!k(t),"extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540"),g(e,t,tn.Recursive,null)}),e}function g(e,t,n,r){var o=Qe(e,r,n);for(var i in t)if(kt(t,i)){if(e===t&&!At(e,i))continue;var a=Object.getOwnPropertyDescriptor(t,i);et(o,i,a)}return e}function b(e,t){return _(st(e,t))}function _(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=wt(e.observing).map(_)),t}function w(e,t){return E(st(e,t))}function E(e){var t={name:e.name};return oe(e)&&(t.observers=ie(e).map(E)),t}function C(e,t,n){return"function"==typeof n?O(e,t,n):x(e,t)}function x(e,t){return xt(e)&&!at(e)?(bt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),ut(P(e)).intercept(t)):ut(e).intercept(t)}function O(e,t,n){return xt(e)&&!at(e)?(bt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),y(e,{property:e[t]}),O(e,t,n)):ut(e,t).intercept(n)}function S(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(!1===at(e))return!1;var n=st(e,t);return Yt(n)}return Yt(e)}function k(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(Xe(e)||fn(e))throw new Error("[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");if(at(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return at(e)||!!e.$mobx||qt(e)||Zt(e)||Yt(e)}function T(e,t,n){return gt(arguments.length>=2&&arguments.length<=3,"Illegal decorator config",t),Mt(e,t),gt(!n||!n.get,"@observable can not be used on getters, use @computed instead"),Ut.apply(null,arguments)}function P(e,t){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return T.apply(null,arguments);if(gt(arguments.length<3,"observable expects zero, one or two arguments"),k(e))return e;var n=Ue(e,tn.Recursive),r=n[0],o=n[1];switch(r===tn.Reference?Bt.Reference:A(o)){case Bt.Array:case Bt.PlainObject:return Ve(o,r);case Bt.Reference:case Bt.ComplexObject:return new bn(o,r);case Bt.ComplexFunction:throw new Error("[mobx.observable] To be able to make a function reactive it should not have arguments. If you need an observable reference to a function, use `observable(asReference(f))`");case Bt.ViewFunction:return bt("Use `computed(expr)` instead of `observable(expr)`"),f(e,t)}gt(!1,"Illegal State")}function A(e){return null===e||void 0===e?Bt.Reference:"function"==typeof e?e.length?Bt.ComplexFunction:Bt.ViewFunction:Nt(e)?Bt.Array:"object"==typeof e?xt(e)?Bt.PlainObject:Bt.ComplexObject:Bt.Reference}function M(e,t,n,r){return"function"==typeof n?D(e,t,n,r):R(e,t,n)}function R(e,t,n){return xt(e)&&!at(e)?(bt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),ut(P(e)).observe(t,n)):ut(e).observe(t,n)}function D(e,t,n,r){return xt(e)&&!at(e)?(bt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),y(e,{property:e[t]}),D(e,t,n,r)):ut(e,t).observe(n,r)}function I(e,t,n){function r(r){return t&&n.push([e,r]),r}if(void 0===t&&(t=!0),void 0===n&&(n=null),k(e)){if(t&&null===n&&(n=[]),t&&null!==e&&"object"==typeof e)for(var o=0,i=n.length;o0,"actions should have valid names, got: '"+e+"'");var n=function(){return B(e,t,this,arguments)};return n.isMobxAction=!0,n}function B(e,t,n,r){gt(!Yt(Gt.trackingDerivation),"Computed values or transformers should not invoke actions or trigger other side effects");var o,i=ge();if(i){o=Date.now();var a=r&&r.length||0,s=new Array(a);if(a>0)for(var u=0;u0}function ie(e){return e.observers}function ae(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function se(e,t){if(1===e.observers.length)e.observers.length=0,ue(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function ue(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,Gt.pendingUnobservations.push(e))}function ce(){Gt.inBatch++}function le(){if(1===Gt.inBatch){for(var e=Gt.pendingUnobservations,t=0;t0||Qt(ve)}function ve(){Gt.isRunningReactions=!0;for(var e=Gt.pendingReactions,t=0;e.length>0;){if(++t===Jt)throw re(),new Error("Reaction doesn't converge to a stable state after "+Jt+" iterations. Probably there is a cycle in the reactive function: "+e[0]);for(var n=e.splice(0),r=0,o=n.length;r0}function Te(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),_t(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Pe(e,t){var n=ee();try{for(var r=e.interceptors,o=0,i=r.length;o0}function Me(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),_t(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Re(e,t){var n=ee(),r=e.changeListeners;if(r){r=r.slice();for(var o=0,i=r.length;o=this.length,value:tt?" (... and "+(e.length-t)+"more)":""):""}function Ct(e){return null!==e&&"object"==typeof e}function xt(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Ot(){for(var e=arguments[0],t=1,n=arguments.length;t=0;r--)if(!Dt(e[r],t[r]))return!1;return!0}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(Rt(e).length!==Rt(t).length)return!1;for(var o in e){if(!(o in t))return!1;if(!Dt(e[o],t[o]))return!1}return!0}return e===t}function It(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return Ct(e)&&!0===e[n]}}function Nt(e){return Array.isArray(e)||Xe(e)}var jt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};t.extras={allowStateChanges:W,getAtom:st,getDebugName:ct,getDependencyTree:b,getObserverTree:w,isComputingDerivation:$,isSpyEnabled:ge,resetGlobalState:re,spyReport:be,spyReportEnd:we,spyReportStart:_e,trackTransitions:Ce,setReactionScheduler:ye},t._={getAdministration:ut,resetGlobalState:re},"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx(e.exports);var Lt=lt(function(e,t,n,o,i){Tt(e,t,r(o&&1===o.length?o[0]:n.name||t||"",n))},function(e){return this[e]},function(){gt(!1,"It is not allowed to assign new values to @action fields")},!1,!0);t.action=r,t.runInAction=i,t.isAction=a,t.autorun=s,t.when=u,t.autorunUntil=c,t.autorunAsync=l,t.reaction=p;var Ft=lt(function(e,t,n,r,o){gt(void 0!==o,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.");var i=o.get,a=o.set;gt("function"==typeof i,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'");var s=!1;r&&1===r.length&&!0===r[0].asStructure&&(s=!0),tt(Qe(e,void 0,tn.Recursive),t,s?je(i):i,!1,a)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){this.$mobx.values[e].set(t)},!1,!0);t.computed=f,t.createTransformer=h,t.expr=v,t.extendObservable=y,t.intercept=C,t.isComputed=S,t.isObservable=k;var Ut=lt(function(e,t,n){var r=q(!0);"function"==typeof n&&(n=Ne(n)),tt(Qe(e,void 0,tn.Recursive),t,n,!0,void 0),z(r)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){ot(this,e,t)},!0,!1);t.observable=P;var Bt;!function(e){e[e.Reference=0]="Reference",e[e.PlainObject=1]="PlainObject",e[e.ComplexObject=2]="ComplexObject",e[e.Array=3]="Array",e[e.ViewFunction=4]="ViewFunction",e[e.ComplexFunction=5]="ComplexFunction"}(Bt||(Bt={})),t.observe=M,t.toJS=I,t.toJSlegacy=N,t.toJSON=j,t.whyRun=F,t.useStrict=H,t.isStrictModeEnabled=V;var Ht=function(){function e(e){void 0===e&&(e="Atom@"+yt()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Wt.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){pe(this)},e.prototype.reportChanged=function(){Oe("propagatingAtomChange",null,!1),fe(this),Se(!1)},e.prototype.toString=function(){return this.name},e}();t.BaseAtom=Ht;var Vt=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+yt()),void 0===n&&(n=On),void 0===r&&(r=On),e.call(this,t),this.name=t,this.onBecomeObservedHandler=n,this.onBecomeUnobservedHandler=r,this.isPendingUnobservation=!1,this.isBeingTracked=!1}return jt(t,e),t.prototype.reportObserved=function(){return ce(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),le(),!!Gt.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(Ht);t.Atom=Vt;var Wt,qt=It("Atom",Ht),zt=function(){function e(e,t,n,r,o){this.derivation=e,this.scope=t,this.compareStructural=n,this.dependenciesState=Wt.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Wt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+yt(),this.value=void 0,this.isComputing=!1,this.isRunningSetter=!1,this.name=r||"ComputedValue@"+yt(),o&&(this.setter=U(r+"-setter",o))}return e.prototype.peek=function(){this.isComputing=!0;var e=q(!1),t=this.derivation.call(this.scope);return z(e),this.isComputing=!1,t},e.prototype.peekUntracked=function(){var e=!0;try{var t=this.peek();return e=!1,t}finally{e&&X(this)}},e.prototype.onBecomeStale=function(){he(this)},e.prototype.onBecomeUnobserved=function(){gt(this.dependenciesState!==Wt.NOT_TRACKING,"INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row"),Q(this),this.value=void 0},e.prototype.get=function(){gt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),ce(),1===Gt.inBatch?Y(this)&&(this.value=this.peekUntracked()):(pe(this),Y(this)&&this.trackAndCompute()&&de(this));var e=this.value;return le(),e},e.prototype.recoverFromError=function(){this.isComputing=!1},e.prototype.set=function(e){if(this.setter){gt(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else gt(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){ge()&&be({object:this,type:"compute",fn:this.derivation,target:this.scope});var e=this.value,t=this.value=G(this,this.peek);return St(this.compareStructural,t,e)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return s(function(){var i=n.get();if(!r||t){var a=ee();e(i,o),te(a)}r=!1,o=i})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.whyRun=function(){var e=Boolean(Gt.trackingDerivation),t=wt(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),n=wt(ie(this).map(function(e){return e.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===Wt.NOT_TRACKING?" * This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).\n":" * This computation will re-run if any of the following observables changes:\n "+Et(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n * If the outcome of this computation changes, the following observers will be re-run:\n "+Et(n)+"\n")},e}(),Yt=It("ComputedValue",zt);!function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(Wt||(Wt={})),t.IDerivationState=Wt,t.untracked=Z;var $t=["mobxGuid","resetId","spyListeners","strictMode","runId"],Kt=function(){function e(){this.version=4,this.trackingDerivation=null,this.runId=0,this.mobxGuid=0,this.inTransaction=0,this.isRunningReactions=!1,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[]}return e}(),Gt=function(){var e=new Kt;if(n.__mobservableTrackingStack||n.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(n.__mobxGlobal&&n.__mobxGlobal.version!==e.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");return n.__mobxGlobal?n.__mobxGlobal:n.__mobxGlobal=e}(),Xt=function(){function e(e,t){void 0===e&&(e="Reaction@"+yt()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=Wt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+yt(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Gt.pendingReactions.push(this),ce(),me(),le())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(this._isScheduled=!1,Y(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&ge()&&be({object:this,type:"scheduled-reaction"})))},e.prototype.track=function(e){ce();var t,n=ge();n&&(t=Date.now(),_e({object:this,type:"reaction",fn:e})),this._isRunning=!0,G(this,e),this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Q(this),n&&we({time:Date.now()-t}),le()},e.prototype.recoverFromError=function(){this._isRunning=!1,this._isTrackPending=!1},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ce(),Q(this),le()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=wt(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+Et(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"},e}();t.Reaction=Xt;var Jt=100,Qt=function(e){return e()},Zt=It("Reaction",Xt),en={spyReportEnd:!0};t.spy=Ee,t.transaction=xe;var tn;!function(e){e[e.Recursive=0]="Recursive",e[e.Reference=1]="Reference",e[e.Structure=2]="Structure",e[e.Flat=3]="Flat"}(tn||(tn={})),t.ValueMode=tn,t.asReference=Ne,Ne.mobxModifier=tn.Reference,t.asStructure=je,je.mobxModifier=tn.Structure,t.asFlat=Le,Le.mobxModifier=tn.Flat,t.asMap=Fe;var nn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),rn=0,on=function(){function e(){}return e}();on.prototype=[];var an=function(){function e(e,t,n,r){this.mode=t,this.array=n,this.owned=r,this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new Ht(e||"ObservableArray@"+yt())}return e.prototype.makeReactiveArrayItem=function(e){return We(e,"Array values cannot have modifiers"),this.mode===tn.Flat||this.mode===tn.Reference?e:Ve(e,this.mode,this.atom.name+"[..]")},e.prototype.intercept=function(e){return Te(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Me(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;e!==t&&(e>t?this.spliceWithArray(t,0,new Array(e-t)):this.spliceWithArray(e,t-e))},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>rn&&$e(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){K();var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:void 0===t||null===t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=[]),ke(this)){var o=Pe(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return Cn;t=o.removedCount,n=o.added}n=n.map(this.makeReactiveArrayItem,this);var i=n.length-t;this.updateArrayLength(r,i);var a=(s=this.values).splice.apply(s,[e,t].concat(n));return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),a;var s},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&ge(),o=Ae(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&_e(i),this.atom.reportChanged(),o&&Re(this,i),r&&we()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&ge(),o=Ae(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&_e(i),this.atom.reportChanged(),o&&Re(this,i),r&&we()},e}(),sn=function(e){function t(t,n,r,o){void 0===o&&(o=!1),e.call(this);var i=new an(r,n,this,o);Pt(this,"$mobx",i),t&&t.length?(i.updateArrayLength(0,t.length),i.values=t.map(i.makeReactiveArrayItem,i),i.notifyArraySplice(0,i.values.slice(),Cn)):i.values=[],nn&&Object.defineProperty(i.array,"0",un)}return jt(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=v.createElement(F,{child:t});if(e){var u=E.get(e);a=u._processChildContext(u._context)}else a=k;var l=f(n);if(l){var p=l._currentElement,h=p.props.child;if(A(h,t)){var m=l._renderedComponent.getPublicInstance(),y=r&&function(){r.call(m)};return U._updateRootComponent(l,s,a,n,y),m}U.unmountComponentAtNode(n)}var g=o(n),b=g&&!!i(g),_=c(n),w=b&&!l&&!_,C=U._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(C),C},render:function(e,t,n){return U._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||d("40");var t=f(e);if(!t){c(e),1===e.nodeType&&e.hasAttribute(R);return!1}return delete j[t._instance.rootID],S.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(l(t)||d("41"),i){var s=o(t);if(C.canReuseMarkup(e,s))return void g.precacheNode(n,s);var u=s.getAttribute(C.CHECKSUM_ATTR_NAME);s.removeAttribute(C.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(C.CHECKSUM_ATTR_NAME,u);var p=e,f=r(p,c),m=" (client) "+p.substring(f-20,f+20)+"\n (server) "+c.substring(f-20,f+20);t.nodeType===I&&d("42",m)}if(t.nodeType===I&&d("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else P(t,e),g.precacheNode(n,t.firstChild)}};e.exports=U},function(e,t,n){"use strict";var r=n(3),o=n(58),i=(n(1),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?i.EMPTY:o.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});e.exports=i},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.exports=r},function(e,t,n){"use strict";function r(e,t){return null==t&&o("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=n(3);n(1);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(225);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(22),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function o(e){return e._wrapperState.valueTracker}function i(e,t){e._wrapperState.valueTracker=t}function a(e){e._wrapperState.valueTracker=null}function s(e){var t;return e&&(t=r(e)?""+e.checked:e.value),t}var u=n(15),c={_getTrackerFromNode:function(e){return o(u.getInstanceFromNode(e))},track:function(e){if(!o(e)){var t=u.getNodeFromInstance(e),n=r(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),c=""+t[n];t.hasOwnProperty(n)||"function"!=typeof s.get||"function"!=typeof s.set||(Object.defineProperty(t,n,{enumerable:s.enumerable,configurable:!0,get:function(){return s.get.call(this)},set:function(e){c=""+e,s.set.call(this,e)}}),i(e,{getValue:function(){return c},setValue:function(e){c=""+e},stopTracking:function(){a(e),delete t[n]}}))}},updateValueIfChanged:function(e){if(!e)return!1;var t=o(e);if(!t)return c.track(e),!0;var n=t.getValue(),r=s(u.getNodeFromInstance(e));return r!==n&&(t.setValue(r),!0)},stopTracking:function(e){var t=o(e);t&&t.stopTracking()}};e.exports=c},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||!1===e)n=c.create(i);else if("object"==typeof e){var s=e,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var f="";f+=r(s._owner),a("130",null==u?u:typeof u,f)}"string"==typeof s.type?n=l.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(s)}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(3),s=n(12),u=n(453),c=n(220),l=n(222),p=(n(536),n(1),n(8),function(e){this.construct(e)});s(p.prototype,u,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={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};e.exports=r},function(e,t,n){"use strict";var r=n(22),o=n(101),i=n(102),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,o(t))})),e.exports=a},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;var d,h,m=0,v=""===t?l:t+p;if(Array.isArray(e))for(var y=0;y=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(14),u=n.n(s),c=n(19),l=n.n(c),p=n(41),f=n.n(p),d=n(53),h=Object.assign||function(e){for(var t=1;t outside a "),f()(void 0!==t,'You must specify the "to" property');var a=this.context.router.history,s="string"==typeof t?n.i(d.b)(t,null,null,a.location):t,c=a.createHref(s);return u.a.createElement("a",h({},i,{onClick:this.handleClick,href:c,ref:o}))},t}(u.a.Component);v.propTypes={onClick:l.a.func,target:l.a.string,replace:l.a.bool,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired,innerRef:l.a.oneOfType([l.a.string,l.a.func])},v.defaultProps={replace:!1},v.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired,createHref:l.a.func.isRequired}).isRequired}).isRequired},t.a=v},function(e,t,n){"use strict";var r=n(240);t.a=r.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(510);n.d(t,"BrowserRouter",function(){return r.a});var o=n(511);n.d(t,"HashRouter",function(){return o.a});var i=n(236);n.d(t,"Link",function(){return i.a});var a=n(512);n.d(t,"MemoryRouter",function(){return a.a});var s=n(513);n.d(t,"NavLink",function(){return s.a});var u=n(514);n.d(t,"Prompt",function(){return u.a});var c=n(515);n.d(t,"Redirect",function(){return c.a});var l=n(237);n.d(t,"Route",function(){return l.a});var p=n(143);n.d(t,"Router",function(){return p.a});var f=n(516);n.d(t,"StaticRouter",function(){return f.a});var d=n(517);n.d(t,"Switch",function(){return d.a});var h=n(518);n.d(t,"generatePath",function(){return h.a});var m=n(519);n.d(t,"matchPath",function(){return m.a});var v=n(520);n.d(t,"withRouter",function(){return v.a})},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(57),s=n.n(a),u=n(41),c=n.n(u),l=n(14),p=n.n(l),f=n(19),d=n.n(f),h=n(145),m=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var l=t.route,p=(o||l.location).pathname;return n.i(h.a)(p,{path:i,strict:a,exact:s,sensitive:u},l.match)},t.prototype.componentWillMount=function(){s()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),s()(!(this.props.component&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored"),s()(!(this.props.render&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){s()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),s()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,s=i.route,u=i.staticContext,c=this.props.location||s.location,l={match:e,location:c,history:a,staticContext:u};return r?e?p.a.createElement(r,l):null:o?e?o(l):null:"function"==typeof n?n(l):n&&!v(n)?p.a.Children.only(n):null},t}(p.a.Component);y.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},y.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},y.childContextTypes={router:d.a.object.isRequired},t.a=y},function(e,t,n){"use strict";var r=n(212),o=n.n(r),i={},a=0,s=function(e){var t=e,n=i[t]||(i[t]={});if(n[e])return n[e];var r=o.a.compile(e);return a<1e4&&(n[e]=r,a++),r},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:s(e)(t,{pretty:!0})};t.a=u},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function o(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function i(){}var a=n(77),s=n(12),u=n(245),c=(n(246),n(92));n(1),n(537);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&a("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,s(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}},function(e,t,n){"use strict";function r(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=t.call(e);return r.test(o)}catch(e){return!1}}function o(e){var t=c(e);if(t){var n=t.childIDs;l(e),n.forEach(o)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function s(e){var t,n=O.getDisplayName(e),r=O.getElement(e),o=O.getOwnerID(e);return o&&(t=O.getDisplayName(o)),i(n,r&&r._source,t)}var u,c,l,p,f,d,h,m=n(77),v=n(43),y=(n(1),n(8),"function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys));if(y){var g=new Map,b=new Set;u=function(e,t){g.set(e,t)},c=function(e){return g.get(e)},l=function(e){g.delete(e)},p=function(){return Array.from(g.keys())},f=function(e){b.add(e)},d=function(e){b.delete(e)},h=function(){return Array.from(b.keys())}}else{var _={},w={},E=function(e){return"."+e},C=function(e){return parseInt(e.substr(1),10)};u=function(e,t){var n=E(e);_[n]=t},c=function(e){var t=E(e);return _[t]},l=function(e){var t=E(e);delete _[t]},p=function(){return Object.keys(_).map(C)},f=function(e){var t=E(e);w[t]=!0},d=function(e){var t=E(e);delete w[t]},h=function(){return Object.keys(w).map(C)}}var x=[],O={onSetChildren:function(e,t){var n=c(e);n||m("144"),n.childIDs=t;for(var r=0;r",n=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID,r=this.render.bind(this),o=null,i=!1,a=function(){return o=new f.default.Reaction(t+"#"+n+".render()",function(){if(!i&&(i=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{h.default.Component.prototype.forceUpdate.call(e),t=!1}finally{t&&o.dispose()}}}),s.$mobx=o,e.render=s,s()},s=function(){i=!1;var t=void 0;return o.track(function(){w&&(e.__$mobRenderStart=Date.now()),t=f.default.extras.allowStateChanges(!1,r),w&&(e.__$mobRenderEnd=Date.now())}),t};this.render=a}},componentWillUnmount:function(){if(!0!==E&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,w)){var e=o(this);e&&C&&C.delete(e),x.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){w&&i(this)},componentDidUpdate:function(){w&&i(this)},shouldComponentUpdate:function(e,t){if(E&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t)return!0;var n=Object.keys(this.props);if(n.length!==Object.keys(e).length)return!0;for(var r=void 0,o=n.length-1;r=n[o];o--){var i=e[r];if(i!==this.props[r])return!0;if(i&&"object"===(void 0===i?"undefined":l(i))&&!f.default.isObservable(i))return!0}return!1}}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n1)for(var r=1;r6?s-6:0),c=6;c>",a=a||r,null==n[r]){if(t){var s=null===n[r]?"null":"undefined";return new Error("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+s+"`.")}return null}return e.apply(void 0,[n,r,o,i,a].concat(u))})}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function i(e){var t=void 0===e?"undefined":c(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":o(t,e)?"symbol":t}function a(e){var t=i(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function s(e,t){return r(function(n,r,o,s,u){return(0,l.untracked)(function(){if(e&&i(n[r])===t.toLowerCase())return null;var s=void 0;switch(t){case"Array":s=l.isObservableArray;break;case"Object":s=l.isObservableObject;break;case"Map":s=l.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var c=n[r];if(!s(c)){var p=a(c),f=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+u+"` of type `"+p+"` supplied to `"+o+"`, expected `mobx.Observable"+t+"`"+f+".")}return null})})}function u(e,t){return r(function(n,r,o,i,a){for(var u=arguments.length,c=Array(u>5?u-5:0),p=5;p.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=v.createElement(F,{child:t});if(e){var u=E.get(e);a=u._processChildContext(u._context)}else a=k;var l=f(n);if(l){var p=l._currentElement,h=p.props.child;if(A(h,t)){var m=l._renderedComponent.getPublicInstance(),y=r&&function(){r.call(m)};return U._updateRootComponent(l,s,a,n,y),m}U.unmountComponentAtNode(n)}var g=o(n),b=g&&!!i(g),_=c(n),w=b&&!l&&!_,C=U._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(C),C},render:function(e,t,n){return U._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||d("40");var t=f(e);if(!t){c(e),1===e.nodeType&&e.hasAttribute(R);return!1}return delete j[t._instance.rootID],S.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(l(t)||d("41"),i){var s=o(t);if(C.canReuseMarkup(e,s))return void g.precacheNode(n,s);var u=s.getAttribute(C.CHECKSUM_ATTR_NAME);s.removeAttribute(C.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(C.CHECKSUM_ATTR_NAME,u);var p=e,f=r(p,c),m=" (client) "+p.substring(f-20,f+20)+"\n (server) "+c.substring(f-20,f+20);t.nodeType===I&&d("42",m)}if(t.nodeType===I&&d("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else P(t,e),g.precacheNode(n,t.firstChild)}};e.exports=U},function(e,t,n){"use strict";var r=n(6),o=n(64),i=(n(0),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?i.EMPTY:o.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});e.exports=i},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.exports=r},function(e,t,n){"use strict";function r(e,t){return null==t&&o("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=n(6);n(0);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(268);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(23),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function o(e){return e._wrapperState.valueTracker}function i(e,t){e._wrapperState.valueTracker=t}function a(e){e._wrapperState.valueTracker=null}function s(e){var t;return e&&(t=r(e)?""+e.checked:e.value),t}var u=n(16),c={_getTrackerFromNode:function(e){return o(u.getInstanceFromNode(e))},track:function(e){if(!o(e)){var t=u.getNodeFromInstance(e),n=r(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),c=""+t[n];t.hasOwnProperty(n)||"function"!=typeof s.get||"function"!=typeof s.set||(Object.defineProperty(t,n,{enumerable:s.enumerable,configurable:!0,get:function(){return s.get.call(this)},set:function(e){c=""+e,s.set.call(this,e)}}),i(e,{getValue:function(){return c},setValue:function(e){c=""+e},stopTracking:function(){a(e),delete t[n]}}))}},updateValueIfChanged:function(e){if(!e)return!1;var t=o(e);if(!t)return c.track(e),!0;var n=t.getValue(),r=s(u.getNodeFromInstance(e));return r!==n&&(t.setValue(r),!0)},stopTracking:function(e){var t=o(e);t&&t.stopTracking()}};e.exports=c},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||!1===e)n=c.create(i);else if("object"==typeof e){var s=e,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var f="";f+=r(s._owner),a("130",null==u?u:typeof u,f)}"string"==typeof s.type?n=l.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(s)}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(6),s=n(10),u=n(608),c=n(263),l=n(265),p=(n(684),n(0),n(4),function(e){this.construct(e)});s(p.prototype,u,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={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};e.exports=r},function(e,t,n){"use strict";var r=n(23),o=n(109),i=n(110),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,o(t))})),e.exports=a},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;var d,h,m=0,v=""===t?l:t+p;if(Array.isArray(e))for(var y=0;y=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(11),u=n.n(s),c=n(27),l=n.n(c),p=n(24),f=n.n(p),d=Object.assign||function(e){for(var t=1;t outside a ");var i=this.context.router.history.createHref("string"==typeof t?{pathname:t}:t);return u.a.createElement("a",d({},o,{onClick:this.handleClick,href:i,ref:n}))},t}(u.a.Component);m.propTypes={onClick:l.a.func,target:l.a.string,replace:l.a.bool,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired,innerRef:l.a.oneOfType([l.a.string,l.a.func])},m.defaultProps={replace:!1},m.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired,createHref:l.a.func.isRequired}).isRequired}).isRequired},t.a=m},function(e,t,n){"use strict";var r=n(281);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(21),s=n.n(a),u=n(24),c=n.n(u),l=n(11),p=n.n(l),f=n(27),d=n.n(f),h=n(169),m=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var l=t.route,p=(o||l.location).pathname;return i?n.i(h.a)(p,{path:i,strict:a,exact:s,sensitive:u}):l.match},t.prototype.componentWillMount=function(){s()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),s()(!(this.props.component&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored"),s()(!(this.props.render&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){s()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),s()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,s=i.route,u=i.staticContext,c=this.props.location||s.location,l={match:e,location:c,history:a,staticContext:u};return r?e?p.a.createElement(r,l):null:o?e?o(l):null:n?"function"==typeof n?n(l):v(n)?null:p.a.Children.only(n):null},t}(p.a.Component);y.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},y.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},y.childContextTypes={router:d.a.object.isRequired},t.a=y},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function o(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function i(){}var a=n(84),s=n(10),u=n(285),c=(n(286),n(104));n(0),n(685);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&a("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,s(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}},function(e,t,n){"use strict";function r(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=t.call(e);return r.test(o)}catch(e){return!1}}function o(e){var t=c(e);if(t){var n=t.childIDs;l(e),n.forEach(o)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function s(e){var t,n=O.getDisplayName(e),r=O.getElement(e),o=O.getOwnerID(e);return o&&(t=O.getDisplayName(o)),i(n,r&&r._source,t)}var u,c,l,p,f,d,h,m=n(84),v=n(45),y=(n(0),n(4),"function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys));if(y){var g=new Map,b=new Set;u=function(e,t){g.set(e,t)},c=function(e){return g.get(e)},l=function(e){g.delete(e)},p=function(){return Array.from(g.keys())},f=function(e){b.add(e)},d=function(e){b.delete(e)},h=function(){return Array.from(b.keys())}}else{var _={},w={},E=function(e){return"."+e},C=function(e){return parseInt(e.substr(1),10)};u=function(e,t){var n=E(e);_[n]=t},c=function(e){var t=E(e);return _[t]},l=function(e){var t=E(e);delete _[t]},p=function(){return Object.keys(_).map(C)},f=function(e){var t=E(e);w[t]=!0},d=function(e){var t=E(e);delete w[t]},h=function(){return Object.keys(w).map(C)}}var x=[],O={onSetChildren:function(e,t){var n=c(e);n||m("144"),n.childIDs=t;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),u=a||s;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var c=void 0;if(i.length){var l=i[i.length-1];c="."===l||".."===l||""===l}else c=!1;for(var p=0,f=i.length;f>=0;f--){var d=i[f];"."===d?o(i,f):".."===d?(o(i,f),p++):p&&(o(i,f),p--)}if(!u)for(;p--;p)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";function r(e,t){for(var n,r=0,i="";!n;)i+=e(t>>4*r&15|o()),n=t.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=v.createElement(F,{child:t});if(e){var u=E.get(e);a=u._processChildContext(u._context)}else a=k;var l=f(n);if(l){var p=l._currentElement,h=p.props.child;if(A(h,t)){var m=l._renderedComponent.getPublicInstance(),y=r&&function(){r.call(m)};return U._updateRootComponent(l,s,a,n,y),m}U.unmountComponentAtNode(n)}var g=o(n),b=g&&!!i(g),_=c(n),w=b&&!l&&!_,C=U._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(C),C},render:function(e,t,n){return U._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||d("40");var t=f(e);if(!t){c(e),1===e.nodeType&&e.hasAttribute(R);return!1}return delete j[t._instance.rootID],S.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(l(t)||d("41"),i){var s=o(t);if(C.canReuseMarkup(e,s))return void g.precacheNode(n,s);var u=s.getAttribute(C.CHECKSUM_ATTR_NAME);s.removeAttribute(C.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(C.CHECKSUM_ATTR_NAME,u);var p=e,f=r(p,c),m=" (client) "+p.substring(f-20,f+20)+"\n (server) "+c.substring(f-20,f+20);t.nodeType===I&&d("42",m)}if(t.nodeType===I&&d("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else P(t,e),g.precacheNode(n,t.firstChild)}};e.exports=U},function(e,t,n){"use strict";var r=n(7),o=n(69),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?i.EMPTY:o.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});e.exports=i},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.exports=r},function(e,t,n){"use strict";function r(e,t){return null==t&&o("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=n(7);n(2);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(309);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(25),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function o(e){return e._wrapperState.valueTracker}function i(e,t){e._wrapperState.valueTracker=t}function a(e){e._wrapperState.valueTracker=null}function s(e){var t;return e&&(t=r(e)?""+e.checked:e.value),t}var u=n(17),c={_getTrackerFromNode:function(e){return o(u.getInstanceFromNode(e))},track:function(e){if(!o(e)){var t=u.getNodeFromInstance(e),n=r(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),c=""+t[n];t.hasOwnProperty(n)||"function"!=typeof s.get||"function"!=typeof s.set||(Object.defineProperty(t,n,{enumerable:s.enumerable,configurable:!0,get:function(){return s.get.call(this)},set:function(e){c=""+e,s.set.call(this,e)}}),i(e,{getValue:function(){return c},setValue:function(e){c=""+e},stopTracking:function(){a(e),delete t[n]}}))}},updateValueIfChanged:function(e){if(!e)return!1;var t=o(e);if(!t)return c.track(e),!0;var n=t.getValue(),r=s(u.getNodeFromInstance(e));return r!==n&&(t.setValue(r),!0)},stopTracking:function(e){var t=o(e);t&&t.stopTracking()}};e.exports=c},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||!1===e)n=c.create(i);else if("object"==typeof e){var s=e,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var f="";f+=r(s._owner),a("130",null==u?u:typeof u,f)}"string"==typeof s.type?n=l.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(s)}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(7),s=n(13),u=n(756),c=n(304),l=n(306),p=(n(820),n(2),n(9),function(e){this.construct(e)});s(p.prototype,u,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={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};e.exports=r},function(e,t,n){"use strict";var r=n(25),o=n(117),i=n(118),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,o(t))})),e.exports=a},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;var d,h,m=0,v=""===t?l:t+p;if(Array.isArray(e))for(var y=0;y1){for(var u=Array(a),c=0;c":"<"+e+">",s[e]=!a.firstChild),s[e]?f[e]:null}var o=n(22),i=n(1),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],c=[1,"","
"],l=[3,"","
"],p=[1,'',""],f={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){f[e]=p,s[e]=!0}),e.exports=r},function(e,t,n){"use strict";function r(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=r},function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;e.exports=r},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(348),i=/^ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(350);e.exports=r},function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=r},function(e,t,n){e.exports=n.p+"logo-on-white-4ae10676b15e573d5f4ba85e13352ffb.svg"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.localData,n=e.container,r=e.basename,o={container:n,basename:r},s=new g.default,p={externalReportStore:s,routerHistoryStore:f.default},d=a({},p,{bootstrapOptions:o}),m=(0,h.default)(t),y=m.value;s.setLocalData(y),(0,c.render)(u.default.createElement(l.Provider,d,i(v.default,{localData:y})),n)}var i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c0?this.renderOptionLabel(r[0]):this.props.choosenSource;return c("div",{className:"ExternalReport__top-bar"},void 0,c("div",{className:"ExternalReport__header-container"},void 0,c("div",{className:"ExternalReport__header"},void 0,m,c(p.NavLink,{to:"/check-document-report/"+t,className:"ExternalReport__header-close-button"}))),c("div",{className:"ExternalReport__navigation-container"},void 0,c("div",{className:"ExternalReport__navigation"},void 0,c(d.default,{visibleRows:5,options:n,className:"ExternalReport__navigation-select",choosenValue:o,onChange:this.handleChooseSource}))))},t}(l.Component),s.propTypes={parentReportId:l.PropTypes.object,sources:l.PropTypes.array,choosenSource:l.PropTypes.string,onSourceChange:l.PropTypes.func,indexes:l.PropTypes.array},s.propDefault={indexes:[]},u);t.default=v,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var s,u,c,l,p=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c4&&void 0!==arguments[4])||arguments[4];i(this,e),o(this,"id",u,this),o(this,"groupId",c,this),o(this,"userRoleInGroup",l,this),o(this,"defaultFolder",p,this),o(this,"checked",f,this),o(this,"documentsStore",d,this),this.defaultFolder=t,this.id=t.id,this.groupId=n,this.documentsStore=new g.default(n,s),this.userRoleInGroup=r,a&&(this.parentSaveDocuments=a,this.loadDocuments({}))}return e.prototype.loadDocuments=function(e){var t=this,n=e.limit,r=e.filterId,o=e.filterEmail,i=e.filterName;return this.documentsStore.loadItems({groupId:this.groupId,folderId:this.id,limit:n||parseInt(window.localStorage.getItem("plagDocumentsDisplayStep"),10)||0,filterId:r||this.userRoleInGroup===w.ROLE_MEMBER?_.default.profile.id:void 0,filterEmail:o,filterName:i},"documents",C.default.getFolderDocuments,"id").then(function(e){return t.parentSaveDocuments(e.documents,t.id)})},e.prototype.changeChecked=function(e){this.checked=e},e.prototype.updateFolder=function(e){this.defaultFolder=e},e.prototype.setFolderName=function(e){var t=h({},this.defaultFolder,{name:e});this.defaultFolder=h({},t)},e.prototype.addShare=function(e){this.defaultFolder.shares.push(e)},e.prototype.removeShare=function(e){this.defaultFolder.shares=this.defaultFolder.shares.filter(function(t){return t.userId!==e})},m(e,[{key:"folder",get:function(){return this.defaultFolder}},{key:"creator",get:function(){return this.defaultFolder.creator||{}}},{key:"shares",get:function(){return this.defaultFolder.shares||[]}},{key:"teacher",get:function(){return this.defaultFolder.creator&&(this.defaultFolder.creator.name||this.defaultFolder.creator.email.split("@")[0])}}]),e}(),u=a(s.prototype,"id",[v.observable],{enumerable:!0,initializer:null}),c=a(s.prototype,"groupId",[v.observable],{enumerable:!0,initializer:null}),l=a(s.prototype,"userRoleInGroup",[v.observable],{enumerable:!0,initializer:null}),p=a(s.prototype,"defaultFolder",[v.observable],{enumerable:!0,initializer:function(){return{}}}),f=a(s.prototype,"checked",[v.observable],{enumerable:!0,initializer:function(){return!1}}),d=a(s.prototype,"documentsStore",[v.observable],{enumerable:!0,initializer:null}),a(s.prototype,"folder",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"folder"),s.prototype),a(s.prototype,"creator",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"creator"),s.prototype),a(s.prototype,"shares",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"shares"),s.prototype),a(s.prototype,"teacher",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"teacher"),s.prototype),a(s.prototype,"loadDocuments",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"loadDocuments"),s.prototype),a(s.prototype,"changeChecked",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"changeChecked"),s.prototype),a(s.prototype,"updateFolder",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"updateFolder"),s.prototype),a(s.prototype,"setFolderName",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"setFolderName"),s.prototype),a(s.prototype,"addShare",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"addShare"),s.prototype),a(s.prototype,"removeShare",[v.action],Object.getOwnPropertyDescriptor(s.prototype,"removeShare"),s.prototype),s);t.default=x,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}t.__esModule=!0,t.default=void 0;var s,u,c,l,p,f,d,h,m,v,y=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[]).forEach(function(n){var r=n.id,o=x.default.getDocumentStore(r),i=t.foldersStore.getItem(e);n.folderId?t.foldersStore.getItem(n.folderId).documentsStore.removeItem(r):t.documentsStore.removeItem(r),o.moveToFolder(e),void 0!==e?(i.documentsStore.addItem({id:r}),N.default.moveDocToFolder(r,e).catch(function(e){return console.error(e)})):(t.documentsStore.addItem({id:r}),N.default.moveDocToRootFolder(r).catch(function(e){return console.error(e)}))})},e.prototype.shareFolderToUser=function(e,t,n){var r=this,o=this.foldersStore.getItem(e);N.default.shareFolderToUser(t,e).then(function(e){e.success&&(o.addShare({userId:n,id:e.data.id}),r.foldersStore.rewriteItem(o))}).catch(function(e){return console.error(e)})},e.prototype.unshareFolderFromUser=function(e,t,n){var r=this.foldersStore.getItem(e);r.removeShare(n),this.foldersStore.rewriteItem(r),N.default.unshareFolderFromUser(t).catch(function(e){return console.error(e)})},e.prototype.decrementBalance=function(e){if(null!==this.defaultGroup.limit)return void(this.defaultGroup.limit-=Math.max(0,e));this.defaultGroup.balance+=Math.min(0,this.defaultGroup.bonusBalance-e),this.defaultGroup.bonusBalance=Math.max(0,this.defaultGroup.bonusBalance-e)},y(e,[{key:"folders",get:function(){return this.foldersStore.items.sort(function(e,t){return parseInt(t.folder.createdAt,10)-parseInt(e.folder.createdAt,10)})}},{key:"checkedFolders",get:function(){return this.folders.filter(function(e){return e.checked})}},{key:"members",get:function(){return this.membersStore.items.sort(function(e,t){return parseInt(t.addedToGroup,10)-parseInt(e.addedToGroup,10)})}},{key:"transactions",get:function(){return this.transactionsStore.items.sort(function(e,t){return parseInt(t.createdAt,10)-parseInt(e.createdAt,10)})}},{key:"integrationStatistic",get:function(){return this.statisticStore.items.sort(function(e,t){return parseInt(t.createdAt,10)-parseInt(e.createdAt,10)})}},{key:"group",get:function(){return this.defaultGroup}},{key:"userRole",get:function(){return this.defaultGroup&&this.defaultGroup.currentUserRole}},{key:"userRoleTitle",get:function(){switch(this.userRole){case R.ROLE_OWNER:return"Owner";case R.ROLE_PAYER:return"Teacher";case R.ROLE_MEMBER:return"Member";default:return""}}},{key:"balance",get:function(){return this.defaultGroup.balance+this.defaultGroup.bonusBalance}},{key:"membersLeft",get:function(){return this.defaultGroup.maxMembers||this.defaultGroup.curMembers||2===this.defaultGroup.balanceType?this.defaultGroup.maxMembers-this.defaultGroup.curMembers:null}},{key:"owner",get:function(){return this.membersStore.items.filter(function(e){return e.role===R.ROLE_OWNER})[0]||{}}}]),e}(),u=a(s.prototype,"defaultGroup",[g.observable],{enumerable:!0,initializer:function(){return{}}}),c=a(s.prototype,"transactionsStore",[g.observable],{enumerable:!0,initializer:null}),l=a(s.prototype,"membersStore",[g.observable],{enumerable:!0,initializer:null}),p=a(s.prototype,"foldersStore",[g.observable],{enumerable:!0,initializer:null}),f=a(s.prototype,"documentsStore",[g.observable],{enumerable:!0,initializer:null}),d=a(s.prototype,"checkedAllFolders",[g.observable],{enumerable:!0,initializer:function(){return!1}}),h=a(s.prototype,"statisticStore",[g.observable],{enumerable:!0,initializer:null}),a(s.prototype,"folders",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"folders"),s.prototype),a(s.prototype,"checkedFolders",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"checkedFolders"),s.prototype),a(s.prototype,"members",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"members"),s.prototype),a(s.prototype,"transactions",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"transactions"),s.prototype),a(s.prototype,"integrationStatistic",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"integrationStatistic"),s.prototype),a(s.prototype,"group",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"group"),s.prototype),a(s.prototype,"userRole",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"userRole"),s.prototype),a(s.prototype,"userRoleTitle",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"userRoleTitle"),s.prototype),a(s.prototype,"balance",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"balance"),s.prototype),a(s.prototype,"membersLeft",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"membersLeft"),s.prototype),a(s.prototype,"owner",[g.computed],Object.getOwnPropertyDescriptor(s.prototype,"owner"),s.prototype),a(s.prototype,"loadMembers",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"loadMembers"),s.prototype),a(s.prototype,"loadTransactions",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"loadTransactions"),s.prototype),a(s.prototype,"loadFolders",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"loadFolders"),s.prototype),m=a(s.prototype,"loadDocuments",[g.action],{enumerable:!0,initializer:function(){var e=this;return function(t){var n=t.limit,r=t.filterId,o=t.filterEmail,i=t.filterName;return e.documentsStore.loadItems({groupId:e.group.id,folderId:"root",limit:n||parseInt(window.localStorage.getItem("plagDocumentsDisplayStep"),10)||D.LIST_DISPLAY_STEPS[0],filterId:r||e.userRole!==R.ROLE_OWNER?E.default.profile.id:void 0,filterEmail:o,filterName:i},"documents",N.default.getFolderDocuments,"id").then(function(t){return e.saveDocsToDocumentsStore(t.documents,"root")})}}}),v=a(s.prototype,"saveDocsToDocumentsStore",[g.action],{enumerable:!0,initializer:function(){var e=this;return function(t,n){var r=e.group;t.forEach(function(t){switch(t.groupId=r.id,t.folderId="root"===n?void 0:n,e.userRole){case R.ROLE_OWNER:t.authorId=t.userId,t.userRoleInGroup=e.userRole,x.default.setDocument(t.id,t);break;case R.ROLE_PAYER:case R.ROLE_MEMBER:x.default.setDocument(t.id,t)}})}}}),a(s.prototype,"addMember",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"addMember"),s.prototype),a(s.prototype,"removeMember",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"removeMember"),s.prototype),a(s.prototype,"editMember",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"editMember"),s.prototype),a(s.prototype,"removeMemberRequest",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"removeMemberRequest"),s.prototype),a(s.prototype,"checkAllFolders",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"checkAllFolders"),s.prototype),a(s.prototype,"createFolder",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"createFolder"),s.prototype),a(s.prototype,"removeFolder",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"removeFolder"),s.prototype),a(s.prototype,"editFolder",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"editFolder"),s.prototype),a(s.prototype,"moveDocuments",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"moveDocuments"),s.prototype),a(s.prototype,"shareFolderToUser",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"shareFolderToUser"),s.prototype),a(s.prototype,"unshareFolderFromUser",[g.action],Object.getOwnPropertyDescriptor(s.prototype,"unshareFolderFromUser"),s.prototype),s);t.default=j,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}t.__esModule=!0,t.default=void 0;var a,s,u,c,l=function(){function e(e,t){for(var n=0;n0&&n.pages&&(e.attachedFilesTotalPages-=n.pages)}}}),a(s.prototype,"loadNewFileText",[h.action],Object.getOwnPropertyDescriptor(s.prototype,"loadNewFileText"),s.prototype),a(s.prototype,"uploadNewFiles",[h.action],Object.getOwnPropertyDescriptor(s.prototype,"uploadNewFiles"),s.prototype),a(s.prototype,"serverFilesValidate",[h.action],Object.getOwnPropertyDescriptor(s.prototype,"serverFilesValidate"),s.prototype),a(s.prototype,"startsServerFilesValidate",[h.action],Object.getOwnPropertyDescriptor(s.prototype,"startsServerFilesValidate"),s.prototype),a(s.prototype,"serverFileValidate",[h.action],Object.getOwnPropertyDescriptor(s.prototype,"serverFileValidate"),s.prototype),s);t.default=new I,t.AttachedFilesStore=I},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}t.__esModule=!0,t.ExternalReportStore=void 0;var s,u,c,l,p=function(){function e(e,t){for(var n=0;n0,activeSources:e.activeSources.map(function(e){return e.id===t?Object.assign({},e,{enabled:!e.enabled}):e})})}),r))}function s(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sources",o=e.nodes,i=e[r];return i.filter(function(e){return e.enabled}).length===i.length-2&&(i[0].enabled=!0),(0,y.mergeDeep)(e,(n={},n[r]=i.map(function(e){return e.id===t?Object.assign({},e,{enabled:!e.enabled}):e}),n.nodes=o.map(function(e){return Object.assign({},e,{enabled:!0,activeSources:e.activeSources.map(function(e){return e.id===t?Object.assign({},e,{enabled:!e.enabled}):e})})}),n))}function u(e,t,n){var r;return(0,y.mergeDeep)(e,(r={},r[n]=e[n].map(function(e){return Object.assign({},e,{enabled:t})}),r))}function c(e,t,n,r){var o=e.nodes;return Object.assign({},e,{nodes:o.map(function(e){return Object.assign({},e,{active:(e.sources.includes(t)||e.active&&r)&&e.sourcesType===n})})})}function l(e,t,n){var r=e.nodes;return Object.assign({},e,{nodes:r.map(function(e){return Object.assign({},e,{active:Boolean(t.filter(function(t){return e.sources.includes(t)}).length&&e.sourcesType===n)})})})}function p(e){var t=e.nodes;return Object.assign({},e,{nodes:t.map(function(e){return Object.assign({},e,{active:!1})})})}function f(e,t,n,r){var o,i=e[n];return"boolean"!=typeof r?e:Object.assign({},e,(o={sources:e.sources.map(function(e){return Object.assign({},e,{locked:!1})}),quSources:e.quSources.map(function(e){return Object.assign({},e,{locked:!1})}),reSources:e.reSources.map(function(e){return Object.assign({},e,{locked:!1})})},o[n]=i.map(function(e){return Object.assign({},e,{locked:!!t.includes(e.id)&&r})}),o))}function d(e,t,n,r){var o=e.nodes;return"boolean"!=typeof r?e:Object.assign({},e,{nodes:o.map(function(e){return Object.assign({},e,{locked:!(!e.sources.includes(t)||e.sourcesType!==n)&&r})})})}function h(e,t,n,r){var o=e.nodes;return"boolean"!=typeof r?e:Object.assign({},e,{nodes:o.map(function(e){return Object.assign({},e,{locked:!(!t.filter(function(t){return e.sources.includes(t)}).length||e.sourcesType!==n)&&r})})})}function m(e){return Object.assign({},e,{sources:e.sources.map(function(e){return Object.assign({},e,{locked:!1})}),quSources:e.quSources.map(function(e){return Object.assign({},e,{locked:!1})}),reSources:e.reSources.map(function(e){return Object.assign({},e,{locked:!1})}),nodes:e.nodes.map(function(e){return Object.assign({},e,{locked:!1})})})}function v(e,t,n){var r;return Object.assign({},e,(r={},r[t]=e[t].map(function(e){return Object.assign({},e,{locked:n!==e.sourcesType&&e.locked})}),r))}t.__esModule=!0,t.ignoreSourceInNodes=r,t.ignoreSourceInSources=o,t.populatePlagPercent=i,t.disableSource=a,t.enableSource=s,t.toggleAllSources=u,t.enableNodesHighlight=c,t.enableAllNodesHighlight=l,t.disableNodesHighlight=p,t.changeSourcesLocked=f,t.changeNodeLocked=d,t.changeNodesLocked=h,t.unlockAll=m,t.unlockInstance=v;var y=n(206)},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function e(t){return Object.keys(t).forEach(function(n){t[n]&&"object"===r(t[n])?e(t[n]):(void 0===t[n]||Number.isNaN(t[n]))&&delete t[n]}),t};t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){return Object.keys(e).filter(function(t){return e[t]&&"object"===r(e[t])&&!Array.isArray(e[t])}).forEach(function(t){var n="";Object.keys(e[t]).forEach(function(r){void 0===e[t][r]&&isNaN(e[t][r])&&null===e[t][r]||(n+="&"+t+"["+r+"]="+e[t][r])}),e[t]=n.slice(1)}),e},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return parseFloat(e.toString().replace(/\.\d+/,function(e){return e.slice(0,t+1)}))},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(124),i=r(o),a=n(96),s=r(a),u=n(125),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(u),l={getFolderDocuments:function(e){var t=e.limit,n=e.groupId,r=e.folderId,o=e.lastId,a=e.filterName;return(0,i.default)({method:"get",url:"/api/v1/groups/texts/"+n+"/folders/"+r+"/",data:{lastTextId:o,filterName:a,limit:t},isAuth:!0}).then(s.default).then(c.folderDocumentsParser)},getFolders:function(e){var t=e.groupId,n=e.lastId,r=e.limit;return(0,i.default)({method:"get",url:"/api/v1/folders/list/",data:{groupId:t,lastId:n,limit:r},isAuth:!0}).then(s.default).then(c.foldersParser)},createFolder:function(e,t,n){return(0,i.default)({method:"post",url:"/api/v1/folders/create/",data:{name:e,groupId:t,parent:n},isAuth:!0}).then(s.default).then(c.folderParser)},removeFolder:function(e){return(0,i.default)({method:"delete",url:"/api/v1/folders/delete/"+e+"/",isAuth:!0}).then(s.default).then(c.folderParser)},updateFolder:function(e,t,n){return(0,i.default)({method:"post",url:"/api/v1/folders/update/"+e+"/",data:{id:e,name:t,parent:n},isAuth:!0}).then(s.default)},moveDocToFolder:function(e,t){return(0,i.default)({method:"post",url:"/api/v1/folders/move/"+e+"/"+t+"/",data:{id:e,folderId:t},isAuth:!0}).then(s.default)},moveDocToRootFolder:function(e){return(0,i.default)({method:"post",url:"/api/v1/folders/move-to-root/"+e+"/",data:{id:e},isAuth:!0}).then(s.default)},shareFolderToUser:function(e,t){return(0,i.default)({method:"post",url:"/api/v1/folders/share/"+t+"/",data:{id:t,memberId:e},isAuth:!0}).then(s.default)},unshareFolderFromUser:function(e){return(0,i.default)({method:"delete",url:"/api/v1/folders-shares/delete/"+e+"/",isAuth:!0}).then(s.default)}};t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(124),i=r(o),a=n(96),s=r(a),u=n(125),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(u),l={getGroups:function(){return(0,i.default)({method:"get",url:"/api/v1/groups/list/",isAuth:!0}).then(s.default).then(c.groupsParser)},getGroup:function(e){return(0,i.default)({method:"get",url:"/api/v1/groups/view/"+e+"/",isAuth:!0}).then(s.default).then(c.singleGroupParser)},getGroupTransactions:function(e){var t=e.groupId,n=e.lastId,r=e.limit,o=e.filterName;return(0,i.default)({method:"get",url:"/api/v1/groups/transactions/"+t+"/",data:{lastId:n,limit:r,filterName:o},isAuth:!0}).then(s.default).then(c.groupTransactionsParser)},getGroupMembers:function(e){var t=e.groupId,n=e.lastId,r=e.limit,o=e.filterEmail,a=e.filterId,u=e.filterName,l=e.offset;return(0,i.default)({method:"get",url:"/api/v1/groups/members/"+t+"/",data:{lastId:n,limit:r,filterEmail:o,filterName:u,filterId:a,offset:l},isAuth:!0}).then(s.default).then(c.membersParser)},addGroupMember:function(e){var t=e.id,n=e.name,r=e.email,o=e.limit,a=e.role;return(0,i.default)({method:"post",url:"/api/v1/groups/add-member/"+t+"/",data:{name:n,email:r,role:a,limit:o},isAuth:!0}).then(s.default).then(c.addMemberParser)},editGroupMember:function(e){var t=e.id,n=e.limit,r=e.role;return(0,i.default)({method:"post",url:"/api/v1/groups/edit-member/"+t+"/",data:{role:r,limit:n},isAuth:!0}).then(s.default).then(c.addMemberParser)},removeGroupMember:function(e){return(0,i.default)({method:"delete",url:"/api/v1/groups/remove-member/"+e+"/",isAuth:!0}).then(s.default)}};t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c=a.length)break;c=a[u++]}else{if(u=a.next(),u.done)break;c=u.value}var l=c;if(i=r.getIncludedNodeData(o,t,e,l))break}break;default:i=!1}}),i},r.renderOverlaps=function(){var e=r.props,t=e.searchNode,n=e.overlapClassName;r._reactInternalInstance._hostParent._hostNode.offsetHeight;if(t)return Array.prototype.slice.call(t.children).map(function(e){var o=r.checkNodeIncludes(e);if(o){var i=e.offsetTop/(t.offsetHeight/100)*(r.overlapBarRef.offsetHeight/100),a=e.offsetHeight/(t.offsetHeight/100)*(r.overlapBarRef.offsetHeight/100);return l("div",{className:(0,v.default)("OverlapBar__overlap-part",n,r.props.featuresClassNames[o.id]),style:{position:"absolute",height:a+"px",top:i+"px"}})}})},a=n,i(r,a)}return a(t,e),t.prototype.componentWillReceiveProps=function(e){e.searchNode.offsetHeight<=(this.overlapBarRef&&this.overlapBarRef.offsetHeight)&&!e.offHeightDeprecateRender&&(this.deprecateRender=!0)},t.prototype.getIncludedNodeData=function(e,t,n,r){var o=!1;switch(e){case"include":n[t].includes(r)&&(o={field:t,id:r});break;case"only":n[t]===r&&(o={field:t,id:r});break;default:return!1}return o},t.prototype.render=function(){var e=this;if(this.deprecateRender)return!1;var t=this.props.barClassName;return f.default.createElement("div",{ref:function(t){e.overlapBarRef=t},className:(0,v.default)("OverlapBar",t)},this.renderOverlaps())},t}(p.Component),u.propTypes={offHeightDeprecateRender:h.default.bool,barClassName:h.default.string,overlapClassName:h.default.string,searchNode:h.default.object,nodeChildFeature:h.default.object,featuresClassNames:h.default.object,nodeChildsCompareStyle:h.default.string},u.defaultProps={nodeChildsCompareStyle:"include",offHeightDeprecateRender:!1},c);t.default=y,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c1){for(var u=Array(a),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};a()(l.a,"Browser history needs a DOM");var t=window.history,r=n.i(l.f)(),i=!n.i(l.g)(),h=e.forceRefresh,m=void 0!==h&&h,v=e.getUserConfirmation,y=void 0===v?l.c:v,g=e.keyLength,b=void 0===g?6:g,_=e.basename?n.i(u.e)(n.i(u.d)(e.basename)):"",w=function(e){var t=e||{},r=t.key,i=t.state,a=window.location,c=a.pathname,l=a.search,p=a.hash,f=c+l+p;return o()(!_||n.i(u.f)(f,_),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+f+'" to begin with "'+_+'".'),_&&(f=n.i(u.g)(f,_)),n.i(s.a)(f,i,r)},E=function(){return Math.random().toString(36).substr(2,b)},C=n.i(c.a)(),x=function(e){f(W,e),W.length=t.length,C.notifyListeners(W.location,W.action)},O=function(e){n.i(l.h)(e)||T(w(e.state))},S=function(){T(w(d()))},k=!1,T=function(e){if(k)k=!1,x();else{C.confirmTransitionTo(e,"POP",y,function(t){t?x({action:"POP",location:e}):P(e)})}},P=function(e){var t=W.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(k=!0,N(o))},A=w(d()),M=[A.key],R=function(e){return _+n.i(u.a)(e)},D=function(e,i){o()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==i),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a=n.i(s.a)(e,i,E(),W.location);C.confirmTransitionTo(a,"PUSH",y,function(e){if(e){var n=R(a),i=a.key,s=a.state;if(r)if(t.pushState({key:i,state:s},null,n),m)window.location.href=n;else{var u=M.indexOf(W.location.key),c=M.slice(0,-1===u?0:u+1);c.push(a.key),M=c,x({action:"PUSH",location:a})}else o()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=n}})},I=function(e,i){o()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==i),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a=n.i(s.a)(e,i,E(),W.location);C.confirmTransitionTo(a,"REPLACE",y,function(e){if(e){var n=R(a),i=a.key,s=a.state;if(r)if(t.replaceState({key:i,state:s},null,n),m)window.location.replace(n);else{var u=M.indexOf(W.location.key);-1!==u&&(M[u]=a.key),x({action:"REPLACE",location:a})}else o()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(n)}})},N=function(e){t.go(e)},j=function(){return N(-1)},L=function(){return N(1)},F=0,U=function(e){F+=e,1===F?(n.i(l.d)(window,"popstate",O),i&&n.i(l.d)(window,"hashchange",S)):0===F&&(n.i(l.e)(window,"popstate",O),i&&n.i(l.e)(window,"hashchange",S))},B=!1,H=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=C.setPrompt(e);return B||(U(1),B=!0),function(){return B&&(B=!1,U(-1)),t()}},V=function(e){var t=C.appendListener(e);return U(1),function(){U(-1),t()}},W={length:t.length,action:"POP",location:A,createHref:R,push:D,replace:I,go:N,goBack:j,goForward:L,block:H,listen:V};return W};t.a=h},function(e,t,n){"use strict";var r=n(103),o=n.n(r),i=n(41),a=n.n(i),s=n(97),u=n(72),c=n(126),l=n(210),p=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(l.a,"Hash history needs a DOM");var t=window.history,r=n.i(l.b)(),i=e.getUserConfirmation,v=void 0===i?l.c:i,y=e.hashType,g=void 0===y?"slash":y,b=e.basename?n.i(u.e)(n.i(u.d)(e.basename)):"",_=f[g],w=_.encodePath,E=_.decodePath,C=function(){var e=E(d());return o()(!b||n.i(u.f)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=n.i(u.g)(e,b)),n.i(s.a)(e)},x=n.i(c.a)(),O=function(e){p(Y,e),Y.length=t.length,x.notifyListeners(Y.location,Y.action)},S=!1,k=null,T=function(){var e=d(),t=w(e);if(e!==t)m(t);else{var r=C(),o=Y.location;if(!S&&n.i(s.b)(o,r))return;if(k===n.i(u.a)(r))return;k=null,P(r)}},P=function(e){if(S)S=!1,O();else{x.confirmTransitionTo(e,"POP",v,function(t){t?O({action:"POP",location:e}):A(e)})}},A=function(e){var t=Y.location,r=I.lastIndexOf(n.i(u.a)(t));-1===r&&(r=0);var o=I.lastIndexOf(n.i(u.a)(e));-1===o&&(o=0);var i=r-o;i&&(S=!0,F(i))},M=d(),R=w(M);M!==R&&m(R);var D=C(),I=[n.i(u.a)(D)],N=function(e){return"#"+w(b+n.i(u.a)(e))},j=function(e,t){o()(void 0===t,"Hash history cannot push state; it is ignored");var r=n.i(s.a)(e,void 0,void 0,Y.location);x.confirmTransitionTo(r,"PUSH",v,function(e){if(e){var t=n.i(u.a)(r),i=w(b+t);if(d()!==i){k=t,h(i);var a=I.lastIndexOf(n.i(u.a)(Y.location)),s=I.slice(0,-1===a?0:a+1);s.push(t),I=s,O({action:"PUSH",location:r})}else o()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),O()}})},L=function(e,t){o()(void 0===t,"Hash history cannot replace state; it is ignored");var r=n.i(s.a)(e,void 0,void 0,Y.location);x.confirmTransitionTo(r,"REPLACE",v,function(e){if(e){var t=n.i(u.a)(r),o=w(b+t);d()!==o&&(k=t,m(o));var i=I.indexOf(n.i(u.a)(Y.location));-1!==i&&(I[i]=t),O({action:"REPLACE",location:r})}})},F=function(e){o()(r,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return F(-1)},B=function(){return F(1)},H=0,V=function(e){H+=e,1===H?n.i(l.d)(window,"hashchange",T):0===H&&n.i(l.e)(window,"hashchange",T)},W=!1,q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return W||(V(1),W=!0),function(){return W&&(W=!1,V(-1)),t()}},z=function(e){var t=x.appendListener(e);return V(1),function(){V(-1),t()}},Y={length:t.length,action:"POP",location:D,createHref:N,push:j,replace:L,go:F,goBack:U,goForward:B,block:q,listen:z};return Y};t.a=v},function(e,t,n){"use strict";var r=n(103),o=n.n(r),i=n(72),a=n(97),s=n(126),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,r=e.initialEntries,p=void 0===r?["/"]:r,f=e.initialIndex,d=void 0===f?0:f,h=e.keyLength,m=void 0===h?6:h,v=n.i(s.a)(),y=function(e){c(A,e),A.length=A.entries.length,v.notifyListeners(A.location,A.action)},g=function(){return Math.random().toString(36).substr(2,m)},b=l(d,0,p.length-1),_=p.map(function(e){return"string"==typeof e?n.i(a.a)(e,void 0,g()):n.i(a.a)(e,void 0,e.key||g())}),w=i.a,E=function(e,r){o()(!("object"===(void 0===e?"undefined":u(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=n.i(a.a)(e,r,g(),A.location);v.confirmTransitionTo(i,"PUSH",t,function(e){if(e){var t=A.index,n=t+1,r=A.entries.slice(0);r.length>n?r.splice(n,r.length-n,i):r.push(i),y({action:"PUSH",location:i,index:n,entries:r})}})},C=function(e,r){o()(!("object"===(void 0===e?"undefined":u(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=n.i(a.a)(e,r,g(),A.location);v.confirmTransitionTo(i,"REPLACE",t,function(e){e&&(A.entries[A.index]=i,y({action:"REPLACE",location:i}))})},x=function(e){var n=l(A.index+e,0,A.entries.length-1),r=A.entries[n];v.confirmTransitionTo(r,"POP",t,function(e){e?y({action:"POP",location:r,index:n}):y()})},O=function(){return x(-1)},S=function(){return x(1)},k=function(e){var t=A.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return v.setPrompt(e)},P=function(e){return v.appendListener(e)},A={length:_.length,action:"POP",location:_[b],index:b,entries:_,createHref:w,push:E,replace:C,go:x,goBack:O,goForward:S,canGo:k,block:T,listen:P};return A};t.a=p},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,n){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s8&&_<=11),C=32,x=String.fromCharCode(C),O={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},S=!1,k=null,T={eventTypes:O,extractEvents:function(e,t,n,r){return[u(e,t,n,r),p(e,t,n,r)]}};e.exports=T},function(e,t,n){"use strict";var r=n(215),o=n(22),i=(n(31),n(342),n(495)),a=n(349),s=n(352),u=(n(8),s(function(e){return a(e)})),c=!1,l="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){c=!0}void 0===document.documentElement.style.cssFloat&&(l="styleFloat")}var f={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=0===r.indexOf("--"),a=e[r];null!=a&&(n+=u(r)+":",n+=i(r,a,t,o)+";")}return n||null},setValueForStyles:function(e,t,n){var o=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=0===a.indexOf("--"),u=i(a,t[a],n,s);if("float"!==a&&"cssFloat"!==a||(a=l),s)o.setProperty(a,u);else if(u)o[a]=u;else{var p=c&&r.shorthandPropertyExpansions[a];if(p)for(var f in p)o[f]="";else o[a]=""}}}};e.exports=f},function(e,t,n){"use strict";function r(e,t,n){var r=S.getPooled(M.change,e,t,n);return r.type="change",E.accumulateTwoPhaseDispatches(r),r}function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=r(D,e,T(e));O.batchedUpdates(a,t)}function a(e){w.enqueueEvents(e),w.processEventQueue(!1)}function s(e,t){R=e,D=t,R.attachEvent("onchange",i)}function u(){R&&(R.detachEvent("onchange",i),R=null,D=null)}function c(e,t){var n=k.updateValueIfChanged(e),r=!0===t.simulated&&j._allowSimulatedPassThrough;if(n||r)return e}function l(e,t){if("topChange"===e)return t}function p(e,t,n){"topFocus"===e?(u(),s(t,n)):"topBlur"===e&&u()}function f(e,t){R=e,D=t,R.attachEvent("onpropertychange",h)}function d(){R&&(R.detachEvent("onpropertychange",h),R=null,D=null)}function h(e){"value"===e.propertyName&&c(D,e)&&i(e)}function m(e,t,n){"topFocus"===e?(d(),f(t,n)):"topBlur"===e&&d()}function v(e,t,n){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return c(D,n)}function y(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){if("topClick"===e)return c(t,n)}function b(e,t,n){if("topInput"===e||"topChange"===e)return c(t,n)}function _(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var r=""+t.value;t.getAttribute("value")!==r&&t.setAttribute("value",r)}}}var w=n(73),E=n(74),C=n(22),x=n(15),O=n(37),S=n(42),k=n(231),T=n(139),P=n(140),A=n(233),M={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},R=null,D=null,I=!1;C.canUseDOM&&(I=P("change")&&(!document.documentMode||document.documentMode>8));var N=!1;C.canUseDOM&&(N=P("input")&&(!document.documentMode||document.documentMode>9));var j={eventTypes:M,_allowSimulatedPassThrough:!0,_isInputEventSupported:N,extractEvents:function(e,t,n,i){var a,s,u=t?x.getNodeFromInstance(t):window;if(o(u)?I?a=l:s=p:A(u)?N?a=b:(a=v,s=m):y(u)&&(a=g),a){var c=a(e,t,n);if(c){return r(c,n,i)}}s&&s(e,u,t),"topBlur"===e&&_(t,u)}};e.exports=j},function(e,t,n){"use strict";var r=n(3),o=n(54),i=n(22),a=n(345),s=n(34),u=(n(1),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||r("56"),t||r("57"),"HTML"===e.nodeName&&r("58"),"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});e.exports=u},function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=r},function(e,t,n){"use strict";var r=n(74),o=n(15),i=n(99),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u;if(s.window===s)u=s;else{var c=s.ownerDocument;u=c?c.defaultView||c.parentWindow:window}var l,p;if("topMouseOut"===e){l=t;var f=n.relatedTarget||n.toElement;p=f?o.getClosestInstanceFromNode(f):null}else l=null,p=t;if(l===p)return null;var d=null==l?u:o.getNodeFromInstance(l),h=null==p?u:o.getNodeFromInstance(p),m=i.getPooled(a.mouseLeave,l,n,s);m.type="mouseleave",m.target=d,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,p,n,s);return v.type="mouseenter",v.target=h,v.relatedTarget=d,r.accumulateEnterLeaveDispatches(m,v,l,p),[m,v]}};e.exports=s},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(12),i=n(49),a=n(230);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},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;e1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(55),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}};e.exports=c},function(e,t,n){"use strict";(function(t){function r(e,t,n,r){var o=void 0===e[n];null!=t&&o&&(e[n]=i(t,!0))}var o=n(56),i=n(232),a=(n(131),n(141)),s=n(235);n(8);void 0!==t&&n.i({NODE_ENV:"production"});var u={instantiateChildren:function(e,t,n,o){if(null==e)return null;var i={};return s(e,r,i),i},updateChildren:function(e,t,n,r,s,u,c,l,p){if(t||e){var f,d;for(f in t)if(t.hasOwnProperty(f)){d=e&&e[f];var h=d&&d._currentElement,m=t[f];if(null!=d&&a(h,m))o.receiveComponent(d,m,s,l),t[f]=d;else{d&&(r[f]=o.getHostNode(d),o.unmountComponent(d,!1));var v=i(m,!0);t[f]=v;var y=o.mountComponent(v,s,u,c,l,p);n.push(y)}}for(f in e)!e.hasOwnProperty(f)||t&&t.hasOwnProperty(f)||(d=e[f],r[f]=o.getHostNode(d),o.unmountComponent(d,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];o.unmountComponent(r,t)}}};e.exports=u}).call(t,n(36))},function(e,t,n){"use strict";var r=n(127),o=n(459),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function r(e){}function o(e){return!(!e.prototype||!e.prototype.isReactComponent)}function i(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var a=n(3),s=n(12),u=n(58),c=n(133),l=n(43),p=n(134),f=n(75),d=(n(31),n(225)),h=n(56),m=n(92),v=(n(1),n(120)),y=n(141),g=(n(8),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return t};var b=1,_={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=b++,this._hostParent=t,this._hostContainerInfo=n;var c,l=this._currentElement.props,p=this._processContext(s),d=this._currentElement.type,h=e.getUpdateQueue(),v=o(d),y=this._constructComponent(v,l,p,h);v||null!=y&&null!=y.render?i(d)?this._compositeType=g.PureClass:this._compositeType=g.ImpureClass:(c=y,null===y||!1===y||u.isValidElement(y)||a("105",d.displayName||d.name||"Component"),y=new r(d),this._compositeType=g.StatelessFunctional);y.props=l,y.context=p,y.refs=m,y.updater=h,this._instance=y,f.set(y,this);var _=y.state;void 0===_&&(y.state=_=null),("object"!=typeof _||Array.isArray(_))&&a("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=y.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),y.componentDidMount&&e.getReactMountReady().enqueue(y.componentDidMount,y),w},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?new o(t,n,r):o(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,o)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(e,t,n,r,o)}return i},performInitialMount:function(e,t,n,r,o){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var s=d.getType(e);this._renderedNodeType=s;var u=this._instantiateReactComponent(e,s!==d.EMPTY);this._renderedComponent=u;var c=h.mountComponent(u,r,t,n,this._processChildContext(o),a);return c},getHostNode:function(){return h.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(h.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return m;var r={};for(var o in n)r[o]=e[o];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(t=r.getChildContext()),t){"object"!=typeof n.childContextTypes&&a("107",this.getName()||"ReactCompositeComponent");for(var o in t)o in n.childContextTypes||a("108",this.getName()||"ReactCompositeComponent",o);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},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?h.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,o){var i=this._instance;null==i&&a("136",this.getName()||"ReactCompositeComponent");var s,u=!1;this._context===o?s=i.context:(s=this._processContext(o),u=!0);var c=t.props,l=n.props;t!==n&&(u=!0),u&&i.componentWillReceiveProps&&i.componentWillReceiveProps(l,s);var p=this._processPendingState(l,s),f=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?f=i.shouldComponentUpdate(l,p,s):this._compositeType===g.PureClass&&(f=!v(c,l)||!v(i.state,p))),this._updateBatchNumber=null,f?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,p,s,e,o)):(this._currentElement=n,this._context=o,i.props=l,i.state=p,i.context=s)},_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;if(o&&1===r.length)return r[0];for(var i=s({},o?r[0]:n.state),a=o?1:0;a=0||null!=t.is}function m(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var v=n(3),y=n(12),g=n(442),b=n(444),_=n(54),w=n(128),E=n(55),C=n(217),x=n(73),O=n(129),S=n(98),k=n(218),T=n(15),P=n(460),A=n(461),M=n(219),R=n(464),D=(n(31),n(473)),I=n(478),N=(n(34),n(101)),j=(n(1),n(140),n(120),n(231)),L=(n(142),n(8),k),F=x.deleteListener,U=T.getNodeFromInstance,B=S.listenTo,H=O.registrationNameModules,V={string:!0,number:!0},W="__html",q={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},z=11,Y={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},$={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},K={listing:!0,pre:!0,textarea:!0},G=y({menuitem:!0},$),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,J={},Q={}.hasOwnProperty,Z=1;m.displayName="ReactDOMComponent",m.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(p,this);break;case"input":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(p,this);break;case"option":A.mountWrapper(this,i,t),i=A.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(p,this);break;case"textarea":R.mountWrapper(this,i,t),i=R.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(p,this)}o(this,i);var a,f;null!=t?(a=t._namespaceURI,f=t._tag):n._tag&&(a=n._namespaceURI,f=n._tag),(null==a||a===w.svg&&"foreignobject"===f)&&(a=w.html),a===w.html&&("svg"===this._tag?a=w.svg:"math"===this._tag&&(a=w.mathml)),this._namespaceURI=a;var d;if(e.useCreateElement){var h,m=n._ownerDocument;if(a===w.html)if("script"===this._tag){var v=m.createElement("div"),y=this._currentElement.type;v.innerHTML="<"+y+">",h=v.removeChild(v.firstChild)}else h=i.is?m.createElement(this._currentElement.type,i.is):m.createElement(this._currentElement.type);else h=m.createElementNS(a,this._currentElement.type);T.precacheNode(this,h),this._flags|=L.hasCachedChildNodes,this._hostParent||C.setAttributeForRoot(h),this._updateDOMProperties(null,i,e);var b=_(h);this._createInitialChildren(e,i,r,b),d=b}else{var E=this._createOpenTagMarkupAndPutListeners(e,i),x=this._createContentMarkup(e,i,r);d=!x&&$[this._tag]?E+"/>":E+">"+x+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(H.hasOwnProperty(r))o&&i(this,r,o,e);else{"style"===r&&(o&&(o=this._previousStyleCopy=y({},t.style)),o=b.createMarkupForStyles(o,this));var a=null;null!=this._tag&&h(this._tag,t)?q.hasOwnProperty(r)||(a=C.createMarkupForCustomAttribute(r,o)):a=C.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+C.createMarkupForRoot()),n+=" "+C.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=V[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=N(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&_.queueHTML(r,o.__html);else{var i=V[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&_.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;ut.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 s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=c(e,o),u=c(e,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(22),c=n(500),l=n(230),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:p?o:i,setOffsets:p?a:s};e.exports=f},function(e,t,n){"use strict";var r=n(3),o=n(12),i=n(127),a=n(54),s=n(15),u=n(101),c=(n(1),n(142),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,l=c.createComment(i),p=c.createComment(" /react-text "),f=a(c.createDocumentFragment());return a.queueChild(f,a(l)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),s.precacheNode(this,l),this._closingComment=p,f}var d=u(this._stringText);return e.renderToStaticMarkup?d:"\x3c!--"+i+"--\x3e"+d+"\x3c!-- /react-text --\x3e"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=c},function(e,t,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return c.asap(r,this),n}var i=n(3),a=n(12),s=n(132),u=n(15),c=n(37),l=(n(1),n(8),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=s.getValue(t),r=n;if(null==n){var a=t.defaultValue,u=t.children;null!=u&&(null!=a&&i("92"),Array.isArray(u)&&(u.length<=1||i("93"),u=u[0]),a=""+u),null==a&&(a=""),r=a}e._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=u.getNodeFromInstance(e),r=s.getValue(t);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=u.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e||u("33"),"_hostNode"in t||u("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e||u("35"),"_hostNode"in t||u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||u("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o0;)n(u[c],"captured",i)}var u=n(3);n(1);e.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(12),i=n(37),a=n(100),s=n(34),u={initialize:s,close:function(){f.isBatchingUpdates=!1}},c={initialize:s,close:i.flushBatchedUpdates.bind(i)},l=[c,u];o(r.prototype,a,{getTransactionWrappers:function(){return l}});var p=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=f.isBatchingUpdates;return f.isBatchingUpdates=!0,a?e(t,n,r,o,i):p.perform(e,null,t,n,r,o,i)}};e.exports=f},function(e,t,n){"use strict";function r(){C||(C=!0,g.EventEmitter.injectReactEventListener(y),g.EventPluginHub.injectEventPluginOrder(s),g.EventPluginUtils.injectComponentTree(f),g.EventPluginUtils.injectTreeTraversal(h),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:E,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:i}),g.HostComponent.injectGenericComponentClass(p),g.HostComponent.injectTextComponentClass(m),g.DOMProperty.injectDOMPropertyConfig(o),g.DOMProperty.injectDOMPropertyConfig(c),g.DOMProperty.injectDOMPropertyConfig(_),g.EmptyComponent.injectEmptyComponentFactory(function(e){return new d(e)}),g.Updates.injectReconcileTransaction(b),g.Updates.injectBatchingStrategy(v),g.Component.injectEnvironment(l))}var o=n(441),i=n(443),a=n(445),s=n(447),u=n(448),c=n(450),l=n(452),p=n(455),f=n(15),d=n(457),h=n(465),m=n(463),v=n(466),y=n(470),g=n(471),b=n(476),_=n(481),w=n(482),E=n(483),C=!1;e.exports={inject:r}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(73),i={handleTopLevel:function(e,t,n,i){r(o.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=d(e.nativeEvent),n=p.getClosestInstanceFromNode(t),o=n;do{e.ancestors.push(o),o=o&&r(o)}while(o);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:f.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e,t){return t&&(e=e||[],e.push(t)),e}function c(e,t){p.processChildrenUpdates(e,t)}var l=n(3),p=n(133),f=(n(75),n(31),n(43),n(56)),d=n(451),h=(n(34),n(497)),m=(n(1),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return d.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,i){var a,s=0;return a=h(t,s),d.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,s),a},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=0,c=f.mountComponent(s,t,this,this._hostContainerInfo,n,u);s._mountIndex=i++,o.push(c)}return o},updateTextContent:function(e){var t=this._renderedChildren;d.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");c(this,[s(e)])},updateMarkup:function(e){var t=this._renderedChildren;d.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");c(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,e,i,o,t,n);if(a||r){var s,l=null,p=0,d=0,h=0,m=null;for(s in a)if(a.hasOwnProperty(s)){var v=r&&r[s],y=a[s];v===y?(l=u(l,this.moveChild(v,m,p,d)),d=Math.max(v._mountIndex,d),v._mountIndex=p):(v&&(d=Math.max(v._mountIndex,d)),l=u(l,this._mountChildAtIndex(y,i[h],m,p,t,n)),h++),p++,m=f.getHostNode(y)}for(s in o)o.hasOwnProperty(s)&&(l=u(l,this._unmountChild(r[s],o[s])));l&&c(this,l),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;d.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}e.exports=i},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var i=n(22),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=o},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(101);e.exports=r},function(e,t,n){"use strict";var r=n(224);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n-1){m=this.props.i18nKey.split(this.i18n.options.nsSeparator)[0]}this.t.ns&&(h["data-i18next-options"]=JSON.stringify({ns:m}))}return o&&(h.className=o),i&&(h.style=i),l.default.createElement.apply(this,[t,h].concat(f))}}]),t}(c.Component);d.propTypes={className:f.default.string},d.defaultProps={className:""},d.contextTypes={i18n:f.default.object.isRequired,t:f.default.func.isRequired},t.default=d},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=e.length;n"+c("",u(t),n+1)+"";else if(m.default.isValidElement(t))e=e+"<"+r+">";else if("object"===(void 0===t?"undefined":d(t))){var o=f({},t),i=o.format;delete o.format;var a=Object.keys(o);i&&1===a.length?e=e+"<"+r+">{{"+a[0]+", "+i+"}}":1===a.length&&(e=e+"<"+r+">{{"+a[0]+"}}")}}),e}function l(e,t,n){function r(e,t){"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]);var o=t.split(g).reduce(function(e,t,n){return t&&e.push(t),e},[]);return o.reduce(function(t,i,a){var c=!isNaN(i),l=a>0&&!isNaN(o[a-1]);if(l){var p=e[parseInt(o[a-1],10)]||{};m.default.isValidElement(p)&&!s(p)&&(l=!1)}if(l)return t;if(c){var h=e[parseInt(i,10)]||{},v=m.default.isValidElement(h);if("string"==typeof h)t.push(h);else if(s(h)){var y=r(u(h),o[a+1]);t.push(m.default.cloneElement(h,f({},h.props,{key:a}),y))}else if("object"!==(void 0===h?"undefined":d(h))||v)t.push(h);else{var g=n.services.interpolator.interpolate(o[a+1],h,n.language);t.push(g)}}return c||l||t.push(i),t},[])}return r(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var n=0;n]*)>(.*?)<\\/\\1>)","gi"),b=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.i18n=n.i18n,r.t=n.t,r}return a(t,e),p(t,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.count,r=e.parent,o=c("",t,0),i=this.props.i18nKey||o,a=this.t(i,{interpolation:{prefix:"#$?",suffix:"?$#"},defaultValue:o,count:n}),s={};if(this.i18n.options.react&&this.i18n.options.react.exposeNamespace){var u="string"==typeof this.t.ns?this.t.ns:this.t.ns[0];if(this.props.i18nKey&&this.i18n.options.nsSeparator&&this.props.i18nKey.indexOf(this.i18n.options.nsSeparator)>-1){u=this.props.i18nKey.split(this.i18n.options.nsSeparator)[0]}this.t.ns&&(s["data-i18next-options"]=JSON.stringify({ns:u}))}return m.default.createElement(r,s,l(t,a,this.i18n))}}]),t}(m.default.Component);t.default=b,b.propTypes={count:y.default.number,parent:y.default.string,i18nKey:y.default.string},b.defaultProps={parent:"div"},b.contextTypes={i18n:y.default.object.isRequired,t:y.default.func.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return e.displayName||e.name||"Component"}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.withRef,r=void 0!==n&&n,c=t.bindI18n,h=void 0===c?"languageChanged loaded":c,v=t.bindStore,b=void 0===v?"added removed":v,_=t.translateFuncName,w=void 0===_?"t":_,E=t.wait,C=void 0!==E&&E;return function(n){var c,v=function(u){function c(n,r){i(this,c);var o=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,n,r));return o.i18n=r.i18n||n.i18n||t.i18n,e=e||o.i18n.options.defaultNS,"string"==typeof e&&(e=[e]),!C&&o.i18n.options&&(o.i18n.options.wait||o.i18n.options.react&&o.i18n.options.react.wait)&&(C=!0),o.nsMode=t.nsMode||o.i18n.options&&o.i18n.options.react&&o.i18n.options.react.nsMode||"default",n.initialI18nStore&&(o.i18n.services.resourceStore.data=n.initialI18nStore,C=!1),n.initialLanguage&&o.i18n.changeLanguage(n.initialLanguage),o.i18n.options.isInitialSSR&&(C=!1),o.state={i18nLoadedAt:null,ready:!1},o.onI18nChanged=o.onI18nChanged.bind(o),o.getWrappedInstance=o.getWrappedInstance.bind(o),o}return s(c,u),p(c,[{key:"getChildContext",value:function(){var e;return e={},o(e,w,this[w]),o(e,"i18n",this.i18n),e}},{key:"componentWillMount",value:function(){this[w]=this.i18n.getFixedT(null,"fallback"===this.nsMode?e:e[0])}},{key:"componentDidMount",value:function(){var t=this,n=function(){h&&t.i18n&&t.i18n.on(h,t.onI18nChanged),b&&t.i18n.store&&t.i18n.store.on(b,t.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(e,function(){var e=function(){t.mounted&&!t.state.ready&&t.setState({ready:!0}),C&&t.mounted&&n()};if(t.i18n.isInitialized)e();else{var r=function n(){setTimeout(function(){t.i18n.off("initialized",n)},1e3),e()};t.i18n.on("initialized",r)}}),C||n()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(h){h.split(" ").forEach(function(t){return e.i18n.off(t,e.onI18nChanged)})}if(b){b.split(" ").forEach(function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&this.setState({i18nLoadedAt:new Date})}},{key:"getWrappedInstance",value:function(){return r||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.refs.wrappedInstance}},{key:"render",value:function(){var e,t=this,i=this.state,a=i.i18nLoadedAt,s=i.ready,u=(e={i18nLoadedAt:a},o(e,w,this[w]),o(e,"i18n",this.i18n),e);return r&&(u.ref="wrappedInstance"),!s&&C?null:(this.i18n.options.isInitialSSR&&!g&&(g=!0,setTimeout(function(){delete t.i18n.options.isInitialSSR},100)),d.default.createElement(n,l({},this.props,u)))}}]),c}(f.Component);return v.WrappedComponent=n,v.contextTypes={i18n:m.default.object},v.childContextTypes=(c={},o(c,w,m.default.func.isRequired),o(c,"i18n",m.default.object),c),v.displayName="Translate("+u(n)+")",v.namespaces=e,(0,y.default)(v,n)}}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return c.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(c.a.Component);h.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(239),s=n.n(a),u=n(14),c=n.n(u),l=n(19),p=n.n(l),f=n(53),d=n(143),h=function(e){function t(){var i,a,s;r(this,t);for(var u=arguments.length,c=Array(u),l=0;l ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return c.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(c.a.Component);h.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node},t.a=h},function(e,t,n){"use strict";var r=n(521);t.a=r.a},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(14),i=n.n(o),a=n(19),s=n.n(a),u=n(237),c=n(236),l=Object.assign||function(e){for(var t=1;t ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return c.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(c.a.Component);h.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(14),s=n.n(a),u=n(19),c=n.n(u),l=n(41),p=n.n(l),f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){p()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(s.a.Component);f.propTypes={when:c.a.bool,message:c.a.oneOfType([c.a.func,c.a.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:c.a.shape({history:c.a.shape({block:c.a.func.isRequired}).isRequired}).isRequired},t.a=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(14),s=n.n(a),u=n(19),c=n.n(u),l=n(57),p=n.n(l),f=n(41),d=n.n(f),h=n(53),m=n(241),v=Object.assign||function(e){for(var t=1;t outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=n.i(h.b)(e.to),r=n.i(h.b)(this.props.to);if(n.i(h.c)(t,r))return void p()(!1,"You tried to redirect to the same route you're currently on: \""+r.pathname+r.search+'"');this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,r=e.to;return t?"string"==typeof r?n.i(m.a)(r,t.params):v({},r,{pathname:n.i(m.a)(r.pathname,t.params)}):r},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(s.a.Component);y.propTypes={computedMatch:c.a.object,push:c.a.bool,from:c.a.string,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired},y.defaultProps={push:!1},y.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired}).isRequired,staticContext:c.a.object}).isRequired},t.a=y},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(57),u=n.n(s),c=n(41),l=n.n(c),p=n(14),f=n.n(p),d=n(19),h=n.n(d),m=n(53),v=n(144),y=Object.assign||function(e){for(var t=1;t",e)}},C=function(){},x=function(e){function t(){var r,a,s;o(this,t);for(var u=arguments.length,c=Array(u),l=0;l ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,o=(e.context,e.location),i=r(e,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:_(t,n.i(m.b)(o)),push:this.handlePush,replace:this.handleReplace,go:E("go"),goBack:E("goBack"),goForward:E("goForward"),listen:this.handleListen,block:this.handleBlock};return f.a.createElement(v.a,y({},i,{history:a}))},t}(f.a.Component);x.propTypes={basename:h.a.string,context:h.a.object.isRequired,location:h.a.oneOfType([h.a.string,h.a.object])},x.defaultProps={basename:"",location:"/"},x.childContextTypes={router:h.a.object.isRequired},t.a=x},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(14),s=n.n(a),u=n(19),c=n.n(u),l=n(57),p=n.n(l),f=n(41),d=n.n(f),h=n(145),m=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){p()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),p()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,r=this.props.location||e.location,o=void 0,i=void 0;return s.a.Children.forEach(t,function(t){if(null==o&&s.a.isValidElement(t)){var a=t.props,u=a.path,c=a.exact,l=a.strict,p=a.sensitive,f=a.from,d=u||f;i=t,o=n.i(h.a)(r.pathname,{path:d,exact:c,strict:l,sensitive:p},e.match)}}),o?s.a.cloneElement(i,{location:r,computedMatch:o}):null},t}(s.a.Component);m.contextTypes={router:c.a.shape({route:c.a.object.isRequired}).isRequired},m.propTypes={children:c.a.node,location:c.a.object},t.a=m},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(14),i=n.n(o),a=n(19),s=n.n(a),u=n(527),c=n.n(u),l=n(240),p=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),u=a||s;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var c=void 0;if(i.length){var l=i[i.length-1];c="."===l||".."===l||""===l}else c=!1;for(var p=0,f=i.length;f>=0;f--){var d=i[f];"."===d?o(i,f):".."===d?(o(i,f),p++):p&&(o(i,f),p--)}if(!u)for(;p--;p)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h}t.a=i},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});var n=void 0===e?"undefined":o(e);if(n!==(void 0===t?"undefined":o(t)))return!1;if("object"===n){var i=e.valueOf(),a=t.valueOf();if(i!==e||a!==t)return r(i,a);var s=Object.keys(e),u=Object.keys(t);return s.length===u.length&&s.every(function(n){return r(e[n],t[n])})}return!1}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a=r},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!=typeof t||n[e]?t:t+"px"}},function(e,t,n){"use strict";function r(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=e.split(u),s=r.decode||a,c=0;c>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r>>6-2*o);return n}};e.exports=n}()},function(e,t,n){(function(t){function r(){var e=i();return e||("undefined"!=typeof navigator?a(navigator.userAgent):null)}function o(e){var t=u(),n=t.filter(function(t){return t.rule&&t.rule.test(e)})[0];return n?n.name:null}function i(){return"undefined"==typeof navigator&&void 0!==t?{name:"node",version:t.version.slice(1),os:n(437).type().toLowerCase()}:null}function a(e){var t=s();if(!e)return null;var n=t.map(function(t){var n=t.rule.exec(e),r=n&&n[1].split(/[._]/).slice(0,3);return r&&r.length<3&&(r=r.concat(1==r.length?[0,0]:[0])),n&&{name:t.name,version:r.join(".")}}).filter(Boolean)[0]||null;return n&&(n.os=o(e)),/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/i.test(e)&&(n=n||{},n.bot=!0),n}function s(){return c([["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([0-9\.]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\ ([0-9\.]+)/]])}function u(){return c([["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/],["Search Bot",/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/]])}function c(e){return e.map(function(e){return{name:e[0],rule:e[1]}})}e.exports={detect:r,detectOS:o,getNodeVersion:i,parseUserAgent:a}}).call(t,n(36))},function(e,t){function n(e){var t;e&&"object"==typeof e?t=e:(t={},t.message=arguments[0],t.code=arguments[1]),t.message?t.message=String(t.message):t.message="";var r=Error.call(this,t.message);for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);return Object.setPrototypeOf?Object.setPrototypeOf(r,n.prototype):r.__proto__=n.prototype,r}n.prototype=Object.create(Error.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e.exports=n},function(e,t,n){"use strict";function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;e.exports=r},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(549),i=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(559);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r":"<"+e+">",s[e]=!a.firstChild),s[e]?f[e]:null}var o=n(23),i=n(0),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],c=[1,"","
"],l=[3,"","
"],p=[1,'',""],f={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){f[e]=p,s[e]=!0}),e.exports=r},function(e,t,n){"use strict";function r(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=r},function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;e.exports=r},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(556),i=/^ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(558);e.exports=r},function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(h.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,h.supportsHistory)(),r=!(0,h.supportsPopStateOnHashChange)(),a=e.forceRefresh,u=void 0!==a&&a,f=e.getUserConfirmation,v=void 0===f?h.getConfirmation:f,y=e.keyLength,g=void 0===y?6:y,b=e.basename?(0,p.stripTrailingSlash)((0,p.addLeadingSlash)(e.basename)):"",_=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname,a=o.search,u=o.hash,c=i+a+u;return(0,s.default)(!b||(0,p.hasBasename)(c,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+c+'" to begin with "'+b+'".'),b&&(c=(0,p.stripBasename)(c,b)),(0,l.createLocation)(c,r,n)},w=function(){return Math.random().toString(36).substr(2,g)},E=(0,d.default)(),C=function(e){i(V,e),V.length=t.length,E.notifyListeners(V.location,V.action)},x=function(e){(0,h.isExtraneousPopstateEvent)(e)||k(_(e.state))},O=function(){k(_(m()))},S=!1,k=function(e){if(S)S=!1,C();else{E.confirmTransitionTo(e,"POP",v,function(t){t?C({action:"POP",location:e}):T(e)})}},T=function(e){var t=V.location,n=A.indexOf(t.key);-1===n&&(n=0);var r=A.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(S=!0,I(o))},P=_(m()),A=[P.key],M=function(e){return b+(0,p.createPath)(e)},R=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,l.createLocation)(e,r,w(),V.location);E.confirmTransitionTo(i,"PUSH",v,function(e){if(e){var r=M(i),o=i.key,a=i.state;if(n)if(t.pushState({key:o,state:a},null,r),u)window.location.href=r;else{var c=A.indexOf(V.location.key),l=A.slice(0,-1===c?0:c+1);l.push(i.key),A=l,C({action:"PUSH",location:i})}else(0,s.default)(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},D=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,l.createLocation)(e,r,w(),V.location);E.confirmTransitionTo(i,"REPLACE",v,function(e){if(e){var r=M(i),o=i.key,a=i.state;if(n)if(t.replaceState({key:o,state:a},null,r),u)window.location.replace(r);else{var c=A.indexOf(V.location.key);-1!==c&&(A[c]=i.key),C({action:"REPLACE",location:i})}else(0,s.default)(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},I=function(e){t.go(e)},N=function(){return I(-1)},j=function(){return I(1)},L=0,F=function(e){L+=e,1===L?((0,h.addEventListener)(window,"popstate",x),r&&(0,h.addEventListener)(window,"hashchange",O)):0===L&&((0,h.removeEventListener)(window,"popstate",x),r&&(0,h.removeEventListener)(window,"hashchange",O))},U=!1,B=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=E.setPrompt(e);return U||(F(1),U=!0),function(){return U&&(U=!1,F(-1)),t()}},H=function(e){var t=E.appendListener(e);return F(1),function(){F(-1),t()}},V={length:t.length,action:"POP",location:P,createHref:M,push:R,replace:D,go:I,goBack:N,goForward:j,block:B,listen:H};return V};t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.default)(d.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,d.supportsGoWithoutReloadUsingHash)(),r=e.getUserConfirmation,i=void 0===r?d.getConfirmation:r,s=e.hashType,p=void 0===s?"slash":s,g=e.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(e.basename)):"",b=h[p],_=b.encodePath,w=b.decodePath,E=function(){var e=w(m());return(0,a.default)(!g||(0,l.hasBasename)(e,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+g+'".'),g&&(e=(0,l.stripBasename)(e,g)),(0,c.createLocation)(e)},C=(0,f.default)(),x=function(e){o(z,e),z.length=t.length,C.notifyListeners(z.location,z.action)},O=!1,S=null,k=function(){var e=m(),t=_(e);if(e!==t)y(t);else{var n=E(),r=z.location;if(!O&&(0,c.locationsAreEqual)(r,n))return;if(S===(0,l.createPath)(n))return;S=null,T(n)}},T=function(e){if(O)O=!1,x();else{C.confirmTransitionTo(e,"POP",i,function(t){t?x({action:"POP",location:e}):P(e)})}},P=function(e){var t=z.location,n=D.lastIndexOf((0,l.createPath)(t));-1===n&&(n=0);var r=D.lastIndexOf((0,l.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(O=!0,L(o))},A=m(),M=_(A);A!==M&&y(M);var R=E(),D=[(0,l.createPath)(R)],I=function(e){return"#"+_(g+(0,l.createPath)(e))},N=function(e,t){(0,a.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,z.location);C.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=(0,l.createPath)(n),r=_(g+t);if(m()!==r){S=t,v(r);var o=D.lastIndexOf((0,l.createPath)(z.location)),i=D.slice(0,-1===o?0:o+1);i.push(t),D=i,x({action:"PUSH",location:n})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),x()}})},j=function(e,t){(0,a.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,z.location);C.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=(0,l.createPath)(n),r=_(g+t);m()!==r&&(S=t,y(r));var o=D.indexOf((0,l.createPath)(z.location));-1!==o&&(D[o]=t),x({action:"REPLACE",location:n})}})},L=function(e){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},F=function(){return L(-1)},U=function(){return L(1)},B=0,H=function(e){B+=e,1===B?(0,d.addEventListener)(window,"hashchange",k):0===B&&(0,d.removeEventListener)(window,"hashchange",k)},V=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=C.setPrompt(e);return V||(H(1),V=!0),function(){return V&&(V=!1,H(-1)),t()}},q=function(e){var t=C.appendListener(e);return H(1),function(){H(-1),t()}},z={length:t.length,action:"POP",location:R,createHref:I,push:N,replace:j,go:L,goBack:F,goForward:U,block:W,listen:q};return z};t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,a=e.initialIndex,l=void 0===a?0:a,d=e.keyLength,h=void 0===d?6:d,m=(0,p.default)(),v=function(e){i(P,e),P.length=P.entries.length,m.notifyListeners(P.location,P.action)},y=function(){return Math.random().toString(36).substr(2,h)},g=f(l,0,r.length-1),b=r.map(function(e){return"string"==typeof e?(0,c.createLocation)(e,void 0,y()):(0,c.createLocation)(e,void 0,e.key||y())}),_=u.createPath,w=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,c.createLocation)(e,n,y(),P.location);m.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=P.index,n=t+1,o=P.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),v({action:"PUSH",location:r,index:n,entries:o})}})},E=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,c.createLocation)(e,n,y(),P.location);m.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(P.entries[P.index]=r,v({action:"REPLACE",location:r}))})},C=function(e){var n=f(P.index+e,0,P.entries.length-1),r=P.entries[n];m.confirmTransitionTo(r,"POP",t,function(e){e?v({action:"POP",location:r,index:n}):v()})},x=function(){return C(-1)},O=function(){return C(1)},S=function(e){var t=P.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(e)},T=function(e){return m.appendListener(e)},P={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:_,push:w,replace:E,go:C,goBack:x,goForward:O,canGo:S,block:k,listen:T};return P};t.default=d},function(e,t,n){"use strict";var r=n(21),o=(n.n(r),n(24));n.n(o),n(105),n(79),n(149),n(253),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(e,t,n){"use strict";var r=n(21),o=(n.n(r),n(24)),i=(n.n(o),n(105),n(79));n(149),n(253),Object.assign,i.c,i.d,i.d,i.d},function(e,t,n){"use strict";var r=n(21);n.n(r),n(79),n(105),n(149),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(e,t,n){"use strict";var r=(n(564),n(565),n(566),n(105));n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return r.b});n(79)},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){(function(t,r){var o;!function(){"use strict";var i="object"==typeof window?window:{};!i.JS_HTMLENCODE_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(i=r);var a=!i.JS_HTMLENCODE_NO_COMMON_JS&&"object"==typeof e&&e.exports,s=n(542),u={" ":" ","¡":"¡","¢":"¢","£":"£","¤":"¤","¥":"¥","¦":"¦","§":"§","¨":"¨","©":"©","ª":"ª","«":"«","¬":"¬","­":"­","®":"®","¯":"¯","°":"°","±":"±","²":"²","³":"³","´":"´","µ":"µ","¶":"¶","·":"·","¸":"¸","¹":"¹","º":"º","»":"»","¼":"¼","½":"½","¾":"¾","¿":"¿","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","×":"×","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","÷":"÷","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ",""":'"',"&":"&","<":"<",">":">","'":"'","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ˆ":"ˆ","˜":"˜"," ":" "," ":" "," ":" ","‌":"‌","‍":"‍","‎":"‎","‏":"‏","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€","ƒ":"ƒ","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","ς":"ς","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","ϑ":"ϑ","ϒ":"ϒ","ϖ":"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","™":"™","ℵ":"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","⟨":"〈","⟩":"〉","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"},c=function(e){if("#"!==e.charAt(1))return u[e]||e;var t,n=e.charAt(2);return"x"===n||"X"===n?(n=e.substring(3,e.length-1),t=parseInt(n,16)):(n=e.substring(2,e.length-1),t=parseInt(n)),isNaN(t)?e:String.fromCharCode(t)},l=function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")},p=function(e){return e.replace(/&#?\w+;/g,c)},f=l;l.htmlEncode=l,l.htmlDecode=p,a?e.exports=f:(i.htmlEncode=l,i.htmlDecode=p,s&&void 0!==(o=function(){return f}.call(f,n,f,e))&&(e.exports=o))}()}).call(t,n(36),n(50))},function(e,t,n){"use strict";(function(t){function r(e,t){return 1===arguments.length?o(e):i(e,t)}function o(e){return JSON.parse(l.getItem(e))}function i(e,t){try{return l.setItem(e,JSON.stringify(t)),!0}catch(e){return!1}}function a(e){return l.removeItem(e)}function s(){return l.clear()}var u=n(572),c=n(573),l="localStorage"in t&&t.localStorage?t.localStorage:u;r.set=i,r.get=o,r.remove=a,r.clear=s,r.on=c.on,r.off=c.off,e.exports=r}).call(t,n(50))},function(e,t,n){"use strict";function r(e){return e in s?s[e]:null}function o(e,t){return s[e]=t,!0}function i(e){return!!(e in s)&&delete s[e]}function a(){return s={},!0}var s={};e.exports={getItem:r,setItem:o,removeItem:i,clear:a}},function(e,t,n){"use strict";(function(t){function n(){t.addEventListener?t.addEventListener("storage",r,!1):t.attachEvent?t.attachEvent("onstorage",r):t.onstorage=r}function r(e){function n(t){t(JSON.parse(e.newValue),JSON.parse(e.oldValue),e.url||e.uri)}e||(e=t.event);var r=a[e.key];r&&r.forEach(n)}function o(e,t){a[e]?a[e].push(t):a[e]=[t],!1===s&&n()}function i(e,t){var n=a[e];n.length>1?n.splice(n.indexOf(t),1):a[e]=[]}var a={},s=!1;e.exports={on:o,off:i}}).call(t,n(50))},function(e,t,n){"use strict";function r(e,t,n,r){var s=void 0===r?{}:r,u=s.tracing,c=void 0!==u&&u,l=s.logger,p=void 0===l?console:l,f=s.logLevel,d=void 0===f?"info":f,h=s.idLength,m=void 0===h?8:h,v=s.pollFrequency,y=void 0===v?3e3:v,g=s.path,b=void 0===g?"/":g,_=s.secure,w=void 0!==_&&_,E=s.httpOnly,C=void 0!==E&&E;o(e,"key is required"),o(t,"action is required"),o(n,"handler is required");var x=new i,O=function(){for(var e=[],t=0;t "+JSON.stringify(e)),o("string"==typeof t&&t.length===m,"instanceID must be a string"),o(n,"cookiesync cookies must have a payload associated => "+JSON.stringify(e))}return O("cookiesync#loadCookie",e),e}catch(e){p.error(e,"cookiesync#loadCookie => error occurred in cookiesync, wiping cookie with key "+k),x.remove(k)}},A=function(){for(var e=[],t=0;t payload",r),A(r)},D=null;return{start:function(e){void 0===e&&(e=!1),O("cookiesync#start",T);var t=P();if(t||(O("cookiesync#start: nolast",T),t={instanceID:T},A(t)),D=setInterval(function(){O("cookiesync#poll",T);var e=P();if(e||(O("cookiesync#poll: nocurrent",T),e=t,A(e)),e.instanceID===T)return void O("cookiesync#poll: sameinstance",T);JSON.stringify(t.payload)!=JSON.stringify(e.payload)?(O("cookiesync#poll: INVOKE|instanceID =",T,"|current.instanceID =",e.instanceID,"|last.instanceID =",t.instanceID,"|last.payload =",JSON.stringify(t.payload),"|current.payload =",JSON.stringify(e.payload)),n(e.payload,t?t.payload:{},t?t.url||"":""),t=e):O("cookiesync#poll: noinvoke|instanceID =",T,"|current.instanceID =",e.instanceID,"|last.instanceID =",t.instanceID,"|last.payload =",JSON.stringify(t.payload),"|current.payload =",JSON.stringify(e.payload))},y),e){var r=P();n(r.payload,t?t.payload:{},t?t.url||"":""),t=r}M=!0},stop:function(){O("cookiesync#stop",T),clearInterval(D),M=!1},trigger:R,get isRunning(){return M},mechanism:a,isFallback:!0,isServer:!1,instanceID:T}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(24),i=n(702),a="cookiesync";t.default=r},function(e,t,n){"use strict";function r(e,t,n,r,p){return void 0===r&&(r={}),void 0===p&&(p=i()),(null===p?l.default:a(p)?c.default:u.default)(e,t,n,s.__assign({},o(),r))}function o(){return{tracing:!1,logger:console,logLevel:"info",idLength:8,pollFrequency:3e3,path:"/",secure:!1,httpOnly:!1}}function i(){return"object"==typeof window?window.navigator:null}function a(e){return null!==e&&("Microsoft Internet Explorer"===e.appName||"Netscape"===e.appName&&p.TRIDENT_EDGE.test(e.appVersion))}Object.defineProperty(t,"__esModule",{value:!0});var s=n(700),u=n(577),c=n(574),l=n(576),p={TRIDENT_EDGE:/(Trident|Edge)/i};t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=void 0===r?{}:r,s=a.tracing,u=void 0!==s&&s,c=a.logger,l=void 0===c?console:c,p=a.logLevel,f=void 0===p?"info":p;o(e,"key is required"),o(t,"action is required"),o(n,"handler is required");var d=function(){for(var e=[],t=0;t>>24)|4278255360&(s[d]<<24|s[d]>>>8);s[u>>>5]|=128<>>9<<4)]=u;for(var h=a._ff,m=a._gg,v=a._hh,y=a._ii,d=0;d>>0,l=l+b>>>0,p=p+_>>>0,f=f+w>>>0}return t.endian([c,l,p,f])};a._ff=function(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+(o>>>0)+a;return(s<>>32-i)+t},a._gg=function(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+(o>>>0)+a;return(s<>>32-i)+t},a._hh=function(e,t,n,r,o,i,a){var s=e+(t^n^r)+(o>>>0)+a;return(s<>>32-i)+t},a._ii=function(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+(o>>>0)+a;return(s<>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}}()},function(e,t,n){function r(e,t){for(var n,r=[],o=0,i=0,a="",s=t&&t.delimiter||"/";null!=(n=g.exec(e));){var l=n[0],p=n[1],f=n.index;if(a+=e.slice(i,f),i=f+l.length,p)a+=p[1];else{var d=e[i],h=n[2],m=n[3],v=n[4],y=n[5],b=n[6],_=n[7];a&&(r.push(a),a="");var w=null!=h&&null!=d&&d!==h,E="+"===b||"*"===b,C="?"===b||"*"===b,x=n[2]||s,O=v||y;r.push({name:m||o++,prefix:h||"",delimiter:x,optional:C,repeat:E,partial:w,asterisk:!!_,pattern:O?c(O):_?".*":"[^"+u(x)+"]+?"})}}return i=0;i--){var a=r[i]+o;if(a in t)return a}return!1}},function(e,t,n){"use strict";function r(e,t,n,r,o){}e.exports=r},function(e,t,n){"use strict";var r=n(29),o=n(0),i=n(256);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";var r=n(29),o=n(0),i=n(4),a=n(10),s=n(256),u=n(582);e.exports=function(e,t){function n(e){var t=e&&(S&&e[S]||e[k]);if("function"==typeof t)return t}function c(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function l(e){this.message=e,this.stack=""}function p(e){function n(n,r,i,a,u,c,p){if(a=a||T,c=c||i,p!==s)if(t)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[i]?n?new l(null===r[i]?"The "+u+" `"+c+"` is marked as required in `"+a+"`, but its value is `null`.":"The "+u+" `"+c+"` is marked as required in `"+a+"`, but its value is `undefined`."):null:e(r,i,a,u,c)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function f(e){function t(t,n,r,o,i,a){var s=t[n];if(E(s)!==e)return new l("Invalid "+o+" `"+i+"` of type `"+C(s)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return p(t)}function d(e){function t(t,n,r,o,i){if("function"!=typeof e)return new l("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){return new l("Invalid "+o+" `"+i+"` of type `"+E(a)+"` supplied to `"+r+"`, expected an array.")}for(var u=0;u=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return p.default.createElement("div",e)}function i(e){var t=e.style,n=r(e,["style"]),o=c({},t,{right:2,bottom:2,left:2,borderRadius:3});return p.default.createElement("div",c({style:o},n))}function a(e){var t=e.style,n=r(e,["style"]),o=c({},t,{right:2,bottom:2,top:2,borderRadius:3});return p.default.createElement("div",c({style:o},n))}function s(e){var t=e.style,n=r(e,["style"]),o=c({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return p.default.createElement("div",c({style:o},n))}function u(e){var t=e.style,n=r(e,["style"]),o=c({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return p.default.createElement("div",c({style:o},n))}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1?r-1:0),s=1;s0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,_.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,_.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,o=n.onScrollFrame;r&&r(e),this.update(function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,o&&o(e)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect(),o=r.left,i=this.getThumbHorizontalWidth(),a=Math.abs(o-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect(),o=r.top,i=this.getThumbVerticalHeight(),a=Math.abs(o-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(a)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect(),i=o.left;this.prevPageX=r-(n-i)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect(),i=o.top;this.prevPageY=r-(n-i)}},{key:"setupDragging",value:function(){(0,d.default)(document.body,k.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=E.default}},{key:"teardownDragging",value:function(){(0,d.default)(document.body,k.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=this.trackHorizontal.getBoundingClientRect(),r=n.left,o=this.getThumbHorizontalWidth(),i=o-this.prevPageX,a=-r+t-i;this.view.scrollLeft=this.getScrollLeftForOffset(a)}if(this.prevPageY){var s=e.clientY,u=this.trackVertical.getBoundingClientRect(),c=u.top,l=this.getThumbVerticalHeight(),p=l-this.prevPageY,f=-c+s-p;this.view.scrollTop=this.getScrollTopForOffset(f)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,d.default)(this.trackHorizontal,{opacity:1}),(0,d.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,d.default)(e.trackHorizontal,{opacity:0}),(0,d.default)(e.trackVertical,{opacity:0})},t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&p.default.cancel(this.requestFrame),this.requestFrame=(0,p.default)(function(){t.requestFrame=void 0,e()})}},{key:"update",value:function(e){var t=this;this.raf(function(){return t._update(e)})}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if((0,_.default)()){var i=o.scrollLeft,a=o.clientWidth,s=o.scrollWidth,u=(0,x.default)(this.trackHorizontal),c=this.getThumbHorizontalWidth(),l=i/(s-a)*(u-c),p={width:c,transform:"translateX("+l+"px)"},f=o.scrollTop,h=o.clientHeight,m=o.scrollHeight,v=(0,S.default)(this.trackVertical),y=this.getThumbVerticalHeight(),g=f/(m-h)*(v-y),b={height:y,transform:"translateY("+g+"px)"};if(r){var w={visibility:s>a?"visible":"hidden"},E={visibility:m>h?"visible":"hidden"};(0,d.default)(this.trackHorizontal,w),(0,d.default)(this.trackVertical,E)}(0,d.default)(this.thumbHorizontal,p),(0,d.default)(this.thumbVertical,b)}n&&n(o),"function"==typeof e&&e(o)}},{key:"render",value:function(){var e=this,t=(0,_.default)(),n=this.props,r=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,c=n.renderThumbVertical,l=n.tagName,p=(n.hideTracksWhenNotNeeded,n.autoHide),f=(n.autoHideTimeout,n.autoHideDuration),d=(n.thumbSize,n.thumbMinSize,n.universal),m=n.autoHeight,v=n.autoHeightMin,y=n.autoHeightMax,b=n.style,w=n.children,E=o(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),C=this.state.didMountUniversal,x=u({},k.containerStyleDefault,m&&u({},k.containerStyleAutoHeight,{minHeight:v,maxHeight:y}),b),O=u({},k.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},m&&u({},k.viewStyleAutoHeight,{minHeight:(0,g.default)(v)?"calc("+v+" + "+t+"px)":v+t,maxHeight:(0,g.default)(y)?"calc("+y+" + "+t+"px)":y+t}),m&&d&&!C&&{minHeight:v,maxHeight:y},d&&!C&&k.viewStyleUniversalInitial),S={transition:"opacity "+f+"ms",opacity:0},T=u({},k.trackHorizontalStyleDefault,p&&S,(!t||d&&!C)&&{display:"none"}),P=u({},k.trackVerticalStyleDefault,p&&S,(!t||d&&!C)&&{display:"none"});return(0,h.createElement)(l,u({},E,{style:x,ref:function(t){e.container=t}}),[(0,h.cloneElement)(r({style:O}),{key:"view",ref:function(t){e.view=t}},w),(0,h.cloneElement)(i({style:T}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,h.cloneElement)(s({style:k.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,h.cloneElement)(a({style:P}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,h.cloneElement)(c({style:k.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(h.Component);t.default=P,P.propTypes={onScroll:v.default.func,onScrollFrame:v.default.func,onScrollStart:v.default.func,onScrollStop:v.default.func,onUpdate:v.default.func,renderView:v.default.func,renderTrackHorizontal:v.default.func,renderTrackVertical:v.default.func,renderThumbHorizontal:v.default.func,renderThumbVertical:v.default.func,tagName:v.default.string,thumbSize:v.default.number,thumbMinSize:v.default.number,hideTracksWhenNotNeeded:v.default.bool,autoHide:v.default.bool,autoHideTimeout:v.default.number,autoHideDuration:v.default.number,autoHeight:v.default.bool,autoHeightMin:v.default.oneOfType([v.default.number,v.default.string]),autoHeightMax:v.default.oneOfType([v.default.number,v.default.string]),universal:v.default.bool,style:v.default.object,children:v.default.node},P.defaultProps={renderView:T.renderViewDefault,renderTrackHorizontal:T.renderTrackHorizontalDefault,renderTrackVertical:T.renderTrackVerticalDefault,renderThumbHorizontal:T.renderThumbHorizontalDefault,renderThumbVertical:T.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollbars=void 0;var r=n(587),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default,t.Scrollbars=o.default},function(e,t,n){"use strict";function r(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,o=n.paddingBottom;return t-parseFloat(r)-parseFloat(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,o=n.paddingRight;return t-parseFloat(r)-parseFloat(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(){if(!1!==a)return a;if("undefined"!=typeof document){var e=document.createElement("div");(0,i.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),a=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else a=0;return a||0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(248),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=!1},function(e,t,n){"use strict";function r(e){return"string"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(){return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";e.exports=n(609)},function(e,t,n){"use strict";var r={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=r},function(e,t,n){"use strict";var r=n(16),o=n(250),i={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function o(e){switch(e){case"topCompositionStart":return O.compositionStart;case"topCompositionEnd":return O.compositionEnd;case"topCompositionUpdate":return O.compositionUpdate}}function i(e,t){return"topKeyDown"===e&&t.keyCode===g}function a(e,t){switch(e){case"topKeyUp":return-1!==y.indexOf(t.keyCode);case"topKeyDown":return t.keyCode!==g;case"topKeyPress":case"topMouseDown":case"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(b?u=o(e):k?a(e,n)&&(u=O.compositionEnd):i(e,n)&&(u=O.compositionStart),!u)return null;E&&(k||u!==O.compositionStart?u===O.compositionEnd&&k&&(c=k.getData()):k=h.getPooled(r));var l=m.getPooled(u,t,n,r);if(c)l.data=c;else{var p=s(n);null!==p&&(l.data=p)}return f.accumulateTwoPhaseDispatches(l),l}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==C?null:(S=!0,x);case"topTextInput":var n=t.data;return n===x&&S?null:n;default:return null}}function l(e,t){if(k){if("topCompositionEnd"===e||!b&&a(e,t)){var n=k.getData();return h.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return E?null:t.data;default:return null}}function p(e,t,n,r){var o;if(!(o=w?c(e,n):l(e,n)))return null;var i=v.getPooled(O.beforeInput,t,n,r);return i.data=o,f.accumulateTwoPhaseDispatches(i),i}var f=n(81),d=n(23),h=n(604),m=n(641),v=n(644),y=[9,13,27,32],g=229,b=d.canUseDOM&&"CompositionEvent"in window,_=null;d.canUseDOM&&"documentMode"in document&&(_=document.documentMode);var w=d.canUseDOM&&"TextEvent"in window&&!_&&!function(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}(),E=d.canUseDOM&&(!b||_&&_>8&&_<=11),C=32,x=String.fromCharCode(C),O={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},S=!1,k=null,T={eventTypes:O,extractEvents:function(e,t,n,r){return[u(e,t,n,r),p(e,t,n,r)]}};e.exports=T},function(e,t,n){"use strict";var r=n(258),o=n(23),i=(n(32),n(550),n(650)),a=n(557),s=n(560),u=(n(4),s(function(e){return a(e)})),c=!1,l="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){c=!0}void 0===document.documentElement.style.cssFloat&&(l="styleFloat")}var f={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=0===r.indexOf("--"),a=e[r];null!=a&&(n+=u(r)+":",n+=i(r,a,t,o)+";")}return n||null},setValueForStyles:function(e,t,n){var o=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=0===a.indexOf("--"),u=i(a,t[a],n,s);if("float"!==a&&"cssFloat"!==a||(a=l),s)o.setProperty(a,u);else if(u)o[a]=u;else{var p=c&&r.shorthandPropertyExpansions[a];if(p)for(var f in p)o[f]="";else o[a]=""}}}};e.exports=f},function(e,t,n){"use strict";function r(e,t,n){var r=S.getPooled(M.change,e,t,n);return r.type="change",E.accumulateTwoPhaseDispatches(r),r}function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=r(D,e,T(e));O.batchedUpdates(a,t)}function a(e){w.enqueueEvents(e),w.processEventQueue(!1)}function s(e,t){R=e,D=t,R.attachEvent("onchange",i)}function u(){R&&(R.detachEvent("onchange",i),R=null,D=null)}function c(e,t){var n=k.updateValueIfChanged(e),r=!0===t.simulated&&j._allowSimulatedPassThrough;if(n||r)return e}function l(e,t){if("topChange"===e)return t}function p(e,t,n){"topFocus"===e?(u(),s(t,n)):"topBlur"===e&&u()}function f(e,t){R=e,D=t,R.attachEvent("onpropertychange",h)}function d(){R&&(R.detachEvent("onpropertychange",h),R=null,D=null)}function h(e){"value"===e.propertyName&&c(D,e)&&i(e)}function m(e,t,n){"topFocus"===e?(d(),f(t,n)):"topBlur"===e&&d()}function v(e,t,n){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return c(D,n)}function y(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){if("topClick"===e)return c(t,n)}function b(e,t,n){if("topInput"===e||"topChange"===e)return c(t,n)}function _(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var r=""+t.value;t.getAttribute("value")!==r&&t.setAttribute("value",r)}}}var w=n(80),E=n(81),C=n(23),x=n(16),O=n(38),S=n(44),k=n(274),T=n(162),P=n(163),A=n(276),M={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},R=null,D=null,I=!1;C.canUseDOM&&(I=P("change")&&(!document.documentMode||document.documentMode>8));var N=!1;C.canUseDOM&&(N=P("input")&&(!document.documentMode||document.documentMode>9));var j={eventTypes:M,_allowSimulatedPassThrough:!0,_isInputEventSupported:N,extractEvents:function(e,t,n,i){var a,s,u=t?x.getNodeFromInstance(t):window;if(o(u)?I?a=l:s=p:A(u)?N?a=b:(a=v,s=m):y(u)&&(a=g),a){var c=a(e,t,n);if(c){return r(c,n,i)}}s&&s(e,u,t),"topBlur"===e&&_(t,u)}};e.exports=j},function(e,t,n){"use strict";var r=n(6),o=n(61),i=n(23),a=n(553),s=n(29),u=(n(0),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||r("56"),t||r("57"),"HTML"===e.nodeName&&r("58"),"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});e.exports=u},function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=r},function(e,t,n){"use strict";var r=n(81),o=n(16),i=n(107),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u;if(s.window===s)u=s;else{var c=s.ownerDocument;u=c?c.defaultView||c.parentWindow:window}var l,p;if("topMouseOut"===e){l=t;var f=n.relatedTarget||n.toElement;p=f?o.getClosestInstanceFromNode(f):null}else l=null,p=t;if(l===p)return null;var d=null==l?u:o.getNodeFromInstance(l),h=null==p?u:o.getNodeFromInstance(p),m=i.getPooled(a.mouseLeave,l,n,s);m.type="mouseleave",m.target=d,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,p,n,s);return v.type="mouseenter",v.target=h,v.relatedTarget=d,r.accumulateEnterLeaveDispatches(m,v,l,p),[m,v]}};e.exports=s},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(10),i=n(51),a=n(273);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},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;e1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(62),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}};e.exports=c},function(e,t,n){"use strict";(function(t){function r(e,t,n,r){var o=void 0===e[n];null!=t&&o&&(e[n]=i(t,!0))}var o=n(63),i=n(275),a=(n(154),n(164)),s=n(278);n(4);void 0!==t&&n.i({NODE_ENV:"production"});var u={instantiateChildren:function(e,t,n,o){if(null==e)return null;var i={};return s(e,r,i),i},updateChildren:function(e,t,n,r,s,u,c,l,p){if(t||e){var f,d;for(f in t)if(t.hasOwnProperty(f)){d=e&&e[f];var h=d&&d._currentElement,m=t[f];if(null!=d&&a(h,m))o.receiveComponent(d,m,s,l),t[f]=d;else{d&&(r[f]=o.getHostNode(d),o.unmountComponent(d,!1));var v=i(m,!0);t[f]=v;var y=o.mountComponent(v,s,u,c,l,p);n.push(y)}}for(f in e)!e.hasOwnProperty(f)||t&&t.hasOwnProperty(f)||(d=e[f],r[f]=o.getHostNode(d),o.unmountComponent(d,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];o.unmountComponent(r,t)}}};e.exports=u}).call(t,n(36))},function(e,t,n){"use strict";var r=n(150),o=n(614),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function r(e){}function o(e){return!(!e.prototype||!e.prototype.isReactComponent)}function i(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var a=n(6),s=n(10),u=n(64),c=n(156),l=n(45),p=n(157),f=n(82),d=(n(32),n(268)),h=n(63),m=n(104),v=(n(0),n(146)),y=n(164),g=(n(4),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return t};var b=1,_={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=b++,this._hostParent=t,this._hostContainerInfo=n;var c,l=this._currentElement.props,p=this._processContext(s),d=this._currentElement.type,h=e.getUpdateQueue(),v=o(d),y=this._constructComponent(v,l,p,h);v||null!=y&&null!=y.render?i(d)?this._compositeType=g.PureClass:this._compositeType=g.ImpureClass:(c=y,null===y||!1===y||u.isValidElement(y)||a("105",d.displayName||d.name||"Component"),y=new r(d),this._compositeType=g.StatelessFunctional);y.props=l,y.context=p,y.refs=m,y.updater=h,this._instance=y,f.set(y,this);var _=y.state;void 0===_&&(y.state=_=null),("object"!=typeof _||Array.isArray(_))&&a("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=y.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),y.componentDidMount&&e.getReactMountReady().enqueue(y.componentDidMount,y),w},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?new o(t,n,r):o(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,o)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(e,t,n,r,o)}return i},performInitialMount:function(e,t,n,r,o){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var s=d.getType(e);this._renderedNodeType=s;var u=this._instantiateReactComponent(e,s!==d.EMPTY);this._renderedComponent=u;var c=h.mountComponent(u,r,t,n,this._processChildContext(o),a);return c},getHostNode:function(){return h.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(h.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return m;var r={};for(var o in n)r[o]=e[o];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(t=r.getChildContext()),t){"object"!=typeof n.childContextTypes&&a("107",this.getName()||"ReactCompositeComponent");for(var o in t)o in n.childContextTypes||a("108",this.getName()||"ReactCompositeComponent",o);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},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?h.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,o){var i=this._instance;null==i&&a("136",this.getName()||"ReactCompositeComponent");var s,u=!1;this._context===o?s=i.context:(s=this._processContext(o),u=!0);var c=t.props,l=n.props;t!==n&&(u=!0),u&&i.componentWillReceiveProps&&i.componentWillReceiveProps(l,s);var p=this._processPendingState(l,s),f=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?f=i.shouldComponentUpdate(l,p,s):this._compositeType===g.PureClass&&(f=!v(c,l)||!v(i.state,p))),this._updateBatchNumber=null,f?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,p,s,e,o)):(this._currentElement=n,this._context=o,i.props=l,i.state=p,i.context=s)},_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;if(o&&1===r.length)return r[0];for(var i=s({},o?r[0]:n.state),a=o?1:0;a=0||null!=t.is}function m(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var v=n(6),y=n(10),g=n(597),b=n(599),_=n(61),w=n(151),E=n(62),C=n(260),x=n(80),O=n(152),S=n(106),k=n(261),T=n(16),P=n(615),A=n(616),M=n(262),R=n(619),D=(n(32),n(628)),I=n(633),N=(n(29),n(109)),j=(n(0),n(163),n(146),n(274)),L=(n(165),n(4),k),F=x.deleteListener,U=T.getNodeFromInstance,B=S.listenTo,H=O.registrationNameModules,V={string:!0,number:!0},W="__html",q={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},z=11,Y={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},$={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},K={listing:!0,pre:!0,textarea:!0},G=y({menuitem:!0},$),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,J={},Q={}.hasOwnProperty,Z=1;m.displayName="ReactDOMComponent",m.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(p,this);break;case"input":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(p,this);break;case"option":A.mountWrapper(this,i,t),i=A.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(p,this);break;case"textarea":R.mountWrapper(this,i,t),i=R.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(p,this)}o(this,i);var a,f;null!=t?(a=t._namespaceURI,f=t._tag):n._tag&&(a=n._namespaceURI,f=n._tag),(null==a||a===w.svg&&"foreignobject"===f)&&(a=w.html),a===w.html&&("svg"===this._tag?a=w.svg:"math"===this._tag&&(a=w.mathml)),this._namespaceURI=a;var d;if(e.useCreateElement){var h,m=n._ownerDocument;if(a===w.html)if("script"===this._tag){var v=m.createElement("div"),y=this._currentElement.type;v.innerHTML="<"+y+">",h=v.removeChild(v.firstChild)}else h=i.is?m.createElement(this._currentElement.type,i.is):m.createElement(this._currentElement.type);else h=m.createElementNS(a,this._currentElement.type);T.precacheNode(this,h),this._flags|=L.hasCachedChildNodes,this._hostParent||C.setAttributeForRoot(h),this._updateDOMProperties(null,i,e);var b=_(h);this._createInitialChildren(e,i,r,b),d=b}else{var E=this._createOpenTagMarkupAndPutListeners(e,i),x=this._createContentMarkup(e,i,r);d=!x&&$[this._tag]?E+"/>":E+">"+x+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(H.hasOwnProperty(r))o&&i(this,r,o,e);else{"style"===r&&(o&&(o=this._previousStyleCopy=y({},t.style)),o=b.createMarkupForStyles(o,this));var a=null;null!=this._tag&&h(this._tag,t)?q.hasOwnProperty(r)||(a=C.createMarkupForCustomAttribute(r,o)):a=C.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+C.createMarkupForRoot()),n+=" "+C.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=V[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=N(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&_.queueHTML(r,o.__html);else{var i=V[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&_.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;ut.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 s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=c(e,o),u=c(e,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(23),c=n(655),l=n(273),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:p?o:i,setOffsets:p?a:s};e.exports=f},function(e,t,n){"use strict";var r=n(6),o=n(10),i=n(150),a=n(61),s=n(16),u=n(109),c=(n(0),n(165),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,l=c.createComment(i),p=c.createComment(" /react-text "),f=a(c.createDocumentFragment());return a.queueChild(f,a(l)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),s.precacheNode(this,l),this._closingComment=p,f}var d=u(this._stringText);return e.renderToStaticMarkup?d:"\x3c!--"+i+"--\x3e"+d+"\x3c!-- /react-text --\x3e"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=c},function(e,t,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return c.asap(r,this),n}var i=n(6),a=n(10),s=n(155),u=n(16),c=n(38),l=(n(0),n(4),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=s.getValue(t),r=n;if(null==n){var a=t.defaultValue,u=t.children;null!=u&&(null!=a&&i("92"),Array.isArray(u)&&(u.length<=1||i("93"),u=u[0]),a=""+u),null==a&&(a=""),r=a}e._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=u.getNodeFromInstance(e),r=s.getValue(t);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=u.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e||u("33"),"_hostNode"in t||u("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e||u("35"),"_hostNode"in t||u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||u("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o0;)n(u[c],"captured",i)}var u=n(6);n(0);e.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(10),i=n(38),a=n(108),s=n(29),u={initialize:s,close:function(){f.isBatchingUpdates=!1}},c={initialize:s,close:i.flushBatchedUpdates.bind(i)},l=[c,u];o(r.prototype,a,{getTransactionWrappers:function(){return l}});var p=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=f.isBatchingUpdates;return f.isBatchingUpdates=!0,a?e(t,n,r,o,i):p.perform(e,null,t,n,r,o,i)}};e.exports=f},function(e,t,n){"use strict";function r(){C||(C=!0,g.EventEmitter.injectReactEventListener(y),g.EventPluginHub.injectEventPluginOrder(s),g.EventPluginUtils.injectComponentTree(f),g.EventPluginUtils.injectTreeTraversal(h),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:E,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:i}),g.HostComponent.injectGenericComponentClass(p),g.HostComponent.injectTextComponentClass(m),g.DOMProperty.injectDOMPropertyConfig(o),g.DOMProperty.injectDOMPropertyConfig(c),g.DOMProperty.injectDOMPropertyConfig(_),g.EmptyComponent.injectEmptyComponentFactory(function(e){return new d(e)}),g.Updates.injectReconcileTransaction(b),g.Updates.injectBatchingStrategy(v),g.Component.injectEnvironment(l))}var o=n(596),i=n(598),a=n(600),s=n(602),u=n(603),c=n(605),l=n(607),p=n(610),f=n(16),d=n(612),h=n(620),m=n(618),v=n(621),y=n(625),g=n(626),b=n(631),_=n(636),w=n(637),E=n(638),C=!1;e.exports={inject:r}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(80),i={handleTopLevel:function(e,t,n,i){r(o.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=d(e.nativeEvent),n=p.getClosestInstanceFromNode(t),o=n;do{e.ancestors.push(o),o=o&&r(o)}while(o);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:f.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e,t){return t&&(e=e||[],e.push(t)),e}function c(e,t){p.processChildrenUpdates(e,t)}var l=n(6),p=n(156),f=(n(82),n(32),n(45),n(63)),d=n(606),h=(n(29),n(652)),m=(n(0),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return d.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,i){var a,s=0;return a=h(t,s),d.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,s),a},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=0,c=f.mountComponent(s,t,this,this._hostContainerInfo,n,u);s._mountIndex=i++,o.push(c)}return o},updateTextContent:function(e){var t=this._renderedChildren;d.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");c(this,[s(e)])},updateMarkup:function(e){var t=this._renderedChildren;d.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");c(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,e,i,o,t,n);if(a||r){var s,l=null,p=0,d=0,h=0,m=null;for(s in a)if(a.hasOwnProperty(s)){var v=r&&r[s],y=a[s];v===y?(l=u(l,this.moveChild(v,m,p,d)),d=Math.max(v._mountIndex,d),v._mountIndex=p):(v&&(d=Math.max(v._mountIndex,d)),l=u(l,this._mountChildAtIndex(y,i[h],m,p,t,n)),h++),p++,m=f.getHostNode(y)}for(s in o)o.hasOwnProperty(s)&&(l=u(l,this._unmountChild(r[s],o[s])));l&&c(this,l),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;d.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}e.exports=i},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var i=n(23),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=o},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(109);e.exports=r},function(e,t,n){"use strict";var r=n(267);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(21),s=n.n(a),u=n(11),c=n.n(u),l=n(27),p=n.n(l),f=n(561),d=n.n(f),h=n(166),m=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return c.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(c.a.Component);m.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(21),s=n.n(a),u=n(11),c=n.n(u),l=n(27),p=n.n(l),f=n(562),d=n.n(f),h=n(166),m=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return c.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(c.a.Component);m.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node},t.a=m},function(e,t,n){"use strict";var r=n(669);t.a=r.a},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(11),i=n.n(o),a=n(27),s=n.n(a),u=n(280),c=n(279),l=Object.assign||function(e){for(var t=1;t ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return c.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(c.a.Component);m.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(11),s=n.n(a),u=n(27),c=n.n(u),l=n(24),p=n.n(l),f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){p()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(s.a.Component);f.propTypes={when:c.a.bool,message:c.a.oneOfType([c.a.func,c.a.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:c.a.shape({history:c.a.shape({block:c.a.func.isRequired}).isRequired}).isRequired},t.a=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(11),s=n.n(a),u=n(27),c=n.n(u),l=n(21),p=n.n(l),f=n(24),d=n.n(f),h=n(567),m=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=n.i(h.a)(e.to),r=n.i(h.a)(this.props.to);if(n.i(h.b)(t,r))return void p()(!1,"You tried to redirect to the same route you're currently on: \""+r.pathname+r.search+'"');this.perform()},t.prototype.perform=function(){var e=this.context.router.history,t=this.props,n=t.push,r=t.to;n?e.push(r):e.replace(r)},t.prototype.render=function(){return null},t}(s.a.Component);m.propTypes={push:c.a.bool,from:c.a.string,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired},m.defaultProps={push:!1},m.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired}).isRequired,staticContext:c.a.object}).isRequired},t.a=m},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(21),u=n.n(s),c=n(24),l=n.n(c),p=n(11),f=n.n(p),d=n(27),h=n.n(d),m=n(78),v=(n.n(m),n(168)),y=Object.assign||function(e){for(var t=1;t",e)}},x=function(){},O=function(e){function t(){var r,a,s;o(this,t);for(var u=arguments.length,c=Array(u),l=0;l ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),o=r(e,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:_(t,w(n)),push:this.handlePush,replace:this.handleReplace,go:C("go"),goBack:C("goBack"),goForward:C("goForward"),listen:this.handleListen,block:this.handleBlock};return f.a.createElement(v.a,y({},o,{history:i}))},t}(f.a.Component);O.propTypes={basename:h.a.string,context:h.a.object.isRequired,location:h.a.oneOfType([h.a.string,h.a.object])},O.defaultProps={basename:"",location:"/"},O.childContextTypes={router:h.a.object.isRequired},t.a=O},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(11),s=n.n(a),u=n(27),c=n.n(u),l=n(21),p=n.n(l),f=n(24),d=n.n(f),h=n(169),m=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){p()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),p()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,r=this.props.location||e.location,o=void 0,i=void 0;return s.a.Children.forEach(t,function(t){if(s.a.isValidElement(t)){var a=t.props,u=a.path,c=a.exact,l=a.strict,p=a.sensitive,f=a.from,d=u||f;null==o&&(i=t,o=d?n.i(h.a)(r.pathname,{path:d,exact:c,strict:l,sensitive:p}):e.match)}}),o?s.a.cloneElement(i,{location:r,computedMatch:o}):null},t}(s.a.Component);m.contextTypes={router:c.a.shape({route:c.a.object.isRequired}).isRequired},m.propTypes={children:c.a.node,location:c.a.object},t.a=m},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(11),i=n.n(o),a=n(27),s=n.n(a),u=n(675),c=n.n(u),l=n(281),p=Object.assign||function(e){for(var t=1;t0&&(t+=a(s.lookup,o)),t+=a(s.lookup,n)}var o,i,a=n(288),s=n(111),u=1459707606518,c=6;e.exports=r},function(e,t,n){"use strict";function r(e){var t=o.shuffled();return{version:15&t.indexOf(e.substr(0,1)),worker:15&t.indexOf(e.substr(1,1))}}var o=n(111);e.exports=r},function(e,t,n){"use strict";function r(t){return s.seed(t),e.exports}function o(t){return p=t,e.exports}function i(e){return void 0!==e&&s.characters(e),s.shuffled()}function a(){return c(p)}var s=n(111),u=(n(288),n(690)),c=n(689),l=n(692),p=n(695)||0;e.exports=a,e.exports.generate=a,e.exports.seed=r,e.exports.worker=o,e.exports.characters=i,e.exports.decode=u,e.exports.isValid=l},function(e,t,n){"use strict";function r(e){if(!e||"string"!=typeof e||e.length<6)return!1;for(var t=o.characters(),n=e.length,r=0;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function a(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})}function c(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(a=i[2&n[0]?"return":n[0]?"throw":"next"])&&!(a=a.call(i,n[1])).done)return a;switch(i=0,a&&(n=[0,a.value]),n[0]){case 0:case 1:a=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(a=u.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function d(){for(var e=[],t=0;t1||o(e,t)})})}function o(e,t){try{i(l[e](t))}catch(e){u(p[0][3],e)}}function i(e){e.value instanceof h?Promise.resolve(e.value.v).then(a,s):u(p[0][2],e)}function a(e){o("next",e)}function s(e){o("throw",e)}function u(e,t){e(t),p.shift(),p.length&&o(p[0][0],p[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c,l=n.apply(e,t||[]),p=[];return c={},r("next"),r("throw"),r("return"),c[Symbol.asyncIterator]=function(){return this},c}function v(e){function t(t,o){e[t]&&(n[t]=function(n){return(r=!r)?{value:h(e[t](n)),done:"return"===t}:o?o(n):n})}var n,r;return n={},t("next"),t("throw",function(e){throw e}),t("return"),n[Symbol.iterator]=function(){return this},n}function y(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof p?p(e):e[Symbol.iterator]()}function g(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function b(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=r,n.d(t,"__assign",function(){return E}),t.__rest=o,t.__decorate=i,t.__param=a,t.__metadata=s,t.__awaiter=u,t.__generator=c,t.__exportStar=l,t.__values=p,t.__read=f,t.__spread=d,t.__await=h,t.__asyncGenerator=m,t.__asyncDelegator=v,t.__asyncValues=y,t.__makeTemplateObject=g,t.__importStar=b,t.__importDefault=_;var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:{}).doNotParse))try{return JSON.parse(e)}catch(e){}return e}Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this._updateBrowserValues(),s(this.cookies[e],t)}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._updateBrowserValues();var t={};for(var n in this.cookies)t[n]=s(this.cookies[n],e);return t}},{key:"set",value:function(e,t,n){"object"===(void 0===t?"undefined":u(t))&&(t=JSON.stringify(t)),this.hooks&&this.hooks.onSet&&this.hooks.onSet(e,t,n),this.cookies[e]=t,this.HAS_DOCUMENT_COOKIE&&(document.cookie=p.default.serialize(e,t,n))}},{key:"remove",value:function(e,t){var n=t=(0,d.default)({},t,{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.hooks&&this.hooks.onRemove&&this.hooks.onRemove(e,n),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=p.default.serialize(e,"",n))}}]),e}();t.default=m,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(701),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default,e.exports=t.default},function(e,t,n){"use strict";function r(){return"object"===("undefined"==typeof document?"undefined":i(document))&&"string"==typeof document.cookie}function o(){document.cookie.split(";").forEach(function(e){document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/")})}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasDocumentCookie=r,t.cleanCookies=o;t.HAS_DOCUMENT_COOKIE=r()},function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!=typeof t||n[e]?t:t+"px"}},function(e,t,n){"use strict";function r(e){return e}function o(e,t,n){function o(e,t){var n=g.hasOwnProperty(t)?g[t]:null;C.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function c(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;n.hasOwnProperty(u)&&_.mixins(e,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==u){var c=n[a],l=r.hasOwnProperty(a);if(o(l,a),_.hasOwnProperty(a))_[a](e,c);else{var p=g.hasOwnProperty(a),h="function"==typeof c,m=h&&!p&&!l&&!1!==n.autobind;if(m)i.push(a,c),r[a]=c;else if(l){var v=g[a];s(p&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,a),"DEFINE_MANY_MERGED"===v?r[a]=f(r[a],c):"DEFINE_MANY"===v&&(r[a]=d(r[a],c))}else r[a]=c}}}else;}function l(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in _;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;if(i){var a=b.hasOwnProperty(n)?b[n]:null;return s("DEFINE_MANY_MERGED"===a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=f(e[n],r))}e[n]=r}}}function p(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(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 p(o,n),p(o,r),o}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;n":"<"+e+">",s[e]=!a.firstChild),s[e]?f[e]:null}var o=n(25),i=n(2),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],c=[1,"","
"],l=[3,"","
"],p=[1,'',""],f={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){f[e]=p,s[e]=!0}),e.exports=r},function(e,t,n){"use strict";function r(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=r},function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;e.exports=r},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(713),i=/^ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(715);e.exports=r},function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=r},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,n){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s3&&void 0!==arguments[3]?arguments[3]:{};o(this,t);var u=i(this,e.call(this));return u.backend=n,u.store=r,u.services=a,u.options=s,u.logger=c.a.create("backendConnector"),u.state={},u.queue=[],u.backend&&u.backend.init&&u.backend.init(a,s.backend,s),u}return a(t,e),t.prototype.queueLoad=function(e,t,n){var r=this,o=[],i=[],a=[],s=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var a=e+"|"+t;r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?i.indexOf(a)<0&&i.push(a):(r.state[a]=1,n=!1,i.indexOf(a)<0&&i.push(a),o.indexOf(a)<0&&o.push(a),s.indexOf(t)<0&&s.push(t)))}),n||a.push(e)}),(o.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:n}),{toLoad:o,pending:i,toLoadLanguages:a,toLoadNamespaces:s}},t.prototype.loaded=function(e,t,n){var r=this,o=e.split("|"),i=f(o,2),a=i[0],c=i[1];t&&this.emit("failedLoading",a,c,t),n&&this.store.addResourceBundle(a,c,n),this.state[e]=t?-1:2,this.queue.forEach(function(n){u.b(n.loaded,[a],c),s(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(r.emit("loaded",n.loaded),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.queue=this.queue.filter(function(e){return!e.done})},t.prototype.read=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments[5];return e.length?this.backend[n](e,t,function(s,u){if(s&&u&&r<5)return void setTimeout(function(){o.read.call(o,e,t,n,r+1,2*i,a)},i);a(s,u)}):a(null,{})},t.prototype.load=function(e,t,n){var r=this;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();var o=p({},this.backend.options,this.options.backend);"string"==typeof e&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n);if(!i.toLoad.length)return i.pending.length||n(),null;o.allowMultiLoading&&this.backend.readMulti?this.read(i.toLoadLanguages,i.toLoadNamespaces,"readMulti",null,null,function(e,t){e&&r.logger.warn("loading namespaces "+i.toLoadNamespaces.join(", ")+" for languages "+i.toLoadLanguages.join(", ")+" via multiloading failed",e),!e&&t&&r.logger.log("successfully loaded namespaces "+i.toLoadNamespaces.join(", ")+" for languages "+i.toLoadLanguages.join(", ")+" via multiloading",t),i.toLoad.forEach(function(n){var o=n.split("|"),i=f(o,2),a=i[0],s=i[1],c=u.c(t,[a,s]);if(c)r.loaded(n,e,c);else{var l="loading namespace "+s+" for language "+a+" via multiloading failed";r.loaded(n,l),r.logger.error(l)}})}):i.toLoad.forEach(function(e){r.loadOne(e)})},t.prototype.reload=function(e,t){var n=this;this.backend||this.logger.warn("No backend was added via i18next.use. Will not load resources.");var r=p({},this.backend.options,this.options.backend);"string"==typeof e&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]),r.allowMultiLoading&&this.backend.readMulti?this.read(e,t,"readMulti",null,null,function(r,o){r&&n.logger.warn("reloading namespaces "+t.join(", ")+" for languages "+e.join(", ")+" via multiloading failed",r),!r&&o&&n.logger.log("successfully reloaded namespaces "+t.join(", ")+" for languages "+e.join(", ")+" via multiloading",o),e.forEach(function(e){t.forEach(function(t){var i=u.c(o,[e,t]);if(i)n.loaded(e+"|"+t,r,i);else{var a="reloading namespace "+t+" for language "+e+" via multiloading failed";n.loaded(e+"|"+t,a),n.logger.error(a)}})})}):e.forEach(function(e){t.forEach(function(t){n.loadOne(e+"|"+t,"re")})})},t.prototype.loadOne=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=f(r,2),i=o[0],a=o[1];this.read(i,a,"read",null,null,function(r,o){r&&t.logger.warn(n+"loading namespace "+a+" for language "+i+" failed",r),!r&&o&&t.logger.log(n+"loaded namespace "+a+" for language "+i,o),t.loaded(e,r,o)})},t.prototype.saveMissing=function(e,t,n,r){this.backend&&this.backend.create&&this.backend.create(e,t,n,r),e&&e[0]&&this.store.addResource(e[0],t,n,r)},t}(l.a);t.a=d},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r3&&void 0!==arguments[3]?arguments[3]:{};o(this,t);var c=i(this,e.call(this));return c.cache=n,c.store=r,c.services=a,c.options=u,c.logger=s.a.create("cacheConnector"),c.cache&&c.cache.init&&c.cache.init(a,u.cache,u),c}return a(t,e),t.prototype.load=function(e,t,n){var r=this;if(!this.cache)return n&&n();var o=c({},this.cache.options,this.options.cache),i="string"==typeof e?this.services.languageUtils.toResolveHierarchy(e):e;o.enabled?this.cache.load(i,function(e,t){if(e&&r.logger.error("loading languages "+i.join(", ")+" from cache failed",e),t)for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))for(var a in t[o])if(Object.prototype.hasOwnProperty.call(t[o],a)&&"i18nStamp"!==a){var s=t[o][a];s&&r.store.addResourceBundle(o,a,s)}n&&n()}):n&&n()},t.prototype.save=function(){this.cache&&this.options.cache&&this.options.cache.enabled&&this.cache.save(this.store.data)},t}(u.a);t.a=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(113),i=n(48),a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.logger=i.a.create("interpolator"),this.init(t,!0)}return e.prototype.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments[1]&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.escape=e.interpolation&&e.interpolation.escape||o.d),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.prefix=t.prefix?o.e(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?o.e(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?o.e(t.nestingPrefix):t.nestingPrefixEscaped||o.e("$t("),this.nestingSuffix=t.nestingSuffix?o.e(t.nestingSuffix):t.nestingSuffixEscaped||o.e(")"),this.resetRegExp()},e.prototype.reset=function(){this.options&&this.init(this.options)},e.prototype.resetRegExp=function(){var e=this.prefix+"(.+?)"+this.suffix;this.regexp=new RegExp(e,"g");var t=""+this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(t,"g");var n=this.nestingPrefix+"(.+?)"+this.nestingSuffix;this.nestingRegexp=new RegExp(n,"g")},e.prototype.interpolate=function(e,t,n){function r(e){return e.replace(/\$/g,"$$$$")}var i=this,a=void 0,s=void 0,u=function(e){if(e.indexOf(i.formatSeparator)<0)return o.c(t,e);var r=e.split(i.formatSeparator),a=r.shift().trim(),s=r.join(i.formatSeparator).trim();return i.format(o.c(t,a),s,n)};for(this.resetRegExp();a=this.regexpUnescape.exec(e);)s=u(a[1].trim()),e=e.replace(a[0],s),this.regexpUnescape.lastIndex=0;for(;a=this.regexp.exec(e);)s=u(a[1].trim()),"string"!=typeof s&&(s=o.f(s)),s||(this.logger.warn("missed to pass in variable "+a[1]+" for interpolating "+e),s=""),s=r(this.escapeValue?this.escape(s):s),e=e.replace(a[0],s),this.regexp.lastIndex=0;return e},e.prototype.nest=function(e,t){function n(e){if(e.indexOf(",")<0)return e;var t=e.split(",");e=t.shift();var n=t.join(",");n=this.interpolate(n,u),n=n.replace(/'/g,'"');try{u=JSON.parse(n)}catch(t){this.logger.error("failed parsing options string in nesting for key "+e,t)}return e}var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=void 0,s=void 0,u=a({},r);for(u.applyPostProcessor=!1;i=this.nestingRegexp.exec(e);){if((s=t(n.call(this,i[1].trim()),u))&&i[0]===e&&"string"!=typeof s)return s;"string"!=typeof s&&(s=o.f(s)),s||(this.logger.warn("missed to resolve "+i[1]+" for nesting "+e),s=""),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e},e}();t.a=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}var i=n(48),a=function(){function e(t){r(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=i.a.create("languageUtils")}return e.prototype.getScriptPartFromCode=function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))},e.prototype.getLanguagePartFromCode=function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])},e.prototype.formatLanguageCode=function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=o(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=o(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=o(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e},e.prototype.isWhitelisted=function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1},e.prototype.getFallbackCodes=function(e,t){if(!e)return[];if("string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]},e.prototype.toResolveHierarchy=function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isWhitelisted(e)?o.push(e):n.logger.warn("rejecting non-whitelisted language code: "+e))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach(function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))}),o},e}();t.a=a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){var e={};return a.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:s[t.fc]}})}),e}var i=n(48),a=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","es_ar","et","eu","fi","fo","fur","fy","gl","gu","ha","he","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt","pt_br","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21}],s={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)}},u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.languageUtils=t,this.options=n,this.logger=i.a.create("pluralResolver"),this.rules=o()}return e.prototype.addRule=function(e,t){this.rules[e]=t},e.prototype.getRule=function(e){return this.rules[this.languageUtils.getLanguagePartFromCode(e)]},e.prototype.needsPlural=function(e){var t=this.getRule(e);return t&&t.numbers.length>1},e.prototype.getSuffix=function(e,t){var n=this,r=this.getRule(e);if(r){if(1===r.numbers.length)return"";var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_"+i.toString():a():"v2"===this.options.compatibilityJSON||2===r.numbers.length&&1===r.numbers[0]?a():2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: "+e),""},e}();t.a=u},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};o(this,t);var a=i(this,e.call(this));return a.data=n,a.options=r,a}return a(t,e),t.prototype.addNamespaces=function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)},t.prototype.removeNamespaces=function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)},t.prototype.getResource=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.keySeparator||this.options.keySeparator;void 0===o&&(o=".");var i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),u.c(this.data,i)},t.prototype.addResource=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),u.g(this.data,a,r),o.silent||this.emit("added",e,t,n,r)},t.prototype.addResources=function(e,t,n){for(var r in n)"string"==typeof n[r]&&this.addResource(e,t,r,n[r],{silent:!0});this.emit("added",e,t,n)},t.prototype.addResourceBundle=function(e,t,n,r,o){var i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),r=n,n=t,t=i[1]),this.addNamespaces(t);var a=u.c(this.data,i)||{};r?u.h(a,n,o):a=c({},a,n),u.g(this.data,i,a),this.emit("added",e,t,n)},t.prototype.removeResourceBundle=function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)},t.prototype.hasResourceBundle=function(e,t){return void 0!==this.getResource(e,t)},t.prototype.getResourceBundle=function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?c({},this.getResource(e,t)):this.getResource(e,t)},t.prototype.toJSON=function(){return this.data},t}(s.a);t.a=l},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var a=i(this,e.call(this));return p.a(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector"],n,a),a.options=r,a.logger=s.a.create("translator"),a}return a(t,e),t.prototype.changeLanguage=function(e){e&&(this.language=e)},t.prototype.exists=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};return"v1"===this.options.compatibilityAPI&&(t=l.d(t)),void 0!==this.resolve(e,t)},t.prototype.extractFromKey=function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var r=t.keySeparator||this.options.keySeparator||".",o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}},t.prototype.translate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==(void 0===t?"undefined":d(t))?t=this.options.overloadTranslationOptionHandler(arguments):"v1"===this.options.compatibilityAPI&&(t=l.d(t)),void 0===e||null===e||""===e)return"";"number"==typeof e&&(e=String(e)),"string"==typeof e&&(e=[e]);var n=t.keySeparator||this.options.keySeparator||".",r=this.extractFromKey(e[e.length-1],t),o=r.key,i=r.namespaces,a=i[i.length-1],s=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(u){return a+(t.nsSeparator||this.options.nsSeparator)+o}return o}var c=this.resolve(e,t),p=Object.prototype.toString.apply(c),h=["[object Number]","[object Function]","[object RegExp]"],m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays;if(c&&"string"!=typeof c&&h.indexOf(p)<0&&(!m||"[object Array]"!==p)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(o,c,t):"key '"+o+" ("+this.language+")' returned an object instead of string.";if(t.keySeparator||this.options.keySeparator){var v="[object Array]"===p?[]:{};for(var y in c)Object.prototype.hasOwnProperty.call(c,y)&&(v[y]=this.translate(""+o+n+y,f({},t,{joinArrays:!1,ns:i})));c=v}}else if(m&&"[object Array]"===p)(c=c.join(m))&&(c=this.extendTranslation(c,o,t));else{var g=!1,b=!1;if(this.isValidLookup(c)||void 0===t.defaultValue||(g=!0,c=t.defaultValue),this.isValidLookup(c)||(b=!0,c=o),b||g){this.logger.log("missingKey",s,a,o,c);var _=[],w=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&w&&w[0])for(var E=0;E1&&void 0!==arguments[1]?arguments[1]:{},r=void 0;return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!t.isValidLookup(r)){var o=t.extractFromKey(e,n),i=o.key,a=o.namespaces;t.options.fallbackNS&&(a=a.concat(t.options.fallbackNS));var s=void 0!==n.count&&"string"!=typeof n.count,u=void 0!==n.context&&"string"==typeof n.context&&""!==n.context,c=n.lngs?n.lngs:t.languageUtils.toResolveHierarchy(n.lng||t.language);a.forEach(function(e){t.isValidLookup(r)||c.forEach(function(o){if(!t.isValidLookup(r)){var a=i,c=[a],l=void 0;s&&(l=t.pluralResolver.getSuffix(o,n.count)),s&&u&&c.push(a+l),u&&c.push(a+=""+t.options.contextSeparator+n.context),s&&c.push(a+=l);for(var p=void 0;p=c.pop();)t.isValidLookup(r)||(r=t.getResource(o,e,p,n))}})})}}),r},t.prototype.isValidLookup=function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)},t.prototype.getResource=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.resourceStore.getResource(e,t,n,r)},t}(u.a);t.a=h},function(e,t,n){"use strict";function r(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",saveMissing:!1,saveMissingTo:"fallback",missingKeyHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){return{defaultValue:e[1]}},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",defaultVariables:void 0}}}function o(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&e.whitelist.push("cimode"),e}n.d(t,"b",function(){return r}),t.a=o},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},a=arguments[1];o(this,t);var s=i(this,e.call(this));if(s.options=n.i(y.a)(r),s.services={},s.logger=u.a,s.modules={external:[]},a&&!s.isInitialized&&!r.isClone){var c;if(!s.options.initImmediate)return c=s.init(r,a),i(s,c);setTimeout(function(){s.init(r,a)},0)}return s}return a(t,e),t.prototype.init=function(e,t){function r(e){return e?"function"==typeof e?new e:e:null}var o=this;if("function"==typeof e&&(t=e,e={}),e||(e={}),"v1"===e.compatibilityAPI?this.options=_({},n.i(y.b)(),n.i(y.a)(b.a(e)),{}):"v1"===e.compatibilityJSON?this.options=_({},n.i(y.b)(),n.i(y.a)(b.b(e)),{}):this.options=_({},n.i(y.b)(),this.options,n.i(y.a)(e)),this.format=this.options.interpolation.format,t||(t=s),!this.options.isClone){this.modules.logger?u.a.init(r(this.modules.logger),this.options):u.a.init(null,this.options);var i=new f.a(this.options);this.store=new l.a(this.options.resources,this.options);var a=this.services;a.logger=u.a,a.resourceStore=this.store,a.resourceStore.on("added removed",function(e,t){a.cacheConnector.save()}),a.languageUtils=i,a.pluralResolver=new d.a(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new h.a(this.options),a.backendConnector=new m.a(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:s;if(this.options.resources)t(null);else{if(this.language&&"cimode"===this.language.toLowerCase())return t();var n=[],r=function(t){if(t){e.services.languageUtils.toResolveHierarchy(t).forEach(function(e){n.indexOf(e)<0&&n.push(e)})}};if(this.language)r(this.language);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return r(e)})}this.options.preload&&this.options.preload.forEach(function(e){return r(e)}),this.services.cacheConnector.load(n,this.options.ns,function(){e.services.backendConnector.load(n,e.options.ns,t)})}},t.prototype.reloadResources=function(e,t){e||(e=this.languages),t||(t=this.options.ns),this.services.backendConnector.reload(e,t)},t.prototype.use=function(e){return"backend"===e.type&&(this.modules.backend=e),"cache"===e.type&&(this.modules.cache=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"postProcessor"===e.type&&g.a.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this},t.prototype.changeLanguage=function(e,t){var n=this,r=function(e,r){r&&(n.emit("languageChanged",r),n.logger.log("languageChanged",r)),t&&t(e,function(){return n.t.apply(n,arguments)})},o=function(e){e&&(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources(function(t){r(t,e)})};e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect())},t.prototype.getFixedT=function(e,t){var n=this,r=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=_({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r},t.prototype.t=function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)},t.prototype.exists=function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)},t.prototype.setDefaultNamespace=function(e){this.options.defaultNS=e},t.prototype.loadNamespaces=function(e,t){var n=this;if(!this.options.ns)return t&&t();"string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(t)},t.prototype.loadLanguages=function(e,t){"string"==typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return n.indexOf(e)<0});if(!r.length)return t();this.options.preload=n.concat(r),this.loadResources(t)},t.prototype.dir=function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"},t.prototype.createInstance=function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments[1])},t.prototype.cloneInstance=function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,o=_({},this.options,n,{isClone:!0}),i=new t(o,r);return["store","services","language"].forEach(function(t){i[t]=e[t]}),i.translator=new p.a(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=0;i--){var a=r[i]+o;if(a in t)return a}return!1}},function(e,t,n){"use strict";function r(e,t,n,r,o){}e.exports=r},function(e,t,n){"use strict";function r(){}var o=n(297);e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(){return null}var o=n(13),i=n(297),a=n(731),s=function(){};e.exports=function(e,t){function n(e){var t=e&&(O&&e[O]||e[S]);if("function"==typeof t)return t}function u(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function c(e){this.message=e,this.stack=""}function l(e){function n(n,r,o,a,s,u,l){if(a=a||k,u=u||o,l!==i){if(t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}return null==r[o]?n?new c(null===r[o]?"The "+s+" `"+u+"` is marked as required in `"+a+"`, but its value is `null`.":"The "+s+" `"+u+"` is marked as required in `"+a+"`, but its value is `undefined`."):null:e(r,o,a,s,u)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function p(e){function t(t,n,r,o,i,a){var s=t[n];if(w(s)!==e)return new c("Invalid "+o+" `"+i+"` of type `"+E(s)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return l(t)}function f(e){function t(t,n,r,o,a){if("function"!=typeof e)return new c("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){return new c("Invalid "+o+" `"+a+"` of type `"+w(s)+"` supplied to `"+r+"`, expected an array.")}for(var u=0;u=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return p.default.createElement("div",e)}function i(e){var t=e.style,n=r(e,["style"]),o=c({},t,{right:2,bottom:2,left:2,borderRadius:3});return p.default.createElement("div",c({style:o},n))}function a(e){var t=e.style,n=r(e,["style"]),o=c({},t,{right:2,bottom:2,top:2,borderRadius:3});return p.default.createElement("div",c({style:o},n))}function s(e){var t=e.style,n=r(e,["style"]),o=c({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return p.default.createElement("div",c({style:o},n))}function u(e){var t=e.style,n=r(e,["style"]),o=c({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return p.default.createElement("div",c({style:o},n))}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1?r-1:0),s=1;s0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,_.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,_.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,o=n.onScrollFrame;r&&r(e),this.update(function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,o&&o(e)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect(),o=r.left,i=this.getThumbHorizontalWidth(),a=Math.abs(o-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect(),o=r.top,i=this.getThumbVerticalHeight(),a=Math.abs(o-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(a)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect(),i=o.left;this.prevPageX=r-(n-i)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect(),i=o.top;this.prevPageY=r-(n-i)}},{key:"setupDragging",value:function(){(0,d.default)(document.body,k.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=E.default}},{key:"teardownDragging",value:function(){(0,d.default)(document.body,k.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=this.trackHorizontal.getBoundingClientRect(),r=n.left,o=this.getThumbHorizontalWidth(),i=o-this.prevPageX,a=-r+t-i;this.view.scrollLeft=this.getScrollLeftForOffset(a)}if(this.prevPageY){var s=e.clientY,u=this.trackVertical.getBoundingClientRect(),c=u.top,l=this.getThumbVerticalHeight(),p=l-this.prevPageY,f=-c+s-p;this.view.scrollTop=this.getScrollTopForOffset(f)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,d.default)(this.trackHorizontal,{opacity:1}),(0,d.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,d.default)(e.trackHorizontal,{opacity:0}),(0,d.default)(e.trackVertical,{opacity:0})},t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&p.default.cancel(this.requestFrame),this.requestFrame=(0,p.default)(function(){t.requestFrame=void 0,e()})}},{key:"update",value:function(e){var t=this;this.raf(function(){return t._update(e)})}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if((0,_.default)()){var i=o.scrollLeft,a=o.clientWidth,s=o.scrollWidth,u=(0,x.default)(this.trackHorizontal),c=this.getThumbHorizontalWidth(),l=i/(s-a)*(u-c),p={width:c,transform:"translateX("+l+"px)"},f=o.scrollTop,h=o.clientHeight,m=o.scrollHeight,v=(0,S.default)(this.trackVertical),y=this.getThumbVerticalHeight(),g=f/(m-h)*(v-y),b={height:y,transform:"translateY("+g+"px)"};if(r){var w={visibility:s>a?"visible":"hidden"},E={visibility:m>h?"visible":"hidden"};(0,d.default)(this.trackHorizontal,w),(0,d.default)(this.trackVertical,E)}(0,d.default)(this.thumbHorizontal,p),(0,d.default)(this.thumbVertical,b)}n&&n(o),"function"==typeof e&&e(o)}},{key:"render",value:function(){var e=this,t=(0,_.default)(),n=this.props,r=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,c=n.renderThumbVertical,l=n.tagName,p=(n.hideTracksWhenNotNeeded,n.autoHide),f=(n.autoHideTimeout,n.autoHideDuration),d=(n.thumbSize,n.thumbMinSize,n.universal),m=n.autoHeight,v=n.autoHeightMin,y=n.autoHeightMax,b=n.style,w=n.children,E=o(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),C=this.state.didMountUniversal,x=u({},k.containerStyleDefault,m&&u({},k.containerStyleAutoHeight,{minHeight:v,maxHeight:y}),b),O=u({},k.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},m&&u({},k.viewStyleAutoHeight,{minHeight:(0,g.default)(v)?"calc("+v+" + "+t+"px)":v+t,maxHeight:(0,g.default)(y)?"calc("+y+" + "+t+"px)":y+t}),m&&d&&!C&&{minHeight:v,maxHeight:y},d&&!C&&k.viewStyleUniversalInitial),S={transition:"opacity "+f+"ms",opacity:0},T=u({},k.trackHorizontalStyleDefault,p&&S,(!t||d&&!C)&&{display:"none"}),P=u({},k.trackVerticalStyleDefault,p&&S,(!t||d&&!C)&&{display:"none"});return(0,h.createElement)(l,u({},E,{style:x,ref:function(t){e.container=t}}),[(0,h.cloneElement)(r({style:O}),{key:"view",ref:function(t){e.view=t}},w),(0,h.cloneElement)(i({style:T}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,h.cloneElement)(s({style:k.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,h.cloneElement)(a({style:P}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,h.cloneElement)(c({style:k.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(h.Component);t.default=P,P.propTypes={onScroll:v.default.func,onScrollFrame:v.default.func,onScrollStart:v.default.func,onScrollStop:v.default.func,onUpdate:v.default.func,renderView:v.default.func,renderTrackHorizontal:v.default.func,renderTrackVertical:v.default.func,renderThumbHorizontal:v.default.func,renderThumbVertical:v.default.func,tagName:v.default.string,thumbSize:v.default.number,thumbMinSize:v.default.number,hideTracksWhenNotNeeded:v.default.bool,autoHide:v.default.bool,autoHideTimeout:v.default.number,autoHideDuration:v.default.number,autoHeight:v.default.bool,autoHeightMin:v.default.oneOfType([v.default.number,v.default.string]),autoHeightMax:v.default.oneOfType([v.default.number,v.default.string]),universal:v.default.bool,style:v.default.object,children:v.default.node},P.defaultProps={renderView:T.renderViewDefault,renderTrackHorizontal:T.renderTrackHorizontalDefault,renderTrackVertical:T.renderTrackVerticalDefault,renderThumbHorizontal:T.renderThumbHorizontalDefault,renderThumbVertical:T.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},function(e,t,n){"use strict";function r(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,o=n.paddingBottom;return t-parseFloat(r)-parseFloat(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,o=n.paddingRight;return t-parseFloat(r)-parseFloat(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(){if(!1!==a)return a;if("undefined"!=typeof document){var e=document.createElement("div");(0,i.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),a=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else a=0;return a||0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(290),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=!1},function(e,t,n){"use strict";function r(e){return"string"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(){return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";e.exports=n(757)},function(e,t,n){"use strict";var r={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=r},function(e,t,n){"use strict";var r=n(17),o=n(292),i={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function o(e){switch(e){case"topCompositionStart":return O.compositionStart;case"topCompositionEnd":return O.compositionEnd;case"topCompositionUpdate":return O.compositionUpdate}}function i(e,t){return"topKeyDown"===e&&t.keyCode===g}function a(e,t){switch(e){case"topKeyUp":return-1!==y.indexOf(t.keyCode);case"topKeyDown":return t.keyCode!==g;case"topKeyPress":case"topMouseDown":case"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(b?u=o(e):k?a(e,n)&&(u=O.compositionEnd):i(e,n)&&(u=O.compositionStart),!u)return null;E&&(k||u!==O.compositionStart?u===O.compositionEnd&&k&&(c=k.getData()):k=h.getPooled(r));var l=m.getPooled(u,t,n,r);if(c)l.data=c;else{var p=s(n);null!==p&&(l.data=p)}return f.accumulateTwoPhaseDispatches(l),l}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==C?null:(S=!0,x);case"topTextInput":var n=t.data;return n===x&&S?null:n;default:return null}}function l(e,t){if(k){if("topCompositionEnd"===e||!b&&a(e,t)){var n=k.getData();return h.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return E?null:t.data;default:return null}}function p(e,t,n,r){var o;if(!(o=w?c(e,n):l(e,n)))return null;var i=v.getPooled(O.beforeInput,t,n,r);return i.data=o,f.accumulateTwoPhaseDispatches(i),i}var f=n(88),d=n(25),h=n(752),m=n(789),v=n(792),y=[9,13,27,32],g=229,b=d.canUseDOM&&"CompositionEvent"in window,_=null;d.canUseDOM&&"documentMode"in document&&(_=document.documentMode);var w=d.canUseDOM&&"TextEvent"in window&&!_&&!function(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}(),E=d.canUseDOM&&(!b||_&&_>8&&_<=11),C=32,x=String.fromCharCode(C),O={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},S=!1,k=null,T={eventTypes:O,extractEvents:function(e,t,n,r){return[u(e,t,n,r),p(e,t,n,r)]}};e.exports=T},function(e,t,n){"use strict";var r=n(299),o=n(25),i=(n(33),n(707),n(798)),a=n(714),s=n(717),u=(n(9),s(function(e){return a(e)})),c=!1,l="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){c=!0}void 0===document.documentElement.style.cssFloat&&(l="styleFloat")}var f={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=0===r.indexOf("--"),a=e[r];null!=a&&(n+=u(r)+":",n+=i(r,a,t,o)+";")}return n||null},setValueForStyles:function(e,t,n){var o=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=0===a.indexOf("--"),u=i(a,t[a],n,s);if("float"!==a&&"cssFloat"!==a||(a=l),s)o.setProperty(a,u);else if(u)o[a]=u;else{var p=c&&r.shorthandPropertyExpansions[a];if(p)for(var f in p)o[f]="";else o[a]=""}}}};e.exports=f},function(e,t,n){"use strict";function r(e,t,n){var r=S.getPooled(M.change,e,t,n);return r.type="change",E.accumulateTwoPhaseDispatches(r),r}function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=r(D,e,T(e));O.batchedUpdates(a,t)}function a(e){w.enqueueEvents(e),w.processEventQueue(!1)}function s(e,t){R=e,D=t,R.attachEvent("onchange",i)}function u(){R&&(R.detachEvent("onchange",i),R=null,D=null)}function c(e,t){var n=k.updateValueIfChanged(e),r=!0===t.simulated&&j._allowSimulatedPassThrough;if(n||r)return e}function l(e,t){if("topChange"===e)return t}function p(e,t,n){"topFocus"===e?(u(),s(t,n)):"topBlur"===e&&u()}function f(e,t){R=e,D=t,R.attachEvent("onpropertychange",h)}function d(){R&&(R.detachEvent("onpropertychange",h),R=null,D=null)}function h(e){"value"===e.propertyName&&c(D,e)&&i(e)}function m(e,t,n){"topFocus"===e?(d(),f(t,n)):"topBlur"===e&&d()}function v(e,t,n){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return c(D,n)}function y(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){if("topClick"===e)return c(t,n)}function b(e,t,n){if("topInput"===e||"topChange"===e)return c(t,n)}function _(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var r=""+t.value;t.getAttribute("value")!==r&&t.setAttribute("value",r)}}}var w=n(87),E=n(88),C=n(25),x=n(17),O=n(40),S=n(46),k=n(315),T=n(183),P=n(184),A=n(317),M={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},R=null,D=null,I=!1;C.canUseDOM&&(I=P("change")&&(!document.documentMode||document.documentMode>8));var N=!1;C.canUseDOM&&(N=P("input")&&(!document.documentMode||document.documentMode>9));var j={eventTypes:M,_allowSimulatedPassThrough:!0,_isInputEventSupported:N,extractEvents:function(e,t,n,i){var a,s,u=t?x.getNodeFromInstance(t):window;if(o(u)?I?a=l:s=p:A(u)?N?a=b:(a=v,s=m):y(u)&&(a=g),a){var c=a(e,t,n);if(c){return r(c,n,i)}}s&&s(e,u,t),"topBlur"===e&&_(t,u)}};e.exports=j},function(e,t,n){"use strict";var r=n(7),o=n(66),i=n(25),a=n(710),s=n(39),u=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||r("56"),t||r("57"),"HTML"===e.nodeName&&r("58"),"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});e.exports=u},function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=r},function(e,t,n){"use strict";var r=n(88),o=n(17),i=n(115),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u;if(s.window===s)u=s;else{var c=s.ownerDocument;u=c?c.defaultView||c.parentWindow:window}var l,p;if("topMouseOut"===e){l=t;var f=n.relatedTarget||n.toElement;p=f?o.getClosestInstanceFromNode(f):null}else l=null,p=t;if(l===p)return null;var d=null==l?u:o.getNodeFromInstance(l),h=null==p?u:o.getNodeFromInstance(p),m=i.getPooled(a.mouseLeave,l,n,s);m.type="mouseleave",m.target=d,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,p,n,s);return v.type="mouseenter",v.target=h,v.relatedTarget=d,r.accumulateEnterLeaveDispatches(m,v,l,p),[m,v]}};e.exports=s},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(13),i=n(52),a=n(314);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},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;e1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(67),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}};e.exports=c},function(e,t,n){"use strict";(function(t){function r(e,t,n,r){var o=void 0===e[n];null!=t&&o&&(e[n]=i(t,!0))}var o=n(68),i=n(316),a=(n(175),n(185)),s=n(319);n(9);void 0!==t&&n.i({NODE_ENV:"production"});var u={instantiateChildren:function(e,t,n,o){if(null==e)return null;var i={};return s(e,r,i),i},updateChildren:function(e,t,n,r,s,u,c,l,p){if(t||e){var f,d;for(f in t)if(t.hasOwnProperty(f)){d=e&&e[f];var h=d&&d._currentElement,m=t[f];if(null!=d&&a(h,m))o.receiveComponent(d,m,s,l),t[f]=d;else{d&&(r[f]=o.getHostNode(d),o.unmountComponent(d,!1));var v=i(m,!0);t[f]=v;var y=o.mountComponent(v,s,u,c,l,p);n.push(y)}}for(f in e)!e.hasOwnProperty(f)||t&&t.hasOwnProperty(f)||(d=e[f],r[f]=o.getHostNode(d),o.unmountComponent(d,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];o.unmountComponent(r,t)}}};e.exports=u}).call(t,n(36))},function(e,t,n){"use strict";var r=n(171),o=n(762),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function r(e){}function o(e){return!(!e.prototype||!e.prototype.isReactComponent)}function i(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var a=n(7),s=n(13),u=n(69),c=n(177),l=n(47),p=n(178),f=n(89),d=(n(33),n(309)),h=n(68),m=n(112),v=(n(2),n(170)),y=n(185),g=(n(9),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return t};var b=1,_={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=b++,this._hostParent=t,this._hostContainerInfo=n;var c,l=this._currentElement.props,p=this._processContext(s),d=this._currentElement.type,h=e.getUpdateQueue(),v=o(d),y=this._constructComponent(v,l,p,h);v||null!=y&&null!=y.render?i(d)?this._compositeType=g.PureClass:this._compositeType=g.ImpureClass:(c=y,null===y||!1===y||u.isValidElement(y)||a("105",d.displayName||d.name||"Component"),y=new r(d),this._compositeType=g.StatelessFunctional);y.props=l,y.context=p,y.refs=m,y.updater=h,this._instance=y,f.set(y,this);var _=y.state;void 0===_&&(y.state=_=null),("object"!=typeof _||Array.isArray(_))&&a("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=y.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),y.componentDidMount&&e.getReactMountReady().enqueue(y.componentDidMount,y),w},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?new o(t,n,r):o(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,o)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(e,t,n,r,o)}return i},performInitialMount:function(e,t,n,r,o){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var s=d.getType(e);this._renderedNodeType=s;var u=this._instantiateReactComponent(e,s!==d.EMPTY);this._renderedComponent=u;var c=h.mountComponent(u,r,t,n,this._processChildContext(o),a);return c},getHostNode:function(){return h.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(h.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return m;var r={};for(var o in n)r[o]=e[o];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(t=r.getChildContext()),t){"object"!=typeof n.childContextTypes&&a("107",this.getName()||"ReactCompositeComponent");for(var o in t)o in n.childContextTypes||a("108",this.getName()||"ReactCompositeComponent",o);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},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?h.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,o){var i=this._instance;null==i&&a("136",this.getName()||"ReactCompositeComponent");var s,u=!1;this._context===o?s=i.context:(s=this._processContext(o),u=!0);var c=t.props,l=n.props;t!==n&&(u=!0),u&&i.componentWillReceiveProps&&i.componentWillReceiveProps(l,s);var p=this._processPendingState(l,s),f=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?f=i.shouldComponentUpdate(l,p,s):this._compositeType===g.PureClass&&(f=!v(c,l)||!v(i.state,p))),this._updateBatchNumber=null,f?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,p,s,e,o)):(this._currentElement=n,this._context=o,i.props=l,i.state=p,i.context=s)},_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;if(o&&1===r.length)return r[0];for(var i=s({},o?r[0]:n.state),a=o?1:0;a=0||null!=t.is}function m(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var v=n(7),y=n(13),g=n(745),b=n(747),_=n(66),w=n(172),E=n(67),C=n(301),x=n(87),O=n(173),S=n(114),k=n(302),T=n(17),P=n(763),A=n(764),M=n(303),R=n(767),D=(n(33),n(776)),I=n(781),N=(n(39),n(117)),j=(n(2),n(184),n(170),n(315)),L=(n(186),n(9),k),F=x.deleteListener,U=T.getNodeFromInstance,B=S.listenTo,H=O.registrationNameModules,V={string:!0,number:!0},W="__html",q={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},z=11,Y={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},$={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},K={listing:!0,pre:!0,textarea:!0},G=y({menuitem:!0},$),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,J={},Q={}.hasOwnProperty,Z=1;m.displayName="ReactDOMComponent",m.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(p,this);break;case"input":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(p,this);break;case"option":A.mountWrapper(this,i,t),i=A.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(p,this);break;case"textarea":R.mountWrapper(this,i,t),i=R.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(p,this)}o(this,i);var a,f;null!=t?(a=t._namespaceURI,f=t._tag):n._tag&&(a=n._namespaceURI,f=n._tag),(null==a||a===w.svg&&"foreignobject"===f)&&(a=w.html),a===w.html&&("svg"===this._tag?a=w.svg:"math"===this._tag&&(a=w.mathml)),this._namespaceURI=a;var d;if(e.useCreateElement){var h,m=n._ownerDocument;if(a===w.html)if("script"===this._tag){var v=m.createElement("div"),y=this._currentElement.type;v.innerHTML="<"+y+">",h=v.removeChild(v.firstChild)}else h=i.is?m.createElement(this._currentElement.type,i.is):m.createElement(this._currentElement.type);else h=m.createElementNS(a,this._currentElement.type);T.precacheNode(this,h),this._flags|=L.hasCachedChildNodes,this._hostParent||C.setAttributeForRoot(h),this._updateDOMProperties(null,i,e);var b=_(h);this._createInitialChildren(e,i,r,b),d=b}else{var E=this._createOpenTagMarkupAndPutListeners(e,i),x=this._createContentMarkup(e,i,r);d=!x&&$[this._tag]?E+"/>":E+">"+x+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(H.hasOwnProperty(r))o&&i(this,r,o,e);else{"style"===r&&(o&&(o=this._previousStyleCopy=y({},t.style)),o=b.createMarkupForStyles(o,this));var a=null;null!=this._tag&&h(this._tag,t)?q.hasOwnProperty(r)||(a=C.createMarkupForCustomAttribute(r,o)):a=C.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+C.createMarkupForRoot()),n+=" "+C.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=V[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=N(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&_.queueHTML(r,o.__html);else{var i=V[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&_.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;ut.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 s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=c(e,o),u=c(e,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(25),c=n(803),l=n(314),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:p?o:i,setOffsets:p?a:s};e.exports=f},function(e,t,n){"use strict";var r=n(7),o=n(13),i=n(171),a=n(66),s=n(17),u=n(117),c=(n(2),n(186),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,l=c.createComment(i),p=c.createComment(" /react-text "),f=a(c.createDocumentFragment());return a.queueChild(f,a(l)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),s.precacheNode(this,l),this._closingComment=p,f}var d=u(this._stringText);return e.renderToStaticMarkup?d:"\x3c!--"+i+"--\x3e"+d+"\x3c!-- /react-text --\x3e"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=c},function(e,t,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return c.asap(r,this),n}var i=n(7),a=n(13),s=n(176),u=n(17),c=n(40),l=(n(2),n(9),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=s.getValue(t),r=n;if(null==n){var a=t.defaultValue,u=t.children;null!=u&&(null!=a&&i("92"),Array.isArray(u)&&(u.length<=1||i("93"),u=u[0]),a=""+u),null==a&&(a=""),r=a}e._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=u.getNodeFromInstance(e),r=s.getValue(t);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=u.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e||u("33"),"_hostNode"in t||u("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e||u("35"),"_hostNode"in t||u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||u("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o0;)n(u[c],"captured",i)}var u=n(7);n(2);e.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(13),i=n(40),a=n(116),s=n(39),u={initialize:s,close:function(){f.isBatchingUpdates=!1}},c={initialize:s,close:i.flushBatchedUpdates.bind(i)},l=[c,u];o(r.prototype,a,{getTransactionWrappers:function(){return l}});var p=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=f.isBatchingUpdates;return f.isBatchingUpdates=!0,a?e(t,n,r,o,i):p.perform(e,null,t,n,r,o,i)}};e.exports=f},function(e,t,n){"use strict";function r(){C||(C=!0,g.EventEmitter.injectReactEventListener(y),g.EventPluginHub.injectEventPluginOrder(s),g.EventPluginUtils.injectComponentTree(f),g.EventPluginUtils.injectTreeTraversal(h),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:E,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:i}),g.HostComponent.injectGenericComponentClass(p),g.HostComponent.injectTextComponentClass(m),g.DOMProperty.injectDOMPropertyConfig(o),g.DOMProperty.injectDOMPropertyConfig(c),g.DOMProperty.injectDOMPropertyConfig(_),g.EmptyComponent.injectEmptyComponentFactory(function(e){return new d(e)}),g.Updates.injectReconcileTransaction(b),g.Updates.injectBatchingStrategy(v),g.Component.injectEnvironment(l))}var o=n(744),i=n(746),a=n(748),s=n(750),u=n(751),c=n(753),l=n(755),p=n(758),f=n(17),d=n(760),h=n(768),m=n(766),v=n(769),y=n(773),g=n(774),b=n(779),_=n(784),w=n(785),E=n(786),C=!1;e.exports={inject:r}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(87),i={handleTopLevel:function(e,t,n,i){r(o.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=d(e.nativeEvent),n=p.getClosestInstanceFromNode(t),o=n;do{e.ancestors.push(o),o=o&&r(o)}while(o);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:f.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e,t){return t&&(e=e||[],e.push(t)),e}function c(e,t){p.processChildrenUpdates(e,t)}var l=n(7),p=n(177),f=(n(89),n(33),n(47),n(68)),d=n(754),h=(n(39),n(800)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return d.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,i){var a,s=0;return a=h(t,s),d.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,s),a},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=0,c=f.mountComponent(s,t,this,this._hostContainerInfo,n,u);s._mountIndex=i++,o.push(c)}return o},updateTextContent:function(e){var t=this._renderedChildren;d.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");c(this,[s(e)])},updateMarkup:function(e){var t=this._renderedChildren;d.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");c(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,e,i,o,t,n);if(a||r){var s,l=null,p=0,d=0,h=0,m=null;for(s in a)if(a.hasOwnProperty(s)){var v=r&&r[s],y=a[s];v===y?(l=u(l,this.moveChild(v,m,p,d)),d=Math.max(v._mountIndex,d),v._mountIndex=p):(v&&(d=Math.max(v._mountIndex,d)),l=u(l,this._mountChildAtIndex(y,i[h],m,p,t,n)),h++),p++,m=f.getHostNode(y)}for(s in o)o.hasOwnProperty(s)&&(l=u(l,this._unmountChild(r[s],o[s])));l&&c(this,l),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;d.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}e.exports=i},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var i=n(25),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=o},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(117);e.exports=r},function(e,t,n){"use strict";var r=n(308);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n-1){m=this.props.i18nKey.split(this.i18n.options.nsSeparator)[0]}this.t.ns&&(h["data-i18next-options"]=JSON.stringify({ns:m}))}return o&&(h.className=o),i&&(h.style=i),l.default.createElement.apply(this,[t,h].concat(f))}}]),t}(c.Component);d.propTypes={className:f.default.string},d.defaultProps={className:""},d.contextTypes={i18n:f.default.object.isRequired,t:f.default.func.isRequired},t.default=d},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=e.length;n"+c("",u(t),n+1)+"";else if(m.default.isValidElement(t))e=e+"<"+r+">";else if("object"===(void 0===t?"undefined":d(t))){var o=f({},t),i=o.format;delete o.format;var a=Object.keys(o);i&&1===a.length?e=e+"<"+r+">{{"+a[0]+", "+i+"}}":1===a.length&&(e=e+"<"+r+">{{"+a[0]+"}}")}}),e}function l(e,t,n){function r(e,t){"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]);var o=t.split(g).reduce(function(e,t,n){return t&&e.push(t),e},[]);return o.reduce(function(t,i,a){var c=!isNaN(i),l=a>0&&!isNaN(o[a-1]);if(l){var p=e[parseInt(o[a-1],10)]||{};m.default.isValidElement(p)&&!s(p)&&(l=!1)}if(l)return t;if(c){var h=e[parseInt(i,10)]||{},v=m.default.isValidElement(h);if("string"==typeof h)t.push(h);else if(s(h)){var y=r(u(h),o[a+1]);t.push(m.default.cloneElement(h,f({},h.props,{key:a}),y))}else if("object"!==(void 0===h?"undefined":d(h))||v)t.push(h);else{var g=n.services.interpolator.interpolate(o[a+1],h,n.language);t.push(g)}}return c||l||t.push(i),t},[])}return r(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var n=0;n]*)>(.*?)<\\/\\1>)","gi"),b=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.i18n=n.i18n,r.t=n.t,r}return a(t,e),p(t,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.count,r=e.parent,o=c("",t,0),i=this.props.i18nKey||o,a=this.t(i,{interpolation:{prefix:"#$?",suffix:"?$#"},defaultValue:o,count:n}),s={};if(this.i18n.options.react&&this.i18n.options.react.exposeNamespace){var u="string"==typeof this.t.ns?this.t.ns:this.t.ns[0];if(this.props.i18nKey&&this.i18n.options.nsSeparator&&this.props.i18nKey.indexOf(this.i18n.options.nsSeparator)>-1){u=this.props.i18nKey.split(this.i18n.options.nsSeparator)[0]}this.t.ns&&(s["data-i18next-options"]=JSON.stringify({ns:u}))}return m.default.createElement(r,s,l(t,a,this.i18n))}}]),t}(m.default.Component);t.default=b,b.propTypes={count:y.default.number,parent:y.default.string,i18nKey:y.default.string},b.defaultProps={parent:"div"},b.contextTypes={i18n:y.default.object.isRequired,t:y.default.func.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return e.displayName||e.name||"Component"}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.withRef,r=void 0!==n&&n,c=t.bindI18n,h=void 0===c?"languageChanged loaded":c,v=t.bindStore,b=void 0===v?"added removed":v,_=t.translateFuncName,w=void 0===_?"t":_,E=t.wait,C=void 0!==E&&E;return function(n){var c,v=function(u){function c(n,r){i(this,c);var o=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,n,r));return o.i18n=r.i18n||n.i18n||t.i18n,e=e||o.i18n.options.defaultNS,"string"==typeof e&&(e=[e]),!C&&o.i18n.options&&(o.i18n.options.wait||o.i18n.options.react&&o.i18n.options.react.wait)&&(C=!0),o.nsMode=t.nsMode||o.i18n.options&&o.i18n.options.react&&o.i18n.options.react.nsMode||"default",n.initialI18nStore&&(o.i18n.services.resourceStore.data=n.initialI18nStore,C=!1),n.initialLanguage&&o.i18n.changeLanguage(n.initialLanguage),o.i18n.options.isInitialSSR&&(C=!1),o.state={i18nLoadedAt:null,ready:!1},o.onI18nChanged=o.onI18nChanged.bind(o),o.getWrappedInstance=o.getWrappedInstance.bind(o),o}return s(c,u),p(c,[{key:"getChildContext",value:function(){var e;return e={},o(e,w,this[w]),o(e,"i18n",this.i18n),e}},{key:"componentWillMount",value:function(){this[w]=this.i18n.getFixedT(null,"fallback"===this.nsMode?e:e[0])}},{key:"componentDidMount",value:function(){var t=this,n=function(){h&&t.i18n&&t.i18n.on(h,t.onI18nChanged),b&&t.i18n.store&&t.i18n.store.on(b,t.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(e,function(){var e=function(){t.mounted&&!t.state.ready&&t.setState({ready:!0}),C&&t.mounted&&n()};if(t.i18n.isInitialized)e();else{var r=function n(){setTimeout(function(){t.i18n.off("initialized",n)},1e3),e()};t.i18n.on("initialized",r)}}),C||n()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(h){h.split(" ").forEach(function(t){return e.i18n.off(t,e.onI18nChanged)})}if(b){b.split(" ").forEach(function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&this.setState({i18nLoadedAt:new Date})}},{key:"getWrappedInstance",value:function(){return r||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.refs.wrappedInstance}},{key:"render",value:function(){var e,t=this,i=this.state,a=i.i18nLoadedAt,s=i.ready,u=(e={i18nLoadedAt:a},o(e,w,this[w]),o(e,"i18n",this.i18n),e);return r&&(u.ref="wrappedInstance"),!s&&C?null:(this.i18n.options.isInitialSSR&&!g&&(g=!0,setTimeout(function(){delete t.i18n.options.isInitialSSR},100)),d.default.createElement(n,l({},this.props,u)))}}]),c}(f.Component);return v.WrappedComponent=n,v.contextTypes={i18n:m.default.object},v.childContextTypes=(c={},o(c,w,m.default.func.isRequired),o(c,"i18n",m.default.object),c),v.displayName="Translate("+u(n)+")",v.namespaces=e,(0,y.default)(v,n)}}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t \ No newline at end of file diff --git a/assets/viewer/wave-dc15a25d325f6e422665aaea4eee9834.svg b/assets/viewer/wave-dc15a25d325f6e422665aaea4eee9834.svg deleted file mode 100644 index 9655e9a..0000000 --- a/assets/viewer/wave-dc15a25d325f6e422665aaea4eee9834.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/assets/viewer/wave-qu-8ff3a7579823f9099d975ad581dc134e.svg b/assets/viewer/wave-qu-8ff3a7579823f9099d975ad581dc134e.svg deleted file mode 100644 index e528279..0000000 --- a/assets/viewer/wave-qu-8ff3a7579823f9099d975ad581dc134e.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/assets/viewer/wave-rf-d7c35952140e971b52a5fbb5b5acf36d.svg b/assets/viewer/wave-rf-d7c35952140e971b52a5fbb5b5acf36d.svg deleted file mode 100644 index db5fd2b..0000000 --- a/assets/viewer/wave-rf-d7c35952140e971b52a5fbb5b5acf36d.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/classes/plagiarism_pchkorg_api_provider.php b/classes/plagiarism_pchkorg_api_provider.php index 604d671..b7033ff 100644 --- a/classes/plagiarism_pchkorg_api_provider.php +++ b/classes/plagiarism_pchkorg_api_provider.php @@ -236,23 +236,11 @@ class plagiarism_pchkorg_api_provider { return $id; } - public function get_report($id) { - $curl = new curl(); - $response = $curl->get($this->endpoint . '/api/v1/text/report/' . $id, array(), array( - 'CURLOPT_RETURNTRANSFER' => true, - 'CURLOPT_FOLLOWLOCATION' => true, - 'CURLOPT_SSL_VERIFYHOST' => false, - 'CURLOPT_SSL_VERIFYPEER' => false, - 'CURLOPT_POST' => false, - 'CURLOPT_HTTPHEADER' => array( - 'X-API-TOKEN: ' . $this->generate_api_token(), - ), - )); - - return $response; + public function get_report_action($id) { + return "{$this->endpoint}/lms/public-report/{$id}/"; } - private function generate_api_token() { + public function generate_api_token() { global $USER; if ($this->is_group_token()) { diff --git a/lib.php b/lib.php index f140bd0..291e50f 100644 --- a/lib.php +++ b/lib.php @@ -69,11 +69,13 @@ class plagiarism_plugin_pchkorg extends plagiarism_plugin { if ($filerecord) { $label = sprintf('%.2f', $filerecord->score) . '%'; + $link = sprintf(' ( %s ) ', $checkurl->__toString(), $label); } else { $label = get_string('pchkorg_check_for_plagiarism', 'plagiarism_pchkorg'); + $link = sprintf(' ( %s ) ', $checkurl->__toString(), $label); } - return sprintf(' ( %s ) ', $checkurl->__toString(), $label); + return $link; } /* hook to save plagiarism specific settings on a module settings page diff --git a/page/report.php b/page/report.php index 4f777ac..cc65d30 100644 --- a/page/report.php +++ b/page/report.php @@ -36,7 +36,6 @@ $cm = get_coursemodule_from_id('', $cmid, 0, false, MUST_EXIST); require_login($cm->course, true, $cm); $context = context_module::instance($cm->id);// Get context of course. - $isgranted = is_viewing($context, null, 'plagiarism/pchkorg:check'); if (!$isgranted) { die('403 permission denied'); @@ -156,14 +155,8 @@ if (!$filerecord) { require('../view/send_text.php'); } else if (null !== $filerecord->reportid) { - $report = $apiprovider->get_report($filerecord->textid); - $json = json_decode($report); - $error = ''; - if (isset($json->message)) { - $error = $json->message; - } else { - $data = $report; - } + $action = $apiprovider->get_report_action($filerecord->textid); + $token = $apiprovider->generate_api_token(); require('../view/report.php'); } else if (null !== $filerecord->textid) { diff --git a/version.php b/version.php index 95c920a..542c906 100644 --- a/version.php +++ b/version.php @@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die(); if (!isset($plugin)) { $plugin = new stdClass(); } -$plugin->version = 2019013002; +$plugin->version = 2019013003; $plugin->requires = 2017051501; // Requires Moodle 3.3 . -$plugin->release = 'v2.0'; +$plugin->release = 'v2.1'; $plugin->maturity = MATURITY_STABLE; $plugin->component = 'plagiarism_pchkorg'; diff --git a/view/report.php b/view/report.php index 1460462..3febc9a 100644 --- a/view/report.php +++ b/view/report.php @@ -17,26 +17,17 @@ defined('MOODLE_INTERNAL') || die(); if (empty($error)) { - $PAGE->requires->css(new moodle_url('/plagiarism/pchkorg/assets/viewer/public-report.min.css')); - $PAGE->requires->js(new moodle_url('/plagiarism/pchkorg/assets/viewer/public-report.bundle.min.js'), true); - $PAGE->requires->js_init_code( - ' - initPublicReport({ - container: window.document.getElementById(\'report-root\'), - basename: "'.$currenturl->get_path().'", - localData: ' . (empty($data) ? '{}' : $data) . ' - }); - ', true - ); -} - -echo $OUTPUT->header(); - -?> -
-
-requires->js_init_code('window.document.getElementById("plagiarism_pchkorg_report_id").submit();', true); + echo $OUTPUT->header(); + ?> +
+ + + +
+ header(); ?>

Error: