Team:Washington/Javascript

!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,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=220)}([function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){"use strict";e.exports=n(227)},function(e,t,n){e.exports=n(291)()},function(e,t){function n(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.exports=n},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";function r(){return N||(N=(0,w.default)())}var i=n(54),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.sheetsManager=void 0;var a=o(n(4)),s=o(n(12)),u=o(n(8)),l=o(n(9)),c=o(n(10)),f=o(n(11)),d=o(n(3)),h=o(n(1)),p=o(n(2)),m=(o(n(14)),o(n(94))),v=(o(n(142)),o(n(56)),o(n(295))),y=n(136),g=i(n(143)),b=o(n(135)),w=o(n(87)),_=o(n(93)),E=o(n(130)),T=o(n(297)),x=o(n(298)),S=(0,y.create)((0,b.default)()),k=(0,E.default)(),C=-1e11,O=new Map;t.sheetsManager=O;var N,P={},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.withTheme,o=void 0!==i&&i,y=t.flip,b=void 0===y?null:y,w=t.name,E=(0,d.default)(t,["withTheme","flip","name"]),N=(0,T.default)(e),I=N.themingEnabled||o||"string"===typeof w;C+=1,N.options.index=C;var A=function(e){function t(e,n){var i;(0,u.default)(this,t),i=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),i.state={},i.disableStylesGeneration=!1,i.jss=null,i.sheetOptions=null,i.sheetsManager=O,i.stylesCreatorSaved=null,i.theme=null,i.unsubscribeId=null,i.jss=i.context[g.jss]||S;var o=i.context.muiThemeProviderOptions;return o&&(o.sheetsManager&&(i.sheetsManager=o.sheetsManager),i.disableStylesGeneration=o.disableStylesGeneration),i.stylesCreatorSaved=N,i.sheetOptions=(0,s.default)({generateClassName:k},i.context[g.sheetOptions]),i.theme=I?_.default.initial(n)||r():P,i.attach(i.theme),i.cacheClasses={value:null,lastProp:null,lastJSS:{}},i}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){var e=this;I&&(this.unsubscribeId=_.default.subscribe(this.context,function(t){var n=e.theme;e.theme=t,e.attach(e.theme),e.setState({},function(){e.detach(n)})}))}},{key:"componentDidUpdate",value:function(){this.stylesCreatorSaved,0}},{key:"componentWillUnmount",value:function(){this.detach(this.theme),null!==this.unsubscribeId&&_.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"getClasses",value:function(){var e=this,t=!1;if(!this.disableStylesGeneration){var n=this.sheetsManager.get(this.stylesCreatorSaved),r=n.get(this.theme);r.sheet.classes!==this.cacheClasses.lastJSS&&(this.cacheClasses.lastJSS=r.sheet.classes,t=!0)}return this.props.classes!==this.cacheClasses.lastProp&&(this.cacheClasses.lastProp=this.props.classes,t=!0),t&&(this.props.classes?this.cacheClasses.value=(0,s.default)({},this.cacheClasses.lastJSS,Object.keys(this.props.classes).reduce(function(t,n){return e.props.classes[n]&&(t[n]="".concat(e.cacheClasses.lastJSS[n]," ").concat(e.props.classes[n])),t},{})):this.cacheClasses.value=this.cacheClasses.lastJSS),this.cacheClasses.value}},{key:"attach",value:function(e){if(!this.disableStylesGeneration){var t=this.stylesCreatorSaved,n=this.sheetsManager.get(t);n||(n=new Map,this.sheetsManager.set(t,n));var r=n.get(e);if(r||(r={refs:0,sheet:null},n.set(e,r)),0===r.refs){var i=t.create(e,w),o=w,a=this.jss.createStyleSheet(i,(0,s.default)({meta:o,classNamePrefix:o,flip:"boolean"===typeof b?b:"rtl"===e.direction,link:!1},this.sheetOptions,t.options,{name:w},E));r.sheet=a,a.attach();var u=this.context[g.sheetsRegistry];u&&u.add(a)}r.refs+=1}}},{key:"detach",value:function(e){if(!this.disableStylesGeneration){var t=this.stylesCreatorSaved,n=this.sheetsManager.get(t),r=n.get(e);if(r.refs-=1,0===r.refs){n.delete(e),this.jss.removeStyleSheet(r.sheet);var i=this.context[g.sheetsRegistry];i&&i.remove(r.sheet)}}}},{key:"render",value:function(){var e=this.props,t=(e.classes,e.innerRef),r=(0,d.default)(e,["classes","innerRef"]),i=(0,x.default)({theme:this.theme,name:w});return o&&(i.theme=this.theme),h.default.createElement(n,(0,a.default)({},i,{classes:this.getClasses(),ref:t},r))}}]),t}(h.default.Component);return A.propTypes={},A.contextTypes=(0,s.default)({muiThemeProviderOptions:p.default.object},v.default,I?_.default.contextTypes:{}),(0,m.default)(A,n),A}},A=I;t.default=A},function(e,t,n){var r,i;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)o.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(i=function(){return n}.apply(t,r))&&(e.exports=i))}()},function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n},function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}e.exports=r},function(e,t,n){function r(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?o(e):t}var i=n(92),o=n(40);e.exports=r},function(e,t,n){function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}var i=n(290);e.exports=r},function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}var i=n(7);e.exports=r},function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e,t){return Object.keys(t).every(function(n){return e.hasOwnProperty(n)&&e[n]===t[n]})}function o(e,t){for(var n=(0,l.default)(t),r=0;r<e.length;r+=1){if("function"===n&&!0===!!t(e[r],r,e))return r;if("object"===n&&i(e[r],t))return r;if(-1!==["string","number","boolean"].indexOf(n))return e.indexOf(t)}return-1}function a(e,t){var n=o(e,t);return n>-1?e[n]:void 0}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}},function(){})}var u=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=r,t.contains=i,t.findIndex=o,t.find=a,t.createChainedFunction=s;var l=u(n(92));u(n(14))},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(346))},function(e,t,n){"use strict";function r(e,t){for(var n,r,a=t.children||[],s=a.length,u=[],l=-1;++l<s;)(n=o(e,a[l],t))&&(l&&"break"===a[l-1].type&&(n.value&&(n.value=i.left(n.value)),(r=n.children&&n.children[0])&&r.value&&(r.value=i.left(r.value))),u=u.concat(n));return u}e.exports=r;var i=n(29),o=n(212)},function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(228)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(305),o=r(i),a=n(345),s=r(a),u=n(156),l=(r(u),n(56)),c=(r(l),function(e){var t=(0,o.default)(function(e,t){return!(0,s.default)(e,t)});return t(e)});t.default=c},function(e,t,n){"use strict";function r(e){return o.test("number"===typeof e?i(e):e.charAt(0))}e.exports=r;var i=String.fromCharCode,o=/\s/},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e,t){if("string"!==typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(i!==e||"undefined"===typeof i)i=e,o="";else if(o.length>=n)return o.substr(0,n);for(;n>o.length&&t>1;)1&t&&(o+=e),t>>=1,e+=e;return o+=e,o=o.substr(0,n)}var i,o="";e.exports=r},function(e,t,n){"use strict";var r=n(63);e.exports=function(e,t,n){return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),r({},t,{type:String(e)},null!=n&&(Array.isArray(n)?{children:n}:{value:String(n)}))}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(303))},function(e,t){function n(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var i in n)r.call(n,i)&&(e[i]=n[i])}return e}e.exports=n;var r=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(301))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(349))},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e.default:e}function i(e,t,n){return Object.defineProperty(e,t,n)}function o(e){return y({},w,e)}function a(e,t,n){var r=[e,t];return r.push(b?n:n.capture),r}function s(e,t,n,r){e.addEventListener.apply(e,a(t,n,r))}function u(e,t,n,r){e.removeEventListener.apply(e,a(t,n,r))}function l(e,t){var n=(e.children,e.target,v(e,["children","target"]));Object.keys(n).forEach(function(e){if("on"===e.substring(0,2)){var r=n[e],i=m(r),a="object"===i,s="function"===i;if(a||s){var u="capture"===e.substr(-7).toLowerCase(),l=e.substring(2).toLowerCase();l=u?l.substring(0,l.length-7):l,a?t(l,r.handler,r.options):t(l,r,o({capture:u}))}}})}function c(e,t){return{handler:e,options:o(t)}}Object.defineProperty(t,"__esModule",{value:!0});var f=r(n(8)),d=r(n(9)),h=r(n(10)),p=r(n(11)),m=r(n(92)),v=r(n(3)),y=r(n(12)),g=r(n(1)),b=(r(n(2)),r(n(14)),function(){var e=null;return function(){if(null!==e)return e;var t=!1;try{window.addEventListener("test",null,i({},"passive",{get:function(){t=!0}}))}catch(e){}return e=t,t}()}()),w={capture:!1,passive:!1},_=function(e){function t(){return f(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),d(t,[{key:"componentDidMount",value:function(){this.applyListeners(s)}},{key:"componentDidUpdate",value:function(e){this.applyListeners(u,e),this.applyListeners(s)}},{key:"componentWillUnmount",value:function(){this.applyListeners(u)}},{key:"applyListeners",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,n=t.target;if(n){var r=n;"string"===typeof n&&(r=window[n]),l(t,e.bind(null,r))}}},{key:"render",value:function(){return this.props.children||null}}]),t}(g.PureComponent);_.propTypes={},t.withOptions=c,t.default=_},function(e,t){function n(e){return e.replace(/^\s*|\s*$/g,"")}t=e.exports=n,t.left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isNumber=t.isString=t.formatMs=t.duration=t.easing=void 0;var i=r(n(3)),o=(r(n(14)),{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"});t.easing=o;var a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};t.duration=a;var s=function(e){return"".concat(Math.round(e),"ms")};t.formatMs=s;var u=function(e){return"string"===typeof e};t.isString=u;var l=function(e){return!isNaN(parseFloat(e))};t.isNumber=l;var c={easing:o,duration:a,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){var n=t.duration,r=void 0===n?a.standard:n,u=t.easing,l=void 0===u?o.easeInOut:u,c=t.delay,f=void 0===c?0:c;(0,i.default)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"===typeof r?r:s(r)," ").concat(l," ").concat("string"===typeof f?f:s(f))}).join(",")}()},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=c},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb(".concat(n.map(function(e){return parseInt(e,16)}).join(", "),")"):""}function o(e){if("#"===e.charAt(0))return o(i(e));var t=e.indexOf("("),n=e.substring(0,t),r=e.substring(t+1,e.length-1).split(",");return r=r.map(function(e){return parseFloat(e)}),{type:n,values:r}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")&&(n=n.map(function(e,t){return t<3?parseInt(e,10):e})),-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e.type,"(").concat(n.join(", "),")")}function s(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t=o(e);if(-1!==t.type.indexOf("rgb")){var n=t.values.map(function(e){return e/=255,e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}return t.values[2]/100}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?f(e,t):d(e,t)}function c(e,t){return e?(e=o(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)):e}function f(e,t){if(!e)return e;if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(!e)return e;if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}var h=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.convertHexToRGB=i,t.decomposeColor=o,t.recomposeColor=a,t.getContrastRatio=s,t.getLuminance=u,t.emphasize=l,t.fade=c,t.darken=f,t.lighten=d;h(n(14))},function(e,t,n){"use strict";function r(){return o||(o=(0,h.default)())}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=i(n(4)),s=i(n(8)),u=i(n(9)),l=i(n(10)),c=i(n(11)),f=i(n(1)),d=i(n(94)),h=(i(n(56)),i(n(87))),p=i(n(93)),m=function(){return function(e){var t=function(t){function n(e,t){var i;return(0,s.default)(this,n),i=(0,l.default)(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),i.state={},i.unsubscribeId=null,i.state={theme:p.default.initial(t)||r()},i}return(0,c.default)(n,t),(0,u.default)(n,[{key:"componentDidMount",value:function(){var e=this;this.unsubscribeId=p.default.subscribe(this.context,function(t){e.setState({theme:t})})}},{key:"componentWillUnmount",value:function(){null!==this.unsubscribeId&&p.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"render",value:function(){return f.default.createElement(e,(0,a.default)({theme:this.state.theme},this.props))}}]),n}(f.default.Component);return t.contextTypes=p.default.contextTypes,(0,d.default)(t,e),t}},v=m;t.default=v},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e,t,n){function r(){var l=Date.now()-s;l<t&&l>=0?i=setTimeout(r,t-l):(i=null,n||(u=e.apply(a,o),a=o=null))}var i,o,a,s,u;null==t&&(t=100);var l=function(){a=this,o=arguments,s=Date.now();var l=n&&!i;return i||(i=setTimeout(r,t)),l&&(u=e.apply(a,o),a=o=null),u};return l.clear=function(){i&&(clearTimeout(i),i=null)},l.flush=function(){i&&(u=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},l}},function(e,t,n){"use strict";function r(){function e(e){d(p[e],"delete"),delete p[e]}function t(e){return e=e||s,a(p,e)||i("no-app",{name:e}),p[e]}function n(e,t){if(void 0===t&&(t={}),"object"!==typeof t||null===t){t={name:t}}var n=t;void 0===n.name&&(n.name=s);var r=n.name;"string"===typeof r&&r||i("bad-app-name",{name:r+""}),a(p,r)&&i("duplicate-app",{name:r});var o=new l(e,n,y);return p[r]=o,d(o,"create"),o}function u(){return Object.keys(p).map(function(e){return p[e]})}function c(e,n,r,a,s){m[e]&&i("duplicate-service",{name:e}),m[e]=n,a&&(v[e]=a,u().forEach(function(e){a("create",e)}));var c=function(n){return void 0===n&&(n=t()),"function"!==typeof n[e]&&i("invalid-app-argument",{name:e}),n[e]()};return void 0!==r&&o.deepExtend(c,r),y[e]=c,l.prototype[e]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this._getService.bind(this,e).apply(this,s?t:[])},c}function f(e){o.deepExtend(y,e)}function d(e,t){Object.keys(m).forEach(function(n){var r=h(e,n);null!==r&&v[r]&&v[r](t,e)})}function h(e,t){if("serverAuth"===t)return null;var n=t;e.options;return n}var p={},m={},v={},y={__esModule:!0,initializeApp:n,app:t,apps:null,Promise:Promise,SDK_VERSION:"5.0.4",INTERNAL:{registerService:c,createFirebaseNamespace:r,extendNamespace:f,createSubscribe:o.createSubscribe,ErrorFactory:o.ErrorFactory,removeApp:e,factories:m,useAsService:h,Promise:Promise,deepExtend:o.deepExtend}};return o.patchProperty(y,"default",y),Object.defineProperty(y,"apps",{get:u}),o.patchProperty(t,"App",l),y}function i(e,t){throw f.create(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(85),a=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s="[DEFAULT]",u=[],l=function(){function e(e,t,n){this.firebase_=n,this.isDeleted_=!1,this.services_={},this.name_=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled||!1,this.options_=o.deepCopy(e),this.INTERNAL={getUid:function(){return null},getToken:function(){return Promise.resolve(null)},addAuthTokenListener:function(e){u.push(e),setTimeout(function(){return e(null)},0)},removeAuthTokenListener:function(e){u=u.filter(function(t){return t!==e})}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this._automaticDataCollectionEnabled},set:function(e){this.checkDestroyed_(),this._automaticDataCollectionEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_(),t()}).then(function(){e.firebase_.INTERNAL.removeApp(e.name_);var t=[];return Object.keys(e.services_).forEach(function(n){Object.keys(e.services_[n]).forEach(function(r){t.push(e.services_[n][r])})}),Promise.all(t.map(function(e){return e.INTERNAL.delete()}))}).then(function(){e.isDeleted_=!0,e.services_={}})},e.prototype._getService=function(e,t){if(void 0===t&&(t=s),this.checkDestroyed_(),this.services_[e]||(this.services_[e]={}),!this.services_[e][t]){var n=t!==s?t:void 0,r=this.firebase_.INTERNAL.factories[e](this,this.extendApp.bind(this),n);this.services_[e][t]=r}return this.services_[e][t]},e.prototype.extendApp=function(e){var t=this;o.deepExtend(this,e),e.INTERNAL&&e.INTERNAL.addAuthTokenListener&&(u.forEach(function(e){t.INTERNAL.addAuthTokenListener(e)}),u=[])},e.prototype.checkDestroyed_=function(){this.isDeleted_&&i("app-deleted",{name:this.name_})},e}();l.prototype.name&&l.prototype.options||l.prototype.delete||console.log("dc");var c={"no-app":"No Firebase App '{$name}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$name}","duplicate-app":"Firebase App named '{$name}' already exists","app-deleted":"Firebase App named '{$name}' already deleted","duplicate-service":"Firebase service named '{$name}' already registered","sa-not-supported":"Initializing the Firebase SDK with a service account is only allowed in a Node.js environment. On client devices, you should instead initialize the SDK with an api key and auth domain","invalid-app-argument":"firebase.{$name}() takes either no argument or a Firebase App instance."},f=new o.ErrorFactory("app","Firebase",c),d=r();t.firebase=d,t.default=d},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";function r(e,t){return u.default.cloneElement(e,{className:(0,l.default)(e.props.className,t)})}function i(e,t){return u.default.Children.map(e,function(e){return u.default.isValidElement(e)&&r(e,t)})}function o(e,t){return u.default.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function a(e,t){return-1!==t.indexOf(e.muiName)}var s=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.cloneElementWithClassName=r,t.cloneChildrenWithClassName=i,t.isMuiElement=o,t.isMuiComponent=a;var u=s(n(1)),l=s(n(6))},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a="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},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(38),l=r(u),c=n(89),f=r(c),d=n(66),h=r(d),p=function(){function e(t,n,r){i(this,e),this.type="style",this.isProcessed=!1;var o=r.sheet,a=r.Renderer,s=r.selector;this.key=t,this.options=r,this.style=n,s&&(this.selectorText=s),this.renderer=o?o.renderer:new a}return s(e,[{key:"prop",value:function(e,t){if(void 0===t)return this.style[e];if(this.style[e]===t)return this;t=this.options.jss.plugins.onChangeValue(t,e,this);var n=null==t||!1===t,r=e in this.style;if(n&&!r)return this;var i=n&&r;if(i?delete this.style[e]:this.style[e]=t,this.renderable)return i?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,t),this;var o=this.options.sheet;return o&&o.attached&&(0,l.default)(!1,'Rule is not linked. Missing sheet option "link: true".'),this}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.setProperty(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==("undefined"===typeof n?"undefined":a(n))?e[t]=n:Array.isArray(n)&&(e[t]=(0,h.default)(n))}return e}},{key:"toString",value:function(e){var t=this.options.sheet,n=!!t&&t.options.link,r=n?o({},e,{allowEmpty:!0}):e;return(0,f.default)(this.selector,this.style,r)}},{key:"selector",set:function(e){if(e!==this.selectorText&&(this.selectorText=e,this.renderable)){if(!this.renderer.setSelector(this.renderable,e)&&this.renderable){var t=this.renderer.replaceRule(this.renderable,this);t&&(this.renderable=t)}}},get:function(){return this.selectorText}}]),e}();t.default=p},function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n},function(e,t,n){var r=n(42),i=n(71);e.exports=n(44)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(58),i=n(148),o=n(100),a=Object.defineProperty;t.f=n(44)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,n){e.exports=!n(70)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(315),i=n(98);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(105)("wks"),i=n(72),o=n(33).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t){function n(e){if(e&&"object"===typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"===typeof e)return a[e];var n=String(e),o=r[n.toLowerCase()];if(o)return o;var o=i[n.toLowerCase()];return o||(1===n.length?n.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"===typeof e){var n=e.which||e.keyCode||e.charCode;if(null===n||void 0===n)return!1;if("string"===typeof t){var o=r[t.toLowerCase()];if(o)return o===n;var o=i[t.toLowerCase()];if(o)return o===n}else if("number"===typeof t)return t===n;return!1}},t=e.exports=n;var r=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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 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(){}t.__esModule=!0,t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var l=n(2),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}(l),f=n(1),d=r(f),h=n(17),p=r(h),m=(n(358),t.UNMOUNTED="unmounted"),v=t.EXITED="exited",y=t.ENTERING="entering",g=t.ENTERED="entered",b=t.EXITING="exiting",w=function(e){function t(n,r){o(this,t);var i=a(this,e.call(this,n,r)),s=r.transitionGroup,u=s&&!s.isMounting?n.enter:n.appear,l=void 0;return i.nextStatus=null,n.in?u?(l=v,i.nextStatus=y):l=g:l=n.unmountOnExit||n.mountOnEnter?m:v,i.state={status:l},i.nextCallback=null,i}return s(t,e),t.prototype.getChildContext=function(){return{transitionGroup:null}},t.prototype.componentDidMount=function(){this.updateStatus(!0)},t.prototype.componentWillReceiveProps=function(e){var t=this.pendingState||this.state,n=t.status;e.in?(n===m&&this.setState({status:v}),n!==y&&n!==g&&(this.nextStatus=y)):n!==y&&n!==g||(this.nextStatus=b)},t.prototype.componentDidUpdate=function(){this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cancelNextCallback()},t.prototype.getTimeouts=function(){var e=this.props.timeout,t=void 0,n=void 0,r=void 0;return t=n=r=e,null!=e&&"number"!==typeof e&&(t=e.exit,n=e.enter,r=e.appear),{exit:t,enter:n,appear:r}},t.prototype.updateStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nextStatus;if(null!==t){this.nextStatus=null,this.cancelNextCallback();var n=p.default.findDOMNode(this);t===y?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===v&&this.setState({status:m})},t.prototype.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts();if(!t&&!r)return void this.safeSetState({status:g},function(){n.props.onEntered(e)});this.props.onEnter(e,i),this.safeSetState({status:y},function(){n.props.onEntering(e,i),n.onTransitionEnd(e,o.enter,function(){n.safeSetState({status:g},function(){n.props.onEntered(e,i)})})})},t.prototype.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:v},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:b},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:v},function(){t.props.onExited(e)})})})},t.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.prototype.safeSetState=function(e,t){var n=this;this.pendingState=e,t=this.setNextCallback(t),this.setState(e,function(){n.pendingState=null,t()})},t.prototype.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.prototype.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},t.prototype.render=function(){var e=this.state.status;if(e===m)return null;var t=this.props,n=t.children,r=i(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var o=d.default.Children.only(n);return d.default.cloneElement(o,r)},t}(d.default.Component);w.contextTypes={transitionGroup:c.object},w.childContextTypes={transitionGroup:function(){}},w.propTypes={},w.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:u,onEntering:u,onEntered:u,onExit:u,onExiting:u,onExited:u},w.UNMOUNTED=0,w.EXITED=1,w.ENTERING=2,w.ENTERED=3,w.EXITING=4,t.default=w},function(e,t,n){"use strict";function r(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode],delay:i.transitionDelay}}Object.defineProperty(t,"__esModule",{value:!0}),t.getTransitionProps=r,t.reflow=void 0;var i=function(e){return e.scrollTop};t.reflow=i},function(e,t,n){"use strict";function r(e,t){var n=[],r=-1,o=e.length;for(t&&n.push(i("text","\n"));++r<o;)r&&n.push(i("text","\n")),n.push(e[r]);return t&&0!==e.length&&n.push(i("text","\n")),n}e.exports=r;var i=n(22)},function(e,t,n){"use strict";function r(e,t){function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>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(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})}function l(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(a=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(a=a.call(o,n[1])).done)return a;switch(o=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++,o=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]<a[3])){u.label=n[1];break}if(6===n[0]&&u.label<a[1]){u.label=a[1],a=n;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(n);break}a[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=a=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,a,s,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"===typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}function c(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}function p(e){return this instanceof p?(this.v=e,this):new p(e)}function m(e,t,n){function r(e){c[e]&&(l[e]=function(t){return new Promise(function(n,r){f.push([e,t,n,r])>1||i(e,t)})})}function i(e,t){try{o(c[e](t))}catch(e){u(f[0][3],e)}}function o(e){e.value instanceof p?Promise.resolve(e.value.v).then(a,s):u(f[0][2],e)}function a(e){i("next",e)}function s(e){i("throw",e)}function u(e,t){e(t),f.shift(),f.length&&i(f[0][0],f[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,c=n.apply(e,t||[]),f=[];return l={},r("next"),r("throw"),r("return"),l[Symbol.asyncIterator]=function(){return this},l}function v(e){function t(t,i){e[t]&&(n[t]=function(n){return(r=!r)?{value:p(e[t](n)),done:"return"===t}:i?i(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 f?f(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 w(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=i,t.__decorate=o,t.__param=a,t.__metadata=s,t.__awaiter=u,t.__generator=l,t.__exportStar=c,t.__values=f,t.__read=d,t.__spread=h,t.__await=p,t.__asyncGenerator=m,t.__asyncDelegator=v,t.__asyncValues=y,t.__makeTemplateObject=g,t.__importStar=b,t.__importDefault=w;var _=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;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}},function(e,t,n){"use strict";function r(e){function t(e){return"@media (min-width:".concat("number"===typeof c[e]?c[e]:e).concat(d,")")}function n(e){var n=s.indexOf(e)+1,r=c[s[n]];return n===s.length?t("xs"):"@media (max-width:".concat(("number"===typeof r&&n>0?r:e)-p/100).concat(d,")")}function r(e,n){var r=s.indexOf(n)+1;return r===s.length?t(e):"@media (min-width:".concat(c[e]).concat(d,") and ")+"(max-width:".concat(c[s[r]]-p/100).concat(d,")")}function i(e){return r(e,e)}function u(e){return c[e]}var l=e.values,c=void 0===l?{xs:0,sm:600,md:960,lg:1280,xl:1920}:l,f=e.unit,d=void 0===f?"px":f,h=e.step,p=void 0===h?5:h,m=(0,a.default)(e,["values","unit","step"]);return(0,o.default)({keys:s,values:c,up:t,down:n,between:r,only:i,width:u},m)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,t.keys=void 0;var o=i(n(12)),a=i(n(3)),s=["xs","sm","md","lg","xl"];t.keys=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(67),u=r(s),l=n(139),c=r(l),f=n(39),d=r(f),h=n(263),p=r(h),m=function(){function e(t){var n=this;i(this,e),this.map={},this.raw={},this.index=[],this.update=function(e,t){var r=n.options,i=r.jss.plugins,o=r.sheet;if("string"===typeof e)i.onUpdate(t,n.get(e),o);else for(var a=0;a<n.index.length;a++)i.onUpdate(e,n.index[a],o)},this.options=t,this.classes=t.classes}return a(e,[{key:"add",value:function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,s=r.jss,l=r.Renderer,c=r.generateClassName;n=o({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:l,generateClassName:c},n),!n.selector&&this.classes[e]&&(n.selector="."+(0,p.default)(this.classes[e])),this.raw[e]=t;var f=(0,u.default)(e,t,n),h=void 0;!n.selector&&f instanceof d.default&&(h=c(f,a),f.selector="."+(0,p.default)(h)),this.register(f,h);var m=void 0===n.index?this.index.length:n.index;return this.index.splice(m,0,f),f}},{key:"get",value:function(e){return this.map[e]}},{key:"remove",value:function(e){this.unregister(e),this.index.splice(this.indexOf(e),1)}},{key:"indexOf",value:function(e){return this.index.indexOf(e)}},{key:"process",value:function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)}},{key:"register",value:function(e,t){this.map[e.key]=e,e instanceof d.default&&(this.map[e.selector]=e,t&&(this.classes[e.key]=t))}},{key:"unregister",value:function(e){delete this.map[e.key],e instanceof d.default&&(delete this.map[e.selector],delete this.classes[e.key])}},{key:"link",value:function(e){for(var t=this.options.sheet.renderer.getUnescapedKeysMap(this.index),n=0;n<e.length;n++){var r=e[n],i=this.options.sheet.renderer.getKey(r);t[i]&&(i=t[i]);var o=this.map[i];o&&(0,c.default)(o,r)}}},{key:"toString",value:function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=0;i<this.index.length;i++){var o=this.index[i],a=o.toString(e);(a||r)&&(t&&(t+="\n"),t+=a)}return t}}]),e}();t.default=m},function(e,t){function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}e.exports=n},function(e,t,n){"use strict";function r(e,t){return(0,a.default)({},e,(0,o.default)({},s,function(n){var r=Object.keys(n).filter(function(t){return!e.hasOwnProperty(t)});return r.length>0?new TypeError("".concat(t,": unknown props found: ").concat(r.join(", "),". Please remove the unknown properties.")):null}))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,t.specialProperty=void 0;var o=i(n(7)),a=i(n(12)),s="exact-prop: \u200b";t.specialProperty=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(142),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=function(e,t){return t+"("+(0,i.default)(e)+")"};t.default=o},function(e,t){var n=e.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(43);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(348))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(117))},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){function u(e,r,o){var u;return r=r||(o?0:null),t&&e.type!==t&&!i(t,e,r,o||null)||(u=n(e,r,o||null)),u===s?u:e.children&&u!==a&&l(e.children,e)===s?s:u}function l(e,t){for(var n,i,a=r?-1:1,l=(r?e.length:-1)+a;l>-1&&l<e.length;){if(n=e[l],(i=n&&u(n,l,t))===s)return i;l="number"===typeof i?i:l+a}return o}"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null),u(e)}e.exports=r;var i=n(199),o=!0,a="skip",s=!1;r.CONTINUE=o,r.SKIP=a,r.EXIT=s},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var c in n)o.call(n,c)&&(u[c]=n[c]);if(i){s=i(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){m&&h&&(m=!1,h.length?p=h.concat(p):v=-1,p.length&&s())}function s(){if(!m){var e=i(a);m=!0;for(var t=p.length;t;){for(h=p,p=[];++v<t;)h&&h[v].run();v=-1,t=p.length}h=null,m=!1,o(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,f,d=e.exports={};!function(){try{c="function"===typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"===typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var h,p=[],m=!1,v=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new u(e,t)),1!==p.length||m||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return!!e&&"object"===typeof e}function i(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||o(e)}function o(e){return e.$$typeof===h}function a(e){return Array.isArray(e)?[]:{}}function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(a(e),e,t):e}function u(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function l(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=s(e[t],n)}),Object.keys(t).forEach(function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=c(e[i],t[i],n):r[i]=s(t[i],n)}),r}function c(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||f;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):l(e,t,n):s(t,n)}Object.defineProperty(t,"__esModule",{value:!0});var f=function(e){return r(e)&&!i(e)},d="function"===typeof Symbol&&Symbol.for,h=d?Symbol.for("react.element"):60103;c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var p=c;t.default=p},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=i(e[r]," ");else n=i(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unnamed",t=arguments[1],n=arguments[2],r=n.jss,i=(0,c.default)(t),o=r.plugins.onCreateRule(e,i,n);return o||("@"===e[0]&&(0,a.default)(!1,"[JSS] Unknown at-rule %s",e),new u.default(e,i,n))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(38),a=r(o),s=n(39),u=r(s),l=n(259),c=r(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"isBrowser",function(){return i});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},i="object"===("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof document?"undefined":r(document))&&9===document.nodeType;t.default=i},function(e,t,n){var r=n(33),i=n(57),o=n(147),a=n(41),s=n(36),u=function(e,t,n){var l,c,f,d=e&u.F,h=e&u.G,p=e&u.S,m=e&u.P,v=e&u.B,y=e&u.W,g=h?i:i[t]||(i[t]={}),b=g.prototype,w=h?r:p?r[t]:(r[t]||{}).prototype;h&&(n=t);for(l in n)(c=!d&&w&&void 0!==w[l])&&s(g,l)||(f=c?w[l]:n[l],g[l]=h&&"function"!=typeof w[l]?n[l]:v&&c?o(f,r):y&&w[l]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((g.virtual||(g.virtual={}))[l]=f,e&u.R&&b&&!b[l]&&a(b,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(27)),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=(0,i.default)(e);return n.defaultView||n.parentView||t},a=o;t.default=a},function(e,t,n){"use strict";function r(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}Object.defineProperty(t,"__esModule",{value:!0});var i=n(75),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=function(){return o.default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):r(e,t)}:r}(),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"===typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t,n){function r(e){return i(e)||o(e)||a()}var i=n(352),o=n(353),a=n(354);e.exports=r},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"ModalManager",{enumerable:!0,get:function(){return o.default}});var i=r(n(361)),o=r(n(163))},function(e,t,n){"use strict";var r=n(382),i=(n.n(r),n(86)),o=(n.n(i),n(144)),a=(n.n(o),n(398)),s=(n.n(a),n(165)),u=(n.n(s),n(399)),l=(n.n(u),n(401)),c=(n.n(l),n(403)),f=(n.n(c),n(59)),d=(n.n(f),n(26)),h=(n.n(d),n(405)),p=n.n(h);n.d(t,"a",function(){return p.a});var m=n(407),v=(n.n(m),n(409)),y=n.n(v);n.d(t,"b",function(){return y.a});var g=n(411),b=(n.n(g),n(413)),w=(n.n(b),n(415)),_=(n.n(w),n(421)),E=(n.n(_),n(424)),T=(n.n(E),n(171)),x=(n.n(T),n(80)),S=(n.n(x),n(428)),k=(n.n(S),n(430)),C=(n.n(k),n(432)),O=(n.n(C),n(434)),N=(n.n(O),n(436)),P=(n.n(N),n(438)),I=(n.n(P),n(440)),A=(n.n(I),n(442)),D=(n.n(A),n(444)),R=(n.n(D),n(446)),M=(n.n(R),n(448)),L=(n.n(M),n(450)),j=(n.n(L),n(112)),F=(n.n(j),n(172)),U=(n.n(F),n(454)),B=(n.n(U),n(173)),q=(n.n(B),n(174)),V=(n.n(q),n(175)),z=(n.n(V),n(459)),W=(n.n(z),n(462)),H=(n.n(W),n(464)),K=(n.n(H),n(466)),G=(n.n(K),n(166)),Q=(n.n(G),n(468)),Y=(n.n(Q),n(473)),X=(n.n(Y),n(79)),$=n.n(X);n.d(t,"c",function(){return $.a});var J=n(60),Z=(n.n(J),n(475)),ee=(n.n(Z),n(176)),te=(n.n(ee),n(177)),ne=(n.n(te),n(168)),re=n.n(ne);n.d(t,"d",function(){return re.a});var ie=n(169),oe=n.n(ie);n.d(t,"e",function(){return oe.a});var ae=n(479),se=(n.n(ae),n(481)),ue=(n.n(se),n(483)),le=(n.n(ue),n(178)),ce=(n.n(le),n(486)),fe=(n.n(ce),n(157)),de=(n.n(fe),n(113)),he=(n.n(de),n(167)),pe=(n.n(he),n(488)),me=(n.n(pe),n(77)),ve=(n.n(me),n(490)),ye=(n.n(ve),n(25)),ge=(n.n(ye),n(160)),be=(n.n(ge),n(111)),we=(n.n(be),n(491)),_e=(n.n(we),n(495)),Ee=(n.n(_e),n(119)),Te=(n.n(Ee),n(116)),xe=(n.n(Te),n(499)),Se=(n.n(xe),n(182)),ke=(n.n(Se),n(502)),Ce=(n.n(ke),n(504)),Oe=(n.n(Ce),n(185)),Ne=(n.n(Oe),n(512)),Pe=(n.n(Ne),n(184)),Ie=(n.n(Pe),n(183)),Ae=(n.n(Ie),n(514)),De=(n.n(Ae),n(15)),Re=(n.n(De),n(516)),Me=n.n(Re);n.d(t,"f",function(){return Me.a});var Le=n(519),je=(n.n(Le),n(521)),Fe=(n.n(je),n(523)),Ue=(n.n(Fe),n(186)),Be=(n.n(Ue),n(526)),qe=(n.n(Be),n(528)),Ve=(n.n(qe),n(530)),ze=(n.n(Ve),n(534)),We=(n.n(ze),n(536)),He=(n.n(We),n(539)),Ke=(n.n(He),n(548)),Ge=(n.n(Ke),n(550)),Qe=(n.n(Ge),n(95)),Ye=(n.n(Qe),n(552)),Xe=(n.n(Ye),n(23)),$e=n.n(Xe);n.d(t,"g",function(){return $e.a});var Je=n(560),Ze=(n.n(Je),n(118)),et=(n.n(Ze),n(562));n.n(et)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(417))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(427))},function(e,t,n){"use strict";function r(e,t){var n,r,o={};t||(t={});for(r in v)n=t[r],o[r]=null===n||void 0===n?v[r]:n;return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),i(e,o)}function i(e,t){function n(){return{line:ae,column:oe,offset:re+(ee.offset||0)}}function r(e,t){var r=n();r.column+=t,r.offset+=t,X.call(Z,N[e],r,e)}function i(t){return e.charAt(t)}function c(){se&&(ue.push(se),Q&&Q.call($,se,{start:V,end:n()}),se="")}var f,v,P,I,A,D,R,M,L,j,F,U,B,q,V,z,W,H,K=t.additional,G=t.nonTerminated,Q=t.text,Y=t.reference,X=t.warning,$=t.textContext,J=t.referenceContext,Z=t.warningContext,ee=t.position,te=t.indent||[],ne=e.length,re=0,ie=-1,oe=ee.column||1,ae=ee.line||1,se="",ue=[];for(V=n(),R=X?r:m,re--,ne++;++re<ne;)if("\n"===I&&(oe=te[ie]||1),"&"!==(I=i(re)))"\n"===I&&(ae++,ie++,oe=0),I?(se+=I,oe++):c();else{if("\t"===(D=i(re+1))||"\n"===D||"\f"===D||" "===D||"<"===D||"&"===D||""===D||K&&D===K){se+=I,oe++;continue}for(U=re+1,F=U,H=U,"#"!==D?B=y:(H=++F,D=i(H),"x"===D||"X"===D?(B=g,H=++F):B=b),f="",j="",P="",q=_[B],H--;++H<ne&&(D=i(H),q(D));)P+=D,B===y&&h.call(u,P)&&(f=P,j=u[P]);v=";"===i(H),v&&(H++,B===y&&h.call(s,P)&&(f=P,j=s[P])),W=1+H-U,(v||G)&&(P?B===y?(v&&!j?R(k,1):(f!==P&&(H=F+f.length,W=1+H-F,v=!1),v||(M=f?E:x,t.attribute?(D=i(H),"="===D?(R(M,W),j=null):d(D)?j=null:R(M,W)):R(M,W))),A=j):(v||R(T,W),A=parseInt(P,w[B]),o(A)?(R(O,W),A="\ufffd"):A in l?(R(C,W),A=l[A]):(L="",a(A)&&R(C,W),A>65535&&(A-=65536,L+=p(A>>>10|55296),A=56320|1023&A),A=L+p(A))):B!==y&&R(S,W)),A?(c(),V=n(),re=H-1,oe+=H-U+1,ue.push(A),z=n(),z.offset++,Y&&Y.call(J,A,{start:V,end:z},e.slice(U-1,H)),V=z):(P=e.slice(U-1,H),se+=P,oe+=P.length,re=H-1)}return ue.join("")}function o(e){return e>=55296&&e<=57343||e>1114111}function a(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}var s=n(592),u=n(193),l=n(593),c=n(61),f=n(194),d=n(195);e.exports=r;var h={}.hasOwnProperty,p=String.fromCharCode,m=Function.prototype,v={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},y="named",g="hexadecimal",b="decimal",w={};w[g]=16,w[b]=10;var _={};_[y]=d,_[b]=c,_[g]=f;var E=1,T=2,x=3,S=4,k=5,C=6,O=7,N={};N[E]="Named character references must be terminated by a semicolon",N[T]="Numeric character references must be terminated by a semicolon",N[x]="Named character references cannot be empty",N[S]="Numeric character references cannot be empty",N[k]="Named character references must be known",N[C]="Numeric character references cannot be disallowed",N[O]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";function r(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function i(e,t,n){var o,a,s,u,l,c="";for("string"!==typeof t&&(n=t,t=i.defaultChars),"undefined"===typeof n&&(n=!0),l=r(t),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),n&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(s<128)c+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}var o={};i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r,o,a,s,u){if(i(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,s,u],f=0;l=new Error(t.replace(/%s/g,function(){return c[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var i=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";function r(e){return i(void 0,e)}function i(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:var n=t;return new Date(n.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var r in t)t.hasOwnProperty(r)&&(e[r]=i(e[r],t[r]));return e}function o(e,t,n){e[t]=n}function a(e){var t=A;return A=e,t}function s(e){return JSON.parse(e)}function u(e){return JSON.stringify(e)}function l(e,t){var n=new ie(e,t);return n.subscribe.bind(n)}function c(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then(function(){e.apply(void 0,n)}).catch(function(e){t&&t(e)})}}function f(e,t){if("object"!==typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i in e&&"function"===typeof e[i])return!0}return!1}function d(){}function h(e,t,n){var r="";switch(t){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}var i=e+" failed: ";return i+=r+" argument "}function p(e,t,n,r){if((!r||n)&&"string"!==typeof n)throw new Error(h(e,t,r)+"must be a valid firebase namespace.")}function m(e,t,n,r){if((!r||n)&&"function"!==typeof n)throw new Error(h(e,t,r)+"must be a valid function.")}function v(e,t,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error(h(e,t,r)+"must be a valid context object.")}Object.defineProperty(t,"__esModule",{value:!0});var y=n(51),g={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},b=function(e,t){if(!e)throw w(t)},w=function(e){return new Error("Firebase Database ("+g.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},_=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},E=function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var o=e[n++],a=e[n++],s=e[n++],u=((7&i)<<18|(63&o)<<12|(63&a)<<6|63&s)-65536;t[r++]=String.fromCharCode(55296+(u>>10)),t[r++]=String.fromCharCode(56320+(1023&u))}else{var o=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")},T={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var o=e[i],a=i+1<e.length,s=a?e[i+1]:0,u=i+2<e.length,l=u?e[i+2]:0,c=o>>2,f=(3&o)<<4|s>>4,d=(15&s)<<2|l>>6,h=63&l;u||(h=64,a||(d=64)),r.push(n[c],n[f],n[d],n[h])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(_(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):E(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var o=n[e.charAt(i++)],a=i<e.length,s=a?n[e.charAt(i)]:0;++i;var u=i<e.length,l=u?n[e.charAt(i)]:64;++i;var c=i<e.length,f=c?n[e.charAt(i)]:64;if(++i,null==o||null==s||null==l||null==f)throw Error();var d=o<<2|s>>4;if(r.push(d),64!=l){var h=s<<4&240|l>>2;if(r.push(h),64!=f){var p=l<<6&192|f;r.push(p)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},x=function(e){var t=_(e);return T.encodeByteArray(t,!0)},S=function(e){try{return T.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},k=function(){function e(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch(function(){}),1===e.length?e(n):e(n,r))}},e}(),C=function(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""},O=function(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(C())},N=function(){return"object"===typeof navigator&&"ReactNative"===navigator.product},P=function(){return!0===g.NODE_CLIENT||!0===g.NODE_ADMIN},I="FirebaseError",A=Error.captureStackTrace,D=function(){function e(e,t){if(this.code=e,this.message=t,A)A(this,R.prototype.create);else try{throw Error.apply(this,arguments)}catch(e){this.name=I,Object.defineProperty(this,"stack",{get:function(){return e.stack}})}}return e}();D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D.prototype.name=I;var R=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n,this.pattern=/\{\$([^}]+)}/g}return e.prototype.create=function(e,t){void 0===t&&(t={});var n,r=this.errors[e],i=this.service+"/"+e;n=void 0===r?"Error":r.replace(this.pattern,function(e,n){var r=t[n];return void 0!==r?r.toString():"<"+n+"?>"}),n=this.serviceName+": "+n+" ("+i+").";var o=new D(i,n);for(var a in t)t.hasOwnProperty(a)&&"_"!==a.slice(-1)&&(o[a]=t[a]);return o},e}(),M=function(e){var t={},n={},r={},i="";try{var o=e.split(".");t=s(S(o[0])||""),n=s(S(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:r,signature:i}},L=function(e){var t,n,r=M(e).claims,i=Math.floor((new Date).getTime()/1e3);return"object"===typeof r&&(r.hasOwnProperty("nbf")?t=r.nbf:r.hasOwnProperty("iat")&&(t=r.iat),n=r.hasOwnProperty("exp")?r.exp:t+86400),i&&t&&n&&i>=t&&i<=n},j=function(e){var t=M(e).claims;return"object"===typeof t&&t.hasOwnProperty("iat")?t.iat:null},F=function(e){var t=M(e),n=t.claims;return!!t.signature&&!!n&&"object"===typeof n&&n.hasOwnProperty("iat")},U=function(e){var t=M(e).claims;return"object"===typeof t&&!0===t.admin},B=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},q=function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},V=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])},z=function(e,t){return V(t,function(t,n){e[t]=n}),e},W=function(e){return z({},e)},H=function(e){return"object"===typeof e&&null!==e},K=function(e){for(var t in e)return!1;return!0},G=function(e){var t=0;for(var n in e)t++;return t},Q=function(e,t,n){var r={};for(var i in e)r[i]=t.call(n,e[i],i,e);return r},Y=function(e,t,n){for(var r in e)if(t.call(n,e[r],r,e))return r},X=function(e,t,n){var r=Y(e,t,n);return r&&e[r]},$=function(e){for(var t in e)return t},J=function(e){var t=[],n=0;for(var r in e)t[n++]=e[r];return t},Z=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!t(n,e[n]))return!1;return!0},ee=function(e){var t=[];return V(e,function(e,n){Array.isArray(n)?n.forEach(function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}),t.length?"&"+t.join("&"):""},te=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach(function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}}),t},ne=function(){function e(){this.blockSize=-1}return e}(),re=function(e){function t(){var t=e.call(this)||this;t.chain_=[],t.buf_=[],t.W_=[],t.pad_=[],t.inbuf_=0,t.total_=0,t.blockSize=64,t.pad_[0]=128;for(var n=1;n<t.blockSize;++n)t.pad_[n]=0;return t.reset(),t}return y.__extends(t,e),t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"===typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(var r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(var r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}for(var o,a,s=this.chain_[0],u=this.chain_[1],l=this.chain_[2],c=this.chain_[3],f=this.chain_[4],r=0;r<80;r++){r<40?r<20?(o=c^u&(l^c),a=1518500249):(o=u^l^c,a=1859775393):r<60?(o=u&l|c&(u|l),a=2400959708):(o=u^l^c,a=3395469782);var i=(s<<5|s>>>27)+o+f+a+n[r]&4294967295;f=c,c=l,l=4294967295&(u<<30|u>>>2),u=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},t.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<t;){if(0==o)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"===typeof e){for(;r<t;)if(i[o]=e.charCodeAt(r),++o,++r,o==this.blockSize){this.compress_(i),o=0;break}}else for(;r<t;)if(i[o]=e[r],++o,++r,o==this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},t.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);for(var r=0,n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},t}(ne),ie=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}return e.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},e.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},e.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=f(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=d),void 0===r.error&&(r.error=d),void 0===r.complete&&(r.complete=d);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}}),this.observers.push(r),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!==typeof console&&console.error&&console.error(e)}})},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},e}(),oe=function(e,t,n,r){var i;if(r<t?i="at least "+t:r>n&&(i=0===n?"none":"no more than "+n),i){var o=e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".";throw new Error(o)}},ae=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319){var o=i-55296;r++,b(r<e.length,"Surrogate pair missing trail surrogate.");i=65536+(o<<10)+(e.charCodeAt(r)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},se=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t};t.assert=b,t.assertionError=w,t.base64=T,t.base64Decode=S,t.base64Encode=x,t.CONSTANTS=g,t.deepCopy=r,t.deepExtend=i,t.patchProperty=o,t.Deferred=k,t.getUA=C,t.isMobileCordova=O,t.isNodeSdk=P,t.isReactNative=N,t.ErrorFactory=R,t.FirebaseError=D,t.patchCapture=a,t.jsonEval=s,t.stringify=u,t.decode=M,t.isAdmin=U,t.issuedAtTime=j,t.isValidFormat=F,t.isValidTimestamp=L,t.clone=W,t.contains=B,t.every=Z,t.extend=z,t.findKey=Y,t.findValue=X,t.forEach=V,t.getAnyKey=$,t.getCount=G,t.getValues=J,t.isEmpty=K,t.isNonNullObject=H,t.map=Q,t.safeGet=q,t.querystring=ee,t.querystringDecode=te,t.Sha1=re,t.async=c,t.createSubscribe=l,t.errorPrefix=h,t.validateArgCount=oe,t.validateCallback=m,t.validateContextObject=v,t.validateNamespace=p,t.stringLength=se,t.stringToByteArray=ae},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createMuiTheme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"jssPreset",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"MuiThemeProvider",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"createStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"withStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"withTheme",{enumerable:!0,get:function(){return c.default}});var i=r(n(130)),o=r(n(87)),a=r(n(135)),s=r(n(289)),u=r(n(294)),l=r(n(5)),c=r(n(32))},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.palette,n=void 0===t?{}:t,r=e.breakpoints,i=void 0===r?{}:r,v=e.mixins,y=void 0===v?{}:v,g=e.typography,b=void 0===g?{}:g,w=e.shadows,_=(0,a.default)(e,["palette","breakpoints","mixins","typography","shadows"]),E=(0,c.default)(n),T=(0,l.default)(i),x=(0,o.default)({breakpoints:T,direction:"ltr",mixins:(0,f.default)(T,m.default,y),overrides:{},palette:E,props:{},shadows:w||d.default,typography:(0,u.default)(E,b)},(0,s.default)({transitions:h.default,spacing:m.default,zIndex:p.default},_));return x}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(12)),a=i(n(3)),s=i(n(65)),u=(i(n(14)),i(n(250))),l=i(n(52)),c=i(n(251)),f=i(n(252)),d=i(n(253)),h=i(n(30)),p=i(n(254)),m=i(n(255)),v=r;t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={black:"#000",white:"#fff"},i=r;t.default=i},function(e,t,n){"use strict";function r(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="";if(!t)return i;var o=n.indent,s=void 0===o?0:o,u=t.fallbacks;if(s++,u)if(Array.isArray(u))for(var l=0;l<u.length;l++){var c=u[l];for(var f in c){var d=c[f];null!=d&&(i+="\n"+r(f+": "+(0,a.default)(d)+";",s))}}else for(var h in u){var p=u[h];null!=p&&(i+="\n"+r(h+": "+(0,a.default)(p)+";",s))}for(var m in t){var v=t[m];null!=v&&"fallbacks"!==m&&(i+="\n"+r(m+": "+(0,a.default)(v)+";",s))}return i||n.allowEmpty?(s--,i=r(e+" {"+i+"\n",s)+r("}",s)):i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(66),a=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(137),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=new i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o="",a="";if(i.default){var s={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},u=document.createElement("p").style;for(var l in s)if(l+"Transform"in u){o=l,a=s[l];break}}t.default={js:o,css:a}},function(e,t){function n(e){return(n="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})(e)}function r(t){return"function"===typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CHANNEL=void 0;var i=r(n(7)),o=r(n(2)),a="__THEMING__";t.CHANNEL=a;var s={contextTypes:(0,i.default)({},a,o.default.object),initial:function(e){return e[a]?e[a].getState():null},subscribe:function(e,t){return e[a]?e[a].subscribe(t):null},unsubscribe:function(e,t){e[a]&&e[a].unsubscribe(t)}},u=s;t.default=u},function(e,t,n){"use strict";function r(e,t,n){if("string"!==typeof t){if(f){var d=c(t);d&&d!==f&&r(e,d,n)}var h=s(t);u&&(h=h.concat(u(t)));for(var p=0;p<h.length;++p){var m=h[p];if(!i[m]&&!o[m]&&(!n||!n[m])){var v=l(t,m);try{a(e,m,v)}catch(e){}}}return e}return e}var i={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a=Object.defineProperty,s=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,f=c&&c(Object);e.exports=r},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(302))},function(e,t,n){"use strict";function r(e,t){var n=function(t){return o.default.createElement(s.default,t,e)};return n.displayName=t,n=(0,a.default)(n),n.muiName="SvgIcon",n}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(1)),a=i(n(18)),s=i(n(15)),u=r;t.default=u},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=!0},function(e,t,n){var r=n(43);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports={}},function(e,t,n){var r=n(58),i=n(314),o=n(106),a=n(104)("IE_PROTO"),s=function(){},u=function(){var e,t=n(149)("iframe"),r=o.length;for(t.style.display="none",n(319).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(151),i=n(106);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(105)("keys"),i=n(72);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(33),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(42).f,i=n(36),o=n(46)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){t.f=n(46)},function(e,t,n){var r=n(33),i=n(57),o=n(99),a=n(108),s=n(42).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(363))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(376))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(380))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=r(n(2)),h=r(n(6)),p=r(n(5)),m=r(n(79)),v={root:{display:"inline-flex",alignItems:"center",transition:"none","&:hover":{backgroundColor:"transparent"}},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0}};t.styles=v;var y=function(e){function t(e){var n;return(0,s.default)(this,t),n=(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n.state={},n.input=null,n.isControlled=null,n.handleFocus=function(e){n.props.onFocus&&n.props.onFocus(e);var t=n.context.muiFormControl;t&&t.onFocus&&t.onFocus(e)},n.handleBlur=function(e){n.props.onBlur&&n.props.onBlur(e);var t=n.context.muiFormControl;t&&t.onBlur&&t.onBlur(e)},n.handleInputChange=function(e){var t=e.target.checked;n.isControlled||n.setState({checked:t}),n.props.onChange&&n.props.onChange(e,t)},n.isControlled=null!=e.checked,n.isControlled||(n.state.checked=void 0!==e.defaultChecked&&e.defaultChecked),n}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e,t=this.props,n=t.checked,r=t.checkedIcon,s=t.classes,u=t.className,l=t.disabled,c=t.icon,d=t.id,p=t.inputProps,v=t.inputRef,y=t.name,g=(t.onBlur,t.onChange,t.onFocus,t.tabIndex),b=t.type,w=t.value,_=(0,a.default)(t,["checked","checkedIcon","classes","className","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","tabIndex","type","value"]),E=this.context.muiFormControl,T=l;E&&"undefined"===typeof T&&(T=E.disabled);var x=this.isControlled?n:this.state.checked,S="checkbox"===b||"radio"===b;return f.default.createElement(m.default,(0,i.default)({component:"span",className:(0,h.default)(s.root,(e={},(0,o.default)(e,s.checked,x),(0,o.default)(e,s.disabled,T),e),u),disabled:T,tabIndex:null,role:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur},_),x?r:c,f.default.createElement("input",(0,i.default)({id:S&&d,type:b,name:y,checked:x,onChange:this.handleInputChange,className:s.input,disabled:T,tabIndex:g,value:w,ref:v},p)))}}]),t}(f.default.Component);y.propTypes={},y.defaultProps={type:"checkbox"},y.contextTypes={muiFormControl:d.default.object};var g=(0,p.default)(v,{name:"MuiSwitchBase"})(y);t.default=g},function(e,t,n){"use strict";function r(e){return-1!==["left","right"].indexOf(e.anchor)}function i(e){return"rtl"===e.theme.direction&&r(e)?E[e.anchor]:e.anchor}var o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.isHorizontal=r,t.getAnchor=i,t.default=t.styles=void 0;var a=o(n(12)),s=o(n(4)),u=o(n(7)),l=o(n(3)),c=o(n(8)),f=o(n(9)),d=o(n(10)),h=o(n(11)),p=o(n(1)),m=(o(n(2)),o(n(6))),v=o(n(77)),y=o(n(5)),g=o(n(116)),b=o(n(25)),w=n(13),_=n(30),E={left:"right",right:"left",top:"down",bottom:"up"},T=function(e){return{docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100vh",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:"none"},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100vh"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100vh"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}};t.styles=T;var x=function(e){function t(){var e,n,r;(0,c.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,d.default)(r,(n=r=(0,d.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.mounted=!1,n))}return(0,h.default)(t,e),(0,f.default)(t,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"render",value:function(){var e=this.props,t=(e.anchor,e.children),n=e.classes,r=e.className,o=e.elevation,c=e.ModalProps;c=void 0===c?{}:c;var f=c.BackdropProps,d=(0,l.default)(c,["BackdropProps"]),h=e.onClose,y=e.open,_=e.PaperProps,T=e.SlideProps,x=(e.theme,e.transitionDuration),S=e.variant,k=(0,l.default)(e,["anchor","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","theme","transitionDuration","variant"]),C=i(this.props),O=p.default.createElement(b.default,(0,s.default)({elevation:"temporary"===S?o:0,square:!0,className:(0,m.default)(n.paper,n["paperAnchor".concat((0,w.capitalize)(C))],(0,u.default)({},n["paperAnchorDocked".concat((0,w.capitalize)(C))],"temporary"!==S))},_),t);if("permanent"===S)return p.default.createElement("div",(0,s.default)({className:(0,m.default)(n.docked,r)},k),O);var N=p.default.createElement(g.default,(0,s.default)({in:y,direction:E[C],timeout:x,appear:this.mounted},T),O);return"persistent"===S?p.default.createElement("div",(0,s.default)({className:(0,m.default)(n.docked,r)},k),N):p.default.createElement(v.default,(0,s.default)({BackdropProps:(0,a.default)({},f,{transitionDuration:x}),className:(0,m.default)(n.modal,r),open:y,onClose:h},k,d),N)}}]),t}(p.default.Component);x.propTypes={},x.defaultProps={anchor:"left",elevation:16,open:!1,transitionDuration:{enter:_.duration.enteringScreen,exit:_.duration.leavingScreen},variant:"temporary"};var S=(0,y.default)(T,{name:"MuiDrawer",flip:!1,withTheme:!0})(x);t.default=S},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(443))},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}function a(e,t){var n=e.disabled,r=e.error,i=e.margin;return t&&t.muiFormControl&&("undefined"===typeof n&&(n=t.muiFormControl.disabled),"undefined"===typeof r&&(r=t.muiFormControl.error),"undefined"===typeof i&&(i=t.muiFormControl.margin)),{disabled:n,error:r,margin:i}}var s=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.hasValue=r,t.isFilled=i,t.isAdornedStart=o,t.default=t.styles=void 0;var u=s(n(4)),l=s(n(12)),c=s(n(7)),f=s(n(3)),d=s(n(8)),h=s(n(9)),p=s(n(10)),m=s(n(11)),v=s(n(1)),y=s(n(2)),g=s(n(6)),b=s(n(5)),w=s(n(453)),_=function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:0},i={opacity:t?.42:.5},o=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{display:"inline-flex",position:"relative",fontFamily:e.typography.fontFamily,color:t?"rgba(0, 0, 0, 0.87)":e.palette.common.white,fontSize:e.typography.pxToRem(16),lineHeight:"1.1875em","&$disabled":{color:e.palette.text.disabled}},formControl:{"label + &":{marginTop:2*e.spacing.unit}},focused:{},disabled:{},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary[t?"dark":"light"]),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):not($focused):not($error):before":{borderBottom:"2px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottom:"1px dotted ".concat(o)}},error:{},multiline:{padding:"".concat(e.spacing.unit-2,"px 0 ").concat(e.spacing.unit-1,"px")},fullWidth:{width:"100%"},input:{font:"inherit",color:"currentColor",padding:"".concat(e.spacing.unit-2,"px 0 ").concat(e.spacing.unit-1,"px"),border:0,boxSizing:"content-box",verticalAlign:"middle",background:"none",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,flexGrow:1,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1}},inputMarginDense:{paddingTop:e.spacing.unit/2-1},inputMultiline:{resize:"none",padding:0},inputType:{height:"1.1875em"},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"}}};t.styles=_;var E=function(e){function t(e,n){var r;(0,d.default)(this,t),r=(0,p.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r.state={focused:!1},r.isControlled=null!=r.props.value,r.input=null,r.handleFocus=function(e){if(a(r.props,r.context).disabled)return void e.stopPropagation();r.setState({focused:!0}),r.props.onFocus&&r.props.onFocus(e);var t=r.context.muiFormControl;t&&t.onFocus&&t.onFocus(e)},r.handleBlur=function(e){r.setState({focused:!1}),r.props.onBlur&&r.props.onBlur(e);var t=r.context.muiFormControl;t&&t.onBlur&&t.onBlur(e)},r.handleChange=function(e){r.isControlled||r.checkDirty(r.input),r.props.onChange&&r.props.onChange(e)},r.handleRefInput=function(e){r.input=e;var t;r.props.inputRef?t=r.props.inputRef:r.props.inputProps&&r.props.inputProps.ref&&(t=r.props.inputProps.ref),t&&("function"===typeof t?t(e):t.current=e)},r.isControlled&&r.checkDirty(e);var i=function(e,t){!a(r.props,r.context).disabled&&a(e,t).disabled&&r.setState({focused:!1})},o=function(e,t,n){if(!a(r.props,r.context).disabled&&a(e,n).disabled){var i=r.context.muiFormControl;i&&i.onBlur&&i.onBlur()}};return v.default.createContext?(r.UNSAFE_componentWillReceiveProps=i,r.UNSAFE_componentWillUpdate=o):(r.componentWillReceiveProps=i,r.componentWillUpdate=o),r}return(0,m.default)(t,e),(0,h.default)(t,[{key:"getChildContext",value:function(){return{muiFormControl:null}}},{key:"componentDidMount",value:function(){this.isControlled||this.checkDirty(this.input)}},{key:"componentDidUpdate",value:function(){this.isControlled&&this.checkDirty(this.props)}},{key:"checkDirty",value:function(e){var t=this.context.muiFormControl;if(i(e))return t&&t.onFilled&&t.onFilled(),void(this.props.onFilled&&this.props.onFilled());t&&t.onEmpty&&t.onEmpty(),this.props.onEmpty&&this.props.onEmpty()}},{key:"render",value:function(){var e,t,n=this.props,r=n.autoComplete,i=n.autoFocus,o=n.classes,s=n.className,d=n.defaultValue,h=(n.disabled,n.disableUnderline),p=n.endAdornment,m=(n.error,n.fullWidth),y=n.id,b=n.inputComponent,_=n.inputProps;_=void 0===_?{}:_;var E=_.className,T=(0,f.default)(_,["className"]),x=(n.inputRef,n.margin,n.multiline),S=n.name,k=(n.onBlur,n.onChange,n.onEmpty,n.onFilled,n.onFocus,n.onKeyDown),C=n.onKeyUp,O=n.placeholder,N=n.readOnly,P=n.rows,I=n.rowsMax,A=n.startAdornment,D=n.type,R=n.value,M=(0,f.default)(n,["autoComplete","autoFocus","classes","className","defaultValue","disabled","disableUnderline","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onEmpty","onFilled","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","rows","rowsMax","startAdornment","type","value"]),L=this.context.muiFormControl,j=a(this.props,this.context),F=j.disabled,U=j.error,B=j.margin,q=(0,g.default)(o.root,(e={},(0,c.default)(e,o.disabled,F),(0,c.default)(e,o.error,U),(0,c.default)(e,o.fullWidth,m),(0,c.default)(e,o.focused,this.state.focused),(0,c.default)(e,o.formControl,L),(0,c.default)(e,o.multiline,x),(0,c.default)(e,o.underline,!h),e),s),V=(0,g.default)(o.input,(t={},(0,c.default)(t,o.disabled,F),(0,c.default)(t,o.inputType,"text"!==D),(0,c.default)(t,o.inputTypeSearch,"search"===D),(0,c.default)(t,o.inputMultiline,x),(0,c.default)(t,o.inputMarginDense,"dense"===B),t),E),z=L&&!0===L.required,W="input",H=(0,l.default)({},T,{ref:this.handleRefInput});return b?(W=b,H=(0,l.default)({inputRef:this.handleRefInput},H,{ref:null})):x&&(P&&!I?W="textarea":(H=(0,l.default)({rowsMax:I,textareaRef:this.handleRefInput},H,{ref:null}),W=w.default)),v.default.createElement("div",(0,u.default)({className:q},M),A,v.default.createElement(W,(0,u.default)({"aria-invalid":U,"aria-required":z,autoComplete:r,autoFocus:i,className:V,defaultValue:d,disabled:F,id:y,name:S,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:k,onKeyUp:C,placeholder:O,readOnly:N,required:!!z||void 0,rows:P,type:D,value:R},H)),p)}}]),t}(v.default.Component);E.propTypes={},E.muiName="Input",E.defaultProps={disableUnderline:!1,fullWidth:!1,multiline:!1,type:"text"},E.contextTypes={muiFormControl:y.default.object},E.childContextTypes={muiFormControl:y.default.object};var T=(0,b.default)(_,{name:"MuiInput"})(E);t.default=T},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0});var i={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(471));Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))})},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(497))},function(e,t,n){"use strict";function r(e){for(var t=String(e),n=t.length;t.charAt(--n)===i;);return t.slice(0,n+1)}e.exports=r;var i="\n"},function(e,t,n){"use strict";function r(e,t,n,r){for(var i,o,a,s,u,l,c=["pedantic","commonmark"],f=c.length,d=e.length,h=-1;++h<d;){for(i=e[h],o=i[1]||{},a=i[0],s=-1,l=!1;++s<f;)if(u=c[s],void 0!==o[u]&&o[u]!==n.options[u]){l=!0;break}if(!l&&t[a].apply(n,r))return!0}return!1}e.exports=r},function(e,t,n){"use strict";function r(e){return i(e).toLowerCase()}var i=n(202);e.exports=r},function(e,t,n){"use strict";function r(e,t){return t||0===e.length||o.test(e)||i(e,"(")!==i(e,")")?"<"+e+">":e}var i=n(667);e.exports=r;var o=/\s/},function(e,t,n){"use strict";function r(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}e.exports=r},function(e,t,n){"use strict";function r(){}function i(e){try{return e.then}catch(e){return y=e,g}}function o(e,t){try{return e(t)}catch(e){return y=e,g}}function a(e,t,n){try{e(t,n)}catch(e){return y=e,g}}function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,e!==r&&m(e,this)}function u(e,t,n){return new e.constructor(function(i,o){var a=new s(r);a.then(i,o),l(e,new p(t,n,a))})}function l(e,t){for(;3===e._83;)e=e._18;if(s._47&&s._47(e),0===e._83)return 0===e._75?(e._75=1,void(e._38=t)):1===e._75?(e._75=2,void(e._38=[e._38,t])):void e._38.push(t);c(e,t)}function c(e,t){v(function(){var n=1===e._83?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._83?f(t.promise,e._18):d(t.promise,e._18));var r=o(n,e._18);r===g?d(t.promise,y):f(t.promise,r)})}function f(e,t){if(t===e)return d(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=i(t);if(n===g)return d(e,y);if(n===e.then&&t instanceof s)return e._83=3,e._18=t,void h(e);if("function"===typeof n)return void m(n.bind(t),e)}e._83=1,e._18=t,h(e)}function d(e,t){e._83=2,e._18=t,s._71&&s._71(e,t),h(e)}function h(e){if(1===e._75&&(l(e,e._38),e._38=null),2===e._75){for(var t=0;t<e._38.length;t++)l(e,e._38[t]);e._38=null}}function p(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function m(e,t){var n=!1,r=a(e,function(e){n||(n=!0,f(t,e))},function(e){n||(n=!0,d(t,e))});n||r!==g||(n=!0,d(t,y))}var v=n(223),y=null,g={};e.exports=s,s._47=null,s._71=null,s._44=r,s.prototype.then=function(e,t){if(this.constructor!==s)return u(this,e,t);var n=new s(r);return l(this,new p(e,t,n)),n}},function(e,t,n){"use strict";var r={};e.exports=r},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 i(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),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;a<n.length;a++)if(!o.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;e.exports=i},function(e,t,n){"use strict";n(234);var r=function(e){return e&&"object"===typeof e&&"default"in e?e.default:e}(n(35));n(238),n(239),n(240),n(242),n(243),n(244),console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),e.exports=r},function(e,t,n){"use strict";function r(e){o.forEach(function(t){t.logLevel=e})}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"setLogLevel",function(){return r}),n.d(t,"Logger",function(){return u}),n.d(t,"LogLevel",function(){return i});var i,o=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(i||(i={}));var a=i.INFO,s=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t<e.logLevel)){var o=(new Date).toISOString();switch(t){case i.DEBUG:case i.VERBOSE:console.log.apply(console,["["+o+"] "+e.name+":"].concat(n));break;case i.INFO:console.info.apply(console,["["+o+"] "+e.name+":"].concat(n));break;case i.WARN:console.warn.apply(console,["["+o+"] "+e.name+":"].concat(n));break;case i.ERROR:console.error.apply(console,["["+o+"] "+e.name+":"].concat(n));break;default:throw new Error("Attempted to log a message with an invalid logType (value: "+t+")")}}},u=function(){function e(e){this.name=e,this._logLevel=a,this._logHandler=s,o.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in i))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.DEBUG].concat(e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.VERBOSE].concat(e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.INFO].concat(e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.WARN].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.ERROR].concat(e))},e}()},function(e,t,n){"use strict";(function(e){function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.dangerouslyUseGlobalCSS,r=void 0!==n&&n,i=t.productionPrefix,o=void 0===i?"jss":i,a=/([[\].#*$><+~=|^:(),"'`\s])/g,s=0;return"undefined"!==typeof window&&(e.__MUI_GENERATOR_COUNTER__+=1,e.__MUI_GENERATOR_COUNTER__>2&&console.error(["Material-UI: we have detected more than needed creation of the class name generator.","You should only use one class name generator on the client side.","If you do otherwise, you take the risk to have conflicting class names in production."].join("\n"))),function(e,t){if(s+=1,r){if(t&&t.options.classNamePrefix){var n=t.options.classNamePrefix;if(n=n.replace(a,"-"),n.match(/^Mui/))return"".concat(n,"-").concat(e.key)}return"".concat(o).concat(s)}return"".concat(o).concat(s)}}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;i(n(14));e.__MUI_GENERATOR_COUNTER__=0}).call(t,n(20))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},i=r;t.default=i},function(e,t,n){"use strict";function r(){return{plugins:[(0,o.default)(),(0,a.default)(),(0,s.default)(),(0,u.default)(),(0,l.default)(),(0,c.default)()]}}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(256)),a=i(n(277)),s=i(n(279)),u=i(n(281)),l=i(n(283)),c=i(n(288)),f=r;t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.createGenerateClassName=t.sheets=t.RuleList=t.SheetsManager=t.SheetsRegistry=t.toCssValue=t.getDynamicStyles=void 0;var i=n(257);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function(){return r(i).default}});var o=n(66);Object.defineProperty(t,"toCssValue",{enumerable:!0,get:function(){return r(o).default}});var a=n(137);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function(){return r(a).default}});var s=n(258);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function(){return r(s).default}});var u=n(53);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function(){return r(u).default}});var l=n(90);Object.defineProperty(t,"sheets",{enumerable:!0,get:function(){return r(l).default}});var c=n(140);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return r(c).default}});var f=n(265),d=r(f),h=t.create=function(e){return new d.default(e)};t.default=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")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e),this.registry=[]}return i(e,[{key:"add",value:function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e)){if(0===t.length||n>=this.index)return void t.push(e);for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)}}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.filter(function(e){return e.attached}).map(function(t){return t.toString(e)}).join("\n")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(260),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){return e&&e[i.default]&&e===e[i.default]()}},function(e,t,n){"use strict";function r(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(38),o=r(i),a=n(141),s=(r(a),n(264)),u=r(s);t.default=function(){var e=0;return function(t,n){(e+=1)>1e10&&(0,o.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",e);var r="c",i="";return n&&(r=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(i+=n.options.jss.id)),""+r+u.default+i+e}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(139),u=r(s),l=n(53),c=r(l),f=function(){function e(t,n){var r=this;i(this,e),this.update=function(e,t){return"string"===typeof e?r.rules.update(e,t):r.rules.update(e),r},this.attached=!1,this.deployed=!1,this.linked=!1,this.classes={},this.options=o({},n,{sheet:this,parent:this,classes:this.classes}),this.renderer=new n.Renderer(this),this.rules=new c.default(this.options);for(var a in t)this.rules.add(a,t[a]);this.rules.process()}return a(e,[{key:"attach",value:function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)}},{key:"insertRule",value:function(e){var t=this.renderer.insertRule(e);t&&this.options.link&&(0,u.default)(e,t)}},{key:"addRules",value:function(e,t){var n=[];for(var r in e)n.push(this.addRule(r,e[r],t));return n}},{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"deleteRule",value:function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!this.attached||!t.renderable||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"deploy",value:function(){return this.renderer.deploy(),this.deployed=!0,this}},{key:"link",value:function(){var e=this.renderer.getRules();return e&&this.rules.link(e),this.linked=!0,this}},{key:"toString",value:function(e){return this.rules.toString(e)}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if("string"===typeof e)return e;if(e)return e.displayName||e.name||"Component"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.jss="64a55d578f856d258dc345b094a2a2b3",t.sheetsRegistry="d4bd0baacbc52bbd48bbb9eb24344ecd",t.managers="b768b78919504fba9de2c03545c5cd3a",t.sheetOptions="6fc570d6bd61383819d0f9e7407c452d"},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(300))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(308),o=r(i),a=n(326),s=r(a),u="function"===typeof s.default&&"symbol"===typeof o.default?function(e){return typeof e}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"===typeof s.default&&"symbol"===u(o.default)?function(e){return"undefined"===typeof e?"undefined":u(e)}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"===typeof e?"undefined":u(e)}},function(e,t,n){"use strict";var r=n(99),i=n(69),o=n(150),a=n(41),s=n(101),u=n(313),l=n(107),c=n(320),f=n(46)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,v,y){u(n,t,p);var g,b,w,_=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",T="values"==m,x=!1,S=e.prototype,k=S[f]||S["@@iterator"]||m&&S[m],C=k||_(m),O=m?T?_("entries"):C:void 0,N="Array"==t?S.entries||k:k;if(N&&(w=c(N.call(new e)))!==Object.prototype&&w.next&&(l(w,E,!0),r||"function"==typeof w[f]||a(w,f,h)),T&&k&&"values"!==k.name&&(x=!0,C=function(){return k.call(this)}),r&&!y||!d&&!x&&S[f]||a(S,f,C),s[t]=C,s[E]=h,m)if(g={values:T?C:_("values"),keys:v?C:_("keys"),entries:O},y)for(b in g)b in S||o(S,b,g[b]);else i(i.P+i.F*(d||x),t,g);return g}},function(e,t,n){var r=n(312);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){e.exports=!n(44)&&!n(70)(function(){return 7!=Object.defineProperty(n(149)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(43),i=n(33).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=n(41)},function(e,t,n){var r=n(36),i=n(45),o=n(316)(!1),a=n(104)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(151),i=n(106).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(110),i=n(71),o=n(45),a=n(100),s=n(36),u=n(148),l=Object.getOwnPropertyDescriptor;t.f=n(44)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(344),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=function(e){return(0,i.default)("displayName",e)};t.default=o},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(158))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(12)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=(r(n(2)),r(n(17))),h=r(n(159)),p=r(n(5)),m=r(n(160)),v=r(n(167)),y={vertical:"top",horizontal:"right"},g={vertical:"top",horizontal:"left"},b={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}};t.styles=b;var w=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.getContentAnchorEl=function(){return r.menuList&&r.menuList.selectedItem?d.default.findDOMNode(r.menuList.selectedItem):d.default.findDOMNode(r.menuList).firstChild},r.menuList=void 0,r.focus=function(){if(r.menuList&&r.menuList.selectedItem)return void d.default.findDOMNode(r.menuList.selectedItem).focus();var e=d.default.findDOMNode(r.menuList);e&&e.firstChild&&e.firstChild.focus()},r.handleEnter=function(e){var t=r.props.theme,n=d.default.findDOMNode(r.menuList);if(r.focus(),n&&e.clientHeight<n.clientHeight&&!n.style.width){var i="".concat((0,h.default)(),"px");n.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=i,n.style.width="calc(100% + ".concat(i,")")}r.props.onEnter&&r.props.onEnter(e)},r.handleListKeyDown=function(e,t){"tab"===t&&(e.preventDefault(),r.props.onClose&&r.props.onClose(e))},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.props.open&&this.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.classes,s=t.MenuListProps,u=(t.onEnter,t.PaperProps),l=void 0===u?{}:u,c=t.PopoverClasses,d=t.theme,h=(0,a.default)(t,["children","classes","MenuListProps","onEnter","PaperProps","PopoverClasses","theme"]);return f.default.createElement(m.default,(0,i.default)({getContentAnchorEl:this.getContentAnchorEl,classes:c,onEnter:this.handleEnter,anchorOrigin:"rtl"===d.direction?y:g,transformOrigin:"rtl"===d.direction?y:g,PaperProps:(0,o.default)({},l,{classes:(0,o.default)({},l.classes,{root:r.paper})})},h),f.default.createElement(v.default,(0,i.default)({role:"menu",onKeyDown:this.handleListKeyDown},s,{ref:function(t){e.menuList=t}}),n))}}]),t}(f.default.Component);w.propTypes={},w.defaultProps={transitionDuration:"auto"};var _=(0,p.default)(b,{name:"MuiMenu",withTheme:!0})(w);t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!o&&0!==o||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),o=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return o};var r=n(75),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=void 0;e.exports=t.default},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(360))},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.default)();try{return e.activeElement}catch(e){}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(27),o=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports=t.default},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(362))},function(e,t,n){"use strict";function r(e,t){var n=-1;return e.some(function(e,r){return!!t(e)&&(n=r,!0)}),n}function i(e){return parseInt((0,c.default)(e,"paddingRight")||0,10)}function o(e,t){var n={overflow:"hidden"};if(e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing){var r=(0,d.default)();n.paddingRight="".concat(i(t)+r,"px");for(var o=(0,f.default)(t).querySelectorAll(".mui-fixed"),a=0;a<o.length;a+=1){var s=i(o[a]);e.prevPaddings.push(s),o[a].style.paddingRight="".concat(s+r,"px")}}Object.keys(n).forEach(function(e){t.style[e]=n[e]})}function a(e,t){Object.keys(e.style).forEach(function(n){t.style[n]=e.style[n]});for(var n=(0,f.default)(t).querySelectorAll(".mui-fixed"),r=0;r<n.length;r+=1)n[r].style.paddingRight="".concat(e.prevPaddings[r],"px")}var s=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=s(n(8)),l=s(n(9)),c=s(n(364)),f=s(n(27)),d=s(n(159)),h=s(n(372)),p=n(374),m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.default)(this,e);var n=t.hideSiblingNodes,r=void 0===n||n,i=t.handleContainerOverflow,o=void 0===i||i;this.hideSiblingNodes=r,this.handleContainerOverflow=o,this.modals=[],this.containers=[],this.data=[]}return(0,l.default)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&(0,p.hideSiblings)(t,e.mountNode);var r=this.containers.indexOf(t);if(-1!==r)return this.data[r].modals.push(e),n;var i={modals:[e],overflowing:(0,h.default)(t),prevPaddings:[]};return this.handleContainerOverflow&&o(i,t),this.containers.push(t),this.data.push(i),n}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=r(this.data,function(t){return-1!==t.modals.indexOf(e)}),i=this.data[n],o=this.containers[n];return i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(t,1),0===i.modals.length?(this.handleContainerOverflow&&a(i,o),this.hideSiblingNodes&&(0,p.showSiblings)(o,e.mountNode),this.containers.splice(n,1),this.data.splice(n,1)):this.hideSiblingNodes&&(0,p.ariaHidden)(!1,i.modals[i.modals.length-1].mountNode),t}},{key:"isTopModal",value:function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}]),e}(),v=m;t.default=v},function(e,t,n){"use strict";function r(e){return(0,o.default)(e.replace(a,"ms-"))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(365),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=/^-ms-/;e.exports=t.default},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(375))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(377))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(378))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(379))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(381))},function(e,t,n){"use strict";function r(e){var t=e.alt,n=e.children,r=e.childrenClassName,i=e.classes,c=e.className,f=e.component,d=e.imgProps,h=e.sizes,p=e.src,m=e.srcSet,v=(0,s.default)(e,["alt","children","childrenClassName","classes","className","component","imgProps","sizes","src","srcSet"]),y=(0,l.default)(i.root,(0,a.default)({},i.colorDefault,n&&!p&&!m),c),g=null;if(n)if(r&&"string"!==typeof n&&u.default.isValidElement(n)){var b=(0,l.default)(r,n.props.className);g=u.default.cloneElement(n,{className:b})}else g=n;else(p||m)&&(g=u.default.createElement("img",(0,o.default)({alt:t,src:p,srcSet:m,sizes:h,className:i.img},d)));return u.default.createElement(f,(0,o.default)({className:y},v),g)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:5*e.spacing.unit,height:5*e.spacing.unit,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover"}}};t.styles=f,r.propTypes={},r.defaultProps={component:"div"};var d=(0,c.default)(f,{name:"MuiAvatar"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(426))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(452))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(456))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(457))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(458))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(477))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(478))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(485))},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.IconComponent,i=e.input,l=e.inputProps,c=(0,a.default)(e,["children","classes","IconComponent","input","inputProps"]);return s.default.cloneElement(i,(0,o.default)({inputComponent:u.default,inputProps:(0,o.default)({children:t,classes:n,IconComponent:r,type:void 0},l,i?i.props.inputProps:{})},c))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(12)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(180))),l=i(n(5)),c=i(n(181)),f=i(n(60)),d=function(e){return{root:{position:"relative",width:"100%"},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",paddingRight:4*e.spacing.unit,width:"calc(100% - ".concat(4*e.spacing.unit,"px)"),minWidth:2*e.spacing.unit,cursor:"pointer","&:focus":{background:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&:-moz-focusring":{color:"transparent",textShadow:"0 0 0 #000"},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"}},selectMenu:{width:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",minHeight:"1.1875em"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",color:e.palette.action.active,"pointer-events":"none"}}};t.styles=d,r.propTypes={},r.defaultProps={IconComponent:c.default,input:s.default.createElement(f.default,null)},r.muiName="NativeSelect";var h=(0,l.default)(d,{name:"MuiNativeSelect"})(r);t.default=h},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=e.disabled,c=e.IconComponent,f=e.inputRef,d=e.name,h=e.onChange,p=e.value,m=(0,s.default)(e,["children","classes","className","disabled","IconComponent","inputRef","name","onChange","value"]);return u.default.createElement("div",{className:n.root},u.default.createElement("select",(0,o.default)({className:(0,l.default)(n.select,(0,a.default)({},n.disabled,i),r),name:d,disabled:i,onChange:h,value:p,ref:f},m),t),u.default.createElement(c,{className:n.icon}))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6)));r.propTypes={};var c=r;t.default=c},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M7 10l5 5 5-5z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(501))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(506))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(507))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(511))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(525))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=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")}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 o(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)}n.d(t,"a",function(){return c});var a=n(1),s=n.n(a),u=n(78),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),l(t,[{key:"render",value:function(){return s.a.createElement("div",null,s.a.createElement(u.a,{style:{minWidth:250,maxWidth:"80%",margin:"auto",marginTop:90,textAlign:"center"}},s.a.createElement(u.b,null,s.a.createElement(u.g,{gutterBottom:!0,variant:"headline",component:"h2"},"Washington iGEM 2018 Project Abstract",s.a.createElement("br",null),"Chemically Induced Dimerization of Nanobodies for the Development of Versatile Biosensors"),s.a.createElement(u.g,{component:"p",style:{textAlign:"left"}},"One of the pressing challenges of modern science is the detection of small molecule targets. This has applications in a variety of fields, such as point-of-care diagnostics and metabolic engineering. Although most small molecules can be detected through Enzyme-Linked Immunosorbent Assay (ELISA), accessibility is limited by the time-consuming nature of the procedure. We hope to use a chemically induced dimerization system of nanobodies to detect small molecule targets and apply this system to the development of simple diagnostic assays, such as lateral flow assays or fluorescent microarrays, and innovations in metabolic engineering.",s.a.createElement("br",null),s.a.createElement("br",null),"Nanobodies are antibody fragments from single domain antibodies found in camelids and sharks. They are the variable regions of antibodies that are responsible for specific binding to target molecules. Researchers in the Institute for Protein Design (IPD) at the University of Washington have created extensive libraries of phages displaying nanobodies for high throughput screening of binding targets, making them a versatile tool for molecule detection. We have partnered with Dr. Liangcai Gu from the IPD to investigate novel applications of a high-throughput nanobody library numbering ten billion unique types. In our project, we will identify specific nanobodies that bind to desired target molecules of high importance and demonstrate the application of nanobody technology to the development of a biosensor.",s.a.createElement("br",null),s.a.createElement("br",null),"Traditionally, monoclonal antibodies have been used to detect specific molecules and used in products such as ELISA kits. However, one significant barrier to developing new monoclonal antibodies is that they require introduction of an antigen to an animal before large scale production can begin. We are bypassing this expensive and time-consuming step and the associated ethical concerns by screening through a pre-existing library of nanobodies to rapidly identify those that can bind desired target molecules with high specificity.",s.a.createElement("br",null),s.a.createElement("br",null),"Our team will be screening our nanobody library against two chosen molecules to find binding nanobodies. Then, we will screen the library for secondary nanobodies that bind to the primary nanobody-antigen complex, thus forming a dimer. After identifying these nanobodies, these nanobodies can be fused to other proteins to form biosensors. Specifically, we intend to repurpose activating and DNA binding domain proteins used in yeast 2-hybrid systems to create a transcriptional biosensor."))))}}]),t}(a.Component)},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(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<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return i.exec(e).slice(1)};t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),o="/"===a(e,-1);return e=n(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+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<e.length&&""===e[t];t++);for(var n=e.length-1;n>=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 i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}for(var l=[],u=s;u<i.length;u++)l.push("..");return l=l.concat(o.slice(s)),l.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return o(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(t,n(64))},function(e,t,n){"use strict";function r(e){function t(t){return e.apply(this,t)}function n(){return this instanceof n?e.apply(this,arguments):new t(arguments)}var r,a,s;o(n,e),o(t,n),r=n.prototype;for(a in r)(s=r[a])&&"object"===typeof s&&(r[a]="concat"in s?s.concat():i(s));return n}var i=n(24),o=n(587);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){function r(){function r(){i[e]=o}var i=n||this,o=i[e];return i[e]=!t,r}return r}e.exports=r},function(e,t){e.exports={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Acirc:"\xc2",Agrave:"\xc0",Aring:"\xc5",Atilde:"\xc3",Auml:"\xc4",COPY:"\xa9",Ccedil:"\xc7",ETH:"\xd0",Eacute:"\xc9",Ecirc:"\xca",Egrave:"\xc8",Euml:"\xcb",GT:">",Iacute:"\xcd",Icirc:"\xce",Igrave:"\xcc",Iuml:"\xcf",LT:"<",Ntilde:"\xd1",Oacute:"\xd3",Ocirc:"\xd4",Ograve:"\xd2",Oslash:"\xd8",Otilde:"\xd5",Ouml:"\xd6",QUOT:'"',REG:"\xae",THORN:"\xde",Uacute:"\xda",Ucirc:"\xdb",Ugrave:"\xd9",Uuml:"\xdc",Yacute:"\xdd",aacute:"\xe1",acirc:"\xe2",acute:"\xb4",aelig:"\xe6",agrave:"\xe0",amp:"&",aring:"\xe5",atilde:"\xe3",auml:"\xe4",brvbar:"\xa6",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",ecirc:"\xea",egrave:"\xe8",eth:"\xf0",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",iacute:"\xed",icirc:"\xee",iexcl:"\xa1",igrave:"\xec",iquest:"\xbf",iuml:"\xef",laquo:"\xab",lt:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",oacute:"\xf3",ocirc:"\xf4",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",otilde:"\xf5",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',raquo:"\xbb",reg:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",times:"\xd7",uacute:"\xfa",ucirc:"\xfb",ugrave:"\xf9",uml:"\xa8",uuml:"\xfc",yacute:"\xfd",yen:"\xa5",yuml:"\xff"}},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}e.exports=r},function(e,t,n){"use strict";function r(e){return i(e)||o(e)}var i=n(196),o=n(61);e.exports=r},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e||{};return t.commonmark?a:t.gfm?o:i}e.exports=r;var i=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],o=i.concat(["~","|"]),a=o.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);r.default=i,r.gfm=o,r.commonmark=a},function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(596)}},function(e,t,n){"use strict";function r(e,t,n,o,a){var s=null!==o&&void 0!==o,u=null!==n&&void 0!==n,l=i(e);if(u&&("number"!==typeof n||n<0||n===1/0))throw new Error("Expected positive finite index or child node");if(s&&(!r(null,o)||!o.children))throw new Error("Expected parent node");if(!t||!t.type||"string"!==typeof t.type)return!1;if(s!==u)throw new Error("Expected both parent and index");return Boolean(l.call(a,t,n,o))}function i(e){if("string"===typeof e)return u(e);if(null===e||void 0===e)return l;if("object"===typeof e)return("length"in e?s:a)(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function o(e){for(var t=[],n=e.length,r=-1;++r<n;)t[r]=i(e[r]);return t}function a(e){function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}return t}function s(e){function t(){for(var e=-1;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}var n=o(e),r=n.length;return t}function u(e){function t(t){return Boolean(t&&t.type===e)}return t}function l(){return!0}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n=0,r=0,o=e.charAt(n),a={};o in i;)t=i[o],r+=t,t>1&&(r=Math.floor(r/t)*t),a[r]=n,o=e.charAt(++n);return{indent:r,stops:a}}e.exports=r;var i={" ":1,"\t":4}},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+i+")"),t.tag=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},function(e,t,n){"use strict";function r(e){return String(e).replace(/\s+/g," ")}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e.indexOf("<",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);return-1===r?n:n<r?n:r}e.exports=r},function(e,t,n){"use strict";function r(e){return e}e.exports=r},function(e,t,n){"use strict";function r(e){return e.length}e.exports={gfm:!0,commonmark:!1,pedantic:!1,entities:"false",setext:!1,closeAtx:!1,looseTable:!1,spacedTable:!0,paddedTable:!0,stringLength:r,incrementListMarker:!0,fences:!1,fence:"`",bullet:"-",listItemIndent:"tab",rule:"*",ruleSpaces:!0,ruleRepetition:3,strong:"*",emphasis:"_"}},function(e,t,n){"use strict";function r(e){var t;return"&"!==e.charAt(0)?0:(t=e.split("&",2).join("&"),t.length-i(t).length)}var i=n(81);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r;for(e=e.split("\n"),n=e.length,r=i(" ",t*o);n--;)0!==e[n].length&&(e[n]=r+e[n]);return e.join("\n")}var i=n(21);e.exports=r;var o=4},function(e,t,n){"use strict";function r(e,t){var n,r,i=0,o=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");for(e=String(e),r=e.indexOf(t),n=r;-1!==r;)i++,r===n?i>o&&(o=i):i=1,n=r+1,r=e.indexOf(t,n);return o}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.referenceType,n="full"===t?e.identifier:"";return"shortcut"===t?n:"["+n+"]"}e.exports=r},function(e,t,n){"use strict";function r(e){function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}return t.displayName=e,t}var i=t;i.start=r("start"),i.end=r("end")},function(e,t,n){"use strict";function r(e,t){return o(t)?e.augment(t,a("text",t.value)):e(t,"div",s(e,t))}function i(e,t,n){var i=t&&t.type,o=u.call(e.handlers,i)?e.handlers[i]:null;if(!i)throw new Error("Expected node, got `"+t+"`");return("function"===typeof o?o:r)(e,t,n)}function o(e){var t=e.data||{};return!(u.call(t,"hName")||u.call(t,"hProperties")||u.call(t,"hChildren"))&&"value"in e}e.exports=i;var a=n(22),s=n(16),u={}.hasOwnProperty},function(e,t,n){"use strict";function r(e,t){return e(t,"hr")}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={},r=t.ordered?"ol":"ul";return"number"===typeof t.start&&1!==t.start&&(n.start=t.start),e(t,r,n,i(o(e,t),!0))}e.exports=r;var i=n(50),o=n(16)},function(e,t,n){"use strict";function r(e,t){var n=t.identifier;return e(t.position,"sup",{id:"fnref-"+n},[e(t,"a",{href:"#fn-"+n,className:["footnote-ref"]},[i("text",n)])])}e.exports=r;var i=n(22)},function(e,t,n){"use strict";function r(e,t,n){var r=t.referenceType;if("collapsed"!==r&&"full"!==r&&!n)return"imageReference"===t.type?i("text","!["+t.alt+"]"):[i("text","[")].concat(o(e,t),i("text","]"))}e.exports=r;var i=n(22),o=n(16)},function(e,t,n){"use strict";var r=n(716),i=n(718),o="function"===typeof Symbol&&"symbol"===typeof Symbol(),a=Object.prototype.toString,s=function(e){return"function"===typeof e&&"[object Function]"===a.call(e)},u=Object.defineProperty&&function(){var e={};try{Object.defineProperty(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){(!(t in e)||s(r)&&r())&&(u?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);o&&(a=a.concat(Object.getOwnPropertySymbols(t))),i(a,function(r){l(e,r,t[r],n[r])})};c.supportsDescriptors=!!u,e.exports=c},function(e,t,n){"use strict";e.exports=function(e){return e!==e}},function(e,t,n){"use strict";var r=n(218);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},function(e,t,n){n(221),e.exports=n(226)},function(e,t,n){"use strict";"undefined"===typeof Promise&&(n(222).enable(),window.Promise=n(224)),n(225),Object.assign=n(63)},function(e,t,n){"use strict";function r(){l=!1,s._47=null,s._71=null}function i(e){function t(t){(e.allRejections||a(f[t].error,e.whitelist||u))&&(f[t].displayId=c++,e.onUnhandled?(f[t].logged=!0,e.onUnhandled(f[t].displayId,f[t].error)):(f[t].logged=!0,o(f[t].displayId,f[t].error)))}function n(t){f[t].logged&&(e.onHandled?e.onHandled(f[t].displayId,f[t].error):f[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+f[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+f[t].displayId+".")))}e=e||{},l&&r(),l=!0;var i=0,c=0,f={};s._47=function(e){2===e._83&&f[e._56]&&(f[e._56].logged?n(e._56):clearTimeout(f[e._56].timeout),delete f[e._56])},s._71=function(e,n){0===e._75&&(e._56=i++,f[e._56]={displayId:null,error:n,timeout:setTimeout(t.bind(null,e._56),a(n,u)?100:2e3),logged:!1})}}function o(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn(" "+e)})}function a(e,t){return t.some(function(t){return e instanceof t})}var s=n(125),u=[ReferenceError,TypeError,RangeError],l=!1;t.disable=r,t.enable=i},function(e,t,n){"use strict";(function(t){function n(e){a.length||(o(),s=!0),a[a.length]=e}function r(){for(;u<a.length;){var e=u;if(u+=1,a[e].call(),u>l){for(var t=0,n=a.length-u;t<n;t++)a[t]=a[t+u];a.length-=u,u=0}}a.length=0,u=0,s=!1}function i(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var o,a=[],s=!1,u=0,l=1024,c="undefined"!==typeof t?t:self,f=c.MutationObserver||c.WebKitMutationObserver;o="function"===typeof f?function(e){var t=1,n=new f(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):i(r),n.requestFlush=o,n.makeRequestCallFromTimer=i}).call(t,n(20))},function(e,t,n){"use strict";function r(e){var t=new i(i._44);return t._83=1,t._18=e,t}var i=n(125);e.exports=i;var o=r(!0),a=r(!1),s=r(null),u=r(void 0),l=r(0),c=r("");i.resolve=function(e){if(e instanceof i)return e;if(null===e)return s;if(void 0===e)return u;if(!0===e)return o;if(!1===e)return a;if(0===e)return l;if(""===e)return c;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new i(t.bind(e))}catch(e){return new i(function(t,n){n(e)})}return r(e)},i.all=function(e){var t=Array.prototype.slice.call(e);return new i(function(e,n){function r(a,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof i&&s.then===i.prototype.then){for(;3===s._83;)s=s._18;return 1===s._83?r(a,s._18):(2===s._83&&n(s._18),void s.then(function(e){r(a,e)},n))}var u=s.then;if("function"===typeof u){return void new i(u.bind(s)).then(function(e){r(a,e)},n)}}t[a]=s,0===--o&&e(t)}if(0===t.length)return e([]);for(var o=t.length,a=0;a<t.length;a++)r(a,t[a])})},i.reject=function(e){return new i(function(t,n){n(e)})},i.race=function(e){return new i(function(t,n){e.forEach(function(e){i.resolve(e).then(t,n)})})},i.prototype.catch=function(e){return this.then(null,e)}},function(e,t){!function(e){"use strict";function t(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!==typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return y.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function o(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function a(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader,n=a(t);return t.readAsArrayBuffer(e),n}function u(e){var t=new FileReader,n=a(t);return t.readAsText(e),n}function l(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"===typeof e)this._bodyText=e;else if(y.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(y.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(y.arrayBuffer&&y.blob&&b(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!y.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!w(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y.blob&&(this.blob=function(){var e=o(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?o(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=o(this);if(e)return e;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(l(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(e){var t=e.toUpperCase();return _.indexOf(t)>-1?t:e}function h(e,t){t=t||{};var n=t.body;if(e instanceof h){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=d(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function p(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function m(e){var t=new i;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}function v(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var y={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(y.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},w=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1};i.prototype.append=function(e,r){e=t(e),r=n(r);var i=this.map[e];this.map[e]=i?i+","+r:r},i.prototype.delete=function(e){delete this.map[t(e)]},i.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},i.prototype.set=function(e,r){this.map[t(e)]=n(r)},i.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},y.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},f.call(h.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];v.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=i,e.Request=h,e.Response=v,e.fetch=function(e,t){return new Promise(function(n,r){var i=new h(e,t),o=new XMLHttpRequest;o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:m(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;n(new v(t,e))},o.onerror=function(){r(new TypeError("Network request failed"))},o.ontimeout=function(){r(new TypeError("Network request failed"))},o.open(i.method,i.url,!0),"include"===i.credentials&&(o.withCredentials=!0),"responseType"in o&&y.blob&&(o.responseType="blob"),i.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send("undefined"===typeof i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n.n(r),o=n(17),a=n.n(o),s=n(128),u=n.n(s),l=n(245),c=(n.n(l),n(246)),f={apiKey:"AIzaSyDCQF40jxKpF8So-kbj_uqtYKBnlGHVReA",authDomain:"wiki2018-987d7.firebaseapp.com",databaseURL:"https://wiki2018-987d7.firebaseio.com",projectId:"wiki2018-987d7",storageBucket:"wiki2018-987d7.appspot.com",messagingSenderId:"158742751002"};u.a.initializeApp(f),a.a.render(i.a.createElement(c.a,null),document.getElementById("root"))},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="http://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);g(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||I}function o(){}function a(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||I}function s(e,t,n){var r=void 0,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)R.call(t,r)&&!M.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:E,type:e,key:o,ref:a,props:i,_owner:D.current}}function u(e){return"object"===typeof e&&null!==e&&e.$$typeof===E}function l(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function c(e,t,n,r){if(j.length){var i=j.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>j.length&&j.push(e)}function d(e,t,n,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case E:case T:a=!0}}if(a)return n(i,e,""===t?"."+h(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){o=e[s];var u=t+h(o,s);a+=d(o,u,n,i)}else if(null===e||"undefined"===typeof e?u=null:(u=P&&e[P]||e["@@iterator"],u="function"===typeof u?u:null),"function"===typeof u)for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=t+h(o,s++),a+=d(o,u,n,i);else"object"===o&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function h(e,t){return"object"===typeof e&&null!==e&&null!=e.key?l(e.key):t.toString(36)}function p(e,t){e.func.call(e.context,t,e.count++)}function m(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?v(e,r,n,w.thatReturnsArgument):null!=e&&(u(e)&&(t=i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(L,"$&/")+"/")+n,e={$$typeof:E,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function v(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(L,"$&/")+"/"),t=c(t,o,r,i),null==e||d(e,"",m,t),f(t)}var y=n(63),g=n(83),b=n(126),w=n(84),_="function"===typeof Symbol&&Symbol.for,E=_?Symbol.for("react.element"):60103,T=_?Symbol.for("react.portal"):60106,x=_?Symbol.for("react.fragment"):60107,S=_?Symbol.for("react.strict_mode"):60108,k=_?Symbol.for("react.provider"):60109,C=_?Symbol.for("react.context"):60110,O=_?Symbol.for("react.async_mode"):60111,N=_?Symbol.for("react.forward_ref"):60112,P="function"===typeof Symbol&&Symbol.iterator,I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};i.prototype.isReactComponent={},i.prototype.setState=function(e,t){"object"!==typeof e&&"function"!==typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e,t,"setState")},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=i.prototype;var A=a.prototype=new o;A.constructor=a,y(A,i.prototype),A.isPureReactComponent=!0;var D={current:null},R=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0},L=/\/+/g,j=[],F={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return v(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=c(null,null,t,n),null==e||d(e,"",p,t),f(t)},count:function(e){return null==e?0:d(e,"",w.thatReturnsNull,null)},toArray:function(e){var t=[];return v(e,t,null,w.thatReturnsArgument),t},only:function(e){return u(e)||r("143"),e}},createRef:function(){return{current:null}},Component:i,PureComponent:a,createContext:function(e,t){return void 0===t&&(t=null),e={$$typeof:C,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_changedBits:0,Provider:null,Consumer:null},e.Provider={$$typeof:k,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:N,render:e}},Fragment:x,StrictMode:S,unstable_AsyncMode:O,createElement:s,cloneElement:function(e,t,n){(null===e||void 0===e)&&r("267",e);var i=void 0,o=y({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,u=D.current),void 0!==t.key&&(a=""+t.key);var l=void 0;e.type&&e.type.defaultProps&&(l=e.type.defaultProps);for(i in t)R.call(t,i)&&!M.hasOwnProperty(i)&&(o[i]=void 0===t[i]&&void 0!==l?l[i]:t[i])}if(1===(i=arguments.length-2))o.children=n;else if(1<i){l=Array(i);for(var c=0;c<i;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:E,type:e.type,key:a,ref:s,props:o,_owner:u}},createFactory:function(e){var t=s.bind(null,e);return t.type=e,t},isValidElement:u,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:D,assign:y}},U=Object.freeze({default:F}),B=U&&F||U;e.exports=B.default?B.default:B},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="http://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);ln(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(e,t,n,r,i,o,a,s,u){this._hasCaughtError=!1,this._caughtError=null;var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this._caughtError=e,this._hasCaughtError=!0}}function o(){if(gn._hasRethrowError){var e=gn._rethrowError;throw gn._rethrowError=null,gn._hasRethrowError=!1,e}}function a(){if(bn)for(var e in wn){var t=wn[e],n=bn.indexOf(e);if(-1<n||r("96",e),!_n[n]){t.extractEvents||r("97",e),_n[n]=t,n=t.eventTypes;for(var i in n){var o=void 0,a=n[i],u=t,l=i;En.hasOwnProperty(l)&&r("99",l),En[l]=a;var c=a.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&s(c[o],u,l);o=!0}else a.registrationName?(s(a.registrationName,u,l),o=!0):o=!1;o||r("98",i,e)}}}}function s(e,t,n){Tn[e]&&r("100",e),Tn[e]=t,xn[e]=t.eventTypes[n].dependencies}function u(e){bn&&r("101"),bn=Array.prototype.slice.call(e),a()}function l(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var i=e[t];wn.hasOwnProperty(t)&&wn[t]===i||(wn[t]&&r("102",t),wn[t]=i,n=!0)}n&&a()}function c(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=On(r),gn.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function f(e,t){return null==t&&r("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]}function d(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function h(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;i<n.length&&!e.isPropagationStopped();i++)c(e,t,n[i],r[i]);else n&&c(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function p(e){return h(e,!0)}function m(e){return h(e,!1)}function v(e,t){var n=e.stateNode;if(!n)return null;var i=kn(n);if(!i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(i=!i.disabled)||(e=e.type,i=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}return e?null:(n&&"function"!==typeof n&&r("231",t,typeof n),n)}function y(e,t){null!==e&&(Nn=f(Nn,e)),e=Nn,Nn=null,e&&(t?d(e,p):d(e,m),Nn&&r("95"),gn.rethrowCaughtError())}function g(e,t,n,r){for(var i=null,o=0;o<_n.length;o++){var a=_n[o];a&&(a=a.extractEvents(e,t,n,r))&&(i=f(i,a))}y(i,!1)}function b(e){if(e[Dn])return e[Dn];for(;!e[Dn];){if(!e.parentNode)return null;e=e.parentNode}return e=e[Dn],5===e.tag||6===e.tag?e:null}function w(e){if(5===e.tag||6===e.tag)return e.stateNode;r("33")}function _(e){return e[Rn]||null}function E(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function T(e,t,n){for(var r=[];e;)r.push(e),e=E(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function x(e,t,n){(t=v(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=f(n._dispatchListeners,t),n._dispatchInstances=f(n._dispatchInstances,e))}function S(e){e&&e.dispatchConfig.phasedRegistrationNames&&T(e._targetInst,x,e)}function k(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?E(t):null,T(t,x,e)}}function C(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=v(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=f(n._dispatchListeners,t),n._dispatchInstances=f(n._dispatchInstances,e))}function O(e){e&&e.dispatchConfig.registrationName&&C(e._targetInst,null,e)}function N(e){d(e,S)}function P(e,t,n,r){if(n&&r)e:{for(var i=n,o=r,a=0,s=i;s;s=E(s))a++;s=0;for(var u=o;u;u=E(u))s++;for(;0<a-s;)i=E(i),a--;for(;0<s-a;)o=E(o),s--;for(;a--;){if(i===o||i===o.alternate)break e;i=E(i),o=E(o)}i=null}else i=null;for(o=i,i=[];n&&n!==o&&(null===(a=n.alternate)||a!==o);)i.push(n),n=E(n);for(n=[];r&&r!==o&&(null===(a=r.alternate)||a!==o);)n.push(r),r=E(r);for(r=0;r<i.length;r++)C(i[r],"bubbled",e);for(e=n.length;0<e--;)C(n[e],"captured",t)}function I(){return!jn&&fn.canUseDOM&&(jn="textContent"in document.documentElement?"textContent":"innerText"),jn}function A(){if(Fn._fallbackText)return Fn._fallbackText;var e,t,n=Fn._startText,r=n.length,i=D(),o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Fn._fallbackText=i.slice(e,1<t?1-t:void 0),Fn._fallbackText}function D(){return"value"in Fn._root?Fn._root.value:Fn._root[I()]}function R(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var i in e)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?hn.thatReturnsTrue:hn.thatReturnsFalse,this.isPropagationStopped=hn.thatReturnsFalse,this}function M(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function L(e){e instanceof this||r("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function j(e){e.eventPool=[],e.getPooled=M,e.release=L}function F(e,t){switch(e){case"topKeyUp":return-1!==zn.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function U(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}function B(e,t){switch(e){case"topCompositionEnd":return U(t);case"topKeyPress":return 32!==t.which?null:(Xn=!0,Qn);case"topTextInput":return e=t.data,e===Qn&&Xn?null:e;default:return null}}function q(e,t){if($n)return"topCompositionEnd"===e||!Wn&&F(e,t)?(e=A(),Fn._root=null,Fn._startText=null,Fn._fallbackText=null,$n=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return Gn?null:t.data;default:return null}}function V(e){if(e=Cn(e)){Zn&&"function"===typeof Zn.restoreControlledState||r("194");var t=kn(e.stateNode);Zn.restoreControlledState(e.stateNode,e.type,t)}}function z(e){tr?nr?nr.push(e):nr=[e]:tr=e}function W(){return null!==tr||null!==nr}function H(){if(tr){var e=tr,t=nr;if(nr=tr=null,V(e),t)for(e=0;e<t.length;e++)V(t[e])}}function K(e,t){return e(t)}function G(e,t,n){return e(t,n)}function Q(){}function Y(e,t){if(ir)return e(t);ir=!0;try{return K(e,t)}finally{ir=!1,W()&&(Q(),H())}}function X(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!or[e.type]:"textarea"===t}function $(e){return e=e.target||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function J(e,t){return!(!fn.canUseDOM||t&&!("addEventListener"in document))&&(e="on"+e,t=e in document,t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t="function"===typeof t[e]),t)}function Z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ee(e){var t=Z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"===typeof n.get&&"function"===typeof n.set)return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}function te(e){e._valueTracker||(e._valueTracker=ee(e))}function ne(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function re(e){return null===e||"undefined"===typeof e?null:(e=gr&&e[gr]||e["@@iterator"],"function"===typeof e?e:null)}function ie(e){if("function"===typeof(e=e.type))return e.displayName||e.name;if("string"===typeof e)return e;switch(e){case dr:return"ReactFragment";case fr:return"ReactPortal";case lr:return"ReactCall";case cr:return"ReactReturn"}if("object"===typeof e&&null!==e)switch(e.$$typeof){case yr:return e=e.render.displayName||e.render.name||"",""!==e?"ForwardRef("+e+")":"ForwardRef"}return null}function oe(e){var t="";do{e:switch(e.tag){case 0:case 1:case 2:case 5:var n=e._debugOwner,r=e._debugSource,i=ie(e),o=null;n&&(o=ie(n)),n=r,i="\n in "+(i||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":o?" (created by "+o+")":"");break e;default:i=""}t+=i,e=e.return}while(e);return t}function ae(e){return!!_r.hasOwnProperty(e)||!wr.hasOwnProperty(e)&&(br.test(e)?_r[e]=!0:(wr[e]=!0,!1))}function se(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}function ue(e,t,n,r){if(null===t||"undefined"===typeof t||se(e,t,n,r))return!0;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function le(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}function ce(e){return e[1].toUpperCase()}function fe(e,t,n,r){var i=Er.hasOwnProperty(t)?Er[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(ue(t,n,i,r)&&(n=null),r||null===i?ae(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(i=i.type,n=3===i||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function de(e,t){var n=t.checked;return dn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function he(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function pe(e,t){null!=(t=t.checked)&&fe(e,"checked",t,!1)}function me(e,t){pe(e,t);var n=ge(t.value);null!=n&&("number"===t.type?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n)),t.hasOwnProperty("value")?ye(e,t.type,n):t.hasOwnProperty("defaultValue")&&ye(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ve(e,t){(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue"))&&(""===e.value&&(e.value=""+e._wrapperState.initialValue),e.defaultValue=""+e._wrapperState.initialValue),t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function ye(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e,t,n){return e=R.getPooled(xr.change,e,t,n),e.type="change",z(n),N(e),e}function we(e){y(e,!1)}function _e(e){if(ne(w(e)))return e}function Ee(e,t){if("topChange"===e)return t}function Te(){Sr&&(Sr.detachEvent("onpropertychange",xe),kr=Sr=null)}function xe(e){"value"===e.propertyName&&_e(kr)&&(e=be(kr,e,$(e)),Y(we,e))}function Se(e,t,n){"topFocus"===e?(Te(),Sr=t,kr=n,Sr.attachEvent("onpropertychange",xe)):"topBlur"===e&&Te()}function ke(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return _e(kr)}function Ce(e,t){if("topClick"===e)return _e(t)}function Oe(e,t){if("topInput"===e||"topChange"===e)return _e(t)}function Ne(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pr[e])&&!!t[e]}function Pe(){return Ne}function Ie(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!==(2&t.effectTag))return 1;for(;t.return;)if(t=t.return,0!==(2&t.effectTag))return 1}return 3===t.tag?2:3}function Ae(e){return!!(e=e._reactInternalFiber)&&2===Ie(e)}function De(e){2!==Ie(e)&&r("188")}function Re(e){var t=e.alternate;if(!t)return t=Ie(e),3===t&&r("188"),1===t?null:e;for(var n=e,i=t;;){var o=n.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var s=o.child;s;){if(s===n)return De(o),e;if(s===i)return De(o),t;s=s.sibling}r("188")}if(n.return!==i.return)n=o,i=a;else{s=!1;for(var u=o.child;u;){if(u===n){s=!0,n=o,i=a;break}if(u===i){s=!0,i=o,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,i=o;break}if(u===i){s=!0,i=a,n=o;break}u=u.sibling}s||r("189")}}n.alternate!==i&&r("190")}return 3!==n.tag&&r("188"),n.stateNode.current===n?e:t}function Me(e){if(!(e=Re(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Le(e){if(!(e=Re(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function je(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Fe(e,t){var n=e[0].toUpperCase()+e.slice(1),r="on"+n;n="top"+n,t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},Wr[e]=t,Hr[n]=t}function Ue(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=b(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],g(e.topLevelType,t,e.nativeEvent,$(e.nativeEvent))}function Be(e){Yr=!!e}function qe(e,t,n){if(!n)return null;e=(Gr(e)?ze:We).bind(null,e),n.addEventListener(t,e,!1)}function Ve(e,t,n){if(!n)return null;e=(Gr(e)?ze:We).bind(null,e),n.addEventListener(t,e,!0)}function ze(e,t){G(We,e,t)}function We(e,t){if(Yr){var n=$(t);if(n=b(n),null!==n&&"number"===typeof n.tag&&2!==Ie(n)&&(n=null),Qr.length){var r=Qr.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Y(Ue,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Qr.length&&Qr.push(e)}}}function He(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 Ke(e){if(Jr[e])return Jr[e];if(!$r[e])return e;var t,n=$r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Zr)return Jr[e]=n[t];return e}function Ge(e){return Object.prototype.hasOwnProperty.call(e,ii)||(e[ii]=ri++,ni[e[ii]]={}),ni[e[ii]]}function Qe(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ye(e,t){var n=Qe(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qe(n)}}function Xe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function $e(e,t){if(ci||null==si||si!==pn())return null;var n=si;return"selectionStart"in n&&Xe(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,li&&mn(li,n)?null:(li=n,e=R.getPooled(ai.select,ui,e,t),e.type="select",e.target=si,N(e),e)}function Je(e,t,n,r){this.tag=e,this.key=n,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Ze(e,t,n){var r=e.alternate;return null===r?(r=new Je(e.tag,t,e.key,e.mode),r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function et(e,t,n){var i=e.type,o=e.key;e=e.props;var a=void 0;if("function"===typeof i)a=i.prototype&&i.prototype.isReactComponent?2:0;else if("string"===typeof i)a=5;else switch(i){case dr:return tt(e.children,t,n,o);case vr:a=11,t|=3;break;case hr:a=11,t|=2;break;case lr:a=7;break;case cr:a=9;break;default:if("object"===typeof i&&null!==i)switch(i.$$typeof){case pr:a=13;break;case mr:a=12;break;case yr:a=14;break;default:if("number"===typeof i.tag)return t=i,t.pendingProps=e,t.expirationTime=n,t;r("130",null==i?i:typeof i,"")}else r("130",null==i?i:typeof i,"")}return t=new Je(a,e,o,t),t.type=i,t.expirationTime=n,t}function tt(e,t,n,r){return e=new Je(10,e,r,t),e.expirationTime=n,e}function nt(e,t,n){return e=new Je(6,e,null,t),e.expirationTime=n,e}function rt(e,t,n){return t=new Je(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function it(e){return function(t){try{return e(t)}catch(e){}}}function ot(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);di=it(function(e){return t.onCommitFiberRoot(n,e)}),hi=it(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function at(e){"function"===typeof di&&di(e)}function st(e){"function"===typeof hi&&hi(e)}function ut(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1,capturedValues:null}}function lt(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function ct(e){pi=mi=null;var t=e.alternate,n=e.updateQueue;null===n&&(n=e.updateQueue=ut(null)),null!==t?null===(e=t.updateQueue)&&(e=t.updateQueue=ut(null)):e=null,pi=n,mi=e!==n?e:null}function ft(e,t){ct(e),e=pi;var n=mi;null===n?lt(e,t):null===e.last||null===n.last?(lt(e,t),lt(n,t)):(lt(e,t),n.last=t)}function dt(e,t,n,r){return e=e.partialState,"function"===typeof e?e.call(t,n,r):e}function ht(e,t,n,r,i,o){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,capturedValues:n.capturedValues,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var a=!0,s=n.first,u=!1;null!==s;){var l=s.expirationTime;if(l>o){var c=n.expirationTime;(0===c||c>l)&&(n.expirationTime=l),u||(u=!0,n.baseState=e)}else u||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(e=dt(s,r,e,i),a=!0):(l=dt(s,r,e,i))&&(e=a?dn({},e,l):dn(e,l),a=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(l=n.callbackList,null===l&&(l=n.callbackList=[]),l.push(s)),null!==s.capturedValue&&(l=n.capturedValues,null===l?n.capturedValues=[s.capturedValue]:l.push(s.capturedValue));s=s.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||null!==n.capturedValues||(t.updateQueue=null),u||(n.baseState=e),e}function pt(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;e<n.length;e++){var i=n[e],o=i.callback;i.callback=null,"function"!==typeof o&&r("191",o),o.call(t)}}function mt(e,t,n,r,i){function o(e,t,n,r,i,o){if(null===t||null!==e.updateQueue&&e.updateQueue.hasForceUpdate)return!0;var a=e.stateNode;return e=e.type,"function"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(n,i,o):!e.prototype||!e.prototype.isPureReactComponent||(!mn(t,n)||!mn(r,i))}function a(e,t){t.updater=p,e.stateNode=t,t._reactInternalFiber=e}function s(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&p.enqueueReplaceState(t,t.state,null)}function u(e,t,n,r){if(e=e.type,"function"===typeof e.getDerivedStateFromProps)return e.getDerivedStateFromProps.call(null,n,r)}var l=e.cacheContext,c=e.getMaskedContext,f=e.getUnmaskedContext,d=e.isContextConsumer,h=e.hasContextChanged,p={isMounted:Ae,enqueueSetState:function(e,r,i){e=e._reactInternalFiber,i=void 0===i?null:i;var o=n(e);ft(e,{expirationTime:o,partialState:r,callback:i,isReplace:!1,isForced:!1,capturedValue:null,next:null}),t(e,o)},enqueueReplaceState:function(e,r,i){e=e._reactInternalFiber,i=void 0===i?null:i;var o=n(e);ft(e,{expirationTime:o,partialState:r,callback:i,isReplace:!0,isForced:!1,capturedValue:null,next:null}),t(e,o)},enqueueForceUpdate:function(e,r){e=e._reactInternalFiber,r=void 0===r?null:r;var i=n(e);ft(e,{expirationTime:i,partialState:null,callback:r,isReplace:!1,isForced:!0,capturedValue:null,next:null}),t(e,i)}};return{adoptClassInstance:a,callGetDerivedStateFromProps:u,constructClassInstance:function(e,t){var n=e.type,r=f(e),i=d(e),o=i?c(e,r):yn;n=new n(t,o);var s=null!==n.state&&void 0!==n.state?n.state:null;return a(e,n),e.memoizedState=s,t=u(e,n,t,s),null!==t&&void 0!==t&&(e.memoizedState=dn({},e.memoizedState,t)),i&&l(e,r,o),n},mountClassInstance:function(e,t){var n=e.type,r=e.alternate,i=e.stateNode,o=e.pendingProps,a=f(e);i.props=o,i.state=e.memoizedState,i.refs=yn,i.context=c(e,a),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(n=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),n!==i.state&&p.enqueueReplaceState(i,i.state,null),null!==(n=e.updateQueue)&&(i.state=ht(r,e,n,i,o,t))),"function"===typeof i.componentDidMount&&(e.effectTag|=4)},resumeMountClassInstance:function(e,t){var n=e.type,a=e.stateNode;a.props=e.memoizedProps,a.state=e.memoizedState;var l=e.memoizedProps,d=e.pendingProps,p=a.context,m=f(e);m=c(e,m),(n="function"===typeof n.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||p!==m)&&s(e,a,d,m),p=e.memoizedState,t=null!==e.updateQueue?ht(null,e,e.updateQueue,a,d,t):p;var v=void 0;if(l!==d&&(v=u(e,a,d,t)),null!==v&&void 0!==v){t=null===t||void 0===t?v:dn({},t,v);var y=e.updateQueue;null!==y&&(y.baseState=dn({},y.baseState,v))}return l!==d||p!==t||h()||null!==e.updateQueue&&e.updateQueue.hasForceUpdate?((l=o(e,l,d,p,t,m))?(n||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(e.effectTag|=4)):("function"===typeof a.componentDidMount&&(e.effectTag|=4),r(e,d),i(e,t)),a.props=d,a.state=t,a.context=m,l):("function"===typeof a.componentDidMount&&(e.effectTag|=4),!1)},updateClassInstance:function(e,t,n){var a=t.type,l=t.stateNode;l.props=t.memoizedProps,l.state=t.memoizedState;var d=t.memoizedProps,p=t.pendingProps,m=l.context,v=f(t);v=c(t,v),(a="function"===typeof a.getDerivedStateFromProps||"function"===typeof l.getSnapshotBeforeUpdate)||"function"!==typeof l.UNSAFE_componentWillReceiveProps&&"function"!==typeof l.componentWillReceiveProps||(d!==p||m!==v)&&s(t,l,p,v),m=t.memoizedState,n=null!==t.updateQueue?ht(e,t,t.updateQueue,l,p,n):m;var y=void 0;if(d!==p&&(y=u(t,l,p,n)),null!==y&&void 0!==y){n=null===n||void 0===n?y:dn({},n,y);var g=t.updateQueue;null!==g&&(g.baseState=dn({},g.baseState,y))}return d!==p||m!==n||h()||null!==t.updateQueue&&t.updateQueue.hasForceUpdate?((y=o(t,d,p,m,n,v))?(a||"function"!==typeof l.UNSAFE_componentWillUpdate&&"function"!==typeof l.componentWillUpdate||("function"===typeof l.componentWillUpdate&&l.componentWillUpdate(p,n,v),"function"===typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(p,n,v)),"function"===typeof l.componentDidUpdate&&(t.effectTag|=4),"function"===typeof l.getSnapshotBeforeUpdate&&(t.effectTag|=2048)):("function"!==typeof l.componentDidUpdate||d===e.memoizedProps&&m===e.memoizedState||(t.effectTag|=4),"function"!==typeof l.getSnapshotBeforeUpdate||d===e.memoizedProps&&m===e.memoizedState||(t.effectTag|=2048),r(t,p),i(t,n)),l.props=p,l.state=n,l.context=v,y):("function"!==typeof l.componentDidUpdate||d===e.memoizedProps&&m===e.memoizedState||(t.effectTag|=4),"function"!==typeof l.getSnapshotBeforeUpdate||d===e.memoizedProps&&m===e.memoizedState||(t.effectTag|=2048),!1)}}}function vt(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){n=n._owner;var i=void 0;n&&(2!==n.tag&&r("110"),i=n.stateNode),i||r("147",e);var o=""+e;return null!==t&&null!==t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs===yn?i.refs={}:i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}"string"!==typeof e&&r("148"),n._owner||r("254",e)}return e}function yt(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function gt(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return e=Ze(e,t,n),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?(t=nt(n,e.mode,r),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function l(e,t,n,r){return null!==t&&t.type===n.type?(r=o(t,n.props,r),r.ref=vt(e,t,n),r.return=e,r):(r=et(n,e.mode,r),r.ref=vt(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=rt(n,e.mode,r),t.return=e,t):(t=o(t,n.children||[],r),t.return=e,t)}function f(e,t,n,r,i){return null===t||10!==t.tag?(t=tt(n,e.mode,r,i),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return t=nt(""+t,e.mode,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ur:return n=et(t,e.mode,n),n.ref=vt(e,null,t),n.return=e,n;case fr:return t=rt(t,e.mode,n),t.return=e,t}if(vi(t)||re(t))return t=tt(t,e.mode,n,null),t.return=e,t;yt(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ur:return n.key===i?n.type===dr?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case fr:return n.key===i?c(e,t,n,r):null}if(vi(n)||re(n))return null!==i?null:f(e,t,n,r,null);yt(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return e=e.get(n)||null,u(t,e,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ur:return e=e.get(null===r.key?n:r.key)||null,r.type===dr?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case fr:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,i)}if(vi(r)||re(r))return e=e.get(n)||null,f(t,e,r,i,null);yt(t,r)}return null}function m(r,o,s,u){for(var l=null,c=null,f=o,m=o=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=h(r,f,s[m],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(r,f),o=a(y,o,m),null===c?l=y:c.sibling=y,c=y,f=v}if(m===s.length)return n(r,f),l;if(null===f){for(;m<s.length;m++)(f=d(r,s[m],u))&&(o=a(f,o,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=i(r,f);m<s.length;m++)(v=p(f,r,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return t(r,e)}),l}function v(o,s,u,l){var c=re(u);"function"!==typeof c&&r("150"),null==(u=c.call(u))&&r("151");for(var f=c=null,m=s,v=s=0,y=null,g=u.next();null!==m&&!g.done;v++,g=u.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=h(o,m,g.value,l);if(null===b){m||(m=y);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(o,m),c;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=d(o,g.value,l))&&(s=a(g,s,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=i(o,m);!g.done;v++,g=u.next())null!==(g=p(m,o,v,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),s=a(g,s,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach(function(e){return t(o,e)}),c}return function(e,i,a,u){"object"===typeof a&&null!==a&&a.type===dr&&null===a.key&&(a=a.props.children);var l="object"===typeof a&&null!==a;if(l)switch(a.$$typeof){case ur:e:{var c=a.key;for(l=i;null!==l;){if(l.key===c){if(10===l.tag?a.type===dr:l.type===a.type){n(e,l.sibling),i=o(l,a.type===dr?a.props.children:a.props,u),i.ref=vt(e,l,a),i.return=e,e=i;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===dr?(i=tt(a.props.children,e.mode,u,a.key),i.return=e,e=i):(u=et(a,e.mode,u),u.ref=vt(e,i,a),u.return=e,e=u)}return s(e);case fr:e:{for(l=a.key;null!==i;){if(i.key===l){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),i=o(i,a.children||[],u),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=rt(a,e.mode,u),i.return=e,e=i}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==i&&6===i.tag?(n(e,i.sibling),i=o(i,a,u),i.return=e,e=i):(n(e,i),i=nt(a,e.mode,u),i.return=e,e=i),s(e);if(vi(a))return m(e,i,a,u);if(re(a))return v(e,i,a,u);if(l&&yt(e,a),"undefined"===typeof a)switch(e.tag){case 2:case 1:u=e.type,r("152",u.displayName||u.name||"Component")}return n(e,i)}}function bt(e,t,n,i,o,a,s){function u(e,t,n){l(e,t,n,t.expirationTime)}function l(e,t,n,r){t.child=null===e?gi(t,null,n,r):yi(t,e.child,n,r)}function c(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function f(e,t,n,r,i,o){if(c(e,t),!n&&!i)return r&&k(t,!1),m(e,t);n=t.stateNode,ar.current=t;var a=i?null:n.render();return t.effectTag|=1,i&&(l(e,t,null,o),t.child=null),l(e,t,a,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&k(t,!0),t.child}function d(e){var t=e.stateNode;t.pendingContext?S(e,t.pendingContext,t.pendingContext!==t.context):t.context&&S(e,t.context,!1),b(e,t.containerInfo)}function h(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){switch(i.tag){case 12:var o=0|i.stateNode;if(i.type===t&&0!==(o&n)){for(o=i;null!==o;){var a=o.alternate;if(0===o.expirationTime||o.expirationTime>r)o.expirationTime=r,null!==a&&(0===a.expirationTime||a.expirationTime>r)&&(a.expirationTime=r);else{if(null===a||!(0===a.expirationTime||a.expirationTime>r))break;a.expirationTime=r}o=o.return}o=null}else o=i.child;break;case 13:o=i.type===e.type?null:i.child;break;default:o=i.child}if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===e){o=null;break}if(null!==(i=o.sibling)){o=i;break}o=o.return}i=o}}function p(e,t,n){var r=t.type._context,i=t.pendingProps,o=t.memoizedProps;if(!T()&&o===i)return t.stateNode=0,w(t),m(e,t);var a=i.value;if(t.memoizedProps=i,null===o)a=1073741823;else if(o.value===i.value){if(o.children===i.children)return t.stateNode=0,w(t),m(e,t);a=0}else{var s=o.value;if(s===a&&(0!==s||1/s===1/a)||s!==s&&a!==a){if(o.children===i.children)return t.stateNode=0,w(t),m(e,t);a=0}else if(a="function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823,0===(a|=0)){if(o.children===i.children)return t.stateNode=0,w(t),m(e,t)}else h(t,r,a,n)}return t.stateNode=a,w(t),u(e,t,i.children),t.child}function m(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){e=t.child;var n=Ze(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=Ze(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}var v=e.shouldSetTextContent,y=e.shouldDeprioritizeSubtree,g=t.pushHostContext,b=t.pushHostContainer,w=i.pushProvider,_=n.getMaskedContext,E=n.getUnmaskedContext,T=n.hasContextChanged,x=n.pushContextProvider,S=n.pushTopLevelContextObject,k=n.invalidateContextProvider,C=o.enterHydrationState,O=o.resetHydrationState,N=o.tryToClaimNextHydratableInstance;e=mt(n,a,s,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var P=e.adoptClassInstance,I=e.callGetDerivedStateFromProps,A=e.constructClassInstance,D=e.mountClassInstance,R=e.resumeMountClassInstance,M=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:d(t);break;case 2:x(t);break;case 4:b(t,t.stateNode.containerInfo);break;case 13:w(t)}return null}switch(t.tag){case 0:null!==e&&r("155");var i=t.type,o=t.pendingProps,a=E(t);return a=_(t,a),i=i(o,a),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(a=t.type,t.tag=2,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,"function"===typeof a.getDerivedStateFromProps&&null!==(o=I(t,i,o,t.memoizedState))&&void 0!==o&&(t.memoizedState=dn({},t.memoizedState,o)),o=x(t),P(t,i),D(t,n),e=f(e,t,!0,o,!1,n)):(t.tag=1,u(e,t,i),t.memoizedProps=o,e=t.child),e;case 1:return o=t.type,n=t.pendingProps,T()||t.memoizedProps!==n?(i=E(t),i=_(t,i),o=o(n,i),t.effectTag|=1,u(e,t,o),t.memoizedProps=n,e=t.child):e=m(e,t),e;case 2:o=x(t),null===e?null===t.stateNode?(A(t,t.pendingProps),D(t,n),i=!0):i=R(t,n):i=M(e,t,n),a=!1;var s=t.updateQueue;return null!==s&&null!==s.capturedValues&&(a=i=!0),f(e,t,i,o,a,n);case 3:e:if(d(t),null!==(i=t.updateQueue)){if(a=t.memoizedState,o=ht(e,t,i,null,null,n),t.memoizedState=o,null!==(i=t.updateQueue)&&null!==i.capturedValues)i=null;else{if(a===o){O(),e=m(e,t);break e}i=o.element}a=t.stateNode,(null===e||null===e.child)&&a.hydrate&&C(t)?(t.effectTag|=2,t.child=gi(t,null,i,n)):(O(),u(e,t,i)),t.memoizedState=o,e=t.child}else O(),e=m(e,t);return e;case 5:return g(t),null===e&&N(t),o=t.type,s=t.memoizedProps,i=t.pendingProps,a=null!==e?e.memoizedProps:null,T()||s!==i||((s=1&t.mode&&y(o,i))&&(t.expirationTime=1073741823),s&&1073741823===n)?(s=i.children,v(o,i)?s=null:a&&v(o,a)&&(t.effectTag|=16),c(e,t),1073741823!==n&&1&t.mode&&y(o,i)?(t.expirationTime=1073741823,t.memoizedProps=i,e=null):(u(e,t,s),t.memoizedProps=i,e=t.child)):e=m(e,t),e;case 6:return null===e&&N(t),t.memoizedProps=t.pendingProps,null;case 8:t.tag=7;case 7:return o=t.pendingProps,T()||t.memoizedProps!==o||(o=t.memoizedProps),i=o.children,t.stateNode=null===e?gi(t,t.stateNode,i,n):yi(t,e.stateNode,i,n),t.memoizedProps=o,t.stateNode;case 9:return null;case 4:return b(t,t.stateNode.containerInfo),o=t.pendingProps,T()||t.memoizedProps!==o?(null===e?t.child=yi(t,null,o,n):u(e,t,o),t.memoizedProps=o,e=t.child):e=m(e,t),e;case 14:return n=t.type.render,n=n(t.pendingProps,t.ref),u(e,t,n),t.memoizedProps=n,t.child;case 10:return n=t.pendingProps,T()||t.memoizedProps!==n?(u(e,t,n),t.memoizedProps=n,e=t.child):e=m(e,t),e;case 11:return n=t.pendingProps.children,T()||null!==n&&t.memoizedProps!==n?(u(e,t,n),t.memoizedProps=n,e=t.child):e=m(e,t),e;case 13:return p(e,t,n);case 12:e:{i=t.type,a=t.pendingProps,s=t.memoizedProps,o=i._currentValue;var l=i._changedBits;if(T()||0!==l||s!==a){t.memoizedProps=a;var S=a.unstable_observedBits;if(void 0!==S&&null!==S||(S=1073741823),t.stateNode=S,0!==(l&S))h(t,i,l,n);else if(s===a){e=m(e,t);break e}n=a.children,n=n(o),u(e,t,n),e=t.child}else e=m(e,t)}return e;default:r("156")}}}}function wt(e,t,n,i,o){function a(e){e.effectTag|=4}var s=e.createInstance,u=e.createTextInstance,l=e.appendInitialChild,c=e.finalizeInitialChildren,f=e.prepareUpdate,d=e.persistence,h=t.getRootHostContainer,p=t.popHostContext,m=t.getHostContext,v=t.popHostContainer,y=n.popContextProvider,g=n.popTopLevelContextObject,b=i.popProvider,w=o.prepareToHydrateHostInstance,_=o.prepareToHydrateHostTextInstance,E=o.popHydrationState,T=void 0,x=void 0,S=void 0;return e.mutation?(T=function(){},x=function(e,t,n){(t.updateQueue=n)&&a(t)},S=function(e,t,n,r){n!==r&&a(t)}):r(d?"235":"236"),{completeWork:function(e,t,n){var i=t.pendingProps;switch(t.tag){case 1:return null;case 2:return y(t),e=t.stateNode,i=t.updateQueue,null!==i&&null!==i.capturedValues&&(t.effectTag&=-65,"function"===typeof e.componentDidCatch?t.effectTag|=256:i.capturedValues=null),null;case 3:return v(t),g(t),i=t.stateNode,i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(E(t),t.effectTag&=-3),T(t),e=t.updateQueue,null!==e&&null!==e.capturedValues&&(t.effectTag|=256),null;case 5:p(t),n=h();var o=t.type;if(null!==e&&null!=t.stateNode){var d=e.memoizedProps,k=t.stateNode,C=m();k=f(k,o,d,i,n,C),x(e,t,k,o,d,i,n,C),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!i)return null===t.stateNode&&r("166"),null;if(e=m(),E(t))w(t,n,e)&&a(t);else{d=s(o,i,n,e,t);e:for(C=t.child;null!==C;){if(5===C.tag||6===C.tag)l(d,C.stateNode);else if(4!==C.tag&&null!==C.child){C.child.return=C,C=C.child;continue}if(C===t)break;for(;null===C.sibling;){if(null===C.return||C.return===t)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}c(d,o,i,n,e)&&a(t),t.stateNode=d}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)S(e,t,e.memoizedProps,i);else{if("string"!==typeof i)return null===t.stateNode&&r("166"),null;e=h(),n=m(),E(t)?_(t)&&a(t):t.stateNode=u(i,e,n,t)}return null;case 7:(i=t.memoizedProps)||r("165"),t.tag=8,o=[];e:for((d=t.stateNode)&&(d.return=t);null!==d;){if(5===d.tag||6===d.tag||4===d.tag)r("247");else if(9===d.tag)o.push(d.pendingProps.value);else if(null!==d.child){d.child.return=d,d=d.child;continue}for(;null===d.sibling;){if(null===d.return||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}return d=i.handler,i=d(i.props,o),t.child=yi(t,null!==e?e.child:null,i,n),t.child;case 8:return t.tag=7,null;case 9:case 14:case 10:case 11:return null;case 4:return v(t),T(t),null;case 13:return b(t),null;case 12:return null;case 0:r("167");default:r("156")}}}}function _t(e,t,n,r,i){var o=e.popHostContainer,a=e.popHostContext,s=t.popContextProvider,u=t.popTopLevelContextObject,l=n.popProvider;return{throwException:function(e,t,n){t.effectTag|=512,t.firstEffect=t.lastEffect=null,t={value:n,source:t,stack:oe(t)};do{switch(e.tag){case 3:return ct(e),e.updateQueue.capturedValues=[t],void(e.effectTag|=1024);case 2:if(n=e.stateNode,0===(64&e.effectTag)&&null!==n&&"function"===typeof n.componentDidCatch&&!i(n)){ct(e),n=e.updateQueue;var r=n.capturedValues;return null===r?n.capturedValues=[t]:r.push(t),void(e.effectTag|=1024)}}e=e.return}while(null!==e)},unwindWork:function(e){switch(e.tag){case 2:s(e);var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return o(e),u(e),t=e.effectTag,1024&t?(e.effectTag=-1025&t|64,e):null;case 5:return a(e),null;case 4:return o(e),null;case 13:return l(e),null;default:return null}},unwindInterruptedWork:function(e){switch(e.tag){case 2:s(e);break;case 3:o(e),u(e);break;case 5:a(e);break;case 4:o(e);break;case 13:l(e)}}}}function Et(e,t){var n=t.source;null===t.stack&&oe(n),null!==n&&ie(n),t=t.value,null!==e&&2===e.tag&&ie(e);try{t&&t.suppressReactErrorLogging||console.error(t)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function Tt(e,t,n,i,o){function a(e){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(n){t(e,n)}else n.current=null}function s(e){switch("function"===typeof st&&st(e),e.tag){case 2:a(e);var n=e.stateNode;if("function"===typeof n.componentWillUnmount)try{n.props=e.memoizedProps,n.state=e.memoizedState,n.componentWillUnmount()}catch(n){t(e,n)}break;case 5:a(e);break;case 7:u(e.stateNode);break;case 4:d&&c(e)}}function u(e){for(var t=e;;)if(s(t),null===t.child||d&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function l(e){return 5===e.tag||3===e.tag||4===e.tag}function c(e){for(var t=e,n=!1,i=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case 5:i=n.stateNode,o=!1;break e;case 3:case 4:i=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)u(t),o?E(i,t.stateNode):_(i,t.stateNode);else if(4===t.tag?i=t.stateNode.containerInfo:s(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var f=e.getPublicInstance,d=e.mutation;e=e.persistence,d||r(e?"235":"236");var h=d.commitMount,p=d.commitUpdate,m=d.resetTextContent,v=d.commitTextUpdate,y=d.appendChild,g=d.appendChildToContainer,b=d.insertBefore,w=d.insertInContainerBefore,_=d.removeChild,E=d.removeChildFromContainer;return{commitBeforeMutationLifeCycles:function(e,t){switch(t.tag){case 2:if(2048&t.effectTag&&null!==e){var n=e.memoizedProps,i=e.memoizedState;e=t.stateNode,e.props=t.memoizedProps,e.state=t.memoizedState,t=e.getSnapshotBeforeUpdate(n,i),e.__reactInternalSnapshotBeforeUpdate=t}break;case 3:case 5:case 6:case 4:break;default:r("163")}},commitResetTextContent:function(e){m(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(l(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var i=t=void 0;switch(n.tag){case 5:t=n.stateNode,i=!1;break;case 3:case 4:t=n.stateNode.containerInfo,i=!0;break;default:r("161")}16&n.effectTag&&(m(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||l(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)n?i?w(t,o.stateNode,n):b(t,o.stateNode,n):i?g(t,o.stateNode):y(t,o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},commitDeletion:function(e){c(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps;e=null!==e?e.memoizedProps:i;var o=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&p(n,a,o,e,i,t)}break;case 6:null===t.stateNode&&r("162"),n=t.memoizedProps,v(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(e,t,n){switch(n.tag){case 2:if(e=n.stateNode,4&n.effectTag)if(null===t)e.props=n.memoizedProps,e.state=n.memoizedState,e.componentDidMount();else{var i=t.memoizedProps;t=t.memoizedState,e.props=n.memoizedProps,e.state=n.memoizedState,e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}n=n.updateQueue,null!==n&&pt(n,e);break;case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=f(n.child.stateNode);break;case 2:e=n.child.stateNode}pt(t,e)}break;case 5:e=n.stateNode,null===t&&4&n.effectTag&&h(e,n.type,n.memoizedProps,n);break;case 6:case 4:break;default:r("163")}},commitErrorLogging:function(e,t){switch(e.tag){case 2:var n=e.type;t=e.stateNode;var i=e.updateQueue;(null===i||null===i.capturedValues)&&r("264");var a=i.capturedValues;for(i.capturedValues=null,"function"!==typeof n.getDerivedStateFromCatch&&o(t),t.props=e.memoizedProps,t.state=e.memoizedState,n=0;n<a.length;n++){i=a[n];var s=i.value,u=i.stack;Et(e,i),t.componentDidCatch(s,{componentStack:null!==u?u:""})}break;case 3:for(n=e.updateQueue,(null===n||null===n.capturedValues)&&r("264"),a=n.capturedValues,n.capturedValues=null,n=0;n<a.length;n++)i=a[n],Et(e,i),t(i.value);break;default:r("265")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:e=f(n);break;default:e=n}"function"===typeof t?t(e):t.current=e}},commitDetachRef:function(e){null!==(e=e.ref)&&("function"===typeof e?e(null):e.current=null)}}}function xt(e,t){function n(e){return e===bi&&r("174"),e}var i=e.getChildHostContext,o=e.getRootHostContext;e=t.createCursor;var a=t.push,s=t.pop,u=e(bi),l=e(bi),c=e(bi);return{getHostContext:function(){return n(u.current)},getRootHostContainer:function(){return n(c.current)},popHostContainer:function(e){s(u,e),s(l,e),s(c,e)},popHostContext:function(e){l.current===e&&(s(u,e),s(l,e))},pushHostContainer:function(e,t){a(c,t,e),a(l,e,e),a(u,bi,e),t=o(t),s(u,e),a(u,t,e)},pushHostContext:function(e){var t=n(c.current),r=n(u.current);t=i(r,e.type,t),r!==t&&(a(l,e,e),a(u,t,e))}}}function St(e){function t(e,t){var n=new Je(5,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case 5:return null!==(t=a(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=s(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function i(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;d=e}var o=e.shouldSetTextContent;if(!(e=e.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var a=e.canHydrateInstance,s=e.canHydrateTextInstance,u=e.getNextHydratableSibling,l=e.getFirstHydratableChild,c=e.hydrateInstance,f=e.hydrateTextInstance,d=null,h=null,p=!1;return{enterHydrationState:function(e){return h=l(e.stateNode.containerInfo),d=e,p=!0},resetHydrationState:function(){h=d=null,p=!1},tryToClaimNextHydratableInstance:function(e){if(p){var r=h;if(r){if(!n(e,r)){if(!(r=u(r))||!n(e,r))return e.effectTag|=2,p=!1,void(d=e);t(d,h)}d=e,h=l(r)}else e.effectTag|=2,p=!1,d=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return f(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==d)return!1;if(!p)return i(e),p=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!o(n,e.memoizedProps))for(n=h;n;)t(e,n),n=u(n);return i(e),h=d?u(e.stateNode):null,!0}}}function kt(e){function t(e,t,n){e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n}function n(e){return 2===e.tag&&null!=e.type.childContextTypes}function i(e,t){var n=e.stateNode,i=e.type.childContextTypes;if("function"!==typeof n.getChildContext)return t;n=n.getChildContext();for(var o in n)o in i||r("108",ie(e)||"Unknown",o);return dn({},t,n)}var o=e.createCursor,a=e.push,s=e.pop,u=o(yn),l=o(!1),c=yn;return{getUnmaskedContext:function(e){return n(e)?c:u.current},cacheContext:t,getMaskedContext:function(e,n){var r=e.type.contextTypes;if(!r)return yn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===n)return i.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=n[o];return i&&t(e,n,a),a},hasContextChanged:function(){return l.current},isContextConsumer:function(e){return 2===e.tag&&null!=e.type.contextTypes},isContextProvider:n,popContextProvider:function(e){n(e)&&(s(l,e),s(u,e))},popTopLevelContextObject:function(e){s(l,e),s(u,e)},pushTopLevelContextObject:function(e,t,n){null!=u.cursor&&r("168"),a(u,t,e),a(l,n,e)},processChildContext:i,pushContextProvider:function(e){if(!n(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||yn,c=u.current,a(u,t,e),a(l,l.current,e),!0},invalidateContextProvider:function(e,t){var n=e.stateNode;if(n||r("169"),t){var o=i(e,c);n.__reactInternalMemoizedMergedChildContext=o,s(l,e),s(u,e),a(u,o,e)}else s(l,e);a(l,t,e)},findCurrentUnmaskedContext:function(e){for(2!==Ie(e)||2!==e.tag?r("170"):void 0;3!==e.tag;){if(n(e))return e.stateNode.__reactInternalMemoizedMergedChildContext;(e=e.return)||r("171")}return e.stateNode.context}}}function Ct(e){var t=e.createCursor,n=e.push,r=e.pop,i=t(null),o=t(null),a=t(0);return{pushProvider:function(e){var t=e.type._context;n(a,t._changedBits,e),n(o,t._currentValue,e),n(i,e,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode},popProvider:function(e){var t=a.current,n=o.current;r(i,e),r(o,e),r(a,e),e=e.type._context,e._currentValue=n,e._changedBits=t}}}function Ot(){var e=[],t=-1;return{createCursor:function(e){return{current:e}},isEmpty:function(){return-1===t},pop:function(n){0>t||(n.current=e[t],e[t]=null,t--)},push:function(n,r){t++,e[t]=n.current,n.current=r},checkThatStackIsEmpty:function(){},resetStackAfterFatalErrorInDev:function(){}}}function Nt(e){function t(){if(null!==Z)for(var e=Z.return;null!==e;)A(e),e=e.return;ee=null,te=0,Z=null,ie=!1}function n(e){return null!==ae&&ae.has(e)}function i(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0===(512&e.effectTag)){t=N(t,e,te);var i=e;if(1073741823===te||1073741823!==i.expirationTime){e:switch(i.tag){case 3:case 2:var o=i.updateQueue;o=null===o?0:o.expirationTime;break e;default:o=0}for(var a=i.child;null!==a;)0!==a.expirationTime&&(0===o||o>a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==t)return t;if(null!==n&&0===(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){ie=!0;break}e=n}else{if(null!==(e=I(e)))return e.effectTag&=2559,e;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;e=n}}return null}function o(e){var t=O(e.alternate,e,te);return null===t&&(t=i(e)),ar.current=null,t}function a(e,n,a){J&&r("243"),J=!0,n===te&&e===ee&&null!==Z||(t(),ee=e,te=n,Z=Ze(ee.current,null,te),e.pendingCommitExpirationTime=0);for(var s=!1;;){try{if(a)for(;null!==Z&&!E();)Z=o(Z);else for(;null!==Z;)Z=o(Z)}catch(e){if(null===Z){s=!0,T(e);break}a=Z;var u=a.return;if(null===u){s=!0,T(e);break}P(u,a,e),Z=i(a)}break}return J=!1,s||null!==Z?null:ie?(e.pendingCommitExpirationTime=n,e.current.alternate):void r("262")}function s(e,t,n,r){e={value:n,source:e,stack:oe(e)},ft(t,{expirationTime:r,partialState:null,callback:null,isReplace:!1,isForced:!1,capturedValue:e,next:null}),c(t,r)}function u(e,t){e:{J&&!re&&r("263");for(var i=e.return;null!==i;){switch(i.tag){case 2:var o=i.stateNode;if("function"===typeof i.type.getDerivedStateFromCatch||"function"===typeof o.componentDidCatch&&!n(o)){s(e,i,t,1),e=void 0;break e}break;case 3:s(e,i,t,1),e=void 0;break e}i=i.return}3===e.tag&&s(e,e,t,1),e=void 0}return e}function l(e){return e=0!==$?$:J?re?1:te:1&e.mode?_e?10*(1+((f()+15)/10|0)):25*(1+((f()+500)/25|0)):1,_e&&(0===pe||e>pe)&&(pe=e),e}function c(e,n){e:{for(;null!==e;){if((0===e.expirationTime||e.expirationTime>n)&&(e.expirationTime=n),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>n)&&(e.alternate.expirationTime=n),null===e.return){if(3!==e.tag){n=void 0;break e}var i=e.stateNode;!J&&0!==te&&n<te&&t(),J&&!re&&ee===i||p(i,n),xe>Te&&r("185")}e=e.return}n=void 0}return n}function f(){return Y=V()-G,Q=2+(Y/10|0)}function d(e,t,n,r,i){var o=$;$=1;try{return e(t,n,r,i)}finally{$=o}}function h(e){if(0!==le){if(e>le)return;W(ce)}var t=V()-G;le=e,ce=z(v,{timeout:10*(e-2)-t})}function p(e,t){if(null===e.nextScheduledRoot)e.remainingExpirationTime=t,null===ue?(se=ue=e,e.nextScheduledRoot=e):(ue=ue.nextScheduledRoot=e,ue.nextScheduledRoot=se);else{var n=e.remainingExpirationTime;(0===n||t<n)&&(e.remainingExpirationTime=t)}fe||(be?we&&(de=e,he=1,w(e,1,!1)):1===t?y():h(t))}function m(){var e=0,t=null;if(null!==ue)for(var n=ue,i=se;null!==i;){var o=i.remainingExpirationTime;if(0===o){if((null===n||null===ue)&&r("244"),i===i.nextScheduledRoot){se=ue=i.nextScheduledRoot=null;break}if(i===se)se=o=i.nextScheduledRoot,ue.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===ue){ue=n,ue.nextScheduledRoot=se,i.nextScheduledRoot=null;break}n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if((0===e||o<e)&&(e=o,t=i),i===ue)break;n=i,i=i.nextScheduledRoot}}n=de,null!==n&&n===t&&1===e?xe++:xe=0,de=t,he=e}function v(e){g(0,!0,e)}function y(){g(1,!1,null)}function g(e,t,n){if(ge=n,m(),t)for(;null!==de&&0!==he&&(0===e||e>=he)&&(!me||f()>=he);)w(de,he,!me),m();else for(;null!==de&&0!==he&&(0===e||e>=he);)w(de,he,!1),m();null!==ge&&(le=0,ce=-1),0!==he&&h(he),ge=null,me=!1,b()}function b(){if(xe=0,null!==Ee){var e=Ee;Ee=null;for(var t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ve||(ve=!0,ye=e)}}}if(ve)throw e=ye,ye=null,ve=!1,e}function w(e,t,n){fe&&r("245"),fe=!0,n?(n=e.finishedWork,null!==n?_(e,n,t):(e.finishedWork=null,null!==(n=a(e,t,!0))&&(E()?e.finishedWork=n:_(e,n,t)))):(n=e.finishedWork,null!==n?_(e,n,t):(e.finishedWork=null,null!==(n=a(e,t,!1))&&_(e,n,t))),fe=!1}function _(e,t,n){var i=e.firstBatch;if(null!==i&&i._expirationTime<=n&&(null===Ee?Ee=[i]:Ee.push(i),i._defer))return e.finishedWork=t,void(e.remainingExpirationTime=0);e.finishedWork=null,re=J=!0,n=t.stateNode,n.current===t&&r("177"),i=n.pendingCommitExpirationTime,0===i&&r("261"),n.pendingCommitExpirationTime=0;var o=f();if(ar.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var a=t.firstEffect}else a=t;else a=t.firstEffect;for(H(n.containerInfo),ne=a;null!==ne;){var s=!1,l=void 0;try{for(;null!==ne;)2048&ne.effectTag&&D(ne.alternate,ne),ne=ne.nextEffect}catch(e){s=!0,l=e}s&&(null===ne&&r("178"),u(ne,l),null!==ne&&(ne=ne.nextEffect))}for(ne=a;null!==ne;){s=!1,l=void 0;try{for(;null!==ne;){var c=ne.effectTag;if(16&c&&R(ne),128&c){var d=ne.alternate;null!==d&&q(d)}switch(14&c){case 2:M(ne),ne.effectTag&=-3;break;case 6:M(ne),ne.effectTag&=-3,j(ne.alternate,ne);break;case 4:j(ne.alternate,ne);break;case 8:L(ne)}ne=ne.nextEffect}}catch(e){s=!0,l=e}s&&(null===ne&&r("178"),u(ne,l),null!==ne&&(ne=ne.nextEffect))}for(K(n.containerInfo),n.current=t,ne=a;null!==ne;){c=!1,d=void 0;try{for(a=n,s=o,l=i;null!==ne;){var h=ne.effectTag;36&h&&F(a,ne.alternate,ne,s,l),256&h&&U(ne,T),128&h&&B(ne);var p=ne.nextEffect;ne.nextEffect=null,ne=p}}catch(e){c=!0,d=e}c&&(null===ne&&r("178"),u(ne,d),null!==ne&&(ne=ne.nextEffect))}J=re=!1,"function"===typeof at&&at(t.stateNode),t=n.current.expirationTime,0===t&&(ae=null),e.remainingExpirationTime=t}function E(){return!(null===ge||ge.timeRemaining()>Se)&&(me=!0)}function T(e){null===de&&r("246"),de.remainingExpirationTime=0,ve||(ve=!0,ye=e)}var x=Ot(),S=xt(e,x),k=kt(x);x=Ct(x);var C=St(e),O=bt(e,S,k,x,C,c,l).beginWork,N=wt(e,S,k,x,C).completeWork;S=_t(S,k,x,c,n);var P=S.throwException,I=S.unwindWork,A=S.unwindInterruptedWork;S=Tt(e,u,c,l,function(e){null===ae?ae=new Set([e]):ae.add(e)},f);var D=S.commitBeforeMutationLifeCycles,R=S.commitResetTextContent,M=S.commitPlacement,L=S.commitDeletion,j=S.commitWork,F=S.commitLifeCycles,U=S.commitErrorLogging,B=S.commitAttachRef,q=S.commitDetachRef,V=e.now,z=e.scheduleDeferredCallback,W=e.cancelDeferredCallback,H=e.prepareForCommit,K=e.resetAfterCommit,G=V(),Q=2,Y=G,X=0,$=0,J=!1,Z=null,ee=null,te=0,ne=null,re=!1,ie=!1,ae=null,se=null,ue=null,le=0,ce=-1,fe=!1,de=null,he=0,pe=0,me=!1,ve=!1,ye=null,ge=null,be=!1,we=!1,_e=!1,Ee=null,Te=1e3,xe=0,Se=1;return{recalculateCurrentTime:f,computeExpirationForFiber:l,scheduleWork:c,requestWork:p,flushRoot:function(e,t){fe&&r("253"),de=e,he=t,w(e,t,!1),y(),b()},batchedUpdates:function(e,t){var n=be;be=!0;try{return e(t)}finally{(be=n)||fe||y()}},unbatchedUpdates:function(e,t){if(be&&!we){we=!0;try{return e(t)}finally{we=!1}}return e(t)},flushSync:function(e,t){fe&&r("187");var n=be;be=!0;try{return d(e,t)}finally{be=n,y()}},flushControlled:function(e){var t=be;be=!0;try{d(e)}finally{(be=t)||fe||g(1,!1,null)}},deferredUpdates:function(e){var t=$;$=25*(1+((f()+500)/25|0));try{return e()}finally{$=t}},syncUpdates:d,interactiveUpdates:function(e,t,n){if(_e)return e(t,n);be||fe||0===pe||(g(pe,!1,null),pe=0);var r=_e,i=be;be=_e=!0;try{return e(t,n)}finally{_e=r,(be=i)||fe||y()}},flushInteractiveUpdates:function(){fe||0===pe||(g(pe,!1,null),pe=0)},computeUniqueAsyncExpiration:function(){var e=25*(1+((f()+500)/25|0));return e<=X&&(e=X+1),X=e},legacyContext:k}}function Pt(e){function t(e,t,n,r,i,o){if(r=t.current,n){n=n._reactInternalFiber;var s=u(n);n=l(n)?c(n,s):s}else n=yn;return null===t.context?t.context=n:t.pendingContext=n,t=o,ft(r,{expirationTime:i,partialState:{element:e},callback:void 0===t?null:t,isReplace:!1,isForced:!1,capturedValue:null,next:null}),a(r,i),i}var n=e.getPublicInstance;e=Nt(e);var i=e.recalculateCurrentTime,o=e.computeExpirationForFiber,a=e.scheduleWork,s=e.legacyContext,u=s.findCurrentUnmaskedContext,l=s.isContextProvider,c=s.processChildContext;return{createContainer:function(e,t,n){return t=new Je(3,null,null,t?3:0),e={current:t,containerInfo:e,pendingChildren:null,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e},updateContainer:function(e,n,r,a){var s=n.current,u=i();return s=o(s),t(e,n,r,u,s,a)},updateContainerAtExpirationTime:function(e,n,r,o,a){return t(e,n,r,i(),o,a)},flushRoot:e.flushRoot,requestWork:e.requestWork,computeUniqueAsyncExpiration:e.computeUniqueAsyncExpiration,batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,syncUpdates:e.syncUpdates,interactiveUpdates:e.interactiveUpdates,flushInteractiveUpdates:e.flushInteractiveUpdates,flushControlled:e.flushControlled,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return n(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:function(e){var t=e._reactInternalFiber;return void 0===t&&("function"===typeof e.render?r("188"):r("268",Object.keys(e))),e=Me(t),null===e?null:e.stateNode},findHostInstanceWithNoPortals:function(e){return e=Le(e),null===e?null:e.stateNode},injectIntoDevTools:function(e){var t=e.findFiberByHostInstance;return ot(dn({},e,{findHostInstanceByFiber:function(e){return e=Me(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}}}function It(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:fr,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function At(e){var t="";return cn.Children.forEach(e,function(e){null==e||"string"!==typeof e&&"number"!==typeof e||(t+=e)}),t}function Dt(e,t){return e=dn({children:void 0},t),(t=At(t.children))&&(e.children=t),e}function Rt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Mt(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function Lt(e,t){return null!=t.dangerouslySetInnerHTML&&r("91"),dn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jt(e,t){var n=t.value;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n&&r("92"),Array.isArray(t)&&(1>=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Ft(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Ut(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function Bt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Bt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function Vt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function zt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=t[n];i=null==o||"boolean"===typeof o||""===o?"":r||"number"!==typeof o||0===o||Bi.hasOwnProperty(i)&&Bi[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}function Wt(e,t,n){t&&(Vi[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!==typeof t.style&&r("62",n()))}function Ht(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Kt(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Ge(e);t=xn[t];for(var r=0;r<t.length;r++){var i=t[r];n.hasOwnProperty(i)&&n[i]||("topScroll"===i?Ve("topScroll","scroll",e):"topFocus"===i||"topBlur"===i?(Ve("topFocus","focus",e),Ve("topBlur","blur",e),n.topBlur=!0,n.topFocus=!0):"topCancel"===i?(J("cancel",!0)&&Ve("topCancel","cancel",e),n.topCancel=!0):"topClose"===i?(J("close",!0)&&Ve("topClose","close",e),n.topClose=!0):ei.hasOwnProperty(i)&&qe(i,ei[i],e),n[i]=!0)}}function Gt(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===ji.html&&(r=Bt(e)),r===ji.html?"script"===e?(e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"===typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function Qt(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function Yt(e,t,n,r){var i=Ht(t,n);switch(t){case"iframe":case"object":qe("topLoad","load",e);var o=n;break;case"video":case"audio":for(o in ti)ti.hasOwnProperty(o)&&qe(o,ti[o],e);o=n;break;case"source":qe("topError","error",e),o=n;break;case"img":case"image":case"link":qe("topError","error",e),qe("topLoad","load",e),o=n;break;case"form":qe("topReset","reset",e),qe("topSubmit","submit",e),o=n;break;case"details":qe("topToggle","toggle",e),o=n;break;case"input":he(e,n),o=de(e,n),qe("topInvalid","invalid",e),Kt(r,"onChange");break;case"option":o=Dt(e,n);break;case"select":Mt(e,n),o=dn({},n,{value:void 0}),qe("topInvalid","invalid",e),Kt(r,"onChange");break;case"textarea":jt(e,n),o=Lt(e,n),qe("topInvalid","invalid",e),Kt(r,"onChange");break;default:o=n}Wt(t,o,zi);var a,s=o;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?zt(e,u,zi):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&Ui(e,u):"children"===a?"string"===typeof u?("textarea"!==t||""!==u)&&Vt(e,u):"number"===typeof u&&Vt(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Tn.hasOwnProperty(a)?null!=u&&Kt(r,a):null!=u&&fe(e,a,u,i))}switch(t){case"input":te(e),ve(e,n);break;case"textarea":te(e),Ut(e,n);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,t=n.value,null!=t?Rt(e,!!n.multiple,t,!1):null!=n.defaultValue&&Rt(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=hn)}}function Xt(e,t,n,r,i){var o=null;switch(t){case"input":n=de(e,n),r=de(e,r),o=[];break;case"option":n=Dt(e,n),r=Dt(e,r),o=[];break;case"select":n=dn({},n,{value:void 0}),r=dn({},r,{value:void 0}),o=[];break;case"textarea":n=Lt(e,n),r=Lt(e,r),o=[];break;default:"function"!==typeof n.onClick&&"function"===typeof r.onClick&&(e.onclick=hn)}Wt(t,r,zi),t=e=void 0;var a=null;for(e in n)if(!r.hasOwnProperty(e)&&n.hasOwnProperty(e)&&null!=n[e])if("style"===e){var s=n[e];for(t in s)s.hasOwnProperty(t)&&(a||(a={}),a[t]="")}else"dangerouslySetInnerHTML"!==e&&"children"!==e&&"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&"autoFocus"!==e&&(Tn.hasOwnProperty(e)?o||(o=[]):(o=o||[]).push(e,null));for(e in r){var u=r[e];if(s=null!=n?n[e]:void 0,r.hasOwnProperty(e)&&u!==s&&(null!=u||null!=s))if("style"===e)if(s){for(t in s)!s.hasOwnProperty(t)||u&&u.hasOwnProperty(t)||(a||(a={}),a[t]="");for(t in u)u.hasOwnProperty(t)&&s[t]!==u[t]&&(a||(a={}),a[t]=u[t])}else a||(o||(o=[]),o.push(e,a)),a=u;else"dangerouslySetInnerHTML"===e?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(o=o||[]).push(e,""+u)):"children"===e?s===u||"string"!==typeof u&&"number"!==typeof u||(o=o||[]).push(e,""+u):"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&(Tn.hasOwnProperty(e)?(null!=u&&Kt(i,e),o||s===u||(o=[])):(o=o||[]).push(e,u))}return a&&(o=o||[]).push("style",a),o}function $t(e,t,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&pe(e,i),Ht(n,r),r=Ht(n,i);for(var o=0;o<t.length;o+=2){var a=t[o],s=t[o+1];"style"===a?zt(e,s,zi):"dangerouslySetInnerHTML"===a?Ui(e,s):"children"===a?Vt(e,s):fe(e,a,s,r)}switch(n){case"input":me(e,i);break;case"textarea":Ft(e,i);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,n=i.value,null!=n?Rt(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?Rt(e,!!i.multiple,i.defaultValue,!0):Rt(e,!!i.multiple,i.multiple?[]:"",!1))}}function Jt(e,t,n,r,i){switch(t){case"iframe":case"object":qe("topLoad","load",e);break;case"video":case"audio":for(var o in ti)ti.hasOwnProperty(o)&&qe(o,ti[o],e);break;case"source":qe("topError","error",e);break;case"img":case"image":case"link":qe("topError","error",e),qe("topLoad","load",e);break;case"form":qe("topReset","reset",e),qe("topSubmit","submit",e);break;case"details":qe("topToggle","toggle",e);break;case"input":he(e,n),qe("topInvalid","invalid",e),Kt(i,"onChange");break;case"select":Mt(e,n),qe("topInvalid","invalid",e),Kt(i,"onChange");break;case"textarea":jt(e,n),qe("topInvalid","invalid",e),Kt(i,"onChange")}Wt(t,n,zi),r=null;for(var a in n)n.hasOwnProperty(a)&&(o=n[a],"children"===a?"string"===typeof o?e.textContent!==o&&(r=["children",o]):"number"===typeof o&&e.textContent!==""+o&&(r=["children",""+o]):Tn.hasOwnProperty(a)&&null!=o&&Kt(i,a));switch(t){case"input":te(e),ve(e,n);break;case"textarea":te(e),Ut(e,n);break;case"select":case"option":break;default:"function"===typeof n.onClick&&(e.onclick=hn)}return r}function Zt(e,t){return e.nodeValue!==t}function en(e){this._expirationTime=Gi.computeUniqueAsyncExpiration(),this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function tn(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function nn(e,t,n){this._internalRoot=Gi.createContainer(e,t,n)}function rn(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function on(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function an(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new nn(e,!1,t)}function sn(e,t,n,i,o){rn(n)||r("200");var a=n._reactRootContainer;if(a){if("function"===typeof o){var s=o;o=function(){var e=Gi.getPublicRootInstance(a._internalRoot);s.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)}else{if(a=n._reactRootContainer=an(n,i),"function"===typeof o){var u=o;o=function(){var e=Gi.getPublicRootInstance(a._internalRoot);u.call(e)}}Gi.unbatchedUpdates(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)})}return Gi.getPublicRootInstance(a._internalRoot)}function un(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return rn(t)||r("200"),It(e,t,null,n)}var ln=n(83),cn=n(1),fn=n(229),dn=n(63),hn=n(84),pn=n(230),mn=n(127),vn=n(231),yn=n(126);cn||r("227");var gn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(e,t,n,r,o,a,s,u,l){i.apply(gn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,i,o,a,s,u){if(gn.invokeGuardedCallback.apply(this,arguments),gn.hasCaughtError()){var l=gn.clearCaughtError();gn._hasRethrowError||(gn._hasRethrowError=!0,gn._rethrowError=l)}},rethrowCaughtError:function(){return o.apply(gn,arguments)},hasCaughtError:function(){return gn._hasCaughtError},clearCaughtError:function(){if(gn._hasCaughtError){var e=gn._caughtError;return gn._caughtError=null,gn._hasCaughtError=!1,e}r("198")}},bn=null,wn={},_n=[],En={},Tn={},xn={},Sn=Object.freeze({plugins:_n,eventNameDispatchConfigs:En,registrationNameModules:Tn,registrationNameDependencies:xn,possibleRegistrationNames:null,injectEventPluginOrder:u,injectEventPluginsByName:l}),kn=null,Cn=null,On=null,Nn=null,Pn={injectEventPluginOrder:u,injectEventPluginsByName:l},In=Object.freeze({injection:Pn,getListener:v,runEventsInBatch:y,runExtractedEventsInBatch:g}),An=Math.random().toString(36).slice(2),Dn="__reactInternalInstance$"+An,Rn="__reactEventHandlers$"+An,Mn=Object.freeze({precacheFiberNode:function(e,t){t[Dn]=e},getClosestInstanceFromNode:b,getInstanceFromNode:function(e){return e=e[Dn],!e||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:w,getFiberCurrentPropsFromNode:_,updateFiberProps:function(e,t){e[Rn]=t}}),Ln=Object.freeze({accumulateTwoPhaseDispatches:N,accumulateTwoPhaseDispatchesSkipTarget:function(e){d(e,k)},accumulateEnterLeaveDispatches:P,accumulateDirectDispatches:function(e){d(e,O)}}),jn=null,Fn={_root:null,_startText:null,_fallbackText:null},Un="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),Bn={type:null,target:null,currentTarget:hn.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};dn(R.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=hn.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=hn.thatReturnsTrue)},persist:function(){this.isPersistent=hn.thatReturnsTrue},isPersistent:hn.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<Un.length;t++)this[Un[t]]=null}}),R.Interface=Bn,R.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return dn(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=dn({},r.Interface,e),n.extend=r.extend,j(n),n},j(R);var qn=R.extend({data:null}),Vn=R.extend({data:null}),zn=[9,13,27,32],Wn=fn.canUseDOM&&"CompositionEvent"in window,Hn=null;fn.canUseDOM&&"documentMode"in document&&(Hn=document.documentMode);var Kn=fn.canUseDOM&&"TextEvent"in window&&!Hn,Gn=fn.canUseDOM&&(!Wn||Hn&&8<Hn&&11>=Hn),Qn=String.fromCharCode(32),Yn={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Xn=!1,$n=!1,Jn={eventTypes:Yn,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(Wn)e:{switch(e){case"topCompositionStart":i=Yn.compositionStart;break e;case"topCompositionEnd":i=Yn.compositionEnd;break e;case"topCompositionUpdate":i=Yn.compositionUpdate;break e}i=void 0}else $n?F(e,n)&&(i=Yn.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(i=Yn.compositionStart);return i?(Gn&&($n||i!==Yn.compositionStart?i===Yn.compositionEnd&&$n&&(o=A()):(Fn._root=r,Fn._startText=D(),$n=!0)),i=qn.getPooled(i,t,n,r),o?i.data=o:null!==(o=U(n))&&(i.data=o),N(i),o=i):o=null,(e=Kn?B(e,n):q(e,n))?(t=Vn.getPooled(Yn.beforeInput,t,n,r),t.data=e,N(t)):t=null,null===o?t:null===t?o:[o,t]}},Zn=null,er={injectFiberControlledHostComponent:function(e){Zn=e}},tr=null,nr=null,rr=Object.freeze({injection:er,enqueueStateRestore:z,needsStateRestore:W,restoreStateIfNeeded:H}),ir=!1,or={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},ar=cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sr="function"===typeof Symbol&&Symbol.for,ur=sr?Symbol.for("react.element"):60103,lr=sr?Symbol.for("react.call"):60104,cr=sr?Symbol.for("react.return"):60105,fr=sr?Symbol.for("react.portal"):60106,dr=sr?Symbol.for("react.fragment"):60107,hr=sr?Symbol.for("react.strict_mode"):60108,pr=sr?Symbol.for("react.provider"):60109,mr=sr?Symbol.for("react.context"):60110,vr=sr?Symbol.for("react.async_mode"):60111,yr=sr?Symbol.for("react.forward_ref"):60112,gr="function"===typeof Symbol&&Symbol.iterator,br=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,wr={},_r={},Er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Er[e]=new le(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Er[t]=new le(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Er[e]=new le(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){Er[e]=new le(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Er[e]=new le(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){Er[e]=new le(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){Er[e]=new le(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){Er[e]=new le(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){Er[e]=new le(e,5,!1,e.toLowerCase(),null)});var Tr=/[\-:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Tr,ce);Er[t]=new le(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Tr,ce);Er[t]=new le(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Tr,ce);Er[t]=new le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),Er.tabIndex=new le("tabIndex",1,!1,"tabindex",null);var xr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Sr=null,kr=null,Cr=!1;fn.canUseDOM&&(Cr=J("input")&&(!document.documentMode||9<document.documentMode));var Or={eventTypes:xr,_isInputEventSupported:Cr,extractEvents:function(e,t,n,r){var i=t?w(t):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=Ee:X(i)?Cr?o=Oe:(o=ke,a=Se):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Ce),o&&(o=o(e,t)))return be(o,n,r);a&&a(e,i,t),"topBlur"===e&&null!=t&&(e=t._wrapperState||i._wrapperState)&&e.controlled&&"number"===i.type&&ye(i,"number",i.value)}},Nr=R.extend({view:null,detail:null}),Pr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ir=Nr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Pe,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}}),Ar={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Dr={eventTypes:Ar,extractEvents:function(e,t,n,r){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement)||"topMouseOut"!==e&&"topMouseOver"!==e)return null;var i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window;if("topMouseOut"===e?(e=t,t=(t=n.relatedTarget||n.toElement)?b(t):null):e=null,e===t)return null;var o=null==e?i:w(e);i=null==t?i:w(t);var a=Ir.getPooled(Ar.mouseLeave,e,n,r);return a.type="mouseleave",a.target=o,a.relatedTarget=i,n=Ir.getPooled(Ar.mouseEnter,t,n,r),n.type="mouseenter",n.target=i,n.relatedTarget=o,P(a,n,e,t),[a,n]}},Rr=R.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Mr=R.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lr=Nr.extend({relatedTarget:null}),jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ur=Nr.extend({key:function(e){if(e.key){var t=jr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=je(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?Fr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Pe,charCode:function(e){return"keypress"===e.type?je(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?je(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Br=Ir.extend({dataTransfer:null}),qr=Nr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Pe}),Vr=R.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),zr=Ir.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),Wr={},Hr={};"blur cancel click close contextMenu copy cut doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play rateChange reset seeked submit touchCancel touchEnd touchStart volumeChange".split(" ").forEach(function(e){Fe(e,!0)}),"abort animationEnd animationIteration animationStart canPlay canPlayThrough drag dragEnter dragExit dragLeave dragOver durationChange emptied encrypted ended error load loadedData loadedMetadata loadStart mouseMove mouseOut mouseOver playing progress scroll seeking stalled suspend timeUpdate toggle touchMove transitionEnd waiting wheel".split(" ").forEach(function(e){Fe(e,!1)});var Kr={eventTypes:Wr,isInteractiveTopLevelEventType:function(e){return void 0!==(e=Hr[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=Hr[e];if(!i)return null;switch(e){case"topKeyPress":if(0===je(n))return null;case"topKeyDown":case"topKeyUp":e=Ur;break;case"topBlur":case"topFocus":e=Lr;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":e=Ir;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":e=Br;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":e=qr;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":e=Rr;break;case"topTransitionEnd":e=Vr;break;case"topScroll":e=Nr;break;case"topWheel":e=zr;break;case"topCopy":case"topCut":case"topPaste":e=Mr;break;default:e=R}return t=e.getPooled(i,t,n,r),N(t),t}},Gr=Kr.isInteractiveTopLevelEventType,Qr=[],Yr=!0,Xr=Object.freeze({get _enabled(){return Yr},setEnabled:Be,isEnabled:function(){return Yr},trapBubbledEvent:qe,trapCapturedEvent:Ve,dispatchEvent:We}),$r={animationend:He("Animation","AnimationEnd"),animationiteration:He("Animation","AnimationIteration"),animationstart:He("Animation","AnimationStart"),transitionend:He("Transition","TransitionEnd")},Jr={},Zr={};fn.canUseDOM&&(Zr=document.createElement("div").style,"AnimationEvent"in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),"TransitionEvent"in window||delete $r.transitionend.transition);var ei={topAnimationEnd:Ke("animationend"),topAnimationIteration:Ke("animationiteration"),topAnimationStart:Ke("animationstart"),topBlur:"blur",topCancel:"cancel",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoad:"load",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:Ke("transitionend"),topWheel:"wheel"},ti={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"},ni={},ri=0,ii="_reactListenersID"+(""+Math.random()).slice(2),oi=fn.canUseDOM&&"documentMode"in document&&11>=document.documentMode,ai={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},si=null,ui=null,li=null,ci=!1,fi={eventTypes:ai,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=Ge(o),i=xn.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?w(t):window,e){case"topFocus":(X(o)||"true"===o.contentEditable)&&(si=o,ui=t,li=null);break;case"topBlur":li=ui=si=null;break;case"topMouseDown":ci=!0;break;case"topContextMenu":case"topMouseUp":return ci=!1,$e(n,r);case"topSelectionChange":if(oi)break;case"topKeyDown":case"topKeyUp":return $e(n,r)}return null}};Pn.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),kn=Mn.getFiberCurrentPropsFromNode,Cn=Mn.getInstanceFromNode,On=Mn.getNodeFromInstance,Pn.injectEventPluginsByName({SimpleEventPlugin:Kr,EnterLeaveEventPlugin:Dr,ChangeEventPlugin:Or,SelectEventPlugin:fi,BeforeInputEventPlugin:Jn});var di=null,hi=null;new Set;var pi=void 0,mi=void 0,vi=Array.isArray,yi=gt(!0),gi=gt(!1),bi={},wi=Object.freeze({default:Pt}),_i=wi&&Pt||wi,Ei=_i.default?_i.default:_i,Ti="object"===typeof performance&&"function"===typeof performance.now,xi=void 0;xi=Ti?function(){return performance.now()}:function(){return Date.now()};var Si=void 0,ki=void 0;if(fn.canUseDOM)if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){var Ci=null,Oi=!1,Ni=-1,Pi=!1,Ii=0,Ai=33,Di=33,Ri=void 0;Ri=Ti?{didTimeout:!1,timeRemaining:function(){var e=Ii-performance.now();return 0<e?e:0}}:{didTimeout:!1,timeRemaining:function(){var e=Ii-Date.now();return 0<e?e:0}};var Mi="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===Mi){if(Oi=!1,e=xi(),0>=Ii-e){if(!(-1!==Ni&&Ni<=e))return void(Pi||(Pi=!0,requestAnimationFrame(Li)));Ri.didTimeout=!0}else Ri.didTimeout=!1;Ni=-1,e=Ci,Ci=null,null!==e&&e(Ri)}},!1);var Li=function(e){Pi=!1;var t=e-Ii+Di;t<Di&&Ai<Di?(8>t&&(t=8),Di=t<Ai?Ai:t):Ai=t,Ii=e+Di,Oi||(Oi=!0,window.postMessage(Mi,"*"))};Si=function(e,t){return Ci=e,null!=t&&"number"===typeof t.timeout&&(Ni=xi()+t.timeout),Pi||(Pi=!0,requestAnimationFrame(Li)),0},ki=function(){Ci=null,Oi=!1,Ni=-1}}else Si=window.requestIdleCallback,ki=window.cancelIdleCallback;else Si=function(e){return setTimeout(function(){e({timeRemaining:function(){return 1/0},didTimeout:!1})})},ki=function(e){clearTimeout(e)};var ji={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Fi=void 0,Ui=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==ji.svg||"innerHTML"in e)e.innerHTML=t;else{for(Fi=Fi||document.createElement("div"),Fi.innerHTML="<svg>"+t+"</svg>",t=Fi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Bi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qi=["Webkit","ms","Moz","O"];Object.keys(Bi).forEach(function(e){qi.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bi[t]=Bi[e]})});var Vi=dn({menuitem:!0},{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}),zi=hn.thatReturns(""),Wi=Object.freeze({createElement:Gt,createTextNode:Qt,setInitialProperties:Yt,diffProperties:Xt,updateProperties:$t,diffHydratedProperties:Jt,diffHydratedText:Zt,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(me(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=_(i);o||r("90"),ne(i),me(i,o)}}}break;case"textarea":Ft(e,n);break;case"select":null!=(t=n.value)&&Rt(e,!!n.multiple,t,!1)}}});er.injectFiberControlledHostComponent(Wi);var Hi=null,Ki=null;en.prototype.render=function(e){this._defer||r("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,i=new tn;return Gi.updateContainerAtExpirationTime(e,t,null,n,i._onCommit),i},en.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},en.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||r("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var i=null,o=t;o!==this;)i=o,o=o._next;null===i&&r("251"),i._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Gi.flushRoot(e,n),t=this._next,this._next=null,t=e.firstBatch=t,null!==t&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},en.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},tn.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},tn.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!==typeof n&&r("191",n),n()}}},nn.prototype.render=function(e,t){var n=this._internalRoot,r=new tn;return t=void 0===t?null:t,null!==t&&r.then(t),Gi.updateContainer(e,n,null,r._onCommit),r},nn.prototype.unmount=function(e){var t=this._internalRoot,n=new tn;return e=void 0===e?null:e,null!==e&&n.then(e),Gi.updateContainer(null,t,null,n._onCommit),n},nn.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new tn;return n=void 0===n?null:n,null!==n&&i.then(n),Gi.updateContainer(t,r,e,i._onCommit),i},nn.prototype.createBatch=function(){var e=new en(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime<=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e};var Gi=Ei({getRootHostContext:function(e){var t=e.nodeType;switch(t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:qt(null,"");break;default:t=8===t?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=qt(e,t)}return e},getChildHostContext:function(e,t){return qt(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){Hi=Yr;var e=pn();if(Xe(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=window.getSelection&&window.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch(e){t=null;break e}var o=0,a=-1,s=-1,u=0,l=0,c=e,f=null;t:for(;;){for(var d;c!==t||0!==r&&3!==c.nodeType||(a=o+r),c!==i||0!==n&&3!==c.nodeType||(s=o+n),3===c.nodeType&&(o+=c.nodeValue.length),null!==(d=c.firstChild);)f=c,c=d;for(;;){if(c===e)break t;if(f===t&&++u===r&&(a=o),f===i&&++l===n&&(s=o),null!==(d=c.nextSibling))break;c=f,f=c.parentNode}c=d}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;Ki={focusedElem:e,selectionRange:t},Be(!1)},resetAfterCommit:function(){var e=Ki,t=pn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&vn(document.documentElement,n)){if(Xe(n))if(t=r.start,e=r.end,void 0===e&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(window.getSelection){t=window.getSelection();var i=n[I()].length;e=Math.min(r.start,i),r=void 0===r.end?e:Math.min(r.end,i),!t.extend&&e>r&&(i=r,r=e,e=i),i=Ye(n,e);var o=Ye(n,r);if(i&&o&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)){var a=document.createRange();a.setStart(i.node,i.offset),t.removeAllRanges(),e>r?(t.addRange(a),t.extend(o.node,o.offset)):(a.setEnd(o.node,o.offset),t.addRange(a))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}Ki=null,Be(Hi),Hi=null},createInstance:function(e,t,n,r,i){return e=Gt(e,t,n,r),e[Dn]=i,e[Rn]=t,e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){return Yt(e,t,n,r),on(t,n)},prepareUpdate:function(e,t,n,r,i){return Xt(e,t,n,r,i)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"===typeof t.dangerouslySetInnerHTML.__html},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=Qt(e,t),e[Dn]=r,e},now:xi,mutation:{commitMount:function(e,t,n){on(t,n)&&e.focus()},commitUpdate:function(e,t,n,r,i){e[Rn]=i,$t(e,t,n,r,i)},resetTextContent:function(e){Vt(e,"")},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){8===e.nodeType?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)}},hydration:{canHydrateInstance:function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e},canHydrateTextInstance:function(e,t){return""===t||3!==e.nodeType?null:e},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,i,o){return e[Dn]=o,e[Rn]=n,Jt(e,t,n,i,r)},hydrateTextInstance:function(e,t,n){return e[Dn]=n,Zt(e,t)},didNotMatchHydratedContainerTextInstance:function(){},didNotMatchHydratedTextInstance:function(){},didNotHydrateContainerInstance:function(){},didNotHydrateInstance:function(){},didNotFindHydratableContainerInstance:function(){},didNotFindHydratableContainerTextInstance:function(){},didNotFindHydratableInstance:function(){},didNotFindHydratableTextInstance:function(){}},scheduleDeferredCallback:Si,cancelDeferredCallback:ki}),Qi=Gi;K=Qi.batchedUpdates,G=Qi.interactiveUpdates,Q=Qi.flushInteractiveUpdates;var Yi={createPortal:un,findDOMNode:function(e){return null==e?null:1===e.nodeType?e:Gi.findHostInstance(e)},hydrate:function(e,t,n){return sn(null,e,t,!0,n)},render:function(e,t,n){return sn(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,i){return(null==e||void 0===e._reactInternalFiber)&&r("38"),sn(e,t,n,!1,i)},unmountComponentAtNode:function(e){return rn(e)||r("40"),!!e._reactRootContainer&&(Gi.unbatchedUpdates(function(){sn(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return un.apply(void 0,arguments)},unstable_batchedUpdates:Gi.batchedUpdates,unstable_deferredUpdates:Gi.deferredUpdates,flushSync:Gi.flushSync,unstable_flushControlled:Gi.flushControlled,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:In,EventPluginRegistry:Sn,EventPropagators:Ln,ReactControlledComponent:rr,ReactDOMComponentTree:Mn,ReactDOMEventListener:Xr},unstable_createRoot:function(e,t){return new nn(e,!0,null!=t&&!0===t.hydrate)}};Gi.injectIntoDevTools({findFiberByHostInstance:b,bundleType:0,version:"16.3.2",rendererPackageName:"react-dom"});var Xi=Object.freeze({default:Yi}),$i=Xi&&Yi||Xi;e.exports=$i.default?$i.default:$i},function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},function(e,t,n){"use strict";function r(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!i(e)&&(i(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var i=n(232);e.exports=r},function(e,t,n){"use strict";function r(e){return i(e)&&3==e.nodeType}var i=n(233);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";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){function r(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){for(;3===e._state;)e=e._value;if(0===e._state)return void e._deferreds.push(t);e._handled=!0,o._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._state?s:u)(t.promise,e._value);var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}s(t.promise,r)})}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void f(i(n,t),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e(function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,u(t,e))})}catch(e){if(n)return;n=!0,u(t,e)}}function d(e,t){return t={exports:{}},e(t,t.exports),t.exports}var h=n(237),p=(n.n(h),setTimeout);o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new c(e,t,n)),n},o.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})},o.all=function(e){return new o(function(t,n){function r(e,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,function(t){r(e,t)},n)}i[e]=a,0===--o&&t(i)}catch(e){n(e)}}if(!e||"undefined"===typeof e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var o=i.length,a=0;a<i.length;a++)r(a,i[a])})},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o(function(t){t(e)})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)})},o._immediateFn="function"===typeof e&&function(t){e(t)}||function(e){p(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var m=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof t)return t;throw new Error("unable to locate global object")}();m.Promise||(m.Promise=o);var v=d(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),y=d(function(e){var t=e.exports={version:"2.5.5"};"number"==typeof __e&&(__e=t)}),g=(y.version,function(e){return"object"===typeof e?null!==e:"function"===typeof e}),b=function(e){if(!g(e))throw TypeError(e+" is not an object!");return e},w=function(e){try{return!!e()}catch(e){return!0}},_=!w(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),E=v.document,T=g(E)&&g(E.createElement),x=function(e){return T?E.createElement(e):{}},S=!_&&!w(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),k=function(e,t){if(!g(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!g(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!g(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!g(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},C=Object.defineProperty,O=_?Object.defineProperty:function(e,t,n){if(b(e),t=k(t,!0),b(n),S)try{return C(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e},N={f:O},P=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},I=_?function(e,t,n){return N.f(e,t,P(1,n))}:function(e,t,n){return e[t]=n,e},A={}.hasOwnProperty,D=function(e,t){return A.call(e,t)},R=0,M=Math.random(),L=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++R+M).toString(36))},j=d(function(e){var t=L("src"),n=Function.toString,r=(""+n).split("toString");y.inspectSource=function(e){return n.call(e)},(e.exports=function(e,n,i,o){var a="function"==typeof i;a&&(D(i,"name")||I(i,"name",n)),e[n]!==i&&(a&&(D(i,t)||I(i,t,e[n]?""+e[n]:r.join(String(n)))),e===v?e[n]=i:o?e[n]?e[n]=i:I(e,n,i):(delete e[n],I(e,n,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[t]||n.call(this)})}),F=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},U=function(e,t,n){if(F(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},B=function(e,t,n){var r,i,o,a,s=e&B.F,u=e&B.G,l=e&B.S,c=e&B.P,f=e&B.B,d=u?v:l?v[t]||(v[t]={}):(v[t]||{}).prototype,h=u?y:y[t]||(y[t]={}),p=h.prototype||(h.prototype={});u&&(n=t);for(r in n)i=!s&&d&&void 0!==d[r],o=(i?d:n)[r],a=f&&i?U(o,v):c&&"function"==typeof o?U(Function.call,o):o,d&&j(d,r,o,e&B.U),h[r]!=o&&I(h,r,a),c&&p[r]!=o&&(p[r]=o)};v.core=y,B.F=1,B.G=2,B.S=4,B.P=8,B.B=16,B.W=32,B.U=64,B.R=128;var q=B,V={}.toString,z=function(e){return V.call(e).slice(8,-1)},W=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==z(e)?e.split(""):Object(e)},H=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},K=function(e){return Object(H(e))},G=Math.ceil,Q=Math.floor,Y=function(e){return isNaN(e=+e)?0:(e>0?Q:G)(e)},X=Math.min,$=function(e){return e>0?X(Y(e),9007199254740991):0},J=Array.isArray||function(e){return"Array"==z(e)},Z=v["__core-js_shared__"]||(v["__core-js_shared__"]={}),ee=function(e){return Z[e]||(Z[e]={})},te=d(function(e){var t=ee("wks"),n=v.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:L)("Symbol."+e))}).store=t}),ne=te("species"),re=function(e){var t;return J(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!J(t.prototype)||(t=void 0),g(t)&&null===(t=t[ne])&&(t=void 0)),void 0===t?Array:t},ie=function(e,t){return new(re(e))(t)},oe=function(e,t){var n=1==e,r=2==e,i=3==e,o=4==e,a=6==e,s=5==e||a,u=t||ie;return function(t,l,c){for(var f,d,h=K(t),p=W(h),m=U(l,c,3),v=$(p.length),y=0,g=n?u(t,v):r?u(t,0):void 0;v>y;y++)if((s||y in p)&&(f=p[y],d=m(f,y,h),e))if(n)g[y]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:g.push(f)}else if(o)return!1;return a?-1:i||o?o:g}},ae=te("unscopables"),se=Array.prototype;void 0==se[ae]&&I(se,ae,{});var ue=function(e){se[ae][e]=!0},le=oe(5),ce=!0;"find"in[]&&Array(1).find(function(){ce=!1}),q(q.P+q.F*ce,"Array",{find:function(e){return le(this,e,arguments.length>1?arguments[1]:void 0)}}),ue("find");var fe=(y.Array.find,oe(6)),de=!0;"findIndex"in[]&&Array(1).findIndex(function(){de=!1}),q(q.P+q.F*de,"Array",{findIndex:function(e){return fe(this,e,arguments.length>1?arguments[1]:void 0)}}),ue("findIndex");var he=(y.Array.findIndex,function(e){return W(H(e))}),pe=Math.max,me=Math.min,ve=function(e,t){return e=Y(e),e<0?pe(e+t,0):me(e,t)},ye=ee("keys"),ge=function(e){return ye[e]||(ye[e]=L(e))},be=function(e){return function(t,n,r){var i,o=he(t),a=$(o.length),s=ve(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}}(!1),we=ge("IE_PROTO"),_e=function(e,t){var n,r=he(e),i=0,o=[];for(n in r)n!=we&&D(r,n)&&o.push(n);for(;t.length>i;)D(r,n=t[i++])&&(~be(o,n)||o.push(n));return o},Ee="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Te=Object.keys||function(e){return _e(e,Ee)},xe=Object.getOwnPropertySymbols,Se={f:xe},ke={}.propertyIsEnumerable,Ce={f:ke},Oe=Object.assign,Ne=!Oe||w(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=Oe({},e)[n]||Object.keys(Oe({},t)).join("")!=r})?function(e,t){for(var n=K(e),r=arguments.length,i=1,o=Se.f,a=Ce.f;r>i;)for(var s,u=W(arguments[i++]),l=o?Te(u).concat(o(u)):Te(u),c=l.length,f=0;c>f;)a.call(u,s=l[f++])&&(n[s]=u[s]);return n}:Oe;q(q.S+q.F,"Object",{assign:Ne});var Pe=(y.Object.assign,te("match")),Ie=function(e){var t;return g(e)&&(void 0!==(t=e[Pe])?!!t:"RegExp"==z(e))},Ae=function(e,t,n){if(Ie(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(H(e))},De=te("match"),Re="".startsWith;q(q.P+q.F*function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[De]=!1,!"/./"[e](t)}catch(e){}}return!0}("startsWith"),"String",{startsWith:function(e){var t=Ae(this,e,"startsWith"),n=$(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return Re?Re.call(t,r,n):t.slice(n,n+r.length)===r}});var Me=(y.String.startsWith,function(e){var t=String(H(this)),n="",r=Y(e);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n});q(q.P,"String",{repeat:Me});var Le=(y.String.repeat,d(function(e){var t=L("meta"),n=N.f,r=0,i=Object.isExtensible||function(){return!0},o=!w(function(){return i(Object.preventExtensions({}))}),a=function(e){n(e,t,{value:{i:"O"+ ++r,w:{}}})},s=function(e,n){if(!g(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!D(e,t)){if(!i(e))return"F";if(!n)return"E";a(e)}return e[t].i},u=function(e,n){if(!D(e,t)){if(!i(e))return!0;if(!n)return!1;a(e)}return e[t].w},l=function(e){return o&&c.NEED&&i(e)&&!D(e,t)&&a(e),e},c=e.exports={KEY:t,NEED:!1,fastKey:s,getWeak:u,onFreeze:l}})),je=(Le.KEY,Le.NEED,Le.fastKey,Le.getWeak,Le.onFreeze,N.f),Fe=te("toStringTag"),Ue=function(e,t,n){e&&!D(e=n?e:e.prototype,Fe)&&je(e,Fe,{configurable:!0,value:t})},Be=te,qe={f:Be},Ve=N.f,ze=function(e){var t=y.Symbol||(y.Symbol=v.Symbol||{});"_"==e.charAt(0)||e in t||Ve(t,e,{value:qe.f(e)})},We=function(e){var t=Te(e),n=Se.f;if(n)for(var r,i=n(e),o=Ce.f,a=0;i.length>a;)o.call(e,r=i[a++])&&t.push(r);return t},He=_?Object.defineProperties:function(e,t){b(e);for(var n,r=Te(t),i=r.length,o=0;i>o;)N.f(e,n=r[o++],t[n]);return e},Ke=v.document,Ge=Ke&&Ke.documentElement,Qe=ge("IE_PROTO"),Ye=function(){},Xe=function(){var e,t=x("iframe"),n=Ee.length;for(t.style.display="none",Ge.appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),Xe=e.F;n--;)delete Xe.prototype[Ee[n]];return Xe()},$e=Object.create||function(e,t){var n;return null!==e?(Ye.prototype=b(e),n=new Ye,Ye.prototype=null,n[Qe]=e):n=Xe(),void 0===t?n:He(n,t)},Je=Ee.concat("length","prototype"),Ze=Object.getOwnPropertyNames||function(e){return _e(e,Je)},et={f:Ze},tt=et.f,nt={}.toString,rt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],it=function(e){try{return tt(e)}catch(e){return rt.slice()}},ot=function(e){return rt&&"[object Window]"==nt.call(e)?it(e):tt(he(e))},at={f:ot},st=Object.getOwnPropertyDescriptor,ut=_?st:function(e,t){if(e=he(e),t=k(t,!0),S)try{return st(e,t)}catch(e){}if(D(e,t))return P(!Ce.f.call(e,t),e[t])},lt={f:ut},ct=Le.KEY,ft=lt.f,dt=N.f,ht=at.f,pt=v.Symbol,mt=v.JSON,vt=mt&&mt.stringify,yt=te("_hidden"),gt=te("toPrimitive"),bt={}.propertyIsEnumerable,wt=ee("symbol-registry"),_t=ee("symbols"),Et=ee("op-symbols"),Tt=Object.prototype,xt="function"==typeof pt,St=v.QObject,kt=!St||!St.prototype||!St.prototype.findChild,Ct=_&&w(function(){return 7!=$e(dt({},"a",{get:function(){return dt(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=ft(Tt,t);r&&delete Tt[t],dt(e,t,n),r&&e!==Tt&&dt(Tt,t,r)}:dt,Ot=function(e){var t=_t[e]=$e(pt.prototype);return t._k=e,t},Nt=xt&&"symbol"==typeof pt.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof pt},Pt=function(e,t,n){return e===Tt&&Pt(Et,t,n),b(e),t=k(t,!0),b(n),D(_t,t)?(n.enumerable?(D(e,yt)&&e[yt][t]&&(e[yt][t]=!1),n=$e(n,{enumerable:P(0,!1)})):(D(e,yt)||dt(e,yt,P(1,{})),e[yt][t]=!0),Ct(e,t,n)):dt(e,t,n)},It=function(e,t){b(e);for(var n,r=We(t=he(t)),i=0,o=r.length;o>i;)Pt(e,n=r[i++],t[n]);return e},At=function(e,t){return void 0===t?$e(e):It($e(e),t)},Dt=function(e){var t=bt.call(this,e=k(e,!0));return!(this===Tt&&D(_t,e)&&!D(Et,e))&&(!(t||!D(this,e)||!D(_t,e)||D(this,yt)&&this[yt][e])||t)},Rt=function(e,t){if(e=he(e),t=k(t,!0),e!==Tt||!D(_t,t)||D(Et,t)){var n=ft(e,t);return!n||!D(_t,t)||D(e,yt)&&e[yt][t]||(n.enumerable=!0),n}},Mt=function(e){for(var t,n=ht(he(e)),r=[],i=0;n.length>i;)D(_t,t=n[i++])||t==yt||t==ct||r.push(t);return r},Lt=function(e){for(var t,n=e===Tt,r=ht(n?Et:he(e)),i=[],o=0;r.length>o;)!D(_t,t=r[o++])||n&&!D(Tt,t)||i.push(_t[t]);return i};xt||(pt=function(){if(this instanceof pt)throw TypeError("Symbol is not a constructor!");var e=L(arguments.length>0?arguments[0]:void 0),t=function(n){this===Tt&&t.call(Et,n),D(this,yt)&&D(this[yt],e)&&(this[yt][e]=!1),Ct(this,e,P(1,n))};return _&&kt&&Ct(Tt,e,{configurable:!0,set:t}),Ot(e)},j(pt.prototype,"toString",function(){return this._k}),lt.f=Rt,N.f=Pt,et.f=at.f=Mt,Ce.f=Dt,Se.f=Lt,_&&j(Tt,"propertyIsEnumerable",Dt,!0),qe.f=function(e){return Ot(te(e))}),q(q.G+q.W+q.F*!xt,{Symbol:pt});for(var jt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ft=0;jt.length>Ft;)te(jt[Ft++]);for(var Ut=Te(te.store),Bt=0;Ut.length>Bt;)ze(Ut[Bt++]);q(q.S+q.F*!xt,"Symbol",{for:function(e){return D(wt,e+="")?wt[e]:wt[e]=pt(e)},keyFor:function(e){if(!Nt(e))throw TypeError(e+" is not a symbol!");for(var t in wt)if(wt[t]===e)return t},useSetter:function(){kt=!0},useSimple:function(){kt=!1}}),q(q.S+q.F*!xt,"Object",{create:At,defineProperty:Pt,defineProperties:It,getOwnPropertyDescriptor:Rt,getOwnPropertyNames:Mt,getOwnPropertySymbols:Lt}),mt&&q(q.S+q.F*(!xt||w(function(){var e=pt();return"[null]"!=vt([e])||"{}"!=vt({a:e})||"{}"!=vt(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(g(t)||void 0!==e)&&!Nt(e))return J(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Nt(t))return t}),r[1]=t,vt.apply(mt,r)}}),pt.prototype[gt]||I(pt.prototype,gt,pt.prototype.valueOf),Ue(pt,"Symbol"),Ue(Math,"Math",!0),Ue(v.JSON,"JSON",!0);var qt=te("toStringTag"),Vt="Arguments"==z(function(){return arguments}()),zt=function(e,t){try{return e[t]}catch(e){}},Wt=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=zt(t=Object(e),qt))?n:Vt?z(t):"Object"==(r=z(t))&&"function"==typeof t.callee?"Arguments":r},Ht={};Ht[te("toStringTag")]="z",Ht+""!="[object z]"&&j(Object.prototype,"toString",function(){return"[object "+Wt(this)+"]"},!0),ze("asyncIterator"),ze("observable");var Kt=(y.Symbol,{}),Gt={};I(Gt,te("iterator"),function(){return this});var Qt=function(e,t,n){e.prototype=$e(Gt,{next:P(1,n)}),Ue(e,t+" Iterator")},Yt=ge("IE_PROTO"),Xt=Object.prototype,$t=Object.getPrototypeOf||function(e){return e=K(e),D(e,Yt)?e[Yt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Xt:null},Jt=te("iterator"),Zt=!([].keys&&"next"in[].keys()),en=function(){return this},tn=function(e,t,n,r,i,o,a){Qt(n,t,r);var s,u,l,c=function(e){if(!Zt&&e in p)return p[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},f=t+" Iterator",d="values"==i,h=!1,p=e.prototype,m=p[Jt]||p["@@iterator"]||i&&p[i],v=m||c(i),y=i?d?c("entries"):v:void 0,g="Array"==t?p.entries||m:m;if(g&&(l=$t(g.call(new e)))!==Object.prototype&&l.next&&(Ue(l,f,!0),"function"!=typeof l[Jt]&&I(l,Jt,en)),d&&m&&"values"!==m.name&&(h=!0,v=function(){return m.call(this)}),(Zt||h||!p[Jt])&&I(p,Jt,v),Kt[t]=v,Kt[f]=en,i)if(s={values:d?v:c("values"),keys:o?v:c("keys"),entries:y},a)for(u in s)u in p||j(p,u,s[u]);else q(q.P+q.F*(Zt||h),t,s);return s},nn=function(e){return function(t,n){var r,i,o=String(H(t)),a=Y(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a),r<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536)}}(!0);tn(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=nn(t,n),this._i+=e.length,{value:e,done:!1})});var rn=function(e,t){return{value:t,done:!!e}},on=tn(Array,"Array",function(e,t){this._t=he(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,rn(1)):"keys"==t?rn(0,n):"values"==t?rn(0,e[n]):rn(0,[n,e[n]])},"values");Kt.Arguments=Kt.Array,ue("keys"),ue("values"),ue("entries");for(var an=te("iterator"),sn=te("toStringTag"),un=Kt.Array,ln={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},cn=Te(ln),fn=0;fn<cn.length;fn++){var dn,hn=cn[fn],pn=ln[hn],mn=v[hn],vn=mn&&mn.prototype;if(vn&&(vn[an]||I(vn,an,un),vn[sn]||I(vn,sn,hn),Kt[hn]=un,pn))for(dn in on)vn[dn]||j(vn,dn,on[dn],!0)}qe.f("iterator")}.call(t,n(235).setImmediate,n(20))},function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var i="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(236),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(20))},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return l[u]=r,s(u),u++}function i(e){delete l[e]}function o(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function a(e){if(c)setTimeout(a,0,e);else{var t=l[e];if(t){c=!0;try{o(t)}finally{i(e),c=!1}}}}if(!e.setImmediate){var s,u=1,l={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?function(){s=function(e){t.nextTick(function(){a(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),s=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){a(e.data)},s=function(t){e.port2.postMessage(t)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var e=f.documentElement;s=function(t){var n=f.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){s=function(e){setTimeout(a,0,e)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(t,n(20),n(64))},function(e,t){!function(e){"use strict";function t(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!==typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return y.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function o(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function a(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader,n=a(t);return t.readAsArrayBuffer(e),n}function u(e){var t=new FileReader,n=a(t);return t.readAsText(e),n}function l(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"===typeof e)this._bodyText=e;else if(y.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(y.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(y.arrayBuffer&&y.blob&&b(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!y.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!w(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y.blob&&(this.blob=function(){var e=o(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?o(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=o(this);if(e)return e;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(l(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(e){var t=e.toUpperCase();return _.indexOf(t)>-1?t:e}function h(e,t){t=t||{};var n=t.body;if(e instanceof h){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=d(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function p(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function m(e){var t=new i;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}function v(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var y={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(y.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},w=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1};i.prototype.append=function(e,r){e=t(e),r=n(r);var i=this.map[e];this.map[e]=i?i+","+r:r},i.prototype.delete=function(e){delete this.map[t(e)]},i.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},i.prototype.set=function(e,r){this.map[t(e)]=n(r)},i.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},y.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},f.call(h.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];v.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=i,e.Request=h,e.Response=v,e.fetch=function(e,t){return new Promise(function(n,r){var i=new h(e,t),o=new XMLHttpRequest;o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:m(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;n(new v(t,e))},o.onerror=function(){r(new TypeError("Network request failed"))},o.ontimeout=function(){r(new TypeError("Network request failed"))},o.open(i.method,i.url,!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&y.blob&&(o.responseType="blob"),i.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send("undefined"===typeof i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var t=n(35),r=n.n(t);(function(){function e(e){return"string"==typeof e}function t(e){return"boolean"==typeof e}function n(){}function i(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&"undefined"!=typeof e.splice&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof e.call&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&"undefined"==typeof e.call)return"object";return t}function o(e){return null===e}function a(e){return"array"==i(e)}function s(e){var t=i(e);return"array"==t||"object"==t&&"number"==typeof e.length}function u(e){return"function"==i(e)}function l(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function c(e,t,n){return e.call.apply(e.bind,arguments)}function f(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function d(e,t,n){return d=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?c:f,d.apply(null,arguments)}function h(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function p(e,t){function n(){}n.prototype=t.prototype,e.lb=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.cd=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function m(e){e.prototype.then=e.prototype.then,e.prototype.$goog_Thenable=!0}function v(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(e){return!1}}function y(e){if(Error.captureStackTrace)Error.captureStackTrace(this,y);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function g(e,t){e=e.split("%s");for(var n="",r=e.length-1,i=0;i<r;i++)n+=e[i]+(i<t.length?t[i]:"%s");y.call(this,n+e[r])}function b(e,t){throw new g("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function w(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function _(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function E(){this.b=this.a=null}function T(){var e=Qu,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function x(){this.next=this.b=this.a=null}function S(t,n){var r=t.length,i=e(t)?t.split(""):t;for(--r;0<=r;--r)r in i&&n.call(void 0,i[r],r,t)}function k(t){e:{for(var n=Hr,r=t.length,i=e(t)?t.split(""):t,o=0;o<r;o++)if(o in i&&n.call(void 0,i[o],o,t)){n=o;break e}n=-1}return 0>n?null:e(t)?t.charAt(n):t[n]}function C(e,t){return 0<=Pu(e,t)}function O(e,t){t=Pu(e,t);var n;return(n=0<=t)&&Array.prototype.splice.call(e,t,1),n}function N(e,t){var n=0;S(e,function(r,i){t.call(void 0,r,i,e)&&1==Array.prototype.splice.call(e,i,1).length&&n++})}function P(e){return Array.prototype.concat.apply([],arguments)}function I(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function A(e,t){for(var n=e.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function D(e){return qu.test(e)?(-1!=e.indexOf("&")&&(e=e.replace(Mu,"&")),-1!=e.indexOf("<")&&(e=e.replace(Lu,"<")),-1!=e.indexOf(">")&&(e=e.replace(ju,">")),-1!=e.indexOf('"')&&(e=e.replace(Fu,""")),-1!=e.indexOf("'")&&(e=e.replace(Uu,"'")),-1!=e.indexOf("\0")&&(e=e.replace(Bu,"&#0;")),e):e}function R(e,t){return-1!=e.indexOf(t)}function M(e,t){return e<t?-1:e>t?1:0}function L(e){return R(Nu,e)}function j(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function F(e){for(var t in e)return!1;return!0}function U(e){var t,n={};for(t in e)n[t]=e[t];return n}function B(e,t){for(var n,r,i=1;i<arguments.length;i++){r=arguments[i];for(n in r)e[n]=r[n];for(var o=0;o<Ku.length;o++)n=Ku[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function q(e){xu.setTimeout(function(){throw e},0)}function V(){var e=xu.MessageChannel;if("undefined"===typeof e&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!L("Presto")&&(e=function(){var e=document.createElement("IFRAME");e.style.display="none",e.src="",document.documentElement.appendChild(e);var t=e.contentWindow;e=t.document,e.open(),e.write(""),e.close();var n="callImmediate"+Math.random(),r="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=d(function(e){"*"!=r&&e.origin!=r||e.data!=n||this.port1.onmessage()},this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,r)}}}),"undefined"!==typeof e&&!L("Trident")&&!L("MSIE")){var t=new e,n={},r=n;return t.port1.onmessage=function(){if(void 0!==n.next){n=n.next;var e=n.tb;n.tb=null,e()}},function(e){r.next={tb:e},r=r.next,t.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var t=document.createElement("SCRIPT");t.onreadystatechange=function(){t.onreadystatechange=null,t.parentNode.removeChild(t),t=null,e(),e=null},document.documentElement.appendChild(t)}:function(e){xu.setTimeout(e,0)}}function z(e,t){Hu||W(),Gu||(Hu(),Gu=!0),Qu.add(e,t)}function W(){if(xu.Promise&&xu.Promise.resolve){var e=xu.Promise.resolve(void 0);Hu=function(){e.then(H)}}else Hu=function(){var e=H;!u(xu.setImmediate)||xu.Window&&xu.Window.prototype&&!L("Edge")&&xu.Window.prototype.setImmediate==xu.setImmediate?(Wu||(Wu=V()),Wu(e)):xu.setImmediate(e)}}function H(){for(var e;e=T();){try{e.a.call(e.b)}catch(e){q(e)}_(Ou,e)}Gu=!1}function K(e,t){if(this.a=Yu,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=n)try{var r=this;e.call(t,function(e){re(r,Xu,e)},function(e){if(!(e instanceof fe))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(e){}re(r,$u,e)})}catch(e){re(this,$u,e)}}function G(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}function Q(e,t,n){var r=Ju.get();return r.g=e,r.b=t,r.f=n,r}function Y(e){if(e instanceof K)return e;var t=new K(n);return re(t,Xu,e),t}function X(e){return new K(function(t,n){n(e)})}function $(e,t,n){ie(e,t,n,null)||z(h(t,e))}function J(e){return new K(function(t,n){var r=e.length,i=[];if(r)for(var o,a=function(e,n){r--,i[e]=n,0==r&&t(i)},s=function(e){n(e)},u=0;u<e.length;u++)o=e[u],$(o,h(a,u),s);else t(i)})}function Z(e){return new K(function(t){var n=e.length,r=[];if(n)for(var i,o=function(e,i,o){n--,r[e]=i?{Zb:!0,value:o}:{Zb:!1,reason:o},0==n&&t(r)},a=0;a<e.length;a++)i=e[a],$(i,h(o,a,!0),h(o,a,!1));else t(r)})}function ee(e,t){if(e.a==Yu)if(e.c){var n=e.c;if(n.b){for(var r=0,i=null,o=null,a=n.b;a&&(a.c||(r++,a.a==e&&(i=a),!(i&&1<r)));a=a.next)i||(o=a);i&&(n.a==Yu&&1==r?ee(n,t):(o?(r=o,r.next==n.f&&(n.f=r),r.next=r.next.next):se(n),ue(n,i,$u,t)))}e.c=null}else re(e,$u,t)}function te(e,t){e.b||e.a!=Xu&&e.a!=$u||ae(e),e.f?e.f.next=t:e.b=t,e.f=t}function ne(e,t,n,r){var i=Q(null,null,null);return i.a=new K(function(e,o){i.g=t?function(n){try{var i=t.call(r,n);e(i)}catch(e){o(e)}}:e,i.b=n?function(t){try{var i=n.call(r,t);void 0===i&&t instanceof fe?o(t):e(i)}catch(e){o(e)}}:o}),i.a.c=e,te(e,i),i.a}function re(e,t,n){e.a==Yu&&(e===n&&(t=$u,n=new TypeError("Promise cannot resolve to itself")),e.a=1,ie(n,e.Lc,e.Mc,e)||(e.i=n,e.a=t,e.c=null,ae(e),t!=$u||n instanceof fe||ce(e,n)))}function ie(e,t,r,i){if(e instanceof K)return te(e,Q(t||n,r||null,i)),!0;if(v(e))return e.then(t,r,i),!0;if(l(e))try{var o=e.then;if(u(o))return oe(e,o,t,r,i),!0}catch(e){return r.call(i,e),!0}return!1}function oe(e,t,n,r,i){function o(e){s||(s=!0,r.call(i,e))}function a(e){s||(s=!0,n.call(i,e))}var s=!1;try{t.call(e,a,o)}catch(e){o(e)}}function ae(e){e.h||(e.h=!0,z(e.Ub,e))}function se(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function ue(e,t,n,r){if(n==$u&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,le(t,n,r);else try{t.c?t.g.call(t.f):le(t,n,r)}catch(e){Zu.call(null,e)}_(Ju,t)}function le(e,t,n){t==Xu?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}function ce(e,t){e.g=!0,z(function(){e.g&&Zu.call(null,t)})}function fe(e){y.call(this,e)}function de(){0!=el&&(tl[this[Su]||(this[Su]=++ku)]=this),this.pa=this.pa,this.ja=this.ja}function he(e){if(!e.pa&&(e.pa=!0,e.ua(),0!=el)){var t=e[Su]||(e[Su]=++ku);if(0!=el&&e.ja&&0<e.ja.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete tl[t]}}function pe(e){return pe[" "](e),e}function me(e,t){var n=hl;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}function ve(){var e=xu.document;return e?e.documentMode:void 0}function ye(e){return me(e,function(){for(var t=0,n=Ru(String(nl)).split("."),r=Ru(String(e)).split("."),i=Math.max(n.length,r.length),o=0;0==t&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=M(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||M(0==a[2].length,0==s[2].length)||M(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t})}function ge(e,t){this.type=e,this.b=this.target=t,this.Gb=!0}function be(t,n){if(ge.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var r=this.type=t.type,i=t.changedTouches?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=n,n=t.relatedTarget){if(sl){e:{try{pe(n.nodeName);var o=!0;break e}catch(e){}o=!1}o||(n=null)}}else"mouseover"==r?n=t.fromElement:"mouseout"==r&&(n=t.toElement);this.relatedTarget=n,null===i?(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0):(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=e(t.pointerType)?t.pointerType:bl[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}function we(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.La=i,this.key=++_l,this.na=this.Ia=!1}function _e(e){e.na=!0,e.listener=null,e.proxy=null,e.src=null,e.La=null}function Ee(e){this.src=e,this.a={},this.b=0}function Te(e,t){var n=t.type;n in e.a&&O(e.a[n],t)&&(_e(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function xe(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.na&&o.listener==t&&o.capture==!!n&&o.La==r)return i}return-1}function Se(e,t,n,r,i){if(r&&r.once)Oe(e,t,n,r,i);else if(a(t))for(var o=0;o<t.length;o++)Se(e,t[o],n,r,i);else n=Le(n),e&&e[wl]?Fe(e,t,n,l(r)?!!r.capture:!!r,i):ke(e,t,n,!1,r,i)}function ke(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=l(i)?!!i.capture:!!i,s=Me(e);if(s||(e[El]=s=new Ee(e)),n=s.add(t,n,r,a,o),!n.proxy){if(r=Ce(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)gl||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(Ie(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}xl++}}function Ce(){var e=Re,t=vl?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}function Oe(e,t,n,r,i){if(a(t))for(var o=0;o<t.length;o++)Oe(e,t[o],n,r,i);else n=Le(n),e&&e[wl]?Ue(e,t,n,l(r)?!!r.capture:!!r,i):ke(e,t,n,!0,r,i)}function Ne(e,t,n,r,i){if(a(t))for(var o=0;o<t.length;o++)Ne(e,t[o],n,r,i);else r=l(r)?!!r.capture:!!r,n=Le(n),e&&e[wl]?(e=e.m,(t=String(t).toString())in e.a&&(o=e.a[t],-1<(n=xe(o,n,r,i))&&(_e(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=Me(e))&&(t=e.a[t.toString()],e=-1,t&&(e=xe(t,n,r,i)),(n=-1<e?t[e]:null)&&Pe(n))}function Pe(e){if("number"!=typeof e&&e&&!e.na){var t=e.src;if(t&&t[wl])Te(t.m,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(Ie(n),r):t.addListener&&t.removeListener&&t.removeListener(r),xl--,(n=Me(t))?(Te(n,e),0==n.b&&(n.src=null,t[El]=null)):_e(e)}}}function Ie(e){return e in Tl?Tl[e]:Tl[e]="on"+e}function Ae(e,t,n,r){var i=!0;if((e=Me(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.na&&(o=De(o,r),i=i&&!1!==o)}return i}function De(e,t){var n=e.listener,r=e.La||e.src;return e.Ia&&Pe(e),n.call(r,t)}function Re(e,t){if(e.na)return!0;if(!vl){if(!t)e:{t=["window","event"];for(var n=xu,r=0;r<t.length;r++)if(null==(n=n[t[r]])){t=null;break e}t=n}if(r=t,t=new be(r,this),n=!0,!(0>r.keyCode||void 0!=r.returnValue)){e:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break e}catch(e){i=!0}(i||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=t.b;i;i=i.parentNode)r.push(i);for(e=e.type,i=r.length-1;0<=i;i--){t.b=r[i];var o=Ae(r[i],e,!0,t);n=n&&o}for(i=0;i<r.length;i++)t.b=r[i],o=Ae(r[i],e,!1,t),n=n&&o}return n}return De(e,new be(t,this))}function Me(e){return e=e[El],e instanceof Ee?e:null}function Le(e){return u(e)?e:(e[Sl]||(e[Sl]=function(t){return e.handleEvent(t)}),e[Sl])}function je(){de.call(this),this.m=new Ee(this),this.Nb=this,this.Ua=null}function Fe(e,t,n,r,i){e.m.add(String(t),n,!1,r,i)}function Ue(e,t,n,r,i){e.m.add(String(t),n,!0,r,i)}function Be(e,t,n,r){if(!(t=e.m.a[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.na&&a.capture==n){var s=a.listener,u=a.La||a.src;a.Ia&&Te(e.m,a),i=!1!==s.call(u,r)&&i}}return i&&0!=r.Gb}function qe(e,t,n){if(u(e))n&&(e=d(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=d(e.handleEvent,e)}return 2147483647<Number(t)?-1:xu.setTimeout(e,t||0)}function Ve(e){var t=null;return new K(function(n,r){-1==(t=qe(function(){n(void 0)},e))&&r(Error("Failed to schedule timer."))}).s(function(e){throw xu.clearTimeout(t),e})}function ze(t){if(t.S&&"function"==typeof t.S)return t.S();if(e(t))return t.split("");if(s(t)){for(var n=[],r=t.length,i=0;i<r;i++)n.push(t[i]);return n}n=[],r=0;for(i in t)n[r++]=t[i];return n}function We(t){if(t.U&&"function"==typeof t.U)return t.U();if(!t.S||"function"!=typeof t.S){if(s(t)||e(t)){var n=[];t=t.length;for(var r=0;r<t;r++)n.push(r);return n}n=[],r=0;for(var i in t)n[r++]=i;return n}}function He(t,n){if(t.forEach&&"function"==typeof t.forEach)t.forEach(n,void 0);else if(s(t)||e(t))Iu(t,n,void 0);else for(var r=We(t),i=ze(t),o=i.length,a=0;a<o;a++)n.call(void 0,i[a],r&&r[a],t)}function Ke(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof Ke)for(n=e.U(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function Ge(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Qe(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)r=e.a[t],Qe(i,r)||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Qe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ye(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}function Xe(e,t){if(this.b=this.m=this.c="",this.i=null,this.h=this.g="",this.f=!1,e instanceof Xe){this.f=void 0!==t?t:e.f,$e(this,e.c),this.m=e.m,this.b=e.b,Je(this,e.i),this.g=e.g,t=e.a;var n=new st;n.c=t.c,t.a&&(n.a=new Ke(t.a),n.b=t.b),Ze(this,n),this.h=e.h}else e&&(n=String(e).match(kl))?(this.f=!!t,$e(this,n[1]||"",!0),this.m=it(n[2]||""),this.b=it(n[3]||"",!0),Je(this,n[4]),this.g=it(n[5]||"",!0),Ze(this,n[6]||"",!0),this.h=it(n[7]||"")):(this.f=!!t,this.a=new st(null,this.f))}function $e(e,t,n){e.c=n?it(t,!0):t,e.c&&(e.c=e.c.replace(/:$/,""))}function Je(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.i=t}else e.i=null}function Ze(e,t,n){t instanceof st?(e.a=t,pt(e.a,e.f)):(n||(t=ot(t,Pl)),e.a=new st(t,e.f))}function et(e,t,n){e.a.set(t,n)}function tt(e,t){return e.a.get(t)}function nt(e){return e instanceof Xe?new Xe(e):new Xe(e,void 0)}function rt(e,t){var n=new Xe(null,void 0);return $e(n,"https"),e&&(n.b=e),t&&(n.g=t),n}function it(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function ot(t,n,r){return e(t)?(t=encodeURI(t).replace(n,at),r&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function at(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(15&e).toString(16)}function st(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function ut(e){e.a||(e.a=new Ke,e.b=0,e.c&&Ye(e.c,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function lt(e){var t=We(e);if("undefined"==typeof t)throw Error("Keys are undefined");var n=new st(null,void 0);e=ze(e);for(var r=0;r<t.length;r++){var i=t[r],o=e[r];a(o)?dt(n,i,o):n.add(i,o)}return n}function ct(e,t){ut(e),t=ht(e,t),Qe(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,e=e.a,Qe(e.b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Ge(e)))}function ft(e,t){return ut(e),t=ht(e,t),Qe(e.a.b,t)}function dt(e,t,n){ct(e,t),0<n.length&&(e.c=null,e.a.set(ht(e,t),I(n)),e.b+=n.length)}function ht(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function pt(e,t){t&&!e.f&&(ut(e),e.c=null,e.a.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(ct(this,t),dt(this,n,e))},e)),e.f=t}function mt(){this.a="",this.b=Dl}function vt(e){return e instanceof mt&&e.constructor===mt&&e.b===Dl?e.a:(b("expected object of type Const, got '"+e+"'"),"type_error:Const")}function yt(e){var t=new mt;return t.a=e,t}function gt(){this.a="",this.b=Ll}function bt(e){return e instanceof gt&&e.constructor===gt&&e.b===Ll?e.a:(b("expected object of type TrustedResourceUrl, got '"+e+"' of type "+i(e)),"type_error:TrustedResourceUrl")}function wt(e,t){var n=vt(e);if(!Ml.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return e=n.replace(Rl,function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return e=t[r],e instanceof mt?vt(e):encodeURIComponent(String(e))}),_t(e)}function _t(e){var t=new gt;return t.a=e,t}function Et(){this.a="",this.b=Fl}function Tt(e){return e instanceof Et&&e.constructor===Et&&e.b===Fl?e.a:(b("expected object of type SafeUrl, got '"+e+"' of type "+i(e)),"type_error:SafeUrl")}function xt(e){return e instanceof Et?e:(e=e.ma?e.la():String(e),jl.test(e)||(e="about:invalid#zClosurez"),St(e))}function St(e){var t=new Et;return t.a=e,t}function kt(){this.a="",this.b=Ul}function Ct(e){return e instanceof kt&&e.constructor===kt&&e.b===Ul?e.a:(b("expected object of type SafeHtml, got '"+e+"' of type "+i(e)),"type_error:SafeHtml")}function Ot(e){var t=new kt;return t.a=e,t}function Nt(t){var n=document;return e(t)?n.getElementById(t):t}function Pt(e,t){j(t,function(t,n){t&&t.ma&&(t=t.la()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:Bl.hasOwnProperty(n)?e.setAttribute(Bl[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t})}function It(t,n,r){var i=arguments,o=document,s=String(i[0]),u=i[1];if(!Al&&u&&(u.name||u.type)){if(s=["<",s],u.name&&s.push(' name="',D(u.name),'"'),u.type){s.push(' type="',D(u.type),'"');var l={};B(l,u),delete l.type,u=l}s.push(">"),s=s.join("")}return s=o.createElement(s),u&&(e(u)?s.className=u:a(u)?s.className=u.join(" "):Pt(s,u)),2<i.length&&At(o,s,i),s}function At(t,n,r){function i(r){r&&n.appendChild(e(r)?t.createTextNode(r):r)}for(var o=2;o<r.length;o++){var a=r[o];!s(a)||l(a)&&0<a.nodeType?i(a):Iu(Dt(a)?I(a):a,i)}}function Dt(e){if(e&&"number"==typeof e.length){if(l(e))return"function"==typeof e.item||"string"==typeof e.item;if(u(e))return"function"==typeof e.item}return!1}function Rt(e){var t=[];return Lt(new Mt,e,t),t.join("")}function Mt(){}function Lt(e,t,n){if(null==t)n.push("null");else{if("object"==typeof t){if(a(t)){var r=t;t=r.length,n.push("[");for(var i="",o=0;o<t;o++)n.push(i),Lt(e,r[o],n),i=",";return void n.push("]")}if(!(t instanceof String||t instanceof Number||t instanceof Boolean)){n.push("{"),i="";for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&"function"!=typeof(o=t[r])&&(n.push(i),jt(r,n),n.push(":"),Lt(e,o,n),i=",");return void n.push("}")}t=t.valueOf()}switch(typeof t){case"string":jt(t,n);break;case"number":n.push(isFinite(t)&&!isNaN(t)?String(t):"null");break;case"boolean":n.push(String(t));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof t)}}}function jt(e,t){t.push('"',e.replace(Vl,function(e){var t=ql[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),ql[e]=t),t}),'"')}function Ft(){var e=rn();return il&&!!dl&&11==dl||/Edge\/\d+/.test(e)}function Ut(){return xu.window&&xu.window.location.href||self&&self.location&&self.location.href||""}function Bt(e,t){t=t||xu.window;var n="about:blank";e&&(n=Tt(xt(e))),t.location.href=n}function qt(e,t){var n,r=[];for(n in e)n in t?typeof e[n]!=typeof t[n]?r.push(n):"object"==typeof e[n]&&null!=e[n]&&null!=t[n]?0<qt(e[n],t[n]).length&&r.push(n):e[n]!==t[n]&&r.push(n):r.push(n);for(n in t)n in e||r.push(n);return r}function Vt(){var e=rn();return!((e=tn(e)!=Hl?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e)&&(!il||!dl||9<dl)}function zt(e){return e=(e||rn()).toLowerCase(),!!(e.match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function Wt(e){e=e||xu.window;try{e.close()}catch(e){}}function Ht(e,t,n){var r=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var i=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-t)/2;t={width:t,height:n,top:0<i?i:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=rn().toLowerCase(),r&&(t.target=r,R(n,"crios/")&&(t.target="_blank")),tn(rn())==Wl&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof Et?n:xt("undefined"!=typeof n.href?n.href:String(n)),n=e.target||n.target,i=[];for(a in e)switch(a){case"width":case"height":case"top":case"left":i.push(a+"="+e[a]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(a+"="+(e[a]?1:0))}var a=i.join(",");if((L("iPhone")&&!L("iPod")&&!L("iPad")||L("iPad")||L("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(a=r.document.createElement("A"),t instanceof Et||t instanceof Et||(t=t.ma?t.la():String(t),jl.test(t)||(t="about:invalid#zClosurez"),t=St(t)),a.href=Tt(t),a.setAttribute("target",n),e.noreferrer&&a.setAttribute("rel","noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(e),a={}):e.noreferrer?(a=r.open("",n,a),e=Tt(t),a&&(al&&R(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),a.opener=null,yt("b/12014412, meta tag with sanitized URL"),e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+D(e)+'">',e=Ot(e),a.document.write(Ct(e)),a.document.close())):(a=r.open(Tt(t),n,a))&&e.noopener&&(a.opener=null),a)try{a.focus()}catch(e){}return a}function Kt(e){return new K(function(t){function n(){Ve(2e3).then(function(){if(e&&!e.closed)return n();t()})}return n()})}function Gt(){var e=null;return new K(function(t){"complete"==xu.document.readyState?t():(e=function(){t()},Oe(window,"load",e))}).s(function(t){throw Ne(window,"load",e),t})}function Qt(){return Yt(void 0)?Gt().then(function(){return new K(function(e,t){var n=xu.document,r=setTimeout(function(){t(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(r),e()},!1)})}):X(Error("Cordova must run in an Android or iOS file scheme."))}function Yt(e){return e=e||rn(),!("file:"!==ln()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function Xt(){var e=xu.window;try{return!(!e||e==e.top)}catch(e){return!1}}function $t(){return"object"!==typeof xu.window&&"function"===typeof xu.importScripts}function Jt(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":$t()?"Worker":"Browser"}function Zt(){var e=Jt();return"ReactNative"===e||"Node"===e}function en(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}function tn(e){var t=e.toLowerCase();return R(t,"opera/")||R(t,"opr/")||R(t,"opios/")?"Opera":R(t,"iemobile")?"IEMobile":R(t,"msie")||R(t,"trident/")?"IE":R(t,"edge/")?"Edge":R(t,"firefox/")?Wl:R(t,"silk/")?"Silk":R(t,"blackberry")?"Blackberry":R(t,"webos")?"Webos":!R(t,"safari/")||R(t,"chrome/")||R(t,"crios/")||R(t,"android")?!R(t,"chrome/")&&!R(t,"crios/")||R(t,"edge/")?R(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":Hl:"Safari"}function nn(e,t){t=t||[];var n,r=[],i={};for(n in Kl)i[Kl[n]]=!0;for(n=0;n<t.length;n++)"undefined"!==typeof i[t[n]]&&(delete i[t[n]],r.push(t[n]));return r.sort(),t=r,t.length||(t=["FirebaseCore-web"]),r=Jt(),"Browser"===r?(i=rn(),r=tn(i)):"Worker"===r&&(i=rn(),r=tn(i)+"-"+r),r+"/JsCore/"+e+"/"+t.join(",")}function rn(){return xu.navigator&&xu.navigator.userAgent||""}function on(e,t){e=e.split("."),t=t||xu;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function an(){try{var e=xu.localStorage,t=pn();if(e)return e.setItem(t,"1"),e.removeItem(t),!Ft()||!!xu.indexedDB}catch(e){return $t()&&!!xu.indexedDB}return!1}function sn(){return(un()||"chrome-extension:"===ln()||Yt())&&!Zt()&&an()&&!$t()}function un(){return"http:"===ln()||"https:"===ln()}function ln(){return xu.location&&xu.location.protocol||null}function cn(e){return e=e||rn(),!zt(e)&&tn(e)!=Wl}function fn(e){return"undefined"===typeof e?null:Rt(e)}function dn(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function hn(e){if(null!==e)return JSON.parse(e)}function pn(e){return e||Math.floor(1e9*Math.random()).toString()}function mn(e){return e=e||rn(),"Safari"!=tn(e)&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function vn(){var e=xu.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function yn(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=rn(),t=Jt(),this.b=zt(e)||"ReactNative"===t}function gn(){var e=xu.document;return!e||"undefined"===typeof e.visibilityState||"visible"==e.visibilityState}function bn(){var e=xu.document,t=null;return gn()||!e?Y():new K(function(n){t=function(){gn()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)}).s(function(n){throw e.removeEventListener("visibilitychange",t,!1),n})}function wn(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(e){}return null}function _n(){return!(!on("fireauth.oauthhelper",xu)&&!on("fireauth.iframe",xu))}function En(e){Ql[e]||(Ql[e]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(e))}function Tn(e,t,n){Gl?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function xn(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Tn(e,n,t[n])}function Sn(e){var t={};return xn(t,e),t}function kn(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Cn(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var r=e[t[n]];if(void 0===r||null===r||""===r)return!1}return!0}function On(e){var t=e;if("object"==typeof e&&null!=e){t="length"in e?[]:{};for(var n in e)Tn(t,n,On(e[n]))}return t}function Nn(e){var t={},n=e[$l],r=e[Jl];if(!(e=e[Zl])||e!=Xl&&!n)throw Error("Invalid provider user info!");t[tc]=r||null,t[ec]=n||null,Tn(this,rc,e),Tn(this,nc,On(t))}function Pn(e,t){this.code=ic+e,this.message=t||oc[e]||""}function In(e){var t=e&&e.code;return t?new Pn(t.substring(ic.length),e.message):null}function An(e){var t=e[lc];if("undefined"===typeof t)throw new Pn("missing-continue-uri");if("string"!==typeof t||"string"===typeof t&&!t.length)throw new Pn("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[ac];if(n&&"object"===typeof n){t=n[dc];var r=n[cc];if(n=n[fc],"string"===typeof t&&t.length){if(this.a=t,"undefined"!==typeof r&&"boolean"!==typeof r)throw new Pn("argument-error",cc+" property must be a boolean when specified.");if(this.g=!!r,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new Pn("argument-error",fc+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof t)throw new Pn("argument-error",dc+" property must be a non empty string when specified.");if("undefined"!==typeof r||"undefined"!==typeof n)throw new Pn("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new Pn("argument-error",ac+" property must be a non null object when specified.");if(this.f=null,(t=e[uc])&&"object"===typeof t){if("string"===typeof(t=t[hc])&&t.length)this.f=t;else if("undefined"!==typeof t)throw new Pn("argument-error",hc+" property must be a non empty string when specified.")}else if("undefined"!==typeof t)throw new Pn("argument-error",uc+" property must be a non null object when specified.");if("undefined"!==typeof(e=e[sc])&&"boolean"!==typeof e)throw new Pn("argument-error",sc+" property must be a boolean when specified.");this.c=!!e}function Dn(e){var t={};t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f;for(var n in t)null===t[n]&&delete t[n];return t}function Rn(e){return Au(e,function(e){return e=e.toString(16),1<e.length?e:"0"+e}).join("")}function Mn(e){var t="";return Ln(e,function(e){t+=String.fromCharCode(e)}),t}function Ln(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=mc[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}jn();for(var r=0;;){var i=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===i)break;t(i<<2|o>>4),64!=a&&(t(o<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}function jn(){if(!pc){pc={},mc={};for(var e=0;65>e;e++)pc[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e),mc[pc[e]]=e,62<=e&&(mc["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(e)]=e)}}function Fn(e){this.c=e.sub,Cu(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function Un(e){return(e=Bn(e))&&e.sub&&e.iss&&e.aud&&e.exp?new Fn(e):null}function Bn(e){if(!e)return null;if(e=e.split("."),3!=e.length)return null;e=e[1];for(var t=(4-e.length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(Mn(e))}catch(e){}return null}function qn(e){for(var t in gc)if(gc[t].Na==e)return gc[t];return null}function Vn(e){var t={};t["facebook.com"]=Hn,t["google.com"]=Gn,t["github.com"]=Kn,t["twitter.com"]=Qn;var n=e&&e[wc];try{if(n)return t[n]?new t[n](e):new Wn(e);if("undefined"!==typeof e[bc])return new zn(e)}catch(e){}return null}function zn(e){var t=e[wc];if(!t&&e[bc]){var n=Un(e[bc]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,"undefined"!==typeof e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),Tn(this,"providerId",t),Tn(this,"isNewUser",n)}function Wn(e){zn.call(this,e),e=hn(e.rawUserInfo||"{}"),Tn(this,"profile",On(e||{}))}function Hn(e){if(Wn.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Kn(e){if(Wn.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Tn(this,"username",this.profile&&this.profile.login||null)}function Gn(e){if(Wn.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Qn(e){if(Wn.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Tn(this,"username",e.screenName||null)}function Yn(e){this.a=nt(e)}function Xn(e){var t=nt(e),n=tt(t,"link"),r=tt(nt(n),"link");return t=tt(t,"deep_link_id"),tt(nt(t),"link")||t||r||n||e}function $n(e,t){return e.then(function(e){if(e[Uc]){var n=Un(e[Uc]);if(!n||t!=n.c)throw new Pn("user-mismatch");return e}throw new Pn("user-mismatch")}).s(function(e){throw e&&e.code&&e.code==ic+"user-not-found"?new Pn("user-mismatch"):e})}function Jn(e,t,n){if(t.idToken||t.accessToken)t.idToken&&Tn(this,"idToken",t.idToken),t.accessToken&&Tn(this,"accessToken",t.accessToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new Pn("internal-error","failed to construct a credential");Tn(this,"accessToken",t.oauthToken),Tn(this,"secret",t.oauthTokenSecret)}Tn(this,"providerId",e),Tn(this,"signInMethod",n)}function Zn(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,{postBody:lt(t).toString(),requestUri:"http://localhost"}}function er(e,t){this.Ac=t||[],xn(this,{providerId:e,isOAuthProvider:!0}),this.vb={},this.$a=(qn(e)||{}).Ma||null,this.Ya=null}function tr(e){er.call(this,e,yc),this.a=[]}function nr(){tr.call(this,"facebook.com")}function rr(e){if(!e)throw new Pn("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return l(e)&&(t=e.accessToken),(new nr).credential(null,t)}function ir(){tr.call(this,"github.com")}function or(e){if(!e)throw new Pn("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return l(e)&&(t=e.accessToken),(new ir).credential(null,t)}function ar(){tr.call(this,"google.com"),this.ta("profile")}function sr(e,t){var n=e;return l(e)&&(n=e.idToken,t=e.accessToken),(new ar).credential(n,t)}function ur(){er.call(this,"twitter.com",vc)}function lr(e,t){var n=e;if(l(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new Pn("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Jn("twitter.com",n,"twitter.com")}function cr(e,t,n){this.a=e,this.b=t,Tn(this,"providerId","password"),Tn(this,"signInMethod",n===fr.EMAIL_LINK_SIGN_IN_METHOD?fr.EMAIL_LINK_SIGN_IN_METHOD:fr.EMAIL_PASSWORD_SIGN_IN_METHOD)}function fr(){xn(this,{providerId:"password",isOAuthProvider:!1})}function dr(e,t){if(!(t=hr(t)))throw new Pn("argument-error","Invalid email link!");return new cr(e,t,fr.EMAIL_LINK_SIGN_IN_METHOD)}function hr(e){e=Xn(e),e=new Yn(e);var t=tt(e.a,"oobCode")||null;return"signIn"===(tt(e.a,"mode")||null)&&t?t:null}function pr(e){if(!(e.Sa&&e.Ra||e.Fa&&e.$))throw new Pn("internal-error");this.a=e,Tn(this,"providerId","phone"),Tn(this,"signInMethod","phone")}function mr(e){return e.a.Fa&&e.a.$?{temporaryProof:e.a.Fa,phoneNumber:e.a.$}:{sessionInfo:e.a.Sa,code:e.a.Ra}}function vr(e){try{this.a=e||r.a.auth()}catch(e){throw new Pn("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}xn(this,{providerId:"phone",isOAuthProvider:!1})}function yr(e,t){if(!e)throw new Pn("missing-verification-id");if(!t)throw new Pn("missing-verification-code");return new pr({Sa:e,Ra:t})}function gr(e){if(e.temporaryProof&&e.phoneNumber)return new pr({Fa:e.temporaryProof,$:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,r=e&&e.oauthTokenSecret;e=e&&e.oauthIdToken;try{switch(t){case"google.com":return sr(e,n);case"facebook.com":return rr(n);case"github.com":return or(n);case"twitter.com":return lr(n,r);default:return new tr(t).credential(e,n)}}catch(e){return null}}function br(e){if(!e.isOAuthProvider)throw new Pn("invalid-oauth-provider")}function wr(e,t,n,r,i){if(this.b=e,this.c=t||null,this.f=n||null,this.g=r||null,this.a=i||null,!this.f&&!this.a)throw new Pn("invalid-auth-event");if(this.f&&this.a)throw new Pn("invalid-auth-event");if(this.f&&!this.g)throw new Pn("invalid-auth-event")}function _r(e){return e=e||{},e.type?new wr(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&In(e.error)):null}function Er(){this.b=null,this.a=[]}function Tr(e){var t="unauthorized-domain",n=void 0,r=nt(e);e=r.b,r=r.c,"chrome-extension"==r?n=A("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==r||"https"==r?n=A("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",Pn.call(this,t,n)}function xr(e,t,n){Pn.call(this,e,n),e=t||{},e.wb&&Tn(this,"email",e.wb),e.$&&Tn(this,"phoneNumber",e.$),e.credential&&Tn(this,"credential",e.credential)}function Sr(e){if(e.code){var t=e.code||"";0==t.indexOf(ic)&&(t=t.substring(ic.length));var n={credential:gr(e)};if(e.email)n.wb=e.email;else{if(!e.phoneNumber)return new Pn(t,e.message||void 0);n.$=e.phoneNumber}return new xr(t,n,e.message)}return null}function kr(){}function Cr(e){return e.c||(e.c=e.b())}function Or(){}function Nr(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.f=r}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function Pr(){}function Ir(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseText="",this.status=-1,this.statusText="",this.a.onload=d(this.bc,this),this.a.onerror=d(this.Bb,this),this.a.onprogress=d(this.cc,this),this.a.ontimeout=d(this.fc,this)}function Ar(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function Dr(e,t,n){this.reset(e,t,n,void 0,void 0)}function Rr(e){this.f=e,this.b=this.c=this.a=null}function Mr(e,t){this.name=e,this.value=t}function Lr(e){return e.c?e.c:e.a?Lr(e.a):(b("Root logger has no level set."),null)}function jr(e){Pc||(Pc=new Rr(""),Nc[""]=Pc,Pc.c=Cc);var t;if(!(t=Nc[e])){t=new Rr(e);var n=e.lastIndexOf("."),r=e.substr(n+1);n=jr(e.substr(0,n)),n.b||(n.b={}),n.b[r]=t,t.a=n,Nc[e]=t}return t}function Fr(e,t){e&&e.log(Oc,t,void 0)}function Ur(e){this.f=e}function Br(e){je.call(this),this.i=e,this.readyState=Ic,this.status=0,this.responseText=this.statusText="",this.onreadystatechange=null,this.g=new Headers,this.b=null,this.h="GET",this.c="",this.a=!1,this.f=jr("goog.net.FetchXmlHttp")}function qr(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Vr(e){je.call(this),this.headers=new Ke,this.C=e||null,this.c=!1,this.w=this.a=null,this.h=this.N=this.l="",this.f=this.I=this.i=this.G=!1,this.g=0,this.u=null,this.o=Ac,this.v=this.O=!1}function zr(e,t,n,r,i){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.N=n,e.G=!1,e.c=!0,e.a=e.C?e.C.a():Tc.a(),e.w=Cr(e.C?e.C:Tc),e.a.onreadystatechange=d(e.Fb,e);try{Fr(e.b,ei(e,"Opening Xhr")),e.I=!0,e.a.open(n,String(t),!0),e.I=!1}catch(t){return Fr(e.b,ei(e,"Error opening Xhr: "+t.message)),void Kr(e,t)}t=r||"";var o=new Ke(e.headers);i&&He(i,function(e,t){o.set(t,e)}),i=k(o.U()),r=xu.FormData&&t instanceof xu.FormData,!C(Rc,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(e,t){this.a.setRequestHeader(t,e)},e),e.o&&(e.a.responseType=e.o),"withCredentials"in e.a&&e.a.withCredentials!==e.O&&(e.a.withCredentials=e.O);try{Xr(e),0<e.g&&(e.v=Wr(e.a),Fr(e.b,ei(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.v)),e.v?(e.a.timeout=e.g,e.a.ontimeout=d(e.Ga,e)):e.u=qe(e.Ga,e.g,e)),Fr(e.b,ei(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(t){Fr(e.b,ei(e,"Send error: "+t.message)),Kr(e,t)}}function Wr(e){return il&&ye(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}function Hr(e){return"content-type"==e.toLowerCase()}function Kr(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,Gr(e),Yr(e)}function Gr(e){e.G||(e.G=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function Qr(e){if(e.c&&"undefined"!=typeof Tu)if(e.w[1]&&4==$r(e)&&2==Jr(e))Fr(e.b,ei(e,"Local request error detected and ignored"));else if(e.i&&4==$r(e))qe(e.Fb,0,e);else if(e.dispatchEvent("readystatechange"),4==$r(e)){Fr(e.b,ei(e,"Request complete")),e.c=!1;try{var t=Jr(e);e:switch(t){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break e;default:n=!1}var r;if(!(r=n)){var i;if(i=0===t){var o=String(e.l).match(kl)[1]||null;if(!o&&xu.self&&xu.self.location){var a=xu.self.location.protocol;o=a.substr(0,a.length-1)}i=!Dc.test(o?o.toLowerCase():"")}r=i}if(r)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var s=2<$r(e)?e.a.statusText:""}catch(t){Fr(e.b,"Can not get status: "+t.message),s=""}e.h=s+" ["+Jr(e)+"]",Gr(e)}}finally{Yr(e)}}}function Yr(e,t){if(e.a){Xr(e);var r=e.a,i=e.w[0]?n:null;e.a=null,e.w=null,t||e.dispatchEvent("ready");try{r.onreadystatechange=i}catch(t){(e=e.b)&&e.log(Sc,"Problem encountered resetting onreadystatechange: "+t.message,void 0)}}}function Xr(e){e.a&&e.v&&(e.a.ontimeout=null),e.u&&(xu.clearTimeout(e.u),e.u=null)}function $r(e){return e.a?e.a.readyState:0}function Jr(e){try{return 2<$r(e)?e.a.status:-1}catch(e){return-1}}function Zr(e){try{return e.a?e.a.responseText:""}catch(t){return Fr(e.b,"Can not get responseText: "+t.message),""}}function ei(e,t){return t+" ["+e.N+" "+e.l+" "+Jr(e)+"]"}function ti(e,t){this.g=[],this.v=e,this.u=t||null,this.f=this.a=!1,this.c=void 0,this.l=this.w=this.i=!1,this.h=0,this.b=null,this.m=0}function ni(e,t,n){e.a=!0,e.c=n,e.f=!t,si(e)}function ri(e){if(e.a){if(!e.l)throw new ui(e);e.l=!1}}function ii(e,t){oi(e,null,t,void 0)}function oi(e,t,n,r){e.g.push([t,n,r]),e.a&&si(e)}function ai(e){return Du(e.g,function(e){return u(e[1])})}function si(e){if(e.h&&e.a&&ai(e)){var t=e.h,n=Mc[t];n&&(xu.clearTimeout(n.a),delete Mc[t]),e.h=0}e.b&&(e.b.m--,delete e.b),t=e.c;for(var r=n=!1;e.g.length&&!e.i;){var i=e.g.shift(),o=i[0],a=i[1];if(i=i[2],o=e.f?a:o)try{var s=o.call(i||e.u,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(v(t)||"function"===typeof xu.Promise&&t instanceof xu.Promise)&&(r=!0,e.i=!0)}catch(r){t=r,e.f=!0,ai(e)||(n=!0)}}e.c=t,r&&(s=d(e.o,e,!0),r=d(e.o,e,!1),t instanceof ti?(oi(t,s,r),t.w=!0):t.then(s,r)),n&&(t=new ci(t),Mc[t.a]=t,e.h=t.a)}function ui(){y.call(this)}function li(){y.call(this)}function ci(e){this.a=xu.setTimeout(d(this.c,this),0),this.b=e}function fi(e){var t={},n=t.document||document,r=bt(e),i=document.createElement("SCRIPT"),o={Hb:i,Ga:void 0},a=new ti(hi,o),s=null,u=null!=t.timeout?t.timeout:5e3;return 0<u&&(s=window.setTimeout(function(){pi(i,!0);var e=new mi(jc,"Timeout reached for loading script "+r);ri(a),ni(a,!1,e)},u),o.Ga=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(pi(i,t.dd||!1,s),a.C())},i.onerror=function(){pi(i,!0,s);var e=new mi(Lc,"Error while loading script "+r);ri(a),ni(a,!1,e)},o=t.attributes||{},B(o,{type:"text/javascript",charset:"UTF-8"}),Pt(i,o),i.src=bt(e),di(n).appendChild(i),a}function di(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}function hi(){if(this&&this.Hb){var e=this.Hb;e&&"SCRIPT"==e.tagName&&pi(e,!0,this.Ga)}}function pi(e,t,r){null!=r&&xu.clearTimeout(r),e.onload=n,e.onerror=n,e.onreadystatechange=n,t&&window.setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},0)}function mi(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),y.call(this,n),this.code=e}function vi(e){this.f=e}function yi(e,t,n){if(this.b=e,e=t||{},this.i=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||Bc,this.f=U(e.secureTokenHeaders||qc),this.g=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.h=e.firebaseTimeout||Vc,this.a=U(e.firebaseHeaders||zc),n&&(this.a["X-Client-Version"]=n,this.f["X-Client-Version"]=n),n="Node"==Jt(),!(n=xu.XMLHttpRequest||n&&r.a.INTERNAL.node&&r.a.INTERNAL.node.XMLHttpRequest)&&!$t())throw new Pn("internal-error","The XMLHttpRequest compatibility library was not found.");this.c=void 0,$t()?this.c=new Ur(self):Zt()?this.c=new vi(n):this.c=new Pr}function gi(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function bi(e,t){t?(e.a["X-Client-Version"]=t,e.f["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.f["X-Client-Version"])}function wi(e,t,n,r,i,o,a){Vt()||$t()?e=d(e.o,e):(Fc||(Fc=new K(function(e,t){_i(e,t)})),e=d(e.l,e)),e(t,n,r,i,o,a)}function _i(e,t){if(((window.gapi||{}).client||{}).request)e();else{xu[Hc]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))};ii(fi(wt(Wc,{onload:Hc})),function(){t(Error("CORS_UNSUPPORTED"))})}}function Ei(e,t){return new K(function(n,r){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?wi(e,e.i+"?key="+encodeURIComponent(e.b),function(e){e?e.error?r(qi(e)):e.access_token&&e.refresh_token?n(e):r(new Pn("internal-error")):r(new Pn("network-request-failed"))},"POST",lt(t).toString(),e.f,e.m.get()):r(new Pn("internal-error"))})}function Ti(e,t,n,r,i,o){var a=nt(e.g+t);et(a,"key",e.b),o&&et(a,"cb",Cu().toString());var s="GET"==n;if(s)for(var u in r)r.hasOwnProperty(u)&&et(a,u,r[u]);return new K(function(t,o){wi(e,a.toString(),function(e){e?e.error?o(qi(e,i||{})):t(e):o(new Pn("network-request-failed"))},n,s?void 0:Rt(dn(r)),e.a,e.h.get())})}function xi(e){if(!Ec.test(e.email))throw new Pn("invalid-email")}function Si(e){"email"in e&&xi(e)}function ki(e,t){return Ui(e,$c,{identifier:t,continueUri:un()?Ut():"http://localhost"}).then(function(e){return e.allProviders||[]})}function Ci(e,t){return Ui(e,$c,{identifier:t,continueUri:un()?Ut():"http://localhost"}).then(function(e){return e.signinMethods||[]})}function Oi(e){return Ui(e,sf,{}).then(function(e){return e.authorizedDomains||[]})}function Ni(e){if(!e[Uc])throw new Pn("internal-error")}function Pi(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new Pn("internal-error")}else{if(!e.sessionInfo)throw new Pn("missing-verification-id");if(!e.code)throw new Pn("missing-verification-code")}}function Ii(e,t){return Ui(e,cf,t)}function Ai(e,t,n){return Ui(e,Zc,{idToken:t,deleteProvider:n})}function Di(e){if(!e.requestUri||!e.sessionId&&!e.postBody)throw new Pn("internal-error")}function Ri(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=Sr(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=Sr(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=Sr(e)):e.errorMessage&&(t=Bi(e.errorMessage)),t)throw t;if(!e[Uc])throw new Pn("internal-error")}function Mi(e,t){return t.returnIdpCredential=!0,Ui(e,pf,t)}function Li(e,t){return t.returnIdpCredential=!0,Ui(e,vf,t)}function ji(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,Ui(e,mf,t)}function Fi(e){if(!e.oobCode)throw new Pn("invalid-action-code")}function Ui(e,t,n){if(!Cn(n,t.T))return X(new Pn("internal-error"));var r,i=t.Eb||"POST";return Y(n).then(t.B).then(function(){return t.R&&(n.returnSecureToken=!0),Ti(e,t.endpoint,i,n,t.Tb,t.rb||!1)}).then(function(e){return r=e}).then(t.J).then(function(){if(!t.da)return r;if(!(t.da in r))throw new Pn("internal-error");return r[t.da]})}function Bi(e){return qi({error:{errors:[{message:e}],code:400,message:e}})}function qi(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new Pn(r[n]):null)return n;n=e.error&&e.error.message||"",r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash"},B(r,t||{}),t=(t=n.match(/^[^\s]+\s*:\s*(.*)$/))&&1<t.length?t[1]:void 0;for(var i in r)if(0===n.indexOf(i))return new Pn(r[i],t);return!t&&e&&(t=fn(e)),new Pn("internal-error",t)}function Vi(e){for(var t in Ef)if(Ef[t].id===e)return e=Ef[t],{firebaseEndpoint:e.Za,secureTokenEndpoint:e.fb};return null}function zi(e){this.b=e,this.a=null,this.bb=Wi(this)}function Wi(e){return Gi().then(function(){return new K(function(t,n){on("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:on("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(r){function i(){clearTimeout(o),t()}e.a=r,e.a.restyle({setHideOnLeave:!1});var o=setTimeout(function(){n(Error("Network Error"))},Sf.get());r.ping(i).then(i,function(){n(Error("Network Error"))})})})})}function Hi(e,t){return e.bb.then(function(){return new K(function(n){e.a.send(t.type,t,n,on("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}function Ki(e,t){e.bb.then(function(){e.a.register("authEvent",t,on("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}function Gi(){return kf||(kf=new K(function(e,t){function n(){vn(),on("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){vn(),t(Error("Network Error"))},timeout:xf.get()})}if(on("gapi.iframes.Iframe"))e();else if(on("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();xu[r]=function(){on("gapi.load")?n():t(Error("Network Error"))},r=wt(Tf,{onload:r}),Y(fi(r)).s(function(){t(Error("Network Error"))})}}).s(function(e){throw kf=null,e}))}function Qi(e,t,n){this.i=e,this.g=t,this.h=n,this.f=null,this.a=rt(this.i,"/__/auth/iframe"),et(this.a,"apiKey",this.g),et(this.a,"appName",this.h),this.b=null,this.c=[]}function Yi(e,t,n,r,i){this.o=e,this.l=t,this.c=n,this.m=r,this.h=this.g=this.i=null,this.a=i,this.f=null}function Xi(e){try{return r.a.app(e).auth().xa()}catch(e){return[]}}function $i(e,t,n,r,i){this.l=e,this.f=t,this.b=n,this.c=r||null,this.h=i||null,this.o=this.u=this.v=null,this.g=[],this.m=this.a=null}function Ji(e){var t=Ut();return Oi(e).then(function(e){e:{var n=nt(t),r=n.c;n=n.b;for(var i=0;i<e.length;i++){var o=e[i],a=n,s=r;if(0==o.indexOf("chrome-extension://")?a=nt(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:zl.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){e=!0;break e}}e=!1}if(!e)throw new Tr(Ut())})}function Zi(e){return e.m?e.m:(e.m=Gt().then(function(){if(!e.u){var t=e.c,n=e.h,r=Xi(e.b),i=new Qi(e.l,e.f,e.b);i.f=t,i.b=n,i.c=I(r||[]),e.u=i.toString()}e.i=new zi(e.u),no(e)}),e.m)}function eo(e){return e.o||(e.v=e.c?nn(e.c,Xi(e.b)):null,e.o=new yi(e.f,Vi(e.h),e.v)),e.o}function to(e,t,n,r,i,o,a,s,u,l){return e=new Yi(e,t,n,r,i),e.i=o,e.g=a,e.h=s,e.b=U(u||null),e.f=l,e.toString()}function no(e){if(!e.i)throw Error("IfcHandler must be initialized!");Ki(e.i,function(t){var n={};if(t&&t.authEvent){var r=!1;for(t=_r(t.authEvent),n=0;n<e.g.length;n++)r=e.g[n](t)||r;return n={},n.status=r?"ACK":"ERROR",Y(n)}return n.status="ERROR",Y(n)})}function ro(e){var t={type:"webStorageSupport"};return Zi(e).then(function(){return Hi(e.i,t)}).then(function(e){if(e&&e.length&&"undefined"!==typeof e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()})}function io(e){if(this.a=e||r.a.INTERNAL.reactNative&&r.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new Pn("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function oo(){if(!lo())throw new Pn("web-storage-unsupported");this.f={},this.a=[],this.b=0,this.g=xu.indexedDB,this.type="indexedDB"}function ao(e){return new K(function(t,n){var r=e.g.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){t()},r.onerror=function(e){n(Error(e.target.error))}})}function so(e){return new K(function(t,n){var r=e.g.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(e){}n(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},r.onsuccess=function(r){r=r.target.result,r.objectStoreNames.contains("firebaseLocalStorage")?t(r):ao(e).then(function(){return so(e)}).then(function(e){t(e)}).s(function(e){n(e)})}})}function uo(e){return e.h||(e.h=so(e)),e.h}function lo(){try{return!!xu.indexedDB}catch(e){return!1}}function co(e){return e.objectStore("firebaseLocalStorage")}function fo(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function ho(e){return new K(function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(Error(e.target.errorCode))}})}function po(e){function t(){return e.c=Ve(800).then(d(e.Kc,e)).then(function(t){0<t.length&&Iu(e.a,function(e){e(t)})}).then(t).s(function(e){"STOP_EVENT"!=e.message&&t()}),e.c}e.c&&e.c.cancel("STOP_EVENT"),t()}function mo(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=Y().then(function(){if(lo()){var e=pn(),r="__sak"+e;return Cf||(Cf=new oo),n=Cf,n.set(r,e).then(function(){return n.get(r)}).then(function(t){if(t!==e)throw Error("indexedDB not supported!");return n.P(r)}).then(function(){return n}).s(function(){return t.c})}return t.c}).then(function(e){return t.type=e.type,e.Y(function(e){Iu(t.a,function(t){t(e)})}),e})}function vo(){this.a={},this.type="inMemory"}function yo(){if(!bo()){if("Node"==Jt())throw new Pn("internal-error","The LocalStorage compatibility library was not found.");throw new Pn("web-storage-unsupported")}this.a=go()||r.a.INTERNAL.node.localStorage,this.type="localStorage"}function go(){try{var e=xu.localStorage,t=pn();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function bo(){var e="Node"==Jt();if(!(e=go()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}function wo(){this.type="nullStorage"}function _o(){if(!To()){if("Node"==Jt())throw new Pn("internal-error","The SessionStorage compatibility library was not found.");throw new Pn("web-storage-unsupported")}this.a=Eo()||r.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Eo(){try{var e=xu.sessionStorage,t=pn();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function To(){var e="Node"==Jt();if(!(e=Eo()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}function xo(){var e={};e.Browser=Pf,e.Node=If,e.ReactNative=Af,e.Worker=Df,this.a=e[Jt()]}function So(e){var t=new Pn("invalid-persistence-type"),n=new Pn("unsupported-persistence-type");e:{for(r in Rf)if(Rf[r]==e){var r=!0;break e}r=!1}if(!r||"string"!==typeof e)throw t;switch(Jt()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;default:if(!an()&&"none"!==e)throw n}}function ko(){var e=!(mn(rn())||!Xt()),t=cn(),n=an();this.o=e,this.h=t,this.m=n,this.a={},Of||(Of=new xo),e=Of;try{this.g=!Ft()&&_n()||!xu.indexedDB?new e.a.A:new mo($t()?new vo:new e.a.A)}catch(e){this.g=new vo,this.h=!0}try{this.i=new e.a.Qa}catch(e){this.i=new vo}this.l=new vo,this.f=d(this.Lb,this),this.b={}}function Co(){return Nf||(Nf=new ko),Nf}function Oo(e,t){switch(t){case"session":return e.i;case"none":return e.l;default:return e.g}}function No(e,t){return"firebase:"+e.name+(t?":"+t:"")}function Po(e,t,n){var r=No(t,n),i=Oo(e,t.A);return e.get(t,n).then(function(o){var a=null;try{a=hn(xu.localStorage.getItem(r))}catch(e){}if(a&&!o)return xu.localStorage.removeItem(r),e.set(t,a,n);a&&o&&"localStorage"!=i.type&&xu.localStorage.removeItem(r)})}function Io(e,t,n){return n=No(t,n),"local"==t.A&&(e.b[n]=null),Oo(e,t.A).P(n)}function Ao(e){Do(e),e.c=setInterval(function(){for(var t in e.a){var n=xu.localStorage.getItem(t),r=e.b[t];n!=r&&(e.b[t]=n,n=new be({type:"storage",key:t,target:window,oldValue:r,newValue:n,a:!0}),e.Lb(n))}},1e3)}function Do(e){e.c&&(clearInterval(e.c),e.c=null)}function Ro(e){this.a=e,this.b=Co()}function Mo(e){return e.b.get(Lf,e.a).then(function(e){return _r(e)})}function Lo(){this.a=Co()}function jo(){this.b=-1}function Fo(e,t){this.b=-1,this.b=jf,this.f=xu.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.m=xu.Int32Array?new Int32Array(64):Array(64),void 0!==Mf||(Mf=xu.Int32Array?new Int32Array(Vf):Vf),this.reset()}function Uo(e){for(var t=e.f,n=e.m,r=0,i=0;i<t.length;)n[r++]=t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3],i=4*r;for(t=16;64>t;t++){i=0|n[t-15],r=0|n[t-2];var o=(0|n[t-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[t]=o+a|0}r=0|e.a[0],i=0|e.a[1];var s=0|e.a[2],u=0|e.a[3],l=0|e.a[4],c=0|e.a[5],f=0|e.a[6];for(o=0|e.a[7],t=0;64>t;t++){var d=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=l&c^~l&f,o=o+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))|0,a=a+(0|Mf[t])|0,a=o+(a+(0|n[t])|0)|0,o=f,f=c,c=l,l=u+a|0,u=s,s=i,i=r,r=a+d|0}e.a[0]=e.a[0]+r|0,e.a[1]=e.a[1]+i|0,e.a[2]=e.a[2]+s|0,e.a[3]=e.a[3]+u|0,e.a[4]=e.a[4]+l|0,e.a[5]=e.a[5]+c|0,e.a[6]=e.a[6]+f|0,e.a[7]=e.a[7]+o|0}function Bo(t,n,r){void 0===r&&(r=n.length);var i=0,o=t.c;if(e(n))for(;i<r;)t.f[o++]=n.charCodeAt(i++),o==t.b&&(Uo(t),o=0);else{if(!s(n))throw Error("message must be string or array");for(;i<r;){var a=n[i++];if(!("number"==typeof a&&0<=a&&255>=a&&a==(0|a)))throw Error("message must be a byte array");t.f[o++]=a,o==t.b&&(Uo(t),o=0)}}t.c=o,t.g+=r}function qo(){Fo.call(this,8,zf)}function Vo(e,t,n,r,i){this.l=e,this.i=t,this.m=n,this.o=r||null,this.u=i||null,this.h=t+":"+n,this.v=new Lo,this.g=new Ro(this.h),this.f=null,this.b=[],this.a=this.c=null}function zo(e){return new Pn("invalid-cordova-configuration",e)}function Wo(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}function Ho(e){var t=new qo;Bo(t,e),e=[];var n=8*t.g;56>t.c?Bo(t,qf,56-t.c):Bo(t,qf,t.b-(t.c-56));for(var r=63;56<=r;r--)t.f[r]=255&n,n/=256;for(Uo(t),r=n=0;r<t.i;r++)for(var i=24;0<=i;i-=8)e[n++]=t.a[r]>>i&255;return Rn(e)}function Ko(e,t,n,r){var i=Wo(),o=new wr(t,r,null,i,new Pn("no-auth-event")),a=on("BuildInfo.packageName",xu);if("string"!==typeof a)throw new Pn("invalid-cordova-configuration");var s=on("BuildInfo.displayName",xu),u={};if(rn().toLowerCase().match(/iphone|ipad|ipod/))u.ibi=a;else{if(!rn().toLowerCase().match(/android/))return X(new Pn("operation-not-supported-in-this-environment"));u.apn=a}s&&(u.appDisplayName=s),i=Ho(i),u.sessionId=i;var l=to(e.l,e.i,e.m,t,n,null,r,e.o,u,e.u);return e.ga().then(function(){var t=e.h;return e.v.a.set(Lf,o.D(),t)}).then(function(){var t=on("cordova.plugins.browsertab.isAvailable",xu);if("function"!==typeof t)throw new Pn("invalid-cordova-configuration");var n=null;t(function(t){if(t){if("function"!==typeof(n=on("cordova.plugins.browsertab.openUrl",xu)))throw new Pn("invalid-cordova-configuration");n(l)}else{if("function"!==typeof(n=on("cordova.InAppBrowser.open",xu)))throw new Pn("invalid-cordova-configuration");t=rn(),t=!(!t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)&&!t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)),e.a=n(l,t?"_blank":"_system","location=yes")}})})}function Go(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(e){}}function Qo(e){return e.f||(e.f=e.ga().then(function(){return new K(function(t){function n(r){return t(r),e.Ka(n),!1}e.va(n),Xo(e)})})),e.f}function Yo(e){var t=null;return Mo(e.g).then(function(n){return t=n,n=e.g,Io(n.b,Lf,n.a)}).then(function(){return t})}function Xo(e){function t(t){r=!0,i&&i.cancel(),Yo(e).then(function(r){var i=n;if(r&&t&&t.url){var o=null;i=Xn(t.url),-1!=i.indexOf("/__/auth/callback")&&(o=nt(i),o=hn(tt(o,"firebaseError")||null),o=(o="object"===typeof o?In(o):null)?new wr(r.b,r.c,null,null,o):new wr(r.b,r.c,i,r.g)),i=o||n}Go(e,i)})}var n=new wr("unknown",null,null,null,new Pn("no-auth-event")),r=!1,i=Ve(500).then(function(){return Yo(e).then(function(){r||Go(e,n)})}),o=xu.handleOpenURL;xu.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(on("BuildInfo.packageName",xu).toLowerCase()+"://")&&t({url:e}),"function"===typeof o)try{o(e)}catch(e){console.error(e)}},_c||(_c=new Er),_c.subscribe(t)}function $o(e){this.a=e,this.b=Co()}function Jo(e){return e.b.set(Wf,"pending",e.a)}function Zo(e){return Io(e.b,Wf,e.a)}function ea(e){return e.b.get(Wf,e.a).then(function(e){return"pending"==e})}function ta(e,t,n){this.v=e,this.m=t,this.l=n,this.h=[],this.f=!1,this.i=d(this.o,this),this.c=new ua,this.u=new ma,this.g=new $o(this.m+":"+this.l),this.b={},this.b.unknown=this.c,this.b.signInViaRedirect=this.c,this.b.linkViaRedirect=this.c,this.b.reauthViaRedirect=this.c,this.b.signInViaPopup=this.u,this.b.linkViaPopup=this.u,this.b.reauthViaPopup=this.u,this.a=na(this.v,this.m,this.l,Gc)}function na(e,t,n,i){var o=r.a.SDK_VERSION||null;return Yt()?new Vo(e,t,n,o,i):new $i(e,t,n,o,i)}function ra(e){e.f||(e.f=!0,e.a.va(e.i));var t=e.a;return e.a.ga().s(function(n){throw e.a==t&&e.reset(),n})}function ia(e){e.a.Ib()&&ra(e).s(function(t){var n=new wr("unknown",null,null,null,new Pn("operation-not-supported-in-this-environment"));aa(t)&&e.o(n)}),e.a.Db()||la(e.c)}function oa(e,t,n,r,i,o){return e.a.zb(t,n,r,function(){e.f||(e.f=!0,e.a.va(e.i))},function(){e.reset()},i,o)}function aa(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function sa(e,t,n){var r=t+":"+n;return Gf[r]||(Gf[r]=new ta(e,t,n)),Gf[r]}function ua(){this.b=null,this.f=[],this.c=[],this.a=null,this.g=!1}function la(e){e.g||(e.g=!0,ha(e,!1,null,null))}function ca(e,t,n){n=n.wa(t.b,t.c);var r=t.f,i=t.g,o=!!t.b.match(/Redirect$/);n(r,i).then(function(t){ha(e,o,t,null)}).s(function(t){ha(e,o,null,t)})}function fa(e,t){if(e.b=function(){return X(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}function da(e,t){if(e.b=function(){return Y(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function ha(e,t,n,r){t?r?fa(e,r):da(e,n):da(e,{user:null}),e.f=[],e.c=[]}function pa(e){var t=new Pn("timeout");e.a&&e.a.cancel(),e.a=Ve(Kf.get()).then(function(){e.b||ha(e,!0,null,t)})}function ma(){}function va(e,t){var n=e.c,r=e.b;t.wa(r,n)(e.f,e.g).then(function(e){t.ha(r,e,null,n)}).s(function(e){t.ha(r,null,e,n)})}function ya(){this.pb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.pb},set:function(e){this.pb=e},enumerable:!1})}function ga(e,t){this.a=t,Tn(this,"verificationId",e)}function ba(e,t,n,r){return new vr(e).Ta(t,n).then(function(e){return new ga(e,r)})}function wa(e){var t=Bn(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new Pn("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");xn(this,{token:e,expirationTime:wn(1e3*t.exp),authTime:wn(1e3*t.auth_time),issuedAtTime:wn(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,claims:t})}function _a(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function Ea(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}function Ta(e,t){e.stop(),e.b=Ve(Ea(e,t)).then(function(){return bn()}).then(function(){return e.h()}).then(function(){Ta(e,!0)}).s(function(t){e.i(t)&&Ta(e,!1)})}function xa(e){this.f=e,this.b=this.a=null,this.c=0}function Sa(e,t){var n=t[Uc],r=t.refreshToken;t=Ca(t.expiresIn),e.b=n,e.c=t,e.a=r}function ka(e,t){e.b=t.b,e.a=t.a,e.c=t.c}function Ca(e){return Cu()+1e3*parseInt(e,10)}function Oa(e,t){return Ei(e.f,t).then(function(t){return e.b=t.access_token,e.c=Ca(t.expires_in),e.a=t.refresh_token,{accessToken:e.b,expirationTime:e.c,refreshToken:e.a}}).s(function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t})}function Na(e,t){this.a=e||null,this.b=t||null,xn(this,{lastSignInTime:wn(t||null),creationTime:wn(e||null)})}function Pa(e){return new Na(e.a,e.b)}function Ia(e,t,n,r,i,o){xn(this,{uid:e,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:t})}function Aa(e,t){ge.call(this,e);for(var n in t)this[n]=t[n]}function Da(e,t,n){this.G=[],this.l=e.apiKey,this.o=e.appName,this.u=e.authDomain||null,e=r.a.SDK_VERSION?nn(r.a.SDK_VERSION):null,this.b=new yi(this.l,Vi(Gc),e),this.h=new xa(this.b),qa(this,t[Uc]),Sa(this.h,t),Tn(this,"refreshToken",this.h.a),Ha(this,n||{}),je.call(this),this.I=!1,this.u&&sn()&&(this.a=sa(this.u,this.l,this.o)),this.N=[],this.i=null,this.w=Fa(this),this.V=d(this.Ha,this);var i=this;this.ka=null,this.sa=function(e){i.oa(e.g)},this.X=null,this.O=[],this.ra=function(e){Ma(i,e.c)},this.W=null}function Ra(e,t){e.X&&Ne(e.X,"languageCodeChanged",e.sa),(e.X=t)&&Se(t,"languageCodeChanged",e.sa)}function Ma(e,t){e.O=t,bi(e.b,r.a.SDK_VERSION?nn(r.a.SDK_VERSION,e.O):null)}function La(e,t){e.W&&Ne(e.W,"frameworkChanged",e.ra),(e.W=t)&&Se(t,"frameworkChanged",e.ra)}function ja(e){try{return r.a.app(e.o).auth()}catch(t){throw new Pn("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.o+"'!")}}function Fa(e){return new _a(function(){return e.F(!0)},function(e){return!(!e||"auth/network-request-failed"!=e.code)},function(){var t=e.h.c-Cu()-3e5;return 0<t?t:0})}function Ua(e){e.C||e.w.b||(e.w.start(),Ne(e,"tokenChanged",e.V),Se(e,"tokenChanged",e.V))}function Ba(e){Ne(e,"tokenChanged",e.V),e.w.stop()}function qa(e,t){e.qa=t,Tn(e,"_lat",t)}function Va(e,t){N(e.N,function(e){return e==t})}function za(e){for(var t=[],n=0;n<e.N.length;n++)t.push(e.N[n](e));return Z(t).then(function(){return e})}function Wa(e){e.a&&!e.I&&(e.I=!0,e.a.subscribe(e))}function Ha(e,t){xn(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,metadata:new Na(t.createdAt,t.lastLoginAt),providerData:[]})}function Ka(){}function Ga(e){return Y().then(function(){if(e.C)throw new Pn("app-deleted")})}function Qa(e){return Au(e.providerData,function(e){return e.providerId})}function Ya(e,t){t&&(Xa(e,t.providerId),e.providerData.push(t))}function Xa(e,t){N(e.providerData,function(e){return e.providerId==t})}function $a(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Tn(e,t,n)}function Ja(e,t){e!=t&&(xn(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,providerData:[]}),t.metadata?Tn(e,"metadata",Pa(t.metadata)):Tn(e,"metadata",new Na),Iu(t.providerData,function(t){Ya(e,t)}),ka(e.h,t.h),Tn(e,"refreshToken",e.h.a))}function Za(e){return e.F().then(function(t){var n=e.isAnonymous;return ts(e,t).then(function(){return n||$a(e,"isAnonymous",!1),t})})}function es(e,t){t[Uc]&&e.qa!=t[Uc]&&(Sa(e.h,t),e.dispatchEvent(new Aa("tokenChanged")),qa(e,t[Uc]),$a(e,"refreshToken",e.h.a))}function ts(e,t){return Ui(e.b,nf,{idToken:t}).then(d(e.uc,e))}function ns(e){return(e=e.providerUserInfo)&&e.length?Au(e,function(e){return new Ia(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)}):[]}function rs(e,t){return Za(e).then(function(){if(C(Qa(e),t))return za(e).then(function(){throw new Pn("provider-already-linked")})})}function is(e,t,n){var r=gr(t);return t=Vn(t),Sn({user:e,credential:r,additionalUserInfo:t,operationType:n})}function os(e,t){return es(e,t),e.reload().then(function(){return e})}function as(e,t,n,i,o){if(!sn())return X(new Pn("operation-not-supported-in-this-environment"));if(e.i&&!o)return X(e.i);var a=qn(n.providerId),s=pn(e.uid+":::"),u=null;(!cn()||Xt())&&e.u&&n.isOAuthProvider&&(u=to(e.u,e.l,e.o,t,n,null,s,r.a.SDK_VERSION||null));var l=Ht(u,a&&a.Ba,a&&a.Aa);return i=i().then(function(){if(us(e),!o)return e.F().then(function(){})}).then(function(){return oa(e.a,l,t,n,s,!!u)}).then(function(){return new K(function(n,r){e.ha(t,null,new Pn("cancelled-popup-request"),e.g||null),e.f=n,e.v=r,e.g=s,e.c=e.a.Ea(e,t,l,s)})}).then(function(e){return l&&Wt(l),e?Sn(e):null}).s(function(e){throw l&&Wt(l),e}),ls(e,i,o)}function ss(e,t,n,r,i){if(!sn())return X(new Pn("operation-not-supported-in-this-environment"));if(e.i&&!i)return X(e.i);var o=null,a=pn(e.uid+":::");return r=r().then(function(){if(us(e),!i)return e.F().then(function(){})}).then(function(){return e.aa=a,za(e)}).then(function(t){return e.ba&&(t=e.ba,t=t.b.set(Qf,e.D(),t.a)),t}).then(function(){return e.a.Ca(t,n,a)}).s(function(t){if(o=t,e.ba)return ms(e.ba);throw o}).then(function(){if(o)throw o}),ls(e,r,i)}function us(e){if(!e.a||!e.I){if(e.a&&!e.I)throw new Pn("internal-error");throw new Pn("auth-domain-config-required")}}function ls(e,t,n){var r=cs(e,t,n);return e.G.push(r),r.ia(function(){O(e.G,r)}),r}function cs(e,t,n){return e.i&&!n?(t.cancel(),X(e.i)):t.s(function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.i||e.dispatchEvent(new Aa("userInvalidated")),e.i=t),t})}function fs(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName},n={};if(!(e.stsTokenManager&&e.stsTokenManager.accessToken&&e.stsTokenManager.expirationTime))return null;n[Uc]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null,n.expiresIn=(e.stsTokenManager.expirationTime-Cu())/1e3;var r=new Da(t,n,e);return e.providerData&&Iu(e.providerData,function(e){e&&Ya(r,Sn(e))}),e.redirectEventId&&(r.aa=e.redirectEventId),r}function ds(e,t,n,r){var i=new Da(e,t);return n&&(i.ba=n),r&&Ma(i,r),i.reload().then(function(){return i})}function hs(e,t,n,r){t=t||{apiKey:e.l,authDomain:e.u,appName:e.o};var i=e.h,o={};return o[Uc]=i.b,o.refreshToken=i.a,o.expiresIn=(i.c-Cu())/1e3,t=new Da(t,o),n&&(t.ba=n),r&&Ma(t,r),Ja(t,e),t}function ps(e){this.a=e,this.b=Co()}function ms(e){return Io(e.b,Qf,e.a)}function vs(e,t){return e.b.get(Qf,e.a).then(function(e){return e&&t&&(e.authDomain=t),fs(e||{})})}function ys(e){this.a=e,this.b=Co(),this.c=null,this.f=bs(this),this.b.addListener(ws("local"),this.a,d(this.g,this))}function gs(e,t){var n,r=[];for(n in Rf)Rf[n]!==t&&r.push(Io(e.b,ws(Rf[n]),e.a));return r.push(Io(e.b,Yf,e.a)),J(r)}function bs(e){var t=ws("local"),n=ws("session"),r=ws("none");return Po(e.b,t,e.a).then(function(){return e.b.get(n,e.a)}).then(function(i){return i?n:e.b.get(r,e.a).then(function(n){return n?r:e.b.get(t,e.a).then(function(n){return n?t:e.b.get(Yf,e.a).then(function(e){return e?ws(e):t})})})}).then(function(t){return e.c=t,gs(e,t.A)}).s(function(){e.c||(e.c=t)})}function ws(e){return{name:"authUser",A:e}}function _s(e){return Ss(e,function(){return e.b.set(Yf,e.c.A,e.a)})}function Es(e,t){return Ss(e,function(){return e.b.set(e.c,t.D(),e.a)})}function Ts(e){return Ss(e,function(){return Io(e.b,e.c,e.a)})}function xs(e,t){return Ss(e,function(){return e.b.get(e.c,e.a).then(function(e){return e&&t&&(e.authDomain=t),fs(e||{})})})}function Ss(e,t){return e.f=e.f.then(t,t),e.f}function ks(e){if(this.l=!1,Tn(this,"settings",new ya),Tn(this,"app",e),!Fs(this).options||!Fs(this).options.apiKey)throw new Pn("invalid-api-key");e=r.a.SDK_VERSION?nn(r.a.SDK_VERSION):null,this.b=new yi(Fs(this).options&&Fs(this).options.apiKey,Vi(Gc),e),this.N=[],this.o=[],this.I=[],this.Pb=r.a.INTERNAL.createSubscribe(d(this.ic,this)),this.O=void 0,this.Qb=r.a.INTERNAL.createSubscribe(d(this.jc,this)),Ds(this,null),this.h=new ys(Fs(this).options.apiKey+":"+Fs(this).name),this.w=new ps(Fs(this).options.apiKey+":"+Fs(this).name),this.V=zs(this,Ms(this)),this.i=zs(this,Ls(this)),this.X=!1,this.ka=d(this.Jc,this),this.Ha=d(this.Z,this),this.qa=d(this.Yb,this),this.ra=d(this.gc,this),this.sa=d(this.hc,this),Is(this),this.INTERNAL={},this.INTERNAL.delete=d(this.delete,this),this.INTERNAL.logFramework=d(this.qc,this),this.u=0,je.call(this),Ns(this),this.G=[]}function Cs(e){ge.call(this,"languageCodeChanged"),this.g=e}function Os(e){ge.call(this,"frameworkChanged"),this.c=e}function Ns(e){Object.defineProperty(e,"lc",{get:function(){return this.ea()},set:function(e){this.oa(e)},enumerable:!1}),e.W=null}function Ps(e){return e.Ob||X(new Pn("auth-domain-config-required"))}function Is(e){var t=Fs(e).options.authDomain,n=Fs(e).options.apiKey;t&&sn()&&(e.Ob=e.V.then(function(){if(!e.l){if(e.a=sa(t,n,Fs(e).name),e.a.subscribe(e),Us(e)&&Wa(Us(e)),e.C){Wa(e.C);var r=e.C;r.oa(e.ea()),Ra(r,e),r=e.C,Ma(r,e.G),La(r,e),e.C=null}return e.a}}))}function As(e,t){var n={};return n.apiKey=Fs(e).options.apiKey,n.authDomain=Fs(e).options.authDomain,n.appName=Fs(e).name,e.V.then(function(){return ds(n,t,e.w,e.xa())}).then(function(t){return Us(e)&&t.uid==Us(e).uid?(Ja(Us(e),t),e.Z(t)):(Ds(e,t),Wa(t),e.Z(t))}).then(function(){qs(e)})}function Ds(e,t){Us(e)&&(Va(Us(e),e.Ha),Ne(Us(e),"tokenChanged",e.qa),Ne(Us(e),"userDeleted",e.ra),Ne(Us(e),"userInvalidated",e.sa),Ba(Us(e))),t&&(t.N.push(e.Ha),Se(t,"tokenChanged",e.qa),Se(t,"userDeleted",e.ra),Se(t,"userInvalidated",e.sa),0<e.u&&Ua(t)),Tn(e,"currentUser",t),t&&(t.oa(e.ea()),Ra(t,e),Ma(t,e.G),La(t,e))}function Rs(e){var t=vs(e.w,Fs(e).options.authDomain).then(function(t){return(e.C=t)&&(t.ba=e.w),ms(e.w)});return zs(e,t)}function Ms(e){var t=Fs(e).options.authDomain,n=Rs(e).then(function(){return xs(e.h,t)}).then(function(t){return t?(t.ba=e.w,e.C&&(e.C.aa||null)==(t.aa||null)?t:t.reload().then(function(){return Es(e.h,t).then(function(){return t})}).s(function(n){return"auth/network-request-failed"==n.code?t:Ts(e.h)})):null}).then(function(t){Ds(e,t||null)});return zs(e,n)}function Ls(e){return e.V.then(function(){return e.fa()}).s(function(){}).then(function(){if(!e.l)return e.ka()}).s(function(){}).then(function(){if(!e.l){e.X=!0;var t=e.h;t.b.addListener(ws("local"),t.a,e.ka)}})}function js(e,t){var n=null,r=null;return zs(e,t.then(function(t){return n=gr(t),r=Vn(t),As(e,t)}).then(function(){return Sn({user:Us(e),credential:n,additionalUserInfo:r,operationType:"signIn"})}))}function Fs(e){return e.app}function Us(e){return e.currentUser}function Bs(e){return Us(e)&&Us(e)._lat||null}function qs(e){if(e.X){for(var t=0;t<e.o.length;t++)e.o[t]&&e.o[t](Bs(e));if(e.O!==e.getUid()&&e.I.length)for(e.O=e.getUid(),t=0;t<e.I.length;t++)e.I[t]&&e.I[t](Bs(e))}}function Vs(e,t){e.I.push(t),zs(e,e.i.then(function(){!e.l&&C(e.I,t)&&e.O!==e.getUid()&&(e.O=e.getUid(),t(Bs(e)))}))}function zs(e,t){return e.N.push(t),t.ia(function(){O(e.N,t)}),t}function Ws(){}function Hs(){this.a={},this.b=1e12}function Ks(e,t){return(t=Gs(t))?e.a[t]||null:null}function Gs(e){return(e="undefined"===typeof e?1e12:e)?e.toString():null}function Qs(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=Nt(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():Se(this.f,"click",this.i)}function Ys(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function Xs(){}function $s(){this.b=xu.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}function Js(e,t,n,r,i,o,a){if(Tn(this,"type","recaptcha"),this.c=this.f=null,this.C=!1,this.l=t,this.g=null,a?($f||($f=new Xs),a=$f):(ed||(ed=new $s),a=ed),this.o=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[rd])throw new Pn("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[id],!xu.document)throw new Pn("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!Nt(t)||!this.i&&Nt(t).hasChildNodes())throw new Pn("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.u=new yi(e,o||null,i||null),this.v=r||function(){return null};var s=this;this.m=[];var u=this.a[td];this.a[td]=function(e){if(Zs(s,e),"function"===typeof u)u(e);else if("string"===typeof u){var t=on(u,xu);"function"===typeof t&&t(e)}};var l=this.a[nd];this.a[nd]=function(){if(Zs(s,null),"function"===typeof l)l();else if("string"===typeof l){var e=on(l,xu);"function"===typeof e&&e()}}}function Zs(e,t){for(var n=0;n<e.m.length;n++)try{e.m[n](t)}catch(e){}}function eu(e,t){N(e.m,function(e){return e==t})}function tu(e,t){return e.h.push(t),t.ia(function(){O(e.h,t)}),t}function nu(e){if(e.C)throw new Pn("internal-error","RecaptchaVerifier instance has been destroyed.")}function ru(e,t,n){var i=!1;try{this.b=n||r.a.app()}catch(e){throw new Pn("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new Pn("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().xa()}catch(e){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(e){}a=r.a.SDK_VERSION?nn(r.a.SDK_VERSION,a):null,Js.call(this,n,e,t,function(){try{var e=o.b.auth().ea()}catch(t){e=null}return e},a,Vi(Gc),i)}function iu(e,t,n,r){e:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,a=0;a<t.length;a++)if(t[a].optional)o=!0;else{if(o)throw new Pn("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(o=t.length,n.length<i||o<n.length)r="Expected "+(i==o?1==i?"1 argument":i+" arguments":i+"-"+o+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(o=t[i].optional&&void 0===n[i],!t[i].M(n[i])&&!o){if(t=t[i],0>i||i>=od.length)throw new Pn("internal-error","Argument validator received an unsupported number of arguments.");n=od[i],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.K+".";break e}r=null}}if(r)throw new Pn("argument-error",e+" failed: "+r)}function ou(t,n){return{name:t||"",K:"a valid string",optional:!!n,M:e}}function au(e,n){return{name:e||"",K:"a boolean",optional:!!n,M:t}}function su(e,t){return{name:e||"",K:"a valid object",optional:!!t,M:l}}function uu(e,t){return{name:e||"",K:"a function",optional:!!t,M:u}}function lu(e,t){return{name:e||"",K:"null",optional:!!t,M:o}}function cu(){return{name:"",K:"an HTML element",optional:!1,M:function(e){return!!(e&&e instanceof Element)}}}function fu(){return{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(e){return!!(e&&e instanceof ks)}}}function du(){return{name:"app",K:"an instance of Firebase App",optional:!0,M:function(e){return!!(e&&e instanceof r.a.app.App)}}}function hu(e){return{name:e?e+"Credential":"credential",K:e?"a valid "+e+" credential":"a valid credential",optional:!1,M:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ya||!n)}}}function pu(){return{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}}function mu(){return{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!!(t&&e(t.type)&&u(t.verify))}}}function vu(e,t,n,r){return{name:n||"",K:e.K+" or "+t.K,optional:!!r,M:function(n){return e.M(n)||t.M(n)}}}function yu(e,t){for(var n in t){var r=t[n].name;e[r]=wu(r,e[n],t[n].j)}}function gu(e,t){for(var n in t){var r=t[n].name;if(r!==n){var i=t[n].qb;Object.defineProperty(e,r,{get:function(){return this[n]},set:function(e){iu(r,[i],[e],!0),this[n]=e},enumerable:!0})}}}function bu(e,t,n,r){e[t]=wu(t,n,r)}function wu(e,t,n){function r(){var e=Array.prototype.slice.call(arguments);return iu(o,n,e),t.apply(this,e)}if(!n)return t;var i,o=_u(e);for(i in t)r[i]=t[i];for(i in t.prototype)r.prototype[i]=t.prototype[i];return r}function _u(e){return e=e.split("."),e[e.length-1]}var Eu,Tu=Tu||{},xu=this,Su="closure_uid_"+(1e9*Math.random()>>>0),ku=0,Cu=Date.now||function(){return+new Date};p(y,Error),y.prototype.name="CustomError",p(g,y),g.prototype.name="AssertionError",w.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var Ou=new w(function(){return new x},function(e){e.reset()});E.prototype.add=function(e,t){var n=Ou.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},x.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},x.prototype.reset=function(){this.next=this.b=this.a=null};var Nu,Pu=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(t,n){if(e(t))return e(n)&&1==n.length?t.indexOf(n,0):-1;for(var r=0;r<t.length;r++)if(r in t&&t[r]===n)return r;return-1},Iu=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(t,n,r){for(var i=t.length,o=e(t)?t.split(""):t,a=0;a<i;a++)a in o&&n.call(r,o[a],a,t)},Au=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(t,n){for(var r=t.length,i=Array(r),o=e(t)?t.split(""):t,a=0;a<r;a++)a in o&&(i[a]=n.call(void 0,o[a],a,t));return i},Du=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(t,n){for(var r=t.length,i=e(t)?t.split(""):t,o=0;o<r;o++)if(o in i&&n.call(void 0,i[o],o,t))return!0;return!1},Ru=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},Mu=/&/g,Lu=/</g,ju=/>/g,Fu=/"/g,Uu=/'/g,Bu=/\x00/g,qu=/[\x00&<>"']/;e:{var Vu=xu.navigator;if(Vu){var zu=Vu.userAgent;if(zu){Nu=zu;break e}}Nu=""}var Wu,Hu,Ku="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Gu=!1,Qu=new E,Yu=0,Xu=2,$u=3;G.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Ju=new w(function(){return new G},function(e){e.reset()});K.prototype.then=function(e,t,n){return ne(this,u(e)?e:null,u(t)?t:null,n)},m(K),Eu=K.prototype,Eu.ia=function(e,t){return e=Q(e,e,t),e.c=!0,te(this,e),this},Eu.s=function(e,t){return ne(this,null,e,t)},Eu.cancel=function(e){this.a==Yu&&z(function(){ee(this,new fe(e))},this)},Eu.Lc=function(e){this.a=Yu,re(this,Xu,e)},Eu.Mc=function(e){this.a=Yu,re(this,$u,e)},Eu.Ub=function(){for(var e;e=se(this);)ue(this,e,this.a,this.i);this.h=!1};var Zu=q;p(fe,y),fe.prototype.name="cancel";var el=0,tl={};de.prototype.pa=!1,de.prototype.ua=function(){if(this.ja)for(;this.ja.length;)this.ja.shift()()},pe[" "]=n;var nl,rl=L("Opera"),il=L("Trident")||L("MSIE"),ol=L("Edge"),al=ol||il,sl=L("Gecko")&&!(R(Nu.toLowerCase(),"webkit")&&!L("Edge"))&&!(L("Trident")||L("MSIE"))&&!L("Edge"),ul=R(Nu.toLowerCase(),"webkit")&&!L("Edge");e:{var ll="",cl=function(){var e=Nu;return sl?/rv:([^\);]+)(\)|;)/.exec(e):ol?/Edge\/([\d\.]+)/.exec(e):il?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):ul?/WebKit\/(\S+)/.exec(e):rl?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(cl&&(ll=cl?cl[1]:""),il){var fl=ve();if(null!=fl&&fl>parseFloat(ll)){nl=String(fl);break e}}nl=ll}var dl,hl={},pl=xu.document;dl=pl&&il?ve()||("CSS1Compat"==pl.compatMode?parseInt(nl,10):5):void 0;var ml=Object.freeze||function(e){return e},vl=!il||9<=Number(dl),yl=il&&!ye("9"),gl=function(){if(!xu.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});return xu.addEventListener("test",n,t),xu.removeEventListener("test",n,t),e}();ge.prototype.preventDefault=function(){this.Gb=!1},p(be,ge);var bl=ml({2:"touch",3:"pen",4:"mouse"});be.prototype.preventDefault=function(){be.lb.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,yl)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}},be.prototype.f=function(){return this.a};var wl="closure_listenable_"+(1e6*Math.random()|0),_l=0;Ee.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=xe(e,t,r,i);return-1<a?(t=e[a],n||(t.Ia=!1)):(t=new we(t,this.src,o,!!r,i),t.Ia=n,e.push(t)),t};var El="closure_lm_"+(1e6*Math.random()|0),Tl={},xl=0,Sl="__closure_events_fn_"+(1e9*Math.random()>>>0);p(je,de),je.prototype[wl]=!0,je.prototype.addEventListener=function(e,t,n,r){Se(this,e,t,n,r)},je.prototype.removeEventListener=function(e,t,n,r){Ne(this,e,t,n,r)},je.prototype.dispatchEvent=function(t){var n,r=this.Ua;if(r)for(n=[];r;r=r.Ua)n.push(r);r=this.Nb;var i=t.type||t;if(e(t))t=new ge(t,r);else if(t instanceof ge)t.target=t.target||r;else{var o=t;t=new ge(i,r),B(t,o)}if(o=!0,n)for(var a=n.length-1;0<=a;a--){var s=t.b=n[a];o=Be(s,i,!0,t)&&o}if(s=t.b=r,o=Be(s,i,!0,t)&&o,o=Be(s,i,!1,t)&&o,n)for(a=0;a<n.length;a++)s=t.b=n[a],o=Be(s,i,!1,t)&&o;return o},je.prototype.ua=function(){if(je.lb.ua.call(this),this.m){var e,t=this.m,n=0;for(e in t.a){for(var r=t.a[e],i=0;i<r.length;i++)++n,_e(r[i]);delete t.a[e],t.b--}}this.Ua=null},Eu=Ke.prototype,Eu.S=function(){Ge(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},Eu.U=function(){return Ge(this),this.a.concat()},Eu.clear=function(){this.b={},this.c=this.a.length=0},Eu.get=function(e,t){return Qe(this.b,e)?this.b[e]:t},Eu.set=function(e,t){Qe(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},Eu.forEach=function(e,t){for(var n=this.U(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var kl=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;Xe.prototype.toString=function(){var e=[],t=this.c;t&&e.push(ot(t,Cl,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.m)&&e.push(ot(t,Cl,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&e.push(":",String(n))),(n=this.g)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(ot(n,"/"==n.charAt(0)?Nl:Ol,!0))),(n=this.a.toString())&&e.push("?",n),(n=this.h)&&e.push("#",ot(n,Il)),e.join("")};var Cl=/[#\/\?@]/g,Ol=/[#\?:]/g,Nl=/[#\?]/g,Pl=/[#\?@]/g,Il=/#/g;Eu=st.prototype,Eu.add=function(e,t){ut(this),this.c=null,e=ht(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},Eu.clear=function(){this.a=this.c=null,this.b=0},Eu.forEach=function(e,t){ut(this),this.a.forEach(function(n,r){Iu(n,function(n){e.call(t,n,r,this)},this)},this)},Eu.U=function(){ut(this);for(var e=this.a.S(),t=this.a.U(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},Eu.S=function(t){ut(this);var n=[];if(e(t))ft(this,t)&&(n=P(n,this.a.get(ht(this,t))));else{t=this.a.S();for(var r=0;r<t.length;r++)n=P(n,t[r])}return n},Eu.set=function(e,t){return ut(this),this.c=null,e=ht(this,e),ft(this,e)&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},Eu.get=function(e,t){return e=e?this.S(e):[],0<e.length?String(e[0]):t},Eu.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.U(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.S(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),e.push(a)}}return this.c=e.join("&")};var Al=!il||9<=Number(dl);mt.prototype.ma=!0,mt.prototype.la=function(){return this.a},mt.prototype.toString=function(){return"Const{"+this.a+"}"};var Dl={};yt(""),gt.prototype.ma=!0,gt.prototype.la=function(){return this.a},gt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Rl=/%{(\w+)}/g,Ml=/^(?:https:)?\/\/[0-9a-z.:[\]-]+\/|^\/[^\/\\]|^about:blank#/i,Ll={};Et.prototype.ma=!0,Et.prototype.la=function(){return this.a},Et.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var jl=/^(?:(?:https?|mailto|ftp):|[^:\/?#]*(?:[\/?#]|$))/i,Fl={};St("about:blank"),kt.prototype.ma=!0,kt.prototype.la=function(){return this.a},kt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ul={};Ot("<!DOCTYPE html>"),Ot(""),Ot("
");var Bl={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},ql={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Vl=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,zl=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Wl="Firefox",Hl="Chrome",Kl={Sc:"FirebaseCore-web",Uc:"FirebaseUI-web"};yn.prototype.get=function(){var e=xu.navigator;return(e&&"boolean"===typeof e.onLine&&(un()||"chrome-extension:"===ln()||"undefined"!==typeof e.connection)?e.onLine:1)?this.b?this.c:this.a:Math.min(5e3,this.a)};var Gl,Ql={};try{var Yl={};Object.defineProperty(Yl,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Yl,"abcd",{configurable:!0,enumerable:!0,value:2}),Gl=2==Yl.abcd}catch(e){Gl=!1}var Xl="EMAIL_SIGNIN",$l="email",Jl="newEmail",Zl="requestType",ec="email",tc="fromEmail",nc="data",rc="operation";p(Pn,Error),Pn.prototype.D=function(){return{code:this.code,message:this.message}},Pn.prototype.toJSON=function(){return this.D()};var ic="auth/",oc={"argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","user-cancelled":"User did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},ac="android",sc="handleCodeInApp",uc="iOS",lc="url",cc="installApp",fc="minimumVersion",dc="packageName",hc="bundleId",pc=null,mc=null;Fn.prototype.f=function(){return this.b};var vc="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),yc=["client_id","response_type","scope","redirect_uri","state"],gc={Tc:{Ma:"locale",Ba:500,Aa:600,Na:"facebook.com",eb:yc},Vc:{Ma:null,Ba:500,Aa:620,Na:"github.com",eb:yc},Wc:{Ma:"hl",Ba:515,Aa:680,Na:"google.com",eb:yc},bd:{Ma:"lang",Ba:485,Aa:705,Na:"twitter.com",eb:vc}},bc="idToken",wc="providerId";p(Wn,zn),p(Hn,Wn),p(Kn,Wn),p(Gn,Wn),p(Qn,Wn),Jn.prototype.ya=function(e){return Mi(e,Zn(this))},Jn.prototype.c=function(e,t){var n=Zn(this);return n.idToken=t,Li(e,n)},Jn.prototype.f=function(e,t){return $n(ji(e,Zn(this)),t)},Jn.prototype.D=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),e},er.prototype.Da=function(e){return this.vb=U(e),this},p(tr,er),tr.prototype.ta=function(e){return C(this.a,e)||this.a.push(e),this},tr.prototype.Ab=function(){return I(this.a)},tr.prototype.credential=function(e,t){if(!e&&!t)throw new Pn("argument-error","credential failed: must provide the ID token and/or the access token.");return new Jn(this.providerId,{idToken:e||null,accessToken:t||null},this.providerId)},p(nr,tr),Tn(nr,"PROVIDER_ID","facebook.com"),Tn(nr,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),p(ir,tr),Tn(ir,"PROVIDER_ID","github.com"),Tn(ir,"GITHUB_SIGN_IN_METHOD","github.com"),p(ar,tr),Tn(ar,"PROVIDER_ID","google.com"),Tn(ar,"GOOGLE_SIGN_IN_METHOD","google.com"),p(ur,er),Tn(ur,"PROVIDER_ID","twitter.com"),Tn(ur,"TWITTER_SIGN_IN_METHOD","twitter.com"),cr.prototype.ya=function(e){return this.signInMethod==fr.EMAIL_LINK_SIGN_IN_METHOD?Ui(e,ef,{email:this.a,oobCode:this.b}):Ui(e,gf,{email:this.a,password:this.b})},cr.prototype.c=function(e,t){return this.signInMethod==fr.EMAIL_LINK_SIGN_IN_METHOD?Ui(e,tf,{idToken:t,email:this.a,oobCode:this.b}):Ui(e,df,{idToken:t,email:this.a,password:this.b})},cr.prototype.f=function(e,t){return $n(this.ya(e),t)},cr.prototype.D=function(){return{email:this.a,password:this.b,signInMethod:this.signInMethod}},xn(fr,{PROVIDER_ID:"password"}),xn(fr,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),xn(fr,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),pr.prototype.ya=function(e){return e.Ta(mr(this))},pr.prototype.c=function(e,t){var n=mr(this);return n.idToken=t,Ui(e,wf,n)},pr.prototype.f=function(e,t){var n=mr(this);return n.operation="REAUTH",e=Ui(e,_f,n),$n(e,t)},pr.prototype.D=function(){var e={providerId:"phone"};return this.a.Sa&&(e.verificationId=this.a.Sa),this.a.Ra&&(e.verificationCode=this.a.Ra),this.a.Fa&&(e.temporaryProof=this.a.Fa),this.a.$&&(e.phoneNumber=this.a.$),e},vr.prototype.Ta=function(t,n){var r=this.a.b;return Y(n.verify()).then(function(i){if(!e(i))throw new Pn("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(n.type){case"recaptcha":return Ii(r,{phoneNumber:t,recaptchaToken:i}).then(function(e){return"function"===typeof n.reset&&n.reset(),e},function(e){throw"function"===typeof n.reset&&n.reset(),e});default:throw new Pn("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},xn(vr,{PROVIDER_ID:"phone"}),xn(vr,{PHONE_SIGN_IN_METHOD:"phone"}),wr.prototype.D=function(){return{type:this.b,eventId:this.c,urlResponse:this.f,sessionId:this.g,error:this.a&&this.a.D()}};var _c=null;Er.prototype.subscribe=function(e){var t=this;this.a.push(e),this.b||(this.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"===typeof(e=on("universalLinks.subscribe",xu))&&e(null,this.b))},Er.prototype.unsubscribe=function(e){N(this.a,function(t){return t==e})},p(Tr,Pn),p(xr,Pn),xr.prototype.D=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber);var t=this.credential&&this.credential.D();return t&&B(e,t),e},xr.prototype.toJSON=function(){return this.D()};var Ec=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;kr.prototype.c=null;var Tc;p(Or,kr),Or.prototype.a=function(){var e=Nr(this);return e?new ActiveXObject(e):new XMLHttpRequest},Or.prototype.b=function(){var e={};return Nr(this)&&(e[0]=!0,e[1]=!0),e},Tc=new Or,p(Pr,kr),Pr.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Ir;throw Error("Unsupported browser")},Pr.prototype.b=function(){return{}},Eu=Ir.prototype,Eu.open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},Eu.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},Eu.abort=function(){this.a.abort()},Eu.setRequestHeader=function(){},Eu.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},Eu.bc=function(){this.status=200,this.responseText=this.a.responseText,Ar(this,4)},Eu.Bb=function(){this.status=500,this.responseText="",Ar(this,4)},Eu.fc=function(){this.Bb()},Eu.cc=function(){this.status=200,Ar(this,1)},Eu.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Dr.prototype.a=null;var xc=0;Dr.prototype.reset=function(e,t,n,r,i){"number"==typeof i||xc++,r||Cu(),delete this.a},Mr.prototype.toString=function(){return this.name};var Sc=new Mr("SEVERE",1e3),kc=new Mr("WARNING",900),Cc=new Mr("CONFIG",700),Oc=new Mr("FINE",500);Rr.prototype.log=function(e,t,n){if(e.value>=Lr(this).value)for(u(t)&&(t=t()),e=new Dr(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var Nc={},Pc=null;p(Ur,kr),Ur.prototype.a=function(){return new Br(this.f)},Ur.prototype.b=function(e){return function(){return e}}({}),p(Br,je);var Ic=0;Eu=Br.prototype,Eu.open=function(e,t){if(this.readyState!=Ic)throw this.abort(),Error("Error reopening a connection");this.h=e,this.c=t,this.readyState=1,qr(this)},Eu.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.g,method:this.h,credentials:void 0,cache:void 0};e&&(t.body=e),this.i.fetch(new Request(this.c,t)).then(this.ec.bind(this),this.Cb.bind(this))},Eu.abort=function(){this.responseText="",this.g=new Headers,this.status=0,1<=this.readyState&&this.a&&4!=this.readyState&&(this.readyState=4,this.a=!1,qr(this)),this.readyState=Ic},Eu.ec=function(e){this.a&&(this.b||(this.b=e.headers,this.readyState=2,qr(this)),this.a&&(this.readyState=3,qr(this),this.a&&e.text().then(this.dc.bind(this,e),this.Cb.bind(this))))},Eu.dc=function(e,t){this.a&&(this.status=e.status,this.statusText=e.statusText,this.responseText=t,this.readyState=4,qr(this))},Eu.Cb=function(e){var t=this.f;t&&t.log(kc,"Failed to fetch url "+this.c,e instanceof Error?e:Error(e)),this.a&&(this.readyState=4,qr(this))},Eu.setRequestHeader=function(e,t){this.g.append(e,t)},Eu.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.f)&&e.log(kc,"Attempting to get response header but no headers have been received for url: "+this.c,void 0),"")},Eu.getAllResponseHeaders=function(){if(!this.b){var e=this.f;return e&&e.log(kc,"Attempting to get all response headers but no headers have been received for url: "+this.c,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},p(Vr,je);var Ac="";Vr.prototype.b=jr("goog.net.XhrIo");var Dc=/^https?$/i,Rc=["POST","PUT"];Eu=Vr.prototype,Eu.Ga=function(){"undefined"!=typeof Tu&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",Fr(this.b,ei(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},Eu.abort=function(){this.a&&this.c&&(Fr(this.b,ei(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Yr(this))},Eu.ua=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Yr(this,!0)),Vr.lb.ua.call(this)},Eu.Fb=function(){this.pa||(this.I||this.i||this.f?Qr(this):this.tc())},Eu.tc=function(){Qr(this)},Eu.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.o){case Ac:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(Sc,"Response type "+this.o+" is not supported on this browser",void 0),null}catch(e){return Fr(this.b,"Can not get response: "+e.message),null}},ti.prototype.cancel=function(e){if(this.a)this.c instanceof ti&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):0>=--t.m&&t.cancel()}this.v?this.v.call(this.u,this):this.l=!0,this.a||(e=new li(this),ri(this),ni(this,!1,e))}},ti.prototype.o=function(e,t){this.i=!1,ni(this,e,t)},ti.prototype.C=function(){ri(this),ni(this,!0,null)},ti.prototype.then=function(e,t,n){var r,i,o=new K(function(e,t){r=e,i=t});return oi(this,r,function(e){e instanceof li?o.cancel():i(e)}),o.then(e,t,n)},m(ti),p(ui,y),ui.prototype.message="Deferred has already fired",ui.prototype.name="AlreadyCalledError",p(li,y),li.prototype.message="Deferred was canceled",li.prototype.name="CanceledError",ci.prototype.c=function(){throw delete Mc[this.a],this.b};var Mc={},Lc=0,jc=1;p(mi,y),p(vi,kr),vi.prototype.a=function(){return new this.f},vi.prototype.b=function(){return{}};var Fc,Uc="idToken",Bc=new yn(3e4,6e4),qc={"Content-Type":"application/x-www-form-urlencoded"},Vc=new yn(3e4,6e4),zc={"Content-Type":"application/json"};yi.prototype.o=function(e,t,n,r,i,o){if($t()&&("undefined"===typeof xu.fetch||"undefined"===typeof xu.Headers||"undefined"===typeof xu.Request))throw new Pn("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new Vr(this.c);if(o){a.g=Math.max(0,o);var s=setTimeout(function(){a.dispatchEvent("timeout")},o)}Fe(a,"complete",function(){s&&clearTimeout(s);var e=null;try{e=JSON.parse(Zr(this))||null}catch(t){e=null}t&&t(e)}),Ue(a,"ready",function(){s&&clearTimeout(s),he(this)}),Ue(a,"timeout",function(){s&&clearTimeout(s),he(this),t&&t(null)}),zr(a,e,n,r,i)};var Wc=yt("https://apis.google.com/js/client.js?onload=%{onload}"),Hc="__fcb"+Math.floor(1e6*Math.random()).toString();yi.prototype.l=function(e,t,n,r,i){var o=this;Fc.then(function(){window.gapi.client.setApiKey(o.b);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:r,headers:i,authType:"none",callback:function(e){window.gapi.auth.setToken(a),t&&t(e)}})}).s(function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})})},yi.prototype.Pa=function(){return Ui(this,hf,{})},yi.prototype.mb=function(e,t){return Ui(this,ff,{idToken:e,email:t})},yi.prototype.nb=function(e,t){return Ui(this,df,{idToken:e,password:t})};var Kc={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};Eu=yi.prototype,Eu.ob=function(e,t){var n={idToken:e},r=[];return j(Kc,function(e,i){var o=t[i];null===o?r.push(e):i in t&&(n[i]=o)}),r.length&&(n.deleteAttribute=r),Ui(this,ff,n)},Eu.hb=function(e,t){return e={requestType:"PASSWORD_RESET",email:e},B(e,t),Ui(this,af,e)},Eu.ib=function(e,t){return e={requestType:"EMAIL_SIGNIN",email:e},B(e,t),Ui(this,rf,e)},Eu.gb=function(e,t){return e={requestType:"VERIFY_EMAIL",idToken:e},B(e,t),Ui(this,of,e)},Eu.Ta=function(e){return Ui(this,bf,e)},Eu.Xa=function(e,t){return Ui(this,lf,{oobCode:e,newPassword:t})},Eu.Ja=function(e){return Ui(this,Yc,{oobCode:e})},Eu.Va=function(e){return Ui(this,Qc,{oobCode:e})};var Gc,Qc={endpoint:"setAccountInfo",B:Fi,da:"email"},Yc={endpoint:"resetPassword",B:Fi,J:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t)throw new Pn("internal-error")}},Xc={endpoint:"signupNewUser",B:function(e){if(xi(e),!e.password)throw new Pn("weak-password")},J:Ni,R:!0},$c={endpoint:"createAuthUri"},Jc={endpoint:"deleteAccount",T:["idToken"]},Zc={endpoint:"setAccountInfo",T:["idToken","deleteProvider"],B:function(e){if(!a(e.deleteProvider))throw new Pn("internal-error")}},ef={endpoint:"emailLinkSignin",T:["email","oobCode"],B:xi,J:Ni,R:!0},tf={endpoint:"emailLinkSignin",T:["idToken","email","oobCode"],B:xi,J:Ni,R:!0},nf={endpoint:"getAccountInfo"},rf={endpoint:"getOobConfirmationCode",T:["requestType"],B:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new Pn("internal-error");xi(e)},da:"email"},of={endpoint:"getOobConfirmationCode",T:["idToken","requestType"],B:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new Pn("internal-error")},da:"email"},af={endpoint:"getOobConfirmationCode",T:["requestType"],B:function(e){if("PASSWORD_RESET"!=e.requestType)throw new Pn("internal-error");xi(e)},da:"email"},sf={rb:!0,endpoint:"getProjectConfig",Eb:"GET"},uf={rb:!0,endpoint:"getRecaptchaParam",Eb:"GET",J:function(e){if(!e.recaptchaSiteKey)throw new Pn("internal-error")}},lf={endpoint:"resetPassword",B:Fi,da:"email"},cf={endpoint:"sendVerificationCode",T:["phoneNumber","recaptchaToken"],da:"sessionInfo"},ff={endpoint:"setAccountInfo",T:["idToken"],B:Si,R:!0},df={endpoint:"setAccountInfo",T:["idToken"],B:function(e){if(Si(e),!e.password)throw new Pn("weak-password")},J:Ni,R:!0},hf={endpoint:"signupNewUser",J:Ni,R:!0},pf={endpoint:"verifyAssertion",B:Di,J:Ri,R:!0},mf={endpoint:"verifyAssertion",B:Di,J:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new Pn("user-not-found");if(e.errorMessage)throw Bi(e.errorMessage);if(!e[Uc])throw new Pn("internal-error")},R:!0},vf={endpoint:"verifyAssertion",B:function(e){if(Di(e),!e.idToken)throw new Pn("internal-error")},J:Ri,R:!0},yf={endpoint:"verifyCustomToken",B:function(e){if(!e.token)throw new Pn("invalid-custom-token")},J:Ni,R:!0},gf={endpoint:"verifyPassword",B:function(e){if(xi(e),!e.password)throw new Pn("wrong-password")},J:Ni,R:!0},bf={endpoint:"verifyPhoneNumber",B:Pi,J:Ni},wf={endpoint:"verifyPhoneNumber",B:function(e){if(!e.idToken)throw new Pn("internal-error");Pi(e)},J:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",Sr(e);Ni(e)}},_f={Tb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:Pi,J:Ni},Ef={Yc:{Za:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",fb:"https://securetoken.googleapis.com/v1/token",id:"p"},$c:{Za:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",fb:"https://staging-securetoken.sandbox.googleapis.com/v1/token",id:"s"},ad:{Za:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",fb:"https://test-securetoken.sandbox.googleapis.com/v1/token",id:"t"}};Gc=Vi("__EID__")?"__EID__":void 0;var Tf=yt("https://apis.google.com/js/api.js?onload=%{onload}"),xf=new yn(3e4,6e4),Sf=new yn(5e3,15e3),kf=null;Qi.prototype.toString=function(){return this.f?et(this.a,"v",this.f):ct(this.a.a,"v"),this.b?et(this.a,"eid",this.b):ct(this.a.a,"eid"),this.c.length?et(this.a,"fw",this.c.join(",")):ct(this.a.a,"fw"),this.a.toString()},Yi.prototype.toString=function(){var e=rt(this.o,"/__/auth/handler");if(et(e,"apiKey",this.l),et(e,"appName",this.c),et(e,"authType",this.m),this.a.isOAuthProvider){var t=this.a;try{var n=r.a.app(this.c).auth().ea()}catch(e){n=null}t.Ya=n,et(e,"providerId",this.a.providerId),t=this.a,n=dn(t.vb);for(var i in n)n[i]=n[i].toString();i=t.Ac,n=U(n);for(var o=0;o<i.length;o++){var a=i[o];a in n&&delete n[a]}t.$a&&t.Ya&&!n[t.$a]&&(n[t.$a]=t.Ya),F(n)||et(e,"customParameters",fn(n))}if("function"===typeof this.a.Ab&&(t=this.a.Ab(),t.length&&et(e,"scopes",t.join(","))),this.i?et(e,"redirectUrl",this.i):ct(e.a,"redirectUrl"),this.g?et(e,"eventId",this.g):ct(e.a,"eventId"),this.h?et(e,"v",this.h):ct(e.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!tt(e,s)&&et(e,s,this.b[s]);return this.f?et(e,"eid",this.f):ct(e.a,"eid"),s=Xi(this.c),s.length&&et(e,"fw",s.join(",")),e.toString()},Eu=$i.prototype,Eu.Ea=function(e,t,n){var r=new Pn("popup-closed-by-user"),i=new Pn("web-storage-unsupported"),o=this,a=!1;return this.ga().then(function(){ro(o).then(function(n){n||(e&&Wt(e),t(i),a=!0)})}).s(function(){}).then(function(){if(!a)return Kt(e)}).then(function(){if(!a)return Ve(n).then(function(){t(r)})})},Eu.Ib=function(){var e=rn();return!cn(e)&&!mn(e)},Eu.Db=function(){return!1},Eu.zb=function(e,t,n,r,i,o,a){if(!e)return X(new Pn("popup-blocked"));if(a&&!cn())return this.ga().s(function(t){Wt(e),i(t)}),r(),Y();this.a||(this.a=Ji(eo(this)));var s=this;return this.a.then(function(){var t=s.ga().s(function(t){throw Wt(e),i(t),t});return r(),t}).then(function(){if(br(n),!a){Bt(to(s.l,s.f,s.b,t,n,null,o,s.c,void 0,s.h),e)}}).s(function(e){throw"auth/network-request-failed"==e.code&&(s.a=null),e})},Eu.Ca=function(e,t,n){this.a||(this.a=Ji(eo(this)));var r=this;return this.a.then(function(){br(t),Bt(to(r.l,r.f,r.b,e,t,Ut(),n,r.c,void 0,r.h))}).s(function(e){throw"auth/network-request-failed"==e.code&&(r.a=null),e})},Eu.ga=function(){var e=this;return Zi(this).then(function(){return e.i.bb}).s(function(){throw e.a=null,new Pn("network-request-failed")})},Eu.Mb=function(){return!0},Eu.va=function(e){this.g.push(e)},Eu.Ka=function(e){N(this.g,function(t){return t==e})},Eu=io.prototype,Eu.get=function(e){return Y(this.a.getItem(e)).then(function(e){return e&&hn(e)})},Eu.set=function(e,t){return Y(this.a.setItem(e,fn(t)))},Eu.P=function(e){return Y(this.a.removeItem(e))},Eu.Y=function(){},Eu.ca=function(){};var Cf;Eu=oo.prototype,Eu.set=function(e,t){var n,r=!1,i=this;return uo(this).then(function(t){return n=t,t=co(fo(n,!0)),ho(t.get(e))}).then(function(o){var a=co(fo(n,!0));return o?(o.value=t,ho(a.put(o))):(i.b++,r=!0,o={},o.fbase_key=e,o.value=t,ho(a.add(o)))}).then(function(){i.f[e]=t}).ia(function(){r&&i.b--})},Eu.get=function(e){return uo(this).then(function(t){return ho(co(fo(t,!1)).get(e))}).then(function(e){return e&&e.value})},Eu.P=function(e){var t=!1,n=this;return uo(this).then(function(r){return t=!0,n.b++,ho(co(fo(r,!0)).delete(e))}).then(function(){delete n.f[e]}).ia(function(){t&&n.b--})},Eu.Kc=function(){var e=this;return uo(this).then(function(e){var t=co(fo(e,!1));return t.getAll?ho(t.getAll()):new K(function(e,n){var r=[],i=t.openCursor();i.onsuccess=function(t){(t=t.target.result)?(r.push(t.value),t.continue()):e(r)},i.onerror=function(e){n(Error(e.target.errorCode))}})}).then(function(t){var n={},r=[];if(0==e.b){for(r=0;r<t.length;r++)n[t[r].fbase_key]=t[r].value;r=qt(e.f,n),e.f=n}return r})},Eu.Y=function(e){0==this.a.length&&po(this),this.a.push(e)},Eu.ca=function(e){N(this.a,function(t){return t==e}),0==this.a.length&&this.c&&this.c.cancel("STOP_EVENT")},Eu=mo.prototype,Eu.get=function(e){return this.b.then(function(t){return t.get(e)})},Eu.set=function(e,t){return this.b.then(function(n){return n.set(e,t)})},Eu.P=function(e){return this.b.then(function(t){return t.P(e)})},Eu.Y=function(e){this.a.push(e)},Eu.ca=function(e){N(this.a,function(t){return t==e})},Eu=vo.prototype,Eu.get=function(e){return Y(this.a[e])},Eu.set=function(e,t){return this.a[e]=t,Y()},Eu.P=function(e){return delete this.a[e],Y()},Eu.Y=function(){},Eu.ca=function(){},Eu=yo.prototype,Eu.get=function(e){var t=this;return Y().then(function(){return hn(t.a.getItem(e))})},Eu.set=function(e,t){var n=this;return Y().then(function(){var r=fn(t);null===r?n.P(e):n.a.setItem(e,r)})},Eu.P=function(e){var t=this;return Y().then(function(){t.a.removeItem(e)})},Eu.Y=function(e){xu.window&&Se(xu.window,"storage",e)},Eu.ca=function(e){xu.window&&Ne(xu.window,"storage",e)},Eu=wo.prototype,Eu.get=function(){return Y(null)},Eu.set=function(){return Y()},Eu.P=function(){return Y()},Eu.Y=function(){},Eu.ca=function(){},Eu=_o.prototype,Eu.get=function(e){var t=this;return Y().then(function(){return hn(t.a.getItem(e))})},Eu.set=function(e,t){var n=this;return Y().then(function(){var r=fn(t);null===r?n.P(e):n.a.setItem(e,r)})},Eu.P=function(e){var t=this;return Y().then(function(){t.a.removeItem(e)})},Eu.Y=function(){},Eu.ca=function(){};var Of,Nf,Pf={A:yo,Qa:_o},If={A:yo,Qa:_o},Af={A:io,Qa:wo},Df={A:yo,Qa:wo},Rf={Xc:"local",NONE:"none",Zc:"session"};Eu=ko.prototype,Eu.get=function(e,t){return Oo(this,e.A).get(No(e,t))},Eu.set=function(e,t,n){var r=No(e,n),i=this,o=Oo(this,e.A);return o.set(r,t).then(function(){return o.get(r)}).then(function(t){"local"==e.A&&(i.b[r]=t)})},Eu.addListener=function(e,t,n){e=No(e,t),this.m&&(this.b[e]=xu.localStorage.getItem(e)),F(this.a)&&(Oo(this,"local").Y(this.f),this.h||(Ft()||!_n())&&xu.indexedDB||!this.m||Ao(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},Eu.removeListener=function(e,t,n){e=No(e,t),this.a[e]&&(N(this.a[e],function(e){return e==n}),0==this.a[e].length&&delete this.a[e]),F(this.a)&&(Oo(this,"local").ca(this.f),Do(this))},Eu.Lb=function(e){if(e&&e.f){var t=e.a.key;if(null==t)for(var n in this.a){var r=this.b[n];"undefined"===typeof r&&(r=null);var i=xu.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.Wa(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if("undefined"!==typeof e.a.a?Oo(this,"local").ca(this.f):Do(this),this.o)if(n=xu.localStorage.getItem(t),(r=e.a.newValue)!==n)null!==r?xu.localStorage.setItem(t,r):xu.localStorage.removeItem(t);else if(this.b[t]===r&&"undefined"===typeof e.a.a)return;var o=this;n=function(){"undefined"===typeof e.a.a&&o.b[t]===xu.localStorage.getItem(t)||(o.b[t]=xu.localStorage.getItem(t),o.Wa(t))},il&&dl&&10==dl&&xu.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else Iu(e,d(this.Wa,this))},Eu.Wa=function(e){this.a[e]&&Iu(this.a[e],function(e){e()})};var Mf,Lf={name:"authEvent",A:"local"};p(Fo,jo);for(var jf=64,Ff=jf-1,Uf=[],Bf=0;Bf<Ff;Bf++)Uf[Bf]=0;var qf=P(128,Uf);Fo.prototype.reset=function(){this.g=this.c=0,this.a=xu.Int32Array?new Int32Array(this.h):I(this.h)};var Vf=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];p(qo,Fo);var zf=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];Eu=Vo.prototype,Eu.ga=function(){return this.za?this.za:this.za=Qt().then(function(){if("function"!==typeof on("universalLinks.subscribe",xu))throw zo("cordova-universal-links-plugin is not installed");if("undefined"===typeof on("BuildInfo.packageName",xu))throw zo("cordova-plugin-buildinfo is not installed");if("function"!==typeof on("cordova.plugins.browsertab.openUrl",xu))throw zo("cordova-plugin-browsertab is not installed");if("function"!==typeof on("cordova.InAppBrowser.open",xu))throw zo("cordova-plugin-inappbrowser is not installed")},function(){throw new Pn("cordova-not-ready")})},Eu.Ea=function(e,t){return t(new Pn("operation-not-supported-in-this-environment")),Y()},Eu.zb=function(){return X(new Pn("operation-not-supported-in-this-environment"))},Eu.Mb=function(){return!1},Eu.Ib=function(){return!0},Eu.Db=function(){return!0},Eu.Ca=function(e,t,n){if(this.c)return X(new Pn("redirect-operation-pending"));var r=this,i=xu.document,o=null,a=null,s=null,u=null;return this.c=Y().then(function(){return br(t),Qo(r)}).then(function(){return Ko(r,e,t,n)}).then(function(){return new K(function(e,t){a=function(){var t=on("cordova.plugins.browsertab.close",xu);return e(),"function"===typeof t&&t(),r.a&&"function"===typeof r.a.close&&(r.a.close(),r.a=null),!1},r.va(a),s=function(){o||(o=Ve(2e3).then(function(){t(new Pn("redirect-cancelled-by-user"))}))},u=function(){gn()&&s()},i.addEventListener("resume",s,!1),rn().toLowerCase().match(/android/)||i.addEventListener("visibilitychange",u,!1)}).s(function(e){return Yo(r).then(function(){throw e})})}).ia(function(){s&&i.removeEventListener("resume",s,!1),u&&i.removeEventListener("visibilitychange",u,!1),o&&o.cancel(),a&&r.Ka(a),r.c=null})},Eu.va=function(e){this.b.push(e),Qo(this).s(function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new wr("unknown",null,null,null,new Pn("no-auth-event")),e(t))})},Eu.Ka=function(e){N(this.b,function(t){return t==e})};var Wf={name:"pendingRedirect",A:"session"};ta.prototype.reset=function(){this.f=!1,this.a.Ka(this.i),this.a=na(this.v,this.m,this.l)},ta.prototype.subscribe=function(e){if(C(this.h,e)||this.h.push(e),!this.f){var t=this;ea(this.g).then(function(e){e?Zo(t.g).then(function(){ra(t).s(function(e){var n=new wr("unknown",null,null,null,new Pn("operation-not-supported-in-this-environment"));aa(e)&&t.o(n)})}):ia(t)}).s(function(){ia(t)})}},ta.prototype.unsubscribe=function(e){N(this.h,function(t){return t==e})},ta.prototype.o=function(e){if(!e)throw new Pn("invalid-auth-event");for(var t=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.sb(e.b,e.c)){(t=this.b[e.b])&&t.h(e,r),t=!0;break}}return la(this.c),t};var Hf=new yn(2e3,1e4),Kf=new yn(3e4,6e4);ta.prototype.fa=function(){return this.c.fa()},ta.prototype.Ca=function(e,t,n){var r,i=this;return Jo(this.g).then(function(){return i.a.Ca(e,t,n).s(function(e){if(aa(e))throw new Pn("operation-not-supported-in-this-environment");return r=e,Zo(i.g).then(function(){throw r})}).then(function(){return i.a.Mb()?new K(function(){}):Zo(i.g).then(function(){return i.fa()}).then(function(){}).s(function(){})})})},ta.prototype.Ea=function(e,t,n,r){return this.a.Ea(n,function(n){e.ha(t,null,n,r)},Hf.get())};var Gf={};ua.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},ua.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.b,r=e.c,i=e.a&&"auth/web-storage-unsupported"==e.a.code,o=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;"unknown"!=n||i||o?e.a?(ha(this,!0,null,e.a),Y()):t.wa(n,r)?ca(this,e,t):X(new Pn("invalid-auth-event")):(ha(this,!1,null,null),Y())}else X(new Pn("invalid-auth-event"))},ua.prototype.fa=function(){var e=this;return new K(function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),pa(e))})},ma.prototype.h=function(e,t){if(e){var n=e.b,r=e.c;e.a?(t.ha(e.b,null,e.a,e.c),Y()):t.wa(n,r)?va(e,t):X(new Pn("invalid-auth-event"))}else X(new Pn("invalid-auth-event"))},ga.prototype.confirm=function(e){return e=yr(this.verificationId,e),this.a(e)},_a.prototype.start=function(){this.a=this.c,Ta(this,!0)},_a.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},xa.prototype.D=function(){return{apiKey:this.f.b,refreshToken:this.a,accessToken:this.b,expirationTime:this.c}},xa.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?X(new Pn("user-token-expired")):e||!this.b||Cu()>this.c-3e4?this.a?Oa(this,{grant_type:"refresh_token",refresh_token:this.a}):Y(null):Y({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},Na.prototype.D=function(){return{lastLoginAt:this.b,createdAt:this.a}},p(Aa,ge),p(Da,je),Da.prototype.oa=function(e){this.ka=e,gi(this.b,e)},Da.prototype.ea=function(){return this.ka},Da.prototype.xa=function(){return I(this.O)},Da.prototype.Ha=function(){this.w.b&&(this.w.stop(),this.w.start())},Tn(Da.prototype,"providerId","firebase"),Eu=Da.prototype,Eu.reload=function(){var e=this;return ls(this,Ga(this).then(function(){return Za(e).then(function(){return za(e)}).then(Ka)}))},Eu.ac=function(e){return this.F(e).then(function(e){return new wa(e)})},Eu.F=function(e){var t=this;return ls(this,Ga(this).then(function(){return t.h.getToken(e)}).then(function(e){if(!e)throw new Pn("internal-error");return e.accessToken!=t.qa&&(qa(t,e.accessToken),t.dispatchEvent(new Aa("tokenChanged"))),$a(t,"refreshToken",e.refreshToken),e.accessToken}))},Eu.uc=function(e){if(!(e=e.users)||!e.length)throw new Pn("internal-error");e=e[0],Ha(this,{uid:e.localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt});for(var t=ns(e),n=0;n<t.length;n++)Ya(this,t[n]);$a(this,"isAnonymous",!(this.email&&e.passwordHash)&&!(this.providerData&&this.providerData.length))},Eu.cb=function(e){var t=this,n=null;return ls(this,e.f(this.b,this.uid).then(function(e){return es(t,e),n=is(t,e,"reauthenticate"),t.i=null,t.reload()}).then(function(){return n}),!0)},Eu.vc=function(e){return En("firebase.User.prototype.reauthenticateWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential instead."),this.cb(e).then(function(){})},Eu.ab=function(e){var t=this,n=null;return ls(this,rs(this,e.providerId).then(function(){return t.F()}).then(function(n){return e.c(t.b,n)}).then(function(e){return n=is(t,e,"link"),os(t,e)}).then(function(){return n}))},Eu.mc=function(e){return En("firebase.User.prototype.linkWithCredential is deprecated. Please use firebase.User.prototype.linkAndRetrieveDataWithCredential instead."),this.ab(e).then(function(e){return e.user})},Eu.nc=function(e,t){var n=this;return ls(this,rs(this,"phone").then(function(){return ba(ja(n),e,t,d(n.ab,n))}))},Eu.wc=function(e,t){var n=this;return ls(this,Y().then(function(){return ba(ja(n),e,t,d(n.cb,n))}),!0)},Eu.mb=function(e){var t=this;return ls(this,this.F().then(function(n){return t.b.mb(n,e)}).then(function(e){return es(t,e),t.reload()}))},Eu.Pc=function(e){var t=this;return ls(this,this.F().then(function(n){return e.c(t.b,n)}).then(function(e){return es(t,e),t.reload()}))},Eu.nb=function(e){var t=this;return ls(this,this.F().then(function(n){return t.b.nb(n,e)}).then(function(e){return es(t,e),t.reload()}))},Eu.ob=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Ga(this);var t=this;return ls(this,this.F().then(function(n){return t.b.ob(n,{displayName:e.displayName,photoUrl:e.photoURL})}).then(function(e){return es(t,e),$a(t,"displayName",e.displayName||null),$a(t,"photoURL",e.photoUrl||null),Iu(t.providerData,function(e){"password"===e.providerId&&(Tn(e,"displayName",t.displayName),Tn(e,"photoURL",t.photoURL))}),za(t)}).then(Ka))},Eu.Nc=function(e){var t=this;return ls(this,Za(this).then(function(n){return C(Qa(t),e)?Ai(t.b,n,[e]).then(function(e){var n={};return Iu(e.providerUserInfo||[],function(e){n[e.providerId]=!0}),Iu(Qa(t),function(e){n[e]||Xa(t,e)}),n[vr.PROVIDER_ID]||Tn(t,"phoneNumber",null),za(t)}):za(t).then(function(){throw new Pn("no-such-provider")})}))},Eu.delete=function(){var e=this;return ls(this,this.F().then(function(t){return Ui(e.b,Jc,{idToken:t})}).then(function(){e.dispatchEvent(new Aa("userDeleted"))})).then(function(){for(var t=0;t<e.G.length;t++)e.G[t].cancel("app-deleted");Ra(e,null),La(e,null),e.G=[],e.C=!0,Ba(e),Tn(e,"refreshToken",null),e.a&&e.a.unsubscribe(e)})},Eu.sb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.aa||null)==t||"reauthViaRedirect"==e&&(this.aa||null)==t)},Eu.ha=function(e,t,n,r){"linkViaPopup"!=e&&"reauthViaPopup"!=e||r!=(this.g||null)||(n&&this.v?this.v(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},Eu.wa=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?d(this.xb,this):"reauthViaPopup"==e&&t==(this.g||null)?d(this.yb,this):"linkViaRedirect"==e&&(this.aa||null)==t?d(this.xb,this):"reauthViaRedirect"==e&&(this.aa||null)==t?d(this.yb,this):null},Eu.oc=function(e){var t=this;return as(this,"linkViaPopup",e,function(){return rs(t,e.providerId).then(function(){return za(t)})},!1)},Eu.xc=function(e){return as(this,"reauthViaPopup",e,function(){return Y()},!0)},Eu.pc=function(e){var t=this;return ss(this,"linkViaRedirect",e,function(){return rs(t,e.providerId)},!1)},Eu.yc=function(e){return ss(this,"reauthViaRedirect",e,function(){return Y()},!0)},Eu.xb=function(e,t){var n=this;this.c&&(this.c.cancel(),this.c=null);var r=null;return ls(this,this.F().then(function(r){return Li(n.b,{requestUri:e,sessionId:t,idToken:r})}).then(function(e){return r=is(n,e,"link"),os(n,e)}).then(function(){return r}))},Eu.yb=function(e,t){var n=this;this.c&&(this.c.cancel(),this.c=null);var r=null;return ls(this,Y().then(function(){return $n(ji(n.b,{requestUri:e,sessionId:t}),n.uid)}).then(function(e){return r=is(n,e,"reauthenticate"),es(n,e),n.i=null,n.reload()}).then(function(){return r}),!0)},Eu.gb=function(e){var t=this,n=null;return ls(this,this.F().then(function(t){return n=t,"undefined"===typeof e||F(e)?{}:Dn(new An(e))}).then(function(e){return t.b.gb(n,e)}).then(function(e){if(t.email!=e)return t.reload()}).then(function(){}))},Eu.toJSON=function(){return this.D()},Eu.D=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,providerData:[],apiKey:this.l,appName:this.o,authDomain:this.u,stsTokenManager:this.h.D(),redirectEventId:this.aa||null};return this.metadata&&B(e,this.metadata.D()),Iu(this.providerData,function(t){e.providerData.push(kn(t))}),e};var Qf={name:"redirectUser",A:"session"};ys.prototype.g=function(){var e=this,t=ws("local");Ss(this,function(){return Y().then(function(){return e.c&&"local"!=e.c.A?e.b.get(t,e.a):null}).then(function(n){if(n)return gs(e,"local").then(function(){e.c=t})})})};var Yf={name:"persistence",A:"session"};ys.prototype.jb=function(e){var t=null,n=this;return So(e),Ss(this,function(){return e!=n.c.A?n.b.get(n.c,n.a).then(function(r){return t=r,gs(n,e)}).then(function(){if(n.c=ws(e),t)return n.b.set(n.c,t,n.a)}):Y()})},p(ks,je),p(Cs,ge),p(Os,ge),Eu=ks.prototype,Eu.jb=function(e){return e=this.h.jb(e),zs(this,e)},Eu.oa=function(e){this.W===e||this.l||(this.W=e,gi(this.b,this.W),this.dispatchEvent(new Cs(this.ea())))},Eu.ea=function(){return this.W},Eu.Qc=function(){var e=xu.navigator;this.oa(e?e.languages&&e.languages[0]||e.language||e.userLanguage||null:null)},Eu.qc=function(e){this.G.push(e),bi(this.b,r.a.SDK_VERSION?nn(r.a.SDK_VERSION,this.G):null),this.dispatchEvent(new Os(this.G))},Eu.xa=function(){return I(this.G)},Eu.toJSON=function(){return{apiKey:Fs(this).options.apiKey,authDomain:Fs(this).options.authDomain,appName:Fs(this).name,currentUser:Us(this)&&Us(this).D()}},Eu.sb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},Eu.ha=function(e,t,n,r){"signInViaPopup"==e&&this.g==r&&(n&&this.v?this.v(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},Eu.wa=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?d(this.Xb,this):null},Eu.Xb=function(e,t){var n=this;e={requestUri:e,sessionId:t},this.c&&(this.c.cancel(),this.c=null);var r=null,i=null,o=Mi(n.b,e).then(function(e){return r=gr(e),i=Vn(e),e});return e=n.V.then(function(){return o}).then(function(e){return As(n,e)}).then(function(){return Sn({user:Us(n),credential:r,additionalUserInfo:i,operationType:"signIn"})}),zs(this,e)},Eu.Hc=function(e){if(!sn())return X(new Pn("operation-not-supported-in-this-environment"));var t=this,n=qn(e.providerId),i=pn(),o=null;(!cn()||Xt())&&Fs(this).options.authDomain&&e.isOAuthProvider&&(o=to(Fs(this).options.authDomain,Fs(this).options.apiKey,Fs(this).name,"signInViaPopup",e,null,i,r.a.SDK_VERSION||null));var a=Ht(o,n&&n.Ba,n&&n.Aa);return n=Ps(this).then(function(t){return oa(t,a,"signInViaPopup",e,i,!!o)}).then(function(){return new K(function(e,n){t.ha("signInViaPopup",null,new Pn("cancelled-popup-request"),t.g),t.f=e,t.v=n,t.g=i,t.c=t.a.Ea(t,"signInViaPopup",a,i)})}).then(function(e){return a&&Wt(a),e?Sn(e):null}).s(function(e){throw a&&Wt(a),e}),zs(this,n)},Eu.Ic=function(e){if(!sn())return X(new Pn("operation-not-supported-in-this-environment"));var t=this;return zs(this,Ps(this).then(function(){return _s(t.h)}).then(function(){return t.a.Ca("signInViaRedirect",e)}))},Eu.fa=function(){if(!sn())return X(new Pn("operation-not-supported-in-this-environment"));var e=this;return zs(this,Ps(this).then(function(){return e.a.fa()}).then(function(e){return e?Sn(e):null}))},Eu.Oc=function(e){if(!e)return X(new Pn("null-user"));var t=this,n={};n.apiKey=Fs(this).options.apiKey,n.authDomain=Fs(this).options.authDomain,n.appName=Fs(this).name;var r=hs(e,n,t.w,t.xa());return zs(this,this.i.then(function(){if(Fs(t).options.apiKey!=e.l)return r.reload()}).then(function(){return Us(t)&&e.uid==Us(t).uid?(Ja(Us(t),e),t.Z(e)):(Ds(t,r),Wa(r),t.Z(r))}).then(function(){qs(t)}))},Eu.kb=function(){var e=this;return zs(this,this.i.then(function(){return Us(e)?(Ds(e,null),Ts(e.h).then(function(){qs(e)})):Y()}))},Eu.Jc=function(){var e=this;return xs(this.h,Fs(this).options.authDomain).then(function(t){if(!e.l){var n;if(n=Us(e)&&t){n=Us(e).uid;var r=t.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return Ja(Us(e),t),Us(e).F();(Us(e)||t)&&(Ds(e,t),t&&(Wa(t),t.ba=e.w),e.a&&e.a.subscribe(e),qs(e))}})},Eu.Z=function(e){return Es(this.h,e)},Eu.Yb=function(){qs(this),this.Z(Us(this))},Eu.gc=function(){this.kb()},Eu.hc=function(){this.kb()},Eu.ic=function(e){var t=this;this.addAuthTokenListener(function(){e.next(Us(t))})},Eu.jc=function(e){var t=this;Vs(this,function(){e.next(Us(t))})},Eu.sc=function(e,t,n){var i=this;return this.X&&r.a.Promise.resolve().then(function(){u(e)?e(Us(i)):u(e.next)&&e.next(Us(i))}),this.Pb(e,t,n)},Eu.rc=function(e,t,n){var i=this;return this.X&&r.a.Promise.resolve().then(function(){i.O=i.getUid(),u(e)?e(Us(i)):u(e.next)&&e.next(Us(i))}),this.Qb(e,t,n)},Eu.$b=function(e){var t=this;return zs(this,this.i.then(function(){return Us(t)?Us(t).F(e).then(function(e){return{accessToken:e}}):null}))},Eu.Jb=function(e){var t=this;return this.i.then(function(){return js(t,Ui(t.b,yf,{token:e}))}).then(function(e){var n=e.user;return $a(n,"isAnonymous",!1),t.Z(n),e})},Eu.Bc=function(e){return En("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCustomToken is deprecated. Please use firebase.auth.Auth.prototype.signInWithCustomToken instead."),this.Jb(e)},Eu.Cc=function(e,t){return En("firebase.auth.Auth.prototype.signInAndRetrieveDataWithEmailAndPassword is deprecated. Please use firebase.auth.Auth.prototype.signInWithEmailAndPassword instead."),this.Kb(e,t)},Eu.Kb=function(e,t){var n=this;return this.i.then(function(){return js(n,Ui(n.b,gf,{email:e,password:t}))})},Eu.ub=function(e,t){var n=this;return this.i.then(function(){return js(n,Ui(n.b,Xc,{email:e,password:t}))})},Eu.Sb=function(e,t){return En("firebase.auth.Auth.prototype.createUserAndRetrieveDataWithEmailAndPassword is deprecated. Please use firebase.auth.Auth.prototype.createUserWithEmailAndPassword instead."),this.ub(e,t)},Eu.Ec=function(e){return En("firebase.auth.Auth.prototype.signInWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential instead."),this.Oa(e).then(function(e){return e.user})},Eu.Oa=function(e){var t=this;return this.i.then(function(){return js(t,e.ya(t.b))})},Eu.Pa=function(){var e=this;return this.i.then(function(){var t=Us(e);if(t&&t.isAnonymous){return Sn({user:t,credential:null,additionalUserInfo:Sn({providerId:null,isNewUser:!1}),operationType:"signIn"})}return js(e,e.b.Pa()).then(function(t){var n=t.user;return $a(n,"isAnonymous",!0),e.Z(n),t})})},Eu.Dc=function(){return En("firebase.auth.Auth.prototype.signInAnonymouslyAndRetrieveData is deprecated. Please use firebase.auth.Auth.prototype.signInAnonymously instead."),this.Pa()},Eu.getUid=function(){return Us(this)&&Us(this).uid||null},Eu.Rb=function(e){this.addAuthTokenListener(e),0<++this.u&&Us(this)&&Ua(Us(this))},Eu.zc=function(e){var t=this;Iu(this.o,function(n){n==e&&t.u--}),0>this.u&&(this.u=0),0==this.u&&Us(this)&&Ba(Us(this)),this.removeAuthTokenListener(e)},Eu.addAuthTokenListener=function(e){var t=this;this.o.push(e),zs(this,this.i.then(function(){t.l||C(t.o,e)&&e(Bs(t))}))},Eu.removeAuthTokenListener=function(e){N(this.o,function(t){return t==e})},Eu.delete=function(){this.l=!0;for(var e=0;e<this.N.length;e++)this.N[e].cancel("app-deleted");return this.N=[],this.h&&(e=this.h,e.b.removeListener(ws("local"),e.a,this.ka)),this.a&&this.a.unsubscribe(this),r.a.Promise.resolve()},Eu.Vb=function(e){return En("firebase.auth.Auth.prototype.fetchProvidersForEmail is deprecated. Please use firebase.auth.Auth.prototype.fetchSignInMethodsForEmail instead."),zs(this,ki(this.b,e))},Eu.Wb=function(e){return zs(this,Ci(this.b,e))},Eu.kc=function(e){return!!hr(e)},Eu.ib=function(e,t){var n=this;return zs(this,Y().then(function(){var e=new An(t);if(!e.c)throw new Pn("argument-error",sc+" must be true when sending sign in link to email");return Dn(e)}).then(function(t){return n.b.ib(e,t)}).then(function(){}))},Eu.Rc=function(e){return this.Ja(e).then(function(e){return e.data.email})},Eu.Xa=function(e,t){return zs(this,this.b.Xa(e,t).then(function(){}))},Eu.Ja=function(e){return zs(this,this.b.Ja(e).then(function(e){return new Nn(e)}))},Eu.Va=function(e){return zs(this,this.b.Va(e).then(function(){}))},Eu.hb=function(e,t){var n=this;return zs(this,Y().then(function(){return"undefined"===typeof t||F(t)?{}:Dn(new An(t))}).then(function(t){return n.b.hb(e,t)}).then(function(){}))},Eu.Gc=function(e,t){return zs(this,ba(this,e,t,d(this.Oa,this)))},Eu.Fc=function(e,t){var n=this;return zs(this,Y().then(function(){var r=dr(e,t||Ut());return n.Oa(r)}))},Ws.prototype.render=function(){},Ws.prototype.reset=function(){},Ws.prototype.getResponse=function(){},Ws.prototype.execute=function(){};var Xf=null;Hs.prototype.render=function(e,t){return this.a[this.b.toString()]=new Qs(e,t),this.b++},Hs.prototype.reset=function(e){var t=Ks(this,e);e=Gs(e),t&&e&&(t.delete(),delete this.a[e])},Hs.prototype.getResponse=function(e){return(e=Ks(this,e))?e.getResponse():null},Hs.prototype.execute=function(e){(e=Ks(this,e))&&e.execute()},Qs.prototype.getResponse=function(){return Ys(this),this.b},Qs.prototype.execute=function(){Ys(this);var e=this;this.a||(this.a=setTimeout(function(){e.b=en();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(e){}e.a=setTimeout(function(){if(e.a=null,e.b=null,n)try{n()}catch(e){}e.h&&e.execute()},6e4)},500))},Qs.prototype.delete=function(){Ys(this),this.g=!0,clearTimeout(this.a),this.a=null,Ne(this.f,"click",this.i)},Xs.prototype.g=function(){return Xf||(Xf=new Hs),Y(Xf)},Xs.prototype.c=function(){};var $f=null,Jf=yt("https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Zf=new yn(3e4,6e4);$s.prototype.g=function(e){var t=this;return new K(function(n,r){var i=setTimeout(function(){r(new Pn("network-request-failed"))},Zf.get());if(!xu.grecaptcha||e!==t.f&&!t.b){xu[t.a]=function(){if(xu.grecaptcha){t.f=e;var o=xu.grecaptcha.render;xu.grecaptcha.render=function(e,n){return e=o(e,n),t.b++,e},clearTimeout(i),n(xu.grecaptcha)}else clearTimeout(i),r(new Pn("internal-error"));delete xu[t.a]};Y(fi(wt(Jf,{onload:t.a,hl:e||""}))).s(function(){clearTimeout(i),r(new Pn("internal-error","Unable to load external reCAPTCHA dependencies!"))})}else clearTimeout(i),n(xu.grecaptcha)})},$s.prototype.c=function(){this.b--};var ed=null,td="callback",nd="expired-callback",rd="sitekey",id="size";Eu=Js.prototype,Eu.za=function(){var e=this;return this.f?this.f:this.f=tu(this,Y().then(function(){if(un()&&!$t())return Gt();throw new Pn("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return e.o.g(e.v())}).then(function(t){return e.g=t,Ui(e.u,uf,{})}).then(function(t){e.a[rd]=t.recaptchaSiteKey}).s(function(t){throw e.f=null,t}))},Eu.render=function(){nu(this);var e=this;return tu(this,this.za().then(function(){if(null===e.c){var t=e.l;if(!e.i){var n=Nt(t);t=It("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c}))},Eu.verify=function(){nu(this);var e=this;return tu(this,this.render().then(function(t){return new K(function(n){var r=e.g.getResponse(t);if(r)n(r);else{var i=function(t){t&&(eu(e,i),n(t))};e.m.push(i),e.i&&e.g.execute(e.c)}})}))},Eu.reset=function(){nu(this),null!==this.c&&this.g.reset(this.c)},Eu.clear=function(){nu(this),this.C=!0,this.o.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=Nt(this.l);for(var t;t=e.firstChild;)e.removeChild(t)}},p(ru,Js);var od="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");yu(ks.prototype,{Va:{name:"applyActionCode",j:[ou("code")]},Ja:{name:"checkActionCode",j:[ou("code")]},Xa:{name:"confirmPasswordReset",j:[ou("code"),ou("newPassword")]},ub:{name:"createUserWithEmailAndPassword",j:[ou("email"),ou("password")]},Sb:{name:"createUserAndRetrieveDataWithEmailAndPassword",j:[ou("email"),ou("password")]},Vb:{name:"fetchProvidersForEmail",j:[ou("email")]},Wb:{name:"fetchSignInMethodsForEmail",j:[ou("email")]},fa:{name:"getRedirectResult",j:[]},kc:{name:"isSignInWithEmailLink",j:[ou("emailLink")]},rc:{name:"onAuthStateChanged",j:[vu(su(),uu(),"nextOrObserver"),uu("opt_error",!0),uu("opt_completed",!0)]},sc:{name:"onIdTokenChanged",j:[vu(su(),uu(),"nextOrObserver"),uu("opt_error",!0),uu("opt_completed",!0)]},hb:{name:"sendPasswordResetEmail",j:[ou("email"),vu(su("opt_actionCodeSettings",!0),lu(null,!0),"opt_actionCodeSettings",!0)]},ib:{name:"sendSignInLinkToEmail",j:[ou("email"),su("actionCodeSettings")]},jb:{name:"setPersistence",j:[ou("persistence")]},Oa:{name:"signInAndRetrieveDataWithCredential",j:[hu()]},Pa:{name:"signInAnonymously",j:[]},Dc:{name:"signInAnonymouslyAndRetrieveData",j:[]},Ec:{name:"signInWithCredential",j:[hu()]},Jb:{name:"signInWithCustomToken",j:[ou("token")]},Bc:{name:"signInAndRetrieveDataWithCustomToken",j:[ou("token")]},Kb:{name:"signInWithEmailAndPassword",j:[ou("email"),ou("password")]},Fc:{name:"signInWithEmailLink",j:[ou("email"),ou("emailLink",!0)]},Cc:{name:"signInAndRetrieveDataWithEmailAndPassword",j:[ou("email"),ou("password")]},Gc:{name:"signInWithPhoneNumber",j:[ou("phoneNumber"),mu()]},Hc:{name:"signInWithPopup",j:[pu()]},Ic:{name:"signInWithRedirect",j:[pu()]},Oc:{name:"updateCurrentUser",j:[vu(function(e){return{name:"user",K:"an instance of Firebase User",optional:!1,M:function(e){return!!(e&&e instanceof Da)}}}(),lu(),"user")]},kb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[ou(null,!0)]},Qc:{name:"useDeviceLanguage",j:[]},Rc:{name:"verifyPasswordResetCode",j:[ou("code")]}}),gu(ks.prototype,{lc:{name:"languageCode",qb:vu(ou(),lu(),"languageCode")}}),ks.Persistence=Rf,ks.Persistence.LOCAL="local",ks.Persistence.SESSION="session",ks.Persistence.NONE="none",yu(Da.prototype,{delete:{name:"delete",j:[]},ac:{name:"getIdTokenResult",j:[au("opt_forceRefresh",!0)]},F:{name:"getIdToken",j:[au("opt_forceRefresh",!0)]},ab:{name:"linkAndRetrieveDataWithCredential",j:[hu()]},mc:{name:"linkWithCredential",j:[hu()]},nc:{name:"linkWithPhoneNumber",j:[ou("phoneNumber"),mu()]},oc:{name:"linkWithPopup",j:[pu()]},pc:{name:"linkWithRedirect",j:[pu()]},cb:{name:"reauthenticateAndRetrieveDataWithCredential",j:[hu()]},vc:{name:"reauthenticateWithCredential",j:[hu()]},wc:{name:"reauthenticateWithPhoneNumber",j:[ou("phoneNumber"),mu()]},xc:{name:"reauthenticateWithPopup",j:[pu()]},yc:{name:"reauthenticateWithRedirect",j:[pu()]},reload:{name:"reload",j:[]},gb:{name:"sendEmailVerification",j:[vu(su("opt_actionCodeSettings",!0),lu(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[ou(null,!0)]},Nc:{name:"unlink",j:[ou("provider")]},mb:{name:"updateEmail",j:[ou("email")]},nb:{name:"updatePassword",j:[ou("password")]},Pc:{name:"updatePhoneNumber",j:[hu("phone")]},ob:{name:"updateProfile",j:[su("profile")]}}),yu(Hs.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),yu(Ws.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),yu(K.prototype,{ia:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),gu(ya.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",qb:au("appVerificationDisabledForTesting")}}),yu(ga.prototype,{confirm:{name:"confirm",j:[ou("verificationCode")]}}),bu(fr,"credential",function(e,t){return new cr(e,t)},[ou("email"),ou("password")]),yu(nr.prototype,{ta:{name:"addScope",j:[ou("scope")]},Da:{name:"setCustomParameters",j:[su("customOAuthParameters")]}}),bu(nr,"credential",rr,[vu(ou(),su(),"token")]),bu(fr,"credentialWithLink",dr,[ou("email"),ou("emailLink")]),yu(ir.prototype,{ta:{name:"addScope",j:[ou("scope")]},Da:{name:"setCustomParameters",j:[su("customOAuthParameters")]}}),bu(ir,"credential",or,[vu(ou(),su(),"token")]),yu(ar.prototype,{ta:{name:"addScope",j:[ou("scope")]},Da:{name:"setCustomParameters",j:[su("customOAuthParameters")]}}),bu(ar,"credential",sr,[vu(ou(),vu(su(),lu()),"idToken"),vu(ou(),lu(),"accessToken",!0)]),yu(ur.prototype,{Da:{name:"setCustomParameters",j:[su("customOAuthParameters")]}}),bu(ur,"credential",lr,[vu(ou(),su(),"token"),ou("secret",!0)]),yu(tr.prototype,{ta:{name:"addScope",j:[ou("scope")]},credential:{name:"credential",j:[vu(ou(),lu(),"idToken",!0),vu(ou(),lu(),"accessToken",!0)]},Da:{name:"setCustomParameters",j:[su("customOAuthParameters")]}}),bu(vr,"credential",yr,[ou("verificationId"),ou("verificationCode")]),yu(vr.prototype,{Ta:{name:"verifyPhoneNumber",j:[ou("phoneNumber"),mu()]}}),yu(Pn.prototype,{toJSON:{name:"toJSON",j:[ou(null,!0)]}}),yu(xr.prototype,{toJSON:{name:"toJSON",j:[ou(null,!0)]}}),yu(Tr.prototype,{toJSON:{name:"toJSON",j:[ou(null,!0)]}}),yu(ru.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),function(){if("undefined"===typeof r.a||!r.a.INTERNAL||!r.a.INTERNAL.registerService)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={Auth:ks,Error:Pn};bu(e,"EmailAuthProvider",fr,[]),bu(e,"FacebookAuthProvider",nr,[]),bu(e,"GithubAuthProvider",ir,[]),bu(e,"GoogleAuthProvider",ar,[]),bu(e,"TwitterAuthProvider",ur,[]),bu(e,"OAuthProvider",tr,[ou("providerId")]),bu(e,"PhoneAuthProvider",vr,[fu()]),bu(e,"RecaptchaVerifier",ru,[vu(ou(),cu(),"recaptchaContainer"),su("recaptchaParameters",!0),du()]),r.a.INTERNAL.registerService("auth",function(e,t){return e=new ks(e),t({INTERNAL:{getUid:d(e.getUid,e),getToken:d(e.$b,e),addAuthTokenListener:d(e.Rb,e),removeAuthTokenListener:d(e.zc,e)}}),e},e,function(e,t){if("create"===e)try{t.auth()}catch(e){}}),r.a.INTERNAL.extendNamespace({User:Da})}()}).call("undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}.call(t,n(20))},function(e,t,n){"use strict";(function(r){function i(e){for(var t="",n=e.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(e){}t+="/"+i}return t}function o(e){var t={};"?"===e.charAt(0)&&(e=e.substring(1));for(var n=0,r=e.split("&");n<r.length;n++){var i=r[n];if(0!==i.length){var o=i.split("=");2===o.length?t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]):j("Invalid query segment '"+i+"' in query '"+e+"'")}}return t}function a(e,t){return z(e.name,t.name)}function s(e,t){return z(e,t)}function u(e,t){if(void 0===t&&(t=null),null===e)return Ye.EMPTY_NODE;if("object"===typeof e&&".priority"in e&&(t=e[".priority"]),y.assert(null===t||"string"===typeof t||"number"===typeof t||"object"===typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"===typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!==typeof e||".sv"in e){return new je(e,u(t))}if(e instanceof Array||!Je){var n=Ye.EMPTY_NODE,r=e;return y.forEach(r,function(e,t){if(y.contains(r,e)&&"."!==e.substring(0,1)){var i=u(t);!i.isLeafNode()&&i.isEmpty()||(n=n.updateImmediateChild(e,i))}}),n.updatePriority(u(t))}var i=[],o=!1,l=e;if(y.forEach(l,function(e,t){if("string"!==typeof e||"."!==e.substring(0,1)){var n=u(l[e]);n.isEmpty()||(o=o||!n.getPriority().isEmpty(),i.push(new Ie(e,n)))}}),0==i.length)return Ye.EMPTY_NODE;var c=Ke(i,a,function(e){return e.name},s);if(o){var f=Ke(i,Ue.getCompare());return new Ye(c,u(t),new Qe({".priority":f},{".priority":Ue}))}return new Ye(c,u(t),Qe.Default)}function l(t){var n=t.INTERNAL.registerService("database",function(e,t,n){return Sn.getInstance().databaseFromApp(e,n)},{Reference:wn,Query:lt,Database:kn,enableLogging:A,INTERNAL:Ln,ServerValue:Hn,TEST_ACCESS:Wn},null,!0);y.isNodeSdk()&&(e.exports=n)}Object.defineProperty(t,"__esModule",{value:!0});var c,f,d,h,p,m,v,y=n(85),g=n(129),b=n(51),w=function(e){return e&&"object"===typeof e&&"default"in e?e.default:e}(n(35)),_=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),y.stringify(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:y.jsonEval(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}(),E=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return y.contains(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}(),T=function(e){try{if("undefined"!==typeof window&&"undefined"!==typeof window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new _(t)}}catch(e){}return new E},x=T("localStorage"),S=T("sessionStorage"),k=new g.Logger("@firebase/database"),C=function(){var e=1;return function(){return e++}}(),O=function(e){var t=y.stringToByteArray(e),n=new y.Sha1;n.update(t);var r=n.digest();return y.base64.encodeByteArray(r)},N=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++)Array.isArray(e[r])||e[r]&&"object"===typeof e[r]&&"number"===typeof e[r].length?n+=N.apply(null,e[r]):"object"===typeof e[r]?n+=y.stringify(e[r]):n+=e[r],n+=" ";return n},P=null,I=!0,A=function(e,t){y.assert(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(k.logLevel=g.LogLevel.VERBOSE,P=k.log.bind(k),t&&S.set("logging_enabled",!0)):"function"===typeof e?P=e:(P=null,S.remove("logging_enabled"))},D=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===I&&(I=!1,null===P&&!0===S.get("logging_enabled")&&A(!0)),P){var n=N.apply(null,e);P(n)}},R=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];D.apply(void 0,[e].concat(t))}},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+N.apply(void 0,e);k.error(n)},L=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+N.apply(void 0,e);throw k.error(n),new Error(n)},j=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+N.apply(void 0,e);k.warn(n)},F=function(){"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&j("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().")},U=function(e){return"number"===typeof e&&(e!=e||e==Number.POSITIVE_INFINITY||e==Number.NEGATIVE_INFINITY)},B=function(e){if(y.isNodeSdk()||"complete"===document.readyState)e();else{var t=!1,n=function(){if(!document.body)return void setTimeout(n,Math.floor(10));t||(t=!0,e())};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&n()}),window.attachEvent("onload",n))}},q="[MIN_NAME]",V="[MAX_NAME]",z=function(e,t){if(e===t)return 0;if(e===q||t===V)return-1;if(t===q||e===V)return 1;var n=ee(e),r=ee(t);return null!==n?null!==r?n-r==0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1},W=function(e,t){return e===t?0:e<t?-1:1},H=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+y.stringify(t))},K=function(e){if("object"!==typeof e||null===e)return y.stringify(e);var t=[];for(var n in e)t.push(n);t.sort();for(var r="{",i=0;i<t.length;i++)0!==i&&(r+=","),r+=y.stringify(t[i]),r+=":",r+=K(e[t[i]]);return r+="}"},G=function(e,t){var n=e.length;if(n<=t)return[e];for(var r=[],i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r},Q=function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;++n)t(n,e[n]);else y.forEach(e,function(e,n){return t(n,e)})},Y=function(e){y.assert(!U(e),"Invalid JSON number");var t,n,r,i,o,a,s;for(0===e?(n=0,r=0,t=1/e===-1/0?1:0):(t=e<0,e=Math.abs(e),e>=Math.pow(2,-1022)?(i=Math.min(Math.floor(Math.log(e)/Math.LN2),1023),n=i+1023,r=Math.round(e*Math.pow(2,52-i)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074)))),a=[],o=52;o;o-=1)a.push(r%2?1:0),r=Math.floor(r/2);for(o=11;o;o-=1)a.push(n%2?1:0),n=Math.floor(n/2);a.push(t?1:0),a.reverse(),s=a.join("");var u="";for(o=0;o<64;o+=8){var l=parseInt(s.substr(o,8),2).toString(16);1===l.length&&(l="0"+l),u+=l}return u.toLowerCase()},X=function(){return!("object"!==typeof window||!window.chrome||!window.chrome.extension||/^chrome/.test(window.location.href))},$=function(){return"object"===typeof Windows&&"object"===typeof Windows.UI},J=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"==e?n="Client doesn't have permission to access the desired data.":"unavailable"==e&&(n="The service is unavailable");var r=new Error(e+" at "+t.path.toString()+": "+n);return r.code=e.toUpperCase(),r},Z=new RegExp("^-?\\d{1,10}$"),ee=function(e){if(Z.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},te=function(e){try{e()}catch(e){setTimeout(function(){var t=e.stack||"";throw j("Exception was thrown by user callback.",t),e},Math.floor(0))}},ne=function(){return("object"===typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},re=function(e,t){var n=setTimeout(e,t);return"object"===typeof n&&n.unref&&n.unref(),n},ie=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!0,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t<this.pieces_.length&&t++,new e(this.pieces_,t)},e.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e.prototype.toUrlEncodedString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+encodeURIComponent(String(this.pieces_[t])));return e||"/"},e.prototype.slice=function(e){return void 0===e&&(e=0),this.pieces_.slice(this.pieceNum_+e)},e.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)t.push(this.pieces_[n]);return new e(t,0)},e.prototype.child=function(t){for(var n=[],r=this.pieceNum_;r<this.pieces_.length;r++)n.push(this.pieces_[r]);if(t instanceof e)for(var r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else for(var i=t.split("/"),r=0;r<i.length;r++)i[r].length>0&&n.push(i[r]);return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var r=t.getFront(),i=n.getFront();if(null===r)return n;if(r===i)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),r=t.slice(),i=0;i<n.length&&i<r.length;i++){var o=z(n[i],r[i]);if(0!==o)return o}return n.length===r.length?0:n.length<r.length?-1:1},e.prototype.equals=function(e){if(this.getLength()!==e.getLength())return!1;for(var t=this.pieceNum_,n=e.pieceNum_;t<=this.pieces_.length;t++,n++)if(this.pieces_[t]!==e.pieces_[n])return!1;return!0},e.prototype.contains=function(e){var t=this.pieceNum_,n=e.pieceNum_;if(this.getLength()>e.getLength())return!1;for(;t<this.pieces_.length;){if(this.pieces_[t]!==e.pieces_[n])return!1;++t,++n}return!0},e}(),oe=function(){function e(e,t){this.errorPrefix_=t,this.parts_=e.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=y.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(e,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!0,configurable:!0}),Object.defineProperty(e,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!0,configurable:!0}),e.prototype.push=function(e){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=y.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=y.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0==this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}(),ae="long_polling",se=function(){function e(e,t,n,r,i){void 0===i&&(i=""),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.persistenceKey=i,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=x.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&x.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){y.assert("string"===typeof e,"typeof type must == string"),y.assert("object"===typeof t,"typeof params must == object");var n;if("websocket"===e)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if(e!==ae)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var r=[];return y.forEach(t,function(e,t){r.push(e+"="+t)}),n+r.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}(),ue=function(e){var t=le(e),n=t.subdomain;"firebase"===t.domain&&L(t.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),n&&"undefined"!=n||"localhost"===t.domain||L("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),t.secure||F();var r="ws"===t.scheme||"wss"===t.scheme;return{repoInfo:new se(t.host,t.secure,n,r),path:new ie(t.pathString)}},le=function(e){var t="",n="",r="",a="",s=!0,u="https",l=443;if("string"===typeof e){var c=e.indexOf("//");c>=0&&(u=e.substring(0,c-1),e=e.substring(c+2));var f=e.indexOf("/");-1===f&&(f=e.length);var d=e.indexOf("?");-1===d&&(d=e.length),t=e.substring(0,Math.min(f,d)),f<d&&(a=i(e.substring(f,d)));var h=o(e.substring(Math.min(e.length,d)));c=t.indexOf(":"),c>=0?(s="https"===u||"wss"===u,l=parseInt(t.substring(c+1),10)):c=e.length;var p=t.split(".");3===p.length?(n=p[1],r=p[0].toLowerCase()):2===p.length?n=p[0]:"localhost"===p[0].slice(0,c).toLowerCase()&&(n="localhost"),""===r&&"ns"in h&&(r=h.ns)}return{host:t,port:l,domain:n,subdomain:r,secure:s,scheme:u,pathString:a}},ce=/[\[\].#$\/\u0000-\u001F\u007F]/,fe=/[\[\].#$\u0000-\u001F\u007F]/,de=function(e){return"string"===typeof e&&0!==e.length&&!ce.test(e)},he=function(e){return"string"===typeof e&&0!==e.length&&!fe.test(e)},pe=function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),he(e)},me=function(e){return null===e||"string"===typeof e||"number"===typeof e&&!U(e)||e&&"object"===typeof e&&y.contains(e,".sv")},ve=function(e,t,n,r,i){i&&void 0===n||ye(y.errorPrefix(e,t,i),n,r)},ye=function(e,t,n){var r=n instanceof ie?new oe(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+r.toErrorString());if("function"===typeof t)throw new Error(e+"contains a function "+r.toErrorString()+" with contents = "+t.toString());if(U(t))throw new Error(e+"contains "+t.toString()+" "+r.toErrorString());if("string"===typeof t&&t.length>10485760/3&&y.stringLength(t)>10485760)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+r.toErrorString()+" ('"+t.substring(0,50)+"...')");if(t&&"object"===typeof t){var i=!1,o=!1;if(y.forEach(t,function(t,n){if(".value"===t)i=!0;else if(".priority"!==t&&".sv"!==t&&(o=!0,!de(t)))throw new Error(e+" contains an invalid key ("+t+") "+r.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(t),ye(e,n,r),r.pop()}),i&&o)throw new Error(e+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},ge=function(e,t){var n,r;for(n=0;n<t.length;n++){r=t[n];for(var i=r.slice(),o=0;o<i.length;o++)if(".priority"===i[o]&&o===i.length-1);else if(!de(i[o]))throw new Error(e+"contains an invalid key ("+i[o]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"')}t.sort(ie.comparePaths);var a=null;for(n=0;n<t.length;n++){if(r=t[n],null!==a&&a.contains(r))throw new Error(e+"contains a path "+a.toString()+" that is ancestor of another path "+r.toString());a=r}},be=function(e,t,n,r,i){if(!i||void 0!==n){var o=y.errorPrefix(e,t,i);if(!n||"object"!==typeof n||Array.isArray(n))throw new Error(o+" must be an object containing the children to replace.");var a=[];y.forEach(n,function(e,t){var n=new ie(e);if(ye(o,t,r.child(n)),".priority"===n.getBack()&&!me(t))throw new Error(o+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");a.push(n)}),ge(o,a)}},we=function(e,t,n,r){if(!r||void 0!==n){if(U(n))throw new Error(y.errorPrefix(e,t,r)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!me(n))throw new Error(y.errorPrefix(e,t,r)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},_e=function(e,t,n,r){if(!r||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(y.errorPrefix(e,t,r)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},Ee=function(e,t,n,r){if((!r||void 0!==n)&&!de(n))throw new Error(y.errorPrefix(e,t,r)+'was an invalid key = "'+n+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},Te=function(e,t,n,r){if((!r||void 0!==n)&&!he(n))throw new Error(y.errorPrefix(e,t,r)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},xe=function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),Te(e,t,n,r)},Se=function(e,t){if(".info"===t.getFront())throw new Error(e+" failed = Can't modify data under /.info/")},ke=function(e,t,n){var r=n.path.toString();if("string"!==typeof n.repoInfo.host||0===n.repoInfo.host.length||!de(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==r.length&&!pe(r))throw new Error(y.errorPrefix(e,t,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},Ce=function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!==typeof n)throw new Error(y.errorPrefix(e,t,r)+"must be a boolean.")},Oe=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){y.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),y.validateCallback("OnDisconnect.cancel",1,e,!0);var t=new y.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){y.validateArgCount("OnDisconnect.remove",0,1,arguments.length),Se("OnDisconnect.remove",this.path_),y.validateCallback("OnDisconnect.remove",1,e,!0);var t=new y.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){y.validateArgCount("OnDisconnect.set",1,2,arguments.length),Se("OnDisconnect.set",this.path_),ve("OnDisconnect.set",1,e,this.path_,!1),y.validateCallback("OnDisconnect.set",2,t,!0);var n=new y.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){y.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),Se("OnDisconnect.setWithPriority",this.path_),ve("OnDisconnect.setWithPriority",1,e,this.path_,!1),we("OnDisconnect.setWithPriority",2,t,!1),y.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var r=new y.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,r.wrapCallback(n)),r.promise},e.prototype.update=function(e,t){if(y.validateArgCount("OnDisconnect.update",1,2,arguments.length),Se("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,j("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}be("OnDisconnect.update",1,e,this.path_,!1),y.validateCallback("OnDisconnect.update",2,t,!0);var i=new y.Deferred;return this.repo_.onDisconnectUpdate(this.path_,e,i.wrapCallback(t)),i.promise},e}(),Ne=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return y.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),Pe=function(){var e="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",t=0,n=[];return function(r){var i=r===t;t=r;var o,a=new Array(8);for(o=7;o>=0;o--)a[o]=e.charAt(r%64),r=Math.floor(r/64);y.assert(0===r,"Cannot push at time == 0");var s=a.join("");if(i){for(o=11;o>=0&&63===n[o];o--)n[o]=0;n[o]++}else for(o=0;o<12;o++)n[o]=Math.floor(64*Math.random());for(o=0;o<12;o++)s+=e.charAt(n[o]);return y.assert(20===s.length,"nextPushId: Length should be 20."),s}}(),Ie=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),Ae=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new Ie(q,e),r=new Ie(q,t);return 0!==this.compare(n,r)},e.prototype.minPost=function(){return Ie.MIN},e}(),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b.__extends(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return c},set:function(e){c=e},enumerable:!0,configurable:!0}),t.prototype.compare=function(e,t){return z(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw y.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return Ie.MIN},t.prototype.maxPost=function(){return new Ie(V,c)},t.prototype.makePost=function(e,t){return y.assert("string"===typeof e,"KeyIndex indexValue must always be a string."),new Ie(e,c)},t.prototype.toString=function(){return".key"},t}(Ae),Re=new De,Me=function(e){return"number"===typeof e?"number:"+Y(e):"string:"+e},Le=function(e){if(e.isLeafNode()){var t=e.val();y.assert("string"===typeof t||"number"===typeof t||"object"===typeof t&&y.contains(t,".sv"),"Priority must be a string or number.")}else y.assert(e===f||e.isEmpty(),"priority of unexpected type.");y.assert(e===f||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},je=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,y.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Le(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var r=t.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(y.assert(".priority"!==r||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+Me(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?Y(this.value_):this.value_,this.lazyHash_=O(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(y.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,r=typeof this.value_,i=e.VALUE_TYPE_ORDER.indexOf(n),o=e.VALUE_TYPE_ORDER.indexOf(r);return y.assert(i>=0,"Unknown leaf type: "+n),y.assert(o>=0,"Unknown leaf type: "+r),i===o?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:o-i},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}(),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return 0===i?z(e.name,t.name):i},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return Ie.MIN},t.prototype.maxPost=function(){return new Ie(V,new je("[PRIORITY-POST]",p))},t.prototype.makePost=function(e,t){var n=h(e);return new Ie(t,new je("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(Ae),Ue=new Fe,Be=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];for(var o=1;!e.isEmpty();)if(e=e,o=t?n(e.key,t):1,r&&(o*=-1),o<0)e=this.isReverse_?e.left:e.right;else{if(0===o){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),qe=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:ze.EMPTY_NODE,this.right=null!=o?o:ze.EMPTY_NODE}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r,i;return i=this,r=n(e,i.key),i=r<0?i.copy(null,null,null,i.left.insert(e,t,n),null):0===r?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,n)),i.fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return ze.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()},e.prototype.remove=function(e,t){var n,r;if(n=this,t(e,n.key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return ze.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){var e;if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");if((e=this.left.check_())!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),Ve=function(){function e(){}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new qe(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),ze=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,qe.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,qe.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Be(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Be(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Be(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Be(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new Ve,e}(),We=Math.log(2),He=function(){function e(e){this.count=function(e){return parseInt(Math.log(e)/We,10)}(e+1),this.current_=this.count-1;var t=function(e){return parseInt(Array(e+1).join("1"),2)}(this.count);this.bits_=e+1&t}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}(),Ke=function(e,t,n,r){e.sort(t);var i=function(t,r){var o,a,s=r-t;if(0==s)return null;if(1==s)return o=e[t],a=n?n(o):o,new qe(a,o.node,qe.BLACK,null,null);var u=parseInt(s/2,10)+t,l=i(t,u),c=i(u+1,r);return o=e[u],a=n?n(o):o,new qe(a,o.node,qe.BLACK,l,c)},o=new He(e.length),a=function(t){for(var r=null,o=null,a=e.length,s=function(t,r){var o=a-t,s=a;a-=t;var l=i(o+1,s),c=e[o],f=n?n(c):c;u(new qe(f,c.node,r,null,l))},u=function(e){r?(r.left=e,r=e):(o=e,r=e)},l=0;l<t.count;++l){var c=t.nextBitIsOne(),f=Math.pow(2,t.count-(l+1));c?s(f,qe.BLACK):(s(f,qe.BLACK),s(f,qe.RED))}return o}(o);return new ze(r||t,a)},Ge={},Qe=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return y.assert(Ge&&Ue,"ChildrenNode.ts has not been loaded"),m=m||new e({".priority":Ge},{".priority":Ue})},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=y.safeGet(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t===Ge?null:t},e.prototype.hasIndex=function(e){return y.contains(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){y.assert(t!==Re,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r=[],i=!1,o=n.getIterator(Ie.Wrap),a=o.getNext();a;)i=i||t.isDefinedOn(a.node),r.push(a),a=o.getNext();var s;s=i?Ke(r,t.getCompare()):Ge;var u=t.toString(),l=y.clone(this.indexSet_);l[u]=t;var c=y.clone(this.indexes_);return c[u]=s,new e(c,l)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(y.map(this.indexes_,function(e,i){var o=y.safeGet(r.indexSet_,i);if(y.assert(o,"Missing index implementation for "+i),e===Ge){if(o.isDefinedOn(t.node)){for(var a=[],s=n.getIterator(Ie.Wrap),u=s.getNext();u;)u.name!=t.name&&a.push(u),u=s.getNext();return a.push(t),Ke(a,o.getCompare())}return Ge}var l=n.get(t.name),c=e;return l&&(c=c.remove(new Ie(t.name,l))),c.insert(t,t.node)}),this.indexSet_)},e.prototype.removeFromIndexes=function(t,n){return new e(y.map(this.indexes_,function(e){if(e===Ge)return e;var r=n.get(t.name);return r?e.remove(new Ie(t.name,r)):e}),this.indexSet_)},e}(),Ye=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Le(this.priorityNode_),this.children_.isEmpty()&&y.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return v||(v=new e(new ze(s),null,Qe.Default))},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||v},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?v:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(y.assert(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new Ie(t,n),i=void 0,o=void 0,a=void 0;return n.isEmpty()?(i=this.children_.remove(t),o=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),o=this.indexMap_.addToIndexes(r,this.children_)),a=i.isEmpty()?v:this.priorityNode_,new e(i,a,o)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;y.assert(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,i=0,o=!0;if(this.forEachChild(Ue,function(a,s){n[a]=s.val(t),r++,o&&e.INTEGER_REGEXP_.test(a)?i=Math.max(i,Number(a)):o=!1}),!t&&o&&i<2*r){var a=[];for(var s in n)a[s]=n[s];return a}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+Me(this.getPriority().val())+":"),this.forEachChild(Ue,function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)}),this.lazyHash_=""===e?"":O(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new Ie(e,t));return i?i.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new Ie(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new Ie(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal(function(e){return t(e.name,e.node)}):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,function(e){return e});for(var r=this.children_.getIteratorFrom(e.name,Ie.Wrap),i=r.peek();null!=i&&t.compare(i,e)<0;)r.getNext(),i=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,function(e){return e});for(var r=this.children_.getReverseIteratorFrom(e.name,Ie.Wrap),i=r.peek();null!=i&&t.compare(i,e)>0;)r.getNext(),i=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===$e?-1:0},e.prototype.withIndex=function(t){if(t===Re||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===Re||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(Ue),r=t.getIterator(Ue),i=n.getNext(),o=r.getNext();i&&o;){if(i.name!==o.name||!i.node.equals(o.node))return!1;i=n.getNext(),o=r.getNext()}return null===i&&null===o}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===Re?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),Xe=function(e){function t(){return e.call(this,new ze(s),Ye.EMPTY_NODE,Qe.Default)||this}return b.__extends(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return Ye.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(Ye),$e=new Xe;Object.defineProperties(Ie,{MIN:{value:new Ie(q,Ye.EMPTY_NODE)},MAX:{value:new Ie(V,$e)}}),De.__EMPTY_NODE=Ye.EMPTY_NODE,je.__childrenNodeConstructor=Ye,function(e){f=e}($e),function(e){p=e}($e);var Je=!0;!function(e){h=e}(u);var Ze,et,tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?z(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return Ie.MIN},t.prototype.maxPost=function(){return Ie.MAX},t.prototype.makePost=function(e,t){var n=u(e);return new Ie(t,n)},t.prototype.toString=function(){return".value"},t}(Ae),nt=new tt,rt=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,y.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return b.__extends(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?z(e.name,t.name):i},t.prototype.makePost=function(e,t){var n=u(e),r=Ye.EMPTY_NODE.updateChild(this.indexPath_,n);return new Ie(t,r)},t.prototype.maxPost=function(){var e=Ye.EMPTY_NODE.updateChild(this.indexPath_,$e);return new Ie(V,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(Ae),it=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return y.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return y.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return y.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return y.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){y.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),Te("DataSnapshot.child",1,t,!1);var n=new ie(t),r=this.ref_.child(n);return new e(this.node_.getChild(n),r,Ue)},e.prototype.hasChild=function(e){y.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),Te("DataSnapshot.hasChild",1,e,!1);var t=new ie(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return y.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;return y.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),y.validateCallback("DataSnapshot.forEach",1,t,!1),!this.node_.isLeafNode()&&!!this.node_.forEachChild(this.index_,function(r,i){return t(new e(i,n.ref_.child(r),Ue))})},e.prototype.hasChildren=function(){return y.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!0,configurable:!0}),e.prototype.numChildren=function(){return y.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return y.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),ot=function(){function e(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+y.stringify(this.snapshot.exportVal())},e}(),at=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),st=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new ot("value",this,new it(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){y.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callback_;return function(){r.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new at(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}(),ut=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,y.contains(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new at(this,e,t):null},e.prototype.createEvent=function(e,t){y.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),r=t.getQueryParams().getIndex();return new ot(e.type,this,new it(e.snapshotNode,n,r),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){y.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callbacks_[e.eventType];return function(){r.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var n=y.getCount(t.callbacks_);if(n===y.getCount(this.callbacks_)){if(1===n){var r=y.getAnyKey(t.callbacks_),i=y.getAnyKey(this.callbacks_);return i===r&&(!t.callbacks_[r]||!this.callbacks_[i]||t.callbacks_[r]===this.callbacks_[i])}return y.every(this.callbacks_,function(e,n){return t.callbacks_[e]===n})}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}(),lt=function(){function e(e,t,n,r){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return y.assert(Ze,"Reference.ts has not been loaded"),Ze},set:function(e){Ze=e},enumerable:!0,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===Re){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!=q)throw new Error(r);if("string"!==typeof t)throw new Error(i)}if(e.hasEnd()){if(e.getIndexEndName()!=V)throw new Error(r);if("string"!==typeof n)throw new Error(i)}}else if(e.getIndex()===Ue){if(null!=t&&!me(t)||null!=n&&!me(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(y.assert(e.getIndex()instanceof rt||e.getIndex()===nt,"unknown index type."),null!=t&&"object"===typeof t||null!=n&&"object"===typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return y.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,r,i){y.validateArgCount("Query.on",2,4,arguments.length),_e("Query.on",1,t,!1),y.validateCallback("Query.on",2,n,!1);var o=e.getCancelAndContextArgs_("Query.on",r,i);if("value"===t)this.onValueEvent(n,o.cancel,o.context);else{var a={};a[t]=n,this.onChildEvent(a,o.cancel,o.context)}return n},e.prototype.onValueEvent=function(e,t,n){var r=new st(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,r)},e.prototype.onChildEvent=function(e,t,n){var r=new ut(e,t,n);this.repo.addEventCallbackForQuery(this,r)},e.prototype.off=function(e,t,n){y.validateArgCount("Query.off",0,3,arguments.length),_e("Query.off",1,e,!0),y.validateCallback("Query.off",2,t,!0),y.validateContextObject("Query.off",3,n,!0);var r=null,i=null;if("value"===e){r=new st(t||null,null,n||null)}else e&&(t&&(i={},i[e]=t),r=new ut(i,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},e.prototype.once=function(t,n,r,i){var o=this;y.validateArgCount("Query.once",1,4,arguments.length),_e("Query.once",1,t,!1),y.validateCallback("Query.once",2,n,!0);var a=e.getCancelAndContextArgs_("Query.once",r,i),s=!0,u=new y.Deferred;u.promise.catch(function(){});var l=function(e){s&&(s=!1,o.off(t,l),n&&n.bind(a.context)(e),u.resolve(e))};return this.on(t,l,function(e){o.off(t,l),a.cancel&&a.cancel.bind(a.context)(e),u.reject(e)}),u.promise},e.prototype.limitToFirst=function(t){if(y.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(y.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(y.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');Te("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new ie(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");var r=new rt(n),i=this.queryParams_.orderBy(r);return e.validateQueryEndpoints_(i),new e(this.repo,this.path,i,!0)},e.prototype.orderByKey=function(){y.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(Re);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){y.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy(Ue);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){y.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(nt);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),y.validateArgCount("Query.startAt",0,2,arguments.length),ve("Query.startAt",1,t,this.path,!0),Ee("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),y.validateArgCount("Query.endAt",0,2,arguments.length),ve("Query.endAt",1,t,this.path,!0),Ee("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(y.validateArgCount("Query.equalTo",1,2,arguments.length),ve("Query.equalTo",1,e,this.path,!1),Ee("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return y.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return y.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=K(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(y.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.")}var n=this.repo===t.repo,r=this.path.equals(t.path),i=this.queryIdentifier()===t.queryIdentifier();return n&&r&&i},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:null,context:null};if(t&&n)r.cancel=t,y.validateCallback(e,3,r.cancel,!0),r.context=n,y.validateContextObject(e,4,r.context,!0);else if(t)if("object"===typeof t&&null!==t)r.context=t;else{if("function"!==typeof t)throw new Error(y.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),ct=function(){function e(){this.set={}}return e.prototype.add=function(e,t){this.set[e]=null===t||t},e.prototype.contains=function(e){return y.contains(this.set,e)},e.prototype.get=function(e){return this.contains(e)?this.set[e]:void 0},e.prototype.remove=function(e){delete this.set[e]},e.prototype.clear=function(){this.set={}},e.prototype.isEmpty=function(){return y.isEmpty(this.set)},e.prototype.count=function(){return y.getCount(this.set)},e.prototype.each=function(e){y.forEach(this.set,function(t,n){return e(t,n)})},e.prototype.keys=function(){var e=[];return y.forEach(this.set,function(t){e.push(t)}),e},e}(),ft=function(){function e(){this.value_=null,this.children_=null}return e.prototype.find=function(e){if(null!=this.value_)return this.value_.getChild(e);if(e.isEmpty()||null==this.children_)return null;var t=e.getFront();if(e=e.popFront(),this.children_.contains(t)){return this.children_.get(t).find(e)}return null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value_=n,this.children_=null;else if(null!==this.value_)this.value_=this.value_.updateChild(t,n);else{null==this.children_&&(this.children_=new ct);var r=t.getFront();this.children_.contains(r)||this.children_.add(r,new e);var i=this.children_.get(r);t=t.popFront(),i.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value_=null,this.children_=null,!0;if(null!==this.value_){if(this.value_.isLeafNode())return!1;var t=this.value_;this.value_=null;var n=this;return t.forEachChild(Ue,function(e,t){n.remember(new ie(e),t)}),this.forget(e)}if(null!==this.children_){var r=e.getFront();if(e=e.popFront(),this.children_.contains(r)){this.children_.get(r).forget(e)&&this.children_.remove(r)}return!!this.children_.isEmpty()&&(this.children_=null,!0)}return!0},e.prototype.forEachTree=function(e,t){null!==this.value_?t(e,this.value_):this.forEachChild(function(n,r){var i=new ie(e.toString()+"/"+n);r.forEachTree(i,t)})},e.prototype.forEachChild=function(e){null!==this.children_&&this.children_.each(function(t,n){e(t,n)})},e}(),dt=function(e){return e=e||{},e.timestamp=e.timestamp||(new Date).getTime(),e},ht=function(e,t){return e&&"object"===typeof e?(y.assert(".sv"in e,"Unexpected leaf node or priority contents"),t[e[".sv"]]):e},pt=function(e,t){var n=new ft;return e.forEachTree(new ie(""),function(e,r){n.remember(e,mt(r,t))}),n},mt=function(e,t){var n,r=e.getPriority().val(),i=ht(r,t);if(e.isLeafNode()){var o=e,a=ht(o.getValue(),t);return a!==o.getValue()||i!==o.getPriority().val()?new je(a,u(i)):e}var s=e;return n=s,i!==s.getPriority().val()&&(n=n.updatePriority(new je(i))),s.forEachChild(Ue,function(e,r){var i=mt(r,t);i!==r&&(n=n.updateImmediateChild(e,i))}),n};!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(et||(et={}));var vt,yt,gt=function(){function e(e,t,n,r){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=r,y.assert(!r||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}(),bt=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=et.ACK_USER_WRITE,this.source=gt.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return y.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new ie(t));return new e(ie.Empty,n,this.revert)}return y.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}(),wt=function(){return vt||(vt=new ze(W)),vt},_t=function(){function e(e,t){void 0===t&&(t=wt()),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return y.forEach(t,function(e,t){n=n.set(new ie(e),t)}),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:ie.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(e.popFront(),t);if(null!=i){return{path:new ie(n).child(i.path),value:i.value}}return null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,function(){return!0})},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),r=this.children.get(n);return null!==r?r.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var r=t.getFront(),i=this.children.get(r)||e.Empty,o=i.set(t.popFront(),n),a=this.children.insert(r,o);return new e(this.value,a)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),r=this.children.get(n);if(r){var i=r.remove(t.popFront()),o=void 0;return o=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&o.isEmpty()?e.Empty:new e(this.value,o)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var r=t.getFront(),i=this.children.get(r)||e.Empty,o=i.setTree(t.popFront(),n),a=void 0;return a=o.isEmpty()?this.children.remove(r):this.children.insert(r,o),new e(this.value,a)},e.prototype.fold=function(e){return this.fold_(ie.Empty,e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal(function(r,i){n[r]=i.fold_(e.child(r),t)}),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,ie.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(e.isEmpty())return null;var i=e.getFront(),o=this.children.get(i);return o?o.findOnPath_(e.popFront(),t.child(i),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,ie.Empty,t)},e.prototype.foreachOnPath_=function(t,n,r){if(t.isEmpty())return this;this.value&&r(n,this.value);var i=t.getFront(),o=this.children.get(i);return o?o.foreachOnPath_(t.popFront(),n.child(i),r):e.Empty},e.prototype.foreach=function(e){this.foreach_(ie.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal(function(n,r){r.foreach_(e.child(n),t)}),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal(function(t,n){n.value&&e(t,n.value)})},e.Empty=new e(null),e}(),Et=function(){function e(e,t){this.source=e,this.path=t,this.type=et.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,ie.Empty):new e(this.source,this.path.popFront())},e}(),Tt=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=et.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,ie.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}(),xt=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=et.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new ie(t));return n.isEmpty()?null:n.value?new Tt(this.source,ie.Empty,n.value):new e(this.source,ie.Empty,n)}return y.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),St=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),kt=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,r){return new e(new St(t,n,r),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,r){return new e(this.eventCache_,new St(t,n,r))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new St(Ye.EMPTY_NODE,!1,!1),new St(Ye.EMPTY_NODE,!1,!1)),e}(),Ct=function(){function e(e,t,n,r,i){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=r,this.prevName=i}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,r){return new e(e.CHILD_CHANGED,n,t,r)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}(),Ot=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,r,i,o){y.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var a=e.getImmediateChild(t);return a.getChild(r).equals(n.getChild(r))&&a.isEmpty()==n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(Ct.childRemovedChange(t,a)):y.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(Ct.childAddedChange(t,n)):o.trackChildChange(Ct.childChangedChange(t,n,a))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Ue,function(e,r){t.hasChild(e)||n.trackChildChange(Ct.childRemovedChange(e,r))}),t.isLeafNode()||t.forEachChild(Ue,function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(Ct.childChangedChange(t,r,i))}else n.trackChildChange(Ct.childAddedChange(t,r))})),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?Ye.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}(),Nt=function(){function e(){this.changeMap_={}}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;y.assert(t==Ct.CHILD_ADDED||t==Ct.CHILD_CHANGED||t==Ct.CHILD_REMOVED,"Only child changes supported for tracking"),y.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var r=y.safeGet(this.changeMap_,n);if(r){var i=r.type;if(t==Ct.CHILD_ADDED&&i==Ct.CHILD_REMOVED)this.changeMap_[n]=Ct.childChangedChange(n,e.snapshotNode,r.snapshotNode);else if(t==Ct.CHILD_REMOVED&&i==Ct.CHILD_ADDED)delete this.changeMap_[n];else if(t==Ct.CHILD_REMOVED&&i==Ct.CHILD_CHANGED)this.changeMap_[n]=Ct.childRemovedChange(n,r.oldSnap);else if(t==Ct.CHILD_CHANGED&&i==Ct.CHILD_ADDED)this.changeMap_[n]=Ct.childAddedChange(n,e.snapshotNode);else{if(t!=Ct.CHILD_CHANGED||i!=Ct.CHILD_CHANGED)throw y.assertionError("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap_[n]=Ct.childChangedChange(n,e.snapshotNode,r.oldSnap)}}else this.changeMap_[n]=e},e.prototype.getChanges=function(){return y.getValues(this.changeMap_)},e}(),Pt=function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}(),It=new Pt,At=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new St(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),i=this.writes_.calcIndexedSlice(r,t,1,n,e);return 0===i.length?null:i[0]},e}(),Dt=function(){function e(e,t){this.viewCache=e,this.changes=t}return e}(),Rt=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){y.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),y.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,r,i){var o,a,s=new Nt;if(n.type===et.OVERWRITE){var u=n;u.source.fromUser?o=this.applyUserOverwrite_(t,u.path,u.snap,r,i,s):(y.assert(u.source.fromServer,"Unknown source."),a=u.source.tagged||t.getServerCache().isFiltered()&&!u.path.isEmpty(),o=this.applyServerOverwrite_(t,u.path,u.snap,r,i,a,s))}else if(n.type===et.MERGE){var l=n;l.source.fromUser?o=this.applyUserMerge_(t,l.path,l.children,r,i,s):(y.assert(l.source.fromServer,"Unknown source."),a=l.source.tagged||t.getServerCache().isFiltered(),o=this.applyServerMerge_(t,l.path,l.children,r,i,a,s))}else if(n.type===et.ACK_USER_WRITE){var c=n;o=c.revert?this.revertUserWrite_(t,c.path,r,i,s):this.ackUserWrite_(t,c.path,c.affectedTree,r,i,s)}else{if(n.type!==et.LISTEN_COMPLETE)throw y.assertionError("Unknown operation type: "+n.type);o=this.listenComplete_(t,n.path,r,s)}var f=s.getChanges();return e.maybeAddValueEvent_(t,o,f),new Dt(o,f)},e.maybeAddValueEvent_=function(e,t,n){var r=t.getEventCache();if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(Ct.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,r,i){var o=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var a=void 0,s=void 0;if(t.isEmpty())if(y.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var u=e.getCompleteServerSnap(),l=u instanceof Ye?u:Ye.EMPTY_NODE,c=n.calcCompleteEventChildren(l);a=this.filter_.updateFullNode(e.getEventCache().getNode(),c,i)}else{var f=n.calcCompleteEventCache(e.getCompleteServerSnap());a=this.filter_.updateFullNode(e.getEventCache().getNode(),f,i)}else{var d=t.getFront();if(".priority"==d){y.assert(1==t.getLength(),"Can't have a priority with additional path components");var h=o.getNode();s=e.getServerCache().getNode();var p=n.calcEventCacheAfterServerOverwrite(t,h,s);a=null!=p?this.filter_.updatePriority(h,p):o.getNode()}else{var m=t.popFront(),v=void 0;if(o.isCompleteForChild(d)){s=e.getServerCache().getNode();var g=n.calcEventCacheAfterServerOverwrite(t,o.getNode(),s);v=null!=g?o.getNode().getImmediateChild(d).updateChild(m,g):o.getNode().getImmediateChild(d)}else v=n.calcCompleteChild(d,e.getServerCache());a=null!=v?this.filter_.updateChild(o.getNode(),d,v,m,r,i):o.getNode()}}return e.updateEventSnap(a,o.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,r,i,o,a){var s,u=e.getServerCache(),l=o?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=l.updateFullNode(u.getNode(),n,null);else if(l.filtersNodes()&&!u.isFiltered()){var c=u.getNode().updateChild(t,n);s=l.updateFullNode(u.getNode(),c,null)}else{var f=t.getFront();if(!u.isCompleteForPath(t)&&t.getLength()>1)return e;var d=t.popFront(),h=u.getNode().getImmediateChild(f),p=h.updateChild(d,n);s=".priority"==f?l.updatePriority(u.getNode(),p):l.updateChild(u.getNode(),f,p,d,It,null)}var m=e.updateServerSnap(s,u.isFullyInitialized()||t.isEmpty(),l.filtersNodes()),v=new At(r,m,i);return this.generateEventCacheAfterServerEvent_(m,t,r,v,a)},e.prototype.applyUserOverwrite_=function(e,t,n,r,i,o){var a,s,u=e.getEventCache(),l=new At(r,e,i);if(t.isEmpty())s=this.filter_.updateFullNode(e.getEventCache().getNode(),n,o),a=e.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var c=t.getFront();if(".priority"===c)s=this.filter_.updatePriority(e.getEventCache().getNode(),n),a=e.updateEventSnap(s,u.isFullyInitialized(),u.isFiltered());else{var f=t.popFront(),d=u.getNode().getImmediateChild(c),h=void 0;if(f.isEmpty())h=n;else{var p=l.getCompleteChild(c);h=null!=p?".priority"===f.getBack()&&p.getChild(f.parent()).isEmpty()?p:p.updateChild(f,n):Ye.EMPTY_NODE}if(d.equals(h))a=e;else{var m=this.filter_.updateChild(u.getNode(),c,h,f,l,o);a=e.updateEventSnap(m,u.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,r,i,o,a){var s=this,u=t;return r.foreach(function(r,l){var c=n.child(r);e.cacheHasChild_(t,c.getFront())&&(u=s.applyUserOverwrite_(u,c,l,i,o,a))}),r.foreach(function(r,l){var c=n.child(r);e.cacheHasChild_(t,c.getFront())||(u=s.applyUserOverwrite_(u,c,l,i,o,a))}),u},e.prototype.applyMerge_=function(e,t){return t.foreach(function(t,n){e=e.updateChild(t,n)}),e},e.prototype.applyServerMerge_=function(e,t,n,r,i,o,a){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var u,l=e;u=t.isEmpty()?n:_t.Empty.setTree(t,n);var c=e.getServerCache().getNode();return u.children.inorderTraversal(function(t,n){if(c.hasChild(t)){var u=e.getServerCache().getNode().getImmediateChild(t),f=s.applyMerge_(u,n);l=s.applyServerOverwrite_(l,new ie(t),f,r,i,o,a)}}),u.children.inorderTraversal(function(t,n){var u=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!c.hasChild(t)&&!u){var f=e.getServerCache().getNode().getImmediateChild(t),d=s.applyMerge_(f,n);l=s.applyServerOverwrite_(l,new ie(t),d,r,i,o,a)}}),l},e.prototype.ackUserWrite_=function(e,t,n,r,i,o){if(null!=r.shadowingWrite(t))return e;var a=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),r,i,a,o);if(t.isEmpty()){var u=_t.Empty;return s.getNode().forEachChild(Re,function(e,t){u=u.set(new ie(e),t)}),this.applyServerMerge_(e,t,u,r,i,a,o)}return e}var l=_t.Empty;return n.foreach(function(e,n){var r=t.child(e);s.isCompleteForPath(r)&&(l=l.set(e,s.getNode().getChild(r)))}),this.applyServerMerge_(e,t,l,r,i,a,o)},e.prototype.listenComplete_=function(e,t,n,r){var i=e.getServerCache(),o=e.updateServerSnap(i.getNode(),i.isFullyInitialized()||t.isEmpty(),i.isFiltered());return this.generateEventCacheAfterServerEvent_(o,t,n,It,r)},e.prototype.revertUserWrite_=function(e,t,n,r,i){var o;if(null!=n.shadowingWrite(t))return e;var a=new At(n,e,r),s=e.getEventCache().getNode(),u=void 0;if(t.isEmpty()||".priority"===t.getFront()){var l=void 0;if(e.getServerCache().isFullyInitialized())l=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var c=e.getServerCache().getNode();y.assert(c instanceof Ye,"serverChildren would be complete if leaf node"),l=n.calcCompleteEventChildren(c)}l=l,u=this.filter_.updateFullNode(s,l,i)}else{var f=t.getFront(),d=n.calcCompleteChild(f,e.getServerCache());null==d&&e.getServerCache().isCompleteForChild(f)&&(d=s.getImmediateChild(f)),u=null!=d?this.filter_.updateChild(s,f,d,t.popFront(),a,i):e.getEventCache().getNode().hasChild(f)?this.filter_.updateChild(s,f,Ye.EMPTY_NODE,t.popFront(),a,i):s,u.isEmpty()&&e.getServerCache().isFullyInitialized()&&(o=n.calcCompleteEventCache(e.getCompleteServerSnap()),o.isLeafNode()&&(u=this.filter_.updateFullNode(u,o,i)))}return o=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(ie.Empty),e.updateEventSnap(u,o,this.filter_.filtersNodes())},e}(),Mt=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var r=this,i=[],o=[];return e.forEach(function(e){e.type===Ct.CHILD_CHANGED&&r.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&o.push(Ct.childMovedChange(e.childName,e.snapshotNode))}),this.generateEventsForType_(i,Ct.CHILD_REMOVED,e,n,t),this.generateEventsForType_(i,Ct.CHILD_ADDED,e,n,t),this.generateEventsForType_(i,Ct.CHILD_MOVED,o,n,t),this.generateEventsForType_(i,Ct.CHILD_CHANGED,e,n,t),this.generateEventsForType_(i,Ct.VALUE,e,n,t),i},e.prototype.generateEventsForType_=function(e,t,n,r,i){var o=this,a=n.filter(function(e){return e.type===t});a.sort(this.compareChanges_.bind(this)),a.forEach(function(t){var n=o.materializeSingleChange_(t,i);r.forEach(function(r){r.respondsTo(t.type)&&e.push(r.createEvent(n,o.query_))})})},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type?e:(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_),e)},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw y.assertionError("Should only compare child_ events.");var n=new Ie(e.childName,e.snapshotNode),r=new Ie(t.childName,t.snapshotNode);return this.index_.compare(n,r)},e}(),Lt=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new Ot(n.getIndex()),i=n.getNodeFilter();this.processor_=new Rt(i);var o=t.getServerCache(),a=t.getEventCache(),s=r.updateFullNode(Ye.EMPTY_NODE,o.getNode(),null),u=i.updateFullNode(Ye.EMPTY_NODE,a.getNode(),null),l=new St(s,o.isFullyInitialized(),r.filtersNodes()),c=new St(u,a.isFullyInitialized(),i.filtersNodes());this.viewCache_=new kt(c,l),this.eventGenerator_=new Mt(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){y.assert(null==e,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach(function(e){t=t;var i=e.createCancelEvent(t,r);i&&n.push(i)})}if(e){for(var i=[],o=0;o<this.eventRegistrations_.length;++o){var a=this.eventRegistrations_[o];if(a.matches(e)){if(e.hasAnyCallback()){i=i.concat(this.eventRegistrations_.slice(o+1));break}}else i.push(a)}this.eventRegistrations_=i}else this.eventRegistrations_=[];return n},e.prototype.applyOperation=function(e,t,n){e.type===et.MERGE&&null!==e.source.queryId&&(y.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full cache before handling merges"),y.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var r=this.viewCache_,i=this.processor_.applyOperation(r,e,t,n);return this.processor_.assertIndexed(i.viewCache),y.assert(i.viewCache.getServerCache().isFullyInitialized()||!r.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=i.viewCache,this.generateEventsForChanges_(i.changes,i.viewCache.getEventCache().getNode(),null)},e.prototype.getInitialEvents=function(e){var t=this.viewCache_.getEventCache(),n=[];if(!t.getNode().isLeafNode()){t.getNode().forEachChild(Ue,function(e,t){n.push(Ct.childAddedChange(e,t))})}return t.isFullyInitialized()&&n.push(Ct.valueChange(t.getNode())),this.generateEventsForChanges_(n,t.getNode(),e)},e.prototype.generateEventsForChanges_=function(e,t,n){var r=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(e,t,r)},e}(),jt=function(){function e(){this.views_={}}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return y.assert(yt,"Reference.ts has not been loaded"),yt},set:function(e){y.assert(!yt,"__referenceConstructor has already been defined"),yt=e},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return y.isEmpty(this.views_)},e.prototype.applyOperation=function(e,t,n){var r=e.source.queryId;if(null!==r){var i=y.safeGet(this.views_,r);return y.assert(null!=i,"SyncTree gave us an op for an invalid query."),i.applyOperation(e,t,n)}var o=[];return y.forEach(this.views_,function(r,i){o=o.concat(i.applyOperation(e,t,n))}),o},e.prototype.addEventRegistration=function(e,t,n,r,i){var o=e.queryIdentifier(),a=y.safeGet(this.views_,o);if(!a){var s=n.calcCompleteEventCache(i?r:null),u=!1;s?u=!0:r instanceof Ye?(s=n.calcCompleteEventChildren(r),u=!1):(s=Ye.EMPTY_NODE,u=!1);var l=new kt(new St(s,u,!1),new St(r,i,!1));a=new Lt(e,l),this.views_[o]=a}return a.addEventRegistration(t),a.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,r){var i=t.queryIdentifier(),o=[],a=[],s=this.hasCompleteView();if("default"===i){var u=this;y.forEach(this.views_,function(e,t){a=a.concat(t.removeEventRegistration(n,r)),t.isEmpty()&&(delete u.views_[e],t.getQuery().getQueryParams().loadsAllData()||o.push(t.getQuery()))})}else{var l=y.safeGet(this.views_,i);l&&(a=a.concat(l.removeEventRegistration(n,r)),l.isEmpty()&&(delete this.views_[i],l.getQuery().getQueryParams().loadsAllData()||o.push(l.getQuery())))}return s&&!this.hasCompleteView()&&o.push(new e.__referenceConstructor(t.repo,t.path)),{removed:o,events:a}},e.prototype.getQueryViews=function(){var e=this;return Object.keys(this.views_).map(function(t){return e.views_[t]}).filter(function(e){return!e.getQuery().getQueryParams().loadsAllData()})},e.prototype.getCompleteServerCache=function(e){var t=null;return y.forEach(this.views_,function(n,r){t=t||r.getCompleteServerCache(e)}),t},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return y.safeGet(this.views_,t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){return y.findValue(this.views_,function(e){return e.getQuery().getQueryParams().loadsAllData()})||null},e}(),Ft=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new _t(n));var r=this.writeTree_.findRootMostValueAndPath(t);if(null!=r){var i=r.path,o=r.value,a=ie.relativePath(i,t);return o=o.updateChild(a,n),new e(this.writeTree_.set(i,o))}var s=new _t(n);return new e(this.writeTree_.setTree(t,s))},e.prototype.addWrites=function(e,t){var n=this;return y.forEach(t,function(t,r){n=n.addWrite(e.child(t),r)}),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,_t.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(ie.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild(Ue,function(t,n){e.push(new Ie(t,n))}):this.writeTree_.children.inorderTraversal(function(t,n){null!=n.value&&e.push(new Ie(t,n.value))}),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new _t(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(t){return e.applySubtreeWrite_(ie.Empty,this.writeTree_,t)},e.Empty=new e(new _t(null)),e.applySubtreeWrite_=function(t,n,r){if(null!=n.value)return r.updateChild(t,n.value);var i=null;return n.children.inorderTraversal(function(n,o){".priority"===n?(y.assert(null!==o.value,"Priority writes must always be leaf nodes"),i=o.value):r=e.applySubtreeWrite_(t.child(n),o,r)}),r.getChild(t).isEmpty()||null===i||(r=r.updateChild(t.child(".priority"),i)),r},e}(),Ut=function(){function e(){this.visibleWrites_=Ft.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new Bt(e,this)},e.prototype.addOverwrite=function(e,t,n,r){y.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){y.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t<this.allWrites_.length;t++){var n=this.allWrites_[t];if(n.writeId===e)return n}return null},e.prototype.removeWrite=function(e){var t=this,n=this.allWrites_.findIndex(function(t){return t.writeId===e});y.assert(n>=0,"removeWrite called with nonexistent writeId.");var r=this.allWrites_[n];this.allWrites_.splice(n,1);for(var i=r.visible,o=!1,a=this.allWrites_.length-1;i&&a>=0;){var s=this.allWrites_[a];s.visible&&(a>=n&&this.recordContainsPath_(s,r.path)?i=!1:r.path.contains(s.path)&&(o=!0)),a--}if(i){if(o)return this.resetTree_(),!0;if(r.snap)this.visibleWrites_=this.visibleWrites_.removeWrite(r.path);else{var u=r.children;y.forEach(u,function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(r.path.child(e))})}return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,r,i){if(r||i){var o=this.visibleWrites_.childCompoundWrite(t);if(!i&&o.isEmpty())return n;if(i||null!=n||o.hasCompleteWrite(ie.Empty)){var a=function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))},s=e.layerTree_(this.allWrites_,a,t),u=n||Ye.EMPTY_NODE;return s.apply(u)}return null}var l=this.visibleWrites_.getCompleteNode(t);if(null!=l)return l;var c=this.visibleWrites_.childCompoundWrite(t);if(c.isEmpty())return n;if(null!=n||c.hasCompleteWrite(ie.Empty)){var u=n||Ye.EMPTY_NODE;return c.apply(u)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=Ye.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(e);if(r)return r.isLeafNode()||r.forEachChild(Ue,function(e,t){n=n.updateImmediateChild(e,t)}),n;if(t){var i=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild(Ue,function(e,t){var r=i.childCompoundWrite(new ie(e)).apply(t);n=n.updateImmediateChild(e,r)}),i.getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,r){y.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=e.child(t);if(this.visibleWrites_.hasCompleteWrite(i))return null;var o=this.visibleWrites_.childCompoundWrite(i);return o.isEmpty()?r.getChild(t):o.apply(r.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var r=e.child(t),i=this.visibleWrites_.getCompleteNode(r);if(null!=i)return i;if(n.isCompleteForChild(t)){return this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(t))}return null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,r,i,o){var a,s=this.visibleWrites_.childCompoundWrite(e),u=s.getCompleteNode(ie.Empty);if(null!=u)a=u;else{if(null==t)return[];a=s.apply(t)}if(a=a.withIndex(o),a.isEmpty()||a.isLeafNode())return[];for(var l=[],c=o.getCompare(),f=i?a.getReverseIteratorFrom(n,o):a.getIteratorFrom(n,o),d=f.getNext();d&&l.length<r;)0!==c(d,n)&&l.push(d),d=f.getNext();return l},e.prototype.recordContainsPath_=function(e,t){return e.snap?e.path.contains(t):!!y.findKey(e.children,function(n,r){return e.path.child(r).contains(t)})},e.prototype.resetTree_=function(){this.visibleWrites_=e.layerTree_(this.allWrites_,e.DefaultFilter_,ie.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var r=Ft.Empty,i=0;i<e.length;++i){var o=e[i];if(t(o)){var a=o.path,s=void 0;if(o.snap)n.contains(a)?(s=ie.relativePath(n,a),r=r.addWrite(s,o.snap)):a.contains(n)&&(s=ie.relativePath(a,n),r=r.addWrite(ie.Empty,o.snap.getChild(s)));else{if(!o.children)throw y.assertionError("WriteRecord should have .snap or .children");if(n.contains(a))s=ie.relativePath(n,a),r=r.addWrites(s,o.children);else if(a.contains(n))if(s=ie.relativePath(a,n),s.isEmpty())r=r.addWrites(ie.Empty,o.children);else{var u=y.safeGet(o.children,s.getFront());if(u){var l=u.getChild(s.popFront());r=r.addWrite(ie.Empty,l)}}}}}return r},e}(),Bt=function(){function e(e,t){this.treePath_=e,this.writeTree_=t}return e.prototype.calcCompleteEventCache=function(e,t,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,e,t,n)},e.prototype.calcCompleteEventChildren=function(e){return this.writeTree_.calcCompleteEventChildren(this.treePath_,e)},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,e,t,n)},e.prototype.shadowingWrite=function(e){return this.writeTree_.shadowingWrite(this.treePath_.child(e))},e.prototype.calcIndexedSlice=function(e,t,n,r,i){return this.writeTree_.calcIndexedSlice(this.treePath_,e,t,n,r,i)},e.prototype.calcCompleteChild=function(e,t){return this.writeTree_.calcCompleteChild(this.treePath_,e,t)},e.prototype.child=function(t){return new e(this.treePath_.child(t),this.writeTree_)},e}(),qt=function(){function e(e){this.listenProvider_=e,this.syncPointTree_=_t.Empty,this.pendingWriteTree_=new Ut,this.tagToQueryMap_={},this.queryToTagMap_={}}return e.prototype.applyUserOverwrite=function(e,t,n,r){return this.pendingWriteTree_.addOverwrite(e,t,n,r),r?this.applyOperationToSyncPoints_(new Tt(gt.User,e,t)):[]},e.prototype.applyUserMerge=function(e,t,n){this.pendingWriteTree_.addMerge(e,t,n);var r=_t.fromObject(t);return this.applyOperationToSyncPoints_(new xt(gt.User,e,r))},e.prototype.ackUserWrite=function(e,t){void 0===t&&(t=!1);var n=this.pendingWriteTree_.getWrite(e);if(this.pendingWriteTree_.removeWrite(e)){var r=_t.Empty;return null!=n.snap?r=r.set(ie.Empty,!0):y.forEach(n.children,function(e,t){r=r.set(new ie(e),t)}),this.applyOperationToSyncPoints_(new bt(n.path,r,t))}return[]},e.prototype.applyServerOverwrite=function(e,t){return this.applyOperationToSyncPoints_(new Tt(gt.Server,e,t))},e.prototype.applyServerMerge=function(e,t){var n=_t.fromObject(t);return this.applyOperationToSyncPoints_(new xt(gt.Server,e,n))},e.prototype.applyListenComplete=function(e){return this.applyOperationToSyncPoints_(new Et(gt.Server,e))},e.prototype.applyTaggedQueryOverwrite=function(t,n,r){var i=this.queryKeyForTag_(r);if(null!=i){var o=e.parseQueryKey_(i),a=o.path,s=o.queryId,u=ie.relativePath(a,t),l=new Tt(gt.forServerTaggedQuery(s),u,n);return this.applyTaggedOperation_(a,l)}return[]},e.prototype.applyTaggedQueryMerge=function(t,n,r){var i=this.queryKeyForTag_(r);if(i){var o=e.parseQueryKey_(i),a=o.path,s=o.queryId,u=ie.relativePath(a,t),l=_t.fromObject(n),c=new xt(gt.forServerTaggedQuery(s),u,l);return this.applyTaggedOperation_(a,c)}return[]},e.prototype.applyTaggedListenComplete=function(t,n){var r=this.queryKeyForTag_(n);if(r){var i=e.parseQueryKey_(r),o=i.path,a=i.queryId,s=ie.relativePath(o,t),u=new Et(gt.forServerTaggedQuery(a),s);return this.applyTaggedOperation_(o,u)}return[]},e.prototype.addEventRegistration=function(t,n){var r=t.path,i=null,o=!1;this.syncPointTree_.foreachOnPath(r,function(e,t){var n=ie.relativePath(e,r);i=i||t.getCompleteServerCache(n),o=o||t.hasCompleteView()});var a=this.syncPointTree_.get(r);a?(o=o||a.hasCompleteView(),i=i||a.getCompleteServerCache(ie.Empty)):(a=new jt,this.syncPointTree_=this.syncPointTree_.set(r,a));var s;if(null!=i)s=!0;else{s=!1,i=Ye.EMPTY_NODE;this.syncPointTree_.subtree(r).foreachChild(function(e,t){var n=t.getCompleteServerCache(ie.Empty);n&&(i=i.updateImmediateChild(e,n))})}var u=a.viewExistsForQuery(t);if(!u&&!t.getQueryParams().loadsAllData()){var l=e.makeQueryKey_(t);y.assert(!(l in this.queryToTagMap_),"View does not exist, but we have a tag");var c=e.getNextQueryTag_();this.queryToTagMap_[l]=c,this.tagToQueryMap_["_"+c]=l}var f=this.pendingWriteTree_.childWrites(r),d=a.addEventRegistration(t,n,f,i,s);if(!u&&!o){var h=a.viewForQuery(t);d=d.concat(this.setupListener_(t,h))}return d},e.prototype.removeEventRegistration=function(t,n,r){var i=this,o=t.path,a=this.syncPointTree_.get(o),s=[];if(a&&("default"===t.queryIdentifier()||a.viewExistsForQuery(t))){var u=a.removeEventRegistration(t,n,r);a.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(o));var l=u.removed;s=u.events;var c=-1!==l.findIndex(function(e){return e.getQueryParams().loadsAllData()}),f=this.syncPointTree_.findOnPath(o,function(e,t){return t.hasCompleteView()});if(c&&!f){var d=this.syncPointTree_.subtree(o);if(!d.isEmpty())for(var h=this.collectDistinctViewsForSubTree_(d),p=0;p<h.length;++p){var m=h[p],v=m.getQuery(),y=this.createListenerForView_(m);this.listenProvider_.startListening(e.queryForListening_(v),this.tagForQuery_(v),y.hashFn,y.onComplete)}}if(!f&&l.length>0&&!r)if(c){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else l.forEach(function(t){var n=i.queryToTagMap_[e.makeQueryKey_(t)];i.listenProvider_.stopListening(e.queryForListening_(t),n)});this.removeTags_(l)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(e,function(t,n){var r=ie.relativePath(t,e),i=n.getCompleteServerCache(r);if(i)return i});return n.calcCompleteEventCache(e,r,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold(function(e,t,n){if(t&&t.hasCompleteView()){return[t.getCompleteView()]}var r=[];return t&&(r=t.getQueryViews()),y.forEach(n,function(e,t){r=r.concat(t)}),r})},e.prototype.removeTags_=function(t){for(var n=0;n<t.length;++n){var r=t[n];if(!r.getQueryParams().loadsAllData()){var i=e.makeQueryKey_(r),o=this.queryToTagMap_[i];delete this.queryToTagMap_[i],delete this.tagToQueryMap_["_"+o]}}},e.queryForListening_=function(e){return e.getQueryParams().loadsAllData()&&!e.getQueryParams().isDefault()?e.getRef():e},e.prototype.setupListener_=function(t,n){var r=t.path,i=this.tagForQuery_(t),o=this.createListenerForView_(n),a=this.listenProvider_.startListening(e.queryForListening_(t),i,o.hashFn,o.onComplete),s=this.syncPointTree_.subtree(r);if(i)y.assert(!s.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var u=s.fold(function(e,t,n){if(!e.isEmpty()&&t&&t.hasCompleteView())return[t.getCompleteView().getQuery()];var r=[];return t&&(r=r.concat(t.getQueryViews().map(function(e){return e.getQuery()}))),y.forEach(n,function(e,t){r=r.concat(t)}),r}),l=0;l<u.length;++l){var c=u[l];this.listenProvider_.stopListening(e.queryForListening_(c),this.tagForQuery_(c))}return a},e.prototype.createListenerForView_=function(e){var t=this,n=e.getQuery(),r=this.tagForQuery_(n);return{hashFn:function(){return(e.getServerCache()||Ye.EMPTY_NODE).hash()},onComplete:function(e){if("ok"===e)return r?t.applyTaggedListenComplete(n.path,r):t.applyListenComplete(n.path);var i=J(e,n);return t.removeEventRegistration(n,null,i)}}},e.makeQueryKey_=function(e){return e.path.toString()+"$"+e.queryIdentifier()},e.parseQueryKey_=function(e){var t=e.indexOf("$");return y.assert(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new ie(e.substr(0,t))}},e.prototype.queryKeyForTag_=function(e){return this.tagToQueryMap_["_"+e]},e.prototype.tagForQuery_=function(t){var n=e.makeQueryKey_(t);return y.safeGet(this.queryToTagMap_,n)},e.getNextQueryTag_=function(){return e.nextQueryTag_++},e.prototype.applyTaggedOperation_=function(e,t){var n=this.syncPointTree_.get(e);y.assert(n,"Missing sync point for query tag that we're tracking");var r=this.pendingWriteTree_.childWrites(e);return n.applyOperation(t,r,null)},e.prototype.applyOperationToSyncPoints_=function(e){return this.applyOperationHelper_(e,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(ie.Empty))},e.prototype.applyOperationHelper_=function(e,t,n,r){if(e.path.isEmpty())return this.applyOperationDescendantsHelper_(e,t,n,r);var i=t.get(ie.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache(ie.Empty));var o=[],a=e.path.getFront(),s=e.operationForChild(a),u=t.children.get(a);if(u&&s){var l=n?n.getImmediateChild(a):null,c=r.child(a);o=o.concat(this.applyOperationHelper_(s,u,l,c))}return i&&(o=o.concat(i.applyOperation(e,r,n))),o},e.prototype.applyOperationDescendantsHelper_=function(e,t,n,r){var i=this,o=t.get(ie.Empty);null==n&&null!=o&&(n=o.getCompleteServerCache(ie.Empty));var a=[];return t.children.inorderTraversal(function(t,o){var s=n?n.getImmediateChild(t):null,u=r.child(t),l=e.operationForChild(t);l&&(a=a.concat(i.applyOperationDescendantsHelper_(l,o,s,u)))}),o&&(a=a.concat(o.applyOperation(e,r,n))),a},e.nextQueryTag_=1,e}(),Vt=function(){function e(){this.rootNode_=Ye.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}(),zt=function(){function e(e){this.app_=e}return e.prototype.getToken=function(e){return this.app_.INTERNAL.getToken(e).then(null,function(e){return e&&"auth/token-not-initialized"===e.code?(D("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(e)})},e.prototype.addTokenChangeListener=function(e){this.app_.INTERNAL.addAuthTokenListener(e)},e.prototype.removeTokenChangeListener=function(e){this.app_.INTERNAL.removeAuthTokenListener(e)},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',j(e)},e}(),Wt=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),y.contains(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return y.deepCopy(this.counters_)},e}(),Ht=function(){function e(){}return e.getCollection=function(e){var t=e.toString();return this.collections_[t]||(this.collections_[t]=new Wt),this.collections_[t]},e.getOrCreateReporter=function(e,t){var n=e.toString();return this.reporters_[n]||(this.reporters_[n]=t()),this.reporters_[n]},e.collections_={},e.reporters_={},e}(),Kt=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=y.clone(e);return this.last_&&y.forEach(this.last_,function(e,n){t[e]=t[e]-n}),this.last_=e,t},e}(),Gt=1e4,Qt=3e4,Yt=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new Kt(e);var n=Gt+(Qt-Gt)*Math.random();re(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},r=!1;y.forEach(t,function(t,i){i>0&&y.contains(e.statsToReport_,t)&&(n[t]=i,r=!0)}),r&&this.server_.reportStats(n),re(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),Xt=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n],i=r.getPath();null===t||i.equals(t.getPath())||(this.eventLists_.push(t),t=null),null===t&&(t=new $t(i)),t.add(r)}t&&this.eventLists_.push(t)},e.prototype.raiseEventsAtPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_(function(t){return t.equals(e)})},e.prototype.raiseEventsForChangedPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_(function(t){return t.contains(e)||e.contains(t)})},e.prototype.raiseQueuedEventsMatchingPredicate_=function(e){this.recursionDepth_++;for(var t=!0,n=0;n<this.eventLists_.length;n++){var r=this.eventLists_[n];if(r){e(r.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):t=!1}}t&&(this.eventLists_=[]),this.recursionDepth_--},e}(),$t=function(){function e(e){this.path_=e,this.events_=[]}return e.prototype.add=function(e){this.events_.push(e)},e.prototype.raise=function(){for(var e=0;e<this.events_.length;e++){var t=this.events_[e];if(null!==t){this.events_[e]=null;var n=t.getEventRunner();P&&D("event: "+t.toString()),te(n)}}},e.prototype.getPath=function(){return this.path_},e}(),Jt=function(){function e(e){this.allowedEvents_=e,this.listeners_={},y.assert(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var r=this.listeners_[e].slice(),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var r=this.getInitialEvent(e);r&&t.apply(n,r)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var r=this.listeners_[e]||[],i=0;i<r.length;i++)if(r[i].callback===t&&(!n||n===r[i].context))return void r.splice(i,1)},e.prototype.validateEventType_=function(e){y.assert(this.allowedEvents_.find(function(t){return t===e}),"Unknown event: "+e)},e}(),Zt=function(e){function t(){var t,n,r=e.call(this,["visible"])||this;return"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document.hidden?(n="visibilitychange",t="hidden"):"undefined"!==typeof document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):"undefined"!==typeof document.msHidden?(n="msvisibilitychange",t="msHidden"):"undefined"!==typeof document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,function(){var e=!document[t];e!==r.visible_&&(r.visible_=e,r.trigger("visible",e))},!1),r}return b.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return y.assert("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(Jt),en=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||y.isMobileCordova()||(window.addEventListener("online",function(){t.online_||(t.online_=!0,t.trigger("online",!0))},!1),window.addEventListener("offline",function(){t.online_&&(t.online_=!1,t.trigger("online",!1))},!1)),t}return b.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return y.assert("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(Jt),tn=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var r=this;this.pendingResponses[this.currentResponseNum];){if("break"===function(){var e=r.pendingResponses[r.currentResponseNum];delete r.pendingResponses[r.currentResponseNum];for(var t=0;t<e.length;++t)!function(t){e[t]&&te(function(){n.onMessage_(e[t])})}(t);if(r.currentResponseNum===r.closeAfterResponse)return r.onClose&&(r.onClose(),r.onClose=null),"break";r.currentResponseNum++}())break}},e}(),nn="pLPCommand",rn="pRTLPCB",on=function(){function e(e,t,n,r){this.connId=e,this.repoInfo=t,this.transportSessionId=n,this.lastSessionId=r,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=R(e),this.stats_=Ht.getCollection(t),this.urlFn=function(e){return t.connectionURL(ae,e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new tn(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null},Math.floor(3e4)),B(function(){if(!n.isClosed_){n.scriptTagHolder=new an(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1],o=e[2];if(n.incrementIncomingBytes_(e),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,"start"==r)n.id=i,n.password=o;else{if("close"!==r)throw new Error("Unrecognized command received: "+r);i?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(i,function(){n.onClosed_()})):n.onClosed_()}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(r,i)},function(){n.onClosed_()},n.urlFn);var e={};e.start="t",e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),!y.isNodeSdk()&&"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,function(){})}})},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return e.forceAllow_||!e.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!X()&&!$()&&!y.isNodeSdk()},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},e.prototype.send=function(e){var t=y.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=y.base64Encode(t),r=G(n,1840),i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,t){if(!y.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={};n.dframe="t",n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=y.stringify(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),an=function(){function e(t,n,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new ct,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,y.isNodeSdk())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=C(),window[nn+this.uniqueCallbackIdentifier]=t,window[rn+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createIFrame_();var o="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length)){o='<script>document.domain="'+document.domain+'";<\/script>'}var a=""+o+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(a),this.myIFrame.doc.close()}catch(e){D("frame writing exception"),e.stack&&D(e.stack),D(e)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||D("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var t=this;if(this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout(function(){null!==t.myIFrame&&(document.body.removeChild(t.myIFrame),t.myIFrame=null)},Math.floor(0))),y.isNodeSdk()&&this.myID){var n={};n.disconn="t",n.id=this.myID,n.pw=this.myPW;var r=this.urlFn(n);e.nodeRestRequest(r)}var i=this.onDisconnect;i&&(this.onDisconnect=null,i())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.count()<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",r=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var i=this.pendingSegs.shift();n=n+"&seg"+r+"="+i.seg+"&ts"+r+"="+i.ts+"&d"+r+"="+i.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t,1);var r=function(){n.outstandingRequests.remove(t),n.newRequest_()},i=setTimeout(r,Math.floor(25e3)),o=function(){clearTimeout(i),r()};this.addTag(e,o)},e.prototype.addTag=function(e,t){var n=this;y.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout(function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){var e=r.readyState;e&&"loaded"!==e&&"complete"!==e||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),t())},r.onerror=function(){D("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(e){}},Math.floor(1))},e}(),sn=null;"undefined"!==typeof MozWebSocket?sn=MozWebSocket:"undefined"!==typeof WebSocket&&(sn=WebSocket);var un=function(){function e(t,n,r,i){this.connId=t,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=R(this.connId),this.stats_=Ht.getCollection(n),this.connURL=e.connectionURL_(n,r,i)}return e.connectionURL_=function(e,t,n){var r={};return r.v="5",!y.isNodeSdk()&&"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(r.r="f"),t&&(r.s=t),n&&(r.ls=n),e.connectionURL("websocket",r)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,x.set("previous_websocket_failure",!0);try{if(y.isNodeSdk()){var i=y.CONSTANTS.NODE_ADMIN?"AdminNode":"Node",o={headers:{"User-Agent":"Firebase/5/"+w.SDK_VERSION+"/"+r.platform+"/"+i}},a=Object({NODE_ENV:"production",PUBLIC_URL:""}),s=0==this.connURL.indexOf("wss://")?a.HTTPS_PROXY||a.https_proxy:a.HTTP_PROXY||a.http_proxy;s&&(o.proxy={origin:s}),this.mySock=new sn(this.connURL,[],o)}else this.mySock=new sn(this.connURL)}catch(e){this.log_("Error instantiating WebSocket.");var u=e.message||e.data;return u&&this.log_(u),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0},this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error. Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!==typeof navigator&&navigator.userAgent){var n=/Android ([0-9]{0,}\.[0-9]{0,})/,r=navigator.userAgent.match(n);r&&r.length>1&&parseFloat(r[1])<4.4&&(t=!0)}return!t&&null!==sn&&!e.forceDisallow_},e.previouslyFailed=function(){return x.isInMemoryStorage||!0===x.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){x.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length==this.totalFrames){var t=this.frames.join("");this.frames=null;var n=y.jsonEval(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(y.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=y.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=G(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()},Math.floor(45e3))},e.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(e){this.log_("Exception thrown from WebSocket.send():",e.message||e.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),ln=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[on,un]},enumerable:!0,configurable:!0}),e.prototype.initTransports_=function(t){var n=un&&un.isAvailable(),r=n&&!un.previouslyFailed();if(t.webSocketOnly&&(n||j("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),r=!0),r)this.transports_=[un];else{var i=this.transports_=[];Q(e.ALL_TRANSPORTS,function(e,t){t&&t.isAvailable()&&i.push(t)})}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),cn=function(){function e(e,t,n,r,i,o,a){this.id=e,this.repoInfo_=t,this.onMessage_=n,this.onReady_=r,this.onDisconnect_=i,this.onKill_=o,this.lastSessionId=a,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=R("c:"+this.id+":"),this.transportManager_=new ln(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(function(){e.conn_&&e.conn_.open(n,r)},Math.floor(0));var i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=re(function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes. Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes. Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))},Math.floor(i)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!=t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=H("t",e),n=H("d",e);if("c"==t)this.onSecondaryControl_(n);else{if("d"!=t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=H("t",e),n=H("d",e);"c"==t?this.onControl_(n):"d"==t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||--this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy())},e.prototype.onControl_=function(e){var t=H("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?M("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):M("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.updateHost(r),0==this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&j("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),re(function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())},Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.updateHost(e),1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):re(function(){n.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(x.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}(),fn=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}(),dn=1e3,hn=3e5,pn=function(e){function t(n,r,i,o,a,s){var u=e.call(this)||this;if(u.repoInfo_=n,u.onDataUpdate_=r,u.onConnectStatus_=i,u.onServerInfoUpdate_=o,u.authTokenProvider_=a,u.authOverride_=s,u.id=t.nextPersistentConnectionId_++,u.log_=R("p:"+u.id+":"),u.interruptReasons_={},u.listens_={},u.outstandingPuts_=[],u.outstandingPutCount_=0,u.onDisconnectRequestQueue_=[],u.connected_=!1,u.reconnectDelay_=dn,u.maxReconnectDelay_=hn,u.securityDebugCallback_=null,u.lastSessionId=null,u.establishConnectionTimer_=null,u.visible_=!1,u.requestCBHash_={},u.requestNumber_=0,u.realtime_=null,u.authToken_=null,u.forceTokenRefresh_=!1,u.invalidAuthTokenCount_=0,u.firstConnection_=!0,u.lastConnectionAttemptTime_=null,u.lastConnectionEstablishedTime_=null,s&&!y.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return u.scheduleConnect_(0),Zt.getInstance().on("visible",u.onVisible_,u),-1===n.host.indexOf("fblocal")&&en.getInstance().on("online",u.onOnline_,u),u}return b.__extends(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(y.stringify(i)),y.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)},t.prototype.listen=function(e,t,n,r){var i=e.queryIdentifier(),o=e.path.toString();this.log_("Listen called for "+o+" "+i),this.listens_[o]=this.listens_[o]||{},y.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),y.assert(!this.listens_[o][i],"listen() called twice for same path/queryId.");var a={onComplete:r,hashFn:t,query:e,tag:n};this.listens_[o][i]=a,this.connected_&&this.sendListen_(a)},t.prototype.sendListen_=function(e){var n=this,r=e.query,i=r.path.toString(),o=r.queryIdentifier();this.log_("Listen on "+i+" for "+o);var a={p:i};e.tag&&(a.q=r.queryObject(),a.t=e.tag),a.h=e.hashFn(),this.sendRequest("q",a,function(a){var s=a.d,u=a.s;t.warnOnListenWarnings_(s,r),(n.listens_[i]&&n.listens_[i][o])===e&&(n.log_("listen response",a),"ok"!==u&&n.removeListen_(i,o),e.onComplete&&e.onComplete(u,s))})},t.warnOnListenWarnings_=function(e,t){if(e&&"object"===typeof e&&y.contains(e,"w")){var n=y.safeGet(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t.getQueryParams().getIndex().toString()+'"',i=t.path.toString();j("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+i+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},function(){}),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||y.isAdmin(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=y.isValidFormat(t)?"auth":"gauth",r={cred:t};null===this.authOverride_?r.noauth=!0:"object"===typeof this.authOverride_&&(r.authvar=this.authOverride_),this.sendRequest(n,r,function(n){var r=n.s,i=n.d||"error";e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,i))})}},t.prototype.unlisten=function(e,t){var n=e.path.toString(),r=e.queryIdentifier();this.log_("Unlisten called for "+n+" "+r),y.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e.queryObject(),t)},t.prototype.sendUnlisten_=function(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);var i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)},t.prototype.onDisconnectPut=function(e,t,n){this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,r){var i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,function(e){r&&setTimeout(function(){r(e.s,e.d)},Math.floor(0))})},t.prototype.put=function(e,t,n,r){this.putInternal("p",e,t,n,r)},t.prototype.merge=function(e,t,n,r){this.putInternal("m",e,t,n,r)},t.prototype.putInternal=function(e,t,n,r,i){var o={p:t,d:n};void 0!==i&&(o.h=i),this.outstandingPuts_.push({action:e,request:o,onComplete:r}),this.outstandingPutCount_++;var a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,i=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,function(r){t.log_(n+" response",r),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),i&&i(r.s,r.d)})},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}})}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+y.stringify(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):M("Unrecognized action received from server: "+y.stringify(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;y.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(function(){t.establishConnectionTimer_=null,t.establishConnection_()},Math.floor(e))},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=dn,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=dn,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){var e=(new Date).getTime()-this.lastConnectionEstablishedTime_;e>3e4&&(this.reconnectDelay_=dn),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var t=(new Date).getTime()-this.lastConnectionAttemptTime_,n=Math.max(0,this.reconnectDelay_-t);n=Math.random()*n,this.log_("Trying to reconnect in "+n+"ms"),this.scheduleConnect_(n),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+t.nextConnectionId_++,o=this,a=this.lastSessionId,s=!1,u=null,l=function(){u?u.close():(s=!0,r())},c=function(e){y.assert(u,"sendRequest call when we're not connected not allowed."),u.sendRequest(e)};this.realtime_={close:l,sendRequest:c};var f=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(f).then(function(t){s?D("getToken() completed but was canceled"):(D("getToken() completed. Creating connection."),o.authToken_=t&&t.accessToken,u=new cn(i,o.repoInfo_,e,n,r,function(e){j(e+" ("+o.repoInfo_.toString()+")"),o.interrupt("server_kill")},a))}).then(null,function(e){o.log_("Failed to get token: "+e),s||(y.CONSTANTS.NODE_ADMIN&&j(e),l())})}},t.prototype.interrupt=function(e){D("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){D("Resuming connection for reason: "+e),delete this.interruptReasons_[e],y.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=dn,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map(function(e){return K(e)}).join("$"):"default";var r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,r=new ie(e).toString();return void 0!==this.listens_[r]?(n=this.listens_[r][t],delete this.listens_[r][t],0===y.getCount(this.listens_[r])&&delete this.listens_[r]):n=void 0,n},t.prototype.onAuthRevoked_=function(e,t){D("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||++this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken())},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e=this;this.tryAuth(),y.forEach(this.listens_,function(t,n){y.forEach(n,function(t,n){e.sendListen_(n)})});for(var t=0;t<this.outstandingPuts_.length;t++)this.outstandingPuts_[t]&&this.sendPut_(t);for(;this.onDisconnectRequestQueue_.length;){var n=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(n.action,n.pathString,n.data,n.onComplete)}},t.prototype.sendConnectStats_=function(){var e={},t="js";y.CONSTANTS.NODE_ADMIN?t="admin_node":y.CONSTANTS.NODE_CLIENT&&(t="node"),e["sdk."+t+"."+w.SDK_VERSION.replace(/\./g,"-")]=1,y.isMobileCordova()?e["framework.cordova"]=1:y.isReactNative()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=en.getInstance().currentlyOnline();return y.isEmpty(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}(fn),mn=function(e){function t(t,n,r){var i=e.call(this)||this;return i.repoInfo_=t,i.onDataUpdate_=n,i.authTokenProvider_=r,i.log_=R("p:rest:"),i.listens_={},i}return b.__extends(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(y.assert(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,r,i){var o=this,a=e.path.toString();this.log_("Listen called for "+a+" "+e.queryIdentifier());var s=t.getListenId_(e,r),u={};this.listens_[s]=u;var l=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(a+".json",l,function(e,t){var n=t;if(404===e&&(n=null,e=null),null===e&&o.onDataUpdate_(a,n,!1,r),y.safeGet(o.listens_,s)===u){var l;l=e?401==e?"permission_denied":"rest_error:"+e:"ok",i(l,null)}})},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then(function(i){var o=i&&i.accessToken;o&&(t.auth=o);var a=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?"+y.querystring(t);r.log_("Sending REST request for "+a);var s=new XMLHttpRequest;s.onreadystatechange=function(){if(n&&4===s.readyState){r.log_("REST Response for "+a+" received. status:",s.status,"response:",s.responseText);var e=null;if(s.status>=200&&s.status<300){try{e=y.jsonEval(s.responseText)}catch(e){j("Failed to parse JSON response for "+a+": "+s.responseText)}n(null,e)}else 401!==s.status&&404!==s.status&&j("Got unsuccessful REST response for "+a+" Status: "+s.status),n(s.status);n=null}},s.open("GET",a,!0),s.send()})},t}(fn),vn=function(){function e(e,t,n){var r=this;this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Xt,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new ft,this.persistentConnection_=null;var i=new zt(n);if(this.stats_=Ht.getCollection(e),t||ne())this.server_=new mn(this.repoInfo_,this.onDataUpdate_.bind(this),i),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var o=n.options.databaseAuthVariableOverride;if("undefined"!==typeof o&&null!==o){if("object"!==typeof o)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{y.stringify(o)}catch(e){throw new Error("Invalid authOverride provided: "+e)}}this.persistentConnection_=new pn(this.repoInfo_,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),i,o),this.server_=this.persistentConnection_}i.addTokenChangeListener(function(e){r.server_.refreshAuthToken(e)}),this.statsReporter_=Ht.getOrCreateReporter(e,function(){return new Yt(r.stats_,r.server_)}),this.transactions_init_(),this.infoData_=new Vt,this.infoSyncTree_=new qt({startListening:function(e,t,n,i){var o=[],a=r.infoData_.getNode(e.path);return a.isEmpty()||(o=r.infoSyncTree_.applyServerOverwrite(e.path,a),setTimeout(function(){i("ok")},0)),o},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new qt({startListening:function(e,t,n,i){return r.server_.listen(e,n,t,function(t,n){var o=i(t,n);r.eventQueue_.raiseEventsForChangedPath(e.path,o)}),[]},stopListening:function(e,t){r.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new ie(".info/serverTimeOffset")),t=e.val()||0;return(new Date).getTime()+t},e.prototype.generateServerValues=function(){return dt({timestamp:this.serverTime()})},e.prototype.onDataUpdate_=function(e,t,n,r){this.dataUpdateCount++;var i=new ie(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var o=[];if(r)if(n){var a=y.map(t,function(e){return u(e)});o=this.serverSyncTree_.applyTaggedQueryMerge(i,a,r)}else{var s=u(t);o=this.serverSyncTree_.applyTaggedQueryOverwrite(i,s,r)}else if(n){var l=y.map(t,function(e){return u(e)});o=this.serverSyncTree_.applyServerMerge(i,l)}else{var c=u(t);o=this.serverSyncTree_.applyServerOverwrite(i,c)}var f=i;o.length>0&&(f=this.rerunTransactions_(i)),this.eventQueue_.raiseEventsForChangedPath(f,o)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;Q(e,function(e,n){t.updateInfo_(n,e)})},e.prototype.updateInfo_=function(e,t){var n=new ie("/.info/"+e),r=u(t);this.infoData_.updateSnapshot(n,r);var i=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,i)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,r){var i=this;this.log_("set",{path:e.toString(),value:t,priority:n});var o=this.generateServerValues(),a=u(t,n),s=mt(a,o),l=this.getNextWriteId_(),c=this.serverSyncTree_.applyUserOverwrite(e,s,l,!0);this.eventQueue_.queueEvents(c),this.server_.put(e.toString(),a.val(!0),function(t,n){var o="ok"===t;o||j("set at "+e+" failed: "+t);var a=i.serverSyncTree_.ackUserWrite(l,!o);i.eventQueue_.raiseEventsForChangedPath(e,a),i.callOnCompleteCallback(r,t,n)});var f=this.abortTransactions_(e);this.rerunTransactions_(f),this.eventQueue_.raiseEventsForChangedPath(f,[])},e.prototype.update=function(e,t,n){var r=this;this.log_("update",{path:e.toString(),value:t});var i=!0,o=this.generateServerValues(),a={};if(y.forEach(t,function(e,t){i=!1;var n=u(t);a[e]=mt(n,o)}),i)D("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserMerge(e,a,s);this.eventQueue_.queueEvents(l),this.server_.merge(e.toString(),t,function(t,i){var o="ok"===t;o||j("update at "+e+" failed: "+t);var a=r.serverSyncTree_.ackUserWrite(s,!o),u=a.length>0?r.rerunTransactions_(e):e;r.eventQueue_.raiseEventsForChangedPath(u,a),r.callOnCompleteCallback(n,t,i)}),y.forEach(t,function(t){var n=r.abortTransactions_(e.child(t));r.rerunTransactions_(n)}),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=pt(this.onDisconnect_,t),r=[];n.forEachTree(ie.Empty,function(t,n){r=r.concat(e.serverSyncTree_.applyServerOverwrite(t,n));var i=e.abortTransactions_(t);e.rerunTransactions_(i)}),this.onDisconnect_=new ft,this.eventQueue_.raiseEventsForChangedPath(ie.Empty,r)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),function(r,i){"ok"===r&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,r,i)})},e.prototype.onDisconnectSet=function(e,t,n){var r=this,i=u(t);this.server_.onDisconnectPut(e.toString(),i.val(!0),function(t,o){"ok"===t&&r.onDisconnect_.remember(e,i),r.callOnCompleteCallback(n,t,o)})},e.prototype.onDisconnectSetWithPriority=function(e,t,n,r){var i=this,o=u(t,n);this.server_.onDisconnectPut(e.toString(),o.val(!0),function(t,n){"ok"===t&&i.onDisconnect_.remember(e,o),i.callOnCompleteCallback(r,t,n)})},e.prototype.onDisconnectUpdate=function(e,t,n){var r=this;if(y.isEmpty(t))return D("onDisconnect().update() called with empty data. Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,function(i,o){"ok"===i&&y.forEach(t,function(t,n){var i=u(n);r.onDisconnect_.remember(e.child(t),i)}),r.callOnCompleteCallback(n,i,o)})},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!==typeof console){var t;e?(this.statsListener_||(this.statsListener_=new Kt(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce(function(e,t){return Math.max(t.length,e)},0);y.forEach(t,function(e,t){for(var r=e.length;r<n+2;r++)e+=" ";console.log(e+t)})}},e.prototype.statsIncrementCounter=function(e){this.stats_.incrementCounter(e),this.statsReporter_.includeStat(e)},e.prototype.log_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),D.apply(void 0,[n].concat(e))},e.prototype.callOnCompleteCallback=function(e,t,n){e&&te(function(){if("ok"==t)e(null);else{var r=(t||"error").toUpperCase(),i=r;n&&(i+=": "+n);var o=new Error(i);o.code=r,e(o)}})},Object.defineProperty(e.prototype,"database",{get:function(){return this.__database||(this.__database=new kn(this))},enumerable:!0,configurable:!0}),e}(),yn=function(){function e(t){this.indexedFilter_=new Ot(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,i,o){return this.matches(new Ie(t,n))||(n=Ye.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,o)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=Ye.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(Ye.EMPTY_NODE);var i=this;return t.forEachChild(Ue,function(e,t){i.matches(new Ie(e,t))||(r=r.updateImmediateChild(e,Ye.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}(),gn=function(){function e(e){this.rangedFilter_=new yn(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,r,i,o){return this.rangedFilter_.matches(new Ie(t,n))||(n=Ye.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,i,o):this.fullLimitUpdateChild_(e,t,n,i,o)},e.prototype.updateFullNode=function(e,t,n){var r;if(t.isLeafNode()||t.isEmpty())r=Ye.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=Ye.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var o=0;i.hasNext()&&o<this.limit_;){var a=i.getNext(),s=void 0;if(!(s=this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0))break;r=r.updateImmediateChild(a.name,a.node),o++}}else{r=t.withIndex(this.index_),r=r.updatePriority(Ye.EMPTY_NODE);var u=void 0,l=void 0,c=void 0,i=void 0;if(this.reverse_){i=r.getReverseIterator(this.index_),u=this.rangedFilter_.getEndPost(),l=this.rangedFilter_.getStartPost();var f=this.index_.getCompare();c=function(e,t){return f(t,e)}}else i=r.getIterator(this.index_),u=this.rangedFilter_.getStartPost(),l=this.rangedFilter_.getEndPost(),c=this.index_.getCompare();for(var o=0,d=!1;i.hasNext();){var a=i.getNext();!d&&c(u,a)<=0&&(d=!0);var s=d&&o<this.limit_&&c(a,l)<=0;s?o++:r=r.updateImmediateChild(a.name,Ye.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,r,i){var o;if(this.reverse_){var a=this.index_.getCompare();o=function(e,t){return a(t,e)}}else o=this.index_.getCompare();var s=e;y.assert(s.numChildren()==this.limit_,"");var u=new Ie(t,n),l=this.reverse_?s.getFirstChild(this.index_):s.getLastChild(this.index_),c=this.rangedFilter_.matches(u);if(s.hasChild(t)){for(var f=s.getImmediateChild(t),d=r.getChildAfterChild(this.index_,l,this.reverse_);null!=d&&(d.name==t||s.hasChild(d.name));)d=r.getChildAfterChild(this.index_,d,this.reverse_);var h=null==d?1:o(d,u);if(c&&!n.isEmpty()&&h>=0)return null!=i&&i.trackChildChange(Ct.childChangedChange(t,n,f)),s.updateImmediateChild(t,n);null!=i&&i.trackChildChange(Ct.childRemovedChange(t,f));var p=s.updateImmediateChild(t,Ye.EMPTY_NODE);return null!=d&&this.rangedFilter_.matches(d)?(null!=i&&i.trackChildChange(Ct.childAddedChange(d.name,d.node)),p.updateImmediateChild(d.name,d.node)):p}return n.isEmpty()?e:c&&o(l,u)>=0?(null!=i&&(i.trackChildChange(Ct.childRemovedChange(l.name,l.node)),i.trackChildChange(Ct.childAddedChange(t,n))),s.updateImmediateChild(t,n).updateImmediateChild(l.name,Ye.EMPTY_NODE)):e},e}(),bn=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Ue}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return y.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return y.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:q},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return y.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return y.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:V},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return y.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=r}return this.index_!==Ue&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_==Ue},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new Ot(this.getIndex()):this.hasLimit()?new gn(this):new yn(this)},e.prototype.toRestQueryStringParameters=function(){var t=e.REST_QUERY_CONSTANTS_,n={};if(this.isDefault())return n;var r;return this.index_===Ue?r=t.PRIORITY_INDEX:this.index_===nt?r=t.VALUE_INDEX:this.index_===Re?r=t.KEY_INDEX:(y.assert(this.index_ instanceof rt,"Unrecognized index type!"),r=this.index_.toString()),n[t.ORDER_BY]=y.stringify(r),this.startSet_&&(n[t.START_AT]=y.stringify(this.indexStartValue_),this.startNameSet_&&(n[t.START_AT]+=","+y.stringify(this.indexStartName_))),this.endSet_&&(n[t.END_AT]=y.stringify(this.indexEndValue_),this.endNameSet_&&(n[t.END_AT]+=","+y.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?n[t.LIMIT_TO_FIRST]=this.limit_:n[t.LIMIT_TO_LAST]=this.limit_),n},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}(),wn=function(e){function t(t,n){if(!(t instanceof vn))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,bn.DEFAULT,!1)||this}return b.__extends(t,e),t.prototype.getKey=function(){return y.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return y.validateArgCount("Reference.child",1,1,arguments.length),"number"===typeof e?e=String(e):e instanceof ie||(null===this.path.getFront()?xe("Reference.child",1,e,!1):Te("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){y.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){y.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){y.validateArgCount("Reference.set",1,2,arguments.length),Se("Reference.set",this.path),ve("Reference.set",1,e,this.path,!1),y.validateCallback("Reference.set",2,t,!0);var n=new y.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(y.validateArgCount("Reference.update",1,2,arguments.length),Se("Reference.update",this.path),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,j("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}be("Reference.update",1,e,this.path,!1),y.validateCallback("Reference.update",2,t,!0);var i=new y.Deferred;return this.repo.update(this.path,e,i.wrapCallback(t)),i.promise},t.prototype.setWithPriority=function(e,t,n){if(y.validateArgCount("Reference.setWithPriority",2,3,arguments.length),Se("Reference.setWithPriority",this.path),ve("Reference.setWithPriority",1,e,this.path,!1),we("Reference.setWithPriority",2,t,!1),y.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var r=new y.Deferred;return this.repo.setWithPriority(this.path,e,t,r.wrapCallback(n)),r.promise},t.prototype.remove=function(e){return y.validateArgCount("Reference.remove",0,1,arguments.length),Se("Reference.remove",this.path),y.validateCallback("Reference.remove",1,e,!0),this.set(null,e)},t.prototype.transaction=function(e,t,n){if(y.validateArgCount("Reference.transaction",1,3,arguments.length),Se("Reference.transaction",this.path),y.validateCallback("Reference.transaction",1,e,!1),y.validateCallback("Reference.transaction",2,t,!0),Ce("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var r=new y.Deferred;"function"===typeof t&&r.promise.catch(function(){});var i=function(e,n,i){e?r.reject(e):r.resolve(new Ne(n,i)),"function"===typeof t&&t(e,n,i)};return this.repo.startTransaction(this.path,e,i,n),r.promise},t.prototype.setPriority=function(e,t){y.validateArgCount("Reference.setPriority",1,2,arguments.length),Se("Reference.setPriority",this.path),we("Reference.setPriority",1,e,!1),y.validateCallback("Reference.setPriority",2,t,!0);var n=new y.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),e,null,n.wrapCallback(t)),n.promise},t.prototype.push=function(e,t){y.validateArgCount("Reference.push",0,2,arguments.length),Se("Reference.push",this.path),ve("Reference.push",1,e,this.path,!0),y.validateCallback("Reference.push",2,t,!0);var n,r=this.repo.serverTime(),i=Pe(r),o=this.child(i),a=this.child(i);return n=null!=e?o.set(e,t).then(function(){return a}):Promise.resolve(a),o.then=n.then.bind(n),o.catch=n.then.bind(n,void 0),"function"===typeof t&&n.catch(function(){}),o},t.prototype.onDisconnect=function(){return Se("Reference.onDisconnect",this.path),new Oe(this.repo,this.path)},Object.defineProperty(t.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!0,configurable:!0}),t}(lt);lt.__referenceConstructor=wn,jt.__referenceConstructor=wn;var _n,En=function(){function e(){this.children={},this.childCount=0,this.value=null}return e}(),Tn=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new En),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n,r=t instanceof ie?t:new ie(t),i=this;null!==(n=r.getFront());){i=new e(n,i,y.safeGet(i.node_.children,n)||new En),r=r.popFront()}return i},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){y.assert("undefined"!==typeof e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;y.forEach(this.node_.children,function(r,i){t(new e(r,n,i))})},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild(function(t){t.forEachDescendant(e,!0,n)}),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild(function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)})},e.prototype.path=function(){return new ie(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),r=y.contains(this.node_.children,e);n&&r?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(_n||(_n={})),vn.MAX_TRANSACTION_RETRIES_=25,vn.prototype.transactions_init_=function(){this.transactionQueueTree_=new Tn},vn.prototype.startTransaction=function(e,t,n,r){this.log_("transaction on "+e);var i=function(){},o=new wn(this,e);o.on("value",i);var a=function(){o.off("value",i)},s={path:e,update:t,onComplete:n,status:null,order:C(),applyLocally:r,retryCount:0,unwatcher:a,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},l=this.getLatestState_(e);s.currentInputSnapshot=l;var c=s.update(l.val());if(void 0===c){if(s.unwatcher(),s.currentOutputSnapshotRaw=null,s.currentOutputSnapshotResolved=null,s.onComplete){var f=new it(s.currentInputSnapshot,new wn(this,s.path),Ue);s.onComplete(null,!1,f)}}else{ye("transaction failed: Data returned ",c,s.path),s.status=_n.RUN;var d=this.transactionQueueTree_.subTree(e),h=d.getValue()||[];h.push(s),d.setValue(h);var p=void 0;if("object"===typeof c&&null!==c&&y.contains(c,".priority"))p=y.safeGet(c,".priority"),y.assert(me(p),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else{p=(this.serverSyncTree_.calcCompleteEventCache(e)||Ye.EMPTY_NODE).getPriority().val()}p=p;var m=this.generateServerValues(),v=u(c,p),g=mt(v,m);s.currentOutputSnapshotRaw=v,s.currentOutputSnapshotResolved=g,s.currentWriteId=this.getNextWriteId_();var b=this.serverSyncTree_.applyUserOverwrite(e,g,s.currentWriteId,s.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,b),this.sendReadyTransactions_()}},vn.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||Ye.EMPTY_NODE},vn.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);y.assert(n.length>0,"Sending zero length transaction queue");n.every(function(e){return e.status===_n.RUN})&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild(function(e){t.sendReadyTransactions_(e)})},vn.prototype.sendTransactionQueue_=function(e,t){for(var n=this,r=t.map(function(e){return e.currentWriteId}),i=this.getLatestState_(e,r),o=i,a=i.hash(),s=0;s<t.length;s++){var u=t[s];y.assert(u.status===_n.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),u.status=_n.SENT,u.retryCount++;var l=ie.relativePath(e,u.path);o=o.updateChild(l,u.currentOutputSnapshotRaw)}var c=o.val(!0),f=e;this.server_.put(f.toString(),c,function(r){n.log_("transaction put response",{path:f.toString(),status:r});var i=[];if("ok"===r){for(var o=[],a=0;a<t.length;a++){if(t[a].status=_n.COMPLETED,i=i.concat(n.serverSyncTree_.ackUserWrite(t[a].currentWriteId)),t[a].onComplete){var s=t[a].currentOutputSnapshotResolved,u=new wn(n,t[a].path),l=new it(s,u,Ue);o.push(t[a].onComplete.bind(null,null,!0,l))}t[a].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(e)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(e,i);for(var a=0;a<o.length;a++)te(o[a])}else{if("datastale"===r)for(var a=0;a<t.length;a++)t[a].status===_n.SENT_NEEDS_ABORT?t[a].status=_n.NEEDS_ABORT:t[a].status=_n.RUN;else{j("transaction at "+f.toString()+" failed: "+r);for(var a=0;a<t.length;a++)t[a].status=_n.NEEDS_ABORT,t[a].abortReason=r}n.rerunTransactions_(e)}},a)},vn.prototype.rerunTransactions_=function(e){var t=this.getAncestorTransactionNode_(e),n=t.path(),r=this.buildTransactionQueue_(t);return this.rerunTransactionQueue_(r,n),n},vn.prototype.rerunTransactionQueue_=function(e,t){if(0!==e.length){for(var n=[],r=[],i=e.filter(function(e){return e.status===_n.RUN}),o=i.map(function(e){return e.currentWriteId}),a=0;a<e.length;a++){var s=e[a],l=ie.relativePath(t,s.path),c=!1,f=void 0;if(y.assert(null!==l,"rerunTransactionsUnderNode_: relativePath should not be null."),s.status===_n.NEEDS_ABORT)c=!0,f=s.abortReason,r=r.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0));else if(s.status===_n.RUN)if(s.retryCount>=vn.MAX_TRANSACTION_RETRIES_)c=!0,f="maxretry",r=r.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0));else{var d=this.getLatestState_(s.path,o);s.currentInputSnapshot=d;var h=e[a].update(d.val());if(void 0!==h){ye("transaction failed: Data returned ",h,s.path);var p=u(h),m="object"===typeof h&&null!=h&&y.contains(h,".priority");m||(p=p.updatePriority(d.getPriority()));var v=s.currentWriteId,g=this.generateServerValues(),b=mt(p,g);s.currentOutputSnapshotRaw=p,s.currentOutputSnapshotResolved=b,s.currentWriteId=this.getNextWriteId_(),o.splice(o.indexOf(v),1),r=r.concat(this.serverSyncTree_.applyUserOverwrite(s.path,b,s.currentWriteId,s.applyLocally)),r=r.concat(this.serverSyncTree_.ackUserWrite(v,!0))}else c=!0,f="nodata",r=r.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,r),r=[],c&&(e[a].status=_n.COMPLETED,function(e){setTimeout(e,Math.floor(0))}(e[a].unwatcher),e[a].onComplete))if("nodata"===f){var w=new wn(this,e[a].path),_=e[a].currentInputSnapshot,E=new it(_,w,Ue);n.push(e[a].onComplete.bind(null,null,!1,E))}else n.push(e[a].onComplete.bind(null,new Error(f),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(var a=0;a<n.length;a++)te(n[a]);this.sendReadyTransactions_()}},vn.prototype.getAncestorTransactionNode_=function(e){for(var t,n=this.transactionQueueTree_;null!==(t=e.getFront())&&null===n.getValue();)n=n.subTree(t),e=e.popFront();return n},vn.prototype.buildTransactionQueue_=function(e){var t=[];return this.aggregateTransactionQueuesForNode_(e,t),t.sort(function(e,t){return e.order-t.order}),t},vn.prototype.aggregateTransactionQueuesForNode_=function(e,t){var n=this,r=e.getValue();if(null!==r)for(var i=0;i<r.length;i++)t.push(r[i]);e.forEachChild(function(e){n.aggregateTransactionQueuesForNode_(e,t)})},vn.prototype.pruneCompletedTransactionsBelowNode_=function(e){var t=this,n=e.getValue();if(n){for(var r=0,i=0;i<n.length;i++)n[i].status!==_n.COMPLETED&&(n[r]=n[i],r++);n.length=r,e.setValue(n.length>0?n:null)}e.forEachChild(function(e){t.pruneCompletedTransactionsBelowNode_(e)})},vn.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),r=this.transactionQueueTree_.subTree(e);return r.forEachAncestor(function(e){t.abortTransactionsOnNode_(e)}),this.abortTransactionsOnNode_(r),r.forEachDescendant(function(e){t.abortTransactionsOnNode_(e)}),n},vn.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],r=[],i=-1,o=0;o<t.length;o++)if(t[o].status===_n.SENT_NEEDS_ABORT);else if(t[o].status===_n.SENT)y.assert(i===o-1,"All SENT items should be at beginning of queue."),i=o,t[o].status=_n.SENT_NEEDS_ABORT,t[o].abortReason="set";else if(y.assert(t[o].status===_n.RUN,"Unexpected transaction status in abort"),t[o].unwatcher(),r=r.concat(this.serverSyncTree_.ackUserWrite(t[o].currentWriteId,!0)),t[o].onComplete){n.push(t[o].onComplete.bind(null,new Error("set"),!1,null))}-1===i?e.setValue(null):t.length=i+1,this.eventQueue_.raiseEventsForChangedPath(e.path(),r);for(var o=0;o<n.length;o++)te(n[o])}};var xn,Sn=function(){function e(){this.repos_={},this.useRestClient_=!1}return e.getInstance=function(){return xn||(xn=new e),xn},e.prototype.interrupt=function(){for(var e in this.repos_)for(var t in this.repos_[e])this.repos_[e][t].interrupt()},e.prototype.resume=function(){for(var e in this.repos_)for(var t in this.repos_[e])this.repos_[e][t].resume()},e.prototype.databaseFromApp=function(e,t){var n=t||e.options.databaseURL;void 0===n&&L("Can't determine Firebase Database URL. Be sure to include databaseURL option when calling firebase.initializeApp().");var r=ue(n),i=r.repoInfo;return ke("Invalid Firebase Database URL",1,r),r.path.isEmpty()||L("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(i,e).database},e.prototype.deleteRepo=function(e){var t=y.safeGet(this.repos_,e.app.name);t&&y.safeGet(t,e.repoInfo_.toURLString())===e||L("Database "+e.app.name+"("+e.repoInfo_+") has already been deleted."),e.interrupt(),delete t[e.repoInfo_.toURLString()]},e.prototype.createRepo=function(e,t){var n=y.safeGet(this.repos_,t.name);n||(n={},this.repos_[t.name]=n);var r=y.safeGet(n,e.toURLString());return r&&L("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),r=new vn(e,this.useRestClient_,t),n[e.toURLString()]=r,r},e.prototype.forceRestClient=function(e){this.useRestClient_=e},e}(),kn=function(){function e(e){this.repo_=e,e instanceof vn||L("Don't call new Database() directly - please use firebase.database()."),this.root_=new wn(e,ie.Empty),this.INTERNAL=new Cn(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app},enumerable:!0,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),y.validateArgCount("database.ref",0,1,arguments.length),e instanceof wn?this.refFromURL(e.toString()):void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),y.validateArgCount(t,1,1,arguments.length);var n=ue(e);ke(t,1,n);var r=n.repoInfo;return r.host!==this.repo_.repoInfo_.host&&L(t+": Host name does not match the current database: (found "+r.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&L("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){y.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){y.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"}},e}(),Cn=function(){function e(e){this.database=e}return e.prototype.delete=function(){return b.__awaiter(this,void 0,void 0,function(){return b.__generator(this,function(e){return this.database.checkDeleted_("delete"),Sn.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]})})},e}(),On=function(){un.forceDisallow(),on.forceAllow()},Nn=function(){on.forceDisallow()},Pn=function(){return un.isAvailable()},In=function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},An=function(e,t){e.repo.stats(t)},Dn=function(e,t){e.repo.statsIncrementCounter(t)},Rn=function(e){return e.repo.dataUpdateCount},Mn=function(e,t){return e.repo.interceptServerData_(t)},Ln=Object.freeze({forceLongPolling:On,forceWebSockets:Nn,isWebSocketsAvailable:Pn,setSecurityDebugCallback:In,stats:An,statsIncrementCounter:Dn,dataUpdateCount:Rn,interceptServerData:Mn}),jn=pn;pn.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},pn.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var Fn=cn,Un=function(e){var t=pn.prototype.put;return pn.prototype.put=function(n,r,i,o){void 0!==o&&(o=e()),t.call(this,n,r,i,o)},function(){pn.prototype.put=t}},Bn=se,qn=function(e){return e.queryIdentifier()},Vn=function(e){return e.repo.persistentConnection_.listens_},zn=function(e){Sn.getInstance().forceRestClient(e)},Wn=Object.freeze({DataConnection:jn,RealTimeConnection:Fn,hijackHash:Un,ConnectionTarget:Bn,queryIdentifier:qn,listens:Vn,forceRestClient:zn}),Hn=kn.ServerValue;l(w),t.registerDatabase=l,t.Database=kn,t.Query=lt,t.Reference=wn,t.enableLogging=A,t.ServerValue=Hn,t.DataSnapshot=it,t.OnDisconnect=Oe}).call(t,n(64))},function(e,t,n){"use strict";function r(){return ot.logLevel===tt.LogLevel.DEBUG?Ze.DEBUG:ot.logLevel===tt.LogLevel.SILENT?Ze.SILENT:Ze.ERROR}function i(e){switch(e){case Ze.DEBUG:ot.logLevel=tt.LogLevel.DEBUG;break;case Ze.ERROR:ot.logLevel=tt.LogLevel.ERROR;break;case Ze.SILENT:ot.logLevel=tt.LogLevel.SILENT;break;default:ot.error("Firestore ("+it+"): Invalid value passed to `setLogLevel`")}}function o(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(ot.logLevel<=tt.LogLevel.DEBUG){var i=n.map(s);ot.debug.apply(ot,["Firestore ("+it+") ["+e+"]: "+t].concat(i))}}function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ot.logLevel<=tt.LogLevel.ERROR){var r=t.map(s);ot.error.apply(ot,["Firestore ("+it+"): "+e].concat(r))}}function s(e){if("string"===typeof e)return e;var t=at.getPlatform();try{return t.formatJSON(e)}catch(t){return e}}function u(e){var t="FIRESTORE ("+it+") INTERNAL ASSERTION FAILED: "+e;throw a(t),new Error(t)}function l(e,t){e||u(t)}function c(){return at.getPlatform().emptyByteString}function f(e,t){function n(){var e="This constructor is private.";throw t&&(e+=" ",e+=t),new ut(st.INVALID_ARGUMENT,e)}n.prototype=e.prototype;for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){return void 0!==e?e:t}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Number(n);isNaN(r)||t(r,e[n])}}function m(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function v(e){l(null!=e&&"object"===typeof e,"isEmpty() expects object parameter.");for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function y(e){l(e&&"object"===typeof e,"shallowCopy() expects object parameter.");var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function g(e,t,n){if(t.length!==n)throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() requires "+F(n,"argument")+", but was called with "+F(t.length,"argument")+".")}function b(e,t,n){if(t.length<n)throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() requires at least "+F(n,"argument")+", but was called with "+F(t.length,"argument")+".")}function w(e,t,n,r){if(t.length<n||t.length>r)throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() requires between "+n+" and "+r+" arguments, but was called with "+F(t.length,"argument")+".")}function _(e,t,n,r){if(!(t instanceof Array)||t.length<r)throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" argument to be an array with at least "+F(r,"element")+".")}function E(e,t,n,r){P(e,t,j(n)+" argument",r)}function T(e,t,n,r){void 0!==r&&E(e,t,n,r)}function x(e,t,n,r){P(e,t,n+" option",r)}function S(e,t,n,r){void 0!==r&&x(e,t,n,r)}function k(e,t,n,r,i){if(!(r instanceof Array))throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() requires its "+t+" option to be an array, but it was: "+A(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() requires all "+t+" elements to be "+n+", but the value at index "+o+" was: "+A(r[o]))}function C(e,t,n,r,i){void 0!==r&&k(e,t,n,r,i)}function O(e,t,n,r,i){for(var o=[],a=0,s=i;a<s.length;a++){var u=s[a];if(u===r)return;o.push(A(u))}var l=A(r);throw new ut(st.INVALID_ARGUMENT,"Invalid value "+l+" provided to function "+e+'() for option "'+n+'". Acceptable values: '+o.join(", "))}function N(e,t,n,r,i){void 0!==r&&O(e,t,n,r,i)}function P(e,t,n,r){if(typeof r!==t||"object"===t&&!I(r)){var i=A(r);throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" to be of type "+t+", but it was: "+i)}}function I(e){return"object"===typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function A(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"===typeof e)return e.length>20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"===typeof e||"boolean"===typeof e)return""+e;if("object"===typeof e){if(e instanceof Array)return"an array";var t=D(e);return t?"a custom "+t+" object":"an object"}return"function"===typeof e?"a function":u("Unknown wrong type: "+typeof e)}function D(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/,n=t.exec(e.constructor.toString());if(n&&n.length>1)return n[1]}return null}function R(e,t,n){if(void 0===n)throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() requires a valid "+j(t)+" argument, but it was undefined.")}function M(e,t,n){m(t,function(t,r){if(n.indexOf(t)<0)throw new ut(st.INVALID_ARGUMENT,"Unknown option '"+t+"' passed to function "+e+"(). Available options: "+n.join(", "))})}function L(e,t,n,r){var i=A(r);return new ut(st.INVALID_ARGUMENT,"Function "+e+"() requires its "+j(n)+" argument to be a "+t+", but it was: "+i)}function j(e){switch(e){case 1:return"first";case 2:return"second";case 3:return"third";default:return e+"th"}}function F(e,t){return e+" "+t+(1===e?"":"s")}function U(e,t){return e<t?-1:e>t?1:0}function B(e,t){return null!==e&&void 0!==e?!(!t||!e.isEqual(t)):e===t}function q(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].isEqual(t[n]))return!1;return!0}function V(e){var t=e.length-1;return 0===e.length?"":"\0"===e.charAt(t)?e.substring(0,t):e.substring(0,t)+String.fromCharCode(e.charCodeAt(t)-1)}function z(e){return e+"\0"}function W(){if("undefined"===typeof Uint8Array)throw new ut(st.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function H(){if(!at.getPlatform().base64Available)throw new ut(st.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}function K(e,t){return e<t?-1:e>t?1:e===t?0:isNaN(e)?isNaN(t)?0:-1:1}function G(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function Q(e){return null===e||void 0===e}function Y(e){return Yt(e)&&e<=Qt&&e>=Gt}function X(e,t,n){if(n.isEqual(Dt.INSTANCE)){if(t!==$t.EQUAL)throw new ut(st.INVALID_ARGUMENT,"Invalid query. You can only perform equals comparisons on null.");return new Zt(e)}if(n.isEqual(jt.NAN)){if(t!==$t.EQUAL)throw new ut(st.INVALID_ARGUMENT,"Invalid query. You can only perform equals comparisons on NaN.");return new en(e)}return new Jt(e,t,n)}function $(e){switch(e){case st.OK:return u("Treated status OK as error");case st.CANCELLED:case st.UNKNOWN:case st.DEADLINE_EXCEEDED:case st.RESOURCE_EXHAUSTED:case st.INTERNAL:case st.UNAVAILABLE:case st.UNAUTHENTICATED:return!1;case st.INVALID_ARGUMENT:case st.NOT_FOUND:case st.ALREADY_EXISTS:case st.PERMISSION_DENIED:case st.FAILED_PRECONDITION:case st.ABORTED:case st.OUT_OF_RANGE:case st.UNIMPLEMENTED:case st.DATA_LOSS:return!0;default:return u("Unknown status code: "+e)}}function J(e){var t=hn[e];if(void 0!==t)return Z(t)}function Z(e){if(void 0===e)return a("GRPC error has no .code"),st.UNKNOWN;switch(e){case hn.OK:return st.OK;case hn.CANCELLED:return st.CANCELLED;case hn.UNKNOWN:return st.UNKNOWN;case hn.DEADLINE_EXCEEDED:return st.DEADLINE_EXCEEDED;case hn.RESOURCE_EXHAUSTED:return st.RESOURCE_EXHAUSTED;case hn.INTERNAL:return st.INTERNAL;case hn.UNAVAILABLE:return st.UNAVAILABLE;case hn.UNAUTHENTICATED:return st.UNAUTHENTICATED;case hn.INVALID_ARGUMENT:return st.INVALID_ARGUMENT;case hn.NOT_FOUND:return st.NOT_FOUND;case hn.ALREADY_EXISTS:return st.ALREADY_EXISTS;case hn.PERMISSION_DENIED:return st.PERMISSION_DENIED;case hn.FAILED_PRECONDITION:return st.FAILED_PRECONDITION;case hn.ABORTED:return st.ABORTED;case hn.OUT_OF_RANGE:return st.OUT_OF_RANGE;case hn.UNIMPLEMENTED:return st.UNIMPLEMENTED;case hn.DATA_LOSS:return st.DATA_LOSS;default:return u("Unknown status code: "+e)}}function ee(e){if(void 0===e)return hn.OK;switch(e){case st.OK:return hn.OK;case st.CANCELLED:return hn.CANCELLED;case st.UNKNOWN:return hn.UNKNOWN;case st.DEADLINE_EXCEEDED:return hn.DEADLINE_EXCEEDED;case st.RESOURCE_EXHAUSTED:return hn.RESOURCE_EXHAUSTED;case st.INTERNAL:return hn.INTERNAL;case st.UNAVAILABLE:return hn.UNAVAILABLE;case st.UNAUTHENTICATED:return hn.UNAUTHENTICATED;case st.INVALID_ARGUMENT:return hn.INVALID_ARGUMENT;case st.NOT_FOUND:return hn.NOT_FOUND;case st.ALREADY_EXISTS:return hn.ALREADY_EXISTS;case st.PERMISSION_DENIED:return hn.PERMISSION_DENIED;case st.FAILED_PRECONDITION:return hn.FAILED_PRECONDITION;case st.ABORTED:return hn.ABORTED;case st.OUT_OF_RANGE:return hn.OUT_OF_RANGE;case st.UNIMPLEMENTED:return hn.UNIMPLEMENTED;case st.DATA_LOSS:return hn.DATA_LOSS;default:return u("Unknown status code: "+e)}}function te(e){switch(e){case 200:return st.OK;case 400:return st.INVALID_ARGUMENT;case 401:return st.UNAUTHENTICATED;case 403:return st.PERMISSION_DENIED;case 404:return st.NOT_FOUND;case 409:return st.ABORTED;case 416:return st.OUT_OF_RANGE;case 429:return st.RESOURCE_EXHAUSTED;case 499:return st.CANCELLED;case 500:return st.UNKNOWN;case 501:return st.UNIMPLEMENTED;case 503:return st.UNAVAILABLE;case 504:return st.DEADLINE_EXCEEDED;default:return e>=200&&e<300?st.OK:e>=400&&e<500?st.FAILED_PRECONDITION:e>=500&&e<600?st.INTERNAL:st.UNKNOWN}}function ne(){return Tn}function re(){return xn}function ie(){return Sn}function oe(){return kn}function ae(){return new xt(_t.comparator)}function se(){return new xt(_t.comparator)}function ue(e){return e instanceof Ht?e.internalValue.slice():[]}function le(e,t){l(!Q(e),t+" is missing")}function ce(e){return"number"===typeof e?e:"string"===typeof e?Number(e):u("can't parse "+e)}function fe(e,t,n){return t===n||!t&&n in e}function de(e){if(e.search(or)>=0)throw new ut(st.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(ir.bind.apply(ir,[void 0].concat(e.split("."))))}catch(t){throw new ut(st.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}function he(e,t){var n=function(e){switch(e){case _n.Added:return 1;case _n.Modified:case _n.Metadata:return 2;case _n.Removed:return 0;default:return u("Unknown ChangeType: "+e)}};return n(e)-n(t)}function pe(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=ve(t)),t=me(e.get(n),t);return ve(t)}function me(e,t){for(var n=t,r=e.length,i=0;i<r;i++){var o=e.charAt(i);switch(o){case"\0":n+=Or+Pr;break;case Or:n+=Or+Ir;break;default:n+=o}}return n}function ve(e){return e+Or+Nr}function ye(e){var t=e.length;if(l(t>=2,"Invalid path "+e),2===t)return l(e.charAt(0)===Or&&e.charAt(1)===Nr,"Non-empty path "+e+" had length 2"),gt.EMPTY_PATH;for(var n=t-2,r=[],i="",o=0;o<t;){var a=e.indexOf(Or,o);(a<0||a>n)&&u('Invalid encoded resource path: "'+e+'"');switch(e.charAt(a+1)){case Nr:var s=e.substring(o,a),c=void 0;0===i.length?c=s:(i+=s,c=i,i=""),r.push(c);break;case Pr:i+=e.substring(o,a),i+="\0";break;case Ir:i+=e.substring(o,a+1);break;default:u('Invalid encoded resource path: "'+e+'"')}o=a+2}return new gt(r)}function ge(e,t,n,r){l(n<r&&n>=0&&r<=2,"Unexpected schema upgrade from v${fromVersion} to v{toVersion}."),n<1&&r>=1&&(be(e),we(e),Ee(e),_e(e));var i=dr.resolve();return n<2&&r>=2&&(i=xe(t).next(function(e){return Te(t,e)})),i}function be(e){e.createObjectStore(Dr.store)}function we(e){e.createObjectStore(Rr.store,{keyPath:Rr.keyPath}),e.createObjectStore(Mr.store,{keyPath:Mr.keyPath}),e.createObjectStore(Lr.store)}function _e(e){e.createObjectStore(Fr.store)}function Ee(e){e.createObjectStore(Br.store,{keyPath:Br.keyPath}).createIndex(Br.documentTargetsIndex,Br.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(Ur.store,{keyPath:Ur.keyPath}).createIndex(Ur.queryTargetsIndexName,Ur.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(qr.store)}function Te(e,t){var n=e.store(qr.store);return e.store(Ur.store).count().next(function(e){return t.targetCount=e,n.put(qr.key,t)})}function xe(e){var t=e.store(qr.store);return t.get(qr.key).next(function(e){return null!=e?dr.resolve(e):(e=new qr(0,0,sn.MIN.toTimestamp(),0),t.put(qr.key,e).next(function(){return e}))})}function Se(e){return new dr(function(t,n){e.onsuccess=function(e){var n=e.target.result;t(n)},e.onerror=function(e){n(e.target.error)}})}function ke(e){return e instanceof Uint8Array?(l("YES"===Object({NODE_ENV:"production",PUBLIC_URL:""}).USE_MOCK_PERSISTENCE,"Persisting non-string stream tokens is only supported with mock persistence ."),e.toString()):e}function Ce(e){return Wr.getStore(e,Mr.store)}function Oe(e){return Wr.getStore(e,Lr.store)}function Ne(e){return Wr.getStore(e,Rr.store)}function Pe(e){return Wr.getStore(e,Ur.store)}function Ie(e){return Wr.getStore(e,qr.store)}function Ae(e){return Wr.getStore(e,Br.store)}function De(e){return Wr.getStore(e,Fr.store)}function Re(e){return e.path.toArray()}function Me(e){return void 0!==e.documents}function Le(e){if(!e)return new Ni;switch(e.type){case"gapi":return new Ai(e.client,e.sessionIndex||"0");case"provider":return e.client;default:throw new ut(st.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}function je(e){return Fe(e,["next","error","complete"])}function Fe(e,t){if("object"!==typeof e||null===e)return!1;for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];if(o in n&&"function"===typeof n[o])return!0}return!1}function Ue(e){switch(e){case pi.Set:case pi.MergeSet:case pi.Update:return!0;case pi.Argument:return!1;default:throw u("Unexpected case for UserDataSource: "+e)}}function Be(e){return"object"===typeof e&&null!==e&&!(e instanceof Array)&&!(e instanceof Date)&&!(e instanceof ht)&&!(e instanceof dt)&&!(e instanceof ct)&&!(e instanceof zi)&&!(e instanceof Di)}function qe(e,t,n){if(!Be(n)||!I(n)){var r=A(n);throw"an object"===r?t.createError(e+" a custom object"):t.createError(e+" "+r)}}function Ve(e,t){if(t instanceof ir)return t._internalPath;if("string"===typeof t)return ze(e,t);throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. Field path arguments must be of type string or FieldPath.")}function ze(e,t){try{return de(t)._internalPath}catch(t){var n=We(t);throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. "+n)}}function We(e){return e instanceof Error?e.message:e.toString()}function He(){throw new ut(st.INVALID_ARGUMENT,'QuerySnapshot.docChanges has been changed from a property into a method, so usages like "querySnapshot.docChanges" should become "querySnapshot.docChanges()"')}function Ke(e,t){if(void 0===t)return{merge:!1};if(M(e,t,["merge","mergeFields"]),S(e,"boolean","merge",t.merge),C(e,"mergeFields","a string or a FieldPath",t.mergeFields,function(e){return"string"===typeof e||e instanceof ir}),void 0!==t.mergeFields&&void 0!==t.merge)throw new ut(st.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');return t}function Ge(e,t){return void 0===t?{}:(M(e,t,["serverTimestamps"]),N(e,"options","serverTimestamps",t.serverTimestamps,["estimate","previous","none"]),t)}function Qe(e,t,n){if(t instanceof Zi){if(t.firestore!==n)throw new ut(st.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}throw L(e,"DocumentReference",1,t)}function Ye(e,t,n){if(n.oldDocs.isEmpty()){var r,i=0;return n.docChanges.map(function(t){var o=new no(e,t.doc.key,t.doc,n.fromCache);return l(t.type===_n.Added,"Invalid event type for first snapshot"),l(!r||n.query.docComparator(r,t.doc)<0,"Got added events in wrong order"),r=t.doc,{type:"added",doc:o,oldIndex:-1,newIndex:i++}})}var o=n.oldDocs;return n.docChanges.filter(function(e){return t||e.type!==_n.Metadata}).map(function(t){var r=new no(e,t.doc.key,t.doc,n.fromCache),i=-1,a=-1;return t.type!==_n.Added&&(i=o.indexOf(t.doc.key),l(i>=0,"Index for document not found"),o=o.delete(t.doc.key)),t.type!==_n.Removed&&(o=o.add(t.doc),a=o.indexOf(t.doc.key)),{type:Xe(t.type),doc:r,oldIndex:i,newIndex:a}})}function Xe(e){switch(e){case _n.Added:return"added";case _n.Modified:case _n.Metadata:return"modified";case _n.Removed:return"removed";default:return u("Unknown change type: "+e)}}function $e(e){e.INTERNAL.registerService("firestore",function(e){return new Xi(e)},y(vo))}function Je(e){$e(e)}Object.defineProperty(t,"__esModule",{value:!0});var Ze,et=function(e){return e&&"object"===typeof e&&"default"in e?e.default:e}(n(35)),tt=n(129),nt=n(51),rt=n(241),it=et.SDK_VERSION,ot=new tt.Logger("@firebase/firestore");!function(e){e[e.DEBUG=0]="DEBUG",e[e.ERROR=1]="ERROR",e[e.SILENT=2]="SILENT"}(Ze||(Ze={}));var at=function(){function e(){}return e.setPlatform=function(t){e.platform&&u("Platform already defined"),e.platform=t},e.getPlatform=function(){return e.platform||u("Platform not set"),e.platform},e}(),st={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},ut=function(e){function t(t,n){var r=e.call(this,n)||this;return r.code=t,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return nt.__extends(t,e),t}(Error),lt=function(){function e(){}return e.newId=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return l(20===t.length,"Invalid auto ID: "+t),t},e}(),ct=function(){function e(e){H(),this._binaryString=e}return e.fromBase64String=function(t){g("Blob.fromBase64String",arguments,1),E("Blob.fromBase64String","string",1,t),H();try{return new e(at.getPlatform().atob(t))}catch(e){throw new ut(st.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},e.fromUint8Array=function(t){if(g("Blob.fromUint8Array",arguments,1),W(),!(t instanceof Uint8Array))throw L("Blob.fromUint8Array","Uint8Array",1,t);return new e(Array.prototype.map.call(t,function(e){return String.fromCharCode(e)}).join(""))},e.prototype.toBase64=function(){return g("Blob.toBase64",arguments,0),H(),at.getPlatform().btoa(this._binaryString)},e.prototype.toUint8Array=function(){g("Blob.toUint8Array",arguments,0),W();for(var e=new Uint8Array(this._binaryString.length),t=0;t<this._binaryString.length;t++)e[t]=this._binaryString.charCodeAt(t);return e},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this._binaryString===e._binaryString},e.prototype._compareTo=function(e){return U(this._binaryString,e._binaryString)},e}(),ft=f(ct,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),dt=function(){function e(e,t){if(g("GeoPoint",arguments,2),E("GeoPoint","number",1,e),E("GeoPoint","number",2,t),!isFinite(e)||e<-90||e>90)throw new ut(st.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new ut(st.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this._lat},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this._long},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){return this._lat===e._lat&&this._long===e._long},e.prototype._compareTo=function(e){return U(this._lat,e._lat)||U(this._long,e._long)},e}(),ht=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new ut(st.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new ut(st.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new ut(st.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new ut(st.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,1e6*(t-1e3*n))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype._compareTo=function(e){return this.seconds===e.seconds?U(this.nanoseconds,e.nanoseconds):U(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e}(),pt=function(){function e(e,t,n,r){this.databaseId=e,this.persistenceKey=t,this.host=n,this.ssl=r}return e}(),mt="(default)",vt=function(){function e(e,t){this.projectId=e,this.database=t||mt}return Object.defineProperty(e.prototype,"isDefaultDatabase",{get:function(){return this.database===mt},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e.prototype.compareTo=function(e){return U(this.projectId,e.projectId)||U(this.database,e.database)},e}(),yt=function(){function e(e,t,n){this.init(e,t,n)}return e.prototype.init=function(e,t,n){void 0===t?t=0:t>e.length&&u("offset "+t+" out of range "+e.length),void 0===n?n=e.length-t:n>e.length-t&&u("length "+n+" out of range "+(e.length-t)),this.segments=e,this.offset=t,this.len=n},e.prototype.construct=function(e,t,n){var r=Object.create(Object.getPrototypeOf(this));return r.init(e,t,n),r},Object.defineProperty(e.prototype,"length",{get:function(){return this.len},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.comparator(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach(function(e){n.push(e)}):"string"===typeof t?n.push(t):u("Unknown parameter type for Path.child(): "+t),this.construct(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.popFirst=function(e){return e=void 0===e?1:e,l(this.length>=e,"Can't call popFirst() with less segments"),this.construct(this.segments,this.offset+e,this.length-e)},e.prototype.popLast=function(){return l(!this.isEmpty(),"Can't call popLast() on empty path"),this.construct(this.segments,this.offset,this.length-1)},e.prototype.firstSegment=function(){return l(!this.isEmpty(),"Can't call firstSegment() on empty path"),this.segments[this.offset]},e.prototype.lastSegment=function(){return l(!this.isEmpty(),"Can't call lastSegment() on empty path"),this.segments[this.limit()-1]},e.prototype.get=function(e){return l(e<this.length,"Index out of range"),this.segments[this.offset+e]},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.isPrefixOf=function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.forEach=function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])},e.prototype.toArray=function(){return this.segments.slice(this.offset,this.limit())},e.comparator=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0},e}(),gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nt.__extends(t,e),t.prototype.canonicalString=function(){return this.toArray().join("/")},t.prototype.toString=function(){return this.canonicalString()},t.fromString=function(e){if(e.indexOf("//")>=0)throw new ut(st.INVALID_ARGUMENT,"Invalid path ("+e+"). Paths must not contain // in them.");return new t(e.split("/").filter(function(e){return e.length>0}))},t.EMPTY_PATH=new t([]),t}(yt),bt=/^[_a-zA-Z][_a-zA-Z0-9]*$/,wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nt.__extends(t,e),t.isValidIdentifier=function(e){return bt.test(e)},t.prototype.canonicalString=function(){return this.toArray().map(function(e){return e=e.replace("\\","\\\\").replace("`","\\`"),t.isValidIdentifier(e)||(e="`"+e+"`"),e}).join(".")},t.prototype.toString=function(){return this.canonicalString()},t.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},t.keyField=function(){return new t(["__name__"])},t.fromServerFormat=function(e){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new ut(st.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i<e.length;){var s=e[i];if("\\"===s){if(i+1===e.length)throw new ut(st.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var u=e[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new ut(st.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=u,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new ut(st.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t.EMPTY_PATH=new t([]),t}(yt),_t=function(){function e(t){this.path=t,l(e.isDocumentKey(t),"Invalid DocumentKey with an odd number of segments: "+t.toArray().join("/"))}return e.prototype.isEqual=function(e){return null!==e&&0===gt.comparator(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.comparator=function(e,t){return gt.comparator(e.path,t.path)},e.isDocumentKey=function(e){return e.length%2===0},e.fromSegments=function(t){return new e(new gt(t.slice()))},e.fromPathString=function(t){return new e(gt.fromString(t))},e.EMPTY=new e(new gt([])),e}(),Et=function(){function e(e,t,n,r){this.key=e,this.version=t,this.data=n,this.hasLocalMutations=r.hasLocalMutations}return e.prototype.field=function(e){return this.data.field(e)},e.prototype.fieldValue=function(e){var t=this.field(e);return t?t.value():void 0},e.prototype.value=function(){return this.data.value()},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.data.isEqual(t.data)&&this.hasLocalMutations===t.hasLocalMutations},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.data.toString()+", {hasLocalMutations: "+this.hasLocalMutations+"})"},e.compareByKey=function(e,t){return _t.comparator(e.key,t.key)},e.compareByField=function(e,t,n){var r=t.field(e),i=n.field(e);return void 0!==r&&void 0!==i?r.compareTo(i):u("Trying to compare documents on fields that don't exist")},e}(),Tt=function(){function e(e,t){this.key=e,this.version=t}return e.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},e.prototype.isEqual=function(e){return e&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},e.compareByKey=function(e,t){return _t.comparator(e.key,t.key)},e}(),xt=function(){function e(e,t){this.comparator=e,this.root=t||kt.EMPTY}return e.prototype.insert=function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,kt.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,kt.BLACK,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.isEmpty();){var r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),e.prototype.minKey=function(){return this.root.minKey()},e.prototype.maxKey=function(){return this.root.maxKey()},e.prototype.inorderTraversal=function(e){return this.root.inorderTraversal(e)},e.prototype.forEach=function(e){this.inorderTraversal(function(t,n){return e(t,n),!1})},e.prototype.reverseTraversal=function(e){return this.root.reverseTraversal(e)},e.prototype.getIterator=function(){return new St(this.root,null,this.comparator,!1)},e.prototype.getIteratorFrom=function(e){return new St(this.root,e,this.comparator,!1)},e.prototype.getReverseIterator=function(){return new St(this.root,null,this.comparator,!0)},e.prototype.getReverseIteratorFrom=function(e){return new St(this.root,e,this.comparator,!0)},e}(),St=function(){function e(e,t,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!e.isEmpty();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}return e.prototype.getNext=function(){l(this.nodeStack.length>0,"getNext() called on iterator when hasNext() is false.");var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t},e.prototype.hasNext=function(){return this.nodeStack.length>0},e.prototype.peek=function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}},e}(),kt=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},e.prototype.minKey=function(){return this.min().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp()},e.prototype.removeMin=function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),t=t.copy(null,null,null,t.left.removeMin(),null),t.fixUp()},e.prototype.remove=function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(t,i.key)){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.fixUp()},e.prototype.isRed=function(){return this.color},e.prototype.fixUp=function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e},e.prototype.moveRedLeft=function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e},e.prototype.moveRedRight=function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e},e.prototype.rotateLeft=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth=function(){var e=this.check();return Math.pow(2,e)<=this.size+1},e.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw u("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed())throw u("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check();if(e!==this.right.check())throw u("Black depths differ");return e+(this.isRed()?0:1)},e.EMPTY=null,e.RED=!0,e.BLACK=!1,e}(),Ct=function(){function e(){this.size=0}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new kt(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.isRed=function(){return!1},e.prototype.checkMaxDepth=function(){return!0},e.prototype.check=function(){return 0},e}();kt.EMPTY=new Ct;var Ot;!function(e){e[e.NullValue=0]="NullValue",e[e.BooleanValue=1]="BooleanValue",e[e.NumberValue=2]="NumberValue",e[e.TimestampValue=3]="TimestampValue",e[e.StringValue=4]="StringValue",e[e.BlobValue=5]="BlobValue",e[e.RefValue=6]="RefValue",e[e.GeoPointValue=7]="GeoPointValue",e[e.ArrayValue=8]="ArrayValue",e[e.ObjectValue=9]="ObjectValue"}(Ot||(Ot={}));var Nt;!function(e){e[e.Default=0]="Default",e[e.Estimate=1]="Estimate",e[e.Previous=2]="Previous"}(Nt||(Nt={}));var Pt,It=function(){function e(e,t){this.serverTimestampBehavior=e,this.timestampsInSnapshots=t}return e.fromSnapshotOptions=function(t,n){switch(t.serverTimestamps){case"estimate":return new e(Nt.Estimate,n);case"previous":return new e(Nt.Previous,n);case"none":case void 0:return new e(Nt.Default,n);default:return u("fromSnapshotOptions() called with invalid options.")}},e}(),At=function(){function e(){}return e.prototype.toString=function(){var e=this.value();return null===e?"null":e.toString()},e.prototype.defaultCompareTo=function(e){return l(this.typeOrder!==e.typeOrder,"Default compareTo should not be used for values of same type."),U(this.typeOrder,e.typeOrder)},e}(),Dt=function(e){function t(){var t=e.call(this)||this;return t.typeOrder=Ot.NullValue,t.internalValue=null,t}return nt.__extends(t,e),t.prototype.value=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t},t.prototype.compareTo=function(e){return e instanceof t?0:this.defaultCompareTo(e)},t.INSTANCE=new t,t}(At),Rt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=Ot.BooleanValue,n}return nt.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue===e.internalValue},t.prototype.compareTo=function(e){return e instanceof t?U(this,e):this.defaultCompareTo(e)},t.of=function(e){return e?t.TRUE:t.FALSE},t.TRUE=new t(!0),t.FALSE=new t(!1),t}(At),Mt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=Ot.NumberValue,n}return nt.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.compareTo=function(e){return e instanceof t?K(this.internalValue,e.internalValue):this.defaultCompareTo(e)},t}(At),Lt=function(e){function t(t){return e.call(this,t)||this}return nt.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&G(this.internalValue,e.internalValue)},t}(Mt),jt=function(e){function t(t){var n=e.call(this,t)||this;return n.internalValue=t,n}return nt.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&G(this.internalValue,e.internalValue)},t.NAN=new t(NaN),t.POSITIVE_INFINITY=new t(1/0),t.NEGATIVE_INFINITY=new t(-1/0),t}(Mt),Ft=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=Ot.StringValue,n}return nt.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue===e.internalValue},t.prototype.compareTo=function(e){return e instanceof t?U(this.internalValue,e.internalValue):this.defaultCompareTo(e)},t}(At),Ut=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=Ot.TimestampValue,n}return nt.__extends(t,e),t.prototype.value=function(e){return e&&e.timestampsInSnapshots?this.internalValue:this.internalValue.toDate()},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):e instanceof Bt?-1:this.defaultCompareTo(e)},t}(At),Bt=function(e){function t(t,n){var r=e.call(this)||this;return r.localWriteTime=t,r.previousValue=n,r.typeOrder=Ot.TimestampValue,r}return nt.__extends(t,e),t.prototype.value=function(e){return e&&e.serverTimestampBehavior===Nt.Estimate?new Ut(this.localWriteTime).value(e):e&&e.serverTimestampBehavior===Nt.Previous&&this.previousValue?this.previousValue.value(e):null},t.prototype.isEqual=function(e){return e instanceof t&&this.localWriteTime.isEqual(e.localWriteTime)},t.prototype.compareTo=function(e){return e instanceof t?this.localWriteTime._compareTo(e.localWriteTime):e instanceof Ut?1:this.defaultCompareTo(e)},t.prototype.toString=function(){return"<ServerTimestamp localTime="+this.localWriteTime.toString()+">"},t}(At),qt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=Ot.BlobValue,n}return nt.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):this.defaultCompareTo(e)},t}(At),Vt=function(e){function t(t,n){var r=e.call(this)||this;return r.databaseId=t,r.key=n,r.typeOrder=Ot.RefValue,r}return nt.__extends(t,e),t.prototype.value=function(e){return this.key},t.prototype.isEqual=function(e){return e instanceof t&&(this.key.isEqual(e.key)&&this.databaseId.isEqual(e.databaseId))},t.prototype.compareTo=function(e){if(e instanceof t){var n=this.databaseId.compareTo(e.databaseId);return 0!==n?n:_t.comparator(this.key,e.key)}return this.defaultCompareTo(e)},t}(At),zt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=Ot.GeoPointValue,n}return nt.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):this.defaultCompareTo(e)},t}(At),Wt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=Ot.ObjectValue,n}return nt.__extends(t,e),t.prototype.value=function(e){var t={};return this.internalValue.inorderTraversal(function(n,r){t[n]=r.value(e)}),t},t.prototype.forEach=function(e){this.internalValue.inorderTraversal(e)},t.prototype.isEqual=function(e){if(e instanceof t){for(var n=this.internalValue.getIterator(),r=e.internalValue.getIterator();n.hasNext()&&r.hasNext();){var i=n.getNext(),o=r.getNext();if(i.key!==o.key||!i.value.isEqual(o.value))return!1}return!n.hasNext()&&!r.hasNext()}return!1},t.prototype.compareTo=function(e){if(e instanceof t){for(var n=this.internalValue.getIterator(),r=e.internalValue.getIterator();n.hasNext()&&r.hasNext();){var i=n.getNext(),o=r.getNext(),a=U(i.key,o.key)||i.value.compareTo(o.value);if(a)return a}return U(n.hasNext(),r.hasNext())}return this.defaultCompareTo(e)},t.prototype.set=function(e,n){if(l(!e.isEmpty(),"Cannot set field for empty path on ObjectValue"),1===e.length)return this.setChild(e.firstSegment(),n);var r=this.child(e.firstSegment());r instanceof t||(r=t.EMPTY);var i=r.set(e.popFirst(),n);return this.setChild(e.firstSegment(),i)},t.prototype.delete=function(e){if(l(!e.isEmpty(),"Cannot delete field for empty path on ObjectValue"),1===e.length)return new t(this.internalValue.remove(e.firstSegment()));var n=this.child(e.firstSegment());if(n instanceof t){var r=n.delete(e.popFirst());return new t(this.internalValue.insert(e.firstSegment(),r))}return this},t.prototype.contains=function(e){return void 0!==this.field(e)},t.prototype.field=function(e){l(!e.isEmpty(),"Can't get field of empty path");var n=this;return e.forEach(function(e){n=n instanceof t?n.internalValue.get(e)||void 0:void 0}),n},t.prototype.toString=function(){return JSON.stringify(this.value())},t.prototype.child=function(e){return this.internalValue.get(e)||void 0},t.prototype.setChild=function(e,n){return new t(this.internalValue.insert(e,n))},t.EMPTY=new t(new xt(U)),t}(At),Ht=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=Ot.ArrayValue,n}return nt.__extends(t,e),t.prototype.value=function(e){return this.internalValue.map(function(t){return t.value(e)})},t.prototype.forEach=function(e){this.internalValue.forEach(e)},t.prototype.isEqual=function(e){if(e instanceof t){if(this.internalValue.length!==e.internalValue.length)return!1;for(var n=0;n<this.internalValue.length;n++)if(!this.internalValue[n].isEqual(e.internalValue[n]))return!1;return!0}return!1},t.prototype.compareTo=function(e){if(e instanceof t){for(var n=Math.min(this.internalValue.length,e.internalValue.length),r=0;r<n;r++){var i=this.internalValue[r].compareTo(e.internalValue[r]);if(i)return i}return U(this.internalValue.length,e.internalValue.length)}return this.defaultCompareTo(e)},t.prototype.toString=function(){return JSON.stringify(this.value())},t}(At),Kt=Number,Gt=Kt.MIN_SAFE_INTEGER||-(Math.pow(2,53)-1),Qt=Kt.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Yt=Kt.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},Xt=function(){function e(e,t,n,r,i,o){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=null),void 0===i&&(i=null),void 0===o&&(o=null),this.path=e,this.explicitOrderBy=t,this.filters=n,this.limit=r,this.startAt=i,this.endAt=o,this.memoizedCanonicalId=null,this.memoizedOrderBy=null,this.startAt&&this.assertValidBound(this.startAt),this.endAt&&this.assertValidBound(this.endAt)}return e.atPath=function(t){return new e(t)},Object.defineProperty(e.prototype,"orderBy",{get:function(){if(null===this.memoizedOrderBy){var e=this.getInequalityFilterField(),t=this.getFirstOrderByField();if(null!==e&&null===t)e.isKeyField()?this.memoizedOrderBy=[on]:this.memoizedOrderBy=[new rn(e),on];else{l(null===e||null!==t&&e.isEqual(t),"First orderBy should match inequality field."),this.memoizedOrderBy=[];for(var n=!1,r=0,i=this.explicitOrderBy;r<i.length;r++){var o=i[r];this.memoizedOrderBy.push(o),o.field.isKeyField()&&(n=!0)}if(!n){var a=this.explicitOrderBy.length>0?this.explicitOrderBy[this.explicitOrderBy.length-1].dir:tn.ASCENDING;this.memoizedOrderBy.push(a===tn.ASCENDING?on:an)}}}return this.memoizedOrderBy},enumerable:!0,configurable:!0}),e.prototype.addFilter=function(t){l(null==this.getInequalityFilterField()||!(t instanceof Jt)||!t.isInequality()||t.field.isEqual(this.getInequalityFilterField()),"Query must only have one inequality field."),l(!_t.isDocumentKey(this.path),"No filtering allowed for document query");var n=this.filters.concat([t]);return new e(this.path,this.explicitOrderBy.slice(),n,this.limit,this.startAt,this.endAt)},e.prototype.addOrderBy=function(t){l(!_t.isDocumentKey(this.path),"No ordering allowed for document query"),l(!this.startAt&&!this.endAt,"Bounds must be set after orderBy");var n=this.explicitOrderBy.concat([t]);return new e(this.path,n,this.filters.slice(),this.limit,this.startAt,this.endAt)},e.prototype.withLimit=function(t){return new e(this.path,this.explicitOrderBy.slice(),this.filters.slice(),t,this.startAt,this.endAt)},e.prototype.withStartAt=function(t){return new e(this.path,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,t,this.endAt)},e.prototype.withEndAt=function(t){return new e(this.path,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.startAt,t)},e.prototype.canonicalId=function(){if(null===this.memoizedCanonicalId){var e=this.path.canonicalString();e+="|f:";for(var t=0,n=this.filters;t<n.length;t++){e+=n[t].canonicalId(),e+=","}e+="|ob:";for(var r=0,i=this.orderBy;r<i.length;r++){e+=i[r].canonicalId(),e+=","}Q(this.limit)||(e+="|l:",e+=this.limit),this.startAt&&(e+="|lb:",e+=this.startAt.canonicalId()),this.endAt&&(e+="|ub:",e+=this.endAt.canonicalId()),this.memoizedCanonicalId=e}return this.memoizedCanonicalId},e.prototype.toString=function(){var e="Query("+this.path.canonicalString();return this.filters.length>0&&(e+=", filters: ["+this.filters.join(", ")+"]"),Q(this.limit)||(e+=", limit: "+this.limit),this.explicitOrderBy.length>0&&(e+=", orderBy: ["+this.explicitOrderBy.join(", ")+"]"),this.startAt&&(e+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(e+=", endAt: "+this.endAt.canonicalId()),e+")"},e.prototype.isEqual=function(e){if(this.limit!==e.limit)return!1;if(this.orderBy.length!==e.orderBy.length)return!1;for(var t=0;t<this.orderBy.length;t++)if(!this.orderBy[t].isEqual(e.orderBy[t]))return!1;if(this.filters.length!==e.filters.length)return!1;for(var t=0;t<this.filters.length;t++)if(!this.filters[t].isEqual(e.filters[t]))return!1;return!!this.path.isEqual(e.path)&&(!(null!==this.startAt?!this.startAt.isEqual(e.startAt):null!==e.startAt)&&(null!==this.endAt?this.endAt.isEqual(e.endAt):null===e.endAt))},e.prototype.docComparator=function(e,t){for(var n=!1,r=0,i=this.orderBy;r<i.length;r++){var o=i[r],a=o.compare(e,t);if(0!==a)return a;n=n||o.field.isKeyField()}return l(n,"orderBy used that doesn't compare on key field"),0},e.prototype.matches=function(e){return this.matchesAncestor(e)&&this.matchesOrderBy(e)&&this.matchesFilters(e)&&this.matchesBounds(e)},e.prototype.hasLimit=function(){return!Q(this.limit)},e.prototype.getFirstOrderByField=function(){return this.explicitOrderBy.length>0?this.explicitOrderBy[0].field:null},e.prototype.getInequalityFilterField=function(){for(var e=0,t=this.filters;e<t.length;e++){var n=t[e];if(n instanceof Jt&&n.isInequality())return n.field}return null},e.prototype.hasArrayContainsFilter=function(){return void 0!==this.filters.find(function(e){return e instanceof Jt&&e.op===$t.ARRAY_CONTAINS})},e.prototype.isDocumentQuery=function(){return _t.isDocumentKey(this.path)&&0===this.filters.length},e.prototype.matchesAncestor=function(e){var t=e.key.path;return _t.isDocumentKey(this.path)?this.path.isEqual(t):this.path.isPrefixOf(t)&&this.path.length===t.length-1},e.prototype.matchesOrderBy=function(e){for(var t=0,n=this.explicitOrderBy;t<n.length;t++){var r=n[t];if(!r.field.isKeyField()&&void 0===e.field(r.field))return!1}return!0},e.prototype.matchesFilters=function(e){for(var t=0,n=this.filters;t<n.length;t++){if(!n[t].matches(e))return!1}return!0},e.prototype.matchesBounds=function(e){return!(this.startAt&&!this.startAt.sortsBeforeDocument(this.orderBy,e))&&(!this.endAt||!this.endAt.sortsBeforeDocument(this.orderBy,e))},e.prototype.assertValidBound=function(e){l(e.position.length<=this.orderBy.length,"Bound is longer than orderBy")},e}(),$t=function(){function e(e){this.name=e}return e.fromString=function(t){switch(t){case"<":return e.LESS_THAN;case"<=":return e.LESS_THAN_OR_EQUAL;case"==":return e.EQUAL;case">=":return e.GREATER_THAN_OR_EQUAL;case">":return e.GREATER_THAN;case"array-contains":return e.ARRAY_CONTAINS;default:return u("Unknown relation: "+t)}},e.prototype.toString=function(){return this.name},e.prototype.isEqual=function(e){return this.name===e.name},e.LESS_THAN=new e("<"),e.LESS_THAN_OR_EQUAL=new e("<="),e.EQUAL=new e("=="),e.GREATER_THAN=new e(">"),e.GREATER_THAN_OR_EQUAL=new e(">="),e.ARRAY_CONTAINS=new e("array-contains"),e}(),Jt=function(){function e(e,t,n){this.field=e,this.op=t,this.value=n}return e.prototype.matches=function(e){if(this.field.isKeyField()){l(this.value instanceof Vt,"Comparing on key, but filter value not a RefValue"),l(this.op!==$t.ARRAY_CONTAINS,"array-contains queries don't make sense on document keys.");var t=this.value,n=_t.comparator(e.key,t.key);return this.matchesComparison(n)}var r=e.field(this.field);return void 0!==r&&this.matchesValue(r)},e.prototype.matchesValue=function(e){var t=this;return this.op===$t.ARRAY_CONTAINS?e instanceof Ht&&void 0!==e.internalValue.find(function(e){return e.isEqual(t.value)}):this.value.typeOrder===e.typeOrder&&this.matchesComparison(e.compareTo(this.value))},e.prototype.matchesComparison=function(e){switch(this.op){case $t.LESS_THAN:return e<0;case $t.LESS_THAN_OR_EQUAL:return e<=0;case $t.EQUAL:return 0===e;case $t.GREATER_THAN:return e>0;case $t.GREATER_THAN_OR_EQUAL:return e>=0;default:return u("Unknown relation op"+this.op)}},e.prototype.isInequality=function(){return this.op!==$t.EQUAL&&this.op!==$t.ARRAY_CONTAINS},e.prototype.canonicalId=function(){return this.field.canonicalString()+this.op.toString()+this.value.toString()},e.prototype.isEqual=function(t){return t instanceof e&&(this.op.isEqual(t.op)&&this.field.isEqual(t.field)&&this.value.isEqual(t.value))},e.prototype.toString=function(){return this.field.canonicalString()+" "+this.op+" "+this.value.value()},e}(),Zt=function(){function e(e){this.field=e}return e.prototype.matches=function(e){var t=e.field(this.field);return void 0!==t&&null===t.value()},e.prototype.canonicalId=function(){return this.field.canonicalString()+" IS null"},e.prototype.toString=function(){return this.field.canonicalString()+" IS null"},e.prototype.isEqual=function(t){return t instanceof e&&this.field.isEqual(t.field)},e}(),en=function(){function e(e){this.field=e}return e.prototype.matches=function(e){var t=e.field(this.field).value();return"number"===typeof t&&isNaN(t)},e.prototype.canonicalId=function(){return this.field.canonicalString()+" IS NaN"},e.prototype.toString=function(){return this.field.canonicalString()+" IS NaN"},e.prototype.isEqual=function(t){return t instanceof e&&this.field.isEqual(t.field)},e}(),tn=function(){function e(e){this.name=e}return e.prototype.toString=function(){return this.name},e.ASCENDING=new e("asc"),e.DESCENDING=new e("desc"),e}(),nn=function(){function e(e,t){this.position=e,this.before=t}return e.prototype.canonicalId=function(){for(var e=this.before?"b:":"a:",t=0,n=this.position;t<n.length;t++){e+=n[t].toString()}return e},e.prototype.sortsBeforeDocument=function(e,t){l(this.position.length<=e.length,"Bound has more components than query's orderBy");for(var n=0,r=0;r<this.position.length;r++){var i=e[r],o=this.position[r];if(i.field.isKeyField())l(o instanceof Vt,"Bound has a non-key value where the key path is being used."),n=_t.comparator(o.key,t.key);else{var a=t.field(i.field);l(void 0!==a,"Field should exist since document matched the orderBy already."),n=o.compareTo(a)}if(i.dir===tn.DESCENDING&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},e.prototype.isEqual=function(e){if(null===e)return!1;if(this.before!==e.before||this.position.length!==e.position.length)return!1;for(var t=0;t<this.position.length;t++){var n=this.position[t],r=e.position[t];return n.isEqual(r)}return!0},e}(),rn=function(){function e(e,t){this.field=e,void 0===t&&(t=tn.ASCENDING),this.dir=t,this.isKeyOrderBy=e.isKeyField()}return e.prototype.compare=function(e,t){var n=this.isKeyOrderBy?Et.compareByKey(e,t):Et.compareByField(this.field,e,t);switch(this.dir){case tn.ASCENDING:return n;case tn.DESCENDING:return-1*n;default:return u("Unknown direction: "+this.dir)}},e.prototype.canonicalId=function(){return this.field.canonicalString()+this.dir.toString()},e.prototype.toString=function(){return this.field.canonicalString()+" ("+this.dir+")"},e.prototype.isEqual=function(e){return this.dir===e.dir&&this.field.isEqual(e.field)},e}(),on=new rn(wt.keyField(),tn.ASCENDING),an=new rn(wt.keyField(),tn.DESCENDING),sn=function(){function e(e){this.timestamp=e}return e.fromMicroseconds=function(t){var n=Math.floor(t/1e6);return new e(new ht(n,t%1e6*1e3))},e.fromTimestamp=function(t){return new e(t)},e.forDeletedDoc=function(){return e.MIN},e.prototype.compareTo=function(e){return this.timestamp._compareTo(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.toTimestamp=function(){return this.timestamp},e.MIN=new e(new ht(0,0)),e}();!function(e){e[e.Listen=0]="Listen",e[e.ExistenceFilterMismatch=1]="ExistenceFilterMismatch",e[e.LimboResolution=2]="LimboResolution"}(Pt||(Pt={}));var un,ln=function(){function e(e,t,n,r,i){void 0===r&&(r=sn.MIN),void 0===i&&(i=c()),this.query=e,this.targetId=t,this.purpose=n,this.snapshotVersion=r,this.resumeToken=i}return e.prototype.update=function(t){return new e(this.query,this.targetId,this.purpose,t.snapshotVersion,t.resumeToken)},e.prototype.isEqual=function(e){return this.targetId===e.targetId&&this.purpose===e.purpose&&this.snapshotVersion.isEqual(e.snapshotVersion)&&this.resumeToken===e.resumeToken&&this.query.isEqual(e.query)},e}(),cn=function(){function e(e){this.fields=e}return e.prototype.covers=function(e){for(var t=0,n=this.fields;t<n.length;t++){if(n[t].isPrefixOf(e))return!0}return!1},e.prototype.isEqual=function(e){return q(this.fields,e.fields)},e}(),fn=function(){function e(e,t){this.field=e,this.transform=t}return e.prototype.isEqual=function(e){return this.field.isEqual(e.field)&&this.transform.isEqual(e.transform)},e}(),dn=function(){function e(e,t){this.version=e,this.transformResults=t}return e}();!function(e){e[e.Set=0]="Set",e[e.Patch=1]="Patch",e[e.Transform=2]="Transform",e[e.Delete=3]="Delete"}(un||(un={}));var hn,pn=function(){function e(e,t){this.updateTime=e,this.exists=t,l(void 0===e||void 0===t,'Precondition can specify "exists" or "updateTime" but not both')}return e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),e.prototype.isValidFor=function(e){return void 0!==this.updateTime?e instanceof Et&&e.version.isEqual(this.updateTime):void 0!==this.exists?this.exists?e instanceof Et:null===e||e instanceof Tt:(l(this.isNone,"Precondition should be empty"),!0)},e.prototype.isEqual=function(e){return B(this.updateTime,e.updateTime)&&this.exists===e.exists},e.NONE=new e,e}(),mn=function(){function e(){}return e.prototype.verifyKeyMatches=function(e){null!=e&&l(e.key.isEqual(this.key),"Can only apply a mutation to a document with the same key")},e.getPostMutationVersion=function(e){return e instanceof Et?e.version:sn.MIN},e}(),vn=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.value=n,i.precondition=r,i.type=un.Set,i}return nt.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){this.verifyKeyMatches(e),l(null==t.transformResults,"Transform results received by SetMutation.");var n=mn.getPostMutationVersion(e);return new Et(this.key,n,this.value,{hasLocalMutations:!1})},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var r=mn.getPostMutationVersion(e);return new Et(this.key,r,this.value,{hasLocalMutations:!0})},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.value.isEqual(e.value)&&this.precondition.isEqual(e.precondition)},t}(mn),yn=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.key=t,o.data=n,o.fieldMask=r,o.precondition=i,o.type=un.Patch,o}return nt.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){if(this.verifyKeyMatches(e),l(null==t.transformResults,"Transform results received by PatchMutation."),!this.precondition.isValidFor(e))return e;var n=mn.getPostMutationVersion(e),r=this.patchDocument(e);return new Et(this.key,n,r,{hasLocalMutations:!1})},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var r=mn.getPostMutationVersion(e),i=this.patchDocument(e);return new Et(this.key,r,i,{hasLocalMutations:!0})},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.fieldMask.isEqual(e.fieldMask)&&this.precondition.isEqual(e.precondition)},t.prototype.patchDocument=function(e){var t;return t=e instanceof Et?e.data:Wt.EMPTY,this.patchObject(t)},t.prototype.patchObject=function(e){for(var t=0,n=this.fieldMask.fields;t<n.length;t++){var r=n[t],i=this.data.field(r);e=void 0!==i?e.set(r,i):e.delete(r)}return e},t}(mn),gn=function(e){function t(t,n){var r=e.call(this)||this;return r.key=t,r.fieldTransforms=n,r.type=un.Transform,r.precondition=pn.exists(!0),r}return nt.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){if(this.verifyKeyMatches(e),l(null!=t.transformResults,"Transform results missing for TransformMutation."),!this.precondition.isValidFor(e))return e;var n=this.requireDocument(e),r=this.serverTransformResults(e,t.transformResults),i=this.transformObject(n.data,r);return new Et(this.key,n.version,i,{hasLocalMutations:!1})},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var r=this.requireDocument(e),i=this.localTransformResults(n,t),o=this.transformObject(r.data,i);return new Et(this.key,r.version,o,{hasLocalMutations:!0})},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&q(this.fieldTransforms,e.fieldTransforms)&&this.precondition.isEqual(e.precondition)},t.prototype.requireDocument=function(e){l(e instanceof Et,"Unknown MaybeDocument type "+e);var t=e;return l(t.key.isEqual(this.key),"Can only transform a document with the same key"),t},t.prototype.serverTransformResults=function(e,t){var n=[];l(this.fieldTransforms.length===t.length,"server transform result count ("+t.length+") should match field transform count ("+this.fieldTransforms.length+")");for(var r=0;r<t.length;r++){var i=this.fieldTransforms[r],o=i.transform,a=null;e instanceof Et&&(a=e.field(i.field)||null),n.push(o.applyToRemoteDocument(a,t[r]))}return n},t.prototype.localTransformResults=function(e,t){for(var n=[],r=0,i=this.fieldTransforms;r<i.length;r++){var o=i[r],a=o.transform,s=null;t instanceof Et&&(s=t.field(o.field)||null),n.push(a.applyToLocalView(s,e))}return n},t.prototype.transformObject=function(e,t){l(t.length===this.fieldTransforms.length,"TransformResults length mismatch.");for(var n=0;n<this.fieldTransforms.length;n++){var r=this.fieldTransforms[n],i=r.field;e=e.set(i,t[n])}return e},t}(mn),bn=function(e){function t(t,n){var r=e.call(this)||this;return r.key=t,r.precondition=n,r.type=un.Delete,r}return nt.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){return this.verifyKeyMatches(e),l(null==t.transformResults,"Transform results received by DeleteMutation."),new Tt(this.key,sn.MIN)},t.prototype.applyToLocalView=function(e,t,n){return this.verifyKeyMatches(e),this.precondition.isValidFor(e)?(e&&l(e.key.isEqual(this.key),"Can only apply mutation to document with same key"),new Tt(this.key,sn.forDeletedDoc())):e},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.precondition.isEqual(e.precondition)},t}(mn),wn=function(){function e(e){this.count=e}return e.prototype.isEqual=function(e){return e&&e.count===this.count},e}();!function(e){e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS"}(hn||(hn={}));var _n,En=function(){function e(e){this.comparator=e,this.data=new xt(this.comparator)}return e.fromMapKeys=function(t){var n=new e(t.comparator);return t.forEach(function(e){n=n.add(e)}),n},e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.minKey()},e.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.inorderTraversal(function(t,n){return e(t),!1})},e.prototype.forEachInRange=function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}},e.prototype.forEachWhile=function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();){if(!e(n.getNext().key))return}},e.prototype.firstAfterOrEqual=function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null},e.prototype.add=function(e){return this.copy(this.data.remove(e).insert(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.copy(this.data.remove(e)):this},e.prototype.isEmpty=function(){return this.data.isEmpty()},e.prototype.unionWith=function(e){var t=this;return e.forEach(function(e){t=t.add(e)}),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),r=t.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach(function(t){return e.push(t)}),"SortedSet("+e.toString()+")"},e.prototype.copy=function(t){var n=new e(this.comparator);return n.data=t,n},e}(),Tn=new xt(_t.comparator),xn=new xt(_t.comparator),Sn=new xt(_t.comparator),kn=new En(_t.comparator),Cn=function(){function e(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}return e}(),On=function(){function e(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}return e}();!function(e){e[e.Added=0]="Added",e[e.Removed=1]="Removed",e[e.Modified=2]="Modified",e[e.Metadata=3]="Metadata"}(_n||(_n={}));var Nn;!function(e){e[e.Local=0]="Local",e[e.Synced=1]="Synced"}(Nn||(Nn={}));var Pn,In=function(){function e(){this.changeMap=new xt(_t.comparator)}return e.prototype.track=function(e){var t=e.doc.key,n=this.changeMap.get(t);if(!n)return void(this.changeMap=this.changeMap.insert(t,e));e.type!==_n.Added&&n.type===_n.Metadata?this.changeMap=this.changeMap.insert(t,e):e.type===_n.Metadata&&n.type!==_n.Removed?this.changeMap=this.changeMap.insert(t,{type:n.type,doc:e.doc}):e.type===_n.Modified&&n.type===_n.Modified?this.changeMap=this.changeMap.insert(t,{type:_n.Modified,doc:e.doc}):e.type===_n.Modified&&n.type===_n.Added?this.changeMap=this.changeMap.insert(t,{type:_n.Added,doc:e.doc}):e.type===_n.Removed&&n.type===_n.Added?this.changeMap=this.changeMap.remove(t):e.type===_n.Removed&&n.type===_n.Modified?this.changeMap=this.changeMap.insert(t,{type:_n.Removed,doc:n.doc}):e.type===_n.Added&&n.type===_n.Removed?this.changeMap=this.changeMap.insert(t,{type:_n.Modified,doc:e.doc}):u("unsupported combination of changes: "+JSON.stringify(e)+" after "+JSON.stringify(n))},e.prototype.getChanges=function(){var e=[];return this.changeMap.inorderTraversal(function(t,n){e.push(n)}),e},e}(),An=function(){function e(e,t,n,r,i,o,a,s){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.fromCache=i,this.hasPendingWrites=o,this.syncStateChanged=a,this.excludesMetadataChanges=s}return e.prototype.isEqual=function(e){if(this.fromCache!==e.fromCache||this.hasPendingWrites!==e.hasPendingWrites||this.syncStateChanged!==e.syncStateChanged||!this.query.isEqual(e.query)||!this.docs.isEqual(e.docs)||!this.oldDocs.isEqual(e.oldDocs))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0},e}(),Dn=function(){function e(e,t,n,r){this.updatedTargetIds=e,this.removedTargetIds=t,this.key=n,this.newDoc=r}return e}(),Rn=function(){function e(e,t){this.targetId=e,this.existenceFilter=t}return e}();!function(e){e[e.NoChange=0]="NoChange",e[e.Added=1]="Added",e[e.Removed=2]="Removed",e[e.Current=3]="Current",e[e.Reset=4]="Reset"}(Pn||(Pn={}));var Mn=function(){function e(e,t,n,r){void 0===n&&(n=c()),void 0===r&&(r=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}return e}(),Ln=function(){function e(){this.pendingResponses=0,this.documentChanges=se(),this._resumeToken=c(),this._current=!1,this._hasPendingChanges=!0}return Object.defineProperty(e.prototype,"current",{get:function(){return this._current},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this._resumeToken},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPending",{get:function(){return 0!==this.pendingResponses},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingChanges",{get:function(){return this._hasPendingChanges},enumerable:!0,configurable:!0}),e.prototype.updateResumeToken=function(e){e.length>0&&(this._hasPendingChanges=!0,this._resumeToken=e)},e.prototype.toTargetChange=function(){var e=oe(),t=oe(),n=oe();return this.documentChanges.forEach(function(r,i){switch(i){case _n.Added:e=e.add(r);break;case _n.Modified:t=t.add(r);break;case _n.Removed:n=n.add(r);break;default:u("Encountered invalid change type: "+i)}}),new On(this._resumeToken,this._current,e,t,n)},e.prototype.clearPendingChanges=function(){this._hasPendingChanges=!1,this.documentChanges=se()},e.prototype.addDocumentChange=function(e,t){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.insert(e,t)},e.prototype.removeDocumentChange=function(e){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.remove(e)},e.prototype.recordPendingTargetRequest=function(){this.pendingResponses+=1},e.prototype.recordTargetResponse=function(){this.pendingResponses-=1},e.prototype.markCurrent=function(){this._hasPendingChanges=!0,this._current=!0},e}(),jn=function(){function e(e){this.metadataProvider=e,this.targetStates={},this.pendingDocumentUpdates=ne(),this.pendingDocumentTargetMapping=ae(),this.pendingTargetResets=new En(U)}return e.prototype.handleDocumentChange=function(e){for(var t=0,n=e.updatedTargetIds;t<n.length;t++){var r=n[t];e.newDoc instanceof Et?this.addDocumentToTarget(r,e.newDoc):e.newDoc instanceof Tt&&this.removeDocumentFromTarget(r,e.key,e.newDoc)}for(var i=0,o=e.removedTargetIds;i<o.length;i++){var r=o[i];this.removeDocumentFromTarget(r,e.key,e.newDoc)}},e.prototype.handleTargetChange=function(e){var t=this;e.targetIds.forEach(function(n){var r=t.ensureTargetState(n);switch(e.state){case Pn.NoChange:t.isActiveTarget(n)&&r.updateResumeToken(e.resumeToken);break;case Pn.Added:r.recordTargetResponse(),r.isPending||r.clearPendingChanges(),r.updateResumeToken(e.resumeToken);break;case Pn.Removed:r.recordTargetResponse(),r.isPending||t.removeTarget(n),l(!e.cause,"WatchChangeAggregator does not handle errored targets");break;case Pn.Current:t.isActiveTarget(n)&&(r.markCurrent(),r.updateResumeToken(e.resumeToken));break;case Pn.Reset:t.isActiveTarget(n)&&(t.resetTarget(n),r.updateResumeToken(e.resumeToken));break;default:u("Unknown target watch change state: "+e.state)}})},e.prototype.handleExistenceFilter=function(e){var t=e.targetId,n=e.existenceFilter.count,r=this.queryDataForActiveTarget(t);if(r){var i=r.query;if(i.isDocumentQuery())if(0===n){var o=new _t(i.path);this.removeDocumentFromTarget(t,o,new Tt(o,sn.forDeletedDoc()))}else l(1===n,"Single document existence filter with count: "+n);else{this.getCurrentDocumentCountForTarget(t)!==n&&(this.resetTarget(t),this.pendingTargetResets=this.pendingTargetResets.add(t))}}},e.prototype.createRemoteEvent=function(e){var t=this,n={};p(this.targetStates,function(r,i){var o=t.queryDataForActiveTarget(r);if(o){if(i.current&&o.query.isDocumentQuery()){var a=new _t(o.query.path);null!==t.pendingDocumentUpdates.get(a)||t.targetContainsDocument(r,a)||t.removeDocumentFromTarget(r,a,new Tt(a,e))}i.hasPendingChanges&&(n[r]=i.toTargetChange(),i.clearPendingChanges())}});var r=oe();this.pendingDocumentTargetMapping.forEach(function(e,n){var i=!0;n.forEachWhile(function(e){var n=t.queryDataForActiveTarget(e);return!n||n.purpose===Pt.LimboResolution||(i=!1,!1)}),i&&(r=r.add(e))});var i=new Cn(e,n,this.pendingTargetResets,this.pendingDocumentUpdates,r);return this.pendingDocumentUpdates=ne(),this.pendingDocumentTargetMapping=ae(),this.pendingTargetResets=new En(U),i},e.prototype.addDocumentToTarget=function(e,t){if(this.isActiveTarget(e)){var n=this.targetContainsDocument(e,t.key)?_n.Modified:_n.Added;this.ensureTargetState(e).addDocumentChange(t.key,n),this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(t.key,t),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(t.key,this.ensureDocumentTargetMapping(t.key).add(e))}},e.prototype.removeDocumentFromTarget=function(e,t,n){if(this.isActiveTarget(e)){var r=this.ensureTargetState(e);this.targetContainsDocument(e,t)?r.addDocumentChange(t,_n.Removed):r.removeDocumentChange(t),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(t,this.ensureDocumentTargetMapping(t).delete(e)),n&&(this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(t,n))}},e.prototype.removeTarget=function(e){delete this.targetStates[e]},e.prototype.getCurrentDocumentCountForTarget=function(e){var t=this.ensureTargetState(e),n=t.toTargetChange();return this.metadataProvider.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size},e.prototype.recordPendingTargetRequest=function(e){this.ensureTargetState(e).recordPendingTargetRequest()},e.prototype.ensureTargetState=function(e){return this.targetStates[e]||(this.targetStates[e]=new Ln),this.targetStates[e]},e.prototype.ensureDocumentTargetMapping=function(e){var t=this.pendingDocumentTargetMapping.get(e);return t||(t=new En(U),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(e,t)),t},e.prototype.isActiveTarget=function(e){return null!==this.queryDataForActiveTarget(e)},e.prototype.queryDataForActiveTarget=function(e){var t=this.targetStates[e];return t&&t.isPending?null:this.metadataProvider.getQueryDataForTarget(e)},e.prototype.resetTarget=function(e){var t=this;l(!this.targetStates[e].isPending,"Should only reset active targets"),this.targetStates[e]=new Ln,this.metadataProvider.getRemoteKeysForTarget(e).forEach(function(n){t.removeDocumentFromTarget(e,n)})},e.prototype.targetContainsDocument=function(e,t){return this.metadataProvider.getRemoteKeysForTarget(e).has(t)},e}(),Fn=function(){function e(){}return e.prototype.applyToLocalView=function(e,t){return new Bt(t,e)},e.prototype.applyToRemoteDocument=function(e,t){return t},e.prototype.isEqual=function(t){return t instanceof e},e.instance=new e,e}(),Un=function(){function e(e){this.elements=e}return e.prototype.applyToLocalView=function(e,t){return this.apply(e)},e.prototype.applyToRemoteDocument=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=ue(e),n=0,r=this.elements;n<r.length;n++){var i=r[n];!function(e){t.find(function(t){return t.isEqual(e)})||t.push(e)}(i)}return new Ht(t)},e.prototype.isEqual=function(t){return t instanceof e&&q(t.elements,this.elements)},e}(),Bn=function(){function e(e){this.elements=e}return e.prototype.applyToLocalView=function(e,t){return this.apply(e)},e.prototype.applyToRemoteDocument=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=ue(e),n=0,r=this.elements;n<r.length;n++){var i=r[n];!function(e){t=t.filter(function(t){return!t.isEqual(e)})}(i)}return new Ht(t)},e.prototype.isEqual=function(t){return t instanceof e&&q(t.elements,this.elements)},e}(),qn=function(){var e={};return e[tn.ASCENDING.name]="ASCENDING",e[tn.DESCENDING.name]="DESCENDING",e}(),Vn=function(){var e={};return e[$t.LESS_THAN.name]="LESS_THAN",e[$t.LESS_THAN_OR_EQUAL.name]="LESS_THAN_OR_EQUAL",e[$t.GREATER_THAN.name]="GREATER_THAN",e[$t.GREATER_THAN_OR_EQUAL.name]="GREATER_THAN_OR_EQUAL",e[$t.EQUAL.name]="EQUAL",e[$t.ARRAY_CONTAINS.name]="ARRAY_CONTAINS",e}(),zn=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/),Wn=function(){function e(e,t){this.databaseId=e,this.options=t}return e.prototype.emptyByteString=function(){return this.options.useProto3Json?"":new Uint8Array(0)},e.prototype.unsafeCastProtoByteString=function(e){return e},e.prototype.fromRpcStatus=function(e){var t=void 0===e.code?st.UNKNOWN:Z(e.code);return new ut(t,e.message||"")},e.prototype.toInt32Value=function(e){return Q(e)?void 0:{value:e}},e.prototype.fromInt32Value=function(e){var t;return t="object"===typeof e?e.value:e,Q(t)?null:t},e.prototype.toTimestamp=function(e){return{seconds:e.seconds,nanos:e.nanoseconds}},e.prototype.fromTimestamp=function(e){if("string"===typeof e)return this.fromIso8601String(e);l(!!e,"Cannot deserialize null or undefined timestamp.");var t=ce(e.seconds||"0"),n=e.nanos||0;return new ht(t,n)},e.prototype.fromIso8601String=function(e){var t=0,n=zn.exec(e);if(l(!!n,"invalid timestamp: "+e),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e),o=Math.floor(i.getTime()/1e3);return new ht(o,t)},e.prototype.toBytes=function(e){return this.options.useProto3Json?e.toBase64():this.unsafeCastProtoByteString(e.toUint8Array())},e.prototype.fromBlob=function(e){return"string"===typeof e?(l(this.options.useProto3Json,"Expected bytes to be passed in as Uint8Array, but got a string instead."),ct.fromBase64String(e)):(l(!this.options.useProto3Json,"Expected bytes to be passed in as string, but got something else instead."),ct.fromUint8Array(e))},e.prototype.toVersion=function(e){return this.toTimestamp(e.toTimestamp())},e.prototype.fromVersion=function(e){return l(!!e,"Trying to deserialize version that isn't set"),sn.fromTimestamp(this.fromTimestamp(e))},e.prototype.toResourceName=function(e,t){return this.fullyQualifiedPrefixPath(e).child("documents").child(t).canonicalString()},e.prototype.fromResourceName=function(e){var t=gt.fromString(e);return l(this.isValidResourceName(t),"Tried to deserialize invalid key "+t.toString()),t},e.prototype.toName=function(e){return this.toResourceName(this.databaseId,e.path)},e.prototype.fromName=function(e){var t=this.fromResourceName(e);return l(t.get(1)===this.databaseId.projectId,"Tried to deserialize key from different project: "+t.get(1)+" vs "+this.databaseId.projectId),l(!t.get(3)&&!this.databaseId.database||t.get(3)===this.databaseId.database,"Tried to deserialize key from different database: "+t.get(3)+" vs "+this.databaseId.database),new _t(this.extractLocalPathFromResourceName(t))},e.prototype.toQueryPath=function(e){return 0===e.length?this.encodedDatabaseId:this.toResourceName(this.databaseId,e)},e.prototype.fromQueryPath=function(e){var t=this.fromResourceName(e);return 4===t.length?gt.EMPTY_PATH:this.extractLocalPathFromResourceName(t)},Object.defineProperty(e.prototype,"encodedDatabaseId",{get:function(){return new gt(["projects",this.databaseId.projectId,"databases",this.databaseId.database]).canonicalString()},enumerable:!0,configurable:!0}),e.prototype.fullyQualifiedPrefixPath=function(e){return new gt(["projects",e.projectId,"databases",e.database])},e.prototype.extractLocalPathFromResourceName=function(e){return l(e.length>4&&"documents"===e.get(4),"tried to deserialize invalid key "+e.toString()),e.popFirst(5)},e.prototype.isValidResourceName=function(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)},e.prototype.toValue=function(e){if(e instanceof Dt)return{nullValue:"NULL_VALUE"};if(e instanceof Rt)return{booleanValue:e.value()};if(e instanceof Lt)return{integerValue:""+e.value()};if(e instanceof jt){var t=e.value();if(this.options.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:e.value()}}return e instanceof Ft?{stringValue:e.value()}:e instanceof Wt?{mapValue:this.toMapValue(e)}:e instanceof Ht?{arrayValue:this.toArrayValue(e)}:e instanceof Ut?{timestampValue:this.toTimestamp(e.internalValue)}:e instanceof zt?{geoPointValue:{latitude:e.value().latitude,longitude:e.value().longitude}}:e instanceof qt?{bytesValue:this.toBytes(e.value())}:e instanceof Vt?{referenceValue:this.toResourceName(e.databaseId,e.key.path)}:u("Unknown FieldValue "+JSON.stringify(e))},e.prototype.fromValue=function(e){var t=this,n=e.value_type;if(fe(e,n,"nullValue"))return Dt.INSTANCE;if(fe(e,n,"booleanValue"))return Rt.of(e.booleanValue);if(fe(e,n,"integerValue"))return new Lt(ce(e.integerValue));if(fe(e,n,"doubleValue")){if(this.options.useProto3Json){if("NaN"===e.doubleValue)return jt.NAN;if("Infinity"===e.doubleValue)return jt.POSITIVE_INFINITY;if("-Infinity"===e.doubleValue)return jt.NEGATIVE_INFINITY}return new jt(e.doubleValue)}if(fe(e,n,"stringValue"))return new Ft(e.stringValue);if(fe(e,n,"mapValue"))return this.fromFields(e.mapValue.fields||{});if(fe(e,n,"arrayValue")){le(e.arrayValue,"arrayValue");var r=e.arrayValue.values||[];return new Ht(r.map(function(e){return t.fromValue(e)}))}if(fe(e,n,"timestampValue"))return le(e.timestampValue,"timestampValue"),new Ut(this.fromTimestamp(e.timestampValue));if(fe(e,n,"geoPointValue")){le(e.geoPointValue,"geoPointValue");var i=e.geoPointValue.latitude||0,o=e.geoPointValue.longitude||0;return new zt(new dt(i,o))}if(fe(e,n,"bytesValue")){le(e.bytesValue,"bytesValue");var a=this.fromBlob(e.bytesValue);return new qt(a)}if(fe(e,n,"referenceValue")){le(e.referenceValue,"referenceValue");var s=this.fromResourceName(e.referenceValue),l=new vt(s.get(1),s.get(3)),c=new _t(this.extractLocalPathFromResourceName(s));return new Vt(l,c)}return u("Unknown Value proto "+JSON.stringify(e))},e.prototype.toMutationDocument=function(e,t){return{name:this.toName(e),fields:this.toFields(t)}},e.prototype.toDocument=function(e){return l(!e.hasLocalMutations,"Can't serialize documents with mutations."),{name:this.toName(e.key),fields:this.toFields(e.data),updateTime:this.toTimestamp(e.version.toTimestamp())}},e.prototype.fromDocument=function(e){return new Et(this.fromName(e.name),this.fromVersion(e.updateTime),this.fromFields(e.fields||{}),{hasLocalMutations:!1})},e.prototype.toFields=function(e){var t=this,n={};return e.forEach(function(e,r){n[e]=t.toValue(r)}),n},e.prototype.fromFields=function(e){var t=this,n=e,r=Wt.EMPTY;return m(n,function(e,n){r=r.set(new wt([e]),t.fromValue(n))}),r},e.prototype.toMapValue=function(e){return{fields:this.toFields(e)}},e.prototype.toArrayValue=function(e){var t=this,n=[];return e.forEach(function(e){n.push(t.toValue(e))}),{values:n}},e.prototype.fromFound=function(e){l(!!e.found,"Tried to deserialize a found document from a missing document."),le(e.found.name,"doc.found.name"),le(e.found.updateTime,"doc.found.updateTime");var t=this.fromName(e.found.name),n=this.fromVersion(e.found.updateTime),r=this.fromFields(e.found.fields||{});return new Et(t,n,r,{hasLocalMutations:!1})},e.prototype.fromMissing=function(e){l(!!e.missing,"Tried to deserialize a missing document from a found document."),l(!!e.readTime,"Tried to deserialize a missing document without a read time.");var t=this.fromName(e.missing),n=this.fromVersion(e.readTime);return new Tt(t,n)},e.prototype.fromMaybeDocument=function(e){var t=e.result;return fe(e,t,"found")?this.fromFound(e):fe(e,t,"missing")?this.fromMissing(e):u("invalid batch get response: "+JSON.stringify(e))},e.prototype.toWatchTargetChangeState=function(e){switch(e){case Pn.Added:return"ADD";case Pn.Current:return"CURRENT";case Pn.NoChange:return"NO_CHANGE";case Pn.Removed:return"REMOVE";case Pn.Reset:return"RESET";default:return u("Unknown WatchTargetChangeState: "+e)}},e.prototype.toTestWatchChange=function(e){if(e instanceof Rn)return{filter:{count:e.existenceFilter.count,targetId:e.targetId}};if(e instanceof Dn){if(e.newDoc instanceof Et){var t=e.newDoc;return{documentChange:{document:{name:this.toName(t.key),fields:this.toFields(t.data),updateTime:this.toVersion(t.version)},targetIds:e.updatedTargetIds,removedTargetIds:e.removedTargetIds}}}if(e.newDoc instanceof Tt){var t=e.newDoc;return{documentDelete:{document:this.toName(t.key),readTime:this.toVersion(t.version),removedTargetIds:e.removedTargetIds}}}if(null===e.newDoc)return{documentRemove:{document:this.toName(e.key),removedTargetIds:e.removedTargetIds}}}if(e instanceof Mn){var n=void 0;return e.cause&&(n={code:ee(e.cause.code),message:e.cause.message}),{targetChange:{targetChangeType:this.toWatchTargetChangeState(e.state),targetIds:e.targetIds,resumeToken:this.unsafeCastProtoByteString(e.resumeToken),cause:n}}}return u("Unrecognized watch change: "+JSON.stringify(e))},e.prototype.fromWatchChange=function(e){var t,n=e.response_type;if(fe(e,n,"targetChange")){le(e.targetChange,"targetChange");var r=this.fromWatchTargetChangeState(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=e.targetChange.resumeToken||this.emptyByteString(),a=e.targetChange.cause,s=a&&this.fromRpcStatus(a);t=new Mn(r,i,o,s||null)}else if(fe(e,n,"documentChange")){le(e.documentChange,"documentChange"),le(e.documentChange.document,"documentChange.name"),le(e.documentChange.document.name,"documentChange.document.name"),le(e.documentChange.document.updateTime,"documentChange.document.updateTime");var l=e.documentChange,c=this.fromName(l.document.name),f=this.fromVersion(l.document.updateTime),d=this.fromFields(l.document.fields||{}),h=new Et(c,f,d,{hasLocalMutations:!1}),p=l.targetIds||[],m=l.removedTargetIds||[];t=new Dn(p,m,h.key,h)}else if(fe(e,n,"documentDelete")){le(e.documentDelete,"documentDelete"),le(e.documentDelete.document,"documentDelete.document");var v=e.documentDelete,c=this.fromName(v.document),f=v.readTime?this.fromVersion(v.readTime):sn.forDeletedDoc(),h=new Tt(c,f),m=v.removedTargetIds||[];t=new Dn([],m,h.key,h)}else if(fe(e,n,"documentRemove")){le(e.documentRemove,"documentRemove"),le(e.documentRemove.document,"documentRemove");var y=e.documentRemove,c=this.fromName(y.document),m=y.removedTargetIds||[];t=new Dn([],m,c,null)}else{if(!fe(e,n,"filter"))return u("Unknown change type "+JSON.stringify(e));le(e.filter,"filter"),le(e.filter.targetId,"filter.targetId");var g=e.filter,b=g.count||0,w=new wn(b),_=g.targetId;t=new Rn(_,w)}return t},e.prototype.fromWatchTargetChangeState=function(e){return"NO_CHANGE"===e?Pn.NoChange:"ADD"===e?Pn.Added:"REMOVE"===e?Pn.Removed:"CURRENT"===e?Pn.Current:"RESET"===e?Pn.Reset:u("Got unexpected TargetChange.state: "+e)},e.prototype.versionFromListenResponse=function(e){if(!fe(e,e.response_type,"targetChange"))return sn.MIN;var t=e.targetChange;return t.targetIds&&t.targetIds.length?sn.MIN:t.readTime?this.fromVersion(t.readTime):sn.MIN},e.prototype.toMutation=function(e){var t,n=this;if(e instanceof vn)t={update:this.toMutationDocument(e.key,e.value)};else if(e instanceof bn)t={delete:this.toName(e.key)};else if(e instanceof yn)t={update:this.toMutationDocument(e.key,e.data),updateMask:this.toDocumentMask(e.fieldMask)};else{if(!(e instanceof gn))return u("Unknown mutation type "+e.type);t={transform:{document:this.toName(e.key),fieldTransforms:e.fieldTransforms.map(function(e){return n.toFieldTransform(e)})}}}return e.precondition.isNone||(t.currentDocument=this.toPrecondition(e.precondition)),t},e.prototype.fromMutation=function(e){var t=this,n=e.currentDocument?this.fromPrecondition(e.currentDocument):pn.NONE;if(e.update){le(e.update.name,"name");var r=this.fromName(e.update.name),i=this.fromFields(e.update.fields||{});if(e.updateMask){var o=this.fromDocumentMask(e.updateMask);return new yn(r,i,o,n)}return new vn(r,i,n)}if(e.delete){var r=this.fromName(e.delete);return new bn(r,n)}if(e.transform){var r=this.fromName(e.transform.document),a=e.transform.fieldTransforms.map(function(e){return t.fromFieldTransform(e)});return l(!0===n.exists,'Transforms only support precondition "exists == true"'),new gn(r,a)}return u("unknown mutation proto: "+JSON.stringify(e))},e.prototype.toPrecondition=function(e){return l(!e.isNone,"Can't serialize an empty precondition"),void 0!==e.updateTime?{updateTime:this.toVersion(e.updateTime)}:void 0!==e.exists?{exists:e.exists}:u("Unknown precondition")},e.prototype.fromPrecondition=function(e){return void 0!==e.updateTime?pn.updateTime(this.fromVersion(e.updateTime)):void 0!==e.exists?pn.exists(e.exists):pn.NONE},e.prototype.fromWriteResult=function(e){var t=this,n=e.updateTime?this.fromVersion(e.updateTime):null,r=null;return e.transformResults&&e.transformResults.length>0&&(r=e.transformResults.map(function(e){return t.fromValue(e)})),new dn(n,r)},e.prototype.fromWriteResults=function(e){var t=this;return(e||[]).map(function(e){return t.fromWriteResult(e)})},e.prototype.toFieldTransform=function(e){var t=this,n=e.transform;return n instanceof Fn?{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"}:n instanceof Un?{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements.map(function(e){return t.toValue(e)})}}:n instanceof Bn?{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements.map(function(e){return t.toValue(e)})}}:void u("Unknown transform: "+e.transform)},e.prototype.fromFieldTransform=function(e){var t=this,n=e.transform_type,r=null;if(fe(e,n,"setToServerValue"))l("REQUEST_TIME"===e.setToServerValue,"Unknown server value transform proto: "+JSON.stringify(e)),r=Fn.instance;else if(fe(e,n,"appendMissingElements")){var i=e.appendMissingElements.values||[];r=new Un(i.map(function(e){return t.fromValue(e)}))}else if(fe(e,n,"removeAllFromArray")){var i=e.removeAllFromArray.values||[];r=new Bn(i.map(function(e){return t.fromValue(e)}))}else u("Unknown transform proto: "+JSON.stringify(e));var o=wt.fromServerFormat(e.fieldPath);return new fn(o,r)},e.prototype.toDocumentsTarget=function(e){return{documents:[this.toQueryPath(e.path)]}},e.prototype.fromDocumentsTarget=function(e){var t=e.documents.length;l(1===t,"DocumentsTarget contained other than 1 document: "+t);var n=e.documents[0];return Xt.atPath(this.fromQueryPath(n))},e.prototype.toQueryTarget=function(e){var t={structuredQuery:{}};if(e.path.isEmpty())t.parent=this.toQueryPath(gt.EMPTY_PATH);else{var n=e.path;l(n.length%2!==0,"Document queries with filters are not supported."),t.parent=this.toQueryPath(n.popLast()),t.structuredQuery.from=[{collectionId:n.lastSegment()}]}var r=this.toFilter(e.filters);r&&(t.structuredQuery.where=r);var i=this.toOrder(e.orderBy);i&&(t.structuredQuery.orderBy=i);var o=this.toInt32Value(e.limit);return void 0!==o&&(t.structuredQuery.limit=o),e.startAt&&(t.structuredQuery.startAt=this.toCursor(e.startAt)),e.endAt&&(t.structuredQuery.endAt=this.toCursor(e.endAt)),t},e.prototype.fromQueryTarget=function(e){var t=this.fromQueryPath(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0;if(r>0){l(1===r,"StructuredQuery.from with more than one collection is not supported.");var i=n.from[0];t=t.child(i.collectionId)}var o=[];n.where&&(o=this.fromFilter(n.where));var a=[];n.orderBy&&(a=this.fromOrder(n.orderBy));var s=null;n.limit&&(s=this.fromInt32Value(n.limit));var u=null;n.startAt&&(u=this.fromCursor(n.startAt));var c=null;return n.endAt&&(c=this.fromCursor(n.endAt)),new Xt(t,a,o,s,u,c)},e.prototype.toListenRequestLabels=function(e){var t=this.toLabel(e.purpose);return null==t?null:{"goog-listen-tags":t}},e.prototype.toLabel=function(e){switch(e){case Pt.Listen:return null;case Pt.ExistenceFilterMismatch:return"existence-filter-mismatch";case Pt.LimboResolution:return"limbo-document";default:return u("Unrecognized query purpose: "+e)}},e.prototype.toTarget=function(e){var t,n=e.query;return t=n.isDocumentQuery()?{documents:this.toDocumentsTarget(n)}:{query:this.toQueryTarget(n)},t.targetId=e.targetId,e.resumeToken.length>0&&(t.resumeToken=this.unsafeCastProtoByteString(e.resumeToken)),t},e.prototype.toFilter=function(e){var t=this;if(0!==e.length){var n=e.map(function(e){return e instanceof Jt?t.toRelationFilter(e):t.toUnaryFilter(e)});return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},e.prototype.fromFilter=function(e){var t=this;return e?void 0!==e.unaryFilter?[this.fromUnaryFilter(e)]:void 0!==e.fieldFilter?[this.fromRelationFilter(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map(function(e){return t.fromFilter(e)}).reduce(function(e,t){return e.concat(t)}):u("Unknown filter: "+JSON.stringify(e)):[]},e.prototype.toOrder=function(e){var t=this;if(0!==e.length)return e.map(function(e){return t.toPropertyOrder(e)})},e.prototype.fromOrder=function(e){var t=this;return e.map(function(e){return t.fromPropertyOrder(e)})},e.prototype.toCursor=function(e){var t=this;return{before:e.before,values:e.position.map(function(e){return t.toValue(e)})}},e.prototype.fromCursor=function(e){var t=this,n=!!e.before,r=e.values.map(function(e){return t.fromValue(e)});return new nn(r,n)},e.prototype.toDirection=function(e){return qn[e.name]},e.prototype.fromDirection=function(e){switch(e){case"ASCENDING":return tn.ASCENDING;case"DESCENDING":return tn.DESCENDING;default:return}},e.prototype.toOperatorName=function(e){return Vn[e.name]},e.prototype.fromOperatorName=function(e){switch(e){case"EQUAL":return $t.EQUAL;case"GREATER_THAN":return $t.GREATER_THAN;case"GREATER_THAN_OR_EQUAL":return $t.GREATER_THAN_OR_EQUAL;case"LESS_THAN":return $t.LESS_THAN;case"LESS_THAN_OR_EQUAL":return $t.LESS_THAN_OR_EQUAL;case"ARRAY_CONTAINS":return $t.ARRAY_CONTAINS;case"OPERATOR_UNSPECIFIED":return u("Unspecified relation");default:return u("Unknown relation")}},e.prototype.toFieldPathReference=function(e){return{fieldPath:e.canonicalString()}},e.prototype.fromFieldPathReference=function(e){return wt.fromServerFormat(e.fieldPath)},e.prototype.toPropertyOrder=function(e){return{field:this.toFieldPathReference(e.field),direction:this.toDirection(e.dir)}},e.prototype.fromPropertyOrder=function(e){return new rn(this.fromFieldPathReference(e.field),this.fromDirection(e.direction))},e.prototype.toRelationFilter=function(e){return e instanceof Jt?{fieldFilter:{field:this.toFieldPathReference(e.field),op:this.toOperatorName(e.op),value:this.toValue(e.value)}}:u("Unrecognized filter: "+JSON.stringify(e))},e.prototype.fromRelationFilter=function(e){return new Jt(this.fromFieldPathReference(e.fieldFilter.field),this.fromOperatorName(e.fieldFilter.op),this.fromValue(e.fieldFilter.value))},e.prototype.toUnaryFilter=function(e){return e instanceof en?{unaryFilter:{field:this.toFieldPathReference(e.field),op:"IS_NAN"}}:e instanceof Zt?{unaryFilter:{field:this.toFieldPathReference(e.field),op:"IS_NULL"}}:u("Unrecognized filter: "+JSON.stringify(e))},e.prototype.fromUnaryFilter=function(e){switch(e.unaryFilter.op){case"IS_NAN":var t=this.fromFieldPathReference(e.unaryFilter.field);return new en(t);case"IS_NULL":var n=this.fromFieldPathReference(e.unaryFilter.field);return new Zt(n);case"OPERATOR_UNSPECIFIED":return u("Unspecified filter");default:return u("Unknown filter")}},e.prototype.toDocumentMask=function(e){return{fieldPaths:e.fields.map(function(e){return e.canonicalString()})}},e.prototype.fromDocumentMask=function(e){var t=e.fieldPaths||[],n=t.map(function(e){return wt.fromServerFormat(e)});return new cn(n)},e}(),Hn=function(){return"object"===typeof navigator&&"ReactNative"===navigator.product},Kn="FirebaseError",Gn=Error.captureStackTrace,Qn=function(){function e(e,t){if(this.code=e,this.message=t,Gn)Gn(this,Yn.prototype.create);else try{throw Error.apply(this,arguments)}catch(e){this.name=Kn,Object.defineProperty(this,"stack",{get:function(){return e.stack}})}}return e}();Qn.prototype=Object.create(Error.prototype),Qn.prototype.constructor=Qn,Qn.prototype.name=Kn;var Yn=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n,this.pattern=/\{\$([^}]+)}/g}return e.prototype.create=function(e,t){void 0===t&&(t={});var n,r=this.errors[e],i=this.service+"/"+e;n=void 0===r?"Error":r.replace(this.pattern,function(e,n){var r=t[n];return void 0!==r?r.toString():"<"+n+"?>"}),n=this.serviceName+": "+n+" ("+i+").";var o=new Qn(i,n);for(var a in t)t.hasOwnProperty(a)&&"_"!==a.slice(-1)&&(o[a]=t[a]);return o},e}(),Xn=function(){function e(){this.blockSize=-1}return e}(),$n=(function(e){function t(){var t=e.call(this)||this;t.chain_=[],t.buf_=[],t.W_=[],t.pad_=[],t.inbuf_=0,t.total_=0,t.blockSize=64,t.pad_[0]=128;for(var n=1;n<t.blockSize;++n)t.pad_[n]=0;return t.reset(),t}nt.__extends(t,e),t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"===typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(var r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(var r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}for(var o,a,s=this.chain_[0],u=this.chain_[1],l=this.chain_[2],c=this.chain_[3],f=this.chain_[4],r=0;r<80;r++){r<40?r<20?(o=c^u&(l^c),a=1518500249):(o=u^l^c,a=1859775393):r<60?(o=u&l|c&(u|l),a=2400959708):(o=u^l^c,a=3395469782);var i=(s<<5|s>>>27)+o+f+a+n[r]&4294967295;f=c,c=l,l=4294967295&(u<<30|u>>>2),u=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},t.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<t;){if(0==o)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"===typeof e){for(;r<t;)if(i[o]=e.charCodeAt(r),++o,++r,o==this.blockSize){this.compress_(i),o=0;break}}else for(;r<t;)if(i[o]=e[r],++o,++r,o==this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},t.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);for(var r=0,n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e}}(Xn),function(){function e(e){this.sendFn=e.sendFn,this.closeFn=e.closeFn}return e.prototype.onOpen=function(e){l(!this.wrappedOnOpen,"Called onOpen on stream twice!"),this.wrappedOnOpen=e},e.prototype.onClose=function(e){l(!this.wrappedOnClose,"Called onClose on stream twice!"),this.wrappedOnClose=e},e.prototype.onMessage=function(e){l(!this.wrappedOnMessage,"Called onMessage on stream twice!"),this.wrappedOnMessage=e},e.prototype.close=function(){this.closeFn()},e.prototype.send=function(e){this.sendFn(e)},e.prototype.callOnOpen=function(){l(void 0!==this.wrappedOnOpen,"Cannot call onOpen because no callback was set"),this.wrappedOnOpen()},e.prototype.callOnClose=function(e){l(void 0!==this.wrappedOnClose,"Cannot call onClose because no callback was set"),this.wrappedOnClose(e)},e.prototype.callOnMessage=function(e){l(void 0!==this.wrappedOnMessage,"Cannot call onMessage because no callback was set"),this.wrappedOnMessage(e)},e}()),Jn="Connection",Zn={BatchGetDocuments:"batchGet",Commit:"commit"},er="gl-js/ fire/"+it,tr=function(){function e(e){this.databaseId=e.databaseId,this.pool=new rt.XhrIoPool;var t=e.ssl?"https":"http";this.baseUrl=t+"://"+e.host}return e.prototype.modifyHeadersForRequest=function(e,t){if(t)for(var n in t.authHeaders)t.authHeaders.hasOwnProperty(n)&&(e[n]=t.authHeaders[n]);e["X-Goog-Api-Client"]=er},e.prototype.invokeRPC=function(e,t,n){var r=this,i=this.makeUrl(e);return new Promise(function(a,s){r.pool.getObject(function(l){l.listenOnce(rt.EventType.COMPLETE,function(){try{switch(l.getLastErrorCode()){case rt.ErrorCode.NO_ERROR:var t=l.getResponseJson();o(Jn,"XHR received:",JSON.stringify(t)),a(t);break;case rt.ErrorCode.TIMEOUT:o(Jn,'RPC "'+e+'" timed out'),s(new ut(st.DEADLINE_EXCEEDED,"Request time out"));break;case rt.ErrorCode.HTTP_ERROR:var n=l.getStatus();o(Jn,'RPC "'+e+'" failed with status:',n,"response text:",l.getResponseText()),n>0?s(new ut(te(n),"Server responded with status "+l.getStatusText())):(o(Jn,'RPC "'+e+'" failed'),s(new ut(st.UNAVAILABLE,"Connection failed.")));break;default:u('RPC "'+e+'" failed with unanticipated webchannel error '+l.getLastErrorCode()+": "+l.getLastError()+", giving up.")}}finally{o(Jn,'RPC "'+e+'" completed.'),r.pool.releaseObject(l)}});var c=JSON.stringify(t);o(Jn,"XHR sending: ",i+" "+c);var f={"Content-Type":"text/plain"};r.modifyHeadersForRequest(f,n),l.send(i,"POST",c,f,15)})})},e.prototype.invokeStreamingRPC=function(e,t,n){return this.invokeRPC(e,t,n)},e.prototype.openStream=function(e,t){var n=[this.baseUrl,"/","google.firestore.v1beta1.Firestore","/",e,"/channel"],r=rt.createWebChannelTransport(),i={backgroundChannelTest:!0,httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0};this.modifyHeadersForRequest(i.initMessageHeaders,t),Hn()||(i.httpHeadersOverwriteParam="$httpHeaders");var a=n.join("");o(Jn,"Creating WebChannel: "+a+" "+i);var s=r.createWebChannel(a,i),u=!1,c=!1,f=new $n({sendFn:function(e){c?o(Jn,"Not sending because WebChannel is closed:",e):(u||(o(Jn,"Opening WebChannel transport."),s.open(),u=!0),o(Jn,"WebChannel sending:",e),s.send(e))},closeFn:function(){return s.close()}}),d=function(e,t){s.listen(e,function(e){try{t(e)}catch(e){setTimeout(function(){throw e},0)}})};return d(rt.WebChannel.EventType.OPEN,function(){c||o(Jn,"WebChannel transport opened.")}),d(rt.WebChannel.EventType.CLOSE,function(){c||(c=!0,o(Jn,"WebChannel transport closed"),f.callOnClose())}),d(rt.WebChannel.EventType.ERROR,function(e){c||(c=!0,o(Jn,"WebChannel transport errored:",e),f.callOnClose(new ut(st.UNAVAILABLE,"The operation could not be completed")))}),d(rt.WebChannel.EventType.MESSAGE,function(e){if(!c){var t=e.data[0];l(!!t,"Got a webchannel message without data.");var n=t.error||t[0]&&t[0].error;if(n){o(Jn,"WebChannel received error:",n);var r=n.status,i=J(r),a=n.message;void 0===i&&(i=st.INTERNAL,a="Unknown error status: "+r+" with message "+n.message),c=!0,f.callOnClose(new ut(i,a)),s.close()}else o(Jn,"WebChannel received:",t),f.callOnMessage(t)}}),setTimeout(function(){f.callOnOpen()},0),f},e.prototype.makeUrl=function(e){var t=Zn[e];l(void 0!==t,"Unknown REST mapping for: "+e);var n=[this.baseUrl,"/","v1beta1"];return n.push("/projects/"),n.push(this.databaseId.projectId),n.push("/databases/"),n.push(this.databaseId.database),n.push("/documents"),n.push(":"),n.push(t),n.join("")},e}(),nr=function(){function e(){this.emptyByteString="",this.base64Available="undefined"!==typeof atob}return e.prototype.loadConnection=function(e){return Promise.resolve(new tr(e))},e.prototype.newSerializer=function(e){return new Wn(e,{useProto3Json:!0})},e.prototype.formatJSON=function(e){return JSON.stringify(e)},e.prototype.atob=function(e){return atob(e)},e.prototype.btoa=function(e){return btoa(e)},e}();at.setPlatform(new nr);var rr,ir=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];_("FieldPath",e,"fieldNames",1);for(var n=0;n<e.length;++n)if(E("FieldPath","string",n,e[n]),0===e[n].length)throw new ut(st.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new wt(e)}return e.documentId=function(){return e._DOCUMENT_ID},e.prototype.isEqual=function(t){if(!(t instanceof e))throw L("isEqual","FieldPath",1,t);return this._internalPath.isEqual(t._internalPath)},e._DOCUMENT_ID=new e(wt.keyField().canonicalString()),e}(),or=new RegExp("[~\\*/\\[\\]]");!function(e){e[e.Unknown=0]="Unknown",e[e.Online=1]="Online",e[e.Offline=2]="Offline"}(rr||(rr={}));var ar,sr=function(){function e(e){this.comparator=e?function(t,n){return e(t,n)||_t.comparator(t.key,n.key)}:function(e,t){return _t.comparator(e.key,t.key)},this.keyedMap=re(),this.sortedSet=new xt(this.comparator)}return e.emptySet=function(t){return new e(t.comparator)},e.prototype.has=function(e){return null!=this.keyedMap.get(e)},e.prototype.get=function(e){return this.keyedMap.get(e)},e.prototype.first=function(){return this.sortedSet.minKey()},e.prototype.last=function(){return this.sortedSet.maxKey()},e.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},e.prototype.indexOf=function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.sortedSet.inorderTraversal(function(t,n){return e(t),!1})},e.prototype.add=function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.sortedSet.getIterator(),r=t.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach(function(t){e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n "+e.join(" \n")+"\n)"},e.prototype.copy=function(t,n){var r=new e;return r.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r},e}(),ur=function(){function e(e){this.mapKeyFn=e,this.inner={}}return e.prototype.get=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];if(a.isEqual(e))return s}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return void(this.inner[n]=e,t);for(var i=0;i<r.length;i++)if(r[i][0].isEqual(e))return void(r[i]=[e,t]);r.push([e,t])},e.prototype.delete=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(n[r][0].isEqual(e))return 1===n.length?delete this.inner[t]:n.splice(r,1),!0;return!1},e.prototype.forEach=function(e){m(this.inner,function(t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];e(a,s)}})},e.prototype.isEmpty=function(){return v(this.inner)},e}(),lr=function(){function e(){this.listeners=[]}return e}(),cr=function(){function e(e){this.syncEngine=e,this.queries=new ur(function(e){return e.canonicalId()}),this.onlineState=rr.Unknown,this.syncEngine.subscribe(this.onChange.bind(this),this.onError.bind(this))}return e.prototype.listen=function(e){var t=e.query,n=!1,r=this.queries.get(t);return r||(n=!0,r=new lr,this.queries.set(t,r)),r.listeners.push(e),e.applyOnlineStateChange(this.onlineState),r.viewSnap&&e.onViewSnapshot(r.viewSnap),n?this.syncEngine.listen(t).then(function(e){return r.targetId=e,e}):Promise.resolve(r.targetId)},e.prototype.unlisten=function(e){return nt.__awaiter(this,void 0,void 0,function(){var t,n,r,i;return nt.__generator(this,function(o){return t=e.query,n=!1,r=this.queries.get(t),r&&(i=r.listeners.indexOf(e))>=0&&(r.listeners.splice(i,1),n=0===r.listeners.length),n?(this.queries.delete(t),[2,this.syncEngine.unlisten(t)]):[2]})})},e.prototype.onChange=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r.query,o=this.queries.get(i);if(o){for(var a=0,s=o.listeners;a<s.length;a++){s[a].onViewSnapshot(r)}o.viewSnap=r}}},e.prototype.onError=function(e,t){var n=this.queries.get(e);if(n)for(var r=0,i=n.listeners;r<i.length;r++){var o=i[r];o.onError(t)}this.queries.delete(e)},e.prototype.applyOnlineStateChange=function(e){this.onlineState=e,this.queries.forEach(function(t,n){for(var r=0,i=n.listeners;r<i.length;r++){i[r].applyOnlineStateChange(e)}})},e}(),fr=function(){function e(e,t,n){this.query=e,this.queryObserver=t,this.raisedInitialEvent=!1,this.onlineState=rr.Unknown,this.options=n||{}}return e.prototype.onViewSnapshot=function(e){if(l(e.docChanges.length>0||e.syncStateChanged,"We got a new snapshot with no changes?"),!this.options.includeMetadataChanges){for(var t=[],n=0,r=e.docChanges;n<r.length;n++){var i=r[n];i.type!==_n.Metadata&&t.push(i)}e=new An(e.query,e.docs,e.oldDocs,t,e.fromCache,e.hasPendingWrites,e.syncStateChanged,!0)}this.raisedInitialEvent?this.shouldRaiseEvent(e)&&this.queryObserver.next(e):this.shouldRaiseInitialEvent(e,this.onlineState)&&this.raiseInitialEvent(e),this.snap=e},e.prototype.onError=function(e){this.queryObserver.error(e)},e.prototype.applyOnlineStateChange=function(e){this.onlineState=e,this.snap&&!this.raisedInitialEvent&&this.shouldRaiseInitialEvent(this.snap,e)&&this.raiseInitialEvent(this.snap)},e.prototype.shouldRaiseInitialEvent=function(e,t){if(l(!this.raisedInitialEvent,"Determining whether to raise first event but already had first event"),!e.fromCache)return!0;var n=t!==rr.Offline;return this.options.waitForSyncWhenOnline&&n?(l(e.fromCache,"Waiting for sync, but snapshot is not from cache"),!1):!e.docs.isEmpty()||t===rr.Offline},e.prototype.shouldRaiseEvent=function(e){if(e.docChanges.length>0)return!0;var t=this.snap&&this.snap.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges},e.prototype.raiseInitialEvent=function(t){l(!this.raisedInitialEvent,"Trying to raise initial events for second time"),t=new An(t.query,t.docs,sr.emptySet(t.docs),e.getInitialViewChanges(t),t.fromCache,t.hasPendingWrites,!0,!1),this.raisedInitialEvent=!0,this.queryObserver.next(t)},e.getInitialViewChanges=function(e){var t=[];return e.docs.forEach(function(e){t.push({type:_n.Added,doc:e})}),t},e}(),dr=function(){function e(e){var t=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(function(e){t.isDone=!0,t.result=e,t.nextCallback&&t.nextCallback(e)},function(e){t.isDone=!0,t.error=e,t.catchCallback&&t.catchCallback(e)})}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var r=this;return this.callbackAttached&&u("Called next() or catch() twice for PersistencePromise"),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e(function(e,i){r.nextCallback=function(n){r.wrapSuccess(t,n).next(e,i)},r.catchCallback=function(t){r.wrapFailure(n,t).next(e,i)}})},e.prototype.toPromise=function(){var e=this;return new Promise(function(t,n){e.next(t,n)})},e.prototype.wrapUserFunction=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}},e.prototype.wrapSuccess=function(t,n){return t?this.wrapUserFunction(function(){return t(n)}):e.resolve(n)},e.prototype.wrapFailure=function(t,n){return t?this.wrapUserFunction(function(){return t(n)}):e.reject(n)},e.resolve=function(t){return new e(function(e,n){e(t)})},e.reject=function(t){return new e(function(e,n){n(t)})},e.waitFor=function(t){var n=t.length;if(0===n)return e.resolve();var r=0;return new e(function(e,i){for(var o=0,a=t;o<a.length;o++){a[o].next(function(){++r===n&&e()},function(e){return i(e)})}})},e.map=function(t){for(var n=[],r=[],i=0;i<t.length;++i)!function(e){r[e]=t[e].next(function(t){n[e]=t})}(i);return e.waitFor(r).next(function(){return n})},e}(),hr=function(){function e(){this.isEager=!0,this.sources=[],this.potentialGarbage=oe()}return e.prototype.addGarbageSource=function(e){this.sources.push(e),e.setGarbageCollector(this)},e.prototype.removeGarbageSource=function(e){this.sources.splice(this.sources.indexOf(e),1),e.setGarbageCollector(null)},e.prototype.addPotentialGarbageKey=function(e){this.potentialGarbage=this.potentialGarbage.add(e)},e.prototype.collectGarbage=function(e){var t=this,n=[],r=oe();return this.potentialGarbage.forEach(function(i){var o=t.documentHasAnyReferences(e,i);n.push(o.next(function(e){return e||(r=r.add(i)),dr.resolve()}))}),this.potentialGarbage=oe(),dr.waitFor(n).next(function(){return r})},e.prototype.documentHasAnyReferences=function(e,t){var n=dr.resolve(!1);return this.sources.map(function(n){return function(){return n.containsKey(e,t)}}).reduce(function(e,t){return e.next(function(e){return e?dr.resolve(!0):t()})},n)},e}(),pr=function(){function e(e,t,n){this.query=e,this.addedKeys=t,this.removedKeys=n}return e.fromSnapshot=function(t){for(var n=oe(),r=oe(),i=0,o=t.docChanges;i<o.length;i++){var a=o[i];switch(a.type){case _n.Added:n=n.add(a.doc.key);break;case _n.Removed:r=r.add(a.doc.key)}}return new e(t.query,n,r)},e}(),mr=function(){function e(){this.refsByKey=new En(vr.compareByKey),this.refsByTarget=new En(vr.compareByTargetId),this.garbageCollector=null}return e.prototype.isEmpty=function(){return this.refsByKey.isEmpty()},e.prototype.addReference=function(e,t){var n=new vr(e,t);this.refsByKey=this.refsByKey.add(n),this.refsByTarget=this.refsByTarget.add(n)},e.prototype.addReferences=function(e,t){var n=this;e.forEach(function(e){return n.addReference(e,t)})},e.prototype.removeReference=function(e,t){this.removeRef(new vr(e,t))},e.prototype.removeReferences=function(e,t){var n=this;e.forEach(function(e){return n.removeReference(e,t)})},e.prototype.removeReferencesForId=function(e){var t=this,n=_t.EMPTY,r=new vr(n,e),i=new vr(n,e+1);this.refsByTarget.forEachInRange([r,i],function(e){t.removeRef(e)})},e.prototype.removeAllReferences=function(){var e=this;this.refsByKey.forEach(function(t){return e.removeRef(t)})},e.prototype.removeRef=function(e){this.refsByKey=this.refsByKey.delete(e),this.refsByTarget=this.refsByTarget.delete(e),null!==this.garbageCollector&&this.garbageCollector.addPotentialGarbageKey(e.key)},e.prototype.referencesForId=function(e){var t=_t.EMPTY,n=new vr(t,e),r=new vr(t,e+1),i=oe();return this.refsByTarget.forEachInRange([n,r],function(e){i=i.add(e.key)}),i},e.prototype.setGarbageCollector=function(e){this.garbageCollector=e},e.prototype.containsKey=function(e,t){var n=new vr(t,0),r=this.refsByKey.firstAfterOrEqual(n);return dr.resolve(null!==r&&t.isEqual(r.key))},e}(),vr=function(){function e(e,t){this.key=e,this.targetOrBatchId=t}return e.compareByKey=function(e,t){return _t.comparator(e.key,t.key)||U(e.targetOrBatchId,t.targetOrBatchId)},e.compareByTargetId=function(e,t){return U(e.targetOrBatchId,t.targetOrBatchId)||_t.comparator(e.key,t.key)},e}(),yr=1;!function(e){e[e.LocalStore=0]="LocalStore",e[e.SyncEngine=1]="SyncEngine"}(ar||(ar={}));var gr,br=function(){function e(e,t){void 0===t&&(t=0),this.generatorId=e;var n=t>>yr<<yr,r=t-n;this.previousId=r>=e?n|this.generatorId:(n|this.generatorId)-(1<<yr)}return e.prototype.next=function(){return this.previousId+=1<<yr,this.previousId},e.forLocalStore=function(t){return void 0===t&&(t=0),new e(ar.LocalStore,t)},e.forSyncEngine=function(){return new e(ar.SyncEngine)},e}(),wr=function(){function e(e){this.key=e}return e}(),_r=function(){function e(e){this.key=e}return e}(),Er=function(){function e(e,t){this.query=e,this._syncedDocuments=t,this.syncState=null,this.current=!1,this.limboDocuments=oe(),this.mutatedKeys=oe(),this.documentSet=new sr(e.docComparator.bind(e))}return Object.defineProperty(e.prototype,"syncedDocuments",{get:function(){return this._syncedDocuments},enumerable:!0,configurable:!0}),e.prototype.computeDocChanges=function(e,t){var n=this,r=t?t.changeSet:new In,i=t?t.documentSet:this.documentSet,o=t?t.mutatedKeys:this.mutatedKeys,a=i,s=!1,u=this.query.hasLimit()&&i.size===this.query.limit?i.last():null;if(e.inorderTraversal(function(e,t){var c=i.get(e),f=t instanceof Et?t:null;if(f&&(l(e.isEqual(f.key),"Mismatching keys found in document changes: "+e+" != "+f.key),f=n.query.matches(f)?f:null),f?(a=a.add(f),o=f.hasLocalMutations?o.add(e):o.delete(e)):(a=a.delete(e),o=o.delete(e)),c&&f){var d=c.data.isEqual(f.data);d&&c.hasLocalMutations===f.hasLocalMutations||(d?r.track({type:_n.Metadata,doc:f}):r.track({type:_n.Modified,doc:f}),u&&n.query.docComparator(f,u)>0&&(s=!0))}else!c&&f?r.track({type:_n.Added,doc:f}):c&&!f&&(r.track({type:_n.Removed,doc:c}),u&&(s=!0))}),this.query.hasLimit())for(;a.size>this.query.limit;){var c=a.last();a=a.delete(c.key),r.track({type:_n.Removed,doc:c})}return l(!s||!t,"View was refilled using docs that themselves needed refilling."),{documentSet:a,changeSet:r,needsRefill:s,mutatedKeys:o}},e.prototype.applyChanges=function(e,t){var n=this;l(!e.needsRefill,"Cannot apply changes that need a refill");var r=this.documentSet;this.documentSet=e.documentSet,this.mutatedKeys=e.mutatedKeys;var i=e.changeSet.getChanges();i.sort(function(e,t){return he(e.type,t.type)||n.query.docComparator(e.doc,t.doc)}),this.applyTargetChange(t);var o=this.updateLimboDocuments(),a=0===this.limboDocuments.size&&this.current,s=a?Nn.Synced:Nn.Local,u=s!==this.syncState;if(this.syncState=s,0!==i.length||u){return{snapshot:new An(this.query,e.documentSet,r,i,s===Nn.Local,!e.mutatedKeys.isEmpty(),u,!1),limboChanges:o}}return{limboChanges:o}},e.prototype.applyOnlineStateChange=function(e){return this.current&&e===rr.Offline?(this.current=!1,this.applyChanges({documentSet:this.documentSet,changeSet:new In,mutatedKeys:this.mutatedKeys,needsRefill:!1})):{limboChanges:[]}},e.prototype.shouldBeInLimbo=function(e){return!this._syncedDocuments.has(e)&&(!!this.documentSet.has(e)&&!this.documentSet.get(e).hasLocalMutations)},e.prototype.applyTargetChange=function(e){var t=this;e&&(e.addedDocuments.forEach(function(e){return t._syncedDocuments=t._syncedDocuments.add(e)}),e.modifiedDocuments.forEach(function(e){return l(t._syncedDocuments.has(e),"Modified document "+e+" not found in view.")}),e.removedDocuments.forEach(function(e){return t._syncedDocuments=t._syncedDocuments.delete(e)}),this.current=e.current)},e.prototype.updateLimboDocuments=function(){var e=this;if(!this.current)return[];var t=this.limboDocuments;this.limboDocuments=oe(),this.documentSet.forEach(function(t){e.shouldBeInLimbo(t.key)&&(e.limboDocuments=e.limboDocuments.add(t.key))});var n=[];return t.forEach(function(t){e.limboDocuments.has(t)||n.push(new _r(t))}),this.limboDocuments.forEach(function(e){t.has(e)||n.push(new wr(e))}),n},e}(),Tr=function(){function e(e,t,n,r){this.query=e,this.targetId=t,this.resumeToken=n,this.view=r}return e}(),xr=function(){function e(e,t,n){this.localStore=e,this.remoteStore=t,this.currentUser=n,this.viewHandler=null,this.errorHandler=null,this.queryViewsByQuery=new ur(function(e){return e.canonicalId()}),this.queryViewsByTarget={},this.limboTargetsByKey=new xt(_t.comparator),this.limboKeysByTarget={},this.limboDocumentRefs=new mr,this.limboCollector=new hr,this.mutationUserCallbacks={},this.targetIdGenerator=br.forSyncEngine()}return e.prototype.subscribe=function(e,t){l(null!==e&&null!==t,"View and error handlers cannot be null"),l(null===this.viewHandler&&null===this.errorHandler,"SyncEngine already has a subscriber."),this.viewHandler=e,this.errorHandler=t,this.limboCollector.addGarbageSource(this.limboDocumentRefs)},e.prototype.listen=function(e){var t=this;return this.assertSubscribed("listen()"),l(!this.queryViewsByQuery.has(e),"We already listen to the query: "+e),this.localStore.allocateQuery(e).then(function(n){return t.localStore.executeQuery(e).then(function(r){return t.localStore.remoteDocumentKeys(n.targetId).then(function(i){var o=new Er(e,i),a=o.computeDocChanges(r),s=o.applyChanges(a);l(0===s.limboChanges.length,"View returned limbo docs before target ack from the server."),l(!!s.snapshot,"applyChanges for new view should always return a snapshot");var u=new Tr(e,n.targetId,n.resumeToken,o);t.queryViewsByQuery.set(e,u),t.queryViewsByTarget[n.targetId]=u,t.viewHandler([s.snapshot]),t.remoteStore.listen(n)})}).then(function(){return n.targetId})})},e.prototype.unlisten=function(e){var t=this;this.assertSubscribed("unlisten()");var n=this.queryViewsByQuery.get(e);return l(!!n,"Trying to unlisten on query not found:"+e),this.localStore.releaseQuery(e).then(function(){return t.remoteStore.unlisten(n.targetId),t.removeAndCleanupQuery(n).then(function(){return t.localStore.collectGarbage()})})},e.prototype.write=function(e,t){var n=this;return this.assertSubscribed("write()"),this.localStore.localWrite(e).then(function(e){return n.addMutationCallback(e.batchId,t),n.emitNewSnapsAndNotifyLocalStore(e.changes)}).then(function(){return n.remoteStore.fillWritePipeline()})},e.prototype.wrapUpdateFunctionError=function(e){return e},e.prototype.runTransaction=function(e,t){var n=this;void 0===t&&(t=5),l(t>=0,"Got negative number of retries for transaction.");var r=this.remoteStore.createTransaction();return function(){try{var t=e(r);return!Q(t)&&t.catch&&t.then?t.catch(function(e){return Promise.reject(n.wrapUpdateFunctionError(e))}):Promise.reject(Error("Transaction callback must return a Promise"))}catch(e){return Promise.reject(n.wrapUpdateFunctionError(e))}}().then(function(i){return r.commit().then(function(){return i}).catch(function(r){return 0===t?Promise.reject(r):n.runTransaction(e,t-1)})})},e.prototype.applyRemoteEvent=function(e){var t=this;return this.assertSubscribed("applyRemoteEvent()"),this.localStore.applyRemoteEvent(e).then(function(n){return t.emitNewSnapsAndNotifyLocalStore(n,e)})},e.prototype.applyOnlineStateChange=function(e){var t=[];this.queryViewsByQuery.forEach(function(n,r){var i=r.view.applyOnlineStateChange(e);l(0===i.limboChanges.length,"OnlineState should not affect limbo documents."),i.snapshot&&t.push(i.snapshot)}),this.viewHandler(t)},e.prototype.rejectListen=function(e,t){var n=this;this.assertSubscribed("rejectListens()");var r=this.limboKeysByTarget[e];if(r){this.limboTargetsByKey=this.limboTargetsByKey.remove(r),delete this.limboKeysByTarget[e];var i=new xt(_t.comparator);i=i.insert(r,new Tt(r,sn.forDeletedDoc()));var o=oe().add(r),a=new Cn(sn.MIN,{},new En(U),i,o);return this.applyRemoteEvent(a)}var s=this.queryViewsByTarget[e];return l(!!s,"Unknown targetId: "+e),this.localStore.releaseQuery(s.query).then(function(){return n.removeAndCleanupQuery(s).then(function(){n.errorHandler(s.query,t)})})},e.prototype.applySuccessfulWrite=function(e){var t=this;return this.assertSubscribed("applySuccessfulWrite()"),this.processUserCallback(e.batch.batchId,null),this.localStore.acknowledgeBatch(e).then(function(e){return t.emitNewSnapsAndNotifyLocalStore(e)})},e.prototype.rejectFailedWrite=function(e,t){var n=this;return this.assertSubscribed("rejectFailedWrite()"),this.processUserCallback(e,t),this.localStore.rejectBatch(e).then(function(e){return n.emitNewSnapsAndNotifyLocalStore(e)})},e.prototype.addMutationCallback=function(e,t){var n=this.mutationUserCallbacks[this.currentUser.toKey()];n||(n=new xt(U)),n=n.insert(e,t),this.mutationUserCallbacks[this.currentUser.toKey()]=n},e.prototype.processUserCallback=function(e,t){var n=this.mutationUserCallbacks[this.currentUser.toKey()];if(n){var r=n.get(e);r&&(l(e===n.minKey(),"Mutation callbacks processed out-of-order?"),t?r.reject(t):r.resolve(),n=n.remove(e)),this.mutationUserCallbacks[this.currentUser.toKey()]=n}},e.prototype.removeAndCleanupQuery=function(e){return this.queryViewsByQuery.delete(e.query),delete this.queryViewsByTarget[e.targetId],this.limboDocumentRefs.removeReferencesForId(e.targetId),this.gcLimboDocuments()},e.prototype.updateTrackedLimbos=function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];i instanceof wr?(this.limboDocumentRefs.addReference(i.key,e),this.trackLimboChange(i)):i instanceof _r?(o("SyncEngine","Document no longer in limbo: "+i.key),this.limboDocumentRefs.removeReference(i.key,e)):u("Unknown limbo change: "+JSON.stringify(i))}return this.gcLimboDocuments()},e.prototype.trackLimboChange=function(e){var t=e.key;if(!this.limboTargetsByKey.get(t)){o("SyncEngine","New document in limbo: "+t);var n=this.targetIdGenerator.next(),r=Xt.atPath(t.path);this.limboKeysByTarget[n]=t,this.remoteStore.listen(new ln(r,n,Pt.LimboResolution)),this.limboTargetsByKey=this.limboTargetsByKey.insert(t,n)}},e.prototype.gcLimboDocuments=function(){var e=this;return this.limboCollector.collectGarbage(null).next(function(t){t.forEach(function(t){var n=e.limboTargetsByKey.get(t);null!==n&&(e.remoteStore.unlisten(n),e.limboTargetsByKey=e.limboTargetsByKey.remove(t),delete e.limboKeysByTarget[n])})}).toPromise()},e.prototype.currentLimboDocs=function(){return this.limboTargetsByKey},e.prototype.emitNewSnapsAndNotifyLocalStore=function(e,t){var n=this,r=[],i=[],o=[];return this.queryViewsByQuery.forEach(function(a,s){o.push(Promise.resolve().then(function(){var t=s.view.computeDocChanges(e);return t.needsRefill?n.localStore.executeQuery(s.query).then(function(e){return s.view.computeDocChanges(e,t)}):t}).then(function(e){var o=t&&t.targetChanges[s.targetId],a=s.view.applyChanges(e,o);return n.updateTrackedLimbos(s.targetId,a.limboChanges).then(function(){if(a.snapshot){r.push(a.snapshot);var e=pr.fromSnapshot(a.snapshot);i.push(e)}})}))}),Promise.all(o).then(function(){return n.viewHandler(r),n.localStore.notifyLocalViewChanges(i)}).then(function(){return n.localStore.collectGarbage()})},e.prototype.assertSubscribed=function(e){l(null!==this.viewHandler&&null!==this.errorHandler,"Trying to call "+e+" before calling subscribe().")},e.prototype.handleUserChange=function(e){var t=this;return this.currentUser=e,this.localStore.handleUserChange(e).then(function(e){return t.emitNewSnapsAndNotifyLocalStore(e)}).then(function(){return t.remoteStore.handleUserChange(e)})},e.prototype.getRemoteKeysForTarget=function(e){return this.queryViewsByTarget[e]?this.queryViewsByTarget[e].view.syncedDocuments:oe()},e}(),Sr=-1,kr=function(){function e(e,t,n){this.batchId=e,this.localWriteTime=t,this.mutations=n}return e.prototype.applyToRemoteDocument=function(e,t,n){t&&l(t.key.isEqual(e),"applyToRemoteDocument: key "+e+" should match maybeDoc key\n "+t.key);var r=n.mutationResults;l(r.length===this.mutations.length,"Mismatch between mutations length\n ("+this.mutations.length+") and mutation results length\n ("+r.length+").");for(var i=0;i<this.mutations.length;i++){var o=this.mutations[i];if(o.key.isEqual(e)){var a=r[i];t=o.applyToRemoteDocument(t,a)}}return t},e.prototype.applyToLocalView=function(e,t){t&&l(t.key.isEqual(e),"applyToLocalDocument: key "+e+" should match maybeDoc key\n "+t.key);for(var n=t,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(e)&&(t=i.applyToLocalView(t,n,this.localWriteTime))}return t},e.prototype.keys=function(){for(var e=oe(),t=0,n=this.mutations;t<n.length;t++){var r=n[t];e=e.add(r.key)}return e},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&q(this.mutations,e.mutations)},e.prototype.isTombstone=function(){return 0===this.mutations.length},e.prototype.toTombstone=function(){return new e(this.batchId,this.localWriteTime,[])},e}(),Cr=function(){function e(e,t,n,r,i){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.streamToken=r,this.docVersions=i}return e.from=function(t,n,r,i){l(t.mutations.length===r.length,"Mutations sent "+t.mutations.length+" must equal results received "+r.length);for(var o=ie(),a=t.mutations,s=0;s<a.length;s++){var u=r[s].version;null===u&&(u=n),o=o.insert(a[s].key,u)}return new e(t,n,r,i,o)},e}(),Or="\x01",Nr="\x01",Pr="\x10",Ir="\x11",Ar=function(){function e(e,t){this.seconds=e,this.nanoseconds=t}return e}(),Dr=function(){function e(e,t){this.ownerId=e,this.leaseTimestampMs=t}return e.store="owner",e}(),Rr=function(){function e(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n}return e.store="mutationQueues",e.keyPath="userId",e}(),Mr=function(){function e(e,t,n,r){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.mutations=r}return e.store="mutations",e.keyPath=["userId","batchId"],e}(),Lr=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,pe(t)]},e.key=function(e,t,n){return[e,pe(t),n]},e.store="documentMutations",e.PLACEHOLDER=new e,e}(),jr=function(){function e(e,t){this.path=e,this.readTime=t}return e}(),Fr=function(){function e(e,t){this.noDocument=e,this.document=t}return e.store="remoteDocuments",e}(),Ur=function(){function e(e,t,n,r,i,o){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.query=o}return e.store="targets",e.keyPath="targetId",e.queryTargetsIndexName="queryTargetsIndex",e.queryTargetsKeyPath=["canonicalId","targetId"],e}(),Br=function(){function e(e,t){this.targetId=e,this.path=t}return e.store="targetDocuments",e.keyPath=["targetId","path"],e.documentTargetsIndex="documentTargetsIndex",e.documentTargetsKeyPath=["path","targetId"],e}(),qr=function(){function e(e,t,n,r){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=r}return e.key="targetGlobalKey",e.store="targetGlobal",e}(),Vr=[Rr.store,Mr.store,Lr.store,Fr.store,Ur.store,Dr.store,qr.store,Br.store],zr=function(){function e(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return e}(),Wr=function(){function e(e){this.db=e}return e.openOrCreate=function(t,n,r){return l(e.isAvailable(),"IndexedDB not supported in current environment."),o("SimpleDb","Opening database:",t),new dr(function(i,a){var s=window.indexedDB.open(t,n);s.onsuccess=function(t){var n=t.target.result;i(new e(n))},s.onblocked=function(){a(new ut(st.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},s.onerror=function(e){a(e.target.error)},s.onupgradeneeded=function(e){o("SimpleDb",'Database "'+t+'" requires upgrade from version:',e.oldVersion);var n=e.target.result,i=new Kr(s.transaction);r(n,i,e.oldVersion,2).next(function(){o("SimpleDb","Database upgrade to version 2 complete")})}}).toPromise()},e.delete=function(e){return o("SimpleDb","Removing database:",e),Se(window.indexedDB.deleteDatabase(e)).toPromise()},e.isAvailable=function(){if("undefined"===typeof window||null==window.indexedDB)return!1;if(void 0===window.navigator)return"YES"===Object({NODE_ENV:"production",PUBLIC_URL:""}).USE_MOCK_PERSISTENCE;var e=window.navigator.userAgent;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0)},e.getStore=function(e,t){return e instanceof Kr?e.store(t):u("Invalid transaction object provided!")},e.prototype.runTransaction=function(e,t,n){var r=Kr.open(this.db,e,t),i=n(r).catch(function(e){r.abort(e)}).toPromise();return r.completionPromise.then(function(){return i})},e.prototype.close=function(){this.db.close()},e}(),Hr=function(){function e(e){this.dbCursor=e,this.shouldStop=!1,this.nextKey=null}return Object.defineProperty(e.prototype,"isDone",{get:function(){return this.shouldStop},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skipToKey",{get:function(){return this.nextKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.dbCursor=e},enumerable:!0,configurable:!0}),e.prototype.done=function(){this.shouldStop=!0},e.prototype.skip=function(e){this.nextKey=e},e.prototype.delete=function(){return Se(this.dbCursor.delete())},e}(),Kr=function(){function e(e){var t=this;this.transaction=e,this.aborted=!1,this.completionDeferred=new zr,this.transaction.oncomplete=function(){t.completionDeferred.resolve()},this.transaction.onabort=function(){e.error?t.completionDeferred.reject(e.error):t.completionDeferred.resolve()},this.transaction.onerror=function(e){t.completionDeferred.reject(e.target.error)}}return e.open=function(t,n,r){return new e(t.transaction(r,n))},Object.defineProperty(e.prototype,"completionPromise",{get:function(){return this.completionDeferred.promise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){e&&this.completionDeferred.reject(e),this.aborted||(o("SimpleDb","Aborting transaction: %s",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return l(!!t,"Object store not part of transaction: "+e),new Gr(t)},e}(),Gr=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(o("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(o("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),Se(n)},e.prototype.get=function(e){var t=this;return Se(this.store.get(e)).next(function(n){return void 0===n&&(n=null),o("SimpleDb","GET",t.store.name,e,n),n})},e.prototype.delete=function(e){return o("SimpleDb","DELETE",this.store.name,e),Se(this.store.delete(e))},e.prototype.count=function(){return o("SimpleDb","COUNT",this.store.name),Se(this.store.count())},e.prototype.loadAll=function(e,t){var n=this.cursor(this.options(e,t)),r=[];return this.iterateCursor(n,function(e,t){r.push(t)}).next(function(){return r})},e.prototype.deleteAll=function(e,t){o("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.keysOnly=!1;var r=this.cursor(n);return this.iterateCursor(r,function(e,t,n){return n.delete()})},e.prototype.iterate=function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.iterateCursor(r,t)},e.prototype.iterateCursor=function(e,t){var n=[];return new dr(function(r,i){e.onerror=function(e){i(e.target.error)},e.onsuccess=function(e){var i=e.target.result;if(!i)return void r();var o=new Hr(i),a=t(i.primaryKey,i.value,o);a instanceof dr&&n.push(a),o.isDone?r():null===o.skipToKey?i.continue():i.continue(o.skipToKey)}}).next(function(){return dr.waitFor(n)})},e.prototype.options=function(e,t){var n=void 0;return void 0!==e&&("string"===typeof e?n=e:(l(void 0===t,"3rd argument must not be defined if 2nd is a range."),t=e)),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.keysOnly?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}(),Qr=function(){function e(e,t){this.userId=e,this.serializer=t,this.garbageCollector=null}return e.forUser=function(t,n){return l(""!==t.uid,"UserID must not be an empty string."),new e(t.isAuthenticated()?t.uid:"",n)},e.prototype.start=function(t){var n=this;return e.loadNextBatchIdFromDb(t).next(function(e){return n.nextBatchId=e,Ne(t).get(n.userId)}).next(function(e){return e||(e=new Rr(n.userId,Sr,"")),n.metadata=e,n.metadata.lastAcknowledgedBatchId>=n.nextBatchId?n.checkEmpty(t).next(function(e){return l(e,"Reset nextBatchID is only possible when the queue is empty"),n.metadata.lastAcknowledgedBatchId=Sr,Ne(t).put(n.metadata)}):dr.resolve()})},e.loadNextBatchIdFromDb=function(e){var t=Sr;return Ce(e).iterate({reverse:!0},function(e,n,r){var i=e[0];if(e[1]>t&&(t=n.batchId),""===i)r.done();else{var o=V(i);r.skip([o])}}).next(function(){return t+1})},e.prototype.checkEmpty=function(e){var t=!0,n=IDBKeyRange.bound(this.keyForBatchId(Number.NEGATIVE_INFINITY),this.keyForBatchId(Number.POSITIVE_INFINITY));return Ce(e).iterate({range:n},function(e,n,r){t=!1,r.done()}).next(function(){return t})},e.prototype.getNextBatchId=function(e){return dr.resolve(this.nextBatchId)},e.prototype.getHighestAcknowledgedBatchId=function(e){return dr.resolve(this.metadata.lastAcknowledgedBatchId)},e.prototype.acknowledgeBatch=function(e,t,n){var r=t.batchId;return l(r>this.metadata.lastAcknowledgedBatchId,"Mutation batchIDs must be acknowledged in order"),this.metadata.lastAcknowledgedBatchId=r,this.metadata.lastStreamToken=ke(n),Ne(e).put(this.metadata)},e.prototype.getLastStreamToken=function(e){return dr.resolve(this.metadata.lastStreamToken)},e.prototype.setLastStreamToken=function(e,t){return this.metadata.lastStreamToken=ke(t),Ne(e).put(this.metadata)},e.prototype.addMutationBatch=function(e,t,n){var r=this,i=this.nextBatchId;this.nextBatchId++;var o=new kr(i,t,n),a=this.serializer.toDbMutationBatch(this.userId,o);return Ce(e).put(a).next(function(){for(var t=[],o=0,a=n;o<a.length;o++){var s=a[o],u=Lr.key(r.userId,s.key.path,i);t.push(Oe(e).put(u,Lr.PLACEHOLDER))}return dr.waitFor(t)}).next(function(){return o})},e.prototype.lookupMutationBatch=function(e,t){var n=this;return Ce(e).get(this.keyForBatchId(t)).next(function(e){return e?n.serializer.fromDbMutationBatch(e):null})},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=this,r=Math.max(t,this.metadata.lastAcknowledgedBatchId)+1,i=IDBKeyRange.lowerBound(this.keyForBatchId(r)),o=null;return Ce(e).iterate({range:i},function(e,t,i){t.userId===n.userId&&(l(t.batchId>=r,"Should have found mutation after "+r),o=n.serializer.fromDbMutationBatch(t)),i.done()}).next(function(){return o})},e.prototype.getAllMutationBatches=function(e){var t=this,n=IDBKeyRange.bound(this.keyForBatchId(Sr),this.keyForBatchId(Number.POSITIVE_INFINITY));return Ce(e).loadAll(n).next(function(e){return e.map(function(e){return t.serializer.fromDbMutationBatch(e)})})},e.prototype.getAllMutationBatchesThroughBatchId=function(e,t){var n=this,r=IDBKeyRange.bound(this.keyForBatchId(Sr),this.keyForBatchId(t));return Ce(e).loadAll(r).next(function(e){return e.map(function(e){return n.serializer.fromDbMutationBatch(e)})})},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=Lr.prefixForPath(this.userId,t.path),i=IDBKeyRange.lowerBound(r),o=[];return Oe(e).iterate({range:i},function(r,i,a){var s=r[0],l=r[1],c=r[2],f=ye(l);if(s!==n.userId||!t.path.isEqual(f))return void a.done();var d=n.keyForBatchId(c);return Ce(e).get(d).next(function(e){null===e&&u("Dangling document-mutation reference found: "+r+" which points to "+d),o.push(n.serializer.fromDbMutationBatch(e))})}).next(function(){return o})},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=this;l(!t.isDocumentQuery(),"Document queries shouldn't go down this path");var r=t.path,i=r.length+1,o=Lr.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new En(U);return Oe(e).iterate({range:a},function(e,t,o){var a=e[0],u=e[1],l=e[2],c=ye(u);if(a!==n.userId||!r.isPrefixOf(c))return void o.done();c.length===i&&(s=s.add(l))}).next(function(){var t=[],r=[];return s.forEach(function(i){var o=n.keyForBatchId(i);r.push(Ce(e).get(o).next(function(e){null===e&&u("Dangling document-mutation reference found, which points to "+o),t.push(n.serializer.fromDbMutationBatch(e))}))}),dr.waitFor(r).next(function(){return t})})},e.prototype.removeMutationBatches=function(e,t){for(var n=Ce(e),r=Oe(e),i=[],o=this,a=0,s=t;a<s.length;a++){var u=s[a];!function(e){var t=IDBKeyRange.only(o.keyForBatchId(e.batchId)),a=0,s=n.iterate({range:t},function(e,t,n){return a++,n.delete()});i.push(s.next(function(){l(1===a,"Dangling document-mutation reference found: Missing batch "+e.batchId)}));for(var u=0,c=e.mutations;u<c.length;u++){var f=c[u],d=Lr.key(o.userId,f.key.path,e.batchId);i.push(r.delete(d)),null!==o.garbageCollector&&o.garbageCollector.addPotentialGarbageKey(f.key)}}(u)}return dr.waitFor(i)},e.prototype.performConsistencyCheck=function(e){var t=this;return this.checkEmpty(e).next(function(n){if(!n)return dr.resolve();var r=IDBKeyRange.lowerBound(Lr.prefixForUser(t.userId)),i=[];return Oe(e).iterate({range:r},function(e,n,r){if(e[0]!==t.userId)return void r.done();var o=ye(e[1]);i.push(o)}).next(function(){l(0===i.length,"Document leak -- detected dangling mutation references when queue is empty. Dangling keys: "+i.map(function(e){return e.canonicalString()}))})})},e.prototype.setGarbageCollector=function(e){this.garbageCollector=e},e.prototype.containsKey=function(e,t){var n=this,r=Lr.prefixForPath(this.userId,t.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return Oe(e).iterate({range:o,keysOnly:!0},function(e,t,r){var o=e[0],s=e[1];e[2];o===n.userId&&s===i&&(a=!0),r.done()}).next(function(){return a})},e.prototype.keyForBatchId=function(e){return[this.userId,e]},e}(),Yr=function(){function e(e){this.serializer=e,this.lastRemoteSnapshotVersion=sn.MIN,this.metadata=null,this.garbageCollector=null}return e.prototype.start=function(e){var t=this;return Ie(e).get(qr.key).next(function(e){l(null!==e,"Missing metadata row that should be added by schema migration."),t.metadata=e;var n=e.lastRemoteSnapshotVersion;return t.lastRemoteSnapshotVersion=sn.fromTimestamp(new ht(n.seconds,n.nanoseconds)),dr.resolve()})},e.prototype.getHighestTargetId=function(){return this.metadata.highestTargetId},e.prototype.getLastRemoteSnapshotVersion=function(){return this.lastRemoteSnapshotVersion},e.prototype.setLastRemoteSnapshotVersion=function(e,t){return this.lastRemoteSnapshotVersion=t,this.metadata.lastRemoteSnapshotVersion=t.toTimestamp(),Ie(e).put(qr.key,this.metadata)},e.prototype.addQueryData=function(e,t){var n=this;return this.saveQueryData(e,t).next(function(){return n.metadata.targetCount+=1,n.updateMetadataFromQueryData(t),n.saveMetadata(e)})},e.prototype.updateQueryData=function(e,t){var n=this;return this.saveQueryData(e,t).next(function(){return n.updateMetadataFromQueryData(t)?n.saveMetadata(e):dr.resolve()})},e.prototype.removeQueryData=function(e,t){var n=this;return l(this.metadata.targetCount>0,"Removing from an empty query cache"),this.removeMatchingKeysForTargetId(e,t.targetId).next(function(){return Pe(e).delete(t.targetId)}).next(function(){return n.metadata.targetCount-=1,n.saveMetadata(e)})},e.prototype.saveMetadata=function(e){return Ie(e).put(qr.key,this.metadata)},e.prototype.saveQueryData=function(e,t){return Pe(e).put(this.serializer.toDbTarget(t))},e.prototype.updateMetadataFromQueryData=function(e){var t=!1;return e.targetId>this.metadata.highestTargetId&&(this.metadata.highestTargetId=e.targetId,t=!0),t},Object.defineProperty(e.prototype,"count",{get:function(){return this.metadata.targetCount},enumerable:!0,configurable:!0}),e.prototype.getQueryData=function(e,t){var n=this,r=t.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),o=null;return Pe(e).iterate({range:i,index:Ur.queryTargetsIndexName},function(e,r,i){var a=n.serializer.fromDbTarget(r);t.isEqual(a.query)&&(o=a,i.done())}).next(function(){return o})},e.prototype.addMatchingKeys=function(e,t,n){var r=[],i=Ae(e);return t.forEach(function(e){var t=pe(e.path);r.push(i.put(new Br(n,t)))}),dr.waitFor(r)},e.prototype.removeMatchingKeys=function(e,t,n){var r=this,i=[],o=Ae(e);return t.forEach(function(e){var t=pe(e.path);i.push(o.delete([n,t])),null!==r.garbageCollector&&r.garbageCollector.addPotentialGarbageKey(e)}),dr.waitFor(i)},e.prototype.removeMatchingKeysForTargetId=function(e,t){var n=Ae(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return this.notifyGCForRemovedKeys(e,r).next(function(){return n.delete(r)})},e.prototype.notifyGCForRemovedKeys=function(e,t){var n=this,r=Ae(e);return null!==this.garbageCollector&&this.garbageCollector.isEager?r.iterate({range:t,keysOnly:!0},function(e,t,r){var i=ye(e[1]),o=new _t(i);l(null!==n.garbageCollector,"GarbageCollector for query cache set to null during key removal."),n.garbageCollector.addPotentialGarbageKey(o)}):dr.resolve()},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=Ae(e),i=oe();return r.iterate({range:n,keysOnly:!0},function(e,t,n){var r=ye(e[1]),o=new _t(r);i=i.add(o)}).next(function(){return i})},e.prototype.setGarbageCollector=function(e){this.garbageCollector=e},e.prototype.containsKey=function(e,t){l(null!==e,"Persistence Transaction cannot be null for query cache containsKey");var n=pe(t.path),r=IDBKeyRange.bound([n],[z(n)],!1,!0),i=0;return Ae(e).iterate({index:Br.documentTargetsIndex,keysOnly:!0,range:r},function(e,t,n){i++,n.done()}).next(function(){return i>0})},e}(),Xr=function(){function e(e){this.serializer=e}return e.prototype.addEntry=function(e,t){return De(e).put(Re(t.key),this.serializer.toDbRemoteDocument(t))},e.prototype.removeEntry=function(e,t){return De(e).delete(Re(t))},e.prototype.getEntry=function(e,t){var n=this;return De(e).get(Re(t)).next(function(e){return e?n.serializer.fromDbRemoteDocument(e):null})},e.prototype.getDocumentsMatchingQuery=function(e,t){var n=this,r=re(),i=t.path.toArray(),o=IDBKeyRange.lowerBound(i);return De(e).iterate({range:o},function(e,i,o){var a=n.serializer.fromDbRemoteDocument(i);t.path.isPrefixOf(a.key.path)?a instanceof Et&&t.matches(a)&&(r=r.insert(a.key,a)):o.done()}).next(function(){return r})},e}(),$r=function(){function e(e){this.remoteSerializer=e}return e.prototype.fromDbRemoteDocument=function(e){if(e.document)return this.remoteSerializer.fromDocument(e.document);if(e.noDocument){var t=_t.fromSegments(e.noDocument.path),n=e.noDocument.readTime,r=new ht(n.seconds,n.nanoseconds);return new Tt(t,sn.fromTimestamp(r))}return u("Unexpected DbRemoteDocument")},e.prototype.toDbRemoteDocument=function(e){if(e instanceof Et){var t=this.remoteSerializer.toDocument(e);return new Fr(null,t)}var n=e.key.path.toArray(),r=e.version.toTimestamp(),i=new Ar(r.seconds,r.nanoseconds);return new Fr(new jr(n,i),null)},e.prototype.toDbMutationBatch=function(e,t){var n=this,r=t.mutations.map(function(e){return n.remoteSerializer.toMutation(e)});return new Mr(e,t.batchId,t.localWriteTime.toMillis(),r)},e.prototype.fromDbMutationBatch=function(e){var t=this,n=e.mutations.map(function(e){return t.remoteSerializer.fromMutation(e)}),r=ht.fromMillis(e.localWriteTimeMs);return new kr(e.batchId,r,n)},e.prototype.fromDbTarget=function(e){var t,n=new ht(e.readTime.seconds,e.readTime.nanoseconds),r=sn.fromTimestamp(n);return t=Me(e.query)?this.remoteSerializer.fromDocumentsTarget(e.query):this.remoteSerializer.fromQueryTarget(e.query),new ln(t,e.targetId,Pt.Listen,r,e.resumeToken)},e.prototype.toDbTarget=function(e){l(Pt.Listen===e.purpose,"Only queries with purpose "+Pt.Listen+" may be stored, got "+e.purpose);var t,n=e.snapshotVersion.toTimestamp(),r=new Ar(n.seconds,n.nanoseconds);t=e.query.isDocumentQuery()?this.remoteSerializer.toDocumentsTarget(e.query):this.remoteSerializer.toQueryTarget(e.query);var i;return e.resumeToken instanceof Uint8Array?(l("YES"===Object({NODE_ENV:"production",PUBLIC_URL:""}).USE_MOCK_PERSISTENCE,"Persisting non-string stream tokens is only supported with mock persistence ."),i=e.resumeToken.toString()):i=e.resumeToken,new Ur(e.targetId,e.query.canonicalId(),r,i,0,t)},e}(),Jr="IndexedDbPersistence",Zr="There is another tab open with offline persistence enabled. Only one such tab is allowed at a time. The other tab must be closed or persistence must be disabled.",ei=function(){function e(t,n){this.ownerId=this.generateOwnerId(),this.dbName=t+e.MAIN_DATABASE,this.serializer=new $r(n),this.localStoragePrefix=t}return e.prototype.start=function(){var t=this;return e.isAvailable()?(l(!this.started,"IndexedDbPersistence double-started!"),this.started=!0,Wr.openOrCreate(this.dbName,2,ge).then(function(e){t.simpleDb=e}).then(function(){return t.tryAcquireOwnerLease()}).then(function(){t.scheduleOwnerLeaseRefreshes(),t.attachWindowUnloadHook()})):(this.persistenceError=new ut(st.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled."),Promise.reject(this.persistenceError))},e.prototype.shutdown=function(e){var t=this;return l(this.started,"IndexedDbPersistence shutdown without start!"),this.started=!1,this.detachWindowUnloadHook(),this.stopOwnerLeaseRefreshes(),this.releaseOwnerLease().then(function(){if(t.simpleDb.close(),e)return Wr.delete(t.dbName)})},e.prototype.getMutationQueue=function(e){return Qr.forUser(e,this.serializer)},e.prototype.getQueryCache=function(){return new Yr(this.serializer)},e.prototype.getRemoteDocumentCache=function(){return new Xr(this.serializer)},e.prototype.runTransaction=function(e,t){var n=this;return this.persistenceError?Promise.reject(this.persistenceError):(o(Jr,"Starting transaction:",e),this.simpleDb.runTransaction("readwrite",Vr,function(e){return n.ensureOwnerLease(e).next(function(){return t(e)})}))},e.isAvailable=function(){return Wr.isAvailable()},e.buildStoragePrefix=function(e){var t=e.databaseId.projectId;return e.databaseId.isDefaultDatabase||(t+="."+e.databaseId.database),"firestore/"+e.persistenceKey+"/"+t+"/"},e.prototype.tryAcquireOwnerLease=function(){var e=this;return this.simpleDb.runTransaction("readwrite",[Dr.store],function(t){var n=t.store(Dr.store);return n.get("owner").next(function(t){if(e.validOwner(t))return o(Jr,"Valid owner already. Failing. Current owner:",t),e.persistenceError=new ut(st.FAILED_PRECONDITION,Zr),dr.reject(e.persistenceError);var r=new Dr(e.ownerId,Date.now());return o(Jr,"No valid owner. Acquiring owner lease. Current owner:",t,"New owner:",r),n.put("owner",r)})})},e.prototype.releaseOwnerLease=function(){var e=this;return this.simpleDb.runTransaction("readwrite",[Dr.store],function(t){var n=t.store(Dr.store);return n.get("owner").next(function(t){return null!==t&&t.ownerId===e.ownerId?(o(Jr,"Releasing owner lease."),n.delete("owner")):dr.resolve()})})},e.prototype.ensureOwnerLease=function(e){var t=this;return e.store(Dr.store).get("owner").next(function(e){return null===e||e.ownerId!==t.ownerId?(t.persistenceError=new ut(st.FAILED_PRECONDITION,Zr),dr.reject(t.persistenceError)):dr.resolve()})},e.prototype.validOwner=function(e){var t=Date.now(),n=t-5e3,r=t;return null!==e&&(!(e.leaseTimestampMs<n)&&(e.leaseTimestampMs>r?(a("Persistence owner-lease is in the future. Discarding.",e),!1):e.ownerId!==this.getZombiedOwnerId()))},e.prototype.scheduleOwnerLeaseRefreshes=function(){var e=this;this.ownerLeaseRefreshHandle=setInterval(function(){e.runTransaction("Refresh owner timestamp",function(t){return t.store(Dr.store).put("owner",new Dr(e.ownerId,Date.now()))}).catch(function(t){a(t),e.stopOwnerLeaseRefreshes()})},4e3)},e.prototype.stopOwnerLeaseRefreshes=function(){this.ownerLeaseRefreshHandle&&(clearInterval(this.ownerLeaseRefreshHandle),this.ownerLeaseRefreshHandle=null)},e.prototype.attachWindowUnloadHook=function(){var e=this;"object"===typeof window&&"function"===typeof window.addEventListener&&(this.windowUnloadHandler=function(){e.setZombiedOwnerId(e.ownerId),e.shutdown()},window.addEventListener("unload",this.windowUnloadHandler))},e.prototype.detachWindowUnloadHook=function(){this.windowUnloadHandler&&(l("object"===typeof window&&"function"===typeof window.removeEventListener,"Expected 'window.removeEventListener' to be a function"),window.removeEventListener("unload",this.windowUnloadHandler),this.windowUnloadHandler=null)},e.prototype.getZombiedOwnerId=function(){try{var e=window.localStorage.getItem(this.zombiedOwnerLocalStorageKey());return o(Jr,"Zombied ownerID from LocalStorage:",e),e}catch(e){return a("Failed to get zombie owner id.",e),null}},e.prototype.setZombiedOwnerId=function(e){try{null===e?window.localStorage.removeItem(this.zombiedOwnerLocalStorageKey()):window.localStorage.setItem(this.zombiedOwnerLocalStorageKey(),e)}catch(e){a("Failed to set zombie owner id.",e)}},e.prototype.zombiedOwnerLocalStorageKey=function(){return this.localStoragePrefix+"zombiedOwnerId"},e.prototype.generateOwnerId=function(){return lt.newId()},e.MAIN_DATABASE="main",e}(),ti=function(){function e(e,t){this.remoteDocumentCache=e,this.mutationQueue=t}return e.prototype.getDocument=function(e,t){var n=this;return this.remoteDocumentCache.getEntry(e,t).next(function(r){return n.computeLocalDocument(e,t,r)})},e.prototype.getDocuments=function(e,t){var n=this,r=[],i=ne();return t.forEach(function(t){r.push(n.getDocument(e,t).next(function(e){e||(e=new Tt(t,sn.forDeletedDoc())),i=i.insert(t,e)}))}),dr.waitFor(r).next(function(){return i})},e.prototype.getDocumentsMatchingQuery=function(e,t){return _t.isDocumentKey(t.path)?this.getDocumentsMatchingDocumentQuery(e,t.path):this.getDocumentsMatchingCollectionQuery(e,t)},e.prototype.getDocumentsMatchingDocumentQuery=function(e,t){return this.getDocument(e,new _t(t)).next(function(e){var t=re();return e instanceof Et&&(t=t.insert(e.key,e)),t})},e.prototype.getDocumentsMatchingCollectionQuery=function(e,t){var n,r=this;return this.remoteDocumentCache.getDocumentsMatchingQuery(e,t).next(function(t){return r.computeLocalDocuments(e,t)}).next(function(i){return n=i,r.mutationQueue.getAllMutationBatchesAffectingQuery(e,t)}).next(function(t){for(var i=oe(),o=0,a=t;o<a.length;o++)for(var s=a[o],u=0,l=s.mutations;u<l.length;u++){var c=l[u];n.get(c.key)||(i=i.add(c.key))}var f=[];return i.forEach(function(t){f.push(r.getDocument(e,t).next(function(e){e instanceof Et&&(n=n.insert(e.key,e))}))}),dr.waitFor(f)}).next(function(){return n.forEach(function(e,r){t.matches(r)||(n=n.remove(e))}),n})},e.prototype.computeLocalDocument=function(e,t,n){return this.mutationQueue.getAllMutationBatchesAffectingDocumentKey(e,t).next(function(e){for(var r=0,i=e;r<i.length;r++){var o=i[r];n=o.applyToLocalView(t,n)}return n})},e.prototype.computeLocalDocuments=function(e,t){var n=this,r=[];return t.forEach(function(i,o){r.push(n.computeLocalDocument(e,i,o).next(function(e){e instanceof Et?t=t.insert(e.key,e):e instanceof Tt?t=t.remove(e.key):u("Unknown MaybeDocument: "+e)}))}),dr.waitFor(r).next(function(){return t})},e}(),ni=function(){function e(e){this.remoteDocumentCache=e,this.changes=ne()}return e.prototype.addEntry=function(e){var t=this.assertChanges();this.changes=t.insert(e.key,e)},e.prototype.getEntry=function(e,t){var n=this.assertChanges(),r=n.get(t);return r?dr.resolve(r):this.remoteDocumentCache.getEntry(e,t)},e.prototype.apply=function(e){var t=this,n=this.assertChanges(),r=[];return n.forEach(function(n,i){r.push(t.remoteDocumentCache.addEntry(e,i))}),this.changes=null,dr.waitFor(r)},e.prototype.assertChanges=function(){return l(null!==this.changes,"Changes have already been applied."),this.changes},e}(),ri=function(){function e(e,t,n){this.persistence=e,this.garbageCollector=n,this.localViewReferences=new mr,this.targetIds={},this.targetIdGenerator=br.forLocalStore(),this.heldBatchResults=[],this.mutationQueue=e.getMutationQueue(t),this.remoteDocuments=e.getRemoteDocumentCache(),this.queryCache=e.getQueryCache(),this.localDocuments=new ti(this.remoteDocuments,this.mutationQueue),this.garbageCollector.addGarbageSource(this.localViewReferences),this.garbageCollector.addGarbageSource(this.queryCache),this.garbageCollector.addGarbageSource(this.mutationQueue)}return e.prototype.start=function(){var e=this;return this.persistence.runTransaction("Start LocalStore",function(t){return e.startMutationQueue(t).next(function(){return e.startQueryCache(t)})})},e.prototype.handleUserChange=function(e){var t=this;return this.persistence.runTransaction("Handle user change",function(n){var r;return t.mutationQueue.getAllMutationBatches(n).next(function(i){return r=i,t.garbageCollector.removeGarbageSource(t.mutationQueue),t.mutationQueue=t.persistence.getMutationQueue(e),t.garbageCollector.addGarbageSource(t.mutationQueue),t.startMutationQueue(n)}).next(function(){return t.localDocuments=new ti(t.remoteDocuments,t.mutationQueue),t.mutationQueue.getAllMutationBatches(n)}).next(function(e){for(var i=oe(),o=0,a=[r,e];o<a.length;o++)for(var s=a[o],u=0,l=s;u<l.length;u++)for(var c=l[u],f=0,d=c.mutations;f<d.length;f++){var h=d[f];i=i.add(h.key)}return t.localDocuments.getDocuments(n,i)})})},e.prototype.startQueryCache=function(e){var t=this;return this.queryCache.start(e).next(function(){var e=t.queryCache.getHighestTargetId();t.targetIdGenerator=br.forLocalStore(e)})},e.prototype.startMutationQueue=function(e){var t=this;return this.mutationQueue.start(e).next(function(){return t.heldBatchResults=[],t.mutationQueue.getHighestAcknowledgedBatchId(e)}).next(function(n){return n!==Sr?t.mutationQueue.getAllMutationBatchesThroughBatchId(e,n):dr.resolve([])}).next(function(n){return n.length>0?t.mutationQueue.removeMutationBatches(e,n):dr.resolve()})},e.prototype.localWrite=function(e){var t=this;return this.persistence.runTransaction("Locally write mutations",function(n){var r,i=ht.now();return t.mutationQueue.addMutationBatch(n,i,e).next(function(e){r=e;var i=r.keys();return t.localDocuments.getDocuments(n,i)}).next(function(e){return{batchId:r.batchId,changes:e}})})},e.prototype.acknowledgeBatch=function(e){var t=this;return this.persistence.runTransaction("Acknowledge batch",function(n){var r;return t.mutationQueue.acknowledgeBatch(n,e.batch,e.streamToken).next(function(){if(t.shouldHoldBatchResult(e.commitVersion))return t.heldBatchResults.push(e),r=oe(),dr.resolve();var i=new ni(t.remoteDocuments);return t.releaseBatchResults(n,[e],i).next(function(e){return r=e,i.apply(n)})}).next(function(){return t.mutationQueue.performConsistencyCheck(n)}).next(function(){return t.localDocuments.getDocuments(n,r)})})},e.prototype.rejectBatch=function(e){var t=this;return this.persistence.runTransaction("Reject batch",function(n){var r,i;return t.mutationQueue.lookupMutationBatch(n,e).next(function(i){return l(null!=i,"Attempt to reject nonexistent batch!"),r=i,t.mutationQueue.getHighestAcknowledgedBatchId(n).next(function(t){return l(e>t,"Acknowledged batches can't be rejected."),r})}).next(function(){return t.removeMutationBatch(n,r)}).next(function(e){return i=e,t.mutationQueue.performConsistencyCheck(n)}).next(function(){return t.localDocuments.getDocuments(n,i)})})},e.prototype.getLastStreamToken=function(){var e=this;return this.persistence.runTransaction("Get last stream token",function(t){return e.mutationQueue.getLastStreamToken(t)})},e.prototype.setLastStreamToken=function(e){var t=this;return this.persistence.runTransaction("Set last stream token",function(n){return t.mutationQueue.setLastStreamToken(n,e)})},e.prototype.getLastRemoteSnapshotVersion=function(){return this.queryCache.getLastRemoteSnapshotVersion()},e.prototype.applyRemoteEvent=function(e){var t=this,n=new ni(this.remoteDocuments);return this.persistence.runTransaction("Apply remote event",function(r){var i=[];p(e.targetChanges,function(n,o){var a=t.targetIds[n];if(a){i.push(t.queryCache.removeMatchingKeys(r,o.removedDocuments,n).next(function(){return t.queryCache.addMatchingKeys(r,o.addedDocuments,n)}));var s=o.resumeToken;s.length>0&&(a=a.update({resumeToken:s,snapshotVersion:e.snapshotVersion}),t.targetIds[n]=a,i.push(t.queryCache.updateQueryData(r,a)))}});var a=oe();e.documentUpdates.forEach(function(e,s){a=a.add(e),i.push(n.getEntry(r,e).next(function(r){null==r||s.version.isEqual(sn.MIN)||s.version.compareTo(r.version)>=0?n.addEntry(s):o("LocalStore","Ignoring outdated watch update for ",e,". Current version:",r.version," Watch version:",s.version),t.garbageCollector.addPotentialGarbageKey(e)}))});var s=t.queryCache.getLastRemoteSnapshotVersion(),u=e.snapshotVersion;u.isEqual(sn.MIN)||(l(u.compareTo(s)>=0,"Watch stream reverted to previous snapshot?? "+u+" < "+s),i.push(t.queryCache.setLastRemoteSnapshotVersion(r,u)));var c;return dr.waitFor(i).next(function(){return t.releaseHeldBatchResults(r,n)}).next(function(e){return c=e,n.apply(r)}).next(function(){return t.localDocuments.getDocuments(r,a.unionWith(c))})})},e.prototype.notifyLocalViewChanges=function(e){var t=this;return this.persistence.runTransaction("Notify local view changes",function(n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i];!function(e){r.push(t.queryCache.getQueryData(n,e.query).next(function(n){l(null!==n,"Local view changes contain unallocated query.");var r=n.targetId;t.localViewReferences.addReferences(e.addedKeys,r),t.localViewReferences.removeReferences(e.removedKeys,r)}))}(a)}return dr.waitFor(r)})},e.prototype.nextMutationBatch=function(e){var t=this;return this.persistence.runTransaction("Get next mutation batch",function(n){return void 0===e&&(e=Sr),t.mutationQueue.getNextMutationBatchAfterBatchId(n,e)})},e.prototype.readDocument=function(e){var t=this;return this.persistence.runTransaction("read document",function(n){return t.localDocuments.getDocument(n,e)})},e.prototype.allocateQuery=function(e){var t=this;return this.persistence.runTransaction("Allocate query",function(n){var r;return t.queryCache.getQueryData(n,e).next(function(i){if(i)return r=i,dr.resolve();var o=t.targetIdGenerator.next();return r=new ln(e,o,Pt.Listen),t.queryCache.addQueryData(n,r)}).next(function(){return l(!t.targetIds[r.targetId],"Tried to allocate an already allocated query: "+e),t.targetIds[r.targetId]=r,r})})},e.prototype.releaseQuery=function(e){var t=this;return this.persistence.runTransaction("Release query",function(n){return t.queryCache.getQueryData(n,e).next(function(r){return l(null!=r,"Tried to release nonexistent query: "+e),t.localViewReferences.removeReferencesForId(r.targetId),delete t.targetIds[r.targetId],t.garbageCollector.isEager?t.queryCache.removeQueryData(n,r):dr.resolve()}).next(function(){if(v(t.targetIds)){var e=new ni(t.remoteDocuments);return t.releaseHeldBatchResults(n,e).next(function(){e.apply(n)})}return dr.resolve()})})},e.prototype.executeQuery=function(e){var t=this;return this.persistence.runTransaction("Execute query",function(n){return t.localDocuments.getDocumentsMatchingQuery(n,e)})},e.prototype.remoteDocumentKeys=function(e){var t=this;return this.persistence.runTransaction("Remote document keys",function(n){return t.queryCache.getMatchingKeysForTargetId(n,e)})},e.prototype.collectGarbage=function(){var e=this;return this.persistence.runTransaction("Garbage collection",function(t){return e.garbageCollector.collectGarbage(t).next(function(n){var r=[];return n.forEach(function(n){r.push(e.remoteDocuments.removeEntry(t,n))}),dr.waitFor(r)})})},e.prototype.releaseHeldBatchResults=function(e,t){for(var n=[],r=0,i=this.heldBatchResults;r<i.length;r++){var o=i[r];if(!this.isRemoteUpToVersion(o.commitVersion))break;n.push(o)}return 0===n.length?dr.resolve(oe()):(this.heldBatchResults.splice(0,n.length),this.releaseBatchResults(e,n,t))},e.prototype.isRemoteUpToVersion=function(e){var t=this.queryCache.getLastRemoteSnapshotVersion();return e.compareTo(t)<=0||v(this.targetIds)},e.prototype.shouldHoldBatchResult=function(e){return!this.isRemoteUpToVersion(e)||this.heldBatchResults.length>0},e.prototype.releaseBatchResults=function(e,t,n){for(var r=this,i=dr.resolve(),o=0,a=t;o<a.length;o++){var s=a[o];!function(t){i=i.next(function(){return r.applyWriteToRemoteDocuments(e,t,n)})}(s)}return i.next(function(){return r.removeMutationBatches(e,t.map(function(e){return e.batch}))})},e.prototype.removeMutationBatch=function(e,t){return this.removeMutationBatches(e,[t])},e.prototype.removeMutationBatches=function(e,t){for(var n=oe(),r=0,i=t;r<i.length;r++)for(var o=i[r],a=0,s=o.mutations;a<s.length;a++){var u=s[a],l=u.key;n=n.add(l)}return this.mutationQueue.removeMutationBatches(e,t).next(function(){return n})},e.prototype.applyWriteToRemoteDocuments=function(e,t,n){var r=t.batch,i=r.keys(),o=dr.resolve();return i.forEach(function(i){o=o.next(function(){return n.getEntry(e,i)}).next(function(e){var o=e,a=t.docVersions.get(i);l(null!==a,"ackVersions should contain every doc in the write."),(!o||o.version.compareTo(a)<0)&&(o=r.applyToRemoteDocument(i,o,t),o?n.addEntry(o):l(!e,"Mutation batch "+r+" applied to document "+e+" resulted in null"))})}),o},e}(),ii=function(){function e(){this.mutationQueue=[],this.nextBatchId=1,this.highestAcknowledgedBatchId=Sr,this.lastStreamToken=c(),this.garbageCollector=null,this.batchesByDocumentKey=new En(vr.compareByKey)}return e.prototype.start=function(e){return 0===this.mutationQueue.length&&(this.nextBatchId=1,this.highestAcknowledgedBatchId=Sr),l(this.highestAcknowledgedBatchId<this.nextBatchId,"highestAcknowledgedBatchId must be less than the nextBatchId"),dr.resolve()},e.prototype.checkEmpty=function(e){return dr.resolve(0===this.mutationQueue.length)},e.prototype.getNextBatchId=function(e){return dr.resolve(this.nextBatchId)},e.prototype.getHighestAcknowledgedBatchId=function(e){return dr.resolve(this.highestAcknowledgedBatchId)},e.prototype.acknowledgeBatch=function(e,t,n){var r=t.batchId;l(r>this.highestAcknowledgedBatchId,"Mutation batchIDs must be acknowledged in order");var i=this.indexOfExistingBatchId(r,"acknowledged"),o=this.mutationQueue[i];return l(r===o.batchId,"Queue ordering failure: expected batch "+r+", got batch "+o.batchId),l(!o.isTombstone(),"Can't acknowledge a previously removed batch"),this.highestAcknowledgedBatchId=r,this.lastStreamToken=n,dr.resolve()},e.prototype.getLastStreamToken=function(e){return dr.resolve(this.lastStreamToken)},e.prototype.setLastStreamToken=function(e,t){return this.lastStreamToken=t,dr.resolve()},e.prototype.addMutationBatch=function(e,t,n){l(0!==n.length,"Mutation batches should not be empty");var r=this.nextBatchId;if(this.nextBatchId++,this.mutationQueue.length>0){l(this.mutationQueue[this.mutationQueue.length-1].batchId<r,"Mutation batchIDs must be monotonically increasing order")}var i=new kr(r,t,n);this.mutationQueue.push(i);for(var o=0,a=n;o<a.length;o++){var s=a[o];this.batchesByDocumentKey=this.batchesByDocumentKey.add(new vr(s.key,r))}return dr.resolve(i)},e.prototype.lookupMutationBatch=function(e,t){return dr.resolve(this.findMutationBatch(t))},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){for(var n=this.mutationQueue.length,r=Math.max(t,this.highestAcknowledgedBatchId)+1,i=this.indexOfBatchId(r),o=i<0?0:i;o<n;o++){var a=this.mutationQueue[o];if(!a.isTombstone())return dr.resolve(a)}return dr.resolve(null)},e.prototype.getAllMutationBatches=function(e){return dr.resolve(this.getAllLiveMutationBatchesBeforeIndex(this.mutationQueue.length))},e.prototype.getAllMutationBatchesThroughBatchId=function(e,t){var n=this.mutationQueue.length,r=this.indexOfBatchId(t);return r<0?r=0:r>=n?r=n:r++,dr.resolve(this.getAllLiveMutationBatchesBeforeIndex(r))},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=new vr(t,0),i=new vr(t,Number.POSITIVE_INFINITY),o=[];return this.batchesByDocumentKey.forEachInRange([r,i],function(e){l(t.isEqual(e.key),"Should only iterate over a single key's batches");var r=n.findMutationBatch(e.targetOrBatchId);l(null!==r,"Batches in the index must exist in the main table"),o.push(r)}),dr.resolve(o)},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=this,r=t.path,i=r.length+1,o=r;_t.isDocumentKey(o)||(o=o.child(""));var a=new vr(new _t(o),0),s=new En(U);this.batchesByDocumentKey.forEachWhile(function(e){var t=e.key.path;return!!r.isPrefixOf(t)&&(t.length===i&&(s=s.add(e.targetOrBatchId)),!0)},a);var u=[];return s.forEach(function(e){var t=n.findMutationBatch(e);null!==t&&u.push(t)}),dr.resolve(u)},e.prototype.removeMutationBatches=function(e,t){var n=t.length;l(n>0,"Should not remove mutations when none exist.");var r=t[0].batchId,i=this.mutationQueue.length,o=this.indexOfExistingBatchId(r,"removed");l(this.mutationQueue[o].batchId===r,"Removed batches must exist in the queue");for(var a=1,s=o+1;a<n&&s<i;){var u=this.mutationQueue[s];u.isTombstone()?s++:(l(u.batchId===t[a].batchId,"Removed batches must be contiguous in the queue"),a++,s++)}if(0===o){for(;s<i;s++){var u=this.mutationQueue[s];if(!u.isTombstone())break}var c=s-o;this.mutationQueue.splice(o,c)}else for(var f=o;f<s;f++)this.mutationQueue[f]=this.mutationQueue[f].toTombstone();for(var d=this.batchesByDocumentKey,h=0,p=t;h<p.length;h++)for(var u=p[h],m=u.batchId,v=0,y=u.mutations;v<y.length;v++){var g=y[v],b=g.key;null!==this.garbageCollector&&this.garbageCollector.addPotentialGarbageKey(b);var w=new vr(b,m);d=d.delete(w)}return this.batchesByDocumentKey=d,dr.resolve()},e.prototype.setGarbageCollector=function(e){this.garbageCollector=e},e.prototype.containsKey=function(e,t){var n=new vr(t,0),r=this.batchesByDocumentKey.firstAfterOrEqual(n);return dr.resolve(t.isEqual(r&&r.key))},e.prototype.performConsistencyCheck=function(e){return 0===this.mutationQueue.length&&l(this.batchesByDocumentKey.isEmpty(),"Document leak -- detected dangling mutation references when queue is empty."),dr.resolve()},e.prototype.getAllLiveMutationBatchesBeforeIndex=function(e){for(var t=[],n=0;n<e;n++){var r=this.mutationQueue[n];r.isTombstone()||t.push(r)}return t},e.prototype.indexOfExistingBatchId=function(e,t){var n=this.indexOfBatchId(e);return l(n>=0&&n<this.mutationQueue.length,"Batches must exist to be "+t),n},e.prototype.indexOfBatchId=function(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId},e.prototype.findMutationBatch=function(e){var t=this.indexOfBatchId(e);if(t<0||t>=this.mutationQueue.length)return null;var n=this.mutationQueue[t];return l(n.batchId===e,"If found batch must match"),n.isTombstone()?null:n},e}(),oi=function(){function e(){this.queries=new ur(function(e){return e.canonicalId()}),this.lastRemoteSnapshotVersion=sn.MIN,this.highestTargetId=0,this.references=new mr,this.targetCount=0}return e.prototype.start=function(e){return dr.resolve()},e.prototype.getLastRemoteSnapshotVersion=function(){return this.lastRemoteSnapshotVersion},e.prototype.getHighestTargetId=function(){return this.highestTargetId},e.prototype.setLastRemoteSnapshotVersion=function(e,t){return this.lastRemoteSnapshotVersion=t,dr.resolve()},e.prototype.saveQueryData=function(e){this.queries.set(e.query,e);var t=e.targetId;t>this.highestTargetId&&(this.highestTargetId=t)},e.prototype.addQueryData=function(e,t){return l(!this.queries.has(t.query),"Adding a query that already exists"),this.saveQueryData(t),this.targetCount+=1,dr.resolve()},e.prototype.updateQueryData=function(e,t){return l(this.queries.has(t.query),"Updating a non-existent query"),this.saveQueryData(t),dr.resolve()},e.prototype.removeQueryData=function(e,t){return l(this.targetCount>0,"Removing a target from an empty cache"),l(this.queries.has(t.query),"Removing a non-existent target from the cache"),this.queries.delete(t.query),this.references.removeReferencesForId(t.targetId),this.targetCount-=1,dr.resolve()},Object.defineProperty(e.prototype,"count",{get:function(){return this.targetCount},enumerable:!0,configurable:!0}),e.prototype.getQueryData=function(e,t){var n=this.queries.get(t)||null;return dr.resolve(n)},e.prototype.addMatchingKeys=function(e,t,n){return this.references.addReferences(t,n),dr.resolve()},e.prototype.removeMatchingKeys=function(e,t,n){return this.references.removeReferences(t,n),dr.resolve()},e.prototype.removeMatchingKeysForTargetId=function(e,t){return this.references.removeReferencesForId(t),dr.resolve()},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=this.references.referencesForId(t);return dr.resolve(n)},e.prototype.setGarbageCollector=function(e){this.references.setGarbageCollector(e)},e.prototype.containsKey=function(e,t){return this.references.containsKey(e,t)},e}(),ai=function(){function e(){this.docs=ne()}return e.prototype.addEntry=function(e,t){return this.docs=this.docs.insert(t.key,t),dr.resolve()},e.prototype.removeEntry=function(e,t){return this.docs=this.docs.remove(t),dr.resolve()},e.prototype.getEntry=function(e,t){return dr.resolve(this.docs.get(t))},e.prototype.getDocumentsMatchingQuery=function(e,t){for(var n=re(),r=new _t(t.path.child("")),i=this.docs.getIteratorFrom(r);i.hasNext();){var o=i.getNext(),a=o.key,s=o.value;if(!t.path.isPrefixOf(a.path))break;s instanceof Et&&t.matches(s)&&(n=n.insert(s.key,s))}return dr.resolve(n)},e}(),si=function(){function e(){this.mutationQueues={},this.remoteDocumentCache=new ai,this.queryCache=new oi,this.started=!1}return e.prototype.start=function(){return nt.__awaiter(this,void 0,void 0,function(){return nt.__generator(this,function(e){return l(!this.started,"MemoryPersistence double-started!"),this.started=!0,[2]})})},e.prototype.shutdown=function(e){return nt.__awaiter(this,void 0,void 0,function(){return nt.__generator(this,function(e){return l(this.started,"MemoryPersistence shutdown without start!"),this.started=!1,[2]})})},e.prototype.getMutationQueue=function(e){var t=this.mutationQueues[e.toKey()];return t||(t=new ii,this.mutationQueues[e.toKey()]=t),t},e.prototype.getQueryCache=function(){return this.queryCache},e.prototype.getRemoteDocumentCache=function(){return this.remoteDocumentCache},e.prototype.runTransaction=function(e,t){return o("MemoryPersistence","Starting transaction:",e),t(new ui).toPromise()},e}(),ui=function(){function e(){}return e}(),li=function(){function e(){this.isEager=!1}return e.prototype.addGarbageSource=function(e){},e.prototype.removeGarbageSource=function(e){},e.prototype.addPotentialGarbageKey=function(e){},e.prototype.collectGarbage=function(e){return dr.resolve(oe())},e}();!function(e){e.All="all",e.ListenStreamIdle="listen_stream_idle",e.ListenStreamConnectionBackoff="listen_stream_connection_backoff",e.WriteStreamIdle="write_stream_idle",e.WriteStreamConnectionBackoff="write_stream_connection_backoff",e.OnlineStateTimeout="online_state_timeout"}(gr||(gr={}));var ci,fi=function(){function e(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new zr,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.catch=this.deferred.promise.catch.bind(this.deferred.promise),this.deferred.promise.catch(function(e){})}return e.createAndSchedule=function(t,n,r,i,o){var a=Date.now()+r,s=new e(t,n,a,i,o);return s.start(r),s},e.prototype.start=function(e){var t=this;this.timerHandle=setTimeout(function(){return t.handleDelayElapsed()},e)},e.prototype.skipDelay=function(){return this.handleDelayElapsed()},e.prototype.cancel=function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new ut(st.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.handleDelayElapsed=function(){var e=this;this.asyncQueue.enqueue(function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then(function(t){return e.deferred.resolve(t)})):Promise.resolve()})},e.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},e}(),di=function(){function e(){this.tail=Promise.resolve(),this.delayedOperations=[],this.operationInProgress=!1}return e.prototype.enqueue=function(e){var t=this;this.verifyNotFailed();var n=this.tail.then(function(){return t.operationInProgress=!0,e().catch(function(e){t.failure=e,t.operationInProgress=!1;var n=e.stack||e.message||"";throw a("INTERNAL UNHANDLED ERROR: ",n),n.indexOf("Firestore Test Simulated Error")<0&&setTimeout(function(){throw e},0),e}).then(function(e){return t.operationInProgress=!1,e})});return this.tail=n,n},e.prototype.enqueueAfterDelay=function(e,t,n){var r=this;this.verifyNotFailed(),l(!this.containsDelayedOperation(e),"Attempted to schedule multiple operations with timer id "+e+".");var i=fi.createAndSchedule(this,e,t,n,function(e){return r.removeDelayedOperation(e)});return this.delayedOperations.push(i),i},e.prototype.verifyNotFailed=function(){this.failure&&u("AsyncQueue is already failed: "+(this.failure.stack||this.failure.message))},e.prototype.verifyOperationInProgress=function(){l(this.operationInProgress,"verifyOpInProgress() called when no op in progress on this queue.")},e.prototype.drain=function(){return this.enqueue(function(){return Promise.resolve()})},e.prototype.containsDelayedOperation=function(e){return this.delayedOperations.findIndex(function(t){return t.timerId===e})>=0},e.prototype.runDelayedOperationsEarly=function(e){var t=this;return this.drain().then(function(){l(e===gr.All||t.containsDelayedOperation(e),"Attempted to drain to missing operation "+e),t.delayedOperations.sort(function(e,t){return e.targetTimeMs-t.targetTimeMs});for(var n=0,r=t.delayedOperations;n<r.length;n++){var i=r[n];if(i.skipDelay(),e!==gr.All&&i.timerId===e)break}return t.drain()})},e.prototype.removeDelayedOperation=function(e){var t=this.delayedOperations.indexOf(e);l(t>=0,"Delayed operation not found."),this.delayedOperations.splice(t,1)},e}(),hi=function(){function e(e,t,n,r,i){this.queue=e,this.timerId=t,this.initialDelayMs=n,this.backoffFactor=r,this.maxDelayMs=i,this.timerPromise=null,this.reset()}return e.prototype.reset=function(){this.currentBaseMs=0},e.prototype.resetToMax=function(){this.currentBaseMs=this.maxDelayMs},e.prototype.backoffAndRun=function(e){this.cancel();var t=this.currentBaseMs+this.jitterDelayMs();this.currentBaseMs>0&&o("ExponentialBackoff","Backing off for "+t+" ms (base delay: "+this.currentBaseMs+" ms)"),this.timerPromise=this.queue.enqueueAfterDelay(this.timerId,t,e),this.currentBaseMs*=this.backoffFactor,this.currentBaseMs<this.initialDelayMs&&(this.currentBaseMs=this.initialDelayMs),this.currentBaseMs>this.maxDelayMs&&(this.currentBaseMs=this.maxDelayMs)},e.prototype.cancel=function(){null!==this.timerPromise&&(this.timerPromise.cancel(),this.timerPromise=null)},e.prototype.jitterDelayMs=function(){return(Math.random()-.5)*this.currentBaseMs},e}();!function(e){e[e.Initial=0]="Initial",e[e.Auth=1]="Auth",e[e.Open=2]="Open",e[e.Error=3]="Error",e[e.Backoff=4]="Backoff",e[e.Stopped=5]="Stopped"}(ci||(ci={}));var pi,mi=1e3,vi=6e4,yi=1.5,gi=function(){function e(e,t,n,r,i){this.queue=e,this.idleTimerId=n,this.connection=r,this.credentialsProvider=i,this.inactivityTimerPromise=null,this.stream=null,this.listener=null,this.backoff=new hi(e,t,mi,yi,vi),this.state=ci.Initial}return e.prototype.isStarted=function(){return this.state===ci.Backoff||this.state===ci.Auth||this.state===ci.Open},e.prototype.isOpen=function(){return this.state===ci.Open},e.prototype.start=function(e){if(this.state===ci.Error)return void this.performBackoff(e);l(this.state===ci.Initial,"Already started"),this.listener=e,this.auth()},e.prototype.stop=function(){this.isStarted()&&this.close(ci.Stopped)},e.prototype.inhibitBackoff=function(){l(!this.isStarted(),"Can only inhibit backoff in a stopped state"),this.state=ci.Initial,this.backoff.reset()},e.prototype.markIdle=function(){var e=this;this.isOpen()&&null===this.inactivityTimerPromise&&(this.inactivityTimerPromise=this.queue.enqueueAfterDelay(this.idleTimerId,6e4,function(){return e.handleIdleCloseTimer()}))},e.prototype.sendRequest=function(e){this.cancelIdleCheck(),this.stream.send(e)},e.prototype.handleIdleCloseTimer=function(){return nt.__awaiter(this,void 0,void 0,function(){return nt.__generator(this,function(e){return this.isOpen()?[2,this.close(ci.Initial)]:[2]})})},e.prototype.cancelIdleCheck=function(){this.inactivityTimerPromise&&(this.inactivityTimerPromise.cancel(),this.inactivityTimerPromise=null)},e.prototype.close=function(e,t){return nt.__awaiter(this,void 0,void 0,function(){var n;return nt.__generator(this,function(r){return l(e===ci.Error||Q(t),"Can't provide an error when not in an error state."),this.cancelIdleCheck(),this.backoff.cancel(),e!==ci.Error?this.backoff.reset():t&&t.code===st.RESOURCE_EXHAUSTED&&(a(t.toString()),a("Using maximum backoff delay to prevent overloading the backend."),this.backoff.resetToMax()),null!==this.stream&&(this.tearDown(),this.stream.close(),this.stream=null),this.state=e,n=this.listener,this.listener=null,e!==ci.Stopped?[2,n.onClose(t)]:[2]})})},e.prototype.tearDown=function(){},e.prototype.auth=function(){var e=this;l(this.state===ci.Initial,"Must be in initial state to auth"),this.state=ci.Auth,this.credentialsProvider.getToken(!1).then(function(t){e.startStream(t)},function(t){e.queue.enqueue(function(){return nt.__awaiter(e,void 0,void 0,function(){var e;return nt.__generator(this,function(n){return this.state!==ci.Stopped?(e=new ut(st.UNKNOWN,"Fetching auth token failed: "+t.message),[2,this.handleStreamClose(e)]):[2]})})})})},e.prototype.startStream=function(e){var t=this;if(this.state!==ci.Stopped){l(this.state===ci.Auth,"Trying to start stream in a non-auth state");var n=function(e,n){t.queue.enqueue(function(){return nt.__awaiter(t,void 0,void 0,function(){return nt.__generator(this,function(t){return this.stream===e?[2,n()]:[2]})})})};if(null!==this.listener){var r=this.startRpc(e);this.stream=r,this.stream.onOpen(function(){n(r,function(){return l(t.state===ci.Auth,"Expected stream to be in state auth, but was "+t.state),t.state=ci.Open,t.listener.onOpen()})}),this.stream.onClose(function(e){n(r,function(){return t.handleStreamClose(e)})}),this.stream.onMessage(function(e){n(r,function(){return t.onMessage(e)})})}}},e.prototype.performBackoff=function(e){var t=this;l(this.state===ci.Error,"Should only perform backoff in an error case"),this.state=ci.Backoff,this.backoff.backoffAndRun(function(){return nt.__awaiter(t,void 0,void 0,function(){return nt.__generator(this,function(t){return this.state===ci.Stopped?[2]:(this.state=ci.Initial,this.start(e),l(this.isStarted(),"PersistentStream should have started"),[2])})})})},e.prototype.handleStreamClose=function(e){return l(this.isStarted(),"Can't handle server close on non-started stream"),o("PersistentStream","close with error: "+e),this.stream=null,this.close(ci.Error,e)},e}(),bi=function(e){function t(t,n,r,i){var o=e.call(this,t,gr.ListenStreamConnectionBackoff,gr.ListenStreamIdle,n,r)||this;return o.serializer=i,o}return nt.__extends(t,e),t.prototype.startRpc=function(e){return this.connection.openStream("Listen",e)},t.prototype.onMessage=function(e){this.backoff.reset();var t=this.serializer.fromWatchChange(e),n=this.serializer.versionFromListenResponse(e);return this.listener.onWatchChange(t,n)},t.prototype.watch=function(e){var t={};t.database=this.serializer.encodedDatabaseId,t.addTarget=this.serializer.toTarget(e);var n=this.serializer.toListenRequestLabels(e);n&&(t.labels=n),this.sendRequest(t)},t.prototype.unwatch=function(e){var t={};t.database=this.serializer.encodedDatabaseId,t.removeTarget=e,this.sendRequest(t)},t}(gi),wi=function(e){function t(t,n,r,i){var o=e.call(this,t,gr.WriteStreamConnectionBackoff,gr.WriteStreamIdle,n,r)||this;return o.serializer=i,o.handshakeComplete_=!1,o}return nt.__extends(t,e),Object.defineProperty(t.prototype,"handshakeComplete",{get:function(){return this.handshakeComplete_},enumerable:!0,configurable:!0}),t.prototype.start=function(t){this.handshakeComplete_=!1,e.prototype.start.call(this,t)},t.prototype.tearDown=function(){this.handshakeComplete_&&this.writeMutations([])},t.prototype.startRpc=function(e){return this.connection.openStream("Write",e)},t.prototype.onMessage=function(e){if(l(!!e.streamToken,"Got a write response without a stream token"),this.lastStreamToken=e.streamToken,this.handshakeComplete_){this.backoff.reset();var t=this.serializer.fromWriteResults(e.writeResults),n=this.serializer.fromVersion(e.commitTime);return this.listener.onMutationResult(n,t)}return l(!e.writeResults||0===e.writeResults.length,"Got mutation results for handshake"),this.handshakeComplete_=!0,this.listener.onHandshakeComplete()},t.prototype.writeHandshake=function(){l(this.isOpen(),"Writing handshake requires an opened stream"),l(!this.handshakeComplete_,"Handshake already completed");var e={};e.database=this.serializer.encodedDatabaseId,this.sendRequest(e)},t.prototype.writeMutations=function(e){var t=this;l(this.isOpen(),"Writing mutations requires an opened stream"),l(this.handshakeComplete_,"Handshake must be complete before writing mutations"),l(this.lastStreamToken.length>0,"Trying to write mutation without a token");var n={streamToken:this.lastStreamToken,writes:e.map(function(e){return t.serializer.toMutation(e)})};this.sendRequest(n)},t}(gi),_i=function(){function e(e,t,n,r){this.queue=e,this.connection=t,this.credentials=n,this.serializer=r}return e.prototype.newPersistentWriteStream=function(){return new wi(this.queue,this.connection,this.credentials,this.serializer)},e.prototype.newPersistentWatchStream=function(){return new bi(this.queue,this.connection,this.credentials,this.serializer)},e.prototype.commit=function(e){var t=this,n={database:this.serializer.encodedDatabaseId,writes:e.map(function(e){return t.serializer.toMutation(e)})};return this.invokeRPC("Commit",n).then(function(e){return t.serializer.fromWriteResults(e.writeResults)})},e.prototype.lookup=function(e){var t=this,n={database:this.serializer.encodedDatabaseId,documents:e.map(function(e){return t.serializer.toName(e)})};return this.invokeStreamingRPC("BatchGetDocuments",n).then(function(n){var r=ne();n.forEach(function(e){var n=t.serializer.fromMaybeDocument(e);r=r.insert(n.key,n)});var i=[];return e.forEach(function(e){var t=r.get(e);l(!!t,"Missing entity in write response for "+e),i.push(t)}),i})},e.prototype.invokeRPC=function(e,t){var n=this;return this.credentials.getToken(!1).then(function(r){return n.connection.invokeRPC(e,t,r)})},e.prototype.invokeStreamingRPC=function(e,t){var n=this;return this.credentials.getToken(!1).then(function(r){return n.connection.invokeStreamingRPC(e,t,r)})},e}(),Ei=function(){function e(e){this.datastore=e,this.readVersions=ie(),this.mutations=[],this.committed=!1}return e.prototype.recordVersion=function(e){var t=e.version;e instanceof Tt&&(t=sn.forDeletedDoc());var n=this.readVersions.get(e.key);if(null!==n){if(!t.isEqual(n))throw new ut(st.ABORTED,"Document version changed between two reads.")}else this.readVersions=this.readVersions.insert(e.key,t)},e.prototype.lookup=function(e){var t=this;return this.committed?Promise.reject("Transaction has already completed."):this.mutations.length>0?Promise.reject("Transactions lookups are invalid after writes."):this.datastore.lookup(e).then(function(e){return e.forEach(function(e){return t.recordVersion(e)}),e})},e.prototype.write=function(e){if(this.committed)throw new ut(st.FAILED_PRECONDITION,"Transaction has already completed.");this.mutations=this.mutations.concat(e)},e.prototype.precondition=function(e){var t=this.readVersions.get(e);return t?pn.updateTime(t):pn.NONE},e.prototype.preconditionForUpdate=function(e){var t=this.readVersions.get(e);if(t&&t.isEqual(sn.forDeletedDoc()))throw new ut(st.FAILED_PRECONDITION,"Can't update a document that doesn't exist.");return t?pn.updateTime(t):pn.exists(!0)},e.prototype.set=function(e,t){this.write(t.toMutations(e,this.precondition(e)))},e.prototype.update=function(e,t){this.write(t.toMutations(e,this.preconditionForUpdate(e)))},e.prototype.delete=function(e){this.write([new bn(e,this.precondition(e))]),this.readVersions=this.readVersions.insert(e,sn.forDeletedDoc())},e.prototype.commit=function(){var e=this,t=this.readVersions;return this.mutations.forEach(function(e){t=t.remove(e.key)}),t.isEmpty()?this.datastore.commit(this.mutations).then(function(){e.committed=!0}):Promise.reject(Error("Every document read in a transaction must also be written."))},e}(),Ti=function(){function e(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state=rr.Unknown,this.watchStreamFailures=0,this.onlineStateTimer=null,this.shouldWarnClientIsOffline=!0}return e.prototype.handleWatchStreamStart=function(){var e=this;0===this.watchStreamFailures&&(this.setAndBroadcast(rr.Unknown),l(null===this.onlineStateTimer,"onlineStateTimer shouldn't be started yet"),this.onlineStateTimer=this.asyncQueue.enqueueAfterDelay(gr.OnlineStateTimeout,1e4,function(){return e.onlineStateTimer=null,l(e.state===rr.Unknown,"Timer should be canceled if we transitioned to a different state."),e.logClientOfflineWarningIfNecessary("Backend didn't respond within 10 seconds."),e.setAndBroadcast(rr.Offline),Promise.resolve()}))},e.prototype.handleWatchStreamFailure=function(e){this.state===rr.Online?(this.setAndBroadcast(rr.Unknown),l(0===this.watchStreamFailures,"watchStreamFailures must be 0"),l(null===this.onlineStateTimer,"onlineStateTimer must be null")):++this.watchStreamFailures>=2&&(this.clearOnlineStateTimer(),this.logClientOfflineWarningIfNecessary("Connection failed 2 times. Most recent error: "+e.toString()),this.setAndBroadcast(rr.Offline))},e.prototype.set=function(e){this.clearOnlineStateTimer(),this.watchStreamFailures=0,e===rr.Online&&(this.shouldWarnClientIsOffline=!1),this.setAndBroadcast(e)},e.prototype.setAndBroadcast=function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))},e.prototype.logClientOfflineWarningIfNecessary=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.shouldWarnClientIsOffline?(a(t),this.shouldWarnClientIsOffline=!1):o("OnlineStateTracker",t)},e.prototype.clearOnlineStateTimer=function(){null!==this.onlineStateTimer&&(this.onlineStateTimer.cancel(),this.onlineStateTimer=null)},e}(),xi=function(){function e(e,t,n,r){this.localStore=e,this.datastore=t,this.pendingWrites=[],this.lastBatchSeen=Sr,this.listenTargets={},this.watchStream=null,this.writeStream=null,this.watchChangeAggregator=null,this.onlineStateTracker=new Ti(n,r)}return e.prototype.start=function(){return this.enableNetwork()},e.prototype.isNetworkEnabled=function(){return l(null==this.watchStream===(null==this.writeStream),"WatchStream and WriteStream should both be null or non-null"),null!=this.watchStream},e.prototype.enableNetwork=function(){var e=this;return this.isNetworkEnabled()?Promise.resolve():(this.watchStream=this.datastore.newPersistentWatchStream(),this.writeStream=this.datastore.newPersistentWriteStream(),this.localStore.getLastStreamToken().then(function(t){return e.writeStream.lastStreamToken=t,e.shouldStartWatchStream()?e.startWatchStream():e.onlineStateTracker.set(rr.Unknown),e.fillWritePipeline()}))},e.prototype.disableNetwork=function(){return nt.__awaiter(this,void 0,void 0,function(){return nt.__generator(this,function(e){return this.disableNetworkInternal(),this.onlineStateTracker.set(rr.Offline),[2]})})},e.prototype.disableNetworkInternal=function(){this.isNetworkEnabled()&&(this.watchStream.stop(),this.writeStream.stop(),this.cleanUpWatchStreamState(),this.cleanUpWriteStreamState(),this.writeStream=null,this.watchStream=null)},e.prototype.shutdown=function(){return o("RemoteStore","RemoteStore shutting down."),this.disableNetworkInternal(),this.onlineStateTracker.set(rr.Unknown),Promise.resolve()},e.prototype.listen=function(e){l(!d(this.listenTargets,e.targetId),"listen called with duplicate targetId!"),this.listenTargets[e.targetId]=e,this.shouldStartWatchStream()?this.startWatchStream():this.isNetworkEnabled()&&this.watchStream.isOpen()&&this.sendWatchRequest(e)},e.prototype.unlisten=function(e){l(d(this.listenTargets,e),"unlisten called without assigned target ID!"),delete this.listenTargets[e],this.isNetworkEnabled()&&this.watchStream.isOpen()&&(this.sendUnwatchRequest(e),v(this.listenTargets)&&this.watchStream.markIdle())},e.prototype.getQueryDataForTarget=function(e){return this.listenTargets[e]||null},e.prototype.getRemoteKeysForTarget=function(e){return this.syncEngine.getRemoteKeysForTarget(e)},e.prototype.sendWatchRequest=function(e){this.watchChangeAggregator.recordPendingTargetRequest(e.targetId),this.watchStream.watch(e)},e.prototype.sendUnwatchRequest=function(e){this.watchChangeAggregator.recordPendingTargetRequest(e),this.watchStream.unwatch(e)},e.prototype.startWatchStream=function(){l(this.shouldStartWatchStream(),"startWriteStream() called when shouldStartWatchStream() is false."),this.watchChangeAggregator=new jn(this),this.watchStream.start({onOpen:this.onWatchStreamOpen.bind(this),onClose:this.onWatchStreamClose.bind(this),onWatchChange:this.onWatchStreamChange.bind(this)}),this.onlineStateTracker.handleWatchStreamStart()},e.prototype.shouldStartWatchStream=function(){return this.isNetworkEnabled()&&!this.watchStream.isStarted()&&!v(this.listenTargets)},e.prototype.cleanUpWatchStreamState=function(){this.watchChangeAggregator=null},e.prototype.onWatchStreamOpen=function(){return nt.__awaiter(this,void 0,void 0,function(){var e=this;return nt.__generator(this,function(t){return p(this.listenTargets,function(t,n){e.sendWatchRequest(n)}),[2]})})},e.prototype.onWatchStreamClose=function(e){return nt.__awaiter(this,void 0,void 0,function(){return nt.__generator(this,function(t){return l(this.isNetworkEnabled(),"onWatchStreamClose() should only be called when the network is enabled"),this.cleanUpWatchStreamState(),this.shouldStartWatchStream()?(e&&this.onlineStateTracker.handleWatchStreamFailure(e),this.startWatchStream()):this.onlineStateTracker.set(rr.Unknown),[2]})})},e.prototype.onWatchStreamChange=function(e,t){return nt.__awaiter(this,void 0,void 0,function(){return nt.__generator(this,function(n){switch(n.label){case 0:return this.onlineStateTracker.set(rr.Online),e instanceof Mn&&e.state===Pn.Removed&&e.cause?[2,this.handleTargetError(e)]:(e instanceof Dn?this.watchChangeAggregator.handleDocumentChange(e):e instanceof Rn?this.watchChangeAggregator.handleExistenceFilter(e):(l(e instanceof Mn,"Expected watchChange to be an instance of WatchTargetChange"),this.watchChangeAggregator.handleTargetChange(e)),!t.isEqual(sn.MIN)&&t.compareTo(this.localStore.getLastRemoteSnapshotVersion())>=0?[4,this.raiseWatchSnapshot(t)]:[3,2]);case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.raiseWatchSnapshot=function(e){var t=this;l(!e.isEqual(sn.MIN),"Can't raise event for unknown SnapshotVersion");var n=this.watchChangeAggregator.createRemoteEvent(e);return p(n.targetChanges,function(n,r){if(r.resumeToken.length>0){var i=t.listenTargets[n];i&&(t.listenTargets[n]=i.update({resumeToken:r.resumeToken,snapshotVersion:e}))}}),n.targetMismatches.forEach(function(e){var n=t.listenTargets[e];if(n){n.resumeToken=c(),t.sendUnwatchRequest(e);var r=new ln(n.query,e,Pt.ExistenceFilterMismatch);t.sendWatchRequest(r)}}),this.syncEngine.applyRemoteEvent(n)},e.prototype.handleTargetError=function(e){var t=this;l(!!e.cause,"Handling target error without a cause");var n=e.cause,r=Promise.resolve();return e.targetIds.forEach(function(e){r=r.then(function(){return nt.__awaiter(t,void 0,void 0,function(){return nt.__generator(this,function(t){return d(this.listenTargets,e)?(delete this.listenTargets[e],this.watchChangeAggregator.removeTarget(e),[2,this.syncEngine.rejectListen(e,n)]):[2]})})})}),r},e.prototype.cleanUpWriteStreamState=function(){this.lastBatchSeen=Sr,o("RemoteStore","Stopping write stream with "+this.pendingWrites.length+" pending writes"),this.pendingWrites=[]},e.prototype.fillWritePipeline=function(){return nt.__awaiter(this,void 0,void 0,function(){var e=this;return nt.__generator(this,function(t){return this.canWriteMutations()?[2,this.localStore.nextMutationBatch(this.lastBatchSeen).then(function(t){if(null!==t)return e.commit(t),e.fillWritePipeline();0===e.pendingWrites.length&&e.writeStream.markIdle()})]:[2]})})},e.prototype.canWriteMutations=function(){return this.isNetworkEnabled()&&this.pendingWrites.length<10},e.prototype.outstandingWrites=function(){return this.pendingWrites.length},e.prototype.commit=function(e){l(this.canWriteMutations(),"commit called when batches can't be written"),this.lastBatchSeen=e.batchId,this.pendingWrites.push(e),this.shouldStartWriteStream()?this.startWriteStream():this.isNetworkEnabled()&&this.writeStream.handshakeComplete&&this.writeStream.writeMutations(e.mutations)},e.prototype.shouldStartWriteStream=function(){return this.isNetworkEnabled()&&!this.writeStream.isStarted()&&this.pendingWrites.length>0},e.prototype.startWriteStream=function(){l(this.shouldStartWriteStream(),"startWriteStream() called when shouldStartWriteStream() is false."),this.writeStream.start({onOpen:this.onWriteStreamOpen.bind(this),onClose:this.onWriteStreamClose.bind(this),onHandshakeComplete:this.onWriteHandshakeComplete.bind(this),onMutationResult:this.onMutationResult.bind(this)})},e.prototype.onWriteStreamOpen=function(){return nt.__awaiter(this,void 0,void 0,function(){return nt.__generator(this,function(e){return this.writeStream.writeHandshake(),[2]})})},e.prototype.onWriteHandshakeComplete=function(){var e=this;return this.localStore.setLastStreamToken(this.writeStream.lastStreamToken).then(function(){for(var t=0,n=e.pendingWrites;t<n.length;t++){var r=n[t];e.writeStream.writeMutations(r.mutations)}})},e.prototype.onMutationResult=function(e,t){var n=this;l(this.pendingWrites.length>0,"Got result for empty pending writes");var r=this.pendingWrites.shift(),i=Cr.from(r,e,t,this.writeStream.lastStreamToken);return this.syncEngine.applySuccessfulWrite(i).then(function(){return n.fillWritePipeline()})},e.prototype.onWriteStreamClose=function(e){return nt.__awaiter(this,void 0,void 0,function(){var t,n=this;return nt.__generator(this,function(r){return l(this.isNetworkEnabled(),"onWriteStreamClose() should only be called when the network is enabled"),e&&this.pendingWrites.length>0?(l(!!e,"We have pending writes, but the write stream closed without an error"),t=void 0,t=this.writeStream.handshakeComplete?this.handleWriteError(e):this.handleHandshakeError(e),[2,t.then(function(){n.shouldStartWriteStream()&&n.startWriteStream()})]):[2]})})},e.prototype.handleHandshakeError=function(e){return nt.__awaiter(this,void 0,void 0,function(){return nt.__generator(this,function(t){return $(e.code)||e.code===st.ABORTED?(o("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.writeStream.lastStreamToken),this.writeStream.lastStreamToken=c(),[2,this.localStore.setLastStreamToken(c())]):[2]})})},e.prototype.handleWriteError=function(e){return nt.__awaiter(this,void 0,void 0,function(){var t,n=this;return nt.__generator(this,function(r){return $(e.code)?(t=this.pendingWrites.shift(),this.writeStream.inhibitBackoff(),[2,this.syncEngine.rejectFailedWrite(t.batchId,e).then(function(){return n.fillWritePipeline()})]):[2]})})},e.prototype.createTransaction=function(){return new Ei(this.datastore)},e.prototype.handleUserChange=function(e){if(o("RemoteStore","RemoteStore changing users: uid=",e.uid),this.isNetworkEnabled())return this.disableNetworkInternal(),this.onlineStateTracker.set(rr.Unknown),this.enableNetwork()},e}(),Si=function(){function e(e,t,n,r){this.platform=e,this.databaseInfo=t,this.credentials=n,this.asyncQueue=r}return e.prototype.start=function(e){var t=this,n=new zr,r=new zr,i=!1;return this.credentials.setUserChangeListener(function(o){i?t.asyncQueue.enqueue(function(){return t.handleUserChange(o)}):(i=!0,t.initializePersistence(e,r).then(function(){return t.initializeRest(o)}).then(n.resolve,n.reject))}),this.asyncQueue.enqueue(function(){return n.promise}),r.promise},e.prototype.enableNetwork=function(){var e=this;return this.asyncQueue.enqueue(function(){return e.remoteStore.enableNetwork()})},e.prototype.initializePersistence=function(e,t){var n=this;return e?this.startIndexedDbPersistence().then(t.resolve).catch(function(e){return t.reject(e),n.canFallback(e)?(console.warn("Error enabling offline storage. Falling back to storage disabled: "+e),n.startMemoryPersistence()):Promise.reject(e)}):(t.resolve(),this.startMemoryPersistence())},e.prototype.canFallback=function(e){return e instanceof ut?e.code===st.FAILED_PRECONDITION||e.code===st.UNIMPLEMENTED:!("undefined"!==typeof DOMException&&e instanceof DOMException)||(22===e.code||20===e.code)},e.prototype.startIndexedDbPersistence=function(){this.garbageCollector=new li;var e=ei.buildStoragePrefix(this.databaseInfo),t=new Wn(this.databaseInfo.databaseId,{useProto3Json:!0});return this.persistence=new ei(e,t),this.persistence.start()},e.prototype.startMemoryPersistence=function(){return this.garbageCollector=new hr,this.persistence=new si,this.persistence.start()},e.prototype.initializeRest=function(e){var t=this;return this.platform.loadConnection(this.databaseInfo).then(function(n){t.localStore=new ri(t.persistence,e,t.garbageCollector);var r=t.platform.newSerializer(t.databaseInfo.databaseId),i=new _i(t.asyncQueue,n,t.credentials,r),o=function(e){t.syncEngine.applyOnlineStateChange(e),t.eventMgr.applyOnlineStateChange(e)};return t.remoteStore=new xi(t.localStore,i,t.asyncQueue,o),t.syncEngine=new xr(t.localStore,t.remoteStore,e),t.remoteStore.syncEngine=t.syncEngine,t.eventMgr=new cr(t.syncEngine),t.localStore.start()}).then(function(){return t.remoteStore.start()})},e.prototype.handleUserChange=function(e){return this.asyncQueue.verifyOperationInProgress(),o("FirestoreClient","User Changed: "+e.uid),this.syncEngine.handleUserChange(e)},e.prototype.disableNetwork=function(){var e=this;return this.asyncQueue.enqueue(function(){return e.remoteStore.disableNetwork()})},e.prototype.shutdown=function(e){var t=this;return this.asyncQueue.enqueue(function(){return t.credentials.removeUserChangeListener(),t.remoteStore.shutdown()}).then(function(){return t.persistence.shutdown(e&&e.purgePersistenceWithDataLoss)})},e.prototype.listen=function(e,t,n){var r=this,i=new fr(e,t,n);return this.asyncQueue.enqueue(function(){return r.eventMgr.listen(i)}),i},e.prototype.unlisten=function(e){var t=this;this.asyncQueue.enqueue(function(){return t.eventMgr.unlisten(e)})},e.prototype.getDocumentFromLocalCache=function(e){var t=this;return this.asyncQueue.enqueue(function(){return t.localStore.readDocument(e)}).then(function(e){if(e instanceof Et)return e;throw new ut(st.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")})},e.prototype.getDocumentsFromLocalCache=function(e){var t=this;return this.asyncQueue.enqueue(function(){return t.localStore.executeQuery(e)}).then(function(t){var n=oe(),r=new Er(e,n),i=r.computeDocChanges(t);return r.applyChanges(i).snapshot})},e.prototype.write=function(e){var t=this,n=new zr;return this.asyncQueue.enqueue(function(){return t.syncEngine.write(e,n)}),n.promise},e.prototype.databaseId=function(){return this.databaseInfo.databaseId},e.prototype.transaction=function(e){var t=this;return this.asyncQueue.enqueue(function(){return nt.__awaiter(t,void 0,void 0,function(){return nt.__generator(this,function(e){return[2]})})}).then(function(){return t.syncEngine.runTransaction(e)})},e}(),ki=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.scheduleEvent(this.observer.next,e)},e.prototype.error=function(e){this.scheduleEvent(this.observer.error,e)},e.prototype.mute=function(){this.muted=!0},e.prototype.scheduleEvent=function(e,t){var n=this;this.muted||setTimeout(function(){n.muted||e(t)},0)},e}(),Ci=function(){function e(e){this.uid=e}return e.prototype.isAuthenticated=function(){return null!=this.uid},e.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e.UNAUTHENTICATED=new e(null),e.GOOGLE_CREDENTIALS=new e("google-credentials-uid"),e.FIRST_PARTY=new e("first-party-uid"),e}(),Oi=function(){function e(e,t){this.user=t,this.type="OAuth",this.authHeaders={Authorization:"Bearer "+e}}return e}(),Ni=function(){function e(){this.userListener=null}return e.prototype.getToken=function(e){return Promise.resolve(null)},e.prototype.setUserChangeListener=function(e){l(!this.userListener,"Can only call setUserChangeListener() once."),this.userListener=e,e(Ci.UNAUTHENTICATED)},e.prototype.removeUserChangeListener=function(){l(null!==this.userListener,"removeUserChangeListener() when no listener registered"),this.userListener=null},e}(),Pi=function(){function e(e){var t=this;this.app=e,this.tokenListener=null,this.userCounter=0,this.userListener=null,this.tokenListener=function(){var e=t.getUser();t.currentUser&&e.isEqual(t.currentUser)||(t.currentUser=e,t.userCounter++,t.userListener&&t.userListener(t.currentUser))},this.userCounter=0,this.app.INTERNAL.addAuthTokenListener(this.tokenListener)}return e.prototype.getToken=function(e){var t=this;l(null!=this.tokenListener,"getToken cannot be called after listener removed.");var n=this.userCounter;return this.app.INTERNAL.getToken(e).then(function(e){if(t.userCounter!==n)throw new ut(st.ABORTED,"getToken aborted due to uid change.");return e?(l("string"===typeof e.accessToken,"Invalid tokenData returned from getToken():"+e),new Oi(e.accessToken,t.currentUser)):null})},e.prototype.setUserChangeListener=function(e){l(!this.userListener,"Can only call setUserChangeListener() once."),this.userListener=e,this.currentUser&&e(this.currentUser)},e.prototype.removeUserChangeListener=function(){l(null!=this.tokenListener,"removeUserChangeListener() called twice"),l(null!==this.userListener,"removeUserChangeListener() called when no listener registered"),this.app.INTERNAL.removeAuthTokenListener(this.tokenListener),this.tokenListener=null,this.userListener=null},e.prototype.getUser=function(){"function"!==typeof this.app.INTERNAL.getUid&&u("This version of the Firestore SDK requires at least version 3.7.0 of firebase.js.");var e=this.app.INTERNAL.getUid();return l(null===e||"string"===typeof e,"Received invalid UID: "+e),new Ci(e)},e}(),Ii=function(){function e(e,t){this.gapi=e,this.sessionIndex=t,this.type="FirstParty",this.user=Ci.FIRST_PARTY,l(this.gapi&&this.gapi.auth&&this.gapi.auth.getAuthHeaderValueForFirstParty,"unexpected gapi interface")}return Object.defineProperty(e.prototype,"authHeaders",{get:function(){return{Authorization:this.gapi.auth.getAuthHeaderValueForFirstParty([]),"X-Goog-AuthUser":this.sessionIndex}},enumerable:!0,configurable:!0}),e}(),Ai=function(){function e(e,t){this.gapi=e,this.sessionIndex=t,l(this.gapi&&this.gapi.auth&&this.gapi.auth.getAuthHeaderValueForFirstParty,"unexpected gapi interface")}return e.prototype.getToken=function(e){return Promise.resolve(new Ii(this.gapi,this.sessionIndex))},e.prototype.setUserChangeListener=function(e){e(Ci.FIRST_PARTY)},e.prototype.removeUserChangeListener=function(){},e}(),Di=function(){function e(e){this.methodName=e}return e.delete=function(){return Ri.instance},e.serverTimestamp=function(){return Mi.instance},e._arrayUnion=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return b("FieldValue.arrayUnion",arguments,1),new Li(e)},e._arrayRemove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return b("FieldValue.arrayRemove",arguments,1),new ji(e)},e.prototype.isEqual=function(e){return this===e},e}(),Ri=function(e){function t(){return e.call(this,"FieldValue.delete")||this}return nt.__extends(t,e),t.instance=new t,t}(Di),Mi=function(e){function t(){return e.call(this,"FieldValue.serverTimestamp")||this}return nt.__extends(t,e),t.instance=new t,t}(Di),Li=function(e){function t(t){var n=e.call(this,"FieldValue.arrayUnion")||this;return n._elements=t,n}return nt.__extends(t,e),t}(Di),ji=function(e){function t(t){var n=e.call(this,"FieldValue.arrayRemove")||this;return n._elements=t,n}return nt.__extends(t,e),t}(Di),Fi=f(Di,"Use FieldValue.<field>() instead."),Ui=/^__.*__$/,Bi=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutations=function(e,t){var n=[];return null!==this.fieldMask?n.push(new yn(e,this.data,this.fieldMask,t)):n.push(new vn(e,this.data,t)),this.fieldTransforms.length>0&&n.push(new gn(e,this.fieldTransforms)),n},e}(),qi=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutations=function(e,t){var n=[new yn(e,this.data,this.fieldMask,t)];return this.fieldTransforms.length>0&&n.push(new gn(e,this.fieldTransforms)),n},e}();!function(e){e[e.Set=0]="Set",e[e.Update=1]="Update",e[e.MergeSet=2]="MergeSet",e[e.Argument=3]="Argument"}(pi||(pi={}));var Vi=function(){function e(e,t,n,r,i,o){this.dataSource=e,this.methodName=t,this.path=n,this.arrayElement=r,void 0===i&&this.validatePath(),this.arrayElement=void 0!==r&&r,this.fieldTransforms=i||[],this.fieldMask=o||[]}return e.prototype.childContextForField=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return r.validatePathSegment(t),r},e.prototype.childContextForFieldPath=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return r.validatePath(),r},e.prototype.childContextForArray=function(t){return new e(this.dataSource,this.methodName,null,!0,this.fieldTransforms,this.fieldMask)},e.prototype.createError=function(e){var t=null===this.path||this.path.isEmpty()?"":" (found in field "+this.path.toString()+")";return new ut(st.INVALID_ARGUMENT,"Function "+this.methodName+"() called with invalid data. "+e+t)},e.prototype.contains=function(e){return void 0!==this.fieldMask.find(function(t){return e.isPrefixOf(t)})||void 0!==this.fieldTransforms.find(function(t){return e.isPrefixOf(t.field)})},e.prototype.validatePath=function(){if(null!==this.path)for(var e=0;e<this.path.length;e++)this.validatePathSegment(this.path.get(e))},e.prototype.validatePathSegment=function(e){if(Ue(this.dataSource)&&Ui.test(e))throw this.createError("Document fields cannot begin and end with __")},e}(),zi=function(){function e(e,t){this.databaseId=e,this.key=t}return e}(),Wi=function(){function e(e){this.preConverter=e}return e.prototype.parseSetData=function(e,t){var n=new Vi(pi.Set,e,wt.EMPTY_PATH);qe("Data must be an object, but it was:",n,t);var r=this.parseData(t,n);return new Bi(r,null,n.fieldTransforms)},e.prototype.parseMergeData=function(e,t,n){var r=new Vi(pi.MergeSet,e,wt.EMPTY_PATH);qe("Data must be an object, but it was:",r,t);var i,o,a=this.parseData(t,r);if(n){for(var s=[],l=0,c=n;l<c.length;l++){var f=c[l],d=void 0;if(f instanceof ir?d=f:"string"===typeof f?d=ze(e,f):u("Expected stringOrFieldPath to be a string or a FieldPath"),!r.contains(d))throw new ut(st.INVALID_ARGUMENT,"Field '"+d+"' is specified in your field mask but missing from your input data.");s.push(d)}i=new cn(s),o=r.fieldTransforms.filter(function(e){return i.covers(e.field)})}else i=new cn(r.fieldMask),o=r.fieldTransforms;return new Bi(a,i,o)},e.prototype.parseUpdateData=function(e,t){var n=this,r=new Vi(pi.Update,e,wt.EMPTY_PATH);qe("Data must be an object, but it was:",r,t);var i=[],o=Wt.EMPTY;m(t,function(t,a){var s=ze(e,t),u=r.childContextForFieldPath(s);if((a=n.runPreConverter(a,u))instanceof Ri)i.push(s);else{var l=n.parseData(a,u);null!=l&&(i.push(s),o=o.set(s,l))}});var a=new cn(i);return new qi(o,a,r.fieldTransforms)},e.prototype.parseUpdateVarargs=function(e,t,n,r){var i=new Vi(pi.Update,e,wt.EMPTY_PATH),o=[Ve(e,t)],a=[n];if(r.length%2!==0)throw new ut(st.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var s=0;s<r.length;s+=2)o.push(Ve(e,r[s])),a.push(r[s+1]);for(var u=[],l=Wt.EMPTY,s=0;s<o.length;++s){var c=o[s],f=i.childContextForFieldPath(c),d=this.runPreConverter(a[s],f);if(d instanceof Ri)u.push(c);else{var h=this.parseData(d,f);null!=h&&(u.push(c),l=l.set(c,h))}}var p=new cn(u);return new qi(l,p,i.fieldTransforms)},e.prototype.parseQueryValue=function(e,t){var n=new Vi(pi.Argument,e,wt.EMPTY_PATH),r=this.parseData(t,n);return l(null!=r,"Parsed data should not be null."),l(0===n.fieldTransforms.length,"Field transforms should have been disallowed."),r},e.prototype.runPreConverter=function(e,t){try{return this.preConverter(e)}catch(e){var n=We(e);throw t.createError(n)}},e.prototype.parseData=function(e,t){if(e=this.runPreConverter(e,t),Be(e))return qe("Unsupported field value:",t,e),this.parseObject(e,t);if(e instanceof Di)return this.parseSentinelFieldValue(e,t),null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.arrayElement)throw t.createError("Nested arrays are not supported");return this.parseArray(e,t)}return this.parseScalarValue(e,t)},e.prototype.parseObject=function(e,t){var n=this,r=new xt(U);return m(e,function(e,i){var o=n.parseData(i,t.childContextForField(e));null!=o&&(r=r.insert(e,o))}),new Wt(r)},e.prototype.parseArray=function(e,t){for(var n=[],r=0,i=0,o=e;i<o.length;i++){var a=o[i],s=this.parseData(a,t.childContextForArray(r));null==s&&(s=Dt.INSTANCE),n.push(s),r++}return new Ht(n)},e.prototype.parseSentinelFieldValue=function(e,t){if(!Ue(t.dataSource))throw t.createError(e.methodName+"() can only be used with update() and set()");if(null===t.path)throw t.createError(e.methodName+"() is not currently supported inside arrays");if(e instanceof Ri){if(t.dataSource!==pi.MergeSet)throw t.dataSource===pi.Update?(l(t.path.length>0,"FieldValue.delete() at the top level should have already been handled."),t.createError("FieldValue.delete() can only appear at the top level of your update data")):t.createError("FieldValue.delete() cannot be used with set() unless you pass {merge:true}");t.fieldMask.push(t.path)}else if(e instanceof Mi)t.fieldTransforms.push(new fn(t.path,Fn.instance));else if(e instanceof Li){var n=this.parseArrayTransformElements(e.methodName,e._elements),r=new Un(n);t.fieldTransforms.push(new fn(t.path,r))}else if(e instanceof ji){var n=this.parseArrayTransformElements(e.methodName,e._elements),i=new Bn(n);t.fieldTransforms.push(new fn(t.path,i))}else u("Unknown FieldValue type: "+e)},e.prototype.parseScalarValue=function(e,t){if(null===e)return Dt.INSTANCE;if("number"===typeof e)return Y(e)?new Lt(e):new jt(e);if("boolean"===typeof e)return Rt.of(e);if("string"===typeof e)return new Ft(e);if(e instanceof Date)return new Ut(ht.fromDate(e));if(e instanceof ht)return new Ut(new ht(e.seconds,1e3*Math.floor(e.nanoseconds/1e3)));if(e instanceof dt)return new zt(e);if(e instanceof ct)return new qt(e);if(e instanceof zi)return new Vt(e.databaseId,e.key);throw t.createError("Unsupported field value: "+A(e))},e.prototype.parseArrayTransformElements=function(e,t){var n=this;return t.map(function(t,r){var i=new Vi(pi.Argument,e,wt.EMPTY_PATH);return n.parseData(t,i.childContextForArray(r))})},e}(),Hi="firestore.googleapis.com",Ki=!0,Gi=!1,Qi=function(){function e(e){if(void 0===e.host){if(void 0!==e.ssl)throw new ut(st.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=Hi,this.ssl=Ki}else x("settings","string","host",e.host),this.host=e.host,S("settings","boolean","ssl",e.ssl),this.ssl=h(e.ssl,Ki);M("settings",e,["host","ssl","credentials","timestampsInSnapshots"]),S("settings","object","credentials",e.credentials),this.credentials=e.credentials,S("settings","boolean","timestampsInSnapshots",e.timestampsInSnapshots),this.timestampsInSnapshots=h(e.timestampsInSnapshots,Gi)}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.timestampsInSnapshots===e.timestampsInSnapshots&&this.credentials===e.credentials},e}(),Yi=function(){function e(){}return e}(),Xi=function(){function e(t){var n=this;this._queue=new di,this.INTERNAL={delete:function(e){return nt.__awaiter(n,void 0,void 0,function(){return nt.__generator(this,function(t){return this._firestoreClient?[2,this._firestoreClient.shutdown(e)]:[2]})})}};var r=new Yi;if("object"===typeof t.options){var i=t;r.firebaseApp=i,r.databaseId=e.databaseIdFromApp(i),r.persistenceKey=r.firebaseApp.name,r.credentials=new Pi(i)}else{var o=t;if(!o.projectId)throw new ut(st.INVALID_ARGUMENT,"Must provide projectId");r.databaseId=new vt(o.projectId,o.database),r.persistenceKey="[DEFAULT]",r.credentials=new Ni}r.settings=new Qi({}),this._config=r,this._databaseId=r.databaseId}return e.prototype.settings=function(e){if(g("Firestore.settings",arguments,1),E("Firestore.settings","object",1,e),d(e,"persistence"))throw new ut(st.INVALID_ARGUMENT,'"persistence" is now specified with a separate call to firestore.enablePersistence().');var t=new Qi(e);if(this._firestoreClient&&!this._config.settings.isEqual(t))throw new ut(st.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this._config.settings=t,void 0!==t.credentials&&(this._config.credentials=Le(t.credentials))},e.prototype.enableNetwork=function(){return this.ensureClientConfigured(),this._firestoreClient.enableNetwork()},e.prototype.disableNetwork=function(){return this.ensureClientConfigured(),this._firestoreClient.disableNetwork()},e.prototype.enablePersistence=function(){if(this._firestoreClient)throw new ut(st.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");return this.configureClient(!0)},e.prototype.ensureClientConfigured=function(){return this._firestoreClient||this.configureClient(!1),this._firestoreClient},e.prototype.configureClient=function(e){var t=this;l(!!this._config.settings.host,"FirestoreSettings.host cannot be falsey"),this._config.settings.timestampsInSnapshots||a("\nThe behavior for Date objects stored in Firestore is going to change\nAND YOUR APP MAY BREAK.\nTo hide this warning and ensure your app does not break, you need to add the\nfollowing code to your app before calling any other Cloud Firestore methods:\n\n const firestore = firebase.firestore();\n const settings = {/* your settings... */ timestampsInSnapshots: true};\n firestore.settings(settings);\n\nWith this change, timestamps stored in Cloud Firestore will be read back as\nFirebase Timestamp objects instead of as system Date objects. So you will also\nneed to update code expecting a Date to instead expect a Timestamp. For example:\n\n // Old:\n const date = snapshot.get('created_at');\n // New:\n const timestamp = snapshot.get('created_at');\n const date = timestamp.toDate();\n\nPlease audit all existing usages of Date when you enable the new behavior. In a\nfuture release, the behavior will change to the new behavior, so if you do not\nfollow these steps, YOUR APP MAY BREAK."),l(!this._firestoreClient,"configureClient() called multiple times");var n=new pt(this._config.databaseId,this._config.persistenceKey,this._config.settings.host,this._config.settings.ssl),r=function(e){if(e instanceof Zi){var n=t._config.databaseId,r=e.firestore._config.databaseId;if(!r.isEqual(n))throw new ut(st.INVALID_ARGUMENT,"Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return new zi(t._config.databaseId,e._key)}return e};return this._dataConverter=new Wi(r),this._firestoreClient=new Si(at.getPlatform(),n,this._config.credentials,this._queue),this._firestoreClient.start(e)},e.databaseIdFromApp=function(e){var t=e.options;if(!d(t,"projectId")){if(d(t,"firestoreId"))throw new ut(st.INVALID_ARGUMENT,'"firestoreId" is now specified as "projectId" in firebase.initializeApp.');throw new ut(st.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.')}if(d(t,"firestoreOptions"))throw new ut(st.INVALID_ARGUMENT,'"firestoreOptions" values are now specified with Firestore.settings()');var n=t.projectId;if(!n||"string"!==typeof n)throw new ut(st.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new vt(n)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this._config.firebaseApp)throw new ut(st.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._config.firebaseApp},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){if(g("Firestore.collection",arguments,1),E("Firestore.collection","string",1,e),!e)throw new ut(st.INVALID_ARGUMENT,"Must provide a non-empty collection path to collection()");return this.ensureClientConfigured(),new oo(gt.fromString(e),this)},e.prototype.doc=function(e){if(g("Firestore.doc",arguments,1),E("Firestore.doc","string",1,e),!e)throw new ut(st.INVALID_ARGUMENT,"Must provide a non-empty document path to doc()");return this.ensureClientConfigured(),Zi.forPath(gt.fromString(e),this)},e.prototype.runTransaction=function(e){var t=this;return g("Firestore.runTransaction",arguments,1),E("Firestore.runTransaction","function",1,e),this.ensureClientConfigured().transaction(function(n){return e(new $i(t,n))})},e.prototype.batch=function(){return this.ensureClientConfigured(),new Ji(this)},Object.defineProperty(e,"logLevel",{get:function(){switch(r()){case Ze.DEBUG:return"debug";case Ze.ERROR:return"error";case Ze.SILENT:return"silent";default:return u("Unknown log level: "+r())}},enumerable:!0,configurable:!0}),e.setLogLevel=function(e){switch(g("Firestore.setLogLevel",arguments,1),E("Firestore.setLogLevel","string",1,e),e){case"debug":i(Ze.DEBUG);break;case"error":i(Ze.ERROR);break;case"silent":i(Ze.SILENT);break;default:throw new ut(st.INVALID_ARGUMENT,"Invalid log level: "+e)}},e.prototype._areTimestampsInSnapshotsEnabled=function(){return this._config.settings.timestampsInSnapshots},e}(),$i=function(){function e(e,t){this._firestore=e,this._transaction=t}return e.prototype.get=function(e){var t=this;g("Transaction.get",arguments,1);var n=Qe("Transaction.get",e,this._firestore);return this._transaction.lookup([n._key]).then(function(e){if(!e||1!==e.length)return u("Mismatch in docs returned from document lookup.");var r=e[0];return r instanceof Tt?new to(t._firestore,n._key,null,!1):new to(t._firestore,n._key,r,!1)})},e.prototype.set=function(e,t,n){w("Transaction.set",arguments,2,3);var r=Qe("Transaction.set",e,this._firestore);n=Ke("Transaction.set",n);var i=n.merge||n.mergeFields?this._firestore._dataConverter.parseMergeData("Transaction.set",t,n.mergeFields):this._firestore._dataConverter.parseSetData("Transaction.set",t);return this._transaction.set(r._key,i),this},e.prototype.update=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o,a;return"string"===typeof t||t instanceof ir?(b("Transaction.update",arguments,3),o=Qe("Transaction.update",e,this._firestore),a=this._firestore._dataConverter.parseUpdateVarargs("Transaction.update",t,n,r)):(g("Transaction.update",arguments,2),o=Qe("Transaction.update",e,this._firestore),a=this._firestore._dataConverter.parseUpdateData("Transaction.update",t)),this._transaction.update(o._key,a),this},e.prototype.delete=function(e){g("Transaction.delete",arguments,1);var t=Qe("Transaction.delete",e,this._firestore);return this._transaction.delete(t._key),this},e}(),Ji=function(){function e(e){this._firestore=e,this._mutations=[],this._committed=!1}return e.prototype.set=function(e,t,n){w("WriteBatch.set",arguments,2,3),this.verifyNotCommitted();var r=Qe("WriteBatch.set",e,this._firestore);n=Ke("WriteBatch.set",n);var i=n.merge||n.mergeFields?this._firestore._dataConverter.parseMergeData("WriteBatch.set",t,n.mergeFields):this._firestore._dataConverter.parseSetData("WriteBatch.set",t);return this._mutations=this._mutations.concat(i.toMutations(r._key,pn.NONE)),this},e.prototype.update=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];this.verifyNotCommitted();var o,a;return"string"===typeof t||t instanceof ir?(b("WriteBatch.update",arguments,3),o=Qe("WriteBatch.update",e,this._firestore),a=this._firestore._dataConverter.parseUpdateVarargs("WriteBatch.update",t,n,r)):(g("WriteBatch.update",arguments,2),o=Qe("WriteBatch.update",e,this._firestore),a=this._firestore._dataConverter.parseUpdateData("WriteBatch.update",t)),this._mutations=this._mutations.concat(a.toMutations(o._key,pn.exists(!0))),this},e.prototype.delete=function(e){g("WriteBatch.delete",arguments,1),this.verifyNotCommitted();var t=Qe("WriteBatch.delete",e,this._firestore);return this._mutations=this._mutations.concat(new bn(t._key,pn.NONE)),this},e.prototype.commit=function(){return nt.__awaiter(this,void 0,void 0,function(){return nt.__generator(this,function(e){return this.verifyNotCommitted(),this._committed=!0,this._mutations.length>0?[2,this._firestore.ensureClientConfigured().write(this._mutations)]:[2]})})},e.prototype.verifyNotCommitted=function(){if(this._committed)throw new ut(st.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}(),Zi=function(){function e(e,t){this._key=e,this.firestore=t,this._firestoreClient=this.firestore.ensureClientConfigured()}return e.forPath=function(t,n){if(t.length%2!==0)throw new ut(st.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.canonicalString()+" has "+t.length);return new e(new _t(t),n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new oo(this._key.path.popLast(),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){if(g("DocumentReference.collection",arguments,1),E("DocumentReference.collection","string",1,e),!e)throw new ut(st.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var t=gt.fromString(e);return new oo(this._key.path.child(t),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw L("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this._key.isEqual(t._key)},e.prototype.set=function(e,t){w("DocumentReference.set",arguments,1,2),t=Ke("DocumentReference.set",t);var n=t.merge||t.mergeFields?this.firestore._dataConverter.parseMergeData("DocumentReference.set",e,t.mergeFields):this.firestore._dataConverter.parseSetData("DocumentReference.set",e);return this._firestoreClient.write(n.toMutations(this._key,pn.NONE))},e.prototype.update=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i;return"string"===typeof e||e instanceof ir?(b("DocumentReference.update",arguments,2),i=this.firestore._dataConverter.parseUpdateVarargs("DocumentReference.update",e,t,n)):(g("DocumentReference.update",arguments,1),i=this.firestore._dataConverter.parseUpdateData("DocumentReference.update",e)),this._firestoreClient.write(i.toMutations(this._key,pn.exists(!0)))},e.prototype.delete=function(){return g("DocumentReference.delete",arguments,0),this._firestoreClient.write([new bn(this._key,pn.NONE)])},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];w("DocumentReference.onSnapshot",arguments,1,4);var n,r={includeMetadataChanges:!1},i=0;"object"!==typeof e[i]||je(e[i])||(r=e[i],M("DocumentReference.onSnapshot",r,["includeMetadataChanges"]),S("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var o={includeMetadataChanges:r.includeMetadataChanges};return je(e[i])?n=e[i]:(E("DocumentReference.onSnapshot","function",i,e[i]),T("DocumentReference.onSnapshot","function",i+1,e[i+1]),T("DocumentReference.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.onSnapshotInternal(o,n)},e.prototype.onSnapshotInternal=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new ki({next:function(e){if(t.next){l(e.docs.size<=1,"Too many documents returned on a document query");var r=e.docs.get(n._key);t.next(new to(n.firestore,n._key,r,e.fromCache))}},error:r}),o=this._firestoreClient.listen(Xt.atPath(this._key.path),i,e);return function(){i.mute(),n._firestoreClient.unlisten(o)}},e.prototype.get=function(e){var t=this;return M("DocumentReference.get",e,["source"]),e&&N("DocumentReference.get","options","source",e.source,["default","server","cache"]),new Promise(function(n,r){e&&"cache"===e.source?t.firestore.ensureClientConfigured().getDocumentFromLocalCache(t._key).then(function(e){n(new to(t.firestore,t._key,e,!0))},r):t.getViaSnapshotListener(n,r,e)})},e.prototype.getViaSnapshotListener=function(e,t,n){var r=this.onSnapshotInternal({includeMetadataChanges:!0,waitForSyncWhenOnline:!0},{next:function(i){r(),!i.exists&&i.metadata.fromCache?t(new ut(st.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?t(new ut(st.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):e(i)},error:t})},e}(),eo=function(){function e(e,t){this.hasPendingWrites=e,this.fromCache=t}return e.prototype.isEqual=function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache},e}(),to=function(){function e(e,t,n,r){this._firestore=e,this._key=t,this._document=n,this._fromCache=r}return e.prototype.data=function(e){return w("DocumentSnapshot.data",arguments,0,1),e=Ge("DocumentSnapshot.data",e),this._document?this.convertObject(this._document.data,It.fromSnapshotOptions(e,this._firestore._areTimestampsInSnapshotsEnabled())):void 0},e.prototype.get=function(e,t){if(w("DocumentSnapshot.get",arguments,1,2),t=Ge("DocumentSnapshot.get",t),this._document){var n=this._document.data.field(Ve("DocumentSnapshot.get",e));if(void 0!==n)return this.convertValue(n,It.fromSnapshotOptions(t,this._firestore._areTimestampsInSnapshotsEnabled()))}},Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new Zi(this._key,this._firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return null!==this._document},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return new eo(null!==this._document&&this._document.hasLocalMutations,this._fromCache)},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){if(!(t instanceof e))throw L("isEqual","DocumentSnapshot",1,t);return this._firestore===t._firestore&&this._fromCache===t._fromCache&&this._key.isEqual(t._key)&&(null===this._document?null===t._document:this._document.isEqual(t._document))},e.prototype.convertObject=function(e,t){var n=this,r={};return e.forEach(function(e,i){r[e]=n.convertValue(i,t)}),r},e.prototype.convertValue=function(e,t){if(e instanceof Wt)return this.convertObject(e,t);if(e instanceof Ht)return this.convertArray(e,t);if(e instanceof Vt){var n=e.value(t),r=this._firestore.ensureClientConfigured().databaseId();return e.databaseId.isEqual(r)||a("Document "+this._key.path+" contains a document reference within a different database ("+e.databaseId.projectId+"/"+e.databaseId.database+") which is not supported. It will be treated as a reference in the current database ("+r.projectId+"/"+r.database+") instead."),new Zi(n,this._firestore)}return e.value(t)},e.prototype.convertArray=function(e,t){var n=this;return e.internalValue.map(function(e){return n.convertValue(e,t)})},e}(),no=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return nt.__extends(t,e),t.prototype.data=function(t){var n=e.prototype.data.call(this,t);return l("object"===typeof n,"Document in a QueryDocumentSnapshot should exist"),n},t}(to),ro=function(){function e(e,t){this._query=e,this.firestore=t}return e.prototype.where=function(t,n,r){g("Query.where",arguments,3),E("Query.where","string",2,n),R("Query.where",3,r);var i,o=Ve("Query.where",t),a=$t.fromString(n);if(o.isKeyField()){if(a===$t.ARRAY_CONTAINS)throw new ut(st.INVALID_ARGUMENT,"Invalid Query. You can't perform array-contains queries on FieldPath.documentId() since document IDs are not arrays.");if("string"===typeof r){if(-1!==r.indexOf("/"))throw new ut(st.INVALID_ARGUMENT,"Function Query.where() requires its third parameter to be a valid document ID if the first parameter is FieldPath.documentId(), but it contains a slash.");if(""===r)throw new ut(st.INVALID_ARGUMENT,"Function Query.where() requires its third parameter to be a valid document ID if the first parameter is FieldPath.documentId(), but it was an empty string.");var s=this._query.path.child(new gt([r]));l(s.length%2===0,"Path should be a document key"),i=new Vt(this.firestore._databaseId,new _t(s))}else{if(!(r instanceof Zi))throw new ut(st.INVALID_ARGUMENT,"Function Query.where() requires its third parameter to be a string or a DocumentReference if the first parameter is FieldPath.documentId(), but it was: "+A(r)+".");var u=r;i=new Vt(this.firestore._databaseId,u._key)}}else i=this.firestore._dataConverter.parseQueryValue("Query.where",r);var c=X(o,a,i);return this.validateNewFilter(c),new e(this._query.addFilter(c),this.firestore)},e.prototype.orderBy=function(t,n){w("Query.orderBy",arguments,1,2),T("Query.orderBy","string",2,n);var r;if(void 0===n||"asc"===n)r=tn.ASCENDING;else{if("desc"!==n)throw new ut(st.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r=tn.DESCENDING}if(null!==this._query.startAt)throw new ut(st.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this._query.endAt)throw new ut(st.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=Ve("Query.orderBy",t),o=new rn(i,r);return this.validateNewOrderBy(o),new e(this._query.addOrderBy(o),this.firestore)},e.prototype.limit=function(t){if(g("Query.limit",arguments,1),E("Query.limit","number",1,t),t<=0)throw new ut(st.INVALID_ARGUMENT,"Invalid Query. Query limit ("+t+") is invalid. Limit must be positive.");return new e(this._query.withLimit(t),this.firestore)},e.prototype.startAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];b("Query.startAt",arguments,1);var i=this.boundFromDocOrFields("Query.startAt",t,n,!0);return new e(this._query.withStartAt(i),this.firestore)},e.prototype.startAfter=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];b("Query.startAfter",arguments,1);var i=this.boundFromDocOrFields("Query.startAfter",t,n,!1);return new e(this._query.withStartAt(i),this.firestore)},e.prototype.endBefore=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];b("Query.endBefore",arguments,1);var i=this.boundFromDocOrFields("Query.endBefore",t,n,!0);return new e(this._query.withEndAt(i),this.firestore)},e.prototype.endAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];b("Query.endAt",arguments,1);var i=this.boundFromDocOrFields("Query.endAt",t,n,!1);return new e(this._query.withEndAt(i),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw L("isEqual","Query",1,t);return this.firestore===t.firestore&&this._query.isEqual(t._query)},e.prototype.boundFromDocOrFields=function(e,t,n,r){if(R(e,1,t),t instanceof to){if(n.length>0)throw new ut(st.INVALID_ARGUMENT,"Too many arguments provided to "+e+"().");var i=t;if(!i.exists)throw new ut(st.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+e+"().");return this.boundFromDocument(e,i._document,r)}var o=[t].concat(n);return this.boundFromFields(e,o,r)},e.prototype.boundFromDocument=function(e,t,n){for(var r=[],i=0,o=this._query.orderBy;i<o.length;i++){var a=o[i];if(a.field.isKeyField())r.push(new Vt(this.firestore._databaseId,t.key));else{var s=t.field(a.field);if(void 0===s){var u=a.field.canonicalString();throw new ut(st.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+u+"' (used as the orderBy) does not exist.")}r.push(s)}}return new nn(r,n)},e.prototype.boundFromFields=function(e,t,n){var r=this._query.explicitOrderBy;if(t.length>r.length)throw new ut(st.INVALID_ARGUMENT,"Too many arguments provided to "+e+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],o=0;o<t.length;o++){var a=t[o];if(r[o].field.isKeyField()){if("string"!==typeof a)throw new ut(st.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+e+"(), but got a "+typeof a);if(-1!==a.indexOf("/"))throw new ut(st.INVALID_ARGUMENT,"Invalid query. Document ID '"+a+"' contains a slash in "+e+"()");var s=new _t(this._query.path.child(a));i.push(new Vt(this.firestore._databaseId,s))}else{var u=this.firestore._dataConverter.parseQueryValue(e,a);i.push(u)}}return new nn(i,n)},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];w("Query.onSnapshot",arguments,1,4);var n,r={},i=0;return"object"!==typeof e[i]||je(e[i])||(r=e[i],M("Query.onSnapshot",r,["includeMetadataChanges"]),S("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),je(e[i])?n=e[i]:(E("Query.onSnapshot","function",i,e[i]),T("Query.onSnapshot","function",i+1,e[i+1]),T("Query.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.onSnapshotInternal(r,n)},e.prototype.onSnapshotInternal=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new ki({next:function(e){t.next&&t.next(new io(n.firestore,n._query,e))},error:r}),o=this.firestore.ensureClientConfigured(),a=o.listen(this._query,i,e);return function(){i.mute(),o.unlisten(a)}},e.prototype.get=function(e){var t=this;return w("Query.get",arguments,0,1),new Promise(function(n,r){e&&"cache"===e.source?t.firestore.ensureClientConfigured().getDocumentsFromLocalCache(t._query).then(function(e){n(new io(t.firestore,t._query,e))},r):t.getViaSnapshotListener(n,r,e)})},e.prototype.getViaSnapshotListener=function(e,t,n){var r=this.onSnapshotInternal({includeMetadataChanges:!0,waitForSyncWhenOnline:!0},{next:function(i){r(),i.metadata.fromCache&&n&&"server"===n.source?t(new ut(st.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):e(i)},error:t})},e.prototype.validateNewFilter=function(e){if(e instanceof Jt)if(e.isInequality()){var t=this._query.getInequalityFilterField();if(null!==t&&!t.isEqual(e.field))throw new ut(st.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+t.toString()+"' and '"+e.field.toString()+"'");var n=this._query.getFirstOrderByField();null!==n&&this.validateOrderByAndInequalityMatch(e.field,n)}else if(e.op===$t.ARRAY_CONTAINS&&this._query.hasArrayContainsFilter())throw new ut(st.INVALID_ARGUMENT,"Invalid query. Queries only support a single array-contains filter.")},e.prototype.validateNewOrderBy=function(e){if(null===this._query.getFirstOrderByField()){var t=this._query.getInequalityFilterField();null!==t&&this.validateOrderByAndInequalityMatch(t,e.field)}},e.prototype.validateOrderByAndInequalityMatch=function(e,t){if(!t.isEqual(e))throw new ut(st.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+t.toString()+"' instead.")},e}(),io=function(){function e(e,t,n){this._firestore=e,this._originalQuery=t,this._snapshot=n,this._cachedChanges=null,this._cachedChangesIncludeMetadataChanges=null,this.metadata=new eo(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._snapshot.docs.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;w("QuerySnapshot.forEach",arguments,1,2),E("QuerySnapshot.forEach","function",1,e),this._snapshot.docs.forEach(function(r){e.call(t,n.convertToDocumentImpl(r))})},Object.defineProperty(e.prototype,"query",{get:function(){return new ro(this._originalQuery,this._firestore)},enumerable:!0,configurable:!0}),e.prototype.docChanges=function(e){M("QuerySnapshot.docChanges",e,["includeMetadataChanges"]),e&&S("QuerySnapshot.docChanges","boolean","includeMetadataChanges",e.includeMetadataChanges);var t=e&&e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new ut(st.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=Ye(this._firestore,t,this._snapshot),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges},e.prototype.isEqual=function(t){if(!(t instanceof e))throw L("isEqual","QuerySnapshot",1,t);return this._firestore===t._firestore&&this._originalQuery.isEqual(t._originalQuery)&&this._snapshot.isEqual(t._snapshot)},e.prototype.convertToDocumentImpl=function(e){return new no(this._firestore,e.key,e,this.metadata.fromCache)},e}();["length","forEach","map"].concat("undefined"!==typeof Symbol?[Symbol.iterator]:[]).forEach(function(e){try{Object.defineProperty(io.prototype.docChanges,e,{get:function(){return He()}})}catch(e){}});var oo=function(e){function t(t,n){var r=e.call(this,Xt.atPath(t),n)||this;if(t.length%2!==1)throw new ut(st.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t.canonicalString()+" has "+t.length);return r}return nt.__extends(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._query.path.popLast();return e.isEmpty()?null:new Zi(new _t(e),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!0,configurable:!0}),t.prototype.doc=function(e){if(w("CollectionReference.doc",arguments,0,1),0===arguments.length&&(e=lt.newId()),E("CollectionReference.doc","string",1,e),""===e)throw new ut(st.INVALID_ARGUMENT,"Document path must be a non-empty string");var t=gt.fromString(e);return Zi.forPath(this._query.path.child(t),this.firestore)},t.prototype.add=function(e){g("CollectionReference.add",arguments,1),E("CollectionReference.add","object",1,e);var t=this.doc();return t.set(e).then(function(){return t})},t}(ro),ao=f(Xi,"Use firebase.firestore() instead."),so=f($i,"Use firebase.firestore().runTransaction() instead."),uo=f(Ji,"Use firebase.firestore().batch() instead."),lo=f(Zi,"Use firebase.firestore().doc() instead."),co=f(to),fo=f(no),ho=f(ro),po=f(io),mo=f(oo,"Use firebase.firestore().collection() instead."),vo={Firestore:ao,GeoPoint:dt,Timestamp:ht,Blob:ft,Transaction:so,WriteBatch:uo,DocumentReference:lo,DocumentSnapshot:co,Query:ho,QueryDocumentSnapshot:fo,QuerySnapshot:po,CollectionReference:mo,FieldPath:ir,FieldValue:Fi,setLogLevel:Xi.setLogLevel};Je(et),t.registerFirestore=Je},function(module,exports,__webpack_require__){(function(global){(function(){function l(e){return"string"==typeof e}function n(e,t){e=e.split("."),t=t||k;for(var n=0;n<e.length;n++)if(null==(t=t[e[n]]))return null;return t}function aa(){}function ba(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&"undefined"!=typeof e.splice&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof e.call&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&"undefined"==typeof e.call)return"object";return t}function p(e){return"array"==ba(e)}function ca(e){var t=ba(e);return"array"==t||"object"==t&&"number"==typeof e.length}function da(e){return"function"==ba(e)}function ea(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function ha(e,t,n){return e.call.apply(e.bind,arguments)}function ia(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,t,n){return r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ha:ia,r.apply(null,arguments)}function ja(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function u(e,t){function n(){}n.prototype=t.prototype,e.H=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Ib=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function ka(e){if(Error.captureStackTrace)Error.captureStackTrace(this,ka);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function la(e,t){e=e.split("%s");for(var n="",r=e.length-1,i=0;i<r;i++)n+=e[i]+(i<t.length?t[i]:"%s");ka.call(this,n+e[r])}function ma(e,t){throw new la("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function w(){0!=na&&(pa[this[q]||(this[q]=++fa)]=this),this.i=this.i,this.m=this.m}function sa(e){e:{for(var t=ta,n=e.length,r=l(e)?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:l(e)?e.charAt(t):e[t]}function ua(e){if(!p(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0}function va(e){return Array.prototype.concat.apply([],arguments)}function wa(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function xa(e){return/^[\s\xa0]*$/.test(e)}function za(e,t){return e<t?-1:e>t?1:0}function y(e){return-1!=x.indexOf(e)}function Ca(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function Da(e){var t,n=[],r=0;for(t in e)n[r++]=e[t];return n}function Ea(e){var t,n=[],r=0;for(t in e)n[r++]=t;return n}function Fa(e){var t,n={};for(t in e)n[t]=e[t];return n}function Ha(e,t){for(var n,r,i=1;i<arguments.length;i++){r=arguments[i];for(n in r)e[n]=r[n];for(var o=0;o<Ga.length;o++)n=Ga[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function Ia(e){return Ia[" "](e),e}function Ja(e,t){var n=Ka;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}function Qa(){var e=k.document;return e?e.documentMode:void 0}function Va(e){return Ja(e,function(){for(var t=0,n=ya(String(Ra)).split("."),r=ya(String(e)).split("."),i=Math.max(n.length,r.length),o=0;0==t&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=za(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||za(0==a[2].length,0==s[2].length)||za(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t})}function A(e,t){this.type=e,this.a=this.target=t,this.Ra=!0}function bb(e,t){if(A.call(this,e?e.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,e){var n=this.type=e.type,r=e.changedTouches?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(Oa){e:{try{Ia(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,null===r?(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0):(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=l(e.pointerType)?e.pointerType:cb[e.pointerType]||"",this.c=e,e.defaultPrevented&&this.b()}}function fb(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ga=i,this.key=++eb,this.Z=this.ba=!1}function gb(e){e.Z=!0,e.listener=null,e.proxy=null,e.src=null,e.ga=null}function hb(e){this.src=e,this.a={},this.b=0}function jb(e,t){var n=t.type;if(n in e.a){var r,i=e.a[n],o=qa(i,t);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(gb(t),0==e.a[n].length&&(delete e.a[n],e.b--))}}function ib(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.Z&&o.listener==t&&o.capture==!!n&&o.ga==r)return i}return-1}function nb(e,t,n,r,i){if(r&&r.once)return ob(e,t,n,r,i);if(p(t)){for(var o=0;o<t.length;o++)nb(e,t[o],n,r,i);return null}return n=pb(n),e&&e[db]?e.Ia(t,n,ea(r)?!!r.capture:!!r,i):qb(e,t,n,!1,r,i)}function qb(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=ea(i)?!!i.capture:!!i,s=rb(e);if(s||(e[kb]=s=new hb(e)),n=s.add(t,n,r,a,o),n.proxy)return n;if(r=sb(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)ab||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(tb(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return mb++,n}function sb(){var e=ub,t=Za?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}function ob(e,t,n,r,i){if(p(t)){for(var o=0;o<t.length;o++)ob(e,t[o],n,r,i);return null}return n=pb(n),e&&e[db]?e.Ja(t,n,ea(r)?!!r.capture:!!r,i):qb(e,t,n,!0,r,i)}function vb(e,t,n,r,i){if(p(t))for(var o=0;o<t.length;o++)vb(e,t[o],n,r,i);else r=ea(r)?!!r.capture:!!r,n=pb(n),e&&e[db]?(e=e.f,(t=String(t).toString())in e.a&&(o=e.a[t],-1<(n=ib(o,n,r,i))&&(gb(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=rb(e))&&(t=e.a[t.toString()],e=-1,t&&(e=ib(t,n,r,i)),(n=-1<e?t[e]:null)&&wb(n))}function wb(e){if("number"!=typeof e&&e&&!e.Z){var t=e.src;if(t&&t[db])jb(t.f,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(tb(n),r):t.addListener&&t.removeListener&&t.removeListener(r),mb--,(n=rb(t))?(jb(n,e),0==n.b&&(n.src=null,t[kb]=null)):gb(e)}}}function tb(e){return e in lb?lb[e]:lb[e]="on"+e}function xb(e,t,n,r){var i=!0;if((e=rb(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.Z&&(o=yb(o,r),i=i&&!1!==o)}return i}function yb(e,t){var n=e.listener,r=e.ga||e.src;return e.ba&&wb(e),n.call(r,t)}function ub(e,t){if(e.Z)return!0;if(!Za){var r=t||n("window.event");t=new bb(r,this);var i=!0;if(!(0>r.keyCode||void 0!=r.returnValue)){e:{var o=!1;if(0==r.keyCode)try{r.keyCode=-1;break e}catch(e){o=!0}(o||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],o=t.a;o;o=o.parentNode)r.push(o);for(e=e.type,o=r.length-1;0<=o;o--){t.a=r[o];var a=xb(r[o],e,!0,t);i=i&&a}for(o=0;o<r.length;o++)t.a=r[o],a=xb(r[o],e,!1,t),i=i&&a}return i}return yb(e,new bb(t,this))}function rb(e){return e=e[kb],e instanceof hb?e:null}function pb(e){return da(e)?e:(e[zb]||(e[zb]=function(t){return e.handleEvent(t)}),e[zb])}function B(){w.call(this),this.f=new hb(this),this.N=this,this.J=null}function Ab(e,t,n,r){if(!(t=e.f.a[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.Z&&a.capture==n){var s=a.listener,u=a.ga||a.src;a.ba&&jb(e.f,a),i=!1!==s.call(u,r)&&i}}return i&&0!=r.Ra}function Bb(e){return!/^\s*$/.test(e)&&/^[\],:{}\s\u2028\u2029]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}function Cb(a){if(a=String(a),Bb(a))try{return eval("("+a+")")}catch(e){}throw Error("Invalid JSON string: "+a)}function Db(e){var t=[];return Eb(new Fb,e,t),t.join("")}function Fb(){}function Eb(e,t,n){if(null==t)n.push("null");else{if("object"==typeof t){if(p(t)){var r=t;t=r.length,n.push("[");for(var i="",o=0;o<t;o++)n.push(i),Eb(e,r[o],n),i=",";return void n.push("]")}if(!(t instanceof String||t instanceof Number||t instanceof Boolean)){n.push("{"),i="";for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&"function"!=typeof(o=t[r])&&(n.push(i),Gb(r,n),n.push(":"),Eb(e,o,n),i=",");return void n.push("}")}t=t.valueOf()}switch(typeof t){case"string":Gb(t,n);break;case"number":n.push(isFinite(t)&&!isNaN(t)?String(t):"null");break;case"boolean":n.push(String(t));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof t)}}}function Gb(e,t){t.push('"',e.replace(Ib,function(e){var t=Hb[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),Hb[e]=t),t}),'"')}function Jb(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function Kb(){this.b=this.a=null}function Ob(){var e=Pb,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function Lb(){this.next=this.b=this.a=null}function Qb(e){k.setTimeout(function(){throw e},0)}function Sb(){var e=k.MessageChannel;if("undefined"===typeof e&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(e=function(){var e=document.createElement("IFRAME");e.style.display="none",e.src="",document.documentElement.appendChild(e);var t=e.contentWindow;e=t.document,e.open(),e.write(""),e.close();var n="callImmediate"+Math.random(),i="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=r(function(e){"*"!=i&&e.origin!=i||e.data!=n||this.port1.onmessage()},this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,i)}}}),"undefined"!==typeof e&&!y("Trident")&&!y("MSIE")){var t=new e,n={},i=n;return t.port1.onmessage=function(){if(void 0!==n.next){n=n.next;var e=n.za;n.za=null,e()}},function(e){i.next={za:e},i=i.next,t.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var t=document.createElement("SCRIPT");t.onreadystatechange=function(){t.onreadystatechange=null,t.parentNode.removeChild(t),t=null,e(),e=null},document.documentElement.appendChild(t)}:function(e){k.setTimeout(e,0)}}function Ub(){if(-1!=String(k.Promise).indexOf("[native code]")){var e=k.Promise.resolve(void 0);Tb=function(){e.then(Vb)}}else Tb=function(){var e=Vb;!da(k.setImmediate)||k.Window&&k.Window.prototype&&!y("Edge")&&k.Window.prototype.setImmediate==k.setImmediate?(Rb||(Rb=Sb()),Rb(e)):k.setImmediate(e)}}function Vb(){for(var e;e=Ob();){try{e.a.call(e.b)}catch(e){Qb(e)}var t=Nb;t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}Wb=!1}function Xb(e,n){B.call(this),this.b=e||1,this.a=n||k,this.c=r(this.qb,this),this.g=t()}function Yb(e){e.ea=!1,e.O&&(e.a.clearTimeout(e.O),e.O=null)}function Zb(e,t,n){if(da(e))n&&(e=r(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=r(e.handleEvent,e)}return 2147483647<Number(t)?-1:k.setTimeout(e,t||0)}function $b(e,t,n){w.call(this),this.f=null!=n?r(e,n):e,this.c=t,this.b=r(this.kb,this),this.a=[]}function ac(e){e.Y=Zb(e.b,e.c),e.f.apply(null,e.a)}function bc(e){w.call(this),this.b=e,this.a={}}function dc(e,t,n,r){p(n)||(n&&(cc[0]=n.toString()),n=cc);for(var i=0;i<n.length;i++){var o=nb(t,n[i],r||e.handleEvent,!1,e.b||e);if(!o)break;e.a[o.key]=o}}function ec(e){Ca(e.a,function(e,t){this.a.hasOwnProperty(t)&&wb(e)},e),e.a={}}function fc(e,t,n){this.reset(e,t,n,void 0,void 0)}function hc(e){this.f=e,this.b=this.c=this.a=null}function C(e,t){this.name=e,this.value=t}function nc(e){return e.c?e.c:e.a?nc(e.a):(ma("Root logger has no level set."),null)}function qc(e){pc||(pc=new hc(""),oc[""]=pc,pc.c=lc);var t;if(!(t=oc[e])){t=new hc(e);var n=e.lastIndexOf("."),r=e.substr(n+1);n=qc(e.substr(0,n)),n.b||(n.b={}),n.b[r]=t,t.a=n,oc[e]=t}return t}function D(e,t){e&&e.log(jc,t,void 0)}function rc(e,t){e&&e.log(kc,t,void 0)}function E(e,t){e&&e.log(mc,t,void 0)}function sc(){this.a=qc("goog.labs.net.webChannel.WebChannelDebug"),this.b=!0}function tc(e,t,n,r,i,o){F(e,function(){if(e.b)if(o)for(var a="",s=o.split("&"),u=0;u<s.length;u++){var l=s[u].split("=");if(1<l.length){var c=l[0];l=l[1];var f=c.split("_");a=2<=f.length&&"type"==f[1]?a+(c+"=")+l+"&":a+(c+"=redacted&")}}else a=null;else a=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+a})}function uc(e,t,n,r,i,o,a){F(e,function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+o+" "+a})}function G(e,t,n,r){F(e,function(){return"XMLHTTP TEXT ("+t+"): "+vc(e,n)+(r?" "+r:"")})}function wc(e,t){F(e,function(){return"TIMEOUT: "+t})}function H(e,t){E(e.a,t)}function xc(e,t,n){(e=e.a)&&e.log(ic,n||"Exception",t)}function F(e,t){rc(e.a,t)}function J(e,t){(e=e.a)&&e.log(ic,t,void 0)}function vc(e,t){if(!e.b)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(var r=0;r<n.length;r++)if(p(n[r])){var i=n[r];if(!(2>i.length)){var o=i[1];if(p(o)&&!(1>o.length)){var a=o[0];if("noop"!=a&&"stop"!=a&&"close"!=a)for(var s=1;s<o.length;s++)o[s]=""}}}return Db(n)}catch(n){return H(e,"Exception parsing expected JS array - probably was not JS"),t}}function zc(e){A.call(this,"serverreachability",e)}function Ac(e){yc.dispatchEvent(new zc(yc,e))}function Bc(e){A.call(this,"statevent",e)}function K(e){yc.dispatchEvent(new Bc(yc,e))}function Cc(e){A.call(this,"timingevent",e)}function Dc(e,t,n){yc.dispatchEvent(new Cc(yc,e,t,n))}function Ec(e,t){if(!da(e))throw Error("Fn must not be null and must be a function");return k.setTimeout(function(){e()},t)}function Hc(){}function Ic(e){var t;return(t=e.a)||(t={},Jc(e)&&(t[0]=!0,t[1]=!0),t=e.a=t),t}function Kc(){}function Mc(){A.call(this,"d")}function Nc(){A.call(this,"c")}function Pc(){}function Qc(e){return(e=Jc(e))?new ActiveXObject(e):new XMLHttpRequest}function Jc(e){if(!e.b&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.b=r}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.b}function L(e,t,n,r){this.i=e,this.b=t,this.c=n,this.T=r||1,this.L=new bc(this),this.R=Rc,e=Na?125:void 0,this.S=new Xb(e),this.j=null,this.f=!1,this.l=this.g=this.h=this.J=this.D=this.U=this.s=null,this.u=[],this.a=null,this.G=0,this.m=this.o=null,this.C=-1,this.B=!1,this.N=0,this.I=null,this.v=this.X=this.K=!1}function Sc(e,t){switch(e){case 0:return"Non-200 return code ("+t+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}}function Vc(e,t,n){e.J=1,e.h=Wc(M(t)),e.l=n,e.K=!0,Xc(e,null)}function Yc(e,t,n,r){e.J=1,e.h=Wc(M(t)),e.l=null,e.K=n,Xc(e,r)}function Xc(e,n){e.D=t(),Zc(e),e.g=M(e.h),$c(e.g,"t",e.T),e.G=0,e.a=e.i.ca(e.i.ia()?n:null),0<e.N&&(e.I=new $b(r(e.Sa,e,e.a),e.N)),dc(e.L,e.a,"readystatechange",e.nb),n=e.j?Fa(e.j):{},e.l?(e.o||(e.o="POST"),n["Content-Type"]="application/x-www-form-urlencoded",e.a.fa(e.g,e.o,e.l,n)):(e.o="GET",e.a.fa(e.g,e.o,null,n)),Ac(1),tc(e.b,e.o,e.g,e.c,e.T,e.l)}function ad(e){var t=N(e.a),n=e.a.Ga(),r=e.a.W();if(!(3>t||3==t&&!Na&&!e.a.V())){e.B||4!=t||7==n||Ac(8==n||0>=r?3:2),bd(e);var i=e.a.W();e.C=i,(n=e.a.V())||H(e.b,function(){return"No response text for uri "+e.g+" status "+i}),e.f=200==i,uc(e.b,e.o,e.g,e.c,e.T,t,i),e.f?((r=cd(e))&&(G(e.b,e.c,r,"Initial handshake response via X-HTTP-Initial-Response"),e.v=!0,dd(e,r)),e.K?(ed(e,t,n),Na&&e.f&&3==t&&fd(e)):(G(e.b,e.c,n,null),dd(e,n)),4==t&&gd(e),e.f&&!e.B&&(4==t?e.i.ta(e):(e.f=!1,Zc(e)))):(400==i&&0<n.indexOf("Unknown SID")?(e.m=3,K(12),D(e.b.a,"XMLHTTP Unknown SID ("+e.c+")")):(e.m=0,K(13),D(e.b.a,"XMLHTTP Bad status "+i+" ("+e.c+")")),gd(e),hd(e))}}function cd(e){return!e.X||e.v?null:e.a&&(e=id(e.a,"X-HTTP-Initial-Response"))&&!xa(e)?e:null}function ed(e,t,n){for(var r=!0;!e.B&&e.G<n.length;){var i=jd(e,n);if(i==Uc){4==t&&(e.m=4,K(14),r=!1),G(e.b,e.c,null,"[Incomplete Response]");break}if(i==Tc){e.m=4,K(15),G(e.b,e.c,n,"[Invalid Chunk]"),r=!1;break}G(e.b,e.c,i,null),dd(e,i)}4==t&&0==n.length&&(e.m=1,K(16),r=!1),e.f=e.f&&r,r||(G(e.b,e.c,n,"[Invalid Chunked Response]"),gd(e),hd(e))}function fd(e){dc(e.L,e.S,"tick",e.mb),e.S.start()}function jd(e,t){var n=e.G,r=t.indexOf("\n",n);return-1==r?Uc:(n=Number(t.substring(n,r)),isNaN(n)?Tc:(r+=1)+n>t.length?Uc:(t=t.substr(r,n),e.G=r+n,t))}function Zc(e){e.U=t()+e.R,kd(e,e.R)}function kd(e,t){if(null!=e.s)throw Error("WatchDog timer not null");e.s=Ec(r(e.lb,e),t)}function bd(e){e.s&&(k.clearTimeout(e.s),e.s=null)}function hd(e){e.i.La()||e.B||e.i.ta(e)}function gd(e){bd(e);var t=e.I;t&&"function"==typeof t.$&&t.$(),e.I=null,Yb(e.S),ec(e.L),e.a&&(t=e.a,e.a=null,t.abort(),t.$())}function dd(e,t){try{e.i.Oa(e,t),Ac(4)}catch(t){xc(e.b,t,"Error in httprequest callback")}}function ld(e){if(e.A&&"function"==typeof e.A)return e.A();if(l(e))return e.split("");if(ca(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}return Da(e)}function md(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(ca(e)||l(e))ra(e,t,void 0);else{if(e.M&&"function"==typeof e.M)var n=e.M();else if(e.A&&"function"==typeof e.A)n=void 0;else if(ca(e)||l(e)){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else n=Ea(e);r=ld(e),i=r.length;for(var o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}}function O(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof O)for(n=e.M(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function od(e){e.b={},e.a.length=0,e.c=0}function pd(e,t){return!!P(e.b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&nd(e),!0)}function nd(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];P(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)r=e.a[t],P(i,r)||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rd(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}function Q(e,t){this.b=this.j=this.f="",this.i=null,this.g=this.a="",this.h=!1;var n;e instanceof Q?(this.h=void 0!==t?t:e.h,sd(this,e.f),this.j=e.j,td(this,e.b),ud(this,e.i),this.a=e.a,vd(this,wd(e.c)),this.g=e.g):e&&(n=String(e).match(qd))?(this.h=!!t,sd(this,n[1]||"",!0),this.j=xd(n[2]||""),td(this,n[3]||"",!0),ud(this,n[4]),this.a=xd(n[5]||"",!0),vd(this,n[6]||"",!0),this.g=xd(n[7]||"")):(this.h=!!t,this.c=new yd(null,this.h))}function M(e){return new Q(e)}function sd(e,t,n){e.f=n?xd(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function td(e,t,n){e.b=n?xd(t,!0):t}function ud(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.i=t}else e.i=null}function vd(e,t,n){t instanceof yd?(e.c=t,Ed(e.c,e.h)):(n||(t=zd(t,Fd)),e.c=new yd(t,e.h))}function R(e,t,n){e.c.set(t,n)}function $c(e,t,n){p(n)||(n=[String(n)]),Gd(e.c,t,n)}function Wc(e){return R(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^t()).toString(36)),e}function Hd(e){return e instanceof Q?M(e):new Q(e,void 0)}function Id(e,t,n,r){var i=new Q(null,void 0);return e&&sd(i,e),t&&td(i,t),n&&ud(i,n),r&&(i.a=r),i}function xd(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function zd(e,t,n){return l(e)?(e=encodeURI(e).replace(t,Jd),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Jd(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(15&e).toString(16)}function yd(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function S(e){e.a||(e.a=new O,e.b=0,e.c&&rd(e.c,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function Ld(e,t){S(e),t=Kd(e,t),P(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,pd(e.a,t))}function Md(e,t){return S(e),t=Kd(e,t),P(e.a.b,t)}function Gd(e,t,n){Ld(e,t),0<n.length&&(e.c=null,e.a.set(Kd(e,t),wa(n)),e.b+=n.length)}function wd(e){var t=new yd;return t.c=e.c,e.a&&(t.a=new O(e.a),t.b=e.b),t}function Kd(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function Ed(e,t){t&&!e.f&&(S(e),e.c=null,e.a.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(Ld(this,t),Gd(this,n,e))},e)),e.f=t}function Nd(){this.a=t()}function Pd(){Od||(Od=new Nd)}function Qd(){Od||(Od=new Nd)}function Rd(e,t){this.a=e,this.b=t,this.c=this.i=null,this.h=!1,this.m=null,this.f=-1,this.l=this.g=null}function Sd(e){H(e.b,"TestConnection: starting stage 2");var t=e.a.I.a;if(null!=t)H(e.b,function(){return"Buffered"}),K(4),t?(K(10),Td(e.a,e,!1)):(K(11),Td(e.a,e,!0));else{e.c=new L(e,e.b,void 0,void 0),e.c.j=e.i;var n=Ud(e.a,e.g,e.m);K(4),$c(n,"TYPE","xmlhttp");var r=e.a.j,i=e.a.K;r&&i&&R(n,r,i),Yc(e.c,n,!1,e.g)}}function Wd(){this.a=this.b=null}function Xd(){this.a=new O}function Yd(e){var t=typeof e;return"object"==t&&e||"function"==t?"o"+(e[q]||(e[q]=++fa)):t.charAt(0)+e}function Zd(e,t){this.a=e,this.b=t}function $d(e){this.g=e||ae,k.PerformanceNavigationTiming?(e=k.performance.getEntriesByType("navigation"),e=0<e.length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol)):e=!!(k.oa&&k.oa.Ma&&k.oa.Ma()&&k.oa.Ma().Jb),this.f=e?this.g:1,this.a=null,1<this.f&&(this.a=new Xd),this.b=null,this.c=[]}function be(e,t){e.a||-1==t.indexOf("spdy")&&-1==t.indexOf("quic")&&-1==t.indexOf("h2")||(e.f=e.g,e.a=new Xd,e.b&&(ce(e,e.b),e.b=null))}function de(e){return!!e.b||!!e.a&&e.a.a.c>=e.f}function ee(e,t){return e.b?e=e.b==t:e.a?(t=Yd(t),e=P(e.a.a.b,t)):e=!1,e}function ce(e,t){e.a?e.a.add(t):e.b=t}function fe(e,t){if(e.b&&e.b==t)e.b=null;else{var n;(n=e.a)&&(n=Yd(t),n=P(e.a.a.b,n)),n&&pd(e.a.a,Yd(t))}}function ge(e){if(null!=e.b)return e.c.concat(e.b.u);if(null!=e.a&&0!=e.a.a.c){var t=e.c;return ra(e.a.A(),function(e){t=t.concat(e.u)}),t}return wa(e.c)}function he(e,t){e.c=e.c.concat(t)}function ie(){}function je(){this.a=new ie}function ke(e,t,n){var r=n||"";try{md(e,function(e,n){var i=e;ea(e)&&(i=Db(e)),t.push(r+n+"="+encodeURIComponent(i))})}catch(e){throw t.push(r+"type="+encodeURIComponent("_badmap")),e}}function le(e,t){var n=new sc;H(n,"TestLoadImage: loading "+e);var r=new Image;r.onload=ja(me,n,r,"TestLoadImage: loaded",!0,t),r.onerror=ja(me,n,r,"TestLoadImage: error",!1,t),r.onabort=ja(me,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=ja(me,n,r,"TestLoadImage: timeout",!1,t),k.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}function me(e,t,n,r,i){try{H(e,n),t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(t){xc(e,t)}}function T(e){B.call(this),this.headers=new O,this.s=e||null,this.c=!1,this.D=this.a=null,this.K=this.B="",this.j=0,this.g="",this.h=this.I=this.u=this.G=!1,this.l=0,this.C=null,this.L=ne,this.v=this.o=!1}function se(e){return z&&Va(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}function ta(e){return"content-type"==e.toLowerCase()}function qe(e,t){e.c=!1,e.a&&(e.h=!0,e.a.abort(),e.h=!1),e.g=t,e.j=5,te(e),ue(e)}function te(e){e.G||(e.G=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function ve(e){if(e.c&&"undefined"!=typeof goog)if(e.D[1]&&4==N(e)&&2==e.W())E(e.b,U(e,"Local request error detected and ignored"));else if(e.u&&4==N(e))Zb(e.Na,0,e);else if(e.dispatchEvent("readystatechange"),4==N(e)){E(e.b,U(e,"Request complete")),e.c=!1;try{var t=e.W();e:switch(t){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break e;default:n=!1}var r;if(!(r=n)){var i;if(i=0===t){var o=String(e.B).match(qd)[1]||null;if(!o&&k.self&&k.self.location){var a=k.self.location.protocol;o=a.substr(0,a.length-1)}i=!oe.test(o?o.toLowerCase():"")}r=i}r?(e.dispatchEvent("complete"),e.dispatchEvent("success")):(e.j=6,e.g=e.Ha()+" ["+e.W()+"]",te(e))}finally{ue(e)}}}function ue(e,t){if(e.a){re(e);var n=e.a,r=e.D[0]?aa:null;e.a=null,e.D=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(t){(e=e.b)&&e.log(ic,"Problem encountered resetting onreadystatechange: "+t.message,void 0)}}}function re(e){e.a&&e.v&&(e.a.ontimeout=null),e.C&&(k.clearTimeout(e.C),e.C=null)}function N(e){return e.a?e.a.readyState:0}function id(e,t){return e.a?e.a.getResponseHeader(t):null}function U(e,t){return t+" ["+e.K+" "+e.B+" "+e.W()+"]"}function we(e){var t="";return Ca(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function xe(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}if(r)return e;if(n=we(n),l(e)){if(t=encodeURIComponent(String(t)),n=null!=n?"="+encodeURIComponent(String(n)):"",t+=n){if(n=e.indexOf("#"),0>n&&(n=e.length),0>(r=e.indexOf("?"))||r>n){r=n;var i=""}else i=e.substring(r+1,n);e=[e.substr(0,r),i,e.substr(n)],n=e[1],e[1]=t?n?n+"&"+t:t:n,e=e[0]+(e[1]?"?"+e[1]:"")+e[2]}return e}return R(e,t,n),e}function ye(e){this.ya=0,this.g=[],this.a=new sc,this.I=new Wd,this.X=this.ua=this.D=this.ja=this.b=this.K=this.j=this.U=this.h=this.L=this.i=null,this.Za=this.R=0,this.Xa=!!n("internalChannelParams.failFast",e),this.ka=this.C=this.s=this.l=this.m=this.f=null,this.u=this.xa=this.N=-1,this.T=this.B=this.v=0,this.Wa=n("internalChannelParams.baseRetryDelayMs",e)||5e3,this.$a=n("internalChannelParams.retryDelaySeedMs",e)||1e4,this.Ya=n("internalChannelParams.forwardChannelMaxRetries",e)||2,this.wa=n("internalChannelParams.forwardChannelRequestTimeoutMs",e)||2e4,this.Ta=e&&e.Kb||void 0,this.G=void 0,this.S=e&&e.supportsCrossDomainXhr||!1,this.J="",this.c=new $d(e&&e.concurrentRequestLimit),this.la=new je,this.o=!e||void 0===e.backgroundChannelTest||e.backgroundChannelTest,(this.va=e&&e.fastHandshake||!1)&&!this.o&&(D(this.a.a,"Force backgroundChannelTest when fastHandshake is enabled."),this.o=!0),e&&e.Fa&&this.a.Fa()}function ze(e){if(H(e.a,"disconnect()"),Ae(e),3==e.F){var n=e.R++,r=M(e.D);R(r,"SID",e.J),R(r,"RID",n),R(r,"TYPE","terminate"),Be(e,r),n=new L(e,e.a,n,void 0),n.J=2,n.h=Wc(M(r)),r=!1,k.navigator&&k.navigator.sendBeacon&&(r=k.navigator.sendBeacon(n.h.toString(),"")),!r&&k.Image&&((new Image).src=n.h,r=!0),r||(n.a=n.i.ca(null),n.a.fa(n.h)),n.D=t(),Zc(n)}Ce(e)}function Ae(e){e.C&&(e.C.abort(),e.C=null),e.b&&(e.b.cancel(),e.b=null),e.l&&(k.clearTimeout(e.l),e.l=null),De(e),e.c.cancel(),e.m&&(k.clearTimeout(e.m),e.m=null)}function Ee(e,t){1e3==e.g.length&&J(e.a,function(){return"Already have 1000 queued maps upon queueing "+Db(t)}),e.g.push(new Zd(e.Za++,t)),3==e.F&&Fe(e)}function Fe(e){de(e.c)||e.m||(e.m=Ec(r(e.Qa,e),0),e.v=0)}function Ge(e,t){var n=e.c;return(n.b?1:n.a?n.a.a.c:0)>=e.c.f-(e.m?1:0)?(J(e.a,"Unexpected retry request is scheduled."),!1):e.m?(H(e.a,"Use the retry request that is already scheduled."),e.g=t.u.concat(e.g),!0):!(1==e.F||2==e.F||e.v>=(e.Xa?0:e.Ya))&&(H(e.a,"Going to retry POST"),e.m=Ec(r(e.Qa,e,t),He(e,e.v)),e.v++,!0)}function Je(e,t){var n;n=t?t.c:e.R++;var r=M(e.D);R(r,"SID",e.J),R(r,"RID",n),R(r,"AID",e.N),Be(e,r),e.h&&e.i&&xe(r,e.h,e.i),n=new L(e,e.a,n,e.v+1),null===e.h&&(n.j=e.i),t&&(e.g=t.u.concat(e.g)),t=Ie(e,n),n.setTimeout(Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random())),ce(e.c,n),Vc(n,r,t)}function Be(e,t){e.f&&md({},function(e,n){R(t,n,e)})}function Ie(e,t){var n=Math.min(e.g.length,1e3),i=e.f?r(e.f.ab,e.f,e):null;e:for(var o=e.g,a=-1;;){var s=["count="+n];-1==a?0<n?(a=o[0].a,s.push("ofs="+a)):a=0:s.push("ofs="+a);for(var u=!0,l=0;l<n;l++){var c=o[l].a,f=o[l].b;if(0>(c-=a))a=Math.max(0,o[l].a-100),u=!1;else try{ke(f,s,"req"+c+"_")}catch(e){i&&i(f)}}if(u){i=s.join("&");break e}}return e=e.g.splice(0,n),t.u=e,i}function Ke(e){if(!e.b&&!e.l){e.T=1;var t=e.Pa;Tb||Ub(),Wb||(Tb(),Wb=!0),Pb.add(t,e),e.B=0}}function Le(e){return e.b||e.l?(J(e.a,"Request already in progress"),!1):!(3<=e.B)&&(H(e.a,"Going to retry GET"),e.T++,e.l=Ec(r(e.Pa,e),He(e,e.B)),e.B++,!0)}function Td(e,t,n){H(e.a,"Test Connection Finished");var r=t.l;r&&be(e.c,r),e.ka=n,e.u=t.f,H(e.a,"connectChannel_()"),e.D=Me(e,e.ja),Fe(e)}function Vd(e,t){H(e.a,"Test Connection Failed"),e.u=t.f,V(e,2)}function De(e){null!=e.s&&(k.clearTimeout(e.s),e.s=null)}function He(e,t){var n=e.Wa+Math.floor(Math.random()*e.$a);return e.qa()||(H(e.a,"Inactive channel"),n*=2),n*t}function V(e,t){if(F(e.a,"Error code "+t),2==t){var n=null;e.f&&(n=null);var i=r(e.pb,e);n||(n=new Q("//www.google.com/images/cleardot.gif"),k.location&&"http"==k.location.protocol||sd(n,"https"),Wc(n)),le(n.toString(),i)}else K(2);H(e.a,"HttpChannel: error - "+t),e.F=0,e.f&&e.f.Ba(t),Ce(e),Ae(e)}function Ce(e){if(e.F=0,e.u=-1,e.f){var t=ge(e.c);0==t.length&&0==e.g.length||(H(e.a,function(){return"Number of undelivered maps, pending: "+t.length+", outgoing: "+e.g.length}),e.c.c.length=0,wa(e.g),e.g.length=0),e.f.Aa()}}function Me(e,t){return t=Ne(e,null,t),H(e.a,"GetForwardChannelUri: "+t),t}function Ud(e,t,n){return t=Ne(e,e.ia()?t:null,n),H(e.a,"GetBackChannelUri: "+t),t}function Ne(e,t,n){var r=Hd(n);if(""!=r.b)t&&td(r,t+"."+r.b),ud(r,r.i);else{var i,o=k.location;i=t?t+"."+o.hostname:o.hostname,r=Id(o.protocol,i,o.port,n)}return e.U&&Ca(e.U,function(e,t){R(r,t,e)}),t=e.j,n=e.K,t&&n&&R(r,t,n),R(r,"VER",e.na),Be(e,r),r}function Oe(){}function Pe(e){for(var t=arguments[0],n=1;n<arguments.length;n++){var r=arguments[n];if(0==r.lastIndexOf("/",0))t=r;else{var i;(i=""==t)||(i=t.length-1,i=0<=i&&t.indexOf("/",i)==i),t+=i?r:"/"+r}}return t}function Qe(){if(z&&!(10<=Number(Wa)))throw Error("Environmental error: no available transport.")}function W(e,t){B.call(this),this.a=new ye(t),this.b=e,this.o=t&&t.testUrl?t.testUrl:Pe(this.b,"test"),this.c=qc("goog.labs.net.webChannel.WebChannelBaseTransport"),this.g=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.a.i=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.Ea&&(e?e["X-WebChannel-Client-Profile"]=t.Ea:e={"X-WebChannel-Client-Profile":t.Ea}),this.a.L=e,(e=t&&t.httpHeadersOverwriteParam)&&!xa(e)&&(this.a.h=e),this.l=t&&t.supportsCrossDomainXhr||!1,this.j=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!xa(t)&&(this.a.j=t,null!==(e=this.g)&&t in e&&(e=this.g,t in e&&delete e[t],D(this.c,"Ignore httpSessionIdParam also specified with messageUrlParams: "+t))),this.h=new Re(this)}function Se(e){Mc.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.c=e)?(e=this.c,this.data=null!==t&&e in t?t[e]:void 0):this.data=t}else this.data=e}function Te(){Nc.call(this),this.status=1}function Re(e){this.a=e}function Ve(){this.b=[],this.a=[]}function We(e){return 0==e.b.length&&(e.b=e.a,e.b.reverse(),e.a=[]),e.b.pop()}function Xe(e){return e.b.length+e.a.length}function Ye(e,t){if(w.call(this),this.h=e||0,this.c=t||10,this.h>this.c)throw Error(Ze);this.a=new Ve,this.b=new Xd,this.g=null,this.aa()}function af(e){if("function"==typeof e.$)e.$();else for(var t in e)e[t]=null}function $e(e){return Xe(e.a)+e.b.a.c}function bf(e,t){this.a=e,this.b=t}function cf(e){if(this.a=[],e)e:{if(e instanceof cf){var t=e.M();if(e=e.A(),0>=this.a.length){for(var n=this.a,r=0;r<t.length;r++)n.push(new bf(t[r],e[r]));break e}}else t=Ea(e),e=Da(e);for(r=0;r<t.length;r++)df(this,t[r],e[r])}}function df(e,t,n){var r=e.a;for(r.push(new bf(t,n)),t=r.length-1,e=e.a,n=e[t];0<t&&(r=t-1>>1,e[r].a>n.a);)e[t]=e[r],t=r;e[t]=n}function ef(){cf.call(this)}function Y(e,t){this.f=new ef,Ye.call(this,e,t)}function Z(e,t,n,r){this.l=e,this.j=!!r,Y.call(this,t,n)}var g,goog=goog||{},k=this,q="closure_uid_"+(1e9*Math.random()>>>0),fa=0,t=Date.now||function(){return+new Date};u(ka,Error),ka.prototype.name="CustomError",u(la,ka),la.prototype.name="AssertionError";var na=0,pa={};w.prototype.i=!1,w.prototype.$=function(){if(!this.i&&(this.i=!0,this.w(),0!=na)){var e=this[q]||(this[q]=++fa);if(0!=na&&this.m&&0<this.m.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete pa[e]}},w.prototype.w=function(){if(this.m)for(;this.m.length;)this.m.shift()()};var qa=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(l(e))return l(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},ra=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i=l(e)?e.split(""):e,o=0;o<r;o++)o in i&&t.call(n,i[o],o,e)},ya=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},x;e:{var Aa=k.navigator;if(Aa){var Ba=Aa.userAgent;if(Ba){x=Ba;break e}}x=""}var Ga="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Ia[" "]=aa;var La=y("Opera"),z=y("Trident")||y("MSIE"),Ma=y("Edge"),Na=Ma||z,Oa=y("Gecko")&&!(-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),Pa=-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"),Ra;e:{var Sa="",Ta=function(){var e=x;return Oa?/rv:([^\);]+)(\)|;)/.exec(e):Ma?/Edge\/([\d\.]+)/.exec(e):z?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):Pa?/WebKit\/(\S+)/.exec(e):La?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(Ta&&(Sa=Ta?Ta[1]:""),z){var Ua=Qa();if(null!=Ua&&Ua>parseFloat(Sa)){Ra=String(Ua);break e}}Ra=Sa}var Ka={},Wa,Xa=k.document;Wa=Xa&&z?Qa()||("CSS1Compat"==Xa.compatMode?parseInt(Ra,10):5):void 0;var Ya=Object.freeze||function(e){return e},Za=!z||9<=Number(Wa),$a=z&&!Va("9"),ab=function(){if(!k.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});return k.addEventListener("test",aa,t),k.removeEventListener("test",aa,t),e}();A.prototype.b=function(){this.Ra=!1},u(bb,A);var cb=Ya({2:"touch",3:"pen",4:"mouse"});bb.prototype.b=function(){bb.H.b.call(this);var e=this.c;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,$a)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}};var db="closure_listenable_"+(1e6*Math.random()|0),eb=0;hb.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=ib(e,t,r,i);return-1<a?(t=e[a],n||(t.ba=!1)):(t=new fb(t,this.src,o,!!r,i),t.ba=n,e.push(t)),t};var kb="closure_lm_"+(1e6*Math.random()|0),lb={},mb=0,zb="__closure_events_fn_"+(1e9*Math.random()>>>0);u(B,w),B.prototype[db]=!0,g=B.prototype,g.addEventListener=function(e,t,n,r){nb(this,e,t,n,r)},g.removeEventListener=function(e,t,n,r){vb(this,e,t,n,r)},g.dispatchEvent=function(e){var t,n=this.J;if(n)for(t=[];n;n=n.J)t.push(n);n=this.N;var r=e.type||e;if(l(e))e=new A(e,n);else if(e instanceof A)e.target=e.target||n;else{var i=e;e=new A(r,n),Ha(e,i)}if(i=!0,t)for(var o=t.length-1;0<=o;o--){var a=e.a=t[o];i=Ab(a,r,!0,e)&&i}if(a=e.a=n,i=Ab(a,r,!0,e)&&i,i=Ab(a,r,!1,e)&&i,t)for(o=0;o<t.length;o++)a=e.a=t[o],i=Ab(a,r,!1,e)&&i;return i},g.w=function(){if(B.H.w.call(this),this.f){var e,t=this.f,n=0;for(e in t.a){for(var r=t.a[e],i=0;i<r.length;i++)++n,gb(r[i]);delete t.a[e],t.b--}}this.J=null},g.Ia=function(e,t,n,r){return this.f.add(String(e),t,!1,n,r)},g.Ja=function(e,t,n,r){return this.f.add(String(e),t,!0,n,r)};var Hb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Ib=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Jb.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var Nb=new Jb(function(){return new Lb},function(e){e.reset()});Kb.prototype.add=function(e,t){var n=Nb.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},Lb.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},Lb.prototype.reset=function(){this.next=this.b=this.a=null};var Rb,Tb,Wb=!1,Pb=new Kb;u(Xb,B),g=Xb.prototype,g.ea=!1,g.O=null,g.qb=function(){if(this.ea){var e=t()-this.g;0<e&&e<.8*this.b?this.O=this.a.setTimeout(this.c,this.b-e):(this.O&&(this.a.clearTimeout(this.O),this.O=null),this.dispatchEvent("tick"),this.ea&&(this.O=this.a.setTimeout(this.c,this.b),this.g=t()))}},g.start=function(){this.ea=!0,this.O||(this.O=this.a.setTimeout(this.c,this.b),this.g=t())},g.w=function(){Xb.H.w.call(this),Yb(this),delete this.a},u($b,w),g=$b.prototype,g.ha=!1,g.Y=null,g.cb=function(e){this.a=arguments,this.Y?this.ha=!0:ac(this)},g.w=function(){$b.H.w.call(this),this.Y&&(k.clearTimeout(this.Y),this.Y=null,this.ha=!1,this.a=[])},g.kb=function(){this.Y=null,this.ha&&(this.ha=!1,ac(this))},u(bc,w);var cc=[];bc.prototype.w=function(){bc.H.w.call(this),ec(this)},bc.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},fc.prototype.a=null;var gc=0;fc.prototype.reset=function(e,n,r,i,o){"number"==typeof o||gc++,i||t(),delete this.a},C.prototype.toString=function(){return this.name};var ic=new C("SEVERE",1e3),jc=new C("WARNING",900),kc=new C("INFO",800),lc=new C("CONFIG",700),mc=new C("FINE",500);hc.prototype.log=function(e,t,n){if(e.value>=nc(this).value)for(da(t)&&(t=t()),e=new fc(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var oc={},pc=null;sc.prototype.Fa=function(){this.b=!1};var yc=new B;u(zc,A),u(Bc,A),u(Cc,A);var Fc={NO_ERROR:0,rb:1,yb:2,xb:3,ub:4,wb:5,zb:6,Ua:7,TIMEOUT:8,Cb:9},Gc={tb:"complete",Gb:"success",Va:"error",Ua:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",vb:"downloadprogress",Hb:"uploadprogress"};Hc.prototype.a=null;var Lc={OPEN:"a",sb:"b",Va:"c",Bb:"d"};u(Mc,A),u(Nc,A);var Oc;u(Pc,Hc),Oc=new Pc;var Rc=45e3,Tc={},Uc={};g=L.prototype,g.setTimeout=function(e){this.R=e},g.nb=function(e){e=e.target;var t=this.I;t&&3==N(e)?(H(this.b,"Throttling readystatechange."),t.cb()):this.Sa(e)},g.Sa=function(e){try{e==this.a?ad(this):D(this.b.a,"Called back with an unexpected xmlhttp")}catch(e){if(H(this.b,"Failed call to OnXmlHttpReadyStateChanged_"),this.a&&this.a.V()){var t=this;xc(this.b,e,function(){return"ResponseText: "+t.a.V()})}else xc(this.b,e,"No response text")}},g.mb=function(){if(this.a){var e=N(this.a),t=this.a.V();this.G<t.length&&(bd(this),ed(this,e,t),this.f&&4!=e&&Zc(this))}},g.cancel=function(){this.B=!0,gd(this)},g.lb=function(){this.s=null;var e=t();0<=e-this.U?(this.f&&J(this.b,"Received watchdog timeout even though request loaded successfully"),wc(this.b,this.g),2!=this.J&&(Ac(3),K(17)),gd(this),this.m=2,hd(this)):(D(this.b.a,"WatchDog timer called too early"),kd(this,this.U-e))},g=O.prototype,g.A=function(){nd(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},g.M=function(){return nd(this),this.a.concat()},g.get=function(e,t){return P(this.b,e)?this.b[e]:t},g.set=function(e,t){P(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},g.forEach=function(e,t){for(var n=this.M(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var qd=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;Q.prototype.toString=function(){var e=[],t=this.f;t&&e.push(zd(t,Ad,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.j)&&e.push(zd(t,Ad,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&e.push(":",String(n))),(n=this.a)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(zd(n,"/"==n.charAt(0)?Bd:Cd,!0))),(n=this.c.toString())&&e.push("?",n),(n=this.g)&&e.push("#",zd(n,Dd)),e.join("")},Q.prototype.resolve=function(e){var t=M(this),n=!!e.f;n?sd(t,e.f):n=!!e.j,n?t.j=e.j:n=!!e.b,n?td(t,e.b):n=null!=e.i;var r=e.a;if(n)ud(t,e.i);else if(n=!!e.a){if("/"!=r.charAt(0))if(this.b&&!this.a)r="/"+r;else{var i=t.a.lastIndexOf("/");-1!=i&&(r=t.a.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?t.a=r:n=""!==e.c.toString(),n?vd(t,wd(e.c)):n=!!e.g,n&&(t.g=e.g),t};var Ad=/[#\/\?@]/g,Cd=/[#\?:]/g,Bd=/[#\?]/g,Fd=/[#\?@]/g,Dd=/#/g;g=yd.prototype,g.add=function(e,t){S(this),this.c=null,e=Kd(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},g.forEach=function(e,t){S(this),this.a.forEach(function(n,r){ra(n,function(n){e.call(t,n,r,this)},this)},this)},g.M=function(){S(this);for(var e=this.a.A(),t=this.a.M(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},g.A=function(e){S(this);var t=[];if(l(e))Md(this,e)&&(t=va(t,this.a.get(Kd(this,e))));else{e=this.a.A();for(var n=0;n<e.length;n++)t=va(t,e[n])}return t},g.set=function(e,t){return S(this),this.c=null,e=Kd(this,e),Md(this,e)&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},g.get=function(e,t){return e=e?this.A(e):[],0<e.length?String(e[0]):t},g.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.M(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.A(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),e.push(a)}}return this.c=e.join("&")};var Od=null;Nd.prototype.set=function(e){this.a=e},Nd.prototype.reset=function(){this.set(t())},Nd.prototype.get=function(){return this.a},u(Qd,Pd),g=Rd.prototype,g.P=null,g.ca=function(e){return this.a.ca(e)},g.abort=function(){this.c&&(this.c.cancel(),this.c=null),this.f=-1},g.La=function(){return!1},g.Oa=function(e,t){if(this.f=e.C,0==this.P){if(H(this.b,"TestConnection: Got data for stage 1"),!this.a.o&&(e=e.a)){var n=id(e,"X-Client-Wire-Protocol");this.l=n||null,this.a.j&&((e=id(e,"X-HTTP-Session-Id"))?this.a.K=e:D(this.b.a,"Missing X_HTTP_SESSION_ID in the handshake response"))}if(t){try{var r=this.a.la.a.parse(t)}catch(e){return xc(this.b,e),void Vd(this.a,this)}this.g=r[0]}else H(this.b,"TestConnection: Null responseText"),Vd(this.a,this)}else 1==this.P&&(this.h?K(6):"11111"==t?(K(5),this.h=!0,(!z||10<=Number(Wa))&&(this.f=200,this.c.cancel(),H(this.b,"Test connection succeeded; using streaming connection"),K(11),Td(this.a,this,!0))):(K(7),this.h=!1))},g.ta=function(){this.f=this.c.C,this.c.f?0==this.P?(this.P=1,H(this.b,"TestConnection: request complete for initial check"),Sd(this)):1==this.P&&(H(this.b,"TestConnection: request complete for stage 2"),this.h?(H(this.b,"Test connection succeeded; using streaming connection"),K(11),Td(this.a,this,!0)):(H(this.b,"Test connection failed; not using streaming"),K(10),Td(this.a,this,!1))):(H(this.b,"TestConnection: request failed, in state "+this.P),0==this.P?K(8):1==this.P&&K(9),Vd(this.a,this))},g.ia=function(){return this.a.ia()},g.qa=function(){return this.a.qa()},Xd.prototype.add=function(e){this.a.set(Yd(e),e)},Xd.prototype.A=function(){return this.a.A()};var ae=10;$d.prototype.cancel=function(){this.c=ge(this),this.b?(this.b.cancel(),this.b=null):this.a&&0!=this.a.a.c&&(ra(this.a.A(),function(e){e.cancel()}),od(this.a.a))},ie.prototype.stringify=function(e){return k.JSON.stringify(e,void 0)},ie.prototype.parse=function(e){return k.JSON.parse(e,void 0)},u(T,B);var ne="";T.prototype.b=qc("goog.net.XhrIo");var oe=/^https?$/i,pe=["POST","PUT"];g=T.prototype,g.fa=function(e,t,n,i){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+e);t=t?t.toUpperCase():"GET",this.B=e,this.g="",this.j=0,this.K=t,this.G=!1,this.c=!0,this.a=Qc(this.s?this.s:Oc),this.D=Ic(this.s?this.s:Oc),this.a.onreadystatechange=r(this.Na,this);try{E(this.b,U(this,"Opening Xhr")),this.I=!0,this.a.open(t,String(e),!0),this.I=!1}catch(e){return E(this.b,U(this,"Error opening Xhr: "+e.message)),void qe(this,e)}e=n||"";var o=new O(this.headers);i&&md(i,function(e,t){o.set(t,e)}),i=sa(o.M()),n=k.FormData&&e instanceof k.FormData,!(0<=qa(pe,t))||i||n||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(e,t){this.a.setRequestHeader(t,e)},this),this.L&&(this.a.responseType=this.L),"withCredentials"in this.a&&this.a.withCredentials!==this.o&&(this.a.withCredentials=this.o);try{re(this),0<this.l&&(this.v=se(this.a),E(this.b,U(this,"Will abort after "+this.l+"ms if incomplete, xhr2 "+this.v)),this.v?(this.a.timeout=this.l,this.a.ontimeout=r(this.Ka,this)):this.C=Zb(this.Ka,this.l,this)),E(this.b,U(this,"Sending request")),this.u=!0,this.a.send(e),this.u=!1}catch(e){E(this.b,U(this,"Send error: "+e.message)),qe(this,e)}},g.Ka=function(){"undefined"!=typeof goog&&this.a&&(this.g="Timed out after "+this.l+"ms, aborting",this.j=8,E(this.b,U(this,this.g)),this.dispatchEvent("timeout"),this.abort(8))},g.abort=function(e){this.a&&this.c&&(E(this.b,U(this,"Aborting")),this.c=!1,this.h=!0,this.a.abort(),this.h=!1,this.j=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ue(this))},g.w=function(){this.a&&(this.c&&(this.c=!1,this.h=!0,this.a.abort(),this.h=!1),ue(this,!0)),T.H.w.call(this)},g.Na=function(){this.i||(this.I||this.u||this.h?ve(this):this.jb())},g.jb=function(){ve(this)},g.W=function(){try{return 2<N(this)?this.a.status:-1}catch(e){return-1}},g.Ha=function(){try{return 2<N(this)?this.a.statusText:""}catch(e){return E(this.b,"Can not get status: "+e.message),""}},g.V=function(){try{return this.a?this.a.responseText:""}catch(e){return E(this.b,"Can not get responseText: "+e.message),""}},g.eb=function(e){if(this.a){var t=this.a.responseText;e&&0==t.indexOf(e)&&(t=t.substring(e.length));e:{if(e=t,k.JSON)try{var n=k.JSON.parse(e);break e}catch(e){}n=Cb(e)}return n}},g.Ga=function(){return this.j},g.hb=function(){return l(this.g)?this.g:String(this.g)},g=ye.prototype,g.na=8,g.F=1,g.La=function(){return 0==this.F},g.Qa=function(e){if(this.m=null,H(this.a,"startForwardChannel_"),1==this.F)if(e)J(this.a,"Not supposed to retry the open");else{H(this.a,"open_()"),this.R=Math.floor(1e5*Math.random()),e=this.R++;var t=new L(this,this.a,e,void 0),n=this.i;this.L&&(n?(n=Fa(n),Ha(n,this.L)):n=this.L),null===this.h&&(t.j=n);var r=Ie(this,t),i=M(this.D);R(i,"RID",e),R(i,"CVER",22),this.o&&this.j&&R(i,"X-HTTP-Session-Id",this.j),Be(this,i),this.h&&n&&xe(i,this.h,n),ce(this.c,t),this.va?(R(i,"$req",r),R(i,"SID","null"),t.X=!0,Vc(t,i,null)):Vc(t,i,r),this.F=2}else 3==this.F&&(e?Je(this,e):0==this.g.length?H(this.a,"startForwardChannel_ returned: nothing to send"):de(this.c)?J(this.a,"startForwardChannel_ returned: connection already in progress"):(Je(this),H(this.a,"startForwardChannel_ finished, sent request")))},g.Pa=function(){this.l=null,H(this.a,"Creating new HttpRequest"),this.b=new L(this,this.a,"rpc",this.T),null===this.h&&(this.b.j=this.i),this.b.N=0;var e=M(this.ua);R(e,"RID","rpc"),R(e,"SID",this.J),R(e,"CI",this.ka?"0":"1"),R(e,"AID",this.N),Be(this,e),R(e,"TYPE","xmlhttp"),this.h&&this.i&&xe(e,this.h,this.i),this.G&&this.b.setTimeout(this.G),Yc(this.b,e,!0,this.X),H(this.a,"New Request created")},g.Oa=function(e,t){if(0!=this.F&&(this.b==e||ee(this.c,e)))if(this.u=e.C,!e.v&&ee(this.c,e)&&3==this.F){try{var n=this.la.a.parse(t)}catch(e){n=null}if(p(n)&&3==n.length)if(t=n,0==t[0])e:if(H(this.a,"Server claims our backchannel is missing."),this.l)H(this.a,"But we are currently starting the request.");else{if(this.b){if(!(this.b.D+3e3<e.D))break e;De(this),this.b.cancel(),this.b=null}else D(this.a.a,"We do not have a BackChannel established");Le(this),K(18)}else this.xa=t[1],0<(e=this.xa-this.N)&&(t=t[2],H(this.a,t+" bytes (in "+e+" arrays) are outstanding on the BackChannel"),37500>t&&this.ka&&0==this.B&&!this.s&&(this.s=Ec(r(this.ib,this),6e3)));else H(this.a,"Bad POST response data returned"),V(this,11)}else if((e.v||this.b==e)&&De(this),!xa(t))for(t=n=this.la.a.parse(t),n=0;n<t.length;n++){var i=t[n];if(this.N=i[0],i=i[1],2==this.F)if("c"==i[0]){this.J=i[1],this.X=i[2];var o=i[3];null!=o&&(this.na=o,F(this.a,"VER="+this.na)),o=i[4],null!=o&&(this.ya=o,F(this.a,"SVER="+this.ya)),i=i[5],null!=i&&"number"==typeof i&&0<i&&(this.G=i*=1.5,F(this.a,"backChannelRequestTimeoutMs_="+i)),this.o&&(i=e.a)&&((o=id(i,"X-Client-Wire-Protocol"))&&be(this.c,o),this.j&&((i=id(i,"X-HTTP-Session-Id"))?(this.K=i,R(this.D,this.j,i)):D(this.a.a,"Missing X_HTTP_SESSION_ID in the handshake response"))),this.F=3,this.f&&this.f.Da(),i=e,this.ua=Ud(this,this.X,this.ja),i.v?(H(this.a,"Upgrade the handshake request to a backchannel."),fe(this.c,i),(o=this.G)&&i.setTimeout(o),i.s&&(bd(i),Zc(i)),this.b=i):Ke(this)}else"stop"!=i[0]&&"close"!=i[0]||V(this,7);else 3==this.F&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?V(this,7):ze(this):"noop"!=i[0]&&this.f&&this.f.Ca(i),this.B=0)}},g.ib=function(){null!=this.s&&(this.s=null,this.b.cancel(),this.b=null,Le(this),K(19))},g.ta=function(e){H(this.a,"Request complete");var n=null;if(this.b==e){De(this),this.b=null;var r=2}else{if(!ee(this.c,e))return;n=e.u,fe(this.c,e),r=1}if(this.u=e.C,0!=this.F)if(e.f)1==r?(Dc(e.l?e.l.length:0,t()-e.D,this.v),Fe(this)):Ke(this);else{var i=e.m;if(3==i||0==i&&0<this.u)H(this.a,"Not retrying due to error type");else{var o=this;if(H(this.a,function(){return"Maybe retrying, last error: "+Sc(i,o.u)}),1==r&&Ge(this,e)||2==r&&Le(this))return;H(this.a,"Exceeded max number of retries")}switch(n&&0<n.length&&he(this.c,n),H(this.a,"Error: HTTP request failed"),i){case 1:V(this,5);break;case 4:V(this,10);break;case 3:V(this,6);break;default:V(this,2)}}},g.pb=function(e){e?(F(this.a,"Successfully pinged google.com"),K(2)):(F(this.a,"Failed to ping google.com"),K(1))},g.ca=function(e){if(e&&!this.S)throw Error("Can't create secondary domain capable XhrIo object.");return e=new T(this.Ta),e.o=this.S,e},g.qa=function(){return!!this.f&&!0},g.ia=function(){return this.S},new Qd,g=Oe.prototype,g.Da=function(){},g.Ca=function(){},g.Ba=function(){},g.Aa=function(){},g.ab=function(){},Qe.prototype.a=function(e,t){return new W(e,t)},u(W,B),g=W.prototype,g.addEventListener=function(e,t,n,r){W.H.addEventListener.call(this,e,t,n,r)},g.removeEventListener=function(e,t,n,r){W.H.removeEventListener.call(this,e,t,n,r)},g.fb=function(){this.a.f=this.h,this.l&&(this.a.S=!0);var e=this.a,t=this.o,n=this.b,r=this.g||void 0;H(e.a,"connect()"),K(0),e.ja=n,e.U=r||{},e.o&&(H(e.a,"connect() bypassed channel-test."),e.I.b=[],e.I.a=!1),H(e.a,"connectTest_()"),e.C=new Rd(e,e.a),null===e.h&&(e.C.i=e.i),n=t,e.h&&e.i&&(n=xe(t,e.h,e.i)),e=e.C,e.m=n,t=Me(e.a,e.m),K(3),n=e.a.I.b,null!=n?(e.g=n[0],e.P=1,Sd(e)):($c(t,"MODE","init"),!e.a.o&&e.a.j&&$c(t,"X-HTTP-Session-Id",e.a.j),e.c=new L(e,e.b,void 0,void 0),e.c.j=e.i,Yc(e.c,t,!1,null),e.P=0)},g.close=function(){ze(this.a)},g.gb=function(e){if(l(e)){var t={};t.__data__=e,Ee(this.a,t)}else this.j?(t={},t.__data__=Db(e),Ee(this.a,t)):Ee(this.a,e)},g.w=function(){this.a.f=null,delete this.h,ze(this.a),delete this.a,W.H.w.call(this)},u(Se,Mc),u(Te,Nc),u(Re,Oe),Re.prototype.Da=function(){rc(this.a.c,"WebChannel opened on "+this.a.b),this.a.dispatchEvent("a")},Re.prototype.Ca=function(e){this.a.dispatchEvent(new Se(e))},Re.prototype.Ba=function(e){rc(this.a.c,"WebChannel aborted on "+this.a.b+" due to channel error: "+e),this.a.dispatchEvent(new Te(e))},Re.prototype.Aa=function(){rc(this.a.c,"WebChannel closed on "+this.a.b),this.a.dispatchEvent("b")};var Ue=ja(function(e,t){function n(){}n.prototype=e.prototype;var r=new n;return e.apply(r,Array.prototype.slice.call(arguments,1)),r},Qe);Ve.prototype.A=function(){for(var e=[],t=this.b.length-1;0<=t;--t)e.push(this.b[t]);var n=this.a.length;for(t=0;t<n;++t)e.push(this.a[t]);return e},u(Ye,w);var Ze="[goog.structs.Pool] Min can not be greater than max";g=Ye.prototype,g.da=function(){var e=t();if(!(null!=this.g&&0>e-this.g)){for(var n;0<Xe(this.a)&&(n=We(this.a),!this.sa(n));)this.aa();return!n&&$e(this)<this.c&&(n=this.pa()),n&&(this.g=e,this.b.add(n)),n}},g.ob=function(e){return!!pd(this.b.a,Yd(e))&&(this.ma(e),!0)},g.ma=function(e){pd(this.b.a,Yd(e)),this.sa(e)&&$e(this)<this.c?this.a.a.push(e):af(e)},g.aa=function(){for(var e=this.a;$e(this)<this.h;){var t=this.pa();e.a.push(t)}for(;$e(this)>this.c&&0<Xe(this.a);)af(We(e))},g.pa=function(){return{}},g.sa=function(e){return"function"!=typeof e.bb||e.bb()},g.w=function(){if(Ye.H.w.call(this),0<this.b.a.c)throw Error("[goog.structs.Pool] Objects not released");delete this.b;for(var e=this.a;0!=e.b.length||0!=e.a.length;)af(We(e));delete this.a},cf.prototype.A=function(){for(var e=this.a,t=[],n=e.length,r=0;r<n;r++)t.push(e[r].b);return t},cf.prototype.M=function(){for(var e=this.a,t=[],n=e.length,r=0;r<n;r++)t.push(e[r].a);return t},u(ef,cf),u(Y,Ye),g=Y.prototype,g.da=function(e,t){if(!e)return Y.H.da.call(this);df(this.f,void 0!==t?t:100,e),this.ra()},g.ra=function(){for(var e=this.f;0<e.a.length;){var t=this.da();if(!t)break;var n=e,r=n.a,i=r.length,o=r[0];if(0>=i)o=void 0;else{if(1==i)ua(r);else{r[0]=r.pop(),r=0,n=n.a,i=n.length;for(var a=n[r];r>1;){var s=2*r+1,u=2*r+2;if(s=u<i&&n[u].a<n[s].a?u:s,n[s].a>a.a)break;n[r]=n[s],r=s}n[r]=a}o=o.b}o.apply(this,[t])}},g.ma=function(e){Y.H.ma.call(this,e),this.ra()},g.aa=function(){Y.H.aa.call(this),this.ra()},g.w=function(){Y.H.w.call(this),k.clearTimeout(void 0),ua(this.f.a),this.f=null},u(Z,Y),Z.prototype.pa=function(){var e=new T,t=this.l;return t&&t.forEach(function(t,n){e.headers.set(n,t)}),this.j&&(e.o=!0),e},Z.prototype.sa=function(e){return!e.i&&!e.a},Qe.prototype.createWebChannel=Qe.prototype.a,W.prototype.send=W.prototype.gb,W.prototype.open=W.prototype.fb,W.prototype.close=W.prototype.close,Fc.NO_ERROR=0,Fc.TIMEOUT=8,Fc.HTTP_ERROR=6,Gc.COMPLETE="complete",Kc.EventType=Lc,Lc.OPEN="a",Lc.CLOSE="b",Lc.ERROR="c",Lc.MESSAGE="d",B.prototype.listen=B.prototype.Ia,Z.prototype.getObject=Z.prototype.da,Z.prototype.releaseObject=Z.prototype.ob,T.prototype.listenOnce=T.prototype.Ja,T.prototype.getLastError=T.prototype.hb,T.prototype.getLastErrorCode=T.prototype.Ga,T.prototype.getStatus=T.prototype.W,T.prototype.getStatusText=T.prototype.Ha,T.prototype.getResponseJson=T.prototype.eb,T.prototype.getResponseText=T.prototype.V,T.prototype.getResponseText=T.prototype.V,T.prototype.send=T.prototype.fa,module.exports={createWebChannelTransport:Ue,ErrorCode:Fc,EventType:Gc,WebChannel:Kc,XhrIoPool:Z}}).call("undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}).call(exports,__webpack_require__(20))},function(e,t,n){"use strict";function r(e){if(e>=200&&e<300)return"ok";switch(e){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function i(e,t,n){var i=r(e),o=i,a=void 0;try{var s=t.error;if(s){var u=s.status;if("string"===typeof u){if(!c[u])return new f("internal","internal");i=c[u]}o=u;var l=s.message;"string"===typeof l&&(o=l),a=s.details,void 0!==a&&(a=n.decode(a))}}catch(e){}return"ok"===i?null:new f(i,o,a)}function o(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function a(e,t,n){return new p(e,n)}function s(e){var t={Functions:p};e.INTERNAL.registerService(m,a,t,void 0,!0)}Object.defineProperty(t,"__esModule",{value:!0});var u=n(51),l=function(e){return e&&"object"===typeof e&&"default"in e?e.default:e}(n(35)),c={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},f=function(e){function t(n,r,i){var o=e.call(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o.code=n,o.details=i,o}return u.__extends(t,e),t}(Error),d=function(){function e(e){this.app=e}return e.prototype.getAuthToken=function(){return u.__awaiter(this,void 0,void 0,function(){var e,t;return u.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.app.INTERNAL.getToken()];case 1:return e=n.sent(),e?[2,e.accessToken]:[2,void 0];case 2:return t=n.sent(),[2,void 0];case 3:return[2]}})})},e.prototype.getInstanceIdToken=function(){return u.__awaiter(this,void 0,void 0,function(){var e,t,n;return u.__generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),this.app.messaging?(e=this.app.messaging(),[4,e.getToken()]):[2,void 0];case 1:return t=r.sent(),t?[2,t]:[2,void 0];case 2:return n=r.sent(),[2,void 0];case 3:return[2]}})})},e.prototype.getContext=function(){return u.__awaiter(this,void 0,void 0,function(){var e,t;return u.__generator(this,function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return e=n.sent(),[4,this.getInstanceIdToken()];case 2:return t=n.sent(),[2,{authToken:e,instanceIdToken:t}]}})})},e}(),h=function(){function e(){}return e.prototype.encode=function(e){var t=this;if(null===e||void 0===e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e))return e.map(function(e){return t.encode(e)});if("function"===typeof e||"object"===typeof e)return o(e,function(e){return t.encode(e)});throw new Error("Data cannot be encoded in JSON: "+e)},e.prototype.decode=function(e){var t=this;if(null===e)return e;if(e["@type"])switch(e["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var n=parseFloat(e.value);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+e);return n;default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map(function(e){return t.decode(e)}):"function"===typeof e||"object"===typeof e?o(e,function(e){return t.decode(e)}):e},e}(),p=function(){function e(e,t){void 0===t&&(t="us-central1"),this.app_=e,this.region_=t,this.serializer=new h,this.emulatorOrigin=null,this.contextProvider=new d(e)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),e.prototype._url=function(e){var t=this.app_.options.projectId,n=this.region_;if(null!==this.emulatorOrigin){return this.emulatorOrigin+"/"+t+"/"+n+"/"+e}return"https://"+n+"-"+t+".cloudfunctions.net/"+e},e.prototype.useFunctionsEmulator=function(e){this.emulatorOrigin=e},e.prototype.httpsCallable=function(e){var t=this;return function(n){return t.call(e,n)}},e.prototype.postJSON=function(e,t,n){return u.__awaiter(this,void 0,void 0,function(){var r,i,o,a;return u.__generator(this,function(s){switch(s.label){case 0:n.append("Content-Type","application/json"),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:"POST",body:JSON.stringify(t),headers:n})];case 2:return r=s.sent(),[3,4];case 3:return i=s.sent(),[2,{status:0,json:null}];case 4:o=null,s.label=5;case 5:return s.trys.push([5,7,,8]),[4,r.json()];case 6:return o=s.sent(),[3,8];case 7:return a=s.sent(),[3,8];case 8:return[2,{status:r.status,json:o}]}})})},e.prototype.call=function(e,t){return u.__awaiter(this,void 0,void 0,function(){var n,r,o,a,s,l,c,d;return u.__generator(this,function(u){switch(u.label){case 0:return n=this._url(e),t=this.serializer.encode(t),r={data:t},o=new Headers,[4,this.contextProvider.getContext()];case 1:return a=u.sent(),a.authToken&&o.append("Authorization","Bearer "+a.authToken),a.instanceIdToken&&o.append("Firebase-Instance-ID-Token",a.instanceIdToken),[4,this.postJSON(n,r,o)];case 2:if(s=u.sent(),l=i(s.status,s.json,this.serializer))throw l;if(!s.json)throw new f("internal","Response is not valid JSON object.");if(c=s.json.data,"undefined"===typeof c&&(c=s.json.result),"undefined"===typeof c)throw new f("internal","Response is missing data field.");return d=this.serializer.decode(c),[2,{data:d}]}})})},e}(),m="functions";s(l),t.registerFunctions=s},function(e,t,n){"use strict";function r(e,t){if(null==e||null==t)return!1;if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e),r=new DataView(t),i=0;i<e.byteLength;i++)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function i(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(null,t))}function o(e){return i(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function a(e){for(var t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length),o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}function s(e){if(e.objectStoreNames.contains(D)){var t=e.transaction(D),n=t.objectStore(D),r=new I,i=n.openCursor();i.onerror=function(e){console.warn("Unable to cleanup old IDB.",e)},i.onsuccess=function(){var t=i.result;if(t){var n=t.value;r.deleteToken(n.fcmSenderId,n.fcmToken,n.fcmPushSet),t.continue()}else e.close(),indexedDB.deleteDatabase(A)}}}function u(){var e=indexedDB.open(A);e.onerror=function(e){},e.onsuccess=function(t){s(e.result)}}function l(e){return new Promise(function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function c(e){if(e.fcmToken&&("string"!==typeof e.fcmToken||0===e.fcmToken.length))throw C.create(S.BAD_TOKEN);if(e.swScope&&("string"!==typeof e.swScope||0===e.swScope.length))throw C.create(S.BAD_SCOPE);if(e.vapidKey&&(!(e.vapidKey instanceof Uint8Array)||65!==e.vapidKey.length))throw C.create(S.BAD_VAPID_KEY);if(e.endpoint&&("string"!==typeof e.endpoint||0===e.endpoint.length))throw C.create(S.BAD_SUBSCRIPTION);if(e.auth&&!(e.auth instanceof ArrayBuffer))throw C.create(S.BAD_SUBSCRIPTION);if(e.p256dh&&!(e.p256dh instanceof ArrayBuffer))throw C.create(S.BAD_SUBSCRIPTION);if(e.fcmSenderId&&("string"!==typeof e.fcmSenderId||0===e.fcmSenderId.length))throw C.create(S.BAD_SENDER_ID);if(e.fcmPushSet&&("string"!==typeof e.fcmPushSet||0===e.fcmPushSet.length))throw C.create(S.BAD_PUSH_SET)}function f(e,t,n){if(!n.vapidKey||!r(t.buffer,n.vapidKey.buffer))return!1;var i=e.endpoint===n.endpoint,o=r(e.getKey("auth"),n.auth),a=r(e.getKey("p256dh"),n.p256dh);return i&&o&&a}function d(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function h(e,t){return n={},n[w.TYPE_OF_MSG]=e,n[w.DATA]=t,n;var n}function p(){return Object(E.__awaiter)(this,void 0,void 0,function(){var e,t,n,r;return Object(E.__generator)(this,function(i){switch(i.label){case 0:if(!(e=document.querySelector('link[rel="manifest"]')))return[2];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch(e.href)];case 2:return n=i.sent(),[4,n.json()];case 3:return t=i.sent(),[3,5];case 4:return r=i.sent(),[2];case 5:if(!t||!t.gcm_sender_id)return[2];if("103953800507"!==t.gcm_sender_id)throw C.create(S.INCORRECT_GCM_SENDER_ID);return[2]}})})}function m(e){var t=function(e){if(!v())throw C.create(S.UNSUPPORTED_BROWSER);return self&&"ServiceWorkerGlobalScope"in self?new U(e):new B(e)},n={isSupported:v};e.INTERNAL.registerService("messaging",t,n)}function v(){return self&&"ServiceWorkerGlobalScope"in self?g():y()}function y(){return navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function g(){return"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"registerMessaging",function(){return m}),n.d(t,"isSupported",function(){return v});var b,w,_=n(85),E=(n.n(_),n(51)),T=n(35),x=n.n(T),S={AVAILABLE_IN_WINDOW:"only-available-in-window",AVAILABLE_IN_SW:"only-available-in-sw",SHOULD_BE_INHERITED:"should-be-overriden",BAD_SENDER_ID:"bad-sender-id",INCORRECT_GCM_SENDER_ID:"incorrect-gcm-sender-id",PERMISSION_DEFAULT:"permission-default",PERMISSION_BLOCKED:"permission-blocked",UNSUPPORTED_BROWSER:"unsupported-browser",NOTIFICATIONS_BLOCKED:"notifications-blocked",FAILED_DEFAULT_REGISTRATION:"failed-serviceworker-registration",SW_REGISTRATION_EXPECTED:"sw-registration-expected",GET_SUBSCRIPTION_FAILED:"get-subscription-failed",INVALID_SAVED_TOKEN:"invalid-saved-token",SW_REG_REDUNDANT:"sw-reg-redundant",TOKEN_SUBSCRIBE_FAILED:"token-subscribe-failed",TOKEN_SUBSCRIBE_NO_TOKEN:"token-subscribe-no-token",TOKEN_SUBSCRIBE_NO_PUSH_SET:"token-subscribe-no-push-set",TOKEN_UNSUBSCRIBE_FAILED:"token-unsubscribe-failed",TOKEN_UPDATE_FAILED:"token-update-failed",TOKEN_UPDATE_NO_TOKEN:"token-update-no-token",USE_SW_BEFORE_GET_TOKEN:"use-sw-before-get-token",INVALID_DELETE_TOKEN:"invalid-delete-token",DELETE_TOKEN_NOT_FOUND:"delete-token-not-found",DELETE_SCOPE_NOT_FOUND:"delete-scope-not-found",BG_HANDLER_FUNCTION_EXPECTED:"bg-handler-function-expected",NO_WINDOW_CLIENT_TO_MSG:"no-window-client-to-msg",UNABLE_TO_RESUBSCRIBE:"unable-to-resubscribe",NO_FCM_TOKEN_FOR_RESUBSCRIBE:"no-fcm-token-for-resubscribe",FAILED_TO_DELETE_TOKEN:"failed-to-delete-token",NO_SW_IN_REG:"no-sw-in-reg",BAD_SCOPE:"bad-scope",BAD_VAPID_KEY:"bad-vapid-key",BAD_SUBSCRIPTION:"bad-subscription",BAD_TOKEN:"bad-token",BAD_PUSH_SET:"bad-push-set",FAILED_DELETE_VAPID_KEY:"failed-delete-vapid-key",INVALID_PUBLIC_VAPID_KEY:"invalid-public-vapid-key",USE_PUBLIC_KEY_BEFORE_GET_TOKEN:"use-public-key-before-get-token",PUBLIC_KEY_DECRYPTION_FAILED:"public-vapid-key-decryption-failed"},k=(b={},b[S.AVAILABLE_IN_WINDOW]="This method is available in a Window context.",b[S.AVAILABLE_IN_SW]="This method is available in a service worker context.",b[S.SHOULD_BE_INHERITED]="This method should be overriden by extended classes.",b[S.BAD_SENDER_ID]="Please ensure that 'messagingSenderId' is set correctly in the options passed into firebase.initializeApp().",b[S.PERMISSION_DEFAULT]="The required permissions were not granted and dismissed instead.",b[S.PERMISSION_BLOCKED]="The required permissions were not granted and blocked instead.",b[S.UNSUPPORTED_BROWSER]="This browser doesn't support the API's required to use the firebase SDK.",b[S.NOTIFICATIONS_BLOCKED]="Notifications have been blocked.",b[S.FAILED_DEFAULT_REGISTRATION]="We are unable to register the default service worker. {$browserErrorMessage}",b[S.SW_REGISTRATION_EXPECTED]="A service worker registration was the expected input.",b[S.GET_SUBSCRIPTION_FAILED]="There was an error when trying to get any existing Push Subscriptions.",b[S.INVALID_SAVED_TOKEN]="Unable to access details of the saved token.",b[S.SW_REG_REDUNDANT]="The service worker being used for push was made redundant.",b[S.TOKEN_SUBSCRIBE_FAILED]="A problem occured while subscribing the user to FCM: {$message}",b[S.TOKEN_SUBSCRIBE_NO_TOKEN]="FCM returned no token when subscribing the user to push.",b[S.TOKEN_SUBSCRIBE_NO_PUSH_SET]="FCM returned an invalid response when getting an FCM token.",b[S.TOKEN_UNSUBSCRIBE_FAILED]="A problem occured while unsubscribing the user from FCM: {$message}",b[S.TOKEN_UPDATE_FAILED]="A problem occured while updating the user from FCM: {$message}",b[S.TOKEN_UPDATE_NO_TOKEN]="FCM returned no token when updating the user to push.",b[S.USE_SW_BEFORE_GET_TOKEN]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",b[S.INVALID_DELETE_TOKEN]="You must pass a valid token into deleteToken(), i.e. the token from getToken().",b[S.DELETE_TOKEN_NOT_FOUND]="The deletion attempt for token could not be performed as the token was not found.",b[S.DELETE_SCOPE_NOT_FOUND]="The deletion attempt for service worker scope could not be performed as the scope was not found.",b[S.BG_HANDLER_FUNCTION_EXPECTED]="The input to setBackgroundMessageHandler() must be a function.",b[S.NO_WINDOW_CLIENT_TO_MSG]="An attempt was made to message a non-existant window client.",b[S.UNABLE_TO_RESUBSCRIBE]="There was an error while re-subscribing the FCM token for push messaging. Will have to resubscribe the user on next visit. {$message}",b[S.NO_FCM_TOKEN_FOR_RESUBSCRIBE]="Could not find an FCM token and as a result, unable to resubscribe. Will have to resubscribe the user on next visit.",b[S.FAILED_TO_DELETE_TOKEN]="Unable to delete the currently saved token.",b[S.NO_SW_IN_REG]="Even though the service worker registration was successful, there was a problem accessing the service worker itself.",b[S.INCORRECT_GCM_SENDER_ID]="Please change your web app manifest's 'gcm_sender_id' value to '103953800507' to use Firebase messaging.",b[S.BAD_SCOPE]="The service worker scope must be a string with at least one character.",b[S.BAD_VAPID_KEY]="The public VAPID key is not a Uint8Array with 65 bytes.",b[S.BAD_SUBSCRIPTION]="The subscription must be a valid PushSubscription.",b[S.BAD_TOKEN]="The FCM Token used for storage / lookup was not a valid token string.",b[S.BAD_PUSH_SET]="The FCM push set used for storage / lookup was not not a valid push set string.",b[S.FAILED_DELETE_VAPID_KEY]="The VAPID key could not be deleted.",b[S.INVALID_PUBLIC_VAPID_KEY]="The public VAPID key must be a string.",b[S.PUBLIC_KEY_DECRYPTION_FAILED]="The public VAPID key did not equal 65 bytes when decrypted.",b),C=new _.ErrorFactory("messaging","Messaging",k),O=new Uint8Array([4,51,148,247,223,161,235,177,220,3,162,94,21,113,219,72,211,46,237,237,178,52,219,183,71,58,12,143,196,204,225,111,60,140,132,223,171,182,102,62,242,12,212,139,254,227,249,118,47,20,28,99,8,106,111,45,177,26,149,176,206,55,192,156,110]),N="https://fcm.googleapis.com";!function(e){e.TYPE_OF_MSG="firebase-messaging-msg-type",e.DATA="firebase-messaging-msg-data"}(w||(w={}));var P;!function(e){e.PUSH_MSG_RECEIVED="push-msg-received",e.NOTIFICATION_CLICKED="notification-clicked"}(P||(P={}));var I=function(){function e(){}return e.prototype.getToken=function(e,t,n){return Object(E.__awaiter)(this,void 0,void 0,function(){var i,a,s,u,l,c,f,d,h,p;return Object(E.__generator)(this,function(m){switch(m.label){case 0:i=o(t.getKey("p256dh")),a=o(t.getKey("auth")),s="authorized_entity="+e+"&endpoint="+t.endpoint+"&encryption_key="+i+"&encryption_auth="+a,r(n.buffer,O.buffer)||(u=o(n),s+="&application_pub_key="+u),l=new Headers,l.append("Content-Type","application/x-www-form-urlencoded"),c={method:"POST",headers:l,body:s},m.label=1;case 1:return m.trys.push([1,4,,5]),[4,fetch(N+"/fcm/connect/subscribe",c)];case 2:return d=m.sent(),[4,d.json()];case 3:return f=m.sent(),[3,5];case 4:throw h=m.sent(),C.create(S.TOKEN_SUBSCRIBE_FAILED);case 5:if(f.error)throw p=f.error.message,C.create(S.TOKEN_SUBSCRIBE_FAILED,{message:p});if(!f.token)throw C.create(S.TOKEN_SUBSCRIBE_NO_TOKEN);if(!f.pushSet)throw C.create(S.TOKEN_SUBSCRIBE_NO_PUSH_SET);return[2,{token:f.token,pushSet:f.pushSet}]}})})},e.prototype.updateToken=function(e,t,n,i,a){return Object(E.__awaiter)(this,void 0,void 0,function(){var s,u,l,c,f,d,h,p,m,v;return Object(E.__generator)(this,function(y){switch(y.label){case 0:s=o(i.getKey("p256dh")),u=o(i.getKey("auth")),l="push_set="+n+"&token="+t+"&authorized_entity="+e+"&endpoint="+i.endpoint+"&encryption_key="+s+"&encryption_auth="+u,r(a.buffer,O.buffer)||(c=o(a),l+="&application_pub_key="+c),f=new Headers,f.append("Content-Type","application/x-www-form-urlencoded"),d={method:"POST",headers:f,body:l},y.label=1;case 1:return y.trys.push([1,4,,5]),[4,fetch(N+"/fcm/connect/subscribe",d)];case 2:return p=y.sent(),[4,p.json()];case 3:return h=y.sent(),[3,5];case 4:throw m=y.sent(),C.create(S.TOKEN_UPDATE_FAILED);case 5:if(h.error)throw v=h.error.message,C.create(S.TOKEN_UPDATE_FAILED,{message:v});if(!h.token)throw C.create(S.TOKEN_UPDATE_NO_TOKEN);return[2,h.token]}})})},e.prototype.deleteToken=function(e,t,n){return Object(E.__awaiter)(this,void 0,void 0,function(){var r,i,o,a,s,u,l;return Object(E.__generator)(this,function(c){switch(c.label){case 0:r="authorized_entity="+e+"&token="+t+"&pushSet="+n,i=new Headers,i.append("Content-Type","application/x-www-form-urlencoded"),o={method:"POST",headers:i,body:r},c.label=1;case 1:return c.trys.push([1,4,,5]),[4,fetch(N+"/fcm/connect/unsubscribe",o)];case 2:return a=c.sent(),[4,a.json()];case 3:if(s=c.sent(),s.error)throw u=s.error.message,C.create(S.TOKEN_UNSUBSCRIBE_FAILED,{message:u});return[3,5];case 4:throw l=c.sent(),C.create(S.TOKEN_UNSUBSCRIBE_FAILED);case 5:return[2]}})})},e}(),A="undefined",D="fcm_token_object_Store",R=function(){function e(){this.dbPromise=null}return e.prototype.get=function(e){return this.createTransaction(function(t){return t.get(e)})},e.prototype.getIndex=function(e,t){function n(n){return n.index(e).get(t)}return this.createTransaction(n)},e.prototype.put=function(e){return this.createTransaction(function(t){return t.put(e)},"readwrite")},e.prototype.delete=function(e){return this.createTransaction(function(t){return t.delete(e)},"readwrite")},e.prototype.closeDatabase=function(){return Object(E.__awaiter)(this,void 0,void 0,function(){var e;return Object(E.__generator)(this,function(t){switch(t.label){case 0:return this.dbPromise?[4,this.dbPromise]:[3,2];case 1:e=t.sent(),e.close(),this.dbPromise=null,t.label=2;case 2:return[2]}})})},e.prototype.createTransaction=function(e,t){return void 0===t&&(t="readonly"),Object(E.__awaiter)(this,void 0,void 0,function(){var n,r,i,o;return Object(E.__generator)(this,function(a){switch(a.label){case 0:return[4,this.getDb()];case 1:return n=a.sent(),r=n.transaction(this.objectStoreName,t),i=r.objectStore(this.objectStoreName),[4,l(e(i))];case 2:return o=a.sent(),[2,new Promise(function(e,t){r.oncomplete=function(){e(o)},r.onerror=function(){t(r.error)}})]}})})},e.prototype.getDb=function(){var e=this;return this.dbPromise||(this.dbPromise=new Promise(function(t,n){var r=indexedDB.open(e.dbName,e.dbVersion);r.onsuccess=function(){t(r.result)},r.onerror=function(){e.dbPromise=null,n(r.error)},r.onupgradeneeded=function(t){return e.onDbUpgrade(r,t)}})),this.dbPromise},e}(),M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dbName="fcm_token_details_db",t.dbVersion=3,t.objectStoreName="fcm_token_object_Store",t}return Object(E.__extends)(t,e),t.prototype.onDbUpgrade=function(e,t){var n=e.result;switch(t.oldVersion){case 0:var r=n.createObjectStore(this.objectStoreName,{keyPath:"swScope"});r.createIndex("fcmSenderId","fcmSenderId",{unique:!1}),r.createIndex("fcmToken","fcmToken",{unique:!0});case 1:u();case 2:var r=e.transaction.objectStore(this.objectStoreName),i=r.openCursor();i.onsuccess=function(){var e=i.result;if(e){var t=e.value,n=Object(E.__assign)({},t);t.createTime||(n.createTime=Date.now()),"string"===typeof t.vapidKey&&(n.vapidKey=a(t.vapidKey)),"string"===typeof t.auth&&(n.auth=a(t.auth).buffer),"string"===typeof t.auth&&(n.p256dh=a(t.p256dh).buffer),e.update(n),e.continue()}}}},t.prototype.getTokenDetailsFromToken=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){return Object(E.__generator)(this,function(t){if(!e)throw C.create(S.BAD_TOKEN);return c({fcmToken:e}),[2,this.getIndex("fcmToken",e)]})})},t.prototype.getTokenDetailsFromSWScope=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){return Object(E.__generator)(this,function(t){if(!e)throw C.create(S.BAD_SCOPE);return c({swScope:e}),[2,this.get(e)]})})},t.prototype.saveTokenDetails=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){return Object(E.__generator)(this,function(t){if(!e.swScope)throw C.create(S.BAD_SCOPE);if(!e.vapidKey)throw C.create(S.BAD_VAPID_KEY);if(!e.endpoint||!e.auth||!e.p256dh)throw C.create(S.BAD_SUBSCRIPTION);if(!e.fcmSenderId)throw C.create(S.BAD_SENDER_ID);if(!e.fcmToken)throw C.create(S.BAD_TOKEN);if(!e.fcmPushSet)throw C.create(S.BAD_PUSH_SET);return c(e),[2,this.put(e)]})})},t.prototype.deleteToken=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var t;return Object(E.__generator)(this,function(n){switch(n.label){case 0:return"string"!==typeof e||0===e.length?[2,Promise.reject(C.create(S.INVALID_DELETE_TOKEN))]:[4,this.getTokenDetailsFromToken(e)];case 1:if(!(t=n.sent()))throw C.create(S.DELETE_TOKEN_NOT_FOUND);return[4,this.delete(t.swScope)];case 2:return n.sent(),[2,t]}})})},t}(R),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dbName="fcm_vapid_details_db",t.dbVersion=1,t.objectStoreName="fcm_vapid_object_Store",t}return Object(E.__extends)(t,e),t.prototype.onDbUpgrade=function(e){e.result.createObjectStore(this.objectStoreName,{keyPath:"swScope"})},t.prototype.getVapidFromSWScope=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var t;return Object(E.__generator)(this,function(n){switch(n.label){case 0:if("string"!==typeof e||0===e.length)throw C.create(S.BAD_SCOPE);return[4,this.get(e)];case 1:return t=n.sent(),[2,t?t.vapidKey:void 0]}})})},t.prototype.saveVapidDetails=function(e,t){return Object(E.__awaiter)(this,void 0,void 0,function(){var n;return Object(E.__generator)(this,function(r){if("string"!==typeof e||0===e.length)throw C.create(S.BAD_SCOPE);if(null===t||65!==t.length)throw C.create(S.BAD_VAPID_KEY);return n={swScope:e,vapidKey:t},[2,this.put(n)]})})},t.prototype.deleteVapidDetails=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var t;return Object(E.__generator)(this,function(n){switch(n.label){case 0:return[4,this.getVapidFromSWScope(e)];case 1:if(!(t=n.sent()))throw C.create(S.DELETE_SCOPE_NOT_FOUND);return[4,this.delete(e)];case 2:return n.sent(),[2,t]}})})},t}(R),j="messagingSenderId",F=function(){function e(e){var t=this;if(!e.options[j]||"string"!==typeof e.options[j])throw C.create(S.BAD_SENDER_ID);this.messagingSenderId=e.options[j],this.tokenDetailsModel=new M,this.vapidDetailsModel=new L,this.iidModel=new I,this.app=e,this.INTERNAL={delete:function(){return t.delete()}}}return e.prototype.getToken=function(){return Object(E.__awaiter)(this,void 0,void 0,function(){var e,t,n,r,i;return Object(E.__generator)(this,function(o){switch(o.label){case 0:if("denied"===(e=this.getNotificationPermission_()))throw C.create(S.NOTIFICATIONS_BLOCKED);return"granted"!==e?[2,null]:[4,this.getSWRegistration_()];case 1:return t=o.sent(),[4,this.getPublicVapidKey_()];case 2:return n=o.sent(),[4,this.getPushSubscription(t,n)];case 3:return r=o.sent(),[4,this.tokenDetailsModel.getTokenDetailsFromSWScope(t.scope)];case 4:return i=o.sent(),i?[2,this.manageExistingToken(t,r,n,i)]:[2,this.getNewToken(t,r,n)]}})})},e.prototype.manageExistingToken=function(e,t,n,r){return Object(E.__awaiter)(this,void 0,void 0,function(){var i,o;return Object(E.__generator)(this,function(a){switch(a.label){case 0:return i=f(t,n,r),i?(o=Date.now(),o<r.createTime+6048e5?[2,r.fcmToken]:[2,this.updateToken(e,t,n,r)]):[4,this.deleteTokenFromDB(r.fcmToken)];case 1:return a.sent(),[2,this.getNewToken(e,t,n)]}})})},e.prototype.updateToken=function(e,t,n,r){return Object(E.__awaiter)(this,void 0,void 0,function(){var i,o,a;return Object(E.__generator)(this,function(s){switch(s.label){case 0:return s.trys.push([0,4,,6]),[4,this.iidModel.updateToken(this.messagingSenderId,r.fcmToken,r.fcmPushSet,t,n)];case 1:return i=s.sent(),o={swScope:e.scope,vapidKey:n,fcmSenderId:this.messagingSenderId,fcmToken:i,fcmPushSet:r.fcmPushSet,createTime:Date.now(),endpoint:t.endpoint,auth:t.getKey("auth"),p256dh:t.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(o)];case 2:return s.sent(),[4,this.vapidDetailsModel.saveVapidDetails(e.scope,n)];case 3:return s.sent(),[2,i];case 4:return a=s.sent(),[4,this.deleteToken(r.fcmToken)];case 5:throw s.sent(),a;case 6:return[2]}})})},e.prototype.getNewToken=function(e,t,n){return Object(E.__awaiter)(this,void 0,void 0,function(){var r,i;return Object(E.__generator)(this,function(o){switch(o.label){case 0:return[4,this.iidModel.getToken(this.messagingSenderId,t,n)];case 1:return r=o.sent(),i={swScope:e.scope,vapidKey:n,fcmSenderId:this.messagingSenderId,fcmToken:r.token,fcmPushSet:r.pushSet,createTime:Date.now(),endpoint:t.endpoint,auth:t.getKey("auth"),p256dh:t.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(i)];case 2:return o.sent(),[4,this.vapidDetailsModel.saveVapidDetails(e.scope,n)];case 3:return o.sent(),[2,r.token]}})})},e.prototype.deleteToken=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var t,n;return Object(E.__generator)(this,function(r){switch(r.label){case 0:return[4,this.deleteTokenFromDB(e)];case 1:return r.sent(),[4,this.getSWRegistration_()];case 2:return t=r.sent(),t?[4,t.pushManager.getSubscription()]:[3,4];case 3:if(n=r.sent())return[2,n.unsubscribe()];r.label=4;case 4:return[2,!0]}})})},e.prototype.deleteTokenFromDB=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var t;return Object(E.__generator)(this,function(n){switch(n.label){case 0:return[4,this.tokenDetailsModel.deleteToken(e)];case 1:return t=n.sent(),[4,this.iidModel.deleteToken(t.fcmSenderId,t.fcmToken,t.fcmPushSet)];case 2:return n.sent(),[2]}})})},e.prototype.getPushSubscription=function(e,t){return e.pushManager.getSubscription().then(function(n){return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:t})})},e.prototype.requestPermission=function(){throw C.create(S.AVAILABLE_IN_WINDOW)},e.prototype.useServiceWorker=function(e){throw C.create(S.AVAILABLE_IN_WINDOW)},e.prototype.usePublicVapidKey=function(e){throw C.create(S.AVAILABLE_IN_WINDOW)},e.prototype.onMessage=function(e,t,n){throw C.create(S.AVAILABLE_IN_WINDOW)},e.prototype.onTokenRefresh=function(e,t,n){throw C.create(S.AVAILABLE_IN_WINDOW)},e.prototype.setBackgroundMessageHandler=function(e){throw C.create(S.AVAILABLE_IN_SW)},e.prototype.delete=function(){return Object(E.__awaiter)(this,void 0,void 0,function(){return Object(E.__generator)(this,function(e){switch(e.label){case 0:return[4,Promise.all([this.tokenDetailsModel.closeDatabase(),this.vapidDetailsModel.closeDatabase()])];case 1:return e.sent(),[2]}})})},e.prototype.getNotificationPermission_=function(){return Notification.permission},e.prototype.getTokenDetailsModel=function(){return this.tokenDetailsModel},e.prototype.getVapidDetailsModel=function(){return this.vapidDetailsModel},e.prototype.getIidModel=function(){return this.iidModel},e}(),U=function(e){function t(t){var n=e.call(this,t)||this;return n.bgMessageHandler=null,self.addEventListener("push",function(e){n.onPush(e)}),self.addEventListener("pushsubscriptionchange",function(e){n.onSubChange(e)}),self.addEventListener("notificationclick",function(e){n.onNotificationClick(e)}),n}return Object(E.__extends)(t,e),t.prototype.onPush=function(e){e.waitUntil(this.onPush_(e))},t.prototype.onSubChange=function(e){e.waitUntil(this.onSubChange_(e))},t.prototype.onNotificationClick=function(e){e.waitUntil(this.onNotificationClick_(e))},t.prototype.onPush_=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return Object(E.__generator)(this,function(u){switch(u.label){case 0:if(!e.data)return[2];try{t=e.data.json()}catch(e){return[2]}return[4,this.hasVisibleClients_()];case 1:return(n=u.sent())?[2,this.sendMessageToWindowClients_(t)]:(r=this.getNotificationData_(t))?(i=r.title||"",[4,this.getSWRegistration_()]):[3,3];case 2:return o=u.sent(),a=r.actions,s=Notification.maxActions,a&&s&&a.length>s&&console.warn("This browser only supports "+s+" actions.The remaining actions will not be displayed."),[2,o.showNotification(i,r)];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(t)]:[3,5];case 4:return u.sent(),[2];case 5:return[2]}})})},t.prototype.onSubChange_=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var e,t,n,r,i;return Object(E.__generator)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.getSWRegistration_()];case 1:return e=o.sent(),[3,3];case 2:throw t=o.sent(),C.create(S.UNABLE_TO_RESUBSCRIBE,{message:t});case 3:return o.trys.push([3,5,,8]),[4,e.pushManager.getSubscription()];case 4:return o.sent(),[3,8];case 5:return n=o.sent(),r=this.getTokenDetailsModel(),[4,r.getTokenDetailsFromSWScope(e.scope)];case 6:if(!(i=o.sent()))throw n;return[4,this.deleteToken(i.fcmToken)];case 7:throw o.sent(),n;case 8:return[2]}})})},t.prototype.onNotificationClick_=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var t,n,r,i;return Object(E.__generator)(this,function(o){switch(o.label){case 0:return e.notification&&e.notification.data&&e.notification.data.FCM_MSG?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),t=e.notification.data.FCM_MSG,t.notification?(n=t.fcmOptions&&t.fcmOptions.link||t.notification.click_action,n?[4,this.getWindowClient_(n)]:[2]):[2]):[2];case 1:return r=o.sent(),r?[3,3]:[4,self.clients.openWindow(n)];case 2:return r=o.sent(),[3,5];case 3:return[4,r.focus()];case 4:r=o.sent(),o.label=5;case 5:return r?(delete t.notification,delete t.fcmOptions,i=h(P.NOTIFICATION_CLICKED,t),[2,this.attemptToMessageClient_(r,i)]):[2]}})})},t.prototype.getNotificationData_=function(e){if(e&&"object"===typeof e.notification){var t=Object(E.__assign)({},e.notification);return t.data=Object(E.__assign)({},e.notification.data,(n={},n.FCM_MSG=e,n)),t;var n}},t.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!==typeof e)throw C.create(S.BG_HANDLER_FUNCTION_EXPECTED);this.bgMessageHandler=e},t.prototype.getWindowClient_=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var t,n,r,i,o;return Object(E.__generator)(this,function(a){switch(a.label){case 0:return t=new URL(e,self.location.href).href,[4,d()];case 1:for(n=a.sent(),r=null,i=0;i<n.length;i++)if((o=new URL(n[i].url,self.location.href).href)===t){r=n[i];break}return[2,r]}})})},t.prototype.attemptToMessageClient_=function(e,t){return Object(E.__awaiter)(this,void 0,void 0,function(){return Object(E.__generator)(this,function(n){if(!e)throw C.create(S.NO_WINDOW_CLIENT_TO_MSG);return e.postMessage(t),[2]})})},t.prototype.hasVisibleClients_=function(){return Object(E.__awaiter)(this,void 0,void 0,function(){var e;return Object(E.__generator)(this,function(t){switch(t.label){case 0:return[4,d()];case 1:return e=t.sent(),[2,e.some(function(e){return"visible"===e.visibilityState})]}})})},t.prototype.sendMessageToWindowClients_=function(e){return Object(E.__awaiter)(this,void 0,void 0,function(){var t,n,r=this;return Object(E.__generator)(this,function(i){switch(i.label){case 0:return[4,d()];case 1:return t=i.sent(),n=h(P.PUSH_MSG_RECEIVED,e),[4,Promise.all(t.map(function(e){return r.attemptToMessageClient_(e,n)}))];case 2:return i.sent(),[2]}})})},t.prototype.getSWRegistration_=function(){return Object(E.__awaiter)(this,void 0,void 0,function(){return Object(E.__generator)(this,function(e){return[2,self.registration]})})},t.prototype.getPublicVapidKey_=function(){return Object(E.__awaiter)(this,void 0,void 0,function(){var e,t;return Object(E.__generator)(this,function(n){switch(n.label){case 0:return[4,this.getSWRegistration_()];case 1:if(!(e=n.sent()))throw C.create(S.SW_REGISTRATION_EXPECTED);return[4,this.getVapidDetailsModel().getVapidFromSWScope(e.scope)];case 2:return t=n.sent(),null==t?[2,O]:[2,t]}})})},t}(F),B=function(e){function t(t){var n=e.call(this,t)||this;return n.registrationToUse=null,n.publicVapidKeyToUse=null,n.manifestCheckPromise=null,n.messageObserver=null,n.tokenRefreshObserver=null,n.onMessageInternal=Object(_.createSubscribe)(function(e){n.messageObserver=e}),n.onTokenRefreshInternal=Object(_.createSubscribe)(function(e){n.tokenRefreshObserver=e}),n.setupSWMessageListener_(),n}return Object(E.__extends)(t,e),t.prototype.getToken=function(){return Object(E.__awaiter)(this,void 0,void 0,function(){return Object(E.__generator)(this,function(t){switch(t.label){case 0:return this.manifestCheckPromise||(this.manifestCheckPromise=p()),[4,this.manifestCheckPromise];case 1:return t.sent(),[2,e.prototype.getToken.call(this)]}})})},t.prototype.requestPermission=function(){return Object(E.__awaiter)(this,void 0,void 0,function(){var e;return Object(E.__generator)(this,function(t){switch(t.label){case 0:return"granted"===this.getNotificationPermission_()?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw"denied"===e?C.create(S.PERMISSION_BLOCKED):C.create(S.PERMISSION_DEFAULT)}})})},t.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw C.create(S.SW_REGISTRATION_EXPECTED);if(null!=this.registrationToUse)throw C.create(S.USE_SW_BEFORE_GET_TOKEN);this.registrationToUse=e},t.prototype.usePublicVapidKey=function(e){if("string"!==typeof e)throw C.create(S.INVALID_PUBLIC_VAPID_KEY);if(null!=this.publicVapidKeyToUse)throw C.create(S.USE_PUBLIC_KEY_BEFORE_GET_TOKEN);var t=a(e);if(65!==t.length)throw C.create(S.PUBLIC_KEY_DECRYPTION_FAILED);this.publicVapidKeyToUse=t},t.prototype.onMessage=function(e,t,n){return"function"===typeof e?this.onMessageInternal(e,t,n):this.onMessageInternal(e)},t.prototype.onTokenRefresh=function(e,t,n){return"function"===typeof e?this.onTokenRefreshInternal(e,t,n):this.onTokenRefreshInternal(e)},t.prototype.waitForRegistrationToActivate_=function(e){var t=e.installing||e.waiting||e.active;return new Promise(function(n,r){if(!t)return void r(C.create(S.NO_SW_IN_REG));if("activated"===t.state)return void n(e);if("redundant"===t.state)return void r(C.create(S.SW_REG_REDUNDANT));var i=function(){if("activated"===t.state)n(e);else{if("redundant"!==t.state)return;r(C.create(S.SW_REG_REDUNDANT))}t.removeEventListener("statechange",i)};t.addEventListener("statechange",i)})},t.prototype.getSWRegistration_=function(){var e=this;return this.registrationToUse?this.waitForRegistrationToActivate_(this.registrationToUse):(this.registrationToUse=null,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}).catch(function(e){throw C.create(S.FAILED_DEFAULT_REGISTRATION,{browserErrorMessage:e.message})}).then(function(t){return e.waitForRegistrationToActivate_(t).then(function(){return e.registrationToUse=t,t.update(),t})}))},t.prototype.getPublicVapidKey_=function(){return Object(E.__awaiter)(this,void 0,void 0,function(){return Object(E.__generator)(this,function(e){return this.publicVapidKeyToUse?[2,this.publicVapidKeyToUse]:[2,O]})})},t.prototype.setupSWMessageListener_=function(){var e=this;navigator.serviceWorker.addEventListener("message",function(t){if(t.data&&t.data[w.TYPE_OF_MSG]){var n=t.data;switch(n[w.TYPE_OF_MSG]){case P.PUSH_MSG_RECEIVED:case P.NOTIFICATION_CLICKED:var r=n[w.DATA];e.messageObserver&&e.messageObserver.next(r)}}},!1)},t}(F);m(x.a)},function(e,t,n){"use strict";function r(e){return"storage/"+e}function i(){return new it(ot.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function o(e){return new it(ot.OBJECT_NOT_FOUND,"Object '"+e+"' does not exist.")}function a(e){return new it(ot.QUOTA_EXCEEDED,"Quota for bucket '"+e+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function s(){return new it(ot.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again.")}function u(e){return new it(ot.UNAUTHORIZED,"User does not have permission to access '"+e+"'.")}function l(){return new it(ot.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function c(){return new it(ot.CANCELED,"User canceled the upload/download.")}function f(e){return new it(ot.INVALID_URL,"Invalid URL '"+e+"'.")}function d(e){return new it(ot.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}function h(){return new it(ot.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function p(){return new it(ot.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}function m(){return new it(ot.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function v(e,t,n){return new it(ot.INVALID_ARGUMENT,"Invalid argument in `"+t+"` at index "+e+": "+n)}function y(e,t,n,r){var i,o;return e===t?(i=e,o=1===e?"argument":"arguments"):(i="between "+e+" and "+t,o="arguments"),new it(ot.INVALID_ARGUMENT_COUNT,"Invalid argument count in `"+n+"`: Expected "+i+" "+o+", received "+r+".")}function g(){return new it(ot.APP_DELETED,"The Firebase app was deleted.")}function b(e){return new it(ot.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function w(e,t){return new it(ot.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function _(e){throw new it(ot.INTERNAL_ERROR,"Internal error: "+e)}function E(e){switch(e){case at.RAW:case at.BASE64:case at.BASE64URL:case at.DATA_URL:return;default:throw"Expected one of the event types: ["+at.RAW+", "+at.BASE64+", "+at.BASE64URL+", "+at.DATA_URL+"]."}}function T(e,t){switch(e){case at.RAW:return new st(x(t));case at.BASE64:case at.BASE64URL:return new st(k(e,t));case at.DATA_URL:return new st(C(t),O(t))}throw i()}function x(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296==(64512&r)){var i=n<e.length-1&&56320==(64512&e.charCodeAt(n+1));if(i){var o=r,a=e.charCodeAt(++n);r=65536|(1023&o)<<10|1023&a,t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)}else t.push(239,191,189)}else 56320==(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function S(e){var t;try{t=decodeURIComponent(e)}catch(e){throw w(at.DATA_URL,"Malformed data URL.")}return x(t)}function k(e,t){switch(e){case at.BASE64:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r){var i=n?"-":"_";throw w(e,"Invalid character '"+i+"' found: is it base64url encoded?")}break;case at.BASE64URL:var o=-1!==t.indexOf("+"),a=-1!==t.indexOf("/");if(o||a){var i=o?"+":"/";throw w(e,"Invalid character '"+i+"' found: is it base64 encoded?")}t=t.replace(/-/g,"+").replace(/_/g,"/")}var s;try{s=atob(t)}catch(t){throw w(e,"Invalid character found")}for(var u=new Uint8Array(s.length),l=0;l<s.length;l++)u[l]=s.charCodeAt(l);return u}function C(e){var t=new ut(e);return t.base64?k(at.BASE64,t.rest):S(t.rest)}function O(e){return new ut(e).contentType}function N(e,t){return!!(e.length>=t.length)&&e.substring(e.length-t.length)===t}function P(e){switch(e){case ct.RUNNING:case ct.PAUSING:case ct.CANCELING:return ft.RUNNING;case ct.PAUSED:return ft.PAUSED;case ct.SUCCESS:return ft.SUCCESS;case ct.CANCELED:return ft.CANCELED;case ct.ERROR:default:return ft.ERROR}}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function A(e,t){for(var n in e)I(e,n)&&t(n,e[n])}function D(e){if(null==e)return{};var t={};return A(e,function(e,n){t[e]=n}),t}function R(e){return new Promise(e)}function M(e){return Promise.resolve(e)}function L(e){return Promise.reject(e)}function j(e){return null!=e}function F(e){return void 0!==e}function U(e){return"function"===typeof e}function B(e){return"object"===typeof e}function q(e){return B(e)&&null!==e}function V(e){return B(e)&&!Array.isArray(e)}function z(e){return"string"===typeof e||e instanceof String}function W(e){return"number"===typeof e||e instanceof Number}function H(e){return K()&&e instanceof Blob}function K(){return"undefined"!==typeof Blob}function G(e){var t;try{t=JSON.parse(e)}catch(e){return null}return V(t)?t:null}function Q(e){if(0==e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}function Y(e,t){var n=t.split("/").filter(function(e){return e.length>0}).join("/");return 0===e.length?n:e+"/"+n}function X(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function $(e){return $e+Ze+e}function J(e){return Je+Ze+e}function Z(e){return $e+et+e}function ee(e){var t=encodeURIComponent,n="?";return A(e,function(e,r){var i=t(e)+"="+t(r);n=n+i+"&"}),n=n.slice(0,-1)}function te(e,t){return t}function ne(e){return!z(e)||e.length<2?e:(e=e,X(e))}function re(){function e(e,t){return ne(t)}function t(e,t){return j(t)?+t:t}if(vt)return vt;var n=[];n.push(new mt("bucket")),n.push(new mt("generation")),n.push(new mt("metageneration")),n.push(new mt("name","fullPath",!0));var r=new mt("name");r.xform=e,n.push(r);var i=new mt("size");return i.xform=t,n.push(i),n.push(new mt("timeCreated")),n.push(new mt("updated")),n.push(new mt("md5Hash",null,!0)),n.push(new mt("cacheControl",null,!0)),n.push(new mt("contentDisposition",null,!0)),n.push(new mt("contentEncoding",null,!0)),n.push(new mt("contentLanguage",null,!0)),n.push(new mt("contentType",null,!0)),n.push(new mt("metadata","customMetadata",!0)),vt=n}function ie(e,t){function n(){var n=e.bucket,r=e.fullPath,i=new pt(n,r);return t.makeStorageReference(i)}Object.defineProperty(e,"ref",{get:n})}function oe(e,t,n){var r={};r.type="file";for(var i=n.length,o=0;o<i;o++){var a=n[o];r[a.local]=a.xform(r,t[a.server])}return ie(r,e),r}function ae(e,t,n){var r=G(t);return null===r?null:oe(e,r,n)}function se(e,t){var n=G(t);if(null===n)return null;if(!z(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var i=encodeURIComponent;return r.split(",").map(function(t){var n=e.bucket,r=e.fullPath;return J("/b/"+i(n)+"/o/"+i(r))+ee({alt:"media",token:t})})[0]}function ue(e,t){for(var n={},r=t.length,i=0;i<r;i++){var o=t[i];o.writable&&(n[o.server]=e[o.local])}return JSON.stringify(n)}function le(e){if(!e||!B(e))throw"Expected Metadata object.";for(var t in e){var n=e[t];if("customMetadata"===t){if(!B(n))throw"Expected object for 'customMetadata' mapping."}else if(q(n))throw"Mapping for '"+t+"' cannot be an object."}}function ce(e,t,n){for(var r=t.length,i=t.length,o=0;o<t.length;o++)if(t[o].optional){r=o;break}if(!(r<=n.length&&n.length<=i))throw y(r,i,e,n.length);for(var o=0;o<n.length;o++)try{t[o].validator(n[o])}catch(t){throw t instanceof Error?v(o,e,t.message):v(o,e,t)}}function fe(e,t){return function(n){e(n),t(n)}}function de(e,t){function n(e){if(!z(e))throw"Expected string."}var r;return r=e?fe(n,e):n,new yt(r,t)}function he(){function e(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||K()&&e instanceof Blob))throw"Expected Blob or File."}return new yt(e)}function pe(e){return new yt(le,e)}function me(){function e(e){if(!(W(e)&&e>=0))throw"Expected a number 0 or greater."}return new yt(e)}function ve(e,t){function n(t){if(!(null===t||j(t)&&t instanceof Object))throw"Expected an Object.";void 0!==e&&null!==e&&e(t)}return new yt(n,t)}function ye(e){function t(e){if(null!==e&&!U(e))throw"Expected a Function."}return new yt(t,e)}function ge(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ge();if(void 0!==n){for(var r=new n,i=0;i<e.length;i++)r.append(e[i]);return r.getBlob()}if(K())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}function we(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}function _e(e,t){return-1!==e.indexOf(t)}function Ee(e){return Array.prototype.slice.call(e)}function Te(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function xe(e){if(!e)throw i()}function Se(e,t){function n(n,r){var i=ae(e,r,t);return xe(null!==i),i}return n}function ke(e,t){function n(n,r){var i=ae(e,r,t);return xe(null!==i),se(i,r)}return n}function Ce(e){function t(t,n){var r;return r=401===t.getStatus()?s():402===t.getStatus()?a(e.bucket):403===t.getStatus()?u(e.path):n,r.setServerResponseProp(n.serverResponseProp()),r}return t}function Oe(e){function t(t,r){var i=n(t,r);return 404===t.getStatus()&&(i=o(e.path)),i.setServerResponseProp(r.serverResponseProp()),i}var n=Ce(e);return t}function Ne(e,t,n){var r=t.fullServerUrl(),i=$(r),o=e.maxOperationRetryTime(),a=new bt(i,"GET",Se(e,n),o);return a.errorHandler=Oe(t),a}function Pe(e,t,n){var r=t.fullServerUrl(),i=$(r),o=e.maxOperationRetryTime(),a=new bt(i,"GET",ke(e,n),o);return a.errorHandler=Oe(t),a}function Ie(e,t,n,r){var i=t.fullServerUrl(),o=$(i),a=ue(n,r),s={"Content-Type":"application/json; charset=utf-8"},u=e.maxOperationRetryTime(),l=new bt(o,"PATCH",Se(e,r),u);return l.headers=s,l.body=a,l.errorHandler=Oe(t),l}function Ae(e,t){function n(e,t){}var r=t.fullServerUrl(),i=$(r),o=e.maxOperationRetryTime(),a=new bt(i,"DELETE",n,o);return a.successCodes=[200,204],a.errorHandler=Oe(t),a}function De(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}function Re(e,t,n){var r=D(n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=De(null,t)),r}function Me(e,t,n,r,i){var o=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;var u=Re(t,r,i),l=ue(u,n),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+l+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",f="\r\n--"+s+"--",d=gt.getBlob(c,r,f);if(null===d)throw h();var p={name:u.fullPath},m=Z(o),v=e.maxUploadRetryTime(),y=new bt(m,"POST",Se(e,n),v);return y.urlParams=p,y.headers=a,y.body=d.uploadData(),y.errorHandler=Ce(t),y}function Le(e,t){var n;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){xe(!1)}return xe(_e(t||["active"],n)),n}function je(e,t,n,r,i){function o(e,t){Le(e);var n;try{n=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){xe(!1)}return xe(z(n)),n}var a=t.bucketOnlyServerUrl(),s=Re(t,r,i),u={name:s.fullPath},l=Z(a),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},f=ue(s,n),d=e.maxUploadRetryTime(),h=new bt(l,"POST",o,d);return h.urlParams=u,h.headers=c,h.body=f,h.errorHandler=Ce(t),h}function Fe(e,t,n,r){function i(e,t){var n,i=Le(e,["active","final"]);try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){xe(!1)}var o=parseInt(n,10);return xe(!isNaN(o)),new wt(o,r.size(),"final"===i)}var o={"X-Goog-Upload-Command":"query"},a=e.maxUploadRetryTime(),s=new bt(n,"POST",i,a);return s.headers=o,s.errorHandler=Ce(t),s}function Ue(e,t,n,r,i,o,a,s){function u(e,n){var i,a=Le(e,["active","final"]),s=l.current+f,u=r.size();return i="final"===a?Se(t,o)(e,n):null,new wt(s,u,"final"===a,i)}var l=new wt(0,0);if(a?(l.current=a.current,l.total=a.total):(l.current=0,l.total=r.size()),r.size()!==l.total)throw p();var c=l.total-l.current,f=c;i>0&&(f=Math.min(f,i));var d=l.current,m=d+f,v=f===c?"upload, finalize":"upload",y={"X-Goog-Upload-Command":v,"X-Goog-Upload-Offset":l.current},g=r.slice(d,m);if(null===g)throw h();var b=t.maxUploadRetryTime(),w=new bt(n,"POST",u,b);return w.headers=y,w.body=g.uploadData(),w.progressCallback=s||null,w.errorHandler=Ce(e),w}function Be(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];M(!0).then(function(){e.apply(null,t)})}}function qe(e,t,n){function r(){return 2===f}function i(){d||(d=!0,t.apply(null,arguments))}function o(t){l=setTimeout(function(){l=null,e(a,r())},t)}function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!d){if(e)return void i.apply(null,arguments);if(r()||c)return void i.apply(null,arguments);u<64&&(u*=2);var a;1===f?(f=2,a=0):a=1e3*(u+Math.random()),o(a)}}function s(e){h||(h=!0,d||(null!==l?(e||(f=2),clearTimeout(l),o(0)):e||(f=1)))}var u=1,l=null,c=!1,f=0,d=!1,h=!1;return o(0),setTimeout(function(){c=!0,s(!0)},n),s}function Ve(e){e(!1)}function ze(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}function We(e){var t="undefined"!==typeof Xe.a?Xe.a.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}function He(e,t,n){var r=ee(e.urlParams),i=e.url+r,o=D(e.headers);return ze(o,t),We(o),new Ot(i,e.method,o,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,n)}function Ke(e,t,n){return new Pt(e,new ht,n)}function Ge(e){var t={TaskState:ft,TaskEvent:lt,StringFormat:at,Storage:Pt,Reference:xt};e.INTERNAL.registerService(At,Ke,t,void 0,!0)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"registerStorage",function(){return Ge});var Qe,Ye=n(35),Xe=n.n(Ye),$e="https://firebasestorage.googleapis.com",Je="https://firebasestorage.googleapis.com",Ze="/v0",et="/v0",tt=12e4,nt=6e4,rt=-9007199254740991,it=function(){function e(e,t){this.code_=r(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return r(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),e}(),ot={UNKNOWN:"unknown",OBJECT_NOT_FOUND:"object-not-found",BUCKET_NOT_FOUND:"bucket-not-found",PROJECT_NOT_FOUND:"project-not-found",QUOTA_EXCEEDED:"quota-exceeded",UNAUTHENTICATED:"unauthenticated",UNAUTHORIZED:"unauthorized",RETRY_LIMIT_EXCEEDED:"retry-limit-exceeded",INVALID_CHECKSUM:"invalid-checksum",CANCELED:"canceled",INVALID_EVENT_NAME:"invalid-event-name",INVALID_URL:"invalid-url",INVALID_DEFAULT_BUCKET:"invalid-default-bucket",NO_DEFAULT_BUCKET:"no-default-bucket",CANNOT_SLICE_BLOB:"cannot-slice-blob",SERVER_FILE_WRONG_SIZE:"server-file-wrong-size",NO_DOWNLOAD_URL:"no-download-url",INVALID_ARGUMENT:"invalid-argument",INVALID_ARGUMENT_COUNT:"invalid-argument-count",APP_DELETED:"app-deleted",INVALID_ROOT_OPERATION:"invalid-root-operation",INVALID_FORMAT:"invalid-format",INTERNAL_ERROR:"internal-error"},at={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},st=function(){function e(e,t){this.data=e,this.contentType=t||null}return e}(),ut=function(){function e(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw w(at.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],");var n=t[1]||null;null!=n&&(this.base64=N(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=e.substring(e.indexOf(",")+1)}return e}(),lt={STATE_CHANGED:"state_changed"},ct={RUNNING:"running",PAUSING:"pausing",PAUSED:"paused",SUCCESS:"success",CANCELING:"canceling",CANCELED:"canceled",ERROR:"error"},ft={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(Qe||(Qe={}));var dt=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=Qe.NO_ERROR,this.sendPromise_=R(function(t,n){e.xhr_.addEventListener("abort",function(n){e.errorCode_=Qe.ABORT,t(e)}),e.xhr_.addEventListener("error",function(n){e.errorCode_=Qe.NETWORK_ERROR,t(e)}),e.xhr_.addEventListener("load",function(n){t(e)})})}return e.prototype.send=function(e,t,n,r){var i=this;if(this.sent_)throw _("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),j(r)){A(r,function(e,t){i.xhr_.setRequestHeader(e,t.toString())})}return j(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw _("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw _("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw _("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){j(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){j(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),ht=function(){function e(){}return e.prototype.createXhrIo=function(){return new dt},e}(),pt=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),e.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},e.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},e.makeFromBucketSpec=function(t){var n;try{n=e.makeFromUrl(t)}catch(n){return new e(t,"")}if(""===n.path)return n;throw d(t)},e.makeFromUrl=function(t){function n(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}function r(e){e.path_=decodeURIComponent(e.path)}for(var i=null,o=new RegExp("^gs://([A-Za-z0-9.\\-]+)(/(.*))?$","i"),a={bucket:1,path:3},s=new RegExp("^https?://firebasestorage\\.googleapis\\.com/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-]+)/o(/([^?#]*).*)?$","i"),u={bucket:1,path:3},l=[{regex:o,indices:a,postModify:n},{regex:s,indices:u,postModify:r}],c=0;c<l.length;c++){var d=l[c],h=d.regex.exec(t);if(h){var p=h[d.indices.bucket],m=h[d.indices.path];m||(m=""),i=new e(p,m),d.postModify(i);break}}if(null==i)throw f(t);return i},e}(),mt=function(){function e(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||te}return e}(),vt=null,yt=function(){function e(e,t){var n=this;this.validator=function(t){n.optional&&!F(t)||e(t)},this.optional=!!t}return e}(),gt=function(){function e(e,t){var n=0,r="";H(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}return e.prototype.size=function(){return this.size_},e.prototype.type=function(){return this.type_},e.prototype.slice=function(t,n){if(H(this.data_)){var r=this.data_,i=we(r,t,n);return null===i?null:new e(i)}return new e(new Uint8Array(this.data_.buffer,t,n-t),!0)},e.getBlob=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(K()){var r=t.map(function(t){return t instanceof e?t.data_:t});return new e(be.apply(null,r))}var i=t.map(function(e){return z(e)?T(at.RAW,e).data:e.data_}),o=0;i.forEach(function(e){o+=e.byteLength});var a=new Uint8Array(o),s=0;return i.forEach(function(e){for(var t=0;t<e.length;t++)a[s++]=e[t]}),new e(a,!0)},e.prototype.uploadData=function(){return this.data_},e}(),bt=function(){function e(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}return e}(),wt=function(){function e(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null}return e}(),_t=function(){function e(e,t,n){if(U(e)||j(t)||j(n))this.next=e,this.error=t||null,this.complete=n||null;else{var r=e;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}}return e}(),Et=function(){function e(e,t,n,r,i,o){this.bytesTransferred=e,this.totalBytes=t,this.state=n,this.metadata=r,this.task=i,this.ref=o}return e}(),Tt=function(){function e(e,t,n,r,i,o){void 0===o&&(o=null);var a=this;this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.authWrapper_=t,this.location_=n,this.blob_=i,this.metadata_=o,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=ct.RUNNING,this.errorHandler_=function(e){a.request_=null,a.chunkMultiplier_=1,e.codeEquals(ot.CANCELED)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=e,a.transition_(ct.ERROR))},this.metadataErrorHandler_=function(e){a.request_=null,e.codeEquals(ot.CANCELED)?a.completeTransitions_():(a.error_=e,a.transition_(ct.ERROR))},this.promise_=R(function(e,t){a.resolve_=e,a.reject_=t,a.start_()}),this.promise_.then(null,function(){})}return e.prototype.makeProgressCallback_=function(){var e=this,t=this.transferred_;return function(n,r){e.updateProgress_(t+n)}},e.prototype.shouldDoResumable_=function(e){return e.size()>262144},e.prototype.start_=function(){this.state_===ct.RUNNING&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.authWrapper_.getAuthToken().then(function(n){switch(t.state_){case ct.RUNNING:e(n);break;case ct.CANCELING:t.transition_(ct.CANCELED);break;case ct.PAUSING:t.transition_(ct.PAUSED)}})},e.prototype.createResumable_=function(){var e=this;this.resolveToken_(function(t){var n=je(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then(function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()},e.errorHandler_)})},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_(function(n){var r=Fe(e.authWrapper_,e.location_,t,e.blob_),i=e.authWrapper_.makeRequest(r,n);e.request_=i,i.getPromise().then(function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()},e.errorHandler_)})},e.prototype.continueUpload_=function(){var e=this,t=262144*this.chunkMultiplier_,n=new wt(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_(function(i){var o;try{o=Ue(e.location_,e.authWrapper_,r,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(t){return e.error_=t,void e.transition_(ct.ERROR)}var a=e.authWrapper_.makeRequest(o,i);e.request_=a,a.getPromise().then(function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(ct.SUCCESS)):e.completeTransitions_()},e.errorHandler_)})},e.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_(function(t){var n=Ne(e.authWrapper_,e.location_,e.mappings_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.transition_(ct.SUCCESS)},e.metadataErrorHandler_)})},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_(function(t){var n=Me(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(ct.SUCCESS)},e.errorHandler_)})},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case ct.CANCELING:case ct.PAUSING:this.state_=e,null!==this.request_&&this.request_.cancel();break;case ct.RUNNING:var t=this.state_===ct.PAUSED;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case ct.PAUSED:this.state_=e,this.notifyObservers_();break;case ct.CANCELED:this.error_=c(),this.state_=e,this.notifyObservers_();break;case ct.ERROR:case ct.SUCCESS:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case ct.PAUSING:this.transition_(ct.PAUSED);break;case ct.CANCELING:this.transition_(ct.CANCELED);break;case ct.RUNNING:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=P(this.state_);return new Et(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),e.prototype.on=function(e,t,n,r){function i(t){if(e!==lt.STATE_CHANGED)throw"Expected one of the event types: ["+lt.STATE_CHANGED+"]."}function o(e){try{return void l(e)}catch(e){}try{c(e);if(!(F(e.next)||F(e.error)||F(e.complete)))throw"";return}catch(e){throw u}}function a(e){function t(t,n,i){null!==e&&ce("on",e,arguments);var o=new _t(t,n,r);return f.addObserver_(o),function(){f.removeObserver_(o)}}return t}function s(e){if(null===e)throw u;o(e)}void 0===t&&(t=void 0),void 0===n&&(n=void 0),void 0===r&&(r=void 0);var u="Expected a function or an Object with one of `next`, `error`, `complete` properties.",l=ye(!0).validator,c=ve(null,!0).validator;ce("on",[de(i),ve(o,!0),ye(!0),ye(!0)],arguments);var f=this,d=[ve(s),ye(!0),ye(!0)];return F(t)||F(n)||F(r)?a(null)(t,n,r):a(d)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){Te(this.observers_,e)},e.prototype.notifyObservers_=function(){var e=this;this.finishPromise_(),Ee(this.observers_).forEach(function(t){e.notifyObserver_(t)})},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(P(this.state_)){case ft.SUCCESS:Be(this.resolve_.bind(null,this.snapshot))();break;case ft.CANCELED:case ft.ERROR:Be(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(P(this.state_)){case ft.RUNNING:case ft.PAUSED:null!==e.next&&Be(e.next.bind(e,this.snapshot))();break;case ft.SUCCESS:null!==e.complete&&Be(e.complete.bind(e))();break;case ft.CANCELED:case ft.ERROR:null!==e.error&&Be(e.error.bind(e,this.error_))();break;default:null!==e.error&&Be(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){ce("resume",[],arguments);var e=this.state_===ct.PAUSED||this.state_===ct.PAUSING;return e&&this.transition_(ct.RUNNING),e},e.prototype.pause=function(){ce("pause",[],arguments);var e=this.state_===ct.RUNNING;return e&&this.transition_(ct.PAUSING),e},e.prototype.cancel=function(){ce("cancel",[],arguments);var e=this.state_===ct.RUNNING||this.state_===ct.PAUSING;return e&&this.transition_(ct.CANCELING),e},e}(),xt=function(){function e(e,t){this.authWrapper=e,this.location=t instanceof pt?t:pt.makeFromUrl(t)}return e.prototype.toString=function(){return ce("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return re()},e.prototype.child=function(e){ce("child",[de()],arguments);var t=Y(this.location.path,e),n=new pt(this.location.bucket,t);return this.newRef(this.authWrapper,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=Q(this.location.path);if(null===e)return null;var t=new pt(this.location.bucket,e);return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new pt(this.location.bucket,"");return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return X(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),ce("put",[he(),pe(!0)],arguments),this.throwIfRoot_("put"),new Tt(this,this.authWrapper,this.location,this.mappings(),new gt(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=at.RAW),ce("putString",[de(),de(E,!0),pe(!0)],arguments),this.throwIfRoot_("putString");var r=T(t,e),i=D(n);return!j(i.contentType)&&j(r.contentType)&&(i.contentType=r.contentType),new Tt(this,this.authWrapper,this.location,this.mappings(),new gt(r.data,!0),i)},e.prototype.delete=function(){ce("delete",[],arguments),this.throwIfRoot_("delete");var e=this;return this.authWrapper.getAuthToken().then(function(t){var n=Ae(e.authWrapper,e.location);return e.authWrapper.makeRequest(n,t).getPromise()})},e.prototype.getMetadata=function(){ce("getMetadata",[],arguments),this.throwIfRoot_("getMetadata");var e=this;return this.authWrapper.getAuthToken().then(function(t){var n=Ne(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise()})},e.prototype.updateMetadata=function(e){ce("updateMetadata",[pe()],arguments),this.throwIfRoot_("updateMetadata");var t=this;return this.authWrapper.getAuthToken().then(function(n){var r=Ie(t.authWrapper,t.location,e,t.mappings());return t.authWrapper.makeRequest(r,n).getPromise()})},e.prototype.getDownloadURL=function(){ce("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL");var e=this;return this.authWrapper.getAuthToken().then(function(t){var n=Pe(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise().then(function(e){if(null===e)throw m();return e})})},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw b(e)},e}(),St=function(){function e(e){this.promise_=L(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){void 0===e&&(e=!1)},e}(),kt=function(){function e(){this.map_={},this.id_=rt}return e.prototype.addRequest=function(e){function t(){delete r.map_[n]}var n=this.id_;this.id_++,this.map_[n]=e;var r=this;e.getPromise().then(t,t)},e.prototype.clear=function(){A(this.map_,function(e,t){t&&t.cancel(!0)}),this.map_={}},e}(),Ct=function(){function e(t,n,r,i,o){if(this.bucket_=null,this.deleted_=!1,this.app_=t,null!==this.app_){var a=this.app_.options;j(a)&&(this.bucket_=e.extractBucket_(a))}this.storageRefMaker_=n,this.requestMaker_=r,this.pool_=o,this.service_=i,this.maxOperationRetryTime_=tt,this.maxUploadRetryTime_=nt,this.requestMap_=new kt}return e.extractBucket_=function(e){var t=e.storageBucket||null;return null==t?null:pt.makeFromBucketSpec(t).bucket},e.prototype.getAuthToken=function(){return null!==this.app_&&j(this.app_.INTERNAL)&&j(this.app_.INTERNAL.getToken)?this.app_.INTERNAL.getToken().then(function(e){return null!==e?e.accessToken:null},function(e){return null}):M(null)},e.prototype.bucket=function(){if(this.deleted_)throw g();return this.bucket_},e.prototype.service=function(){return this.service_},e.prototype.makeStorageReference=function(e){return this.storageRefMaker_(this,e)},e.prototype.makeRequest=function(e,t){if(this.deleted_)return new St(g());var n=this.requestMaker_(e,t,this.pool_);return this.requestMap_.addRequest(n),n},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},e.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},e.prototype.setMaxUploadRetryTime=function(e){this.maxUploadRetryTime_=e},e.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},e.prototype.setMaxOperationRetryTime=function(e){this.maxOperationRetryTime_=e},e}(),Ot=function(){function e(e,t,n,r,i,o,a,s,u,l,c){this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=l,this.timeout_=u,this.pool_=c;var f=this;this.promise_=R(function(e,t){f.resolve_=e,f.reject_=t,f.start_()})}return e.prototype.start_=function(){function e(e,t){function r(e){var t=e.loaded,r=e.lengthComputable?e.total:-1;null!==n.progressCallback_&&n.progressCallback_(t,r)}if(t)return void e(!1,new Nt(!1,null,!0));var i=n.pool_.createXhrIo();n.pendingXhr_=i,null!==n.progressCallback_&&i.addUploadProgressListener(r),i.send(n.url_,n.method_,n.body_,n.headers_).then(function(t){null!==n.progressCallback_&&t.removeUploadProgressListener(r),n.pendingXhr_=null,t=t;var i=t.getErrorCode()===Qe.NO_ERROR,o=t.getStatus();if(!i||n.isRetryStatusCode_(o)){var a=t.getErrorCode()===Qe.ABORT;return void e(!1,new Nt(!1,null,a))}var s=_e(n.successCodes_,o);e(!0,new Nt(s,t))})}function t(e,t){var r=n.resolve_,o=n.reject_,a=t.xhr;if(t.wasSuccessCode)try{var s=n.callback_(a,a.getResponseText());F(s)?r(s):r()}catch(e){o(e)}else if(null!==a){var u=i();u.setServerResponseProp(a.getResponseText()),o(n.errorCallback_?n.errorCallback_(a,u):u)}else if(t.canceled){var u=n.appDelete_?g():c();o(u)}else{var u=l();o(u)}}var n=this;this.canceled_?t(!1,new Nt(!1,null,!0)):this.backoffId_=qe(e,t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&Ve(this.backoffId_),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=[408,429],r=_e(n,e),i=_e(this.additionalRetryCodes_,e);return t||r||i},e}(),Nt=function(){function e(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n}return e}(),Pt=function(){function e(e,t,n){function r(e,t){return new xt(e,t)}if(this.bucket_=null,this.authWrapper_=new Ct(e,r,He,this,t),this.app_=e,null!=n)this.bucket_=pt.makeFromBucketSpec(n);else{var i=this.authWrapper_.bucket();null!=i&&(this.bucket_=new pt(i,""))}this.internals_=new It(this)}return e.prototype.ref=function(e){function t(e){if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."}if(ce("ref",[de(t,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new xt(this.authWrapper_,this.bucket_);return null!=e?n.child(e):n},e.prototype.refFromURL=function(e){function t(e){if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{pt.makeFromUrl(e)}catch(e){throw"Expected valid full URL but got an invalid one."}}return ce("refFromURL",[de(t,!1)],arguments),new xt(this.authWrapper_,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){ce("setMaxUploadRetryTime",[me()],arguments),this.authWrapper_.setMaxUploadRetryTime(e)},Object.defineProperty(e.prototype,"maxOperationRetryTime",{get:function(){return this.authWrapper_.maxOperationRetryTime()},enumerable:!0,configurable:!0}),e.prototype.setMaxOperationRetryTime=function(e){ce("setMaxOperationRetryTime",[me()],arguments),this.authWrapper_.setMaxOperationRetryTime(e)},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),e}(),It=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),M(void 0)},e}(),At="storage";Ge(Xe.a)},function(e,t){},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 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 o(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(1),s=n.n(a),u=n(247),l=n(248),c=n(86),f=(n.n(c),n(299)),d=n(189),h=n(568),p=n(721),m=n(128),v=n.n(m),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();window.addEventListener("unload",function(){});var g=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.debugURL="",n.name="https://2018.igem.org/Team:Washington",n.state={loading:!0,data:new p.a},n.displayLoadingMessage=n.displayLoadingMessage.bind(n),n.getContentData=n.getContentData.bind(n),n.setEdit=n.setEdit.bind(n),n}return o(t,e),y(t,[{key:"componentWillMount",value:function(){var e=this,t=window.location.href.split("igem");if(this.pageTitle=this.debugURL,this.debugMode=!0,2===t.length){var n=t[1].split("Team:Washington")[1];this.pageTitle=n,this.debugMode=!1}this.setState({loading:!1});var r=this.state.data.getDisplayConstants(this.pageTitle),i=Object(c.createMuiTheme)({palette:{primary:{main:r.primaryColor},secondary:{main:r.secondaryColor}}});this.theme=i,this.firebasePassIn=null,this.firebasePassIn=v.a,v.a.database().ref("/").on("value",function(t){e.firebaseIsSet=!0,e.setState({contentData:t.val()})})}},{key:"getContentData",value:function(){return this.firebaseIsSet&&Date.now()<153983514e4?this.state.contentData.pageData:this.state.data.getContentData()}},{key:"displayLoadingMessage",value:function(){var e=this;this.setState({loading:!0}),setTimeout(function(){e.setState({loading:!1})},500)}},{key:"setEdit",value:function(e,t){this.setState({setEditData:{page:e,index:t}})}},{key:"render",value:function(){var e=this,t=this.displayLoadingMessage,n=this.getContentData(),r="/Editor"===this.pageTitle;return s.a.createElement("div",{className:"App"},s.a.createElement(c.MuiThemeProvider,{theme:this.theme},this.debugMode&&s.a.createElement(u.a,null),s.a.createElement(f.a,{name:this.name,pageTitle:this.pageTitle,data:this.state.data,a:t}),s.a.createElement("div",{style:{marginTop:"40px"}}),!this.state.loading&&s.a.createElement("div",null,"/ASDFTest"===this.pageTitle&&s.a.createElement("h1",null,s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("a",{onClick:function(){return e.displayLoadingMessage()},style:{color:"white"},href:this.name+"/TempMain"},"page is asdftest")),"/ASDFTestA"===this.pageTitle&&s.a.createElement("h1",null,"Page is not asdftest"),""===this.pageTitle&&s.a.createElement("div",null,s.a.createElement(d.a,null)),""!==this.pageTitle&&s.a.createElement("div",null,s.a.createElement(h.a,{setEdit:this.setEdit,setEditData:this.state.setEditData,edit:r,pageTitle:r?n[0].pageTitle:this.pageTitle,a:t,data:this.state.data,contentData:n,firebase:this.firebasePassIn}))),this.state.loading&&s.a.createElement(l.a,null)))}}]),t}(a.Component);t.a=g},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 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 o(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)}n.d(t,"a",function(){return l});var a=n(1),s=n.n(a),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),u(t,[{key:"render",value:function(){return s.a.createElement("div",{className:"debugheader"})}}]),t}(a.Component)},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 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 o(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)}n.d(t,"a",function(){return c});var a=n(1),s=n.n(a),u=n(249),l=(n.n(u),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),c=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),l(t,[{key:"render",value:function(){return s.a.createElement("div",null,s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("h1",null,"Page loading..."),s.a.createElement("div",{className:"sk-circle"},s.a.createElement("div",{className:"sk-circle1 sk-child"}),s.a.createElement("div",{className:"sk-circle2 sk-child"}),s.a.createElement("div",{className:"sk-circle3 sk-child"}),s.a.createElement("div",{className:"sk-circle4 sk-child"}),s.a.createElement("div",{className:"sk-circle5 sk-child"}),s.a.createElement("div",{className:"sk-circle6 sk-child"}),s.a.createElement("div",{className:"sk-circle7 sk-child"}),s.a.createElement("div",{className:"sk-circle8 sk-child"}),s.a.createElement("div",{className:"sk-circle9 sk-child"}),s.a.createElement("div",{className:"sk-circle10 sk-child"}),s.a.createElement("div",{className:"sk-circle11 sk-child"}),s.a.createElement("div",{className:"sk-circle12 sk-child"})))}}]),t}(a.Component)},function(e,t){},function(e,t,n){"use strict";function r(e){return Math.round(1e5*e)/1e5}function i(e,t){function n(e){return"".concat(e/g*w,"rem")}var i="function"===typeof t?t(e):t,o=i.fontFamily,u=void 0===o?'"Roboto", "Helvetica", "Arial", sans-serif':o,l=i.fontSize,c=void 0===l?14:l,f=i.fontWeightLight,d=void 0===f?300:f,h=i.fontWeightRegular,p=void 0===h?400:h,m=i.fontWeightMedium,v=void 0===m?500:m,y=i.htmlFontSize,g=void 0===y?16:y,b=(0,a.default)(i,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","htmlFontSize"]),w=c/14;return(0,s.default)({pxToRem:n,round:r,fontFamily:u,fontSize:c,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:v,display4:{fontSize:n(112),fontWeight:d,fontFamily:u,letterSpacing:"-.04em",lineHeight:"".concat(r(128/112),"em"),marginLeft:"-.04em",color:e.text.secondary},display3:{fontSize:n(56),fontWeight:p,fontFamily:u,letterSpacing:"-.02em",lineHeight:"".concat(r(73/56),"em"),marginLeft:"-.02em",color:e.text.secondary},display2:{fontSize:n(45),fontWeight:p,fontFamily:u,lineHeight:"".concat(r(48/45),"em"),marginLeft:"-.02em",color:e.text.secondary},display1:{fontSize:n(34),fontWeight:p,fontFamily:u,lineHeight:"".concat(r(41/34),"em"),color:e.text.secondary},headline:{fontSize:n(24),fontWeight:p,fontFamily:u,lineHeight:"".concat(r(32.5/24),"em"),color:e.text.primary},title:{fontSize:n(21),fontWeight:v,fontFamily:u,lineHeight:"".concat(r(24.5/21),"em"),color:e.text.primary},subheading:{fontSize:n(16),fontWeight:p,fontFamily:u,lineHeight:"".concat(r(1.5),"em"),color:e.text.primary},body2:{fontSize:n(14),fontWeight:v,fontFamily:u,lineHeight:"".concat(r(24/14),"em"),color:e.text.primary},body1:{fontSize:n(14),fontWeight:p,fontFamily:u,lineHeight:"".concat(r(20.5/14),"em"),color:e.text.primary},caption:{fontSize:n(12),fontWeight:p,fontFamily:u,lineHeight:"".concat(r(1.375),"em"),color:e.text.secondary},button:{fontSize:n(14),textTransform:"uppercase",fontWeight:v,fontFamily:u,color:e.text.primary}},b,{clone:!1})}var o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=o(n(3)),s=o(n(65))},function(e,t,n){"use strict";function r(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,r):"dark"===t&&(e.dark=(0,p.darken)(e.main,1.5*r)))}function i(e){function t(e){var t=(0,p.getContrastRatio)(e,v.text.primary)>=x?v.text.primary:m.text.primary;return t}function n(e,n,i,o){!e.main&&e[n]&&(e.main=e[n]),r(e,"light",i,k),r(e,"dark",o,k),e.contrastText||(e.contrastText=t(e.main))}var i=e.primary,o=void 0===i?{light:l.default[300],main:l.default[500],dark:l.default[700]}:i,y=e.secondary,g=void 0===y?{light:c.default.A200,main:c.default.A400,dark:c.default.A700}:y,b=e.error,w=void 0===b?{light:d.default[300],main:d.default[500],dark:d.default[700]}:b,_=e.type,E=void 0===_?"light":_,T=e.contrastThreshold,x=void 0===T?3:T,S=e.tonalOffset,k=void 0===S?.2:S,C=(0,s.default)(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);n(o,500,300,700),n(g,"A400","A200","A700"),n(w,500,300,700);var O={dark:v,light:m};return(0,u.default)((0,a.default)({common:h.default,type:E,primary:o,secondary:g,error:w,grey:f.default,contrastThreshold:x,getContrastText:t,augmentColor:n,tonalOffset:k},O[E]),C,{clone:!1})}var o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,t.dark=t.light=void 0;var a=o(n(12)),s=o(n(3)),u=(o(n(14)),o(n(65))),l=o(n(131)),c=o(n(132)),f=o(n(133)),d=o(n(134)),h=o(n(88)),p=n(31),m={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.default.white,default:f.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}};t.light=m;var v={text:{primary:h.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f.default[800],default:"#303030"},action:{active:h.default.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};t.dark=v},function(e,t,n){"use strict";function r(e,t,n){var r;return(0,a.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.default)({paddingLeft:2*t.unit,paddingRight:2*t.unit},n,(0,o.default)({},e.up("sm"),(0,a.default)({paddingLeft:3*t.unit,paddingRight:3*t.unit},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,o.default)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(r,e.up("sm"),{minHeight:64}),r)},n)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=i(n(7)),a=i(n(12))},function(e,t,n){"use strict";function r(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0, 0, 0, ").concat(i,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0, 0, 0, ").concat(o,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0, 0, 0, ").concat(a,")")].join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=.2,o=.14,a=.12,s=["none",r(0,1,3,0,0,1,1,0,0,2,1,-1),r(0,1,5,0,0,2,2,0,0,3,1,-2),r(0,1,8,0,0,3,4,0,0,3,3,-2),r(0,2,4,-1,0,4,5,0,0,1,10,0),r(0,3,5,-1,0,5,8,0,0,1,14,0),r(0,3,5,-1,0,6,10,0,0,1,18,0),r(0,4,5,-2,0,7,10,1,0,2,16,1),r(0,5,5,-3,0,8,10,1,0,3,14,2),r(0,5,6,-3,0,9,12,1,0,3,16,2),r(0,6,6,-3,0,10,14,1,0,4,18,3),r(0,6,7,-4,0,11,15,1,0,4,20,3),r(0,7,8,-4,0,12,17,2,0,5,22,4),r(0,7,8,-4,0,13,19,2,0,5,24,4),r(0,7,9,-4,0,14,21,2,0,5,26,4),r(0,8,9,-5,0,15,22,2,0,6,28,5),r(0,8,10,-5,0,16,24,2,0,6,30,5),r(0,8,11,-5,0,17,26,2,0,6,32,5),r(0,9,11,-5,0,18,28,2,0,7,34,6),r(0,9,12,-6,0,19,29,2,0,7,36,6),r(0,10,13,-6,0,20,31,3,0,8,38,7),r(0,10,13,-6,0,21,33,3,0,8,40,7),r(0,10,14,-6,0,22,35,3,0,8,42,7),r(0,11,14,-7,0,23,36,3,0,9,44,8),r(0,11,15,-7,0,24,38,3,0,9,46,8)],u=s;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={mobileStepper:1e3,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={unit:8};t.default=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 i(e,t){for(var n=e.split(m),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function o(e){var t=e.options,n=e.style,r=n[f];if(r){for(var o in r)t.sheet.addRule(o,r[o],u({},t,{selector:i(o,e.selector)}));delete n[f]}}function a(e){var t=e.options,n=e.style;for(var r in n)if(r.substr(0,f.length)===f){var o=i(r.substr(f.length),e.selector);t.sheet.addRule(o,n[r],u({},t,{selector:o})),delete n[r]}}function s(){function e(e,t,n){if(e===f)return new h(e,t,n);if("@"===e[0]&&e.substr(0,d.length)===d)return new p(e,t,n);var r=n.parent;return r&&("global"!==r.type&&"global"!==r.options.parent.type||(n.global=!0)),n.global&&(n.selector=e),null}function t(e){"style"===e.type&&(o(e),a(e))}return{onCreateRule:e,onProcessRule:t}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var c=n(136),f="@global",d="@global ",h=function(){function e(t,n,i){r(this,e),this.type="global",this.key=t,this.options=i,this.rules=new c.RuleList(u({},i,{parent:this}));for(var o in n)this.rules.add(o,n[o],{selector:o});this.rules.process()}return l(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"addRule",value:function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"toString",value:function(){return this.rules.toString()}}]),e}(),p=function(){function e(t,n,i){r(this,e),this.name=t,this.options=i;var o=t.substr(d.length);this.rule=i.jss.createRule(o,n,u({},i,{parent:this,selector:o}))}return l(e,[{key:"toString",value:function(e){return this.rule.toString(e)}}]),e}(),m=/\s*,\s*/g},function(e,t,n){"use strict";function r(e){var t=null;for(var n in e){var o=e[n],a="undefined"===typeof o?"undefined":i(o);if("function"===a)t||(t={}),t[n]=o;else if("object"===a&&null!==o&&!Array.isArray(o)){var s=r(o);s&&(t||(t={}),t[n]=s)}}return t}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.default=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")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(38),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(){r(this,e),this.sheets=[],this.refs=[],this.keys=[]}return i(e,[{key:"get",value:function(e){var t=this.keys.indexOf(e);return this.sheets[t]}},{key:"add",value:function(e,t){var n=this.sheets,r=this.refs,i=this.keys,o=n.indexOf(t);return-1!==o?o:(n.push(t),r.push(0),i.push(e),n.length-1)}},{key:"manage",value:function(e){var t=this.keys.indexOf(e),n=this.sheets[t];return 0===this.refs[t]&&n.attach(),this.refs[t]++,this.keys[t]||this.keys.splice(t,0,e),n}},{key:"unmanage",value:function(e){var t=this.keys.indexOf(e);if(-1===t)return void(0,a.default)(!1,"SheetsManager: can't find sheet to unmanage");this.refs[t]>0&&0===--this.refs[t]&&this.sheets[t].detach()}},{key:"size",get:function(){return this.keys.length}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){if(null==e)return e;var t="undefined"===typeof e?"undefined":i(e);if("string"===t||"number"===t||"function"===t)return e;if(s(e))return e.map(r);if((0,a.default)(e))return e;var n={};for(var o in e){var u=e[o];"object"!==("undefined"===typeof u?"undefined":i(u))?n[o]=u:n[o]=r(u)}return n}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.default=r;var o=n(138),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=Array.isArray},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,r){var i,o=n(262);i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var a=Object(o.a)(i);t.default=a}.call(t,n(20),n(261)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.a=r},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});e.CSS;t.default=function(e){return e}}).call(t,n(20))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n="2f1acc6c3a606b082e5eef5e54414ffb";null==e[n]&&(e[n]=0),t.default=e[n]++}).call(t,n(20))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!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},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(68),l=r(u),c=n(141),f=r(c),d=n(266),h=r(d),p=n(267),m=r(p),v=n(273),y=r(v),g=n(274),b=r(g),w=n(90),_=r(w),E=n(39),T=r(E),x=n(140),S=r(x),k=n(67),C=r(k),O=n(275),N=r(O),P=n(276),I=r(P),A=m.default.concat([y.default,b.default]),D=0,R=function(){function e(t){i(this,e),this.id=D++,this.version="9.8.3",this.plugins=new h.default,this.options={createGenerateClassName:S.default,Renderer:l.default?N.default:I.default,plugins:[]},this.generateClassName=(0,S.default)(),this.use.apply(this,A),this.setup(t)}return s(e,[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.createGenerateClassName&&(this.options.createGenerateClassName=e.createGenerateClassName,this.generateClassName=e.createGenerateClassName()),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),(e.virtual||e.Renderer)&&(this.options.Renderer=e.Renderer||(e.virtual?I.default:N.default)),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index;"number"!==typeof n&&(n=0===_.default.index?0:_.default.index+1);var r=new f.default(e,a({},t,{jss:this,generateClassName:t.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r}},{key:"removeStyleSheet",value:function(e){return e.detach(),_.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===("undefined"===typeof e?"undefined":o(e))&&(n=t,t=e,e=void 0);var r=n;r.jss=this,r.Renderer=this.options.Renderer,r.generateClassName||(r.generateClassName=this.generateClassName),r.classes||(r.classes={});var i=(0,C.default)(e,t,r);return!r.selector&&i instanceof T.default&&(i.selector="."+r.generateClassName(i)),this.plugins.onProcessRule(i),i}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){-1===e.options.plugins.indexOf(t)&&(e.options.plugins.push(t),e.plugins.use(t))}),this}}]),e}();t.default=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")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(38),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(){r(this,e),this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}}return i(e,[{key:"onCreateRule",value:function(e,t,n){for(var r=0;r<this.hooks.onCreateRule.length;r++){var i=this.hooks.onCreateRule[r](e,t,n);if(i)return i}return null}},{key:"onProcessRule",value:function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.hooks.onProcessRule.length;n++)this.hooks.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}}},{key:"onProcessStyle",value:function(e,t,n){for(var r=e,i=0;i<this.hooks.onProcessStyle.length;i++)r=this.hooks.onProcessStyle[i](r,t,n),t.style=r}},{key:"onProcessSheet",value:function(e){for(var t=0;t<this.hooks.onProcessSheet.length;t++)this.hooks.onProcessSheet[t](e)}},{key:"onUpdate",value:function(e,t,n){for(var r=0;r<this.hooks.onUpdate.length;r++)this.hooks.onUpdate[r](e,t,n)}},{key:"onChangeValue",value:function(e,t,n){for(var r=e,i=0;i<this.hooks.onChangeValue.length;i++)r=this.hooks.onChangeValue[i](r,t,n);return r}},{key:"use",value:function(e){for(var t in e)this.hooks[t]?this.hooks[t].push(e[t]):(0,a.default)(!1,'[JSS] Unknown hook "%s".',t)}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(268),o=r(i),a=n(269),s=r(a),u=n(270),l=r(u),c=n(271),f=r(c),d=n(272),h=r(d),p={"@charset":o.default,"@import":o.default,"@namespace":o.default,"@keyframes":s.default,"@media":l.default,"@supports":l.default,"@font-face":f.default,"@viewport":h.default,"@-ms-viewport":h.default},m=Object.keys(p).map(function(e){var t=new RegExp("^"+e),n=p[e];return{onCreateRule:function(e,r,i){return t.test(e)?new n(e,r,i):null}}});t.default=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")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n,i){r(this,e),this.type="simple",this.isProcessed=!1,this.key=t,this.value=n,this.options=i}return i(e,[{key:"toString",value:function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"}}]),e}();t.default=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")}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(53),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(){function e(t,n,o){r(this,e),this.type="keyframes",this.isProcessed=!1,this.key=t,this.options=o,this.rules=new s.default(i({},o,{parent:this}));for(var a in n)this.rules.add(a,n[a],i({},this.options,{parent:this,selector:a}));this.rules.process()}return o(e,[{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t&&(t+="\n"),this.key+" {\n"+t+"}"}}]),e}();t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(53),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(){function e(t,n,o){r(this,e),this.type="conditional",this.isProcessed=!1,this.key=t,this.options=o,this.rules=new s.default(i({},o,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}return o(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"addRule",value:function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""}}]),e}();t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(89),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t,n,i){r(this,e),this.type="font-face",this.isProcessed=!1,this.key=t,this.style=n,this.options=i}return i(e,[{key:"toString",value:function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=(0,a.default)(this.key,this.style[n]),this.style[n+1]&&(t+="\n");return t}return(0,a.default)(this.key,this.style,e)}}]),e}();t.default=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")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(89),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t,n,i){r(this,e),this.type="viewport",this.isProcessed=!1,this.key=t,this.style=n,this.options=i}return i(e,[{key:"toString",value:function(e){return(0,a.default)(this.key,this.style,e)}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(39),o=r(i),a=n(67),s=r(a),u=n(138),l=r(u);t.default={onCreateRule:function(e,t,n){if(!(0,l.default)(t))return null;var r=t,i=(0,s.default)(e,{},n);return r.subscribe(function(e){for(var t in e)i.prop(t,e[t])}),i},onProcessRule:function(e){if(e instanceof o.default){var t=e,n=t.style;for(var r in n){(function(e){var r=n[e];if(!(0,l.default)(r))return"continue";delete n[e],r.subscribe({next:function(n){t.prop(e,n)}})})(r)}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(53),o=r(i),a=n(39),s=r(a),u=n(67),l=r(u),c=Date.now(),f="fnValues"+c,d="fnStyle"+ ++c;t.default={onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=(0,l.default)(e,{},n);return r[d]=t,r},onProcessStyle:function(e,t){var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t=t,t[f]=n,e},onUpdate:function(e,t){if(t.rules instanceof o.default)return void t.rules.update(e);if(t instanceof s.default){if(t=t,t[f])for(var n in t[f])t.prop(n,t[f][n](e));t=t;var r=t[d];if(r){var i=r(e);for(var a in i)t.prop(a,i[a])}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){try{return e.style.getPropertyValue(t)}catch(e){return""}}function a(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=(0,E.default)(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.style.setProperty(t,r)}catch(e){return!1}return!0}function s(e,t){try{e.style.removeProperty(t)}catch(e){(0,v.default)(!1,'[JSS] DOMException "%s" was thrown. Tried to remove property "%s".',e.message,t)}}function u(e,t){return e.selectorText=t,e.selectorText===t}function l(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function c(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function f(e){for(var t=k(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}function d(e){var t=g.default.registry;if(t.length>0){var n=l(t,e);if(n)return n.renderer.element;if(n=c(t,e))return n.renderer.element.nextElementSibling}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=f(r);if(i)return i.nextSibling;(0,v.default)("jss"===r,'[JSS] Insertion point "%s" not found.',r)}return null}function h(e,t){var n=t.insertionPoint,r=d(t);if(r){var i=r.parentNode;return void(i&&i.insertBefore(e,r))}if(n&&"number"===typeof n.nodeType){var o=n,a=o.parentNode;return void(a?a.insertBefore(e,o.nextSibling):(0,v.default)(!1,"[JSS] Insertion point is not in the DOM."))}k().insertBefore(e,r)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=n(38),v=r(m),y=n(90),g=r(y),b=n(39),w=r(b),_=n(66),E=r(_),T=function(e){var t=void 0;return function(){return t||(t=e()),t}},x={STYLE_RULE:1,KEYFRAMES_RULE:7},S=function(){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.substr(t,e.indexOf("{")-1)};return function(t){if(t.type===x.STYLE_RULE)return t.selectorText;if(t.type===x.KEYFRAMES_RULE){var n=t.name;if(n)return"@keyframes "+n;var r=t.cssText;return"@"+e(r,r.indexOf("keyframes"))}return e(t.cssText)}}(),k=T(function(){return document.head||document.getElementsByTagName("head")[0]}),C=function(){var e=void 0,t=!1;return function(n){var r={};e||(e=document.createElement("style"));for(var i=0;i<n.length;i++){var o=n[i];if(o instanceof w.default){var a=o.selector;if(a&&-1!==a.indexOf("\\")){t||(k().appendChild(e),t=!0),e.textContent=a+" {}";var s=e,u=s.sheet;if(u){var l=u.cssRules;l&&(r[l[0].selectorText]=o.key)}}}}return t&&(k().removeChild(e),t=!1),r}}(),O=T(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),N=function(){function e(t){i(this,e),this.getPropertyValue=o,this.setProperty=a,this.removeProperty=s,this.setSelector=u,this.getKey=S,this.getUnescapedKeysMap=C,this.hasInsertedRules=!1,t&&g.default.add(t),this.sheet=t;var n=this.sheet?this.sheet.options:{},r=n.media,l=n.meta,c=n.element;this.element=c||document.createElement("style"),this.element.type="text/css",this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),l&&this.element.setAttribute("data-meta",l);var f=O();f&&this.element.setAttribute("nonce",f)}return p(e,[{key:"attach",value:function(){!this.element.parentNode&&this.sheet&&(this.hasInsertedRules&&(this.deploy(),this.hasInsertedRules=!1),h(this.element,this.sheet.options))}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(){this.sheet&&(this.element.textContent="\n"+this.sheet.toString()+"\n")}},{key:"insertRule",value:function(e,t){var n=this.element.sheet,r=n.cssRules,i=e.toString();if(t||(t=r.length),!i)return!1;try{n.insertRule(i,t)}catch(t){return(0,v.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e),!1}return this.hasInsertedRules=!0,r[t]}},{key:"deleteRule",value:function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),!0)}},{key:"indexOf",value:function(e){for(var t=this.element.sheet.cssRules,n=0;n<t.length;n++)if(e===t[n])return n;return-1}},{key:"replaceRule",value:function(e,t){var n=this.indexOf(e),r=this.insertRule(t,n);return this.element.sheet.deleteRule(n),r}},{key:"getRules",value:function(){return this.element.sheet.cssRules}}]),e}();t.default=N},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,[{key:"setProperty",value:function(){return!0}},{key:"getPropertyValue",value:function(){return""}},{key:"removeProperty",value:function(){}},{key:"setSelector",value:function(){return!0}},{key:"getKey",value:function(){return""}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){return!1}},{key:"deleteRule",value:function(){return!0}},{key:"replaceRule",value:function(){return!1}},{key:"getRules",value:function(){}},{key:"indexOf",value:function(){return-1}}]),e}();t.default=o},function(e,t,n){"use strict";function r(){function e(e){return function(t,n){var r=e.getRule(n);return r?r.selector:((0,a.default)(!1,"[JSS] Could not find the referenced rule %s in %s.",n,e.options.meta||e),n)}}function t(e,t){for(var n=t.split(s),r=e.split(s),i="",a=0;a<n.length;a++)for(var l=n[a],c=0;c<r.length;c++){var f=r[c];i&&(i+=", "),i+=o(f)?f.replace(u,l):l+" "+f}return i}function n(e,t,n){if(n)return i({},n,{index:n.index+1});var r=e.options.nestingLevel;return r=void 0===r?1:r+1,i({},e.options,{nestingLevel:r,index:t.indexOf(e)+1})}function r(r,a){if("style"!==a.type)return r;var s=a.options.parent,u=void 0,c=void 0;for(var f in r){var d=o(f),h="@"===f[0];if(d||h){if(u=n(a,s,u),d){var p=t(f,a.selector);c||(c=e(s)),p=p.replace(l,c),s.addRule(p,r[f],i({},u,{selector:p}))}else h&&s.addRule(f,null,u).addRule(a.key,r[f],{selector:a.selector});delete r[f]}}return r}var o=function(e){return-1!==e.indexOf("&")};return{onProcessStyle:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=r;var o=n(278),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=/\s*,\s*/g,u=/&/g,l=/\$([\w-]+)/g},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){var t={};for(var n in e)t[(0,a.default)(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(r):t.fallbacks=r(e.fallbacks)),t}function i(){function e(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=r(e[t]);return e}return r(e)}function t(e,t,n){var r=(0,a.default)(t);return t===r?e:(n.prop(r,e),null)}return{onProcessStyle:e,onChangeValue:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(280),a=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){"use strict";function r(e){return e in a?a[e]:a[e]=e.replace(i,"-$&").toLowerCase().replace(o,"-ms-")}var i=/[A-Z]/g,o=/^ms-/,a={};e.exports=r},function(e,t,n){"use strict";function r(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}function i(e,t,n){if(!t)return t;var r=t,o="undefined"===typeof t?"undefined":a(t);switch("object"===o&&Array.isArray(t)&&(o="array"),o){case"object":if("fallbacks"===e){for(var s in t)t[s]=i(s,t[s],n);break}for(var u in t)t[u]=i(e+"-"+u,t[u],n);break;case"array":for(var c=0;c<t.length;c++)t[c]=i(e,t[c],n);break;case"number":0!==t&&(r=t+(n[e]||l[e]||""))}return r}function o(){function e(e,t){if("style"!==t.type)return e;for(var n in e)e[n]=i(n,e[n],o);return e}function t(e,t){return i(t,e,o)}var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r(n);return{onProcessStyle:e,onChangeValue:t}}Object.defineProperty(t,"__esModule",{value:!0});var a="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=o;var s=n(282),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=r(u.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"animation-delay":"ms","animation-duration":"ms","background-position":"px","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","box-shadow":"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px","box-shadow-x":"px","box-shadow-y":"px","box-shadow-blur":"px","box-shadow-spread":"px","font-line-height":"px","text-shadow-x":"px","text-shadow-y":"px","text-shadow-blur":"px"}},function(e,t,n){"use strict";function r(){function e(e){"keyframes"===e.type&&(e.key="@"+o.prefix.css+e.key.substr(1))}function t(e,t){if("style"!==t.type)return e;for(var n in e){var r=e[n],i=!1,a=o.supportedProperty(n);a&&a!==n&&(i=!0);var s=!1,u=o.supportedValue(a,r);u&&u!==r&&(s=!0),(i||s)&&(i&&delete e[n],e[a||n]=u||r)}return e}function n(e,t){return o.supportedValue(t,e)}return{onProcessRule:e,onProcessStyle:t,onChangeValue:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(284),o=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}(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.supportedValue=t.supportedProperty=t.prefix=void 0;var i=n(91),o=r(i),a=n(285),s=r(a),u=n(287),l=r(u);t.default={prefix:o.default,supportedProperty:s.default,supportedValue:l.default},t.prefix=o.default,t.supportedProperty=s.default,t.supportedValue=l.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return f?null!=d[e]?d[e]:((0,c.default)(e)in f.style?d[e]=e:u.default.js+(0,c.default)("-"+e)in f.style?d[e]=u.default.css+e:d[e]=!1,d[e]):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(68),a=r(o),s=n(91),u=r(s),l=n(286),c=r(l),f=void 0,d={};if(a.default){f=document.createElement("p");var h=window.getComputedStyle(document.documentElement,"");for(var p in h)isNaN(p)||(d[h[p]]=h[p])}},function(e,t,n){"use strict";function r(e){return e.replace(o,i)}function i(e,t){return t?t.toUpperCase():""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=/[-\s]+(.)?/g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!c)return t;if("string"!==typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=l[n])return l[n];try{c.style[e]=t}catch(e){return l[n]=!1,!1}return""!==c.style[e]?l[n]=t:(t=u.default.css+t,"-ms-flex"===t&&(t="-ms-flexbox"),c.style[e]=t,""!==c.style[e]&&(l[n]=t)),l[n]||(l[n]=!1),c.style[e]="",l[n]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(68),a=r(o),s=n(91),u=r(s),l={},c=void 0;a.default&&(c=document.createElement("p"))},function(e,t,n){"use strict";function r(){function e(e,t){return e.length-t.length}function t(t,n){if("style"!==n.type)return t;var r={},i=Object.keys(t).sort(e);for(var o in i)r[i[o]]=t[i[o]];return r}return{onProcessStyle:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";var r=n(54),i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(12)),a=i(n(7)),s=i(n(8)),u=i(n(9)),l=i(n(10)),c=i(n(11)),f=i(n(1)),d=i(n(2)),h=(i(n(14)),i(n(293))),p=r(n(93)),m=(i(n(55)),function(e){function t(e,n){var r;return(0,s.default)(this,t),r=(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r.broadcast=(0,h.default)(),r.unsubscribeId=null,r.outerTheme=null,r.outerTheme=p.default.initial(n),r.broadcast.setState(r.mergeOuterLocalTheme(r.props.theme)),r}return(0,c.default)(t,e),(0,u.default)(t,[{key:"getChildContext",value:function(){var e,t=this.props,n=t.sheetsManager,r=t.disableStylesGeneration,i=this.context.muiThemeProviderOptions||{};return void 0!==n&&(i.sheetsManager=n),void 0!==r&&(i.disableStylesGeneration=r),e={},(0,a.default)(e,p.CHANNEL,this.broadcast),(0,a.default)(e,"muiThemeProviderOptions",i),e}},{key:"componentDidMount",value:function(){var e=this;this.unsubscribeId=p.default.subscribe(this.context,function(t){e.outerTheme=t,e.broadcast.setState(e.mergeOuterLocalTheme(e.props.theme))})}},{key:"componentDidUpdate",value:function(e){this.props.theme!==e.theme&&this.broadcast.setState(this.mergeOuterLocalTheme(this.props.theme))}},{key:"componentWillUnmount",value:function(){null!==this.unsubscribeId&&p.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"mergeOuterLocalTheme",value:function(e){return"function"===typeof e?e(this.outerTheme):this.outerTheme?(0,o.default)({},this.outerTheme,e):e}},{key:"render",value:function(){return this.props.children}}]),t}(f.default.Component));m.propTypes={},m.propTypes={},m.childContextTypes=(0,o.default)({},p.default.contextTypes,{muiThemeProviderOptions:d.default.object}),m.contextTypes=(0,o.default)({},p.default.contextTypes,{muiThemeProviderOptions:d.default.object});var v=m;t.default=v},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(84),i=n(83),o=n(292);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!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";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){function t(){return s}function n(e){s=e;for(var t=Object.keys(o),n=0,r=t.length;n<r;n++)o[t[n]]&&o[t[n]](e)}function r(e){if("function"!==typeof e)throw new Error("listener must be a function.");var t=a;return o[t]=e,a+=1,t}function i(e){o[e]=void 0}var o={},a=1,s=e;return{getState:t,setState:n,subscribe:r,unsubscribe:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(2),a=n(143),s=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}(a),u=n(296),l=function(e){return e&&e.__esModule?e:{default:e}}(u);t.default=(i={},r(i,s.jss,l.default.jss),r(i,s.sheetOptions,o.object),r(i,s.sheetsRegistry,l.default.registry),r(i,s.managers,o.object),i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.default={jss:(0,r.shape)({options:(0,r.shape)({createGenerateClassName:r.func.isRequired}).isRequired,createStyleSheet:r.func.isRequired,removeStyleSheet:r.func.isRequired}),registry:(0,r.shape)({add:r.func.isRequired,toString:r.func.isRequired})}},function(e,t,n){"use strict";function r(e,t){return t}function i(e){function t(t,i){var o=n?e(t):e;if(!i||!t.overrides||!t.overrides[i])return o;var u=t.overrides[i],l=(0,a.default)({},o);return Object.keys(u).forEach(function(e){l[e]=(0,s.default)(l[e],u[e],{arrayMerge:r})}),l}var n="function"===typeof e;return{create:t,options:{},themingEnabled:n}}var o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(12)),s=(o(n(14)),o(n(65))),u=i;t.default=u},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name;return n&&t.props&&t.props[n]?t.props[n]:{}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r;t.default=i},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 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 o(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)}n.d(t,"a",function(){return w});var a=n(1),s=n.n(a),u=n(144),l=n.n(u),c=n(95),f=n.n(c),d=n(23),h=n.n(d),p=n(304),m=n.n(p),v=n(347),y=n(78),g=n(564),b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={sidebarEnabled:!1,minimized:!1,drawerOpen:!1},n.updateDim=n.updateDim.bind(n),n.toggleDrawer=n.toggleDrawer.bind(n),n.appbarStyle={flexGrow:1,paddingTop:"2px"},n.logoStyle={flex:1,textAlign:"left"},n.logoHeight=30,n.minWidth=660,n}return o(t,e),b(t,[{key:"componentWillMount",value:function(){window.addEventListener("resize",this.updateDim),window.innerWidth<=this.minWidth&&this.setState({minimized:!0}),this.hamburgerStyle={paddingTop:this.props.data.getButtonHeight()}}},{key:"updateDim",value:function(){window.innerWidth<=this.minWidth&&!this.state.minimized?this.setState({minimized:!0}):window.innerWidth>this.minWidth&&this.state.minimized&&this.setState({minimized:!1,drawerOpen:!1})}},{key:"toggleDrawer",value:function(){this.setState({drawerOpen:!this.state.drawerOpen})}},{key:"render",value:function(){var e=this,t=this.props.a;return s.a.createElement("div",{style:this.appbarStyle},s.a.createElement(l.a,null,s.a.createElement(f.a,null,s.a.createElement(h.a,{style:this.logoStyle,variant:"title",color:"primary"},s.a.createElement("img",{height:this.logoHeight,alt:"Washington Logo",src:this.props.data.getLogo()})),!this.state.minimized&&this.props.data.getNavbarData().map(function(n,r){return s.a.createElement(v.a,{a:t,data:e.props.data,name:e.props.name,pageTitle:e.props.pageTitle,nav:n,key:"abmL-"+r})}),this.state.minimized&&s.a.createElement("div",{style:this.hamburgerStyle},s.a.createElement(y.c,{color:"inherit","aria-label":"open drawer",onClick:function(){return e.toggleDrawer()}},s.a.createElement(m.a,null)),s.a.createElement(g.a,{drawerOpen:this.state.drawerOpen,toggleDrawer:this.toggleDrawer,data:this.props.data,side:"right",name:this.props.name,title:this.props.pageTitle,a:t})))))}}]),t}(a.Component)},function(e,t,n){"use strict";function r(e){var t,n=e.children,r=e.classes,i=e.className,c=e.color,h=e.position,p=(0,s.default)(e,["children","classes","className","color","position"]),m=(0,l.default)(r.root,r["position".concat((0,f.capitalize)(h))],(t={},(0,a.default)(t,r["color".concat((0,f.capitalize)(c))],"inherit"!==c),(0,a.default)(t,"mui-fixed","fixed"===h),t),i);return u.default.createElement(d.default,(0,o.default)({square:!0,component:"header",elevation:4,className:m},p),n)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(13),d=i(n(25)),h=function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText}}};t.styles=h,r.propTypes={},r.defaultProps={color:"primary",position:"fixed"};var p=(0,c.default)(h,{name:"MuiAppBar"})(r);t.default=p},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.component,i=e.square,u=e.elevation,f=(0,s.default)(e,["classes","className","component","square","elevation"]),d=(0,c.default)(t.root,t["elevation".concat(u)],(0,a.default)({},t.rounded,!i),n);return l.default.createElement(r,(0,o.default)({className:d},f))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(12)),l=i(n(1)),c=(i(n(2)),i(n(6))),f=(i(n(14)),i(n(5))),d=function(e){var t={};return e.shadows.forEach(function(e,n){t["elevation".concat(n)]={boxShadow:e}}),(0,u.default)({root:{backgroundColor:e.palette.background.paper},rounded:{borderRadius:2}},t)};t.styles=d,r.propTypes={},r.defaultProps={component:"div",elevation:2,square:!1};var h=(0,f.default)(d,{name:"MuiPaper"})(r);t.default=h},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=e.disableGutters,u=(0,s.default)(e,["children","classes","className","disableGutters"]),f=(0,c.default)(n.root,(0,a.default)({},n.gutters,!i),r);return l.default.createElement("div",(0,o.default)({className:f},u),t)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(12)),l=i(n(1)),c=(i(n(2)),i(n(6))),f=i(n(5)),d=function(e){return{root:(0,u.default)({},e.mixins.toolbar,{position:"relative",display:"flex",alignItems:"center"}),gutters:e.mixins.gutters()}};t.styles=d,r.propTypes={},r.defaultProps={disableGutters:!1};var h=(0,f.default)(d,{name:"MuiToolbar"})(r);t.default=h},function(e,t,n){"use strict";function r(e){var t,n=e.align,r=e.classes,i=e.className,c=e.component,d=e.color,h=e.gutterBottom,p=e.headlineMapping,m=e.noWrap,v=e.paragraph,y=e.variant,g=(0,s.default)(e,["align","classes","className","component","color","gutterBottom","headlineMapping","noWrap","paragraph","variant"]),b=(0,l.default)(r.root,r[y],(t={},(0,a.default)(t,r["color".concat((0,f.capitalize)(d))],"default"!==d),(0,a.default)(t,r.noWrap,m),(0,a.default)(t,r.gutterBottom,h),(0,a.default)(t,r.paragraph,v),(0,a.default)(t,r["align".concat((0,f.capitalize)(n))],"inherit"!==n),t),i),w=c||(v?"p":p[y])||"span";return u.default.createElement(w,(0,o.default)({className:b},g))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(13),d=function(e){return{root:{display:"block",margin:0},display4:e.typography.display4,display3:e.typography.display3,display2:e.typography.display2,display1:e.typography.display1,headline:e.typography.headline,title:e.typography.title,subheading:e.typography.subheading,body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:2*e.spacing.unit},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main}}};t.styles=d,r.propTypes={},r.defaultProps={align:"inherit",color:"default",gutterBottom:!1,headlineMapping:{display4:"h1",display3:"h1",display2:"h1",display1:"h1",headline:"h1",title:"h2",subheading:"h3",body2:"aside",body1:"p"},noWrap:!1,paragraph:!1,variant:"body1"};var h=(0,c.default)(d,{name:"MuiTypography"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(96)),a=(0,o.default)(i.default.createElement("g",null,i.default.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})),"Menu");t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(306),o=r(i),a=n(307),s=r(a),u=n(336),l=r(u),c=n(1),f=n(156),d=(r(f),n(56)),h=(r(d),function(e){return function(t){var n=(0,c.createFactory)(t),r=function(t){function r(){return(0,o.default)(this,r),(0,s.default)(this,t.apply(this,arguments))}return(0,l.default)(r,t),r.prototype.shouldComponentUpdate=function(t){return e(this.props,t)},r.prototype.render=function(){return n(this.props)},r}(c.Component);return r}});t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(145),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,i.default)(t))&&"function"!==typeof t?e:t}},function(e,t,n){e.exports={default:n(309),__esModule:!0}},function(e,t,n){n(310),n(322),e.exports=n(108).f("iterator")},function(e,t,n){"use strict";var r=n(311)(!0);n(146)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(97),i=n(98);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(102),i=n(71),o=n(107),a={};n(41)(a,n(46)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(42),i=n(58),o=n(103);e.exports=n(44)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(152);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(45),i=n(317),o=n(318);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(97),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(97),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(33).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(36),i=n(321),o=n(104)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(98);e.exports=function(e){return Object(r(e))}},function(e,t,n){n(323);for(var r=n(33),i=n(41),o=n(101),a=n(46)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=r[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(e,t,n){"use strict";var r=n(324),i=n(325),o=n(101),a=n(45);e.exports=n(146)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(327),__esModule:!0}},function(e,t,n){n(328),n(333),n(334),n(335),e.exports=n(57).Symbol},function(e,t,n){"use strict";var r=n(33),i=n(36),o=n(44),a=n(69),s=n(150),u=n(329).KEY,l=n(70),c=n(105),f=n(107),d=n(72),h=n(46),p=n(108),m=n(109),v=n(330),y=n(331),g=n(58),b=n(43),w=n(45),_=n(100),E=n(71),T=n(102),x=n(332),S=n(155),k=n(42),C=n(103),O=S.f,N=k.f,P=x.f,I=r.Symbol,A=r.JSON,D=A&&A.stringify,R=h("_hidden"),M=h("toPrimitive"),L={}.propertyIsEnumerable,j=c("symbol-registry"),F=c("symbols"),U=c("op-symbols"),B=Object.prototype,q="function"==typeof I,V=r.QObject,z=!V||!V.prototype||!V.prototype.findChild,W=o&&l(function(){return 7!=T(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=O(B,t);r&&delete B[t],N(e,t,n),r&&e!==B&&N(B,t,r)}:N,H=function(e){var t=F[e]=T(I.prototype);return t._k=e,t},K=q&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},G=function(e,t,n){return e===B&&G(U,t,n),g(e),t=_(t,!0),g(n),i(F,t)?(n.enumerable?(i(e,R)&&e[R][t]&&(e[R][t]=!1),n=T(n,{enumerable:E(0,!1)})):(i(e,R)||N(e,R,E(1,{})),e[R][t]=!0),W(e,t,n)):N(e,t,n)},Q=function(e,t){g(e);for(var n,r=v(t=w(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},Y=function(e,t){return void 0===t?T(e):Q(T(e),t)},X=function(e){var t=L.call(this,e=_(e,!0));return!(this===B&&i(F,e)&&!i(U,e))&&(!(t||!i(this,e)||!i(F,e)||i(this,R)&&this[R][e])||t)},$=function(e,t){if(e=w(e),t=_(t,!0),e!==B||!i(F,t)||i(U,t)){var n=O(e,t);return!n||!i(F,t)||i(e,R)&&e[R][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=P(w(e)),r=[],o=0;n.length>o;)i(F,t=n[o++])||t==R||t==u||r.push(t);return r},Z=function(e){for(var t,n=e===B,r=P(n?U:w(e)),o=[],a=0;r.length>a;)!i(F,t=r[a++])||n&&!i(B,t)||o.push(F[t]);return o};q||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(U,n),i(this,R)&&i(this[R],e)&&(this[R][e]=!1),W(this,e,E(1,n))};return o&&z&&W(B,e,{configurable:!0,set:t}),H(e)},s(I.prototype,"toString",function(){return this._k}),S.f=$,k.f=G,n(154).f=x.f=J,n(110).f=X,n(153).f=Z,o&&!n(99)&&s(B,"propertyIsEnumerable",X,!0),p.f=function(e){return H(h(e))}),a(a.G+a.W+a.F*!q,{Symbol:I});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)h(ee[te++]);for(var ne=C(h.store),re=0;ne.length>re;)m(ne[re++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=I(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!q,"Object",{create:Y,defineProperty:G,defineProperties:Q,getOwnPropertyDescriptor:$,getOwnPropertyNames:J,getOwnPropertySymbols:Z}),A&&a(a.S+a.F*(!q||l(function(){var e=I();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,D.apply(A,r)}}),I.prototype[M]||n(41)(I.prototype,M,I.prototype.valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(72)("meta"),i=n(43),o=n(36),a=n(42).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(70)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return l&&p.NEED&&u(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(e,t,n){var r=n(103),i=n(153),o=n(110);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var r=n(152);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(45),i=n(154).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t){},function(e,t,n){n(109)("asyncIterator")},function(e,t,n){n(109)("observable")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(337),o=r(i),a=n(341),s=r(a),u=n(145),l=r(u);t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(338),__esModule:!0}},function(e,t,n){n(339),e.exports=n(57).Object.setPrototypeOf},function(e,t,n){var r=n(69);r(r.S,"Object",{setPrototypeOf:n(340).set})},function(e,t,n){var r=n(43),i=n(58),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(147)(Function.call,n(155).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){e.exports={default:n(342),__esModule:!0}},function(e,t,n){n(343);var r=n(57).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(69);r(r.S,"Object",{create:n(102)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return function(n){return n[e]=t,n}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(127),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=e.color,c=e.nativeColor,d=e.titleAccess,h=e.viewBox,p=(0,s.default)(e,["children","classes","className","color","nativeColor","titleAccess","viewBox"]),m=(0,l.default)(n.root,(0,a.default)({},n["color".concat((0,f.capitalize)(i))],"inherit"!==i),r);return u.default.createElement("svg",(0,o.default)({className:m,focusable:"false",viewBox:h,color:c,"aria-hidden":d?"false":"true"},p),d?u.default.createElement("title",null,d):null,t)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(13),d=function(e){return{root:{userSelect:"none",fontSize:24,width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled}}};t.styles=d,r.propTypes={},r.defaultProps={color:"inherit",viewBox:"0 0 24 24"},r.muiName="SvgIcon";var h=(0,c.default)(d,{name:"MuiSvgIcon"})(r);t.default=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 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 o(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)}n.d(t,"a",function(){return m});var a=n(1),s=n.n(a),u=n(59),l=n.n(u),c=n(157),f=n.n(c),d=n(113),h=n.n(d),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=function(e){n.setState({anchorEl:e.currentTarget})},n.handleClose=function(){n.setState({anchorEl:null})},n.handleLink=function(){n.a(),n.handleClose()},n.state={anchorEl:null},n.getLink=n.getLink.bind(n),n.buttonStyle={margin:"2px",textTransform:"none"},n.anchorElSpacing=45,n.buttonVariant="raised",n.menuItemStyles={color:"#000000",textDecoration:"none"},n}return o(t,e),p(t,[{key:"componentWillMount",value:function(){this.appbarStyle={paddingTop:this.props.data.getButtonHeight()},this.a=this.props.a}},{key:"getLink",value:function(e){var t=""+this.props.name+this.props.nav.links[e];return"Home"===this.props.nav.title&&(t=this.props.nav.links[e]),t}},{key:"render",value:function(){var e=this,t=this.state.anchorEl;return s.a.createElement("div",{style:this.appbarStyle},s.a.createElement(l.a,{variant:this.buttonVariant,"aria-owns":t?"simple-menu":null,"aria-haspopup":"true",onClick:this.handleClick,color:"inherit",style:this.buttonStyle},this.props.nav.title),s.a.createElement(f.a,{id:"simple-menu",anchorEl:t,open:Boolean(t),onClose:this.handleClose,anchorOrigin:{vertical:this.anchorElSpacing,horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},this.props.nav.names.map(function(t,n){return s.a.createElement(h.a,{style:e.menuItemStyles,component:"a",href:e.getLink(n),disabled:e.props.pageTitle===e.props.nav.links[n],key:t+"-"+n,onClick:e.handleLink,value:n},t)})))}}]),t}(a.Component)},function(e,t,n){"use strict";function r(e){var t,n=e.children,r=e.classes,i=e.className,u=e.color,f=e.disabled,d=e.disableFocusRipple,m=e.fullWidth,v=e.focusVisibleClassName,y=e.mini,g=e.size,b=e.variant,w=(0,s.default)(e,["children","classes","className","color","disabled","disableFocusRipple","fullWidth","focusVisibleClassName","mini","size","variant"]),_="fab"===b,E="contained"===b||"raised"===b,T=!E&&!_,x=(0,c.default)(r.root,(t={},(0,a.default)(t,r.contained,E||_),(0,a.default)(t,r.fab,_),(0,a.default)(t,r.mini,_&&y),(0,a.default)(t,r.colorInherit,"inherit"===u),(0,a.default)(t,r.textPrimary,T&&"primary"===u),(0,a.default)(t,r.textSecondary,T&&"secondary"===u),(0,a.default)(t,r.flat,T),(0,a.default)(t,r.flatPrimary,T&&"primary"===u),(0,a.default)(t,r.flatSecondary,T&&"secondary"===u),(0,a.default)(t,r.containedPrimary,!T&&"primary"===u),(0,a.default)(t,r.containedSecondary,!T&&"secondary"===u),(0,a.default)(t,r.raised,E||_),(0,a.default)(t,r.raisedPrimary,(E||_)&&"primary"===u),(0,a.default)(t,r.raisedSecondary,(E||_)&&"secondary"===u),(0,a.default)(t,r.text,"text"===b),(0,a.default)(t,r.outlined,"outlined"===b),(0,a.default)(t,r["size".concat((0,p.capitalize)(g))],"medium"!==g),(0,a.default)(t,r.disabled,f),(0,a.default)(t,r.fullWidth,m),t),i);return l.default.createElement(h.default,(0,o.default)({className:x,disabled:f,focusRipple:!d,focusVisibleClassName:(0,c.default)(r.focusVisible,v)},w),l.default.createElement("span",{className:r.label},n))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(12)),l=i(n(1)),c=(i(n(2)),i(n(6))),f=i(n(5)),d=n(31),h=i(n(26)),p=n(13),m=function(e){return{root:(0,u.default)({},e.typography.button,{lineHeight:"1.4em",boxSizing:"border-box",minWidth:11*e.spacing.unit,minHeight:36,padding:"".concat(e.spacing.unit,"px ").concat(2*e.spacing.unit,"px"),borderRadius:4,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,d.fade)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,d.fade)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,d.fade)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},flat:{},flatPrimary:{},flatSecondary:{},outlined:{border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},colorInherit:{color:"inherit"},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},raised:{},raisedPrimary:{},raisedSecondary:{},focusVisible:{},disabled:{},fab:{borderRadius:"50%",padding:0,minWidth:0,width:56,fontSize:24,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]}},mini:{width:40,height:40},sizeSmall:{padding:"".concat(e.spacing.unit-1,"px ").concat(e.spacing.unit,"px"),minWidth:8*e.spacing.unit,minHeight:32,fontSize:e.typography.pxToRem(13)},sizeLarge:{padding:"".concat(e.spacing.unit,"px ").concat(3*e.spacing.unit,"px"),minWidth:14*e.spacing.unit,minHeight:40,fontSize:e.typography.pxToRem(15)},fullWidth:{width:"100%"}}};t.styles=m,r.propTypes={},r.defaultProps={color:"default",component:"button",disabled:!1,disableFocusRipple:!1,fullWidth:!1,mini:!1,size:"medium",type:"button",variant:"text"};var v=(0,f.default)(m,{name:"MuiButton"})(r);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(40)),d=r(n(1)),h=(r(n(2)),r(n(17))),p=r(n(6)),m=r(n(47)),v=r(n(73)),y=r(n(5)),g=n(350),b=r(n(351)),w=r(n(359)),_={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:"none",border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}};t.styles=_;var E=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={},r.onFocusVisibleHandler=function(e){r.keyDown=!1,r.setState({focusVisible:!0}),r.props.onFocusVisible&&r.props.onFocusVisible(e)},r.onRippleRef=function(e){r.ripple=e},r.ripple=null,r.keyDown=!1,r.button=null,r.focusVisibleTimeout=null,r.focusVisibleCheckTime=50,r.focusVisibleMaxCheckTimes=5,r.handleKeyDown=function(e){var t=r.props,n=t.component,i=t.focusRipple,o=t.onKeyDown,a=t.onClick,s=(0,m.default)(e);i&&!r.keyDown&&r.state.focusVisible&&r.ripple&&"space"===s&&(r.keyDown=!0,e.persist(),r.ripple.stop(e,function(){r.ripple.start(e)})),o&&o(e),e.target!==e.currentTarget||!n||"button"===n||"space"!==s&&"enter"!==s||"A"===r.button.tagName&&r.button.href||(e.preventDefault(),a&&a(e))},r.handleKeyUp=function(e){r.props.focusRipple&&"space"===(0,m.default)(e)&&r.ripple&&r.state.focusVisible&&(r.keyDown=!1,e.persist(),r.ripple.stop(e,function(){r.ripple.pulsate(e)})),r.props.onKeyUp&&r.props.onKeyUp(e)},r.handleMouseDown=(0,w.default)((0,f.default)(r),"MouseDown","start",function(){clearTimeout(r.focusVisibleTimeout),r.state.focusVisible&&r.setState({focusVisible:!1})}),r.handleMouseUp=(0,w.default)((0,f.default)(r),"MouseUp","stop"),r.handleMouseLeave=(0,w.default)((0,f.default)(r),"MouseLeave","stop",function(e){r.state.focusVisible&&e.preventDefault()}),r.handleTouchStart=(0,w.default)((0,f.default)(r),"TouchStart","start"),r.handleTouchEnd=(0,w.default)((0,f.default)(r),"TouchEnd","stop"),r.handleTouchMove=(0,w.default)((0,f.default)(r),"TouchMove","stop"),r.handleBlur=(0,w.default)((0,f.default)(r),"Blur","stop",function(){clearTimeout(r.focusVisibleTimeout),r.state.focusVisible&&r.setState({focusVisible:!1})}),r.handleFocus=function(e){r.props.disabled||(r.button||(r.button=e.currentTarget),e.persist(),(0,g.detectFocusVisible)((0,f.default)(r),r.button,function(){r.onFocusVisibleHandler(e)}),r.props.onFocus&&r.props.onFocus(e))},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.button=h.default.findDOMNode(this),(0,g.listenForFocusKeys)((0,v.default)(this.button)),this.props.action&&this.props.action({focusVisible:function(){e.setState({focusVisible:!0}),e.button.focus()}})}},{key:"componentDidUpdate",value:function(e,t){this.props.focusRipple&&!this.props.disableRipple&&!t.focusVisible&&this.state.focusVisible&&this.ripple.pulsate()}},{key:"componentWillUnmount",value:function(){this.button=null,clearTimeout(this.focusVisibleTimeout)}},{key:"render",value:function(){var e,t=this.props,n=(t.action,t.buttonRef),r=t.centerRipple,s=t.children,u=t.classes,l=t.className,c=t.component,f=t.disabled,h=t.disableRipple,m=(t.focusRipple,t.focusVisibleClassName),v=(t.onBlur,t.onFocus,t.onFocusVisible,t.onKeyDown,t.onKeyUp,t.onMouseDown,t.onMouseLeave,t.onMouseUp,t.onTouchEnd,t.onTouchMove,t.onTouchStart,t.tabIndex),y=t.TouchRippleProps,g=t.type,w=(0,a.default)(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","focusRipple","focusVisibleClassName","onBlur","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","type"]),_=(0,p.default)(u.root,(e={},(0,o.default)(e,u.disabled,f),(0,o.default)(e,u.focusVisible,this.state.focusVisible),(0,o.default)(e,m,this.state.focusVisible),e),l),E={},T=c;return"button"===T&&w.href&&(T="a"),"button"===T?(E.type=g||"button",E.disabled=f):E.role="button",d.default.createElement(T,(0,i.default)({onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onMouseLeave:this.handleMouseLeave,onMouseUp:this.handleMouseUp,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,tabIndex:f?"-1":v,className:_,ref:n},E,w),s,h||f?null:d.default.createElement(b.default,(0,i.default)({innerRef:this.onRippleRef,center:r},y)))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"undefined"===typeof t.focusVisible?{focusVisible:!1,lastDisabled:e.disabled}:!t.prevState&&e.disabled&&t.focusVisible?{focusVisible:!1,lastDisabled:e.disabled}:{lastDisabled:e.disabled}}}]),t}(d.default.Component);E.propTypes={},E.defaultProps={centerRipple:!1,component:"button",disableRipple:!1,focusRipple:!1,tabIndex:"0",type:"button"};var T=(0,y.default)(_,{name:"MuiButtonBase"})(E);t.default=T},function(e,t,n){"use strict";function r(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;e.focusVisibleTimeout=setTimeout(function(){var o=(0,l.default)(t);c.focusKeyPressed&&(o.activeElement===t||(0,u.default)(t,o.activeElement))?n():i<e.focusVisibleMaxCheckTimes&&r(e,t,n,i+1)},e.focusVisibleCheckTime)}function i(e){return f.indexOf((0,s.default)(e))>-1}function o(e){e.addEventListener("keyup",d)}var a=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.detectFocusVisible=r,t.listenForFocusKeys=o;var s=a(n(47)),u=(a(n(14)),a(n(74))),l=a(n(27)),c={focusKeyPressed:!1,keyUpEventTimeout:-1},f=["tab","enter","space","esc","up","down","left","right"],d=function(e){i(e)&&(c.focusKeyPressed=!0,clearTimeout(c.keyUpEventTimeout),c.keyUpEventTimeout=setTimeout(function(){c.focusKeyPressed=!1},1e3))}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=t.DELAY_RIPPLE=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(76)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(40)),d=r(n(1)),h=(r(n(2)),r(n(17))),p=r(n(355)),m=r(n(6)),v=r(n(5)),y=r(n(357)),g=550,b=80;t.DELAY_RIPPLE=b;var w=function(e){return{root:{display:"block",position:"absolute",overflow:"hidden",borderRadius:"inherit",width:"100%",height:"100%",left:0,top:0,pointerEvents:"none",zIndex:0},ripple:{width:50,height:50,left:0,top:0,opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"mui-ripple-enter ".concat(g,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"mui-ripple-exit ".concat(g,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"mui-ripple-pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes mui-ripple-enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes mui-ripple-exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes mui-ripple-pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}};t.styles=w;var _=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={nextKey:0,ripples:[]},r.ignoringMouseDown=!1,r.startTimer=null,r.startTimerCommit=null,r.pulsate=function(){r.start({},{pulsate:!0})},r.start=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r.props.center||t.pulsate:a,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&r.ignoringMouseDown)return void(r.ignoringMouseDown=!1);"touchstart"===e.type&&(r.ignoringMouseDown=!0);var c,d,p,m=l?null:h.default.findDOMNode((0,f.default)(r)),v=m?m.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(v.width/2),d=Math.round(v.height/2);else{var y=e.clientX?e.clientX:e.touches[0].clientX,g=e.clientY?e.clientY:e.touches[0].clientY;c=Math.round(y-v.left),d=Math.round(g-v.top)}if(s)(p=Math.sqrt((2*Math.pow(v.width,2)+Math.pow(v.height,2))/3))%2===0&&(p+=1);else{var w=2*Math.max(Math.abs((m?m.clientWidth:0)-c),c)+2,_=2*Math.max(Math.abs((m?m.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(w,2)+Math.pow(_,2))}e.touches?(r.startTimerCommit=function(){r.startCommit({pulsate:o,rippleX:c,rippleY:d,rippleSize:p,cb:n})},r.startTimer=setTimeout(function(){r.startTimerCommit(),r.startTimerCommit=null},b)):r.startCommit({pulsate:o,rippleX:c,rippleY:d,rippleSize:p,cb:n})},r.startCommit=function(e){var t=e.pulsate,n=e.rippleX,i=e.rippleY,o=e.rippleSize,s=e.cb,u=r.state.ripples;u=(0,a.default)(u).concat([d.default.createElement(y.default,{key:r.state.nextKey,classes:r.props.classes,timeout:{exit:g,enter:g},pulsate:t,rippleX:n,rippleY:i,rippleSize:o})]),r.setState({nextKey:r.state.nextKey+1,ripples:u},s)},r.stop=function(e,t){clearTimeout(r.startTimer);var n=r.state.ripples;if("touchend"===e.type&&r.startTimerCommit)return e.persist(),r.startTimerCommit(),r.startTimerCommit=null,void(r.startTimer=setTimeout(function(){r.stop(e,t)},0));r.startTimerCommit=null,n&&n.length&&r.setState({ripples:n.slice(1)},t)},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.startTimer)}},{key:"render",value:function(){var e=this.props,t=(e.center,e.classes),n=e.className,r=(0,o.default)(e,["center","classes","className"]);return d.default.createElement(p.default,(0,i.default)({component:"span",enter:!0,exit:!0,className:(0,m.default)(t.root,n)},r),this.state.ripples)}}]),t}(d.default.PureComponent);_.propTypes={},_.defaultProps={center:!1};var E=(0,v.default)(w,{flip:!1,name:"MuiTouchRipple"})(_);t.default=E},function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}e.exports=n},function(e,t){function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}e.exports=n},function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance")}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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 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)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(2),c=r(l),f=n(1),d=r(f),h=n(356),p=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},m=(c.default.any,c.default.node,c.default.bool,c.default.bool,c.default.bool,c.default.func,{component:"div",childFactory:function(e){return e}}),v=function(e){function t(n,r){o(this,t);var i=a(this,e.call(this,n,r));return i.state={children:(0,h.getChildMapping)(n.children,function(e){return(0,f.cloneElement)(e,{onExited:i.handleExited.bind(i,e),in:!0,appear:i.getProp(e,"appear"),enter:i.getProp(e,"enter"),exit:i.getProp(e,"exit")})})},i}return s(t,e),t.prototype.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},t.prototype.getProp=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props;return null!=n[t]?n[t]:e.props[t]},t.prototype.componentDidMount=function(){this.appeared=!0},t.prototype.componentWillReceiveProps=function(e){var t=this,n=this.state.children,r=(0,h.getChildMapping)(e.children),i=(0,h.mergeChildMappings)(n,r);Object.keys(i).forEach(function(o){var a=i[o];if((0,f.isValidElement)(a)){var s=o in n,u=o in r,l=n[o],c=(0,f.isValidElement)(l)&&!l.props.in;!u||s&&!c?u||!s||c?u&&s&&(0,f.isValidElement)(l)&&(i[o]=(0,f.cloneElement)(a,{onExited:t.handleExited.bind(t,a),in:l.props.in,exit:t.getProp(a,"exit",e),enter:t.getProp(a,"enter",e)})):i[o]=(0,f.cloneElement)(a,{in:!1}):i[o]=(0,f.cloneElement)(a,{onExited:t.handleExited.bind(t,a),in:!0,exit:t.getProp(a,"exit",e),enter:t.getProp(a,"enter",e)})}}),this.setState({children:i})},t.prototype.handleExited=function(e,t){var n=(0,h.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.setState(function(t){var n=u({},t.children);return delete n[e.key],{children:n}}))},t.prototype.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=i(e,["component","childFactory"]),o=p(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:d.default.createElement(t,r,o)},t}(d.default.Component);v.childContextTypes={transitionGroup:c.default.object.isRequired},v.propTypes={},v.defaultProps=m,t.default=v,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n=function(e){return t&&(0,o.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&o.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}t.__esModule=!0,t.getChildMapping=r,t.mergeChildMappings=i;var o=n(1)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=(r(n(2)),r(n(6))),h=r(n(48)),p=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={visible:!1,leaving:!1},r.handleEnter=function(){r.setState({visible:!0})},r.handleExit=function(){r.setState({leaving:!0})},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.classes,s=n.className,u=n.pulsate,l=n.rippleX,c=n.rippleY,p=n.rippleSize,m=(0,a.default)(n,["classes","className","pulsate","rippleX","rippleY","rippleSize"]),v=this.state,y=v.visible,g=v.leaving,b=(0,d.default)(r.ripple,(e={},(0,o.default)(e,r.rippleVisible,y),(0,o.default)(e,r.ripplePulsate,u),e),s),w={width:p,height:p,top:-p/2+c,left:-p/2+l},_=(0,d.default)(r.child,(t={},(0,o.default)(t,r.childLeaving,g),(0,o.default)(t,r.childPulsate,u),t));return f.default.createElement(h.default,(0,i.default)({onEnter:this.handleEnter,onExit:this.handleExit},m),f.default.createElement("span",{className:b,style:w},f.default.createElement("span",{className:_})))}}]),t}(f.default.Component);p.propTypes={},p.defaultProps={pulsate:!1};var m=p;t.default=m},function(e,t,n){"use strict";function r(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!==typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,t.transitionTimeout=r;var i=n(2),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.timeoutsShape=o.default.oneOfType([o.default.number,o.default.shape({enter:o.default.number,exit:o.default.number}).isRequired]),t.classNamesShape=o.default.oneOfType([o.default.string,o.default.shape({enter:o.default.string,exit:o.default.string,active:o.default.string}),o.default.shape({enter:o.default.string,enterDone:o.default.string,enterActive:o.default.string,exit:o.default.string,exitDone:o.default.string,exitActive:o.default.string})])},function(e,t,n){"use strict";function r(e,t,n,r){return function(i){return r&&r.call(e,i),!i.defaultPrevented&&(e.ripple&&e.ripple[n](i),e.props&&"function"===typeof e.props["on".concat(t)]&&e.props["on".concat(t)](i),!0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r;t.default=i},function(e,t,n){"use strict";function r(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function i(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function o(e){return[e.horizontal,e.vertical].map(function(e){return"number"===typeof e?"".concat(e,"px"):e}).join(" ")}function a(e,t){for(var n=t,r=0;n&&n!==e;)n=n.parentNode,r+=n.scrollTop;return r}function s(e){return"function"===typeof e?e():e}var u=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var l=u(n(4)),c=u(n(3)),f=u(n(8)),d=u(n(9)),h=u(n(10)),p=u(n(11)),m=u(n(1)),v=(u(n(2)),u(n(17))),y=(u(n(14)),u(n(74))),g=u(n(27)),b=u(n(34)),w=u(n(28)),_=u(n(73)),E=u(n(5)),T=u(n(77)),x=u(n(166)),S=u(n(25)),k={paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:"none"}};t.styles=k;var C=function(e){function t(){var e,n,a;(0,f.default)(this,t);for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];return(0,h.default)(a,(n=a=(0,h.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.componentWillUnmount=function(){a.handleResize.clear()},a.setPositioningStyles=function(e){if(e&&e.style){var t=a.getPositioningStyle(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}},a.getPositioningStyle=function(e){var t=a.props,n=t.anchorEl,r=t.anchorReference,i=t.marginThreshold,u=a.getContentAnchorOffset(e),l={width:e.clientWidth,height:e.clientHeight},c=a.getTransformOrigin(l,u);if("none"===r)return{top:null,left:null,transformOrigin:o(c)};var f=a.getAnchorOffset(u),d=f.top-c.vertical,h=f.left-c.horizontal,p=d+l.height,m=h+l.width,v=(0,_.default)(s(n)),y=v.innerHeight-i,g=v.innerWidth-i;if(d<i){var b=d-i;d-=b,c.vertical+=b}else if(p>y){var w=p-y;d-=w,c.vertical+=w}if(h<i){var E=h-i;h-=E,c.horizontal+=E}else if(m>g){var T=m-g;h-=T,c.horizontal+=T}return{top:"".concat(d,"px"),left:"".concat(h,"px"),transformOrigin:o(c)}},a.transitionEl=void 0,a.handleGetOffsetTop=r,a.handleGetOffsetLeft=i,a.handleEnter=function(e){a.props.onEnter&&a.props.onEnter(e),a.setPositioningStyles(e)},a.handleResize=(0,b.default)(function(){var e=v.default.findDOMNode(a.transitionEl);a.setPositioningStyles(e)},166),n))}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){this.props.action&&this.props.action({updatePosition:this.handleResize})}},{key:"getAnchorOffset",value:function(e){var t=this.props,n=t.anchorEl,r=t.anchorOrigin,i=t.anchorReference,o=t.anchorPosition;if("anchorPosition"===i)return o;var a=s(n)||(0,g.default)(v.default.findDOMNode(this.transitionEl)).body,u=a.getBoundingClientRect(),l=0===e?r.vertical:"center";return{top:u.top+this.handleGetOffsetTop(u,l),left:u.left+this.handleGetOffsetLeft(u,r.horizontal)}}},{key:"getContentAnchorOffset",value:function(e){var t=this.props,n=t.getContentAnchorEl,r=t.anchorReference,i=0;if(n&&"anchorEl"===r){var o=n(e);if(o&&(0,y.default)(e,o)){var s=a(e,o);i=o.offsetTop+o.clientHeight/2-s||0}}return i}},{key:"getTransformOrigin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.props.transformOrigin;return{vertical:this.handleGetOffsetTop(e,n.vertical)+t,horizontal:this.handleGetOffsetLeft(e,n.horizontal)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.action,t.anchorEl),r=(t.anchorOrigin,t.anchorPosition,t.anchorReference,t.children),i=t.classes,o=t.container,a=t.elevation,u=(t.getContentAnchorEl,t.marginThreshold,t.onEnter,t.onEntered),f=t.onEntering,d=t.onExit,h=t.onExited,p=t.onExiting,v=t.open,y=t.PaperProps,b=t.role,_=(t.transformOrigin,t.TransitionComponent),E=t.transitionDuration,x=t.TransitionProps,k=(0,c.default)(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","role","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),C=E;"auto"!==E||_.muiSupportAuto||(C=void 0);var O=o||(n?(0,g.default)(s(n)).body:void 0);return m.default.createElement(T.default,(0,l.default)({container:O,open:v,BackdropProps:{invisible:!0}},k),m.default.createElement(_,(0,l.default)({appear:!0,in:v,onEnter:this.handleEnter,onEntered:u,onEntering:f,onExit:d,onExited:h,onExiting:p,role:b,ref:function(t){e.transitionEl=t},timeout:C},x),m.default.createElement(S.default,(0,l.default)({className:i.paper,elevation:a},y),m.default.createElement(w.default,{target:"window",onResize:this.handleResize}),r)))}}]),t}(m.default.Component);C.propTypes={},C.defaultProps={anchorReference:"anchorEl",anchorOrigin:{vertical:"top",horizontal:"left"},elevation:8,marginThreshold:16,transformOrigin:{vertical:"top",horizontal:"left"},TransitionComponent:x.default,transitionDuration:"auto"};var O=(0,E.default)(k,{name:"MuiPopover"})(C);t.default=O},function(e,t,n){"use strict";function r(e,t){return e="function"===typeof e?e():e,m.default.findDOMNode(e)||t}function i(e){return!!e.children&&e.children.props.hasOwnProperty("in")}var o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=o(n(4)),s=o(n(7)),u=o(n(3)),l=o(n(8)),c=o(n(9)),f=o(n(10)),d=o(n(11)),h=o(n(40)),p=o(n(1)),m=o(n(17)),v=(o(n(2)),o(n(6))),y=(o(n(14)),o(n(47))),g=o(n(161)),b=o(n(74)),w=o(n(75)),_=o(n(27)),E=o(n(162)),T=o(n(111)),x=n(13),S=o(n(5)),k=o(n(163)),C=o(n(165)),O=function(e){return{root:{display:"flex",width:"100%",height:"100%",position:"fixed",zIndex:e.zIndex.modal,top:0,left:0},hidden:{visibility:"hidden"}}};t.styles=O;var N=function(e){function t(e){var n;return(0,l.default)(this,t),n=(0,f.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n.dialogElement=null,n.mounted=!1,n.mountNode=null,n.handleRendered=function(){n.autoFocus(),n.props.onRendered&&n.props.onRendered()},n.handleOpen=function(){var e=(0,_.default)(n.mountNode),t=r(n.props.container,e.body);n.props.manager.add((0,h.default)(n),t),e.addEventListener("keydown",n.handleDocumentKeyDown),e.addEventListener("focus",n.enforceFocus,!0)},n.handleClose=function(){n.props.manager.remove((0,h.default)(n));var e=(0,_.default)(n.mountNode);e.removeEventListener("keydown",n.handleDocumentKeyDown),e.removeEventListener("focus",n.enforceFocus),n.restoreLastFocus()},n.handleExited=function(){n.setState({exited:!0}),n.handleClose()},n.handleBackdropClick=function(e){e.target===e.currentTarget&&(n.props.onBackdropClick&&n.props.onBackdropClick(e),!n.props.disableBackdropClick&&n.props.onClose&&n.props.onClose(e,"backdropClick"))},n.handleDocumentKeyDown=function(e){n.isTopModal()&&"esc"===(0,y.default)(e)&&(n.props.onEscapeKeyDown&&n.props.onEscapeKeyDown(e),!n.props.disableEscapeKeyDown&&n.props.onClose&&n.props.onClose(e,"escapeKeyDown"))},n.checkForFocus=function(){w.default&&(n.lastFocus=(0,g.default)())},n.enforceFocus=function(){if(!n.props.disableEnforceFocus&&n.mounted&&n.isTopModal()){var e=(0,g.default)((0,_.default)(n.mountNode));n.dialogElement&&!(0,b.default)(n.dialogElement,e)&&n.dialogElement.focus()}},n.state={exited:!n.props.open},n}return(0,d.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.props.open&&this.handleOpen()}},{key:"componentDidUpdate",value:function(e){!e.open&&this.props.open&&this.checkForFocus(),!e.open||this.props.open||i(this.props)?!e.open&&this.props.open&&this.handleOpen():this.handleClose()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,(this.props.open||i(this.props)&&!this.state.exited)&&this.handleClose()}},{key:"autoFocus",value:function(){if(!this.props.disableAutoFocus){var e=(0,g.default)((0,_.default)(this.mountNode));this.dialogElement&&!(0,b.default)(this.dialogElement,e)&&(this.lastFocus=e,this.dialogElement.hasAttribute("tabIndex")||this.dialogElement.setAttribute("tabIndex",-1),this.dialogElement.focus())}}},{key:"restoreLastFocus",value:function(){this.props.disableRestoreFocus||this.lastFocus&&(this.lastFocus.focus&&this.lastFocus.focus(),this.lastFocus=null)}},{key:"isTopModal",value:function(){return this.props.manager.isTopModal(this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.BackdropComponent,r=t.BackdropProps,o=t.children,l=t.classes,c=t.className,f=t.container,d=(t.disableAutoFocus,t.disableBackdropClick,t.disableEnforceFocus,t.disableEscapeKeyDown,t.disableRestoreFocus,t.hideBackdrop),h=t.keepMounted,m=(t.onBackdropClick,t.onClose,t.onEscapeKeyDown,t.onRendered,t.open),y=(t.manager,(0,u.default)(t,["BackdropComponent","BackdropProps","children","classes","className","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disableRestoreFocus","hideBackdrop","keepMounted","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open","manager"])),g=this.state.exited,b=i(this.props),w={};return h||m||b&&!g?(b&&(w.onExited=(0,x.createChainedFunction)(this.handleExited,o.props.onExited)),void 0===o.props.role&&(w.role=o.props.role||"document"),void 0===o.props.tabIndex&&(w.tabIndex=o.props.tabIndex||"-1"),p.default.createElement(T.default,{ref:function(t){e.mountNode=t?t.getMountNode():t},container:f,onRendered:this.handleRendered},p.default.createElement("div",(0,a.default)({className:(0,v.default)(l.root,c,(0,s.default)({},l.hidden,g))},y),d?null:p.default.createElement(n,(0,a.default)({open:m,onClick:this.handleBackdropClick},r)),p.default.createElement(E.default,{rootRef:function(t){e.dialogElement=t}},p.default.cloneElement(o,w))))):null}}],[{key:"getDerivedStateFromProps",value:function(e){return e.open?{exited:!1}:i(e)?null:{exited:!0}}}]),t}(p.default.Component);N.propTypes={},N.defaultProps={disableAutoFocus:!1,disableBackdropClick:!1,disableEnforceFocus:!1,disableEscapeKeyDown:!1,disableRestoreFocus:!1,hideBackdrop:!1,keepMounted:!1,manager:new k.default,BackdropComponent:C.default};var P=(0,S.default)(O,{flip:!1,name:"MuiModal"})(N);t.default=P},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(8)),o=r(n(9)),a=r(n(10)),s=r(n(11)),u=r(n(1)),l=r(n(17)),c=(r(n(2)),r(n(55)),function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.rootRef,t=l.default.findDOMNode(this);"function"===typeof e?e(t):e&&(e.current=t)}},{key:"componentWillUnmount",value:function(){var e=this.props.rootRef;"function"===typeof e?e(null):e&&(e.current=null)}},{key:"render",value:function(){return this.props.children}}]),t}(u.default.Component));c.propTypes={},c.propTypes={};var f=c;t.default=f},function(e,t,n){"use strict";function r(e,t){return e="function"===typeof e?e():e,f.default.findDOMNode(e)||t}function i(e){return(0,d.default)(f.default.findDOMNode(e))}var o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(8)),s=o(n(9)),u=o(n(10)),l=o(n(11)),c=o(n(1)),f=o(n(17)),d=(o(n(2)),o(n(27))),h=(o(n(55)),function(e){function t(){var e,n,r;(0,a.default)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(0,u.default)(r,(n=r=(0,u.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.getMountNode=function(){return r.mountNode},n))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.setContainer(this.props.container),this.forceUpdate(this.props.onRendered)}},{key:"componentDidUpdate",value:function(e){e.container!==this.props.container&&(this.setContainer(this.props.container),this.forceUpdate())}},{key:"componentWillUnmount",value:function(){this.mountNode=null}},{key:"setContainer",value:function(e){this.mountNode=r(e,i(this).body)}},{key:"render",value:function(){var e=this.props.children;return this.mountNode?f.default.createPortal(e,this.mountNode):null}}]),t}(c.default.Component));h.propTypes={},h.propTypes={};var p=h;t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r="",i="",o=t;if("string"===typeof t){if(void 0===n)return e.style[(0,a.default)(t)]||(0,c.default)(e).getPropertyValue((0,u.default)(t));(o={})[t]=n}Object.keys(o).forEach(function(t){var n=o[t];n||0===n?(0,m.default)(t)?i+=t+"("+n+") ":r+=(0,u.default)(t)+": "+n+";":(0,d.default)(e,(0,u.default)(t))}),i&&(r+=h.transform+": "+i+";"),e.style.cssText+=";"+r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(164),a=r(o),s=n(366),u=r(s),l=n(368),c=r(l),f=n(369),d=r(f),h=n(370),p=n(371),m=r(p);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e.replace(i,function(e,t){return t.toUpperCase()})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";function r(e){return(0,o.default)(e).replace(a,"-ms-")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(367),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";function r(e){return e.replace(i,"-$1").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";function r(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,o.default)(t))&&(t="styleFloat");var r=e.currentStyle[t]||null;if(null==r&&n&&n[t]&&(r=n[t]),s.test(r)&&!a.test(t)){var i=n.left,u=e.runtimeStyle,l=u&&u.left;l&&(u.left=e.currentStyle.left),n.left="fontSize"===t?"1em":r,r=n.pixelLeft+"px",n.left=i,l&&(u.left=l)}return r}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(164),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r=n(75),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o="transform",a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,f=void 0,d=void 0,h=void 0,p=void 0,m=void 0,v=void 0;if(i.default){var y=function(){for(var e=document.createElement("div").style,t={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(t),r=void 0,i=void 0,o="",a=0;a<n.length;a++){var s=n[a];if(s+"TransitionProperty"in e){o="-"+s.toLowerCase(),r=t[s]("TransitionEnd"),i=t[s]("AnimationEnd");break}}return!r&&"transitionProperty"in e&&(r="transitionend"),!i&&"animationName"in e&&(i="animationend"),e=null,{animationEnd:i,transitionEnd:r,prefix:o}}();a=y.prefix,t.transitionEnd=s=y.transitionEnd,t.animationEnd=u=y.animationEnd,t.transform=o=a+"-"+o,t.transitionProperty=l=a+"-transition-property",t.transitionDuration=c=a+"-transition-duration",t.transitionDelay=d=a+"-transition-delay",t.transitionTiming=f=a+"-transition-timing-function",t.animationName=h=a+"-animation-name",t.animationDuration=p=a+"-animation-duration",t.animationTiming=m=a+"-animation-delay",t.animationDelay=v=a+"-animation-timing-function"}t.transform=o,t.transitionProperty=l,t.transitionTiming=f,t.transitionDelay=d,t.transitionDuration=c,t.transitionEnd=s,t.animationName=h,t.animationDuration=p,t.animationTiming=m,t.animationDelay=v,t.animationEnd=u,t.default={transform:o,end:s,property:l,timing:f,delay:d,duration:c}},function(e,t,n){"use strict";function r(e){return!(!e||!i.test(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&"body"===e.tagName.toLowerCase()}function i(e){var t=(0,s.default)(e),n=(0,u.default)(t);if(!(0,a.default)(t)&&!r(e))return e.scrollHeight>e.clientHeight;var i=n.getComputedStyle(t.body),o=parseInt(i.getPropertyValue("margin-left"),10),l=parseInt(i.getPropertyValue("margin-right"),10);return o+t.body.clientWidth+l<n.innerWidth}var o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.isBody=r,t.default=i;var a=o(n(373)),s=o(n(27)),u=o(n(73))},function(e,t,n){"use strict";function r(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return 1===e.nodeType&&-1===u.indexOf(e.tagName.toLowerCase())}function i(e,t,n){t=[].concat(t),[].forEach.call(e.children,function(e){-1===t.indexOf(e)&&r(e)&&n(e)})}function o(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}function a(e,t){i(e,t,function(e){return o(!0,e)})}function s(e,t){i(e,t,function(e){return o(!1,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.ariaHidden=o,t.hideSiblings=a,t.showSiblings=s;var u=["template","script","style"]},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.invisible,i=e.open,c=e.transitionDuration,d=(0,s.default)(e,["classes","className","invisible","open","transitionDuration"]);return u.default.createElement(f.default,(0,o.default)({appear:!0,in:i,timeout:c},d),u.default.createElement("div",{className:(0,l.default)(t.root,(0,a.default)({},t.invisible,r),n),"aria-hidden":"true"}))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=i(n(112)),d={root:{zIndex:-1,width:"100%",height:"100%",position:"fixed",top:0,left:0,WebkitTapHighlightColor:"transparent",backgroundColor:"rgba(0, 0, 0, 0.5)"},invisible:{backgroundColor:"transparent"}};t.styles=d,r.propTypes={},r.defaultProps={invisible:!1};var h=(0,c.default)(d,{name:"MuiBackdrop"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(12)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=(r(n(2)),r(n(48))),h=n(30),p=r(n(32)),m=n(49),v={entering:{opacity:1},entered:{opacity:1}},y=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleEnter=function(e){var t=r.props.theme;(0,m.reflow)(e);var n=(0,m.getTransitionProps)(r.props,{mode:"enter"});e.style.webkitTransition=t.transitions.create("opacity",n),e.style.transition=t.transitions.create("opacity",n),r.props.onEnter&&r.props.onEnter(e)},r.handleExit=function(e){var t=r.props.theme,n=(0,m.getTransitionProps)(r.props,{mode:"exit"});e.style.webkitTransition=t.transitions.create("opacity",n),e.style.transition=t.transitions.create("opacity",n),r.props.onExit&&r.props.onExit(e)},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=(e.onEnter,e.onExit,e.style),r=(e.theme,(0,a.default)(e,["children","onEnter","onExit","style","theme"])),s=(0,o.default)({},n,f.default.isValidElement(t)?t.props.style:{});return f.default.createElement(d.default,(0,i.default)({appear:!0,onEnter:this.handleEnter,onExit:this.handleExit},r),function(e,n){return f.default.cloneElement(t,(0,o.default)({style:(0,o.default)({opacity:0,willChange:"opacity"},v[e],s)},n))})}}]),t}(f.default.Component);y.propTypes={},y.defaultProps={timeout:{enter:h.duration.enteringScreen,exit:h.duration.leavingScreen}};var g=(0,p.default)()(y);t.default=g},function(e,t,n){"use strict";function r(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(4)),a=i(n(12)),s=i(n(3)),u=i(n(8)),l=i(n(9)),c=i(n(10)),f=i(n(11)),d=i(n(1)),h=(i(n(2)),i(n(48))),p=i(n(32)),m=n(49),v={entering:{opacity:1,transform:r(1)},entered:{opacity:1,transform:r(1)}},y=function(e){function t(){var e,n,i;(0,u.default)(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(0,c.default)(i,(n=i=(0,c.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),i.autoTimeout=void 0,i.timer=null,i.handleEnter=function(e){var t=i.props,n=t.theme,r=t.timeout;(0,m.reflow)(e);var o=(0,m.getTransitionProps)(i.props,{mode:"enter"}),a=o.duration,s=o.delay,u=0;"auto"===r?(u=n.transitions.getAutoHeightDuration(e.clientHeight),i.autoTimeout=u):u=a,e.style.transition=[n.transitions.create("opacity",{duration:u,delay:s}),n.transitions.create("transform",{duration:.666*u,delay:s})].join(","),i.props.onEnter&&i.props.onEnter(e)},i.handleExit=function(e){var t=i.props,n=t.theme,o=t.timeout,a=0,s=(0,m.getTransitionProps)(i.props,{mode:"exit"}),u=s.duration,l=s.delay;"auto"===o?(a=n.transitions.getAutoHeightDuration(e.clientHeight),i.autoTimeout=a):a=u,e.style.transition=[n.transitions.create("opacity",{duration:a,delay:l}),n.transitions.create("transform",{duration:.666*a,delay:l||.333*a})].join(","),e.style.opacity="0",e.style.transform=r(.75),i.props.onExit&&i.props.onExit(e)},i.addEndListener=function(e,t){"auto"===i.props.timeout&&(i.timer=setTimeout(t,i.autoTimeout||0))},n))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.onEnter,e.onExit,e.style),i=(e.theme,e.timeout),u=(0,s.default)(e,["children","onEnter","onExit","style","theme","timeout"]),l=(0,a.default)({},n,d.default.isValidElement(t)?t.props.style:{});return d.default.createElement(h.default,(0,o.default)({appear:!0,onEnter:this.handleEnter,onExit:this.handleExit,addEndListener:this.addEndListener,timeout:"auto"===i?null:i},u),function(e,n){return d.default.cloneElement(t,(0,a.default)({style:(0,a.default)({opacity:0,transform:r(.75)},v[e],l)},n))})}}]),t}(d.default.Component);y.propTypes={},y.defaultProps={timeout:"auto"},y.muiSupportAuto=!0;var g=(0,p.default)()(y);t.default=g},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(1)),f=(r(n(2)),r(n(17))),d=r(n(47)),h=r(n(74)),p=r(n(161)),m=r(n(27)),v=r(n(168)),y=function(e){function t(){var e,n,r;(0,a.default)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(0,u.default)(r,(n=r=(0,u.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={currentTabIndex:void 0},r.list=void 0,r.selectedItem=void 0,r.blurTimer=void 0,r.handleBlur=function(e){r.blurTimer=setTimeout(function(){if(r.list){var e=f.default.findDOMNode(r.list),t=(0,p.default)((0,m.default)(e));(0,h.default)(e,t)||r.resetTabIndex()}},30),r.props.onBlur&&r.props.onBlur(e)},r.handleKeyDown=function(e){var t=f.default.findDOMNode(r.list),n=(0,d.default)(e),i=(0,p.default)((0,m.default)(t));"up"!==n&&"down"!==n||i&&(!i||(0,h.default)(t,i))?"down"===n?(e.preventDefault(),i.nextElementSibling&&i.nextElementSibling.focus()):"up"===n&&(e.preventDefault(),i.previousElementSibling&&i.previousElementSibling.focus()):r.selectedItem?f.default.findDOMNode(r.selectedItem).focus():t.firstChild.focus(),r.props.onKeyDown&&r.props.onKeyDown(e,n)},r.handleItemFocus=function(e){var t=f.default.findDOMNode(r.list);if(t)for(var n=0;n<t.children.length;n+=1)if(t.children[n]===e.currentTarget){r.setTabIndex(n);break}},n))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.resetTabIndex()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.blurTimer)}},{key:"setTabIndex",value:function(e){this.setState({currentTabIndex:e})}},{key:"focus",value:function(){var e=this.state.currentTabIndex,t=f.default.findDOMNode(this.list);t&&t.children&&t.firstChild&&(e&&e>=0?t.children[e].focus():t.firstChild.focus())}},{key:"resetTabIndex",value:function(){for(var e=f.default.findDOMNode(this.list),t=(0,p.default)((0,m.default)(e)),n=[],r=0;r<e.children.length;r+=1)n.push(e.children[r]);var i=n.indexOf(t);return-1!==i?this.setTabIndex(i):this.selectedItem?this.setTabIndex(n.indexOf(f.default.findDOMNode(this.selectedItem))):this.setTabIndex(0)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,a=(t.onBlur,t.onKeyDown,(0,o.default)(t,["children","className","onBlur","onKeyDown"]));return c.default.createElement(v.default,(0,i.default)({role:"menu",ref:function(t){e.list=t},className:r,onKeyDown:this.handleKeyDown,onBlur:this.handleBlur},a),c.default.Children.map(n,function(t,n){return c.default.isValidElement(t)?c.default.cloneElement(t,{tabIndex:n===e.state.currentTabIndex?0:-1,ref:t.props.selected?function(t){e.selectedItem=t}:void 0,onFocus:e.handleItemFocus}):null}))}}]),t}(c.default.Component);y.propTypes={};var g=y;t.default=g},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=r(n(2)),h=r(n(6)),p=r(n(5)),m=function(e){return{root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:e.spacing.unit,paddingBottom:e.spacing.unit},dense:{paddingTop:e.spacing.unit/2,paddingBottom:e.spacing.unit/2},subheader:{paddingTop:0}}};t.styles=m;var v=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"getChildContext",value:function(){return{dense:this.props.dense}}},{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.classes,s=t.className,u=t.component,l=t.dense,c=t.disablePadding,d=t.subheader,p=(0,a.default)(t,["children","classes","className","component","dense","disablePadding","subheader"]),m=(0,h.default)(r.root,(e={},(0,o.default)(e,r.dense,l&&!c),(0,o.default)(e,r.padding,!c),(0,o.default)(e,r.subheader,d),e),s);return f.default.createElement(u,(0,i.default)({className:m},p),d,n)}}]),t}(f.default.Component);v.propTypes={},v.defaultProps={component:"ul",dense:!1,disablePadding:!1},v.childContextTypes={dense:d.default.bool};var y=(0,p.default)(m,{name:"MuiList"})(v);t.default=y},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.component,i=e.selected,u=e.role,f=(0,s.default)(e,["classes","className","component","selected","role"]);return l.default.createElement(d.default,(0,o.default)({button:!0,role:u,tabIndex:-1,className:(0,c.default)(t.root,(0,a.default)({},t.selected,i),n),component:r},f))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(12)),l=i(n(1)),c=(i(n(2)),i(n(6))),f=i(n(5)),d=i(n(169)),h=function(e){return{root:(0,u.default)({},e.typography.subheading,{height:3*e.spacing.unit,boxSizing:"content-box",width:"auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingLeft:2*e.spacing.unit,paddingRight:2*e.spacing.unit,"&$selected":{backgroundColor:e.palette.action.selected}}),selected:{}}};t.styles=h,r.propTypes={},r.defaultProps={component:"li",role:"menuitem",selected:!1};var p=(0,f.default)(h,{name:"MuiMenuItem"})(r);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(12)),a=r(n(7)),s=r(n(3)),u=r(n(8)),l=r(n(9)),c=r(n(10)),f=r(n(11)),d=r(n(1)),h=r(n(2)),p=r(n(6)),m=r(n(5)),v=r(n(26)),y=n(37),g=function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},container:{position:"relative"},focusVisible:{backgroundColor:e.palette.action.hover},default:{paddingTop:12,paddingBottom:12},dense:{paddingTop:e.spacing.unit,paddingBottom:e.spacing.unit},disabled:{opacity:.5},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:e.mixins.gutters(),button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:4*e.spacing.unit}}};t.styles=g;var b=function(e){function t(){return(0,u.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"getChildContext",value:function(){return{dense:this.props.dense||this.context.dense||!1}}},{key:"render",value:function(){var e,t=this.props,n=t.button,r=t.children,u=t.classes,l=t.className,c=t.component,f=t.ContainerComponent,h=t.ContainerProps;h=void 0===h?{}:h;var m=h.className,g=(0,s.default)(h,["className"]),b=t.dense,w=t.disabled,_=t.disableGutters,E=t.divider,T=t.focusVisibleClassName,x=(0,s.default)(t,["button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName"]),S=b||this.context.dense||!1,k=d.default.Children.toArray(r),C=k.some(function(e){return(0,y.isMuiElement)(e,["ListItemAvatar"])}),O=k.length&&(0,y.isMuiElement)(k[k.length-1],["ListItemSecondaryAction"]),N=(0,p.default)(u.root,S||C?u.dense:u.default,(e={},(0,a.default)(e,u.gutters,!_),(0,a.default)(e,u.divider,E),(0,a.default)(e,u.disabled,w),(0,a.default)(e,u.button,n),(0,a.default)(e,u.secondaryAction,O),e),l),P=(0,o.default)({className:N,disabled:w},x),I=c||"li";return n&&(P.component=c||"div",P.focusVisibleClassName=(0,p.default)(u.focusVisible,T),I=v.default),O?(I=P.component||c?I:"div","li"===f&&("li"===I?I="div":"li"===P.component&&(P.component="div")),d.default.createElement(f,(0,i.default)({className:(0,p.default)(u.container,m)},g),d.default.createElement(I,P,k),k.pop())):d.default.createElement(I,P,k)}}]),t}(d.default.Component);b.propTypes={},b.defaultProps={button:!1,ContainerComponent:"li",dense:!1,disabled:!1,disableGutters:!1,divider:!1},b.contextTypes={dense:h.default.bool},b.childContextTypes={dense:h.default.bool};var w=(0,m.default)(g,{name:"MuiListItem"})(b);t.default=w},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"common",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"red",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"pink",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"purple",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"deepPurple",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"indigo",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"blue",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"lightBlue",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"cyan",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"teal",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"green",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"lightGreen",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"lime",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"yellow",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"amber",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"orange",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"deepOrange",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"brown",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"grey",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"blueGrey",{enumerable:!0,get:function(){return T.default}});var i=r(n(88)),o=r(n(134)),a=r(n(132)),s=r(n(383)),u=r(n(384)),l=r(n(131)),c=r(n(385)),f=r(n(386)),d=r(n(387)),h=r(n(388)),p=r(n(389)),m=r(n(390)),v=r(n(391)),y=r(n(392)),g=r(n(393)),b=r(n(394)),w=r(n(395)),_=r(n(396)),E=r(n(133)),T=r(n(397))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},i=r;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},i=r;t.default=i},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(170))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(400))},function(e,t,n){"use strict";function r(e){var t=e.badgeContent,n=e.children,r=e.classes,i=e.className,c=e.color,d=e.component,h=(0,s.default)(e,["badgeContent","children","classes","className","color","component"]),p=(0,l.default)(r.badge,(0,a.default)({},r["color".concat((0,f.capitalize)(c))],"default"!==c));return u.default.createElement(d,(0,o.default)({className:(0,l.default)(r.root,i)},h),n,u.default.createElement("span",{className:p},t))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(13),d=function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle"},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",top:-12,right:-12,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeight,fontSize:e.typography.pxToRem(12),width:24,height:24,borderRadius:"50%",backgroundColor:e.palette.color,color:e.palette.textColor,zIndex:1},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText}}};t.styles=d,r.propTypes={},r.defaultProps={color:"default",component:"span"};var h=(0,c.default)(d,{name:"MuiBadge"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(402))},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=e.onChange,l=e.showLabels,c=e.value,f=(0,a.default)(e,["children","classes","className","onChange","showLabels","value"]),d=(0,u.default)(n.root,r),h=s.default.Children.map(t,function(e,t){if(!s.default.isValidElement(e))return null;var n=void 0===e.props.value?t:e.props.value;return s.default.cloneElement(e,{selected:n===c,showLabel:void 0!==e.props.showLabel?e.props.showLabel:l,value:n,onChange:i})});return s.default.createElement("div",(0,o.default)({className:d},f),h)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=function(e){return{root:{display:"flex",justifyContent:"center",height:56,backgroundColor:e.palette.background.paper}}};t.styles=c,r.propTypes={},r.defaultProps={showLabels:!1};var f=(0,l.default)(c,{name:"MuiBottomNavigation"})(r);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(404))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=(r(n(2)),r(n(6))),h=r(n(5)),p=r(n(26)),m=function(e){return{root:{transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),paddingTop:e.spacing.unit,paddingBottom:10,paddingLeft:12,paddingRight:12,minWidth:80,maxWidth:168,color:e.palette.text.secondary,flex:"1","&$iconOnly":{paddingTop:2*e.spacing.unit},"&$selected":{paddingTop:6,color:e.palette.primary.main}},selected:{},iconOnly:{},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},label:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s","&$iconOnly":{opacity:0,transitionDelay:"0s"},"&$selected":{fontSize:e.typography.pxToRem(14)}}}};t.styles=m;var v=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=r.props,n=t.onChange,i=t.value,o=t.onClick;n&&n(e,i),o&&o(e)},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.classes,s=n.className,u=n.icon,l=n.label,c=(n.onChange,n.onClick,n.selected),h=n.showLabel,m=(n.value,(0,a.default)(n,["classes","className","icon","label","onChange","onClick","selected","showLabel","value"])),v=(0,d.default)(r.root,(e={},(0,o.default)(e,r.selected,c),(0,o.default)(e,r.iconOnly,!h&&!c),e),s),y=(0,d.default)(r.label,(t={},(0,o.default)(t,r.selected,c),(0,o.default)(t,r.iconOnly,!h&&!c),t));return f.default.createElement(p.default,(0,i.default)({className:v,focusRipple:!0,onClick:this.handleChange},m),f.default.createElement("span",{className:r.wrapper},u,f.default.createElement("span",{className:y},l)))}}]),t}(f.default.Component);v.propTypes={};var y=(0,h.default)(m,{name:"MuiBottomNavigationAction"})(v);t.default=y},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(406))},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.raised,i=(0,a.default)(e,["classes","className","raised"]);return s.default.createElement(l.default,(0,o.default)({className:(0,u.default)(t.root,n),elevation:r?8:2},i))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(25)),c=i(n(5)),f={root:{overflow:"hidden"}};t.styles=f,r.propTypes={},r.defaultProps={raised:!1};var d=(0,c.default)(f,{name:"MuiCard"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(408))},function(e,t,n){"use strict";function r(e){var t=e.disableActionSpacing,n=e.children,r=e.classes,i=e.className,s=(0,a.default)(e,["disableActionSpacing","children","classes","className"]);return u.default.createElement("div",(0,o.default)({className:(0,l.default)(r.root,i)},s),t?n:(0,f.cloneChildrenWithClassName)(n,r.action))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(7)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(37);n(59);var d=function(e){return{root:(0,s.default)({display:"flex",alignItems:"center",boxSizing:"border-box",padding:"".concat(e.spacing.unit,"px ").concat(e.spacing.unit/2,"px")},e.breakpoints.up("sm"),{padding:"".concat(e.spacing.unit,"px ").concat(1.5*e.spacing.unit,"px")}),action:{margin:"0 ".concat(e.spacing.unit/2,"px")}}};t.styles=d,r.propTypes={},r.defaultProps={disableActionSpacing:!1};var h=(0,c.default)(d,{name:"MuiCardActions"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(410))},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.component,i=(0,a.default)(e,["classes","className","component"]);return s.default.createElement(r,(0,o.default)({className:(0,u.default)(t.root,n)},i))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=function(e){return{root:e.mixins.gutters({paddingTop:2*e.spacing.unit,paddingBottom:2*e.spacing.unit,"&:last-child":{paddingBottom:3*e.spacing.unit}})}};t.styles=c,r.propTypes={},r.defaultProps={component:"div"};var f=(0,l.default)(c,{name:"MuiCardContent"})(r);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(412))},function(e,t,n){"use strict";function r(e){var t=e.action,n=e.avatar,r=e.classes,i=e.className,l=e.component,f=e.subheader,d=e.title,h=(0,a.default)(e,["action","avatar","classes","className","component","subheader","title"]);return s.default.createElement(l,(0,o.default)({className:(0,u.default)(r.root,i)},h),n&&s.default.createElement("div",{className:r.avatar},n),s.default.createElement("div",{className:r.content},s.default.createElement(c.default,{variant:n?"body2":"headline",component:"span",className:r.title},d),f&&s.default.createElement(c.default,{variant:n?"body2":"body1",component:"span",color:"textSecondary",className:r.subheader},f)),t&&s.default.createElement("div",{className:r.action},t))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=i(n(23)),f=function(e){return{root:e.mixins.gutters({display:"flex",alignItems:"center",paddingTop:2*e.spacing.unit,paddingBottom:2*e.spacing.unit}),avatar:{flex:"0 0 auto",marginRight:2*e.spacing.unit},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-1*e.spacing.unit,marginRight:-2*e.spacing.unit},content:{flex:"1 1 auto"},title:{},subheader:{}}};t.styles=f,r.propTypes={},r.defaultProps={component:"div"};var d=(0,l.default)(f,{name:"MuiCardHeader"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(414))},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.component,i=e.image,f=e.src,d=e.style,p=(0,u.default)(e,["classes","className","component","image","src","style"]),m=-1!==h.indexOf(r),v=!m&&i?(0,s.default)({backgroundImage:'url("'.concat(i,'")')},d):d;return l.default.createElement(r,(0,o.default)({className:(0,c.default)(t.root,(0,a.default)({},t.media,m),n),style:v,src:m?i||f:void 0},p))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(12)),u=i(n(3)),l=i(n(1)),c=(i(n(2)),i(n(6))),f=(i(n(14)),i(n(5))),d={root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"}};t.styles=d;var h=["video","audio","picture","iframe","img"];r.propTypes={},r.defaultProps={component:"div"};var p=(0,f.default)(d,{name:"MuiCardMedia"})(r);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(416))},function(e,t,n){"use strict";function r(e){var t=e.checkedIcon,n=e.classes,r=e.color,i=e.icon,c=e.indeterminate,f=e.indeterminateIcon,d=(0,a.default)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon"]);return s.default.createElement(l.default,(0,o.default)({checkedIcon:c?f:t,classes:{root:(0,u.default)(n.root,n["color".concat((0,h.capitalize)(r))]),checked:n.checked,disabled:n.disabled},icon:c?f:i},d))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(114)),c=i(n(418)),f=i(n(419)),d=i(n(420)),h=n(13),p=i(n(5)),m=function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.action.disabled}}}};t.styles=m,r.propTypes={},r.defaultProps={checkedIcon:s.default.createElement(f.default,null),color:"secondary",icon:s.default.createElement(c.default,null),indeterminate:!1,indeterminateIcon:s.default.createElement(d.default,null)};var v=(0,p.default)(m,{name:"MuiCheckbox"})(r);t.default=v},function(e,t,n){"use strict";function r(e){var t,n=e.children,r=e.classes,i=e.className,c=e.color,f=e.disabled,p=(0,s.default)(e,["children","classes","className","color","disabled"]);return u.default.createElement(d.default,(0,o.default)({className:(0,l.default)(r.root,(t={},(0,a.default)(t,r["color".concat((0,h.capitalize)(c))],"default"!==c),(0,a.default)(t,r.disabled,f),t),i),centerRipple:!0,focusRipple:!0,disabled:f},p),u.default.createElement("span",{className:r.label},n))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(31),d=i(n(26)),h=n(13),p=function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),width:48,height:48,padding:0,borderRadius:"50%",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,f.fade)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,f.fade)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,f.fade)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}};t.styles=p,r.propTypes={},r.defaultProps={color:"default",disabled:!1};var m=(0,c.default)(p,{name:"MuiIconButton"})(r);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(422))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=(r(n(2)),r(n(6))),h=r(n(47)),p=r(n(423)),m=r(n(5)),v=n(31);n(170);var y=function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,v.fade)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:"none",textDecoration:"none",border:"none",padding:0},clickable:{WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,v.emphasize)(t,.08)},"&:active":{boxShadow:e.shadows[1],backgroundColor:(0,v.emphasize)(t,.12)}},deletable:{"&:focus":{backgroundColor:(0,v.emphasize)(t,.08)}},avatar:{marginRight:-4,width:32,height:32,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(16)},avatarChildren:{width:19,height:19},label:{display:"flex",alignItems:"center",paddingLeft:12,paddingRight:12,userSelect:"none",whiteSpace:"nowrap",cursor:"inherit"},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,cursor:"pointer",height:"auto",margin:"0 4px 0 -8px","&:hover":{color:(0,v.fade)(n,.4)}}}};t.styles=y;var g=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.chipRef=null,r.handleDeleteIconClick=function(e){e.stopPropagation();var t=r.props.onDelete;t&&t(e)},r.handleKeyDown=function(e){if(e.currentTarget===e.target){var t=r.props,n=t.onClick,i=t.onDelete,o=t.onKeyDown,a=(0,h.default)(e);!n||"space"!==a&&"enter"!==a?i&&"backspace"===a?(e.preventDefault(),i(e)):"esc"===a&&(e.preventDefault(),r.chipRef&&r.chipRef.blur()):(e.preventDefault(),n(e)),o&&o(e)}},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.avatar,r=t.classes,s=t.className,u=t.clickable,l=t.component,c=t.deleteIcon,h=t.label,m=t.onClick,v=t.onDelete,y=(t.onKeyDown,t.tabIndex),g=(0,a.default)(t,["avatar","classes","className","clickable","component","deleteIcon","label","onClick","onDelete","onKeyDown","tabIndex"]),b=(0,d.default)(r.root,(0,o.default)({},r.clickable,m||u),(0,o.default)({},r.deletable,v),s),w=null;v&&(w=c&&f.default.isValidElement(c)?f.default.cloneElement(c,{className:(0,d.default)(c.props.className,r.deleteIcon),onClick:this.handleDeleteIconClick}):f.default.createElement(p.default,{className:r.deleteIcon,onClick:this.handleDeleteIconClick}));var _=null;n&&f.default.isValidElement(n)&&(_=f.default.cloneElement(n,{className:(0,d.default)(r.avatar,n.props.className),childrenClassName:(0,d.default)(r.avatarChildren,n.props.childrenClassName)}));var E=y;return E||(E=m||v||u?0:-1),f.default.createElement(l,(0,i.default)({role:"button",className:b,tabIndex:E,onClick:m,onKeyDown:this.handleKeyDown,ref:function(t){e.chipRef=t}},g),_,f.default.createElement("span",{className:r.label},h),w)}}]),t}(f.default.Component);g.propTypes={},g.defaultProps={clickable:!1,component:"div"};var b=(0,m.default)(y,{name:"MuiChip"})(g);t.default=b},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(425))},function(e,t,n){"use strict";function r(e,t,n){return(Math.min(Math.max(t,e),n)-t)/(n-t)}function i(e){return e=r(e,0,1),e=(e-=1)*e*e+1}function o(e){return e*e}function a(e){var t,n,r=e.classes,a=e.className,s=e.color,p=e.size,y=e.style,g=e.thickness,b=e.value,w=e.variant,_=(0,f.default)(e,["classes","className","color","size","style","thickness","value","variant"]),E={},T={},x={};if("determinate"===w||"static"===w){var S=2*Math.PI*(v/2-5);E.strokeDasharray=S.toFixed(3),x["aria-valuenow"]=Math.round(b),"static"===w?(E.strokeDashoffset="".concat(((100-b)/100*S).toFixed(3),"px"),T.transform="rotate(-90deg)"):(E.strokeDashoffset="".concat((o((100-b)/100)*S).toFixed(3),"px"),T.transform="rotate(".concat((270*i(b/70)).toFixed(3),"deg)"))}return d.default.createElement("div",(0,u.default)({className:(0,h.default)(r.root,(t={},(0,c.default)(t,r["color".concat((0,m.capitalize)(s))],"inherit"!==s),(0,c.default)(t,r.indeterminate,"indeterminate"===w),(0,c.default)(t,r.static,"static"===w),t),a),style:(0,l.default)({width:p,height:p},T,y),role:"progressbar"},x,_),d.default.createElement("svg",{className:r.svg,viewBox:"0 0 ".concat(v," ").concat(v)},d.default.createElement("circle",{className:(0,h.default)(r.circle,(n={},(0,c.default)(n,r.circleIndeterminate,"indeterminate"===w),(0,c.default)(n,r.circleStatic,"static"===w),n)),style:E,cx:v/2,cy:v/2,r:v/2-5,fill:"none",strokeWidth:g})))}var s=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var u=s(n(4)),l=s(n(12)),c=s(n(7)),f=s(n(3)),d=s(n(1)),h=(s(n(2)),s(n(6))),p=s(n(5)),m=n(13),v=50,y=function(e){return{root:{display:"inline-block",lineHeight:1},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"mui-progress-circular-rotate 1.4s linear infinite"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{},circle:{stroke:"currentColor",strokeLinecap:"round"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"mui-progress-circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},"@keyframes mui-progress-circular-rotate":{"100%":{transform:"rotate(360deg)"}},"@keyframes mui-progress-circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-120px"}}}};t.styles=y,a.propTypes={},a.defaultProps={color:"primary",size:40,thickness:3.6,value:0,variant:"indeterminate"};var g=(0,p.default)(y,{name:"MuiCircularProgress",flip:!1})(a);t.default=g},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(40)),f=r(n(1)),d=(r(n(2)),r(n(17))),h=r(n(28)),p=r(n(27)),m=function e(t,n){return!(null===n||!n.parentNode)&&(t===n||e(t,n.parentNode))},v=function(e){function t(){var e,n,r;(0,a.default)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(0,u.default)(r,(n=r=(0,u.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.mounted=!1,r.handleClickAway=function(e){if(!e.defaultPrevented&&r.mounted){var t=d.default.findDOMNode((0,c.default)(r)),n=(0,p.default)(t);n.documentElement&&n.documentElement.contains(e.target)&&!m(t,e.target)&&r.props.onClickAway(e)}},n))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.mouseEvent,r=e.touchEvent,a=(e.onClickAway,(0,o.default)(e,["children","mouseEvent","touchEvent","onClickAway"])),s={};return!1!==n&&(s[n]=this.handleClickAway),!1!==r&&(s[r]=this.handleClickAway),f.default.createElement(h.default,(0,i.default)({target:"document"},s,a),t)}}]),t}(f.default.Component);v.propTypes={},v.defaultProps={mouseEvent:"onMouseUp",touchEvent:"onTouchEnd"};var y=v;t.default=y},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(12)),a=r(n(7)),s=r(n(3)),u=r(n(8)),l=r(n(9)),c=r(n(10)),f=r(n(11)),d=r(n(1)),h=r(n(6)),p=(r(n(2)),r(n(48))),m=r(n(5)),v=n(30),y=n(49),g=function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}};t.styles=g;var b=function(e){function t(){var e,n,r;(0,u.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,c.default)(r,(n=r=(0,c.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.wrapper=null,r.autoTransitionDuration=void 0,r.timer=null,r.handleEnter=function(e){e.style.height=r.props.collapsedHeight,r.props.onEnter&&r.props.onEnter(e)},r.handleEntering=function(e){var t=r.props,n=t.timeout,i=t.theme,o=r.wrapper?r.wrapper.clientHeight:0,a=(0,y.getTransitionProps)(r.props,{mode:"enter"}),s=a.duration;if("auto"===n){var u=i.transitions.getAutoHeightDuration(o);e.style.transitionDuration="".concat(u,"ms"),r.autoTransitionDuration=u}else e.style.transitionDuration="string"===typeof s?s:"".concat(s,"ms");e.style.height="".concat(o,"px"),r.props.onEntering&&r.props.onEntering(e)},r.handleEntered=function(e){e.style.height="auto",r.props.onEntered&&r.props.onEntered(e)},r.handleExit=function(e){var t=r.wrapper?r.wrapper.clientHeight:0;e.style.height="".concat(t,"px"),r.props.onExit&&r.props.onExit(e)},r.handleExiting=function(e){var t=r.props,n=t.timeout,i=t.theme,o=r.wrapper?r.wrapper.clientHeight:0,a=(0,y.getTransitionProps)(r.props,{mode:"exit"}),s=a.duration;if("auto"===n){var u=i.transitions.getAutoHeightDuration(o);e.style.transitionDuration="".concat(u,"ms"),r.autoTransitionDuration=u}else e.style.transitionDuration="string"===typeof s?s:"".concat(s,"ms");e.style.height=r.props.collapsedHeight,r.props.onExiting&&r.props.onExiting(e)},r.addEndListener=function(e,t){"auto"===r.props.timeout&&(r.timer=setTimeout(t,r.autoTransitionDuration||0))},n))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.classes,u=t.className,l=t.collapsedHeight,c=t.component,f=(t.onEnter,t.onEntered,t.onEntering,t.onExit,t.onExiting,t.style),m=(t.theme,t.timeout),v=(0,s.default)(t,["children","classes","className","collapsedHeight","component","onEnter","onEntered","onEntering","onExit","onExiting","style","theme","timeout"]);return d.default.createElement(p.default,(0,i.default)({onEnter:this.handleEnter,onEntered:this.handleEntered,onEntering:this.handleEntering,onExit:this.handleExit,onExiting:this.handleExiting,addEndListener:this.addEndListener,timeout:"auto"===m?null:m},v),function(t,s){return d.default.createElement(c,(0,i.default)({className:(0,h.default)(r.container,(0,a.default)({},r.entered,"entered"===t),u),style:(0,o.default)({},f,{minHeight:l})},s),d.default.createElement("div",{className:r.wrapper,ref:function(t){e.wrapper=t}},d.default.createElement("div",{className:r.wrapperInner},n)))})}}]),t}(d.default.Component);b.propTypes={},b.defaultProps={collapsedHeight:"0px",component:"div",timeout:v.duration.standard},b.muiSupportAuto=!0;var w=(0,m.default)(g,{withTheme:!0,name:"MuiCollapse"})(b);t.default=w},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(429))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(8)),o=r(n(9)),a=r(n(10)),s=r(n(11)),u=r(n(1)),l=(r(n(2)),n(86)),c=(r(n(55)),function(e){return{"@global":{html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},"*, *::before, *::after":{boxSizing:"inherit"},body:{margin:0,backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}}}}}),f=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){return this.props.children}}]),t}(u.default.Component);f.propTypes={},f.propTypes={},f.defaultProps={children:null};var d=(0,l.withStyles)(c,{name:"MuiCssBaseline"})(f);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(431))},function(e,t,n){"use strict";function r(e){var t,n=e.BackdropProps,r=e.children,i=e.classes,f=e.className,p=e.disableBackdropClick,m=e.disableEscapeKeyDown,y=e.fullScreen,g=e.fullWidth,b=e.maxWidth,w=e.onBackdropClick,_=e.onClose,E=e.onEnter,T=e.onEntered,x=e.onEntering,S=e.onEscapeKeyDown,k=e.onExit,C=e.onExited,O=e.onExiting,N=e.open,P=e.PaperProps,I=e.TransitionComponent,A=e.transitionDuration,D=e.TransitionProps,R=(0,u.default)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperProps","TransitionComponent","transitionDuration","TransitionProps"]);return l.default.createElement(h.default,(0,o.default)({className:(0,c.default)(i.root,f),BackdropProps:(0,s.default)({transitionDuration:A},n),disableBackdropClick:p,disableEscapeKeyDown:m,onBackdropClick:w,onEscapeKeyDown:S,onClose:_,open:N,role:"dialog"},R),l.default.createElement(I,(0,o.default)({appear:!0,in:N,timeout:A,onEnter:E,onEntering:x,onEntered:T,onExit:k,onExiting:O,onExited:C},D),l.default.createElement(v.default,(0,o.default)({elevation:24,className:(0,c.default)(i.paper,(t={},(0,a.default)(t,i["paperWidth".concat(b?(0,d.capitalize)(b):"")],b),(0,a.default)(t,i.paperFullScreen,y),(0,a.default)(t,i.paperFullWidth,g),t))},P),r)))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(12)),u=i(n(3)),l=i(n(1)),c=(i(n(2)),i(n(6))),f=i(n(5)),d=n(13),h=i(n(77)),p=i(n(112)),m=n(30),v=i(n(25)),y=function(e){return{root:{justifyContent:"center",alignItems:"center"},paper:{display:"flex",margin:4*e.spacing.unit,flexDirection:"column",flex:"0 1 auto",position:"relative",maxHeight:"90vh",overflowY:"auto",outline:"none"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,360)},paperWidthSm:{maxWidth:e.breakpoints.values.sm},paperWidthMd:{maxWidth:e.breakpoints.values.md},paperFullWidth:{width:"100%"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"100%",borderRadius:0}}};t.styles=y,r.propTypes={},r.defaultProps={disableBackdropClick:!1,disableEscapeKeyDown:!1,fullScreen:!1,fullWidth:!1,maxWidth:"sm",TransitionComponent:p.default,transitionDuration:{enter:m.duration.enteringScreen,exit:m.duration.leavingScreen}};var g=(0,f.default)(y,{name:"MuiDialog"})(r);t.default=g},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(433))},function(e,t,n){"use strict";function r(e){var t=e.disableActionSpacing,n=e.children,r=e.classes,i=e.className,l=(0,a.default)(e,["disableActionSpacing","children","classes","className"]);return s.default.createElement("div",(0,o.default)({className:(0,u.default)(r.root,i)},l),t?n:(0,c.cloneChildrenWithClassName)(n,r.action))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=n(37);n(59);var f=function(e){return{root:{display:"flex",alignItems:"center",justifyContent:"flex-end",flex:"0 0 auto",margin:"".concat(e.spacing.unit,"px ").concat(e.spacing.unit/2,"px")},action:{margin:"0 ".concat(e.spacing.unit/2,"px"),minWidth:64}}};t.styles=f,r.propTypes={},r.defaultProps={disableActionSpacing:!1};var d=(0,l.default)(f,{name:"MuiDialogActions"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(435))},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.children,r=e.className,i=(0,a.default)(e,["classes","children","className"]);return s.default.createElement("div",(0,o.default)({className:(0,u.default)(t.root,r)},i),n)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=function(e){var t=3*e.spacing.unit;return{root:{flex:"1 1 auto",overflowY:"auto",WebkitOverflowScrolling:"touch",padding:"0 ".concat(t,"px ").concat(t,"px ").concat(t,"px"),"&:first-child":{paddingTop:t}}}};t.styles=c,r.propTypes={};var f=(0,l.default)(c,{name:"MuiDialogContent"})(r);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(437))},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=(0,a.default)(e,["children","classes","className"]);return s.default.createElement(c.default,(0,o.default)({component:"p",variant:"subheading",className:(0,u.default)(n.root,r)},i),t)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=i(n(23)),f=function(e){return{root:{color:e.palette.text.secondary}}};t.styles=f,r.propTypes={};var d=(0,l.default)(f,{name:"MuiDialogContentText"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(439))},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=e.disableTypography,l=(0,a.default)(e,["children","classes","className","disableTypography"]);return s.default.createElement("div",(0,o.default)({className:(0,u.default)(n.root,r)},l),i?t:s.default.createElement(c.default,{variant:"title"},t))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=i(n(23)),f=function(e){return{root:{margin:0,padding:"".concat(3*e.spacing.unit,"px ").concat(3*e.spacing.unit,"px 20px ").concat(3*e.spacing.unit,"px"),flex:"0 0 auto"}}};t.styles=f,r.propTypes={},r.defaultProps={disableTypography:!1};var d=(0,l.default)(f,{name:"MuiDialogTitle"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(441))},function(e,t,n){"use strict";function r(e){var t,n=e.absolute,r=e.classes,i=e.className,c=e.component,f=e.inset,d=e.light,h=(0,s.default)(e,["absolute","classes","className","component","inset","light"]),p=(0,l.default)(r.root,(t={},(0,a.default)(t,r.absolute,n),(0,a.default)(t,r.inset,f),(0,a.default)(t,r.light,d),t),i);return u.default.createElement(c,(0,o.default)({className:p},h))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(31),d=function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:9*e.spacing.unit},light:{backgroundColor:(0,f.fade)(e.palette.divider,.08)}}};t.styles=d,r.propTypes={},r.defaultProps={absolute:!1,component:"hr",inset:!1,light:!1};var h=(0,c.default)(d,{name:"MuiDivider"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(115))},function(e,t,n){"use strict";function r(e,t){var n,r=e.direction,i=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=(0,g.default)(t).getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var a=0,s=0;if(n&&"none"!==n&&"string"===typeof n){var u=n.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),s=parseInt(u[5],10)}return"left"===r?"translateX(100vw) translateX(-".concat(i.left-a,"px)"):"right"===r?"translateX(-".concat(i.left+i.width+E-a,"px)"):"up"===r?"translateY(100vh) translateY(-".concat(i.top-s,"px)"):"translateY(-".concat(i.top+i.height+E-s,"px)")}function i(e,t){var n=r(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.setTranslateValue=i,t.default=void 0;var a=o(n(4)),s=o(n(3)),u=o(n(12)),l=o(n(8)),c=o(n(9)),f=o(n(10)),d=o(n(11)),h=o(n(1)),p=(o(n(2)),o(n(17))),m=o(n(28)),v=o(n(34)),y=o(n(48)),g=o(n(73)),b=o(n(32)),w=n(30),_=n(49),E=24,T=function(e){function t(){var e,n,r;(0,l.default)(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(0,f.default)(r,(n=r=(0,f.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.mounted=!1,r.transition=null,r.handleResize=(0,v.default)(function(){if(!r.props.in&&"down"!==r.props.direction&&"right"!==r.props.direction){var e=p.default.findDOMNode(r.transition);e&&i(r.props,e)}},166),r.handleEnter=function(e){i(r.props,e),(0,_.reflow)(e),r.props.onEnter&&r.props.onEnter(e)},r.handleEntering=function(e){var t=r.props.theme,n=(0,_.getTransitionProps)(r.props,{mode:"enter"});e.style.webkitTransition=t.transitions.create("-webkit-transform",(0,u.default)({},n,{easing:t.transitions.easing.easeOut})),e.style.transition=t.transitions.create("transform",(0,u.default)({},n,{easing:t.transitions.easing.easeOut})),e.style.webkitTransform="translate(0, 0)",e.style.transform="translate(0, 0)",r.props.onEntering&&r.props.onEntering(e)},r.handleExit=function(e){var t=r.props.theme,n=(0,_.getTransitionProps)(r.props,{mode:"exit"});e.style.webkitTransition=t.transitions.create("-webkit-transform",(0,u.default)({},n,{easing:t.transitions.easing.sharp})),e.style.transition=t.transitions.create("transform",(0,u.default)({},n,{easing:t.transitions.easing.sharp})),i(r.props,e),r.props.onExit&&r.props.onExit(e)},r.handleExited=function(e){e.style.webkitTransition="",e.style.transition="",r.props.onExited&&r.props.onExited(e)},n))}return(0,d.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){this.props.in||this.updatePosition(),this.mounted=!0}},{key:"componentDidUpdate",value:function(e){e.direction===this.props.direction||this.props.in||this.updatePosition()}},{key:"componentWillUnmount",value:function(){this.handleResize.clear()}},{key:"updatePosition",value:function(){var e=p.default.findDOMNode(this.transition);e&&(e.style.visibility="inherit",i(this.props,e))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.onEnter,t.onEntering,t.onExit,t.onExited,t.style),i=(t.theme,(0,s.default)(t,["children","onEnter","onEntering","onExit","onExited","style","theme"])),o={};return this.props.in||this.mounted||(o.visibility="hidden"),o=(0,u.default)({},o,r,h.default.isValidElement(n)?n.props.style:{}),h.default.createElement(m.default,{target:"window",onResize:this.handleResize},h.default.createElement(y.default,(0,a.default)({onEnter:this.handleEnter,onEntering:this.handleEntering,onExit:this.handleExit,onExited:this.handleExited,appear:!0,style:o,ref:function(t){e.transition=t}},i),n))}}]),t}(h.default.Component);T.propTypes={},T.defaultProps={direction:"down",timeout:{enter:w.duration.enteringScreen,exit:w.duration.leavingScreen}};var x=(0,b.default)()(T);t.default=x},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(445))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(12)),d=r(n(1)),h=(r(n(2)),r(n(6))),p=r(n(80)),m=r(n(25)),v=r(n(5)),y=n(37),g="undefined"!==typeof window&&/jsdom/.test(window.navigator.userAgent)?{}:{"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},b=function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{borderTopLeftRadius:2,borderTopRightRadius:2,"&:before":{display:"none"}},"&:last-child":(0,f.default)({borderBottomLeftRadius:2,borderBottomRightRadius:2},g),"&$expanded + &":{"&:before":{display:"none"}}},expanded:{margin:"".concat(2*e.spacing.unit,"px 0"),"&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},disabled:{backgroundColor:e.palette.action.disabledBackground}}};t.styles=b;var w=function(e){function t(e){var n;return(0,s.default)(this,t),n=(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n.state={},n.isControlled=null,n.handleChange=function(e){var t=n.isControlled?n.props.expanded:n.state.expanded;n.isControlled||n.setState({expanded:!t}),n.props.onChange&&n.props.onChange(e,!t)},n.isControlled=null!=e.expanded,n.isControlled||(n.state.expanded=void 0!==e.defaultExpanded&&e.defaultExpanded),n}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.children,s=n.classes,u=n.className,l=n.CollapseProps,c=(n.defaultExpanded,n.disabled),f=n.expanded,v=(n.onChange,(0,a.default)(n,["children","classes","className","CollapseProps","defaultExpanded","disabled","expanded","onChange"])),g=this.isControlled?f:this.state.expanded,b=(0,h.default)(s.root,(e={},(0,o.default)(e,s.expanded,g),(0,o.default)(e,s.disabled,c),e),u),w=null,_=d.default.Children.map(r,function(e){return d.default.isValidElement(e)?(0,y.isMuiElement)(e,["ExpansionPanelSummary"])?(w=d.default.cloneElement(e,{disabled:c,expanded:g,onChange:t.handleChange}),null):e:null}),E=g?null:{"aria-hidden":"true"};return d.default.createElement(m.default,(0,i.default)({className:b,elevation:1,square:!0},v),w,d.default.createElement(p.default,(0,i.default)({in:g,timeout:"auto"},E,l),_))}}]),t}(d.default.Component);w.propTypes={},w.defaultProps={defaultExpanded:!1,disabled:!1};var _=(0,v.default)(b,{name:"MuiExpansionPanel"})(w);t.default=_},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(447))},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=(0,a.default)(e,["children","classes","className"]);return s.default.createElement("div",(0,o.default)({className:(0,u.default)(n.root,r)},i),(0,c.cloneChildrenWithClassName)(t,n.action))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=n(37);n(59);var f=function(e){return{root:{display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"".concat(2*e.spacing.unit,"px ").concat(e.spacing.unit,"px")},action:{marginLeft:e.spacing.unit}}};t.styles=f,r.propTypes={};var d=(0,l.default)(f,{name:"MuiExpansionPanelActions"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(449))},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.children,r=e.className,i=(0,a.default)(e,["classes","children","className"]);return s.default.createElement("div",(0,o.default)({className:(0,u.default)(t.root,r)},i),n)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=function(e){return{root:{display:"flex",padding:"".concat(e.spacing.unit,"px ").concat(3*e.spacing.unit,"px ").concat(3*e.spacing.unit,"px")}}};t.styles=c,r.propTypes={};var f=(0,l.default)(c,{name:"MuiExpansionPanelDetails"})(r);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(451))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=(r(n(2)),r(n(6))),h=r(n(26)),p=r(n(79)),m=r(n(5)),v=function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:6*e.spacing.unit,transition:e.transitions.create(["min-height","background-color"],t),padding:"0 ".concat(3*e.spacing.unit,"px 0 ").concat(3*e.spacing.unit,"px"),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.grey[300]},"&$disabled":{opacity:.38}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","& > :last-child":{paddingRight:4*e.spacing.unit},"&$expanded":{margin:"20px 0"}},expandIcon:{position:"absolute",top:"50%",right:e.spacing.unit,transform:"translateY(-50%) rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"translateY(-50%) rotate(180deg)"}}}};t.styles=v;var y=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={focused:!1},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1})},r.handleChange=function(e){var t=r.props,n=t.onChange,i=t.onClick;n&&n(e),i&&i(e)},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.classes,s=t.className,u=t.disabled,l=t.expanded,c=t.expandIcon,m=(t.onChange,(0,a.default)(t,["children","classes","className","disabled","expanded","expandIcon","onChange"])),v=this.state.focused;return f.default.createElement(h.default,(0,i.default)({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":l,className:(0,d.default)(r.root,(e={},(0,o.default)(e,r.disabled,u),(0,o.default)(e,r.expanded,l),(0,o.default)(e,r.focused,v),e),s)},m,{onFocusVisible:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleChange}),f.default.createElement("div",{className:(0,d.default)(r.content,(0,o.default)({},r.expanded,l))},n),c&&f.default.createElement(p.default,{disabled:u,className:(0,d.default)(r.expandIcon,(0,o.default)({},r.expanded,l)),component:"div",tabIndex:-1,"aria-hidden":"true"},c))}}]),t}(f.default.Component);y.propTypes={},y.defaultProps={disabled:!1},y.muiName="ExpansionPanelSummary";var g=(0,m.default)(v,{name:"MuiExpansionPanelSummary"})(y);t.default=g},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=r(n(2)),h=r(n(6)),p=r(n(5)),m=n(117),v=n(13),y=n(37),g=function(e){return{root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0},marginNormal:{marginTop:2*e.spacing.unit,marginBottom:e.spacing.unit},marginDense:{marginTop:e.spacing.unit,marginBottom:e.spacing.unit/2},fullWidth:{width:"100%"}}};t.styles=g;var b=function(e){function t(e){var n;(0,s.default)(this,t),n=(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n.state={adornedStart:!1,filled:!1,focused:!1},n.handleFocus=function(){n.setState(function(e){return e.focused?null:{focused:!0}})},n.handleBlur=function(){n.setState(function(e){return e.focused?{focused:!1}:null})},n.handleDirty=function(){n.state.filled||n.setState({filled:!0})},n.handleClean=function(){n.state.filled&&n.setState({filled:!1})};var r=n.props.children;return r&&f.default.Children.forEach(r,function(e){if((0,y.isMuiElement)(e,["Input","Select","NativeSelect"])){(0,m.isFilled)(e.props,!0)&&(n.state.filled=!0);var t=(0,y.isMuiElement)(e,["Select","NativeSelect"])?e.props.input:e;t&&(0,m.isAdornedStart)(t.props)&&(n.state.adornedStart=!0)}}),n}return(0,c.default)(t,e),(0,u.default)(t,[{key:"getChildContext",value:function(){var e=this.props,t=e.disabled,n=e.error,r=e.required,i=e.margin,o=this.state;return{muiFormControl:{adornedStart:o.adornedStart,disabled:t,error:n,filled:o.filled,focused:o.focused,margin:i,onBlur:this.handleBlur,onEmpty:this.handleClean,onFilled:this.handleDirty,onFocus:this.handleFocus,required:r}}}},{key:"render",value:function(){var e,t=this.props,n=t.classes,r=t.className,s=t.component,u=(t.disabled,t.error,t.fullWidth),l=t.margin,c=(t.required,(0,a.default)(t,["classes","className","component","disabled","error","fullWidth","margin","required"]));return f.default.createElement(s,(0,i.default)({className:(0,h.default)(n.root,(e={},(0,o.default)(e,n["margin".concat((0,v.capitalize)(l))],"none"!==l),(0,o.default)(e,n.fullWidth,u),e),r)},c))}}]),t}(f.default.Component);b.propTypes={},b.defaultProps={component:"div",disabled:!1,error:!1,fullWidth:!1,margin:"none",required:!1},b.childContextTypes={muiFormControl:d.default.object};var w=(0,p.default)(g,{name:"MuiFormControl"})(b);t.default=w},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(1)),f=(r(n(2)),r(n(6))),d=r(n(34)),h=r(n(28)),p=r(n(5)),m=19,v={root:{position:"relative",width:"100%"},textarea:{width:"100%",height:"100%",resize:"none",font:"inherit",padding:0,cursor:"inherit",boxSizing:"border-box",lineHeight:"inherit",border:"none",outline:"none",background:"transparent"},shadow:{resize:"none",overflow:"hidden",visibility:"hidden",position:"absolute",height:"auto",whiteSpace:"pre-wrap"}};t.styles=v;var y=function(e){function t(e){var n;return(0,a.default)(this,t),n=(0,u.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n.state={height:null},n.shadow=null,n.singlelineShadow=null,n.input=null,n.value=null,n.handleResize=(0,d.default)(function(){n.syncHeightWithShadow()},166),n.handleRefInput=function(e){n.input=e;var t=n.props.textareaRef;t&&("function"===typeof t?t(e):t.current=e)},n.handleRefSinglelineShadow=function(e){n.singlelineShadow=e},n.handleRefShadow=function(e){n.shadow=e},n.handleChange=function(e){n.value=e.target.value,"undefined"===typeof n.props.value&&n.shadow&&(n.shadow.value=n.value,n.syncHeightWithShadow()),n.props.onChange&&n.props.onChange(e)},n.value=e.value||e.defaultValue||"",n.state={height:Number(e.rows)*m},n}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.syncHeightWithShadow()}},{key:"componentDidUpdate",value:function(){this.syncHeightWithShadow()}},{key:"componentWillUnmount",value:function(){this.handleResize.clear()}},{key:"syncHeightWithShadow",value:function(){var e=this.props;if(this.shadow&&this.singlelineShadow){"undefined"!==typeof e.value&&(this.shadow.value=null==e.value?"":String(e.value));var t=this.singlelineShadow.scrollHeight,n=this.shadow.scrollHeight;void 0!==n&&(Number(e.rowsMax)>=Number(e.rows)&&(n=Math.min(Number(e.rowsMax)*t,n)),n=Math.max(n,t),Math.abs(this.state.height-n)>1&&this.setState({height:n}))}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.className,r=e.defaultValue,a=(e.onChange,e.rows),s=(e.rowsMax,e.textareaRef,e.value),u=(0,o.default)(e,["classes","className","defaultValue","onChange","rows","rowsMax","textareaRef","value"]);return c.default.createElement("div",{className:t.root,style:{height:this.state.height}},c.default.createElement(h.default,{target:"window",onResize:this.handleResize}),c.default.createElement("textarea",{ref:this.handleRefSinglelineShadow,className:(0,f.default)(t.shadow,t.textarea),tabIndex:-1,rows:"1",readOnly:!0,"aria-hidden":"true",value:""}),c.default.createElement("textarea",{ref:this.handleRefShadow,className:(0,f.default)(t.shadow,t.textarea),tabIndex:-1,rows:a,"aria-hidden":"true",readOnly:!0,defaultValue:r,value:s}),c.default.createElement("textarea",(0,i.default)({rows:a,className:(0,f.default)(t.textarea,n),defaultValue:r,value:s,onChange:this.handleChange,ref:this.handleRefInput},u)))}}]),t}(c.default.Component);y.propTypes={},y.defaultProps={rows:1};var g=(0,p.default)(v)(y);t.default=g},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(455))},function(e,t,n){"use strict";function r(e,t){var n=e.checked,r=e.classes,i=e.className,l=e.control,f=e.disabled,h=e.inputRef,p=e.label,m=e.name,v=e.onChange,y=e.value,g=(0,s.default)(e,["checked","classes","className","control","disabled","inputRef","label","name","onChange","value"]),b=t.muiFormControl,w=f;"undefined"!==typeof l.props.disabled&&"undefined"===typeof w&&(w=l.props.disabled),b&&"undefined"===typeof w&&(w=b.disabled);var _=(0,c.default)(r.root,(0,a.default)({},r.disabled,w),i);return u.default.createElement("label",(0,o.default)({className:_},g),u.default.cloneElement(l,{disabled:w,checked:"undefined"===typeof l.props.checked?n:l.props.checked,name:l.props.name||m,onChange:l.props.onChange||v,value:l.props.value||y,inputRef:l.props.inputRef||h}),u.default.createElement(d.default,{component:"span",className:(0,c.default)(r.label,(0,a.default)({},r.disabled,w))},p))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=i(n(2)),c=i(n(6)),f=i(n(5)),d=i(n(23)),h=function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-14,marginRight:2*e.spacing.unit,"&$disabled":{cursor:"default"}},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}};t.styles=h,r.propTypes={},r.contextTypes={muiFormControl:l.default.object};var p=(0,f.default)(h,{name:"MuiFormControlLabel"})(r);t.default=p},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.children,i=e.row,c=(0,s.default)(e,["classes","className","children","row"]);return u.default.createElement("div",(0,o.default)({className:(0,l.default)(t.root,(0,a.default)({},t.row,i),n)},c),r)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f={root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}};t.styles=f,r.propTypes={},r.defaultProps={row:!1};var d=(0,c.default)(f,{name:"MuiFormGroup"})(r);t.default=d},function(e,t,n){"use strict";function r(e,t){var n,r=e.classes,i=e.className,l=e.disabled,f=e.error,d=e.margin,h=e.component,p=(0,s.default)(e,["classes","className","disabled","error","margin","component"]),m=t.muiFormControl,v=l,y=f,g=d;m&&("undefined"===typeof v&&(v=m.disabled),"undefined"===typeof y&&(y=m.error),"undefined"===typeof g&&(g=m.margin));var b=(0,c.default)(r.root,(n={},(0,a.default)(n,r.disabled,v),(0,a.default)(n,r.error,y),(0,a.default)(n,r.marginDense,"dense"===g),n),i);return u.default.createElement(h,(0,o.default)({className:b},p))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=i(n(2)),c=i(n(6)),f=i(n(5)),d=function(e){return{root:{color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),textAlign:"left",marginTop:e.spacing.unit,lineHeight:"1em",minHeight:"1em",margin:0,"&$error":{color:e.palette.error.main},"&$disabled":{color:e.palette.text.disabled}},error:{},disabled:{},marginDense:{marginTop:e.spacing.unit/2}}};t.styles=d,r.propTypes={},r.defaultProps={component:"p"},r.contextTypes={muiFormControl:l.default.object};var h=(0,f.default)(d,{name:"MuiFormHelperText"})(r);t.default=h},function(e,t,n){"use strict";function r(e,t){var n,r=e.children,i=e.classes,l=e.className,f=e.component,d=e.disabled,h=e.error,p=e.focused,m=e.required,v=(0,s.default)(e,["children","classes","className","component","disabled","error","focused","required"]),y=t.muiFormControl,g=m,b=p,w=d,_=h;y&&("undefined"===typeof g&&(g=y.required),"undefined"===typeof b&&(b=y.focused),"undefined"===typeof w&&(w=y.disabled),"undefined"===typeof _&&(_=y.error));var E=(0,c.default)(i.root,(n={},(0,a.default)(n,i.focused,b),(0,a.default)(n,i.disabled,w),(0,a.default)(n,i.error,_),n),l);return u.default.createElement(f,(0,o.default)({className:E},v),r,g&&u.default.createElement("span",{className:(0,c.default)(i.asterisk,(0,a.default)({},i.error,_))},"\u2009*"))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=i(n(2)),c=i(n(6)),f=i(n(5)),d=function(e){return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.secondary,fontSize:e.typography.pxToRem(16),lineHeight:1,padding:0,"&$focused":{color:e.palette.primary["light"===e.palette.type?"dark":"light"]},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}},focused:{},disabled:{},error:{},asterisk:{"&$error":{color:e.palette.error.main}}}};t.styles=d,r.propTypes={},r.defaultProps={component:"label"},r.contextTypes={muiFormControl:l.default.object};var h=(0,f.default)(d,{name:"MuiFormLabel"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(460))},function(e,t,n){"use strict";function r(e,t,n){var r=(0,c.default)({},"grid-".concat(n),{flexBasis:0,flexGrow:1,maxWidth:"100%"});v.forEach(function(e){if("boolean"!==typeof e){var t="".concat(Math.round(e/12*1e7)/1e5,"%");r["grid-".concat(n,"-").concat(e)]={flexBasis:t,maxWidth:t}}}),"xs"===n?(0,l.default)(e,r):e[t.breakpoints.up(n)]=r}function i(e,t){var n={};return m.forEach(function(e,r){0!==r&&(n["spacing-".concat(t,"-").concat(e)]={margin:-e/2,width:"calc(100% + ".concat(e,"px)"),"& > $item":{padding:e/2}})}),n}function o(e){var t,n=e.alignContent,r=e.alignItems,i=e.classes,a=e.className,u=e.component,h=e.container,p=e.direction,m=e.item,v=e.justify,y=e.lg,g=e.md,b=e.sm,w=e.spacing,_=e.wrap,E=e.xl,T=e.xs,x=e.zeroMinWidth,S=(0,s.default)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),k=(0,d.default)((t={},(0,c.default)(t,i.container,h),(0,c.default)(t,i.item,m),(0,c.default)(t,i.zeroMinWidth,x),(0,c.default)(t,i["spacing-xs-".concat(String(w))],h&&0!==w),(0,c.default)(t,i["direction-xs-".concat(String(p))],p!==o.defaultProps.direction),(0,c.default)(t,i["wrap-xs-".concat(String(_))],_!==o.defaultProps.wrap),(0,c.default)(t,i["align-items-xs-".concat(String(r))],r!==o.defaultProps.alignItems),(0,c.default)(t,i["align-content-xs-".concat(String(n))],n!==o.defaultProps.alignContent),(0,c.default)(t,i["justify-xs-".concat(String(v))],v!==o.defaultProps.justify),(0,c.default)(t,i["grid-xs"],!0===T),(0,c.default)(t,i["grid-xs-".concat(String(T))],T&&!0!==T),(0,c.default)(t,i["grid-sm"],!0===b),(0,c.default)(t,i["grid-sm-".concat(String(b))],b&&!0!==b),(0,c.default)(t,i["grid-md"],!0===g),(0,c.default)(t,i["grid-md-".concat(String(g))],g&&!0!==g),(0,c.default)(t,i["grid-lg"],!0===y),(0,c.default)(t,i["grid-lg-".concat(String(y))],y&&!0!==y),(0,c.default)(t,i["grid-xl"],!0===E),(0,c.default)(t,i["grid-xl-".concat(String(E))],E&&!0!==E),t),a);return f.default.createElement(u,(0,l.default)({className:k},S))}var a=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var s=a(n(3)),u=a(n(12)),l=a(n(4)),c=a(n(7)),f=a(n(1)),d=(a(n(2)),a(n(6))),h=a(n(5)),p=n(52),m=(a(n(461)),[0,8,16,24,32,40]),v=[!0,1,2,3,4,5,6,7,8,9,10,11,12],y=function(e){return(0,u.default)({container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"}},i(e,"xs"),p.keys.reduce(function(t,n){return r(t,e,n),t},{}))};t.styles=y,o.propTypes={},o.defaultProps={alignContent:"stretch",alignItems:"stretch",component:"div",container:!1,direction:"row",item:!1,justify:"flex-start",lg:!1,md:!1,sm:!1,spacing:0,wrap:"wrap",xl:!1,xs:!1,zeroMinWidth:!1};var g=(0,h.default)(y,{name:"MuiGrid"})(o),b=g;t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return function(t){return function(n,r,i,o,a){var s=a||r;return"undefined"===typeof n[r]||n[t]?null:new Error("The property `".concat(s,"` of ")+"`".concat(e,"` must be used on `").concat(t,"`."))}}},i=r;t.default=i},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(463))},function(e,t,n){"use strict";function r(e){var t=e.cellHeight,n=e.children,r=e.classes,i=e.className,c=e.cols,f=e.component,d=e.spacing,h=e.style,p=(0,s.default)(e,["cellHeight","children","classes","className","cols","component","spacing","style"]);return u.default.createElement(f,(0,o.default)({className:(0,l.default)(r.root,i),style:(0,a.default)({margin:-d/2},h)},p),u.default.Children.map(n,function(e){if(!u.default.isValidElement(e))return null;var n=e.props.cols||1,r=e.props.rows||1;return u.default.cloneElement(e,{style:(0,o.default)({width:"".concat(100/c*n,"%"),height:"auto"===t?"auto":t*r+d,padding:d/2},e.props.style)})}))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(12)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f={root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}};t.styles=f,r.propTypes={},r.defaultProps={cellHeight:180,cols:2,component:"ul",spacing:4};var d=(0,c.default)(f,{name:"MuiGridList"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(465))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(76)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=(r(n(2)),r(n(6))),h=r(n(28)),p=r(n(34)),m=r(n(5)),v={root:{boxSizing:"border-box",flexShrink:0},tile:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",top:"50%"}};t.styles=v;var y=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.imgElement=null,r.handleResize=(0,p.default)(function(){r.fit()},166),r.fit=function(){var e=r.imgElement;if(e&&e.complete){if(e.width/e.height>e.parentNode.offsetWidth/e.parentNode.offsetHeight){var t,n;(t=e.classList).remove.apply(t,(0,a.default)(r.props.classes.imgFullWidth.split(" "))),(n=e.classList).add.apply(n,(0,a.default)(r.props.classes.imgFullHeight.split(" ")))}else{var i,o;(i=e.classList).remove.apply(i,(0,a.default)(r.props.classes.imgFullHeight.split(" "))),(o=e.classList).add.apply(o,(0,a.default)(r.props.classes.imgFullWidth.split(" ")))}e.removeEventListener("load",r.fit)}},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.ensureImageCover()}},{key:"componentDidUpdate",value:function(){this.ensureImageCover()}},{key:"componentWillUnmount",value:function(){this.handleResize.clear()}},{key:"ensureImageCover",value:function(){this.imgElement&&(this.imgElement.complete?this.fit():this.imgElement.addEventListener("load",this.fit))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.classes,a=t.className,s=(t.cols,t.component),u=(t.rows,(0,o.default)(t,["children","classes","className","cols","component","rows"]));return f.default.createElement(s,(0,i.default)({className:(0,d.default)(r.root,a)},u),f.default.createElement(h.default,{target:"window",onResize:this.handleResize}),f.default.createElement("div",{className:r.tile},f.default.Children.map(n,function(t){return t&&"img"===t.type?f.default.cloneElement(t,{key:"img",ref:function(t){e.imgElement=t}}):t})))}}]),t}(f.default.Component);y.propTypes={},y.defaultProps={cols:1,component:"li",rows:1};var g=(0,m.default)(v,{name:"MuiGridListTile"})(y);t.default=g},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(467))},function(e,t,n){"use strict";function r(e){var t,n,r=e.actionIcon,i=e.actionPosition,c=e.classes,f=e.className,d=e.subtitle,h=e.title,p=e.titlePosition,m=(0,s.default)(e,["actionIcon","actionPosition","classes","className","subtitle","title","titlePosition"]),v=r&&i,y=(0,l.default)(c.root,(t={},(0,a.default)(t,c.titlePositionBottom,"bottom"===p),(0,a.default)(t,c.titlePositionTop,"top"===p),(0,a.default)(t,c.rootSubtitle,d),t),f),g=(0,l.default)(c.titleWrap,(n={},(0,a.default)(n,c.titleWrapActionPosLeft,"left"===v),(0,a.default)(n,c.titleWrapActionPosRight,"right"===v),n));return u.default.createElement("div",(0,o.default)({className:y},m),u.default.createElement("div",{className:g},u.default.createElement("div",{className:c.title},h),d?u.default.createElement("div",{className:c.subtitle},d):null),r?u.default.createElement("div",{className:(0,l.default)(c.actionIcon,(0,a.default)({},c.actionIconActionPosLeft,"left"===v))},r):null)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=function(e){return{root:{position:"absolute",left:0,right:0,height:48,background:"rgba(0, 0, 0, 0.4)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily},titlePositionBottom:{bottom:0},titlePositionTop:{top:0},rootSubtitle:{height:68},titleWrap:{flexGrow:1,marginLeft:e.mixins.gutters().paddingLeft,marginRight:e.mixins.gutters().paddingRight,color:e.palette.common.white,overflow:"hidden"},titleWrapActionPosLeft:{marginLeft:0},titleWrapActionPosRight:{marginRight:0},title:{fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{},actionIconActionPosLeft:{order:-1}}};t.styles=f,r.propTypes={},r.defaultProps={actionPosition:"right",titlePosition:"bottom"};var d=(0,c.default)(f,{name:"MuiGridListTileBar"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(469))},function(e,t,n){"use strict";function r(e){var t=e.implementation,n=(0,o.default)(e,["implementation"]);return"js"===t?a.default.createElement(s.default,n):a.default.createElement(u.default,n)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(3)),a=i(n(1)),s=(i(n(2)),i(n(470))),u=i(n(472));r.propTypes={},r.defaultProps={implementation:"js",lgDown:!1,lgUp:!1,mdDown:!1,mdUp:!1,smDown:!1,smUp:!1,xlDown:!1,xlUp:!1,xsDown:!1,xsUp:!1};var l=r;t.default=l},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.only,r=e.width,i=!0;if(n)if(Array.isArray(n))for(var o=0;o<n.length;o+=1){var a=n[o];if(r===a){i=!1;break}}else n&&r===n&&(i=!1);if(i)for(var l=0;l<s.keys.length;l+=1){var c=s.keys[l],f=e["".concat(c,"Up")],d=e["".concat(c,"Down")];if(f&&(0,u.isWidthUp)(c,r)||d&&(0,u.isWidthDown)(c,r)){i=!1;break}}return i?t:null}var i=n(54),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(2)),s=n(52),u=i(n(118)),l=o(n(55));r.propTypes={children:a.default.node,className:a.default.string,implementation:a.default.oneOf(["js","css"]),initialWidth:a.default.oneOf(["xs","sm","md","lg","xl"]),lgDown:a.default.bool,lgUp:a.default.bool,mdDown:a.default.bool,mdUp:a.default.bool,only:a.default.oneOfType([a.default.oneOf(["xs","sm","md","lg","xl"]),a.default.arrayOf(a.default.oneOf(["xs","sm","md","lg","xl"]))]),smDown:a.default.bool,smUp:a.default.bool,width:a.default.string.isRequired,xlDown:a.default.bool,xlUp:a.default.bool,xsDown:a.default.bool,xsUp:a.default.bool},r.propTypes=(0,l.default)(r.propTypes,"HiddenJs");var c=(0,u.default)()(r);t.default=c},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isWidthDown=t.isWidthUp=void 0;var i=r(n(4)),o=r(n(12)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=(r(n(2)),r(n(28))),h=r(n(34)),p=(r(n(56)),r(n(94))),m=r(n(32)),v=n(52),y=function(e,t){return arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?v.keys.indexOf(e)<v.keys.indexOf(t):v.keys.indexOf(e)<=v.keys.indexOf(t)};t.isWidthUp=y;var g=function(e,t){return arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?v.keys.indexOf(t)<v.keys.indexOf(e):v.keys.indexOf(t)<=v.keys.indexOf(e)};t.isWidthDown=g;var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,r=void 0!==n&&n,y=e.noSSR,g=void 0!==y&&y,b=e.initialWidth,w=e.resizeInterval,_=void 0===w?166:w,E=function(e){function n(e){var t;return(0,s.default)(this,n),t=(0,l.default)(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e)),t.state={width:void 0},t.handleResize=(0,h.default)(function(){var e=t.getWidth();e!==t.state.width&&t.setState({width:e})},_),g&&(t.state.width=t.getWidth()),t}return(0,c.default)(n,e),(0,u.default)(n,[{key:"componentDidMount",value:function(){var e=this.getWidth();e!==this.state.width&&this.setState({width:e})}},{key:"componentWillUnmount",value:function(){this.handleResize.clear()}},{key:"getWidth",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.innerWidth,t=this.props.theme.breakpoints,n=null,r=1;null===n&&r<v.keys.length;){var i=v.keys[r];if(e<t.values[i]){n=v.keys[r-1];break}r+=1}return n=n||"xl"}},{key:"render",value:function(){var e=this.props,n=e.initialWidth,s=e.theme,u=e.width,l=(0,a.default)(e,["initialWidth","theme","width"]),c=(0,o.default)({width:u||this.state.width||n||b},l),h={};return r&&(h.theme=s),void 0===c.width?null:f.default.createElement(d.default,{target:"window",onResize:this.handleResize},f.default.createElement(t,(0,i.default)({},h,c)))}}]),n}(f.default.Component);return E.propTypes={},(0,p.default)(E,t),(0,m.default)()(E)}},w=b;t.default=w},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=(e.lgDown,e.lgUp,e.mdDown,e.mdUp,e.only),a=(e.smDown,e.smUp,e.xlDown,e.xlUp,e.xsDown,e.xsUp,(0,o.default)(e,["children","classes","className","lgDown","lgUp","mdDown","mdUp","only","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]),[]);r&&a.push(r);for(var c=0;c<u.keys.length;c+=1){var f=u.keys[c],d=e["".concat(f,"Up")],h=e["".concat(f,"Down")];d&&a.push(n["".concat(f,"Up")]),h&&a.push(n["".concat(f,"Down")])}if(i){(Array.isArray(i)?i:[i]).forEach(function(e){a.push(n["only".concat((0,l.capitalize)(e))])})}return s.default.createElement("div",{className:a.join(" ")},t)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(3)),a=i(n(7)),s=i(n(1)),u=(i(n(2)),i(n(14)),n(52)),l=n(13),c=i(n(5)),f=function(e){var t={display:"none"};return u.keys.reduce(function(n,r){return n["only".concat((0,l.capitalize)(r))]=(0,a.default)({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=(0,a.default)({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=(0,a.default)({},e.breakpoints.down(r),t),n},{})};r.propTypes={};var d=(0,c.default)(f)(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(474))},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=e.color,c=(0,s.default)(e,["children","classes","className","color"]);return u.default.createElement("span",(0,o.default)({className:(0,l.default)("material-icons",n.root,(0,a.default)({},n["color".concat((0,f.capitalize)(i))],"inherit"!==i),r),"aria-hidden":"true"},c),t)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(13),d=function(e){return{root:{userSelect:"none",fontSize:24,width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled}}};t.styles=d,r.propTypes={},r.defaultProps={color:"inherit"},r.muiName="Icon";var h=(0,c.default)(d,{name:"MuiIcon"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(476))},function(e,t,n){"use strict";function r(e){var t,n=e.children,r=e.component,i=e.classes,f=e.className,d=e.disableTypography,h=e.position,p=(0,s.default)(e,["children","component","classes","className","disableTypography","position"]);return u.default.createElement(r,(0,o.default)({className:(0,l.default)(i.root,(t={},(0,a.default)(t,i.positionStart,"start"===h),(0,a.default)(t,i.positionEnd,"end"===h),t),f)},p),"string"!==typeof n||d?n:u.default.createElement(c.default,{color:"textSecondary"},n))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(23)),f=i(n(5)),d=function(e){return{root:{display:"flex",maxHeight:"2em",alignItems:"center"},positionStart:{marginRight:e.spacing.unit},positionEnd:{marginLeft:e.spacing.unit}}};t.styles=d,r.propTypes={},r.defaultProps={component:"div",disableTypography:!1};var h=(0,f.default)(d,{name:"MuiInputAdornment"})(r);t.default=h},function(e,t,n){"use strict";function r(e,t){var n,r=e.children,i=e.classes,l=e.className,f=e.disableAnimation,h=e.FormLabelClasses,p=e.margin,m=e.shrink,v=(0,s.default)(e,["children","classes","className","disableAnimation","FormLabelClasses","margin","shrink"]),y=t.muiFormControl,g=m;"undefined"===typeof g&&y&&(g=y.filled||y.focused||y.adornedStart);var b=p;"undefined"===typeof b&&y&&(b=y.margin);var w=(0,c.default)(i.root,(n={},(0,a.default)(n,i.formControl,y),(0,a.default)(n,i.animated,!f),(0,a.default)(n,i.shrink,g),(0,a.default)(n,i.marginDense,"dense"===b),n),l);return u.default.createElement(d.default,(0,o.default)({"data-shrink":g,className:w,classes:h},v),r)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=i(n(2)),c=i(n(6)),f=i(n(5)),d=i(n(175)),h=function(e){return{root:{transformOrigin:"top left"},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, ".concat(3*e.spacing.unit,"px) scale(1)")},marginDense:{transform:"translate(0, ".concat(2.5*e.spacing.unit+1,"px) scale(1)")},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}}};t.styles=h,r.propTypes={},r.defaultProps={disableAnimation:!1},r.contextTypes={muiFormControl:l.default.object};var p=(0,f.default)(h,{name:"MuiInputLabel"})(r);t.default=p},function(e,t,n){"use strict";function r(e){var t,n,r,i,c=e.classes,f=e.className,d=e.color,h=e.value,p=e.valueBuffer,m=e.variant,v=(0,s.default)(e,["classes","className","color","value","valueBuffer","variant"]),y=(0,l.default)(c.root,(t={},(0,a.default)(t,c.colorPrimary,"primary"===d),(0,a.default)(t,c.colorSecondary,"secondary"===d),(0,a.default)(t,c.buffer,"buffer"===m),(0,a.default)(t,c.query,"query"===m),t),f),g=(0,l.default)(c.dashed,(n={},(0,a.default)(n,c.dashedColorPrimary,"primary"===d),(0,a.default)(n,c.dashedColorSecondary,"secondary"===d),n)),b=(0,l.default)(c.bar,(r={},(0,a.default)(r,c.barColorPrimary,"primary"===d),(0,a.default)(r,c.barColorSecondary,"secondary"===d),(0,a.default)(r,c.bar1Indeterminate,"indeterminate"===m||"query"===m),(0,a.default)(r,c.bar1Determinate,"determinate"===m),(0,a.default)(r,c.bar1Buffer,"buffer"===m),r)),w=(0,l.default)(c.bar,(i={},(0,a.default)(i,c.barColorPrimary,"primary"===d&&"buffer"!==m),(0,a.default)(i,c.colorPrimary,"primary"===d&&"buffer"===m),(0,a.default)(i,c.barColorSecondary,"secondary"===d&&"buffer"!==m),(0,a.default)(i,c.colorSecondary,"secondary"===d&&"buffer"===m),(0,a.default)(i,c.bar2Indeterminate,"indeterminate"===m||"query"===m),(0,a.default)(i,c.bar2Buffer,"buffer"===m),i)),_={},E={bar1:{},bar2:{}};return"determinate"!==m&&"buffer"!==m||void 0!==h&&(_["aria-valuenow"]=Math.round(h),E.bar1.transform="scaleX(".concat(h/100,")")),"buffer"===m&&void 0!==p&&(E.bar2.transform="scaleX(".concat((p||0)/100,")")),u.default.createElement("div",(0,o.default)({className:y,role:"progressbar"},_,v),"buffer"===m?u.default.createElement("div",{className:g}):null,u.default.createElement("div",{className:b,style:E.bar1}),"determinate"===m?null:u.default.createElement("div",{className:w,style:E.bar2}))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=(i(n(14)),i(n(5))),f=n(31),d=function(e){return{root:{position:"relative",overflow:"hidden",height:5},colorPrimary:{backgroundColor:(0,f.lighten)(e.palette.primary.light,.6)},colorSecondary:{backgroundColor:(0,f.lighten)(e.palette.secondary.light,.4)},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat((0,f.lighten)(e.palette.primary.light,.6)," 0%, ").concat((0,f.lighten)(e.palette.primary.light,.6)," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat((0,f.lighten)(e.palette.secondary.light,.4)," 0%, ").concat((0,f.lighten)(e.palette.secondary.light,.6)," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",willChange:"left, right",animation:"mui-indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar2Indeterminate:{width:"auto",willChange:"left, right",animation:"mui-indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite",animationDelay:"1.15s"},bar1Determinate:{willChange:"transform",transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes mui-indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes mui-indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0px -23px"},"50%":{opacity:0,backgroundPosition:"0px -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}};t.styles=d,r.propTypes={},r.defaultProps={color:"primary",variant:"indeterminate"};var h=(0,c.default)(d,{name:"MuiLinearProgress"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(480))},function(e,t,n){"use strict";function r(e,t){var n=e.children,r=e.classes,i=e.className,l=(0,s.default)(e,["children","classes","className"]);return void 0===t.dense?e.children:u.default.cloneElement(n,(0,a.default)({className:(0,c.default)((0,o.default)({},r.root,t.dense),i,n.props.className),childrenClassName:(0,c.default)((0,o.default)({},r.icon,t.dense),n.props.childrenClassName)},l))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(7)),a=i(n(12)),s=i(n(3)),u=i(n(1)),l=i(n(2)),c=i(n(6)),f=(i(n(14)),i(n(5))),d=function(e){return{root:{width:36,height:36,fontSize:e.typography.pxToRem(18),marginRight:4},icon:{width:20,height:20,fontSize:e.typography.pxToRem(20)}}};t.styles=d,r.propTypes={},r.contextTypes={dense:l.default.bool},r.muiName="ListItemAvatar";var h=(0,f.default)(d,{name:"MuiListItemAvatar"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(482))},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=(0,a.default)(e,["children","classes","className"]);return s.default.cloneElement(t,(0,o.default)({className:(0,u.default)(n.root,r,t.props.className)},i))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(12)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=function(e){return{root:{marginRight:2*e.spacing.unit,color:e.palette.action.active,flexShrink:0}}};t.styles=c,r.propTypes={};var f=(0,l.default)(c,{name:"MuiListItemIcon"})(r);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(484))},function(e,t,n){"use strict";function r(e){var t=e.children,n=e.classes,r=e.className,i=(0,a.default)(e,["children","classes","className"]);return s.default.createElement("div",(0,o.default)({className:(0,u.default)(n.root,r)},i),t)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c={root:{position:"absolute",right:4,top:"50%",transform:"translateY(-50%)"}};t.styles=c,r.propTypes={},r.muiName="ListItemSecondaryAction";var f=(0,l.default)(c,{name:"MuiListItemSecondaryAction"})(r);t.default=f},function(e,t,n){"use strict";function r(e,t){var n,r=e.children,i=e.classes,l=e.className,f=e.disableTypography,h=e.inset,p=e.primary,m=e.secondary,v=(0,s.default)(e,["children","classes","className","disableTypography","inset","primary","secondary"]),y=t.dense,g=null!=p?p:r;null==g||f||(g=u.default.createElement(d.default,{variant:"subheading",className:(0,c.default)(i.primary,(0,a.default)({},i.textDense,y)),component:"span"},g));var b=m;return null==b||f||(b=u.default.createElement(d.default,{variant:"body1",className:(0,c.default)(i.secondary,(0,a.default)({},i.textDense,y)),color:"textSecondary"},b)),u.default.createElement("div",(0,o.default)({className:(0,c.default)(i.root,(n={},(0,a.default)(n,i.dense,y),(0,a.default)(n,i.inset,h),n),l)},v),g,b)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=i(n(2)),c=i(n(6)),f=i(n(5)),d=i(n(23)),h=function(e){return{root:{flex:"1 1 auto",minWidth:0,padding:"0 ".concat(2*e.spacing.unit,"px"),"&:first-child":{paddingLeft:0}},inset:{"&:first-child":{paddingLeft:7*e.spacing.unit}},dense:{fontSize:e.typography.pxToRem(13)},primary:{"&$textDense":{fontSize:"inherit"}},secondary:{"&$textDense":{fontSize:"inherit"}},textDense:{}}};t.styles=h,r.propTypes={},r.defaultProps={disableTypography:!1,inset:!1},r.contextTypes={dense:l.default.bool};var p=(0,f.default)(h,{name:"MuiListItemText"})(r);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(487))},function(e,t,n){"use strict";function r(e){var t,n=e.classes,r=e.className,i=e.color,c=e.component,d=e.disableSticky,h=e.inset,p=(0,s.default)(e,["classes","className","color","component","disableSticky","inset"]);return u.default.createElement(c,(0,o.default)({className:(0,l.default)(n.root,(t={},(0,a.default)(t,n["color".concat((0,f.capitalize)(i))],"default"!==i),(0,a.default)(t,n.inset,h),(0,a.default)(t,n.sticky,!d),t),r)},p))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(13),d=function(e){return{root:e.mixins.gutters({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)}),colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},inset:{paddingLeft:9*e.spacing.unit},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}};t.styles=d,r.propTypes={},r.defaultProps={color:"default",component:"li",disableSticky:!1,inset:!1},r.muiName="ListSubheader";var h=(0,c.default)(d,{name:"MuiListSubheader"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(489))},function(e,t,n){"use strict";function r(e){var t=e.activeStep,n=e.backButton,r=e.classes,i=e.className,f=e.nextButton,m=e.position,v=e.steps,y=e.variant,g=(0,u.default)(e,["activeStep","backButton","classes","className","nextButton","position","steps","variant"]),b=(0,c.default)(r.root,r["position".concat((0,h.capitalize)(m))],i);return l.default.createElement(d.default,(0,o.default)({square:!0,elevation:0,className:b},g),n,"dots"===y&&l.default.createElement("div",{className:r.dots},(0,s.default)(new Array(v)).map(function(e,n){var i=(0,c.default)(r.dot,(0,a.default)({},r.dotActive,n===t));return l.default.createElement("div",{key:n,className:i})})),"progress"===y&&l.default.createElement(p.default,{className:r.progress,variant:"determinate",value:Math.ceil(t/(v-1)*100)}),f)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(76)),u=i(n(3)),l=i(n(1)),c=(i(n(2)),i(n(6))),f=i(n(5)),d=i(n(25)),h=n(13),p=i(n(177)),m=function(e){return{root:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:e.palette.background.default,padding:e.spacing.unit},positionBottom:{position:"fixed",bottom:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionTop:{position:"fixed",top:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionStatic:{},dots:{display:"flex",flexDirection:"row"},dot:{backgroundColor:e.palette.action.disabled,borderRadius:"50%",width:e.spacing.unit,height:e.spacing.unit,margin:"0 2px"},dotActive:{backgroundColor:e.palette.primary.main},progress:{width:"50%"}}};t.styles=m,r.propTypes={},r.defaultProps={activeStep:0,position:"bottom",variant:"dots"};var v=(0,f.default)(m,{name:"MuiMobileStepper"})(r);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(179))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(492))},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.color,r=(0,a.default)(e,["classes","color"]);return s.default.createElement(l.default,(0,o.default)({type:"radio",icon:m,checkedIcon:v,classes:{root:(0,u.default)(t.root,t["color".concat((0,d.capitalize)(n))]),checked:t.checked,disabled:t.disabled}},r))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(114)),c=i(n(493)),f=i(n(494)),d=n(13),h=i(n(5)),p=function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.action.disabled}}}};t.styles=p;var m=s.default.createElement(c.default,null),v=s.default.createElement(f.default,null);r.propTypes={},r.defaultProps={color:"secondary"};var y=(0,h.default)(p,{name:"MuiRadio"})(r);t.default=y},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(496))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(1)),f=(r(n(2)),r(n(173))),d=n(13),h=function(e){function t(){var e,n,r;(0,a.default)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(0,u.default)(r,(n=r=(0,u.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.radios=[],r.focus=function(){if(r.radios&&r.radios.length){var e=r.radios.filter(function(e){return!e.disabled});if(e.length){var t=(0,d.find)(e,function(e){return e.checked});if(t)return void t.focus();e[0].focus()}}},r.handleRadioChange=function(e,t){t&&r.props.onChange&&r.props.onChange(e,e.target.value)},n))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.name,a=t.value,s=(t.onChange,(0,o.default)(t,["children","name","value","onChange"]));return this.radios=[],c.default.createElement(f.default,(0,i.default)({role:"radiogroup"},s),c.default.Children.map(n,function(t,n){return c.default.isValidElement(t)?c.default.cloneElement(t,{key:n,name:r,inputRef:function(t){t&&e.radios.push(t)},checked:a===t.props.value,onChange:(0,d.createChainedFunction)(t.props.onChange,e.handleRadioChange)}):null}))}}]),t}(c.default.Component);h.propTypes={};var p=h;t.default=p},function(e,t,n){"use strict";function r(e){var t=e.autoWidth,n=e.children,r=e.classes,i=e.displayEmpty,l=e.IconComponent,c=e.input,f=e.inputProps,d=e.MenuProps,p=e.multiple,m=e.native,v=e.onClose,y=e.onOpen,g=e.open,b=e.renderValue,w=e.SelectDisplayProps,_=(0,a.default)(e,["autoWidth","children","classes","displayEmpty","IconComponent","input","inputProps","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps"]),E=m?h.default:u.default,T={children:n,classes:r,IconComponent:l,type:void 0};return s.default.cloneElement(c,(0,o.default)({inputComponent:E,inputProps:(0,o.default)({},T,m?{}:{autoWidth:t,children:n,classes:r,displayEmpty:i,MenuProps:d,multiple:p,onClose:v,onOpen:y,open:g,renderValue:b,SelectDisplayProps:w},f,c?c.props.inputProps:{})},_))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(12)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(498))),l=i(n(5)),c=i(n(181)),f=i(n(60)),d=n(179),h=i(n(180)),p=d.styles;t.styles=p,r.propTypes={},r.defaultProps={autoWidth:!1,displayEmpty:!1,IconComponent:c.default,input:s.default.createElement(f.default,null),multiple:!1,native:!1},r.muiName="Select";var m=(0,l.default)(d.styles,{name:"MuiSelect"})(r);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(7)),a=r(n(3)),s=r(n(12)),u=r(n(76)),l=r(n(8)),c=r(n(9)),f=r(n(10)),d=r(n(11)),h=r(n(1)),p=(r(n(2)),r(n(6))),m=r(n(47)),v=r(n(158)),y=n(117),g=function(e){function t(){var e,n,r;(0,l.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,f.default)(r,(n=r=(0,f.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={open:!1},r.ignoreNextBlur=!1,r.displayNode=null,r.displayWidth=null,r.isOpenControlled=void 0!==r.props.open,r.updateDisplayWidth=function(){r.displayNode&&(r.displayWidth=r.displayNode.clientWidth)},r.update=r.isOpenControlled?function(e){var t=e.event;e.open?r.props.onOpen(t):r.props.onClose(t)}:function(e){var t=e.open;return r.setState({open:t})},r.handleClick=function(e){r.ignoreNextBlur=!0,r.update({open:!0,event:e})},r.handleClose=function(e){r.update({open:!1,event:e})},r.handleItemClick=function(e){return function(t){r.props.multiple||r.update({open:!1,event:t});var n=r.props,i=n.onChange,o=n.name;if(i){var a,l;if(t.target&&(l=t.target),r.props.multiple){a=Array.isArray(r.props.value)?(0,u.default)(r.props.value):[];var c=a.indexOf(e.props.value);-1===c?a.push(e.props.value):a.splice(c,1)}else a=e.props.value;t.persist(),t.target=(0,s.default)({},l,{value:a,name:o}),i(t,e)}}},r.handleBlur=function(e){if(!0===r.ignoreNextBlur)return e.stopPropagation(),void(r.ignoreNextBlur=!1);r.props.onBlur&&r.props.onBlur(e)},r.handleKeyDown=function(e){r.props.readOnly||-1!==["space","up","down"].indexOf((0,m.default)(e))&&(e.preventDefault(),r.ignoreNextBlur=!0,r.update({open:!0,event:e}))},r.handleDisplayRef=function(e){r.displayNode=e,r.updateDisplayWidth()},r.handleInputRef=function(e){var t=r.props.inputRef;if(t){var n={node:e,value:r.props.value};"function"===typeof t?t(n):t.current=n}},n))}return(0,d.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){this.isOpenControlled&&this.props.open&&(this.displayNode.focus(),this.forceUpdate()),this.props.autoFocus&&this.displayNode.focus()}},{key:"shouldComponentUpdate",value:function(){return this.updateDisplayWidth(),!0}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.autoWidth,u=n.children,l=n.classes,c=n.className,f=n.disabled,d=n.displayEmpty,m=n.IconComponent,g=(n.inputRef,n.MenuProps),b=void 0===g?{}:g,w=n.multiple,_=n.name,E=(n.onBlur,n.onChange,n.onClose,n.onFocus),T=(n.onOpen,n.open),x=n.readOnly,S=n.renderValue,k=n.SelectDisplayProps,C=n.tabIndex,O=n.type,N=void 0===O?"hidden":O,P=n.value,I=(0,a.default)(n,["autoWidth","children","classes","className","disabled","displayEmpty","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value"]),A=this.isOpenControlled&&this.displayNode?T:this.state.open,D="",R=[],M=!1;((0,y.isFilled)(this.props)||d)&&(S?e=S(P):M=!0);var L=h.default.Children.map(u,function(e){if(!h.default.isValidElement(e))return null;var n;if(w){if(!Array.isArray(P))throw new Error("Material-UI: the `value` property must be an array when using the `Select` component with `multiple`.");n=-1!==P.indexOf(e.props.value),n&&M&&R.push(e.props.children)}else(n=P===e.props.value)&&M&&(D=e.props.children);return h.default.cloneElement(e,{onClick:t.handleItemClick(e),role:"option",selected:n,value:void 0,"data-value":e.props.value})});M&&(e=w?R.join(", "):D);var j,F=this.displayNode&&!r?this.displayWidth:void 0;return j="undefined"!==typeof C?C:f?null:0,h.default.createElement("div",{className:l.root},h.default.createElement("div",(0,i.default)({className:(0,p.default)(l.select,l.selectMenu,(0,o.default)({},l.disabled,f),c),ref:this.handleDisplayRef,"aria-pressed":A?"true":"false",tabIndex:j,role:"button","aria-owns":A?"menu-".concat(_||""):null,"aria-haspopup":"true",onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,onClick:f||x?null:this.handleClick,onFocus:E},k),e||h.default.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})),h.default.createElement("input",(0,i.default)({value:Array.isArray(P)?P.join(","):P,name:_,readOnly:x,ref:this.handleInputRef,type:N},I)),h.default.createElement(m,{className:l.icon}),h.default.createElement(v.default,(0,i.default)({id:"menu-".concat(_||""),anchorEl:this.displayNode,open:A,onClose:this.handleClose},b,{MenuListProps:(0,s.default)({role:"listbox"},b.MenuListProps),PaperProps:(0,s.default)({},b.PaperProps,{style:(0,s.default)({minWidth:F},null!=b.PaperProps?b.PaperProps.style:null)})}),L))}}]),t}(h.default.Component);g.propTypes={};var b=g;t.default=b},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(500))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(7)),f=r(n(12)),d=r(n(1)),h=(r(n(2)),r(n(6))),p=r(n(28)),m=r(n(5)),v=n(30),y=r(n(171)),g=n(13),b=r(n(116)),w=r(n(182)),_=function(e){var t=3*e.spacing.unit,n={top:0},r={bottom:0},i={justifyContent:"flex-end"},o={justifyContent:"flex-start"},a={top:t},s={bottom:t},u={right:t},l={left:t},d={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:0,right:0,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,f.default)({},n,(0,c.default)({},e.breakpoints.up("md"),(0,f.default)({},d))),anchorOriginBottomCenter:(0,f.default)({},r,(0,c.default)({},e.breakpoints.up("md"),(0,f.default)({},d))),anchorOriginTopRight:(0,f.default)({},n,i,(0,c.default)({},e.breakpoints.up("md"),(0,f.default)({left:"auto"},a,u))),anchorOriginBottomRight:(0,f.default)({},r,i,(0,c.default)({},e.breakpoints.up("md"),(0,f.default)({left:"auto"},s,u))),anchorOriginTopLeft:(0,f.default)({},n,o,(0,c.default)({},e.breakpoints.up("md"),(0,f.default)({right:"auto"},a,l))),anchorOriginBottomLeft:(0,f.default)({},r,o,(0,c.default)({},e.breakpoints.up("md"),(0,f.default)({right:"auto"},s,l)))}};t.styles=_;var E=function(e){function t(){var e,n,r;(0,a.default)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(0,u.default)(r,(n=r=(0,u.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={},r.timerAutoHide=null,r.handleMouseEnter=function(e){r.props.onMouseEnter&&r.props.onMouseEnter(e),r.handlePause()},r.handleMouseLeave=function(e){r.props.onMouseLeave&&r.props.onMouseLeave(e),r.handleResume()},r.handleClickAway=function(e){r.props.onClose&&r.props.onClose(e,"clickaway")},r.handlePause=function(){clearTimeout(r.timerAutoHide)},r.handleResume=function(){if(null!=r.props.autoHideDuration){if(void 0!==r.props.resumeHideDuration)return void r.setAutoHideTimer(r.props.resumeHideDuration);r.setAutoHideTimer(.5*(r.props.autoHideDuration||0))}},r.handleExited=function(){r.setState({exited:!0})},n))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.props.open&&this.setAutoHideTimer()}},{key:"componentDidUpdate",value:function(e){e.open!==this.props.open&&(this.props.open?this.setAutoHideTimer():clearTimeout(this.timerAutoHide))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timerAutoHide)}},{key:"setAutoHideTimer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.props.onClose&&null!=this.props.autoHideDuration&&(clearTimeout(this.timerAutoHide),this.timerAutoHide=setTimeout(function(){e.props.onClose&&null!=e.props.autoHideDuration&&e.props.onClose(null,"timeout")},t||this.props.autoHideDuration||0))}},{key:"render",value:function(){var e=this.props,t=e.action,n=e.anchorOrigin,r=n.vertical,a=n.horizontal,s=(e.autoHideDuration,e.children),u=e.classes,l=e.className,c=e.ContentProps,f=e.disableWindowBlurListener,m=e.message,v=(e.onClose,e.onEnter),b=e.onEntered,_=e.onEntering,E=e.onExit,T=e.onExited,x=e.onExiting,S=(e.onMouseEnter,e.onMouseLeave,e.open),k=(e.resumeHideDuration,e.TransitionComponent),C=e.transitionDuration,O=e.TransitionProps,N=(0,o.default)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]);return!S&&this.state.exited?null:d.default.createElement(y.default,{onClickAway:this.handleClickAway},d.default.createElement("div",(0,i.default)({className:(0,h.default)(u.root,u["anchorOrigin".concat((0,g.capitalize)(r)).concat((0,g.capitalize)(a))],l),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},N),d.default.createElement(p.default,{target:"window",onFocus:f?void 0:this.handleResume,onBlur:f?void 0:this.handlePause}),d.default.createElement(k,(0,i.default)({appear:!0,in:S,onEnter:v,onEntered:b,onEntering:_,onExit:E,onExited:(0,g.createChainedFunction)(this.handleExited,T),onExiting:x,timeout:C,direction:"top"===r?"down":"up"},O),s||d.default.createElement(w.default,(0,i.default)({message:m,action:t},c)))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"undefined"===typeof t.exited?{exited:!e.open}:e.open?{exited:!1}:null}}]),t}(d.default.Component);E.propTypes={},E.defaultProps={anchorOrigin:{vertical:"bottom",horizontal:"center"},disableWindowBlurListener:!1,TransitionComponent:b.default,transitionDuration:{enter:v.duration.enteringScreen,exit:v.duration.leavingScreen}};var T=(0,m.default)(_,{flip:!1,name:"MuiSnackbar"})(E);t.default=T},function(e,t,n){"use strict";function r(e){var t=e.action,n=e.classes,r=e.className,i=e.message,s=(0,a.default)(e,["action","classes","className","message"]);return u.default.createElement(f.default,(0,o.default)({component:d.default,headlineMapping:{body1:"div"},role:"alertdialog",square:!0,elevation:6,className:(0,l.default)(n.root,r)},s),u.default.createElement("div",{className:n.message},i),t?u.default.createElement("div",{className:n.action},t):null)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(7)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=i(n(25)),d=i(n(23)),h=n(31),p=function(e){var t,n="light"===e.palette.type?.8:.98,r=(0,h.emphasize)(e.palette.background.default,n);return{root:(t={pointerEvents:"initial",color:e.palette.getContrastText(r),backgroundColor:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px ".concat(3*e.spacing.unit,"px")},(0,s.default)(t,e.breakpoints.up("md"),{minWidth:288,maxWidth:568,borderRadius:2}),(0,s.default)(t,e.breakpoints.down("sm"),{flexGrow:1}),t),message:{padding:"".concat(e.spacing.unit,"px 0")},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:3*e.spacing.unit,marginRight:-e.spacing.unit}}};t.styles=p,r.propTypes={};var m=(0,c.default)(p,{name:"MuiSnackbarContent"})(r);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(503))},function(e,t,n){"use strict";function r(e){var t=e.active,n=e.alternativeLabel,r=e.children,i=e.classes,f=e.className,d=e.completed,h=e.connector,p=e.disabled,m=e.index,v=e.last,y=e.orientation,g=(0,u.default)(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]),b=(0,c.default)(i.root,i[y],(0,s.default)({},i.alternativeLabel,n),f);return l.default.createElement("div",(0,o.default)({className:b},g),l.default.Children.map(r,function(e){return l.default.cloneElement(e,(0,a.default)({active:t,alternativeLabel:n,completed:d,disabled:p,icon:m+1,last:v,orientation:y},e.props))}),h&&n&&!v&&l.default.cloneElement(h,{orientation:y,alternativeLabel:n}))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(12)),s=i(n(7)),u=i(n(3)),l=i(n(1)),c=(i(n(2)),i(n(6))),f=i(n(5)),d=function(e){return{root:{},horizontal:{paddingLeft:e.spacing.unit,paddingRight:e.spacing.unit,"&:first-child":{paddingLeft:0},"&:last-child":{paddingRight:0}},vertical:{},alternativeLabel:{flex:1,position:"relative"}}};t.styles=d,r.propTypes={},r.defaultProps={active:!1,completed:!1,disabled:!1};var h=(0,f.default)(d,{name:"MuiStep"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(505))},function(e,t,n){"use strict";function r(e){var t=e.active,n=e.alternativeLabel,r=e.children,i=e.classes,c=e.className,p=e.completed,m=e.disabled,v=e.icon,y=(e.last,e.optional),g=e.orientation,b=(0,s.default)(e,["active","alternativeLabel","children","classes","className","completed","disabled","icon","last","optional","orientation"]),w={active:t,alternativeLabel:n,completed:p,disabled:m,icon:v,optional:y,orientation:g},_=(0,h.isMuiElement)(r,["StepLabel"])?u.default.cloneElement(r,w):u.default.createElement(d.default,w,r);return u.default.createElement(f.default,(0,o.default)({disabled:m,TouchRippleProps:{className:i.touchRipple},className:(0,l.default)(i.root,(0,a.default)({},i.vertical,"vertical"===g),c)},b),_)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=i(n(26)),d=i(n(183)),h=n(37),p=function(e){return{root:{width:"100%",padding:"".concat(3*e.spacing.unit,"px ").concat(2*e.spacing.unit,"px"),margin:"".concat(3*-e.spacing.unit,"px ").concat(2*-e.spacing.unit,"px"),boxSizing:"content-box"},vertical:{justifyContent:"left"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}}};t.styles=p,r.propTypes={};var m=(0,c.default)(p,{name:"MuiStepButton"})(r);t.default=m},function(e,t,n){"use strict";function r(e){var t,n,r=e.active,i=e.alternativeLabel,c=e.children,h=e.classes,p=e.className,m=e.completed,v=e.disabled,y=e.error,g=e.icon,b=(e.last,e.optional),w=e.orientation,_=e.StepIconProps,E=(0,s.default)(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","optional","orientation","StepIconProps"]);return u.default.createElement("span",(0,o.default)({className:(0,l.default)(h.root,h[w],(t={},(0,a.default)(t,h.disabled,v),(0,a.default)(t,h.alternativeLabel,i),(0,a.default)(t,h.error,y),t),p)},E),g&&u.default.createElement("span",{className:(0,l.default)(h.iconContainer,(0,a.default)({},h.alternativeLabel,i))},u.default.createElement(d.default,(0,o.default)({completed:m,active:r,error:y,icon:g},_))),u.default.createElement("span",{className:h.labelContainer},u.default.createElement(f.default,{variant:"body1",component:"span",className:(0,l.default)(h.label,(n={},(0,a.default)(n,h.alternativeLabel,i),(0,a.default)(n,h.completed,m),(0,a.default)(n,h.active,r),(0,a.default)(n,h.error,y),n))},c),b))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=i(n(23)),d=i(n(184)),h=function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},active:{},completed:{},alternativeLabel:{},error:{},disabled:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:2*e.spacing.unit},"&$error":{color:e.palette.error.main}},iconContainer:{paddingRight:e.spacing.unit,"&$alternativeLabel":{paddingRight:0}},labelContainer:{width:"100%"}}};t.styles=h,r.propTypes={},r.defaultProps={active:!1,alternativeLabel:!1,completed:!1,disabled:!1,error:!1,last:!1,orientation:"horizontal"},r.muiName="StepLabel";var p=(0,c.default)(h,{name:"MuiStepLabel"})(r);t.default=p},function(e,t,n){"use strict";function r(e){var t=e.completed,n=e.icon,r=e.active,i=e.error,c=e.classes;return"number"===typeof n||"string"===typeof n?i?a.default.createElement(l.default,{className:(0,s.default)(c.root,c.error)}):t?a.default.createElement(u.default,{className:(0,s.default)(c.root,c.completed)}):a.default.createElement(f.default,{className:(0,s.default)(c.root,(0,o.default)({},c.active,r)),position:n}):n}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(7)),a=i(n(1)),s=(i(n(2)),i(n(6))),u=i(n(508)),l=i(n(509)),c=i(n(5)),f=i(n(510)),d=function(e){return{root:{display:"block","&$active":{color:e.palette.primary.main},"&$completed":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{}}};t.styles=d,r.propTypes={},r.defaultProps={active:!1,completed:!1,error:!1};var h=(0,c.default)(d,{name:"MuiStepIcon"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";function r(e){var t=e.position,n=e.classes,r=e.className;return o.default.createElement(u.default,{className:(0,a.default)(n.root,r)},c,o.default.createElement("text",{className:n.text,x:"12",y:"16",textAnchor:"middle"},t))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(1)),a=(i(n(2)),i(n(6))),s=i(n(5)),u=i(n(15)),l=function(e){return{root:{color:e.palette.text.disabled},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}}};t.styles=l;var c=o.default.createElement("circle",{cx:"12",cy:"12",r:"12"});r.propTypes={};var f=(0,s.default)(l)(r);t.default=f},function(e,t,n){"use strict";function r(e){var t,n=e.alternativeLabel,r=e.className,i=e.classes,c=e.orientation,f=(0,s.default)(e,["alternativeLabel","className","classes","orientation"]),d=(0,l.default)(i.root,i[c],(0,a.default)({},i.alternativeLabel,n),r),h=(0,l.default)(i.line,(t={},(0,a.default)(t,i.lineHorizontal,"horizontal"===c),(0,a.default)(t,i.lineVertical,"vertical"===c),t));return u.default.createElement("div",(0,o.default)({className:d},f),u.default.createElement("span",{className:h}))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 ".concat(e.spacing.unit,"px")},alternativeLabel:{position:"absolute",top:e.spacing.unit+4,left:"calc(50% + 20px)",right:"calc(-50% + 20px)"},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:3*e.spacing.unit}}};t.styles=f,r.propTypes={},r.defaultProps={alternativeLabel:!1,orientation:"horizontal"};var d=(0,c.default)(f,{name:"MuiStepConnector"})(r);t.default=d},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(513))},function(e,t,n){"use strict";function r(e){var t=e.active,n=(e.alternativeLabel,e.children),r=e.classes,i=e.className,c=(e.completed,e.last),f=(e.optional,e.orientation,e.TransitionComponent),d=e.transitionDuration,h=e.TransitionProps,p=(0,s.default)(e,["active","alternativeLabel","children","classes","className","completed","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),m=d;return"auto"!==d||f.muiSupportAuto||(m=void 0),u.default.createElement("div",(0,o.default)({className:(0,l.default)(r.root,(0,a.default)({},r.last,c),i)},p),u.default.createElement(f,(0,o.default)({in:t,className:r.transition,timeout:m,unmountOnExit:!0},h),n))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(14)),i(n(6))),c=i(n(80)),f=i(n(5)),d=function(e){return{root:{marginTop:e.spacing.unit,marginLeft:12,paddingLeft:e.spacing.unit+12,paddingRight:e.spacing.unit,borderLeft:"1px solid ".concat("light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600])},last:{borderLeft:"none"},transition:{}}};t.styles=d,r.propTypes={},r.defaultProps={TransitionComponent:c.default,transitionDuration:"auto"};var h=(0,f.default)(d,{name:"MuiStepContent"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(515))},function(e,t,n){"use strict";function r(e){var t=e.activeStep,n=e.alternativeLabel,r=e.children,i=e.classes,f=e.className,h=e.connector,p=e.nonLinear,m=e.orientation,v=(0,u.default)(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),y=(0,c.default)(i.root,i[m],(0,s.default)({},i.alternativeLabel,n),f),g=l.default.isValidElement(h)?l.default.cloneElement(h,{orientation:m}):null,b=l.default.Children.toArray(r),w=b.map(function(e,r){var i={index:r,orientation:m,active:!1,completed:!1,disabled:!1,last:r+1===b.length,alternativeLabel:n,connector:h};return t===r?i.active=!0:!p&&t>r?i.completed=!0:!p&&t<r&&(i.disabled=!0),[!n&&g&&r>0&&l.default.cloneElement(g,{key:r}),l.default.cloneElement(e,(0,a.default)({},i,e.props))]});return l.default.createElement(d.default,(0,o.default)({square:!0,elevation:0,className:y},v),w)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(12)),s=i(n(7)),u=i(n(3)),l=i(n(1)),c=(i(n(2)),i(n(6))),f=i(n(5)),d=i(n(25)),h=i(n(185)),p=function(e){return{root:{display:"flex",padding:3*e.spacing.unit},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}}};t.styles=p,r.propTypes={},r.defaultProps={activeStep:0,alternativeLabel:!1,connector:l.default.createElement(h.default,null),nonLinear:!1,orientation:"horizontal"},r.muiName="Stepper";var m=(0,f.default)(p,{name:"MuiStepper"})(r);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(517))},function(e,t,n){"use strict";function r(){E=null}var i=n(54),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.reset=r,t.default=void 0;var a=o(n(4)),s=o(n(12)),u=o(n(3)),l=o(n(8)),c=o(n(9)),f=o(n(10)),d=o(n(11)),h=o(n(40)),p=o(n(1)),m=(o(n(2)),o(n(17))),v=i(n(115)),y=n(30),g=o(n(32)),b=n(49),w=o(n(518)),_=3,E=null,T=function(e){function t(){var e,n,r;(0,l.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,f.default)(r,(n=r=(0,f.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={},r.handleBodyTouchStart=function(e){if(null===E||E===(0,h.default)(r)){var t=r.props,n=t.disableDiscovery,i=t.disableSwipeToOpen,o=t.open,a=t.swipeAreaWidth,s=(0,v.getAnchor)(r.props),u="right"===s?document.body.offsetWidth-e.touches[0].pageX:e.touches[0].pageX,l="bottom"===s?window.innerHeight-e.touches[0].clientY:e.touches[0].clientY;if(!o){if(i)return;if((0,v.isHorizontal)(r.props)){if(u>a)return}else if(l>a)return}E=(0,h.default)(r),r.startX=u,r.startY=l,r.setState({maybeSwiping:!0}),!o&&r.paper&&r.setPosition(r.getMaxTranslate()+(n?20:-a),{changeTransition:!1}),document.body.addEventListener("touchmove",r.handleBodyTouchMove,{passive:!1}),document.body.addEventListener("touchend",r.handleBodyTouchEnd),document.body.addEventListener("touchcancel",r.handleBodyTouchEnd)}},r.handleBodyTouchMove=function(e){if(r.paper){var t=(0,v.getAnchor)(r.props),n=(0,v.isHorizontal)(r.props),i="right"===t?document.body.offsetWidth-e.touches[0].pageX:e.touches[0].pageX,o="bottom"===t?window.innerHeight-e.touches[0].clientY:e.touches[0].clientY;if(null==r.isSwiping){var a=Math.abs(i-r.startX),s=Math.abs(o-r.startY);a>s&&e.preventDefault();var u=n?a>s&&a>_:s>a&&s>_;if(!0===u||(n?s>_:a>_)){if(r.isSwiping=u,!u)return void r.handleBodyTouchEnd(e);r.startX=i,r.startY=o,r.props.disableDiscovery||r.props.open||(n?r.startX-=r.props.swipeAreaWidth:r.startY-=r.props.swipeAreaWidth)}}r.isSwiping&&(e.preventDefault(),r.setPosition(r.getTranslate(n?i:o)))}},r.handleBodyTouchEnd=function(e){if(E=null,r.removeBodyTouchListeners(),r.setState({maybeSwiping:!1}),!r.isSwiping)return void(r.isSwiping=null);var t,n=(0,v.getAnchor)(r.props);t=(0,v.isHorizontal)(r.props)?"right"===n?document.body.offsetWidth-e.changedTouches[0].pageX:e.changedTouches[0].pageX:"bottom"===n?window.innerHeight-e.changedTouches[0].clientY:e.changedTouches[0].clientY,r.getTranslate(t)/r.getMaxTranslate()>.5?r.isSwiping&&!r.props.open?r.setPosition(r.getMaxTranslate(),{mode:"enter"}):r.props.onClose():r.isSwiping&&!r.props.open?r.props.onOpen():r.setPosition(0,{mode:"exit"}),r.isSwiping=null},r.backdrop=null,r.paper=null,r.isSwiping=null,r.startX=null,r.startY=null,r.handleBackdropRef=function(e){r.backdrop=e?m.default.findDOMNode(e):null},r.handlePaperRef=function(e){r.paper=e?m.default.findDOMNode(e):null},n))}return(0,d.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){"temporary"===this.props.variant&&this.listenTouchStart()}},{key:"componentDidUpdate",value:function(e){var t=this.props.variant,n=e.variant;t!==n&&("temporary"===t?this.listenTouchStart():"temporary"===n&&this.removeTouchStart())}},{key:"componentWillUnmount",value:function(){this.removeTouchStart(),this.removeBodyTouchListeners(),E===this&&(E=null)}},{key:"getMaxTranslate",value:function(){return(0,v.isHorizontal)(this.props)?this.paper.clientWidth:this.paper.clientHeight}},{key:"getTranslate",value:function(e){var t=(0,v.isHorizontal)(this.props)?this.startX:this.startY;return Math.min(Math.max(this.props.open?t-e:this.getMaxTranslate()+t-e,0),this.getMaxTranslate())}},{key:"setPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,r=void 0===n?null:n,i=t.changeTransition,o=void 0===i||i,a=(0,v.getAnchor)(this.props),s=-1!==["right","bottom"].indexOf(a)?1:-1,u=(0,v.isHorizontal)(this.props)?"translate(".concat(s*e,"px, 0)"):"translate(0, ".concat(s*e,"px)"),l=this.paper.style;l.webkitTransform=u,l.transform=u;var c="";if(r&&(c=this.props.theme.transitions.create("all",(0,b.getTransitionProps)({timeout:this.props.transitionDuration},{mode:r}))),o&&(l.webkitTransition=c,l.transition=c),!this.props.disableBackdropTransition){var f=this.backdrop.style;f.opacity=1-e/this.getMaxTranslate(),o&&(f.webkitTransition=c,f.transition=c)}}},{key:"listenTouchStart",value:function(){document.body.addEventListener("touchstart",this.handleBodyTouchStart)}},{key:"removeTouchStart",value:function(){document.body.removeEventListener("touchstart",this.handleBodyTouchStart)}},{key:"removeBodyTouchListeners",value:function(){document.body.removeEventListener("touchmove",this.handleBodyTouchMove,{passive:!1}),document.body.removeEventListener("touchend",this.handleBodyTouchEnd),document.body.removeEventListener("touchcancel",this.handleBodyTouchEnd)}},{key:"render",value:function(){var e=this.props,t=(e.disableBackdropTransition,e.disableDiscovery),n=e.disableSwipeToOpen,r=e.ModalProps;r=void 0===r?{}:r;var i=r.BackdropProps,o=(0,u.default)(r,["BackdropProps"]),l=(e.onOpen,e.open),c=e.PaperProps,f=e.swipeAreaWidth,d=e.variant,h=(0,u.default)(e,["disableBackdropTransition","disableDiscovery","disableSwipeToOpen","ModalProps","onOpen","open","PaperProps","swipeAreaWidth","variant"]),m=this.state.maybeSwiping;return p.default.createElement(p.default.Fragment,null,p.default.createElement(v.default,(0,a.default)({open:!("temporary"!==d||!m)||l,variant:d,ModalProps:(0,s.default)({BackdropProps:(0,s.default)({},i,{ref:this.handleBackdropRef})},o),PaperProps:(0,s.default)({},c,{style:{pointerEvents:"temporary"!==d||l?"":"none"},ref:this.handlePaperRef})},h)),!t&&!n&&"temporary"===d&&p.default.createElement(w.default,{anchor:h.anchor,swipeAreaWidth:f}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"undefined"===typeof t.maybeSwiping?{maybeSwiping:!1,open:e.open}:!e.open&&t.open?{maybeSwiping:!1,open:e.open}:{open:e.open}}}]),t}(p.default.Component);T.propTypes={},T.defaultProps={anchor:"left",disableBackdropTransition:!1,disableDiscovery:!1,disableSwipeToOpen:"undefined"!==typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),swipeAreaWidth:20,transitionDuration:{enter:y.duration.enteringScreen,exit:y.duration.leavingScreen},variant:"temporary"};var x=(0,g.default)()(T);t.default=x},function(e,t,n){"use strict";function r(e){var t=e.anchor,n=e.classes,r=e.swipeAreaWidth,i=(0,s.default)(e,["anchor","classes","swipeAreaWidth"]);return u.default.createElement("div",(0,o.default)({className:(0,l.default)(n.root,n["discoveryAnchor".concat((0,f.capitalize)(t))]),style:(0,a.default)({},(0,d.isHorizontal)(e)?"width":"height",r)},i))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(5)),f=n(13),d=n(115),h=function(e){return{root:{position:"fixed",top:0,left:0,height:"100vh",zIndex:e.zIndex.drawer-1},discoveryAnchorLeft:{right:"auto"},discoveryAnchorRight:{left:"auto",right:0},discoveryAnchorTop:{bottom:"auto",right:0},discoveryAnchorBottom:{top:"auto",bottom:0,right:0}}};t.styles=h,r.propTypes={};var p=(0,c.default)(h)(r);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(520))},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.color,i=(0,a.default)(e,["classes","className","color"]);return s.default.createElement("span",{className:(0,u.default)(t.root,n)},s.default.createElement(f.default,(0,o.default)({icon:s.default.createElement("span",{className:t.icon}),classes:{root:(0,u.default)(t.switchBase,t["color".concat((0,c.capitalize)(r))]),checked:t.checked,disabled:t.disabled},checkedIcon:s.default.createElement("span",{className:(0,u.default)(t.icon,t.iconChecked)})},i)),s.default.createElement("span",{className:t.bar}))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=n(13),f=i(n(114)),d=function(e){return{root:{display:"inline-flex",width:62,position:"relative",flexShrink:0,verticalAlign:"middle"},icon:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},iconChecked:{boxShadow:e.shadows[2]},switchBase:{zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},checked:{transform:"translateX(14px)","& + $bar":{opacity:.5}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"& + $bar":{backgroundColor:e.palette.primary.main}}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"& + $bar":{backgroundColor:e.palette.secondary.main}}},disabled:{"& + $bar":{opacity:"light"===e.palette.type?.12:.1},"& $icon":{boxShadow:e.shadows[1]},"&$switchBase":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800],"& + $bar":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}}},bar:{borderRadius:7,display:"block",position:"absolute",width:34,height:14,top:"50%",left:"50%",marginTop:-7,marginLeft:-17,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}};t.styles=d,r.propTypes={},r.defaultProps={color:"secondary"};var h=(0,l.default)(d,{name:"MuiSwitch"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(522))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(1)),f=r(n(2)),d=r(n(6)),h=r(n(5)),p=function(e){return{root:{display:"table",fontFamily:e.typography.fontFamily,width:"100%",borderCollapse:"collapse",borderSpacing:0}}};t.styles=p;var m=function(e){function t(){return(0,a.default)(this,t),(0,u.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"getChildContext",value:function(){return{table:{}}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.className,r=e.component,a=(0,o.default)(e,["classes","className","component"]);return c.default.createElement(r,(0,i.default)({className:(0,d.default)(t.root,n)},a))}}]),t}(c.default.Component);m.propTypes={},m.defaultProps={component:"table"},m.childContextTypes={table:f.default.object};var v=(0,h.default)(p,{name:"MuiTable"})(m);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(524))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(1)),f=r(n(2)),d=r(n(6)),h=r(n(5)),p={root:{display:"table-row-group"}},m=function(e){function t(){return(0,a.default)(this,t),(0,u.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"getChildContext",value:function(){return{table:{body:!0}}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.className,r=e.component,a=(0,o.default)(e,["classes","className","component"]);return c.default.createElement(r,(0,i.default)({className:(0,d.default)(t.root,n)},a))}}]),t}(c.default.Component);m.propTypes={},m.defaultProps={component:"tbody"},m.childContextTypes={table:f.default.object};var v=(0,h.default)(p,{name:"MuiTableBody"})(m);t.default=v},function(e,t,n){"use strict";function r(e,t){var n,r,i=e.children,l=e.classes,f=e.className,h=e.component,p=e.sortDirection,m=e.numeric,v=e.padding,y=e.scope,g=e.variant,b=(0,s.default)(e,["children","classes","className","component","sortDirection","numeric","padding","scope","variant"]),w=t.table;r=h||(w&&w.head?"th":"td");var _=y;!_&&w&&w.head&&(_="col");var E=(0,c.default)(l.root,(n={},(0,a.default)(n,l.head,g?"head"===g:w&&w.head),(0,a.default)(n,l.body,g?"body"===g:w&&w.body),(0,a.default)(n,l.footer,g?"footer"===g:w&&w.footer),(0,a.default)(n,l.numeric,m),(0,a.default)(n,l["padding".concat((0,d.capitalize)(v))],"default"!==v),n),f),T=null;return p&&(T="asc"===p?"ascending":"descending"),u.default.createElement(r,(0,o.default)({className:E,"aria-sort":T,scope:_},b),i)}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=i(n(2)),c=i(n(6)),f=i(n(5)),d=n(13),h=n(31),p=function(e){return{root:{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,h.lighten)((0,h.fade)(e.palette.divider,1),.88):(0,h.darken)((0,h.fade)(e.palette.divider,1),.8)),textAlign:"left",padding:"".concat(e.spacing.unit/2,"px ").concat(7*e.spacing.unit,"px ").concat(e.spacing.unit/2,"px ").concat(3*e.spacing.unit,"px"),"&:last-child":{paddingRight:3*e.spacing.unit}},head:{color:e.palette.text.secondary,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(13),fontWeight:e.typography.fontWeightRegular},footer:{borderBottom:0,color:e.palette.text.secondary,fontSize:e.typography.pxToRem(12)},numeric:{textAlign:"right",flexDirection:"row-reverse"},paddingDense:{paddingRight:3*e.spacing.unit},paddingCheckbox:{padding:"0 12px","&:last-child":{paddingRight:12}},paddingNone:{padding:0,"&:last-child":{padding:0}}}};t.styles=p,r.propTypes={},r.defaultProps={numeric:!1,padding:"default"},r.contextTypes={table:l.default.object.isRequired};var m=(0,f.default)(p,{name:"MuiTableCell"})(r);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(527))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(1)),f=r(n(2)),d=r(n(6)),h=r(n(5)),p={root:{display:"table-footer-group"}},m=function(e){function t(){return(0,a.default)(this,t),(0,u.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"getChildContext",value:function(){return{table:{footer:!0}}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.className,r=e.component,a=(0,o.default)(e,["classes","className","component"]);return c.default.createElement(r,(0,i.default)({className:(0,d.default)(t.root,n)},a))}}]),t}(c.default.Component);m.propTypes={},m.defaultProps={component:"tfoot"},m.childContextTypes={table:f.default.object};var v=(0,h.default)(p,{name:"MuiTableFooter"})(m);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(529))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(1)),f=r(n(2)),d=r(n(6)),h=r(n(5)),p={root:{display:"table-header-group"}},m=function(e){function t(){return(0,a.default)(this,t),(0,u.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"getChildContext",value:function(){return{table:{head:!0}}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.className,r=e.component,a=(0,o.default)(e,["classes","className","component"]);return c.default.createElement(r,(0,i.default)({className:(0,d.default)(t.root,n)},a))}}]),t}(c.default.Component);m.propTypes={},m.defaultProps={component:"thead"},m.childContextTypes={table:f.default.object};var v=(0,h.default)(p,{name:"MuiTableHead"})(m);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(531))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(1)),f=(r(n(2)),r(n(5))),d=r(n(60)),h=r(n(113)),p=r(n(119)),m=r(n(186)),v=r(n(95)),y=r(n(23)),g=r(n(532)),b=function(e){return{root:{fontSize:e.typography.pxToRem(12),"&:last-child":{padding:0}},toolbar:{height:56,minHeight:56,paddingRight:2},spacer:{flex:"1 1 100%"},menuItem:{},caption:{flexShrink:0},input:{fontSize:"inherit",flexShrink:0},selectRoot:{marginRight:4*e.spacing.unit,marginLeft:e.spacing.unit,color:e.palette.text.secondary},select:{paddingLeft:e.spacing.unit,paddingRight:2*e.spacing.unit},selectIcon:{top:1},actions:{flexShrink:0,color:e.palette.text.secondary,marginLeft:2.5*e.spacing.unit}}};t.styles=b;var w=function(e){function t(){return(0,a.default)(this,t),(0,u.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.count,n=e.onChangePage,r=e.page,i=e.rowsPerPage,o=Math.max(0,Math.ceil(t/i)-1);r>o&&n(null,o)}},{key:"render",value:function(){var e,t=this.props,n=t.ActionsComponent,r=t.backIconButtonProps,a=t.classes,s=t.colSpan,u=t.component,l=t.count,f=t.labelDisplayedRows,g=t.labelRowsPerPage,b=t.nextIconButtonProps,w=t.onChangePage,_=t.onChangeRowsPerPage,E=t.page,T=t.rowsPerPage,x=t.rowsPerPageOptions,S=t.SelectProps,k=(0,o.default)(t,["ActionsComponent","backIconButtonProps","classes","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);return u!==m.default&&"td"!==u||(e=s||1e3),c.default.createElement(u,(0,i.default)({className:a.root,colSpan:e},k),c.default.createElement(v.default,{className:a.toolbar},c.default.createElement("div",{className:a.spacer}),x.length>1&&c.default.createElement(y.default,{variant:"caption",className:a.caption},g),x.length>1&&c.default.createElement(p.default,(0,i.default)({classes:{root:a.selectRoot,select:a.select,icon:a.selectIcon},input:c.default.createElement(d.default,{className:a.input,disableUnderline:!0}),value:T,onChange:_},S),x.map(function(e){return c.default.createElement(h.default,{className:a.menuItem,key:e,value:e},e)})),c.default.createElement(y.default,{variant:"caption",className:a.caption},f({from:0===l?0:E*T+1,to:Math.min(l,(E+1)*T),count:l,page:E})),c.default.createElement(n,{className:a.actions,backIconButtonProps:r,count:l,nextIconButtonProps:b,onChangePage:w,page:E,rowsPerPage:T})))}}]),t}(c.default.Component);w.propTypes={},w.defaultProps={ActionsComponent:g.default,component:m.default,labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," of ").concat(r)},labelRowsPerPage:"Rows per page:",rowsPerPageOptions:[5,10,25]};var _=(0,f.default)(b,{name:"MuiTablePagination"})(w);t.default=_},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(533))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(1)),f=(r(n(2)),r(n(187))),d=r(n(188)),h=r(n(32)),p=r(n(79)),m=c.default.createElement(d.default,null),v=c.default.createElement(f.default,null),y=c.default.createElement(f.default,null),g=c.default.createElement(d.default,null),b=function(e){function t(){var e,n,r;(0,a.default)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(0,u.default)(r,(n=r=(0,u.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleBackButtonClick=function(e){r.props.onChangePage(e,r.props.page-1)},r.handleNextButtonClick=function(e){r.props.onChangePage(e,r.props.page+1)},n))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.backIconButtonProps,n=e.count,r=e.nextIconButtonProps,a=(e.onChangePage,e.page),s=e.rowsPerPage,u=e.theme,l=(0,o.default)(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage","theme"]);return c.default.createElement("div",l,c.default.createElement(p.default,(0,i.default)({onClick:this.handleBackButtonClick,disabled:0===a},t),"rtl"===u.direction?m:v),c.default.createElement(p.default,(0,i.default)({onClick:this.handleNextButtonClick,disabled:a>=Math.ceil(n/s)-1},r),"rtl"===u.direction?y:g))}}]),t}(c.default.Component);b.propTypes={};var w=(0,h.default)()(b);t.default=w},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(535))},function(e,t,n){"use strict";function r(e,t){var n,r=e.classes,i=e.className,l=e.component,f=e.hover,d=e.selected,h=(0,s.default)(e,["classes","className","component","hover","selected"]),p=t.table,m=(0,c.default)(r.root,(n={},(0,a.default)(n,r.head,p&&p.head),(0,a.default)(n,r.footer,p&&p.footer),(0,a.default)(n,r.hover,p&&f),(0,a.default)(n,r.selected,p&&d),n),i);return u.default.createElement(l,(0,o.default)({className:m},h))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=i(n(2)),c=i(n(6)),f=i(n(5)),d=function(e){return{root:{color:"inherit",display:"table-row",height:48,verticalAlign:"middle",outline:"none","&$selected":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)"},"&$hover:hover":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.07)":"rgba(255, 255, 255, 0.14)"}},selected:{},hover:{},head:{height:56},footer:{height:56}}};t.styles=d,r.propTypes={},r.defaultProps={component:"tr",hover:!1,selected:!1},r.contextTypes={table:l.default.object};var h=(0,f.default)(d,{name:"MuiTableRow"})(r);t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(537))},function(e,t,n){"use strict";function r(e){var t=e.active,n=e.classes,r=e.className,i=e.children,f=e.direction,p=(0,s.default)(e,["active","classes","className","children","direction"]);return u.default.createElement(d.default,(0,o.default)({className:(0,l.default)(n.root,(0,a.default)({},n.active,t),r),component:"span",disableRipple:!0},p),i,u.default.createElement(c.default,{className:(0,l.default)(n.icon,n["iconDirection".concat((0,h.capitalize)(f))])}))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(7)),s=i(n(3)),u=i(n(1)),l=(i(n(2)),i(n(6))),c=i(n(538)),f=i(n(5)),d=i(n(26)),h=n(13),p=function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:hover":{color:e.palette.text.primary},"&:focus":{color:e.palette.text.primary}},active:{color:e.palette.text.primary,"& $icon":{opacity:1}},icon:{height:16,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",width:16},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}};t.styles=p,r.propTypes={},r.defaultProps={active:!1,direction:"desc"};var m=(0,f.default)(p,{name:"MuiTableSortLabel"})(r);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(18)),a=r(n(15)),s=i.default.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),u=function(e){return i.default.createElement(a.default,e,s)};u=(0,o.default)(u),u.muiName="SvgIcon";var l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(540))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(12)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(7)),d=r(n(1)),h=(r(n(2)),r(n(14)),r(n(6))),p=r(n(28)),m=r(n(34)),v=n(541),y=r(n(542)),g=r(n(545)),b=r(n(5)),w=r(n(546)),_=r(n(547)),E=function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch"},flexContainer:{display:"flex"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll"},centered:{justifyContent:"center"},scrollButtons:{},scrollButtonsAuto:(0,f.default)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}};t.styles=E;var T=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={indicatorStyle:{},scrollerStyle:{marginBottom:0},showLeftScroll:!1,showRightScroll:!1,mounted:!1},r.getConditionalElements=function(){var e=r.props,t=e.classes,n=e.scrollable,i=e.ScrollButtonComponent,o=e.scrollButtons,a=e.theme,s={};s.scrollbarSizeListener=n?d.default.createElement(g.default,{onLoad:r.handleScrollbarSizeChange,onChange:r.handleScrollbarSizeChange}):null;var u=n&&("auto"===o||"on"===o);return s.scrollButtonLeft=u?d.default.createElement(i,{direction:a&&"rtl"===a.direction?"right":"left",onClick:r.handleLeftScrollClick,visible:r.state.showLeftScroll,className:(0,h.default)(t.scrollButtons,(0,f.default)({},t.scrollButtonsAuto,"auto"===o))}):null,s.scrollButtonRight=u?d.default.createElement(i,{direction:a&&"rtl"===a.direction?"left":"right",onClick:r.handleRightScrollClick,visible:r.state.showRightScroll,className:(0,h.default)(t.scrollButtons,(0,f.default)({},t.scrollButtonsAuto,"auto"===o))}):null,s},r.getTabsMeta=function(e,t){var n;if(r.tabs){var i=r.tabs.getBoundingClientRect();n={clientWidth:r.tabs?r.tabs.clientWidth:0,scrollLeft:r.tabs?r.tabs.scrollLeft:0,scrollLeftNormalized:r.tabs?(0,v.getNormalizedScrollLeft)(r.tabs,t):0,scrollWidth:r.tabs?r.tabs.scrollWidth:0,left:i.left,right:i.right}}var o;if(r.tabs&&!1!==e){var a=r.tabs.children[0].children;if(a.length>0){var s=a[r.valueToIndex[e]];o=s?s.getBoundingClientRect():null}}return{tabsMeta:n,tabMeta:o}},r.tabs=void 0,r.valueToIndex={},r.handleResize=(0,m.default)(function(){r.updateIndicatorState(r.props),r.updateScrollButtonState()},166),r.handleLeftScrollClick=function(){r.tabs&&r.moveTabsScroll(-r.tabs.clientWidth)},r.handleRightScrollClick=function(){r.tabs&&r.moveTabsScroll(r.tabs.clientWidth)},r.handleScrollbarSizeChange=function(e){var t=e.scrollbarHeight;r.setState({scrollerStyle:{marginBottom:-t}})},r.handleTabsScroll=(0,m.default)(function(){r.updateScrollButtonState()},166),r.moveTabsScroll=function(e){var t=r.props.theme;if(r.tabs){var n="rtl"===t.direction?-1:1,i=r.tabs.scrollLeft+e*n,o="rtl"===t.direction&&"reverse"===(0,v.detectScrollType)()?-1:1;y.default.left(r.tabs,o*i)}},r.scrollSelectedIntoView=function(){var e=r.props,t=e.theme,n=e.value,i=r.getTabsMeta(n,t.direction),o=i.tabsMeta,a=i.tabMeta;if(a&&o)if(a.left<o.left){var s=o.scrollLeft+(a.left-o.left);y.default.left(r.tabs,s)}else if(a.right>o.right){var u=o.scrollLeft+(a.right-o.right);y.default.left(r.tabs,u)}},r.updateScrollButtonState=function(){var e=r.props,t=e.scrollable,n=e.scrollButtons,i=e.theme;if(r.tabs&&t&&"off"!==n){var o=r.tabs,a=o.scrollWidth,s=o.clientWidth,u=(0,v.getNormalizedScrollLeft)(r.tabs,i.direction),l="rtl"===i.direction?a>s+u:u>0,c="rtl"===i.direction?u>0:a>s+u;l===r.state.showLeftScroll&&c===r.state.showRightScroll||r.setState({showLeftScroll:l,showRightScroll:c})}},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.updateIndicatorState(this.props),this.updateScrollButtonState(),this.props.action&&this.props.action({updateIndicator:this.handleResize})}},{key:"componentDidUpdate",value:function(e,t){this.updateScrollButtonState(),this.updateIndicatorState(this.props),this.state.indicatorStyle!==t.indicatorStyle&&this.scrollSelectedIntoView()}},{key:"componentWillUnmount",value:function(){this.handleResize.clear(),this.handleTabsScroll.clear()}},{key:"updateIndicatorState",value:function(e){var t=e.theme,n=e.value,r=this.getTabsMeta(n,t.direction),i=r.tabsMeta,o=r.tabMeta,a=0;if(o&&i){var s="rtl"===t.direction?i.scrollLeftNormalized+i.clientWidth-i.scrollWidth:i.scrollLeft;a=o.left-i.left+s}var u={left:a,width:o?o.width:0};u.left===this.state.indicatorStyle.left&&u.width===this.state.indicatorStyle.width||Number.isNaN(u.left)||Number.isNaN(u.width)||this.setState({indicatorStyle:u})}},{key:"render",value:function(){var e,t=this,n=this.props,r=(n.action,n.centered),s=n.children,u=n.classes,l=n.className,c=n.fullWidth,m=n.indicatorColor,v=n.onChange,y=n.scrollable,g=(n.ScrollButtonComponent,n.scrollButtons,n.TabIndicatorProps),b=void 0===g?{}:g,_=n.textColor,E=(n.theme,n.value),T=(0,a.default)(n,["action","centered","children","classes","className","fullWidth","indicatorColor","onChange","scrollable","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","theme","value"]),x=(0,h.default)(u.root,l),S=(0,h.default)(u.scroller,(e={},(0,f.default)(e,u.fixed,!y),(0,f.default)(e,u.scrollable,y),e)),k=(0,h.default)(u.flexContainer,(0,f.default)({},u.centered,r&&!y)),C=d.default.createElement(w.default,(0,i.default)({className:u.indicator,color:m},b,{style:(0,o.default)({},this.state.indicatorStyle,b.style)}));this.valueToIndex={};var O=0,N=d.default.Children.map(s,function(e){if(!d.default.isValidElement(e))return null;var n=void 0===e.props.value?O:e.props.value;t.valueToIndex[n]=O;var r=n===E;return O+=1,d.default.cloneElement(e,{fullWidth:c,indicator:r&&!t.state.mounted&&C,selected:r,onChange:v,textColor:_,value:n})}),P=this.getConditionalElements();return d.default.createElement("div",(0,i.default)({className:x},T),d.default.createElement(p.default,{target:"window",onResize:this.handleResize}),P.scrollbarSizeListener,d.default.createElement("div",{className:u.flexContainer},P.scrollButtonLeft,d.default.createElement("div",{className:S,style:this.state.scrollerStyle,ref:function(e){t.tabs=e},role:"tablist",onScroll:this.handleTabsScroll},d.default.createElement("div",{className:k},N),this.state.mounted&&C),P.scrollButtonRight))}}]),t}(d.default.Component);T.propTypes={},T.defaultProps={centered:!1,fullWidth:!1,indicatorColor:"secondary",scrollable:!1,ScrollButtonComponent:_.default,scrollButtons:"auto",textColor:"inherit"};var x=(0,b.default)(E,{name:"MuiTabs",withTheme:!0})(T);t.default=x},function(e,t,n){"use strict";function r(e){s=e}function i(){if(s)return s;if(!u||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),s="reverse",e.scrollLeft>0?s="default":(e.scrollLeft=1,0===e.scrollLeft&&(s="negative")),document.body.removeChild(e),s}function o(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=i();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n}function a(e,t,n){if("rtl"!==n)return void(e.scrollLeft=t);var r=i();if("indeterminate"!==r)switch(r){case"negative":e.scrollLeft=e.clientWidth-e.scrollWidth+t;break;case"reverse":e.scrollLeft=e.scrollWidth-e.clientWidth-t;break;default:e.scrollLeft=t}}Object.defineProperty(t,"__esModule",{value:!0});var s,u=!("undefined"===typeof window||!window.document||!window.document.createElement);t._setScrollType=r,t.detectScrollType=i,t.getNormalizedScrollLeft=o,t.setNormalizedScrollLeft=a},function(e,t,n){function r(e){return function(t,n,r,c){function f(){y=!0}function d(r){if(y)return c(u,t[e]);var i=+new Date,o=l(1,(i-h)/v),s=m(o);t[e]=s*(n-p)+p,a(o<1?d:function(){c(null,t[e])})}r=r||{},"function"==typeof r&&(c=r,r={}),"function"!=typeof c&&(c=o);var h=+new Date,p=t[e],m=r.ease||i,v=isNaN(r.duration)?350:+r.duration,y=!1;return p===n?c(s,t[e]):a(d),f}}function i(e){return.5*(1-Math.cos(Math.PI*e))}function o(){}var a=n(543),s=new Error("Element already at target scroll position"),u=new Error("Scroll cancelled"),l=Math.min;e.exports={left:r("scrollLeft"),top:r("scrollTop")}},function(e,t,n){function r(e){var t=+new Date,n=Math.max(0,16-(t-a)),r=setTimeout(e,n);return a=t,r}var i=n(544),o=i.requestAnimationFrame||i.webkitRequestAnimationFrame||i.mozRequestAnimationFrame||r,a=+new Date,s=i.cancelAnimationFrame||i.webkitCancelAnimationFrame||i.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(o=o.bind(i),s=s.bind(i)),t=e.exports=o,t.cancel=s},function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(t,n(20))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(8)),o=r(n(9)),a=r(n(10)),s=r(n(11)),u=r(n(1)),l=(r(n(2)),r(n(28))),c=r(n(34)),f={width:"100px",height:"100px",position:"absolute",top:"-10000px",overflow:"scroll",msOverflowStyle:"scrollbar"},d=function(e){function t(){var e,n,r;(0,i.default)(this,t);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return(0,a.default)(r,(n=r=(0,a.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.setMeasurements=function(){r.node&&(r.scrollbarHeight=r.node.offsetHeight-r.node.clientHeight,r.scrollbarWidth=r.node.offsetWidth-r.node.clientWidth)},r.handleResize=(0,c.default)(function(){var e=r.props.onChange,t=r.scrollbarHeight,n=r.scrollbarWidth;r.setMeasurements(),t===r.scrollbarHeight&&n===r.scrollbarWidth||e({scrollbarHeight:r.scrollbarHeight,scrollbarWidth:r.scrollbarWidth})},166),n))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.setMeasurements(),this.props.onLoad({scrollbarHeight:this.scrollbarHeight,scrollbarWidth:this.scrollbarWidth})}},{key:"componentWillUnmount",value:function(){this.handleResize.clear()}},{key:"render",value:function(){var e=this,t=this.props.onChange;return u.default.createElement("div",null,t?u.default.createElement(l.default,{target:"window",onResize:this.handleResize}):null,u.default.createElement("div",{style:f,ref:function(t){e.node=t}}))}}]),t}(u.default.Component);d.propTypes={};var h=d;t.default=h},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.color,i=(0,a.default)(e,["classes","className","color"]);return s.default.createElement("span",(0,o.default)({className:(0,u.default)(t.root,t["color".concat((0,c.capitalize)(r))],n)},i))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(5)),c=n(13),f=function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),willChange:"left, width"},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main}}};t.styles=f,r.propTypes={};var d=(0,l.default)(f)(r);t.default=d},function(e,t,n){"use strict";function r(e){var t=e.classes,n=e.className,r=e.direction,i=e.onClick,l=e.visible,c=(0,a.default)(e,["classes","className","direction","onClick","visible"]),f=(0,u.default)(t.root,n);return l?s.default.createElement(d.default,(0,o.default)({className:f,onClick:i,tabIndex:-1},c),"left"===r?p:m):s.default.createElement("div",{className:f})}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(2)),i(n(6))),l=i(n(187)),c=i(n(188)),f=i(n(5)),d=i(n(26)),h=function(e){return{root:{color:"inherit",flex:"0 0 ".concat(7*e.spacing.unit,"px")}}};t.styles=h;var p=s.default.createElement(l.default,null),m=s.default.createElement(c.default,null);r.propTypes={},r.defaultProps={visible:!0};var v=(0,f.default)(h,{name:"MuiTabScrollButton"})(r);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(549))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=r(n(4)),o=r(n(3)),a=r(n(8)),s=r(n(9)),u=r(n(10)),l=r(n(11)),c=r(n(7)),f=r(n(12)),d=r(n(1)),h=(r(n(2)),r(n(6))),p=r(n(5)),m=r(n(26)),v=n(13),y=function(e){return{root:(0,f.default)({},e.typography.button,(0,c.default)({maxWidth:264,position:"relative",minWidth:72,padding:0,minHeight:48,flexShrink:0,overflow:"hidden"},e.breakpoints.up("md"),{minWidth:160})),labelIcon:{minHeight:72},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.4}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},labelContainer:(0,c.default)({paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12},e.breakpoints.up("md"),{paddingLeft:3*e.spacing.unit,paddingRight:3*e.spacing.unit}),label:(0,c.default)({fontSize:e.typography.pxToRem(14),whiteSpace:"normal"},e.breakpoints.up("md"),{fontSize:e.typography.pxToRem(13)}),labelWrapped:(0,c.default)({},e.breakpoints.down("sm"),{fontSize:e.typography.pxToRem(12)})}};t.styles=y;var g=function(e){function t(){var e,n,r;(0,a.default)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(0,u.default)(r,(n=r=(0,u.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={labelWrapped:!1},r.handleChange=function(e){var t=r.props,n=t.onChange,i=t.value,o=t.onClick;n&&n(e,i),o&&o(e)},r.label=void 0,r.checkTextWrap=function(){if(r.label){var e=r.label.getClientRects().length>1;r.state.labelWrapped!==e&&r.setState({labelWrapped:e})}},n))}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.checkTextWrap()}},{key:"componentDidUpdate",value:function(e,t){this.state.labelWrapped===t.labelWrapped&&this.checkTextWrap()}},{key:"render",value:function(){var e,t,n=this,r=this.props,a=r.classes,s=r.className,u=r.disabled,l=r.fullWidth,f=r.icon,p=r.indicator,y=r.label,g=(r.onChange,r.selected),b=r.textColor,w=(r.value,(0,o.default)(r,["classes","className","disabled","fullWidth","icon","indicator","label","onChange","selected","textColor","value"]));void 0!==y&&(t=d.default.createElement("span",{className:a.labelContainer},d.default.createElement("span",{className:(0,h.default)(a.label,(0,c.default)({},a.labelWrapped,this.state.labelWrapped)),ref:function(e){n.label=e}},y)));var _=(0,h.default)(a.root,a["textColor".concat((0,v.capitalize)(b))],(e={},(0,c.default)(e,a.disabled,u),(0,c.default)(e,a.selected,g),(0,c.default)(e,a.labelIcon,f&&t),(0,c.default)(e,a.fullWidth,l),e),s);return d.default.createElement(m.default,(0,i.default)({focusRipple:!0,className:_,role:"tab","aria-selected":g,disabled:u},w,{onClick:this.handleChange}),d.default.createElement("span",{className:a.wrapper},f,t),p)}}]),t}(d.default.Component);g.propTypes={},g.defaultProps={disabled:!1,textColor:"inherit"};var b=(0,p.default)(y,{name:"MuiTab"})(g);t.default=b},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(551))},function(e,t,n){"use strict";function r(e){var t=e.autoComplete,n=e.autoFocus,r=e.children,i=e.className,h=e.defaultValue,p=e.disabled,m=e.error,v=e.FormHelperTextProps,y=e.fullWidth,g=e.helperText,b=e.id,w=e.InputLabelProps,_=e.inputProps,E=e.InputProps,T=e.inputRef,x=e.label,S=e.multiline,k=e.name,C=e.onBlur,O=e.onChange,N=e.onFocus,P=e.placeholder,I=e.required,A=e.rows,D=e.rowsMax,R=e.select,M=e.SelectProps,L=e.type,j=e.value,F=(0,a.default)(e,["autoComplete","autoFocus","children","className","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value"]),U=g&&b?"".concat(b,"-helper-text"):void 0,B=s.default.createElement(u.default,(0,o.default)({autoComplete:t,autoFocus:n,defaultValue:h,disabled:p,fullWidth:y,multiline:S,name:k,rows:A,rowsMax:D,type:L,value:j,id:b,inputRef:T,onBlur:C,onChange:O,onFocus:N,placeholder:P,inputProps:_},E));return s.default.createElement(c.default,(0,o.default)({"aria-describedby":U,className:i,error:m,fullWidth:y,required:I},F),x&&s.default.createElement(l.default,(0,o.default)({htmlFor:b},w),x),R?s.default.createElement(d.default,(0,o.default)({value:j,input:B},M),r):B,g&&s.default.createElement(f.default,(0,o.default)({id:U},v),g))}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(4)),a=i(n(3)),s=i(n(1)),u=(i(n(14)),i(n(2)),i(n(60))),l=i(n(176)),c=i(n(172)),f=i(n(174)),d=i(n(119));r.propTypes={},r.defaultProps={required:!1,select:!1};var h=r;t.default=h},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(553))},function(e,t,n){"use strict";function r(e){switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}var i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=i(n(4)),a=i(n(12)),s=i(n(3)),u=i(n(8)),l=i(n(9)),c=i(n(10)),f=i(n(11)),d=i(n(7)),h=i(n(1)),p=(i(n(2)),i(n(28))),m=i(n(34)),v=(i(n(14)),i(n(6))),y=n(554),g=n(13),b=i(n(162)),w=i(n(111)),_=i(n(88)),E=i(n(5)),T=function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none","&$open":{pointerEvents:"auto"}},open:{},tooltip:{backgroundColor:e.palette.grey[700],borderRadius:2,color:_.default.white,fontFamily:e.typography.fontFamily,opacity:0,transform:"scale(0)",transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shortest,easing:e.transitions.easing.easeIn}),minHeight:0,padding:"".concat(e.spacing.unit/2,"px ").concat(e.spacing.unit,"px"),fontSize:e.typography.pxToRem(10),lineHeight:"".concat(e.typography.round(1.4),"em"),"&$open":{opacity:.9,transform:"scale(1)",transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shortest,easing:e.transitions.easing.easeOut})}},touch:{padding:"".concat(e.spacing.unit,"px ").concat(2*e.spacing.unit,"px"),fontSize:e.typography.pxToRem(14),lineHeight:"".concat(e.typography.round(16/14),"em")},tooltipPlacementLeft:(0,d.default)({transformOrigin:"right center",margin:"0 ".concat(3*e.spacing.unit,"px")},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,d.default)({transformOrigin:"left center",margin:"0 ".concat(3*e.spacing.unit,"px")},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,d.default)({transformOrigin:"center bottom",margin:"".concat(3*e.spacing.unit,"px 0")},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,d.default)({transformOrigin:"center top",margin:"".concat(3*e.spacing.unit,"px 0")},e.breakpoints.up("sm"),{margin:"14px 0"})}};t.styles=T;var x=function(e){function t(e){var n;return(0,u.default)(this,t),n=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n.state={},n.enterTimer=null,n.leaveTimer=null,n.touchTimer=null,n.closeTimer=null,n.isControlled=null,n.popper=null,n.children=null,n.ignoreNonTouchEvents=!1,n.handleResize=(0,m.default)(function(){n.popper&&n.popper._popper.scheduleUpdate()},166),n.handleEnter=function(e){var t=n.props,r=t.children,i=t.enterDelay,o=r.props;"focus"===e.type&&o.onFocus&&o.onFocus(e),"mouseover"===e.type&&o.onMouseOver&&o.onMouseOver(e),n.ignoreNonTouchEvents&&"touchstart"!==e.type||(clearTimeout(n.enterTimer),clearTimeout(n.leaveTimer),i?(e.persist(),n.enterTimer=setTimeout(function(){n.handleOpen(e)},i)):n.handleOpen(e))},n.handleOpen=function(e){n.isControlled||n.setState({open:!0}),n.props.onOpen&&n.props.onOpen(e,!0)},n.handleLeave=function(e){var t=n.props,r=t.children,i=t.leaveDelay,o=r.props;"blur"===e.type&&o.onBlur&&o.onBlur(e),"mouseleave"===e.type&&o.onMouseLeave&&o.onMouseLeave(e),clearTimeout(n.enterTimer),clearTimeout(n.leaveTimer),i?(e.persist(),n.leaveTimer=setTimeout(function(){n.handleClose(e)},i)):n.handleClose(e)},n.handleClose=function(e){n.isControlled||n.setState({open:!1}),n.props.onClose&&n.props.onClose(e,!1),clearTimeout(n.closeTimer),n.closeTimer=setTimeout(function(){n.ignoreNonTouchEvents=!1},n.props.theme.transitions.duration.shortest)},n.handleTouchStart=function(e){n.ignoreNonTouchEvents=!0;var t=n.props,r=t.children,i=t.enterTouchDelay,o=r.props;o.onTouchStart&&o.onTouchStart(e),clearTimeout(n.leaveTimer),clearTimeout(n.closeTimer),clearTimeout(n.touchTimer),e.persist(),n.touchTimer=setTimeout(function(){n.handleEnter(e)},i)},n.handleTouchEnd=function(e){var t=n.props,r=t.children,i=t.leaveTouchDelay,o=r.props;o.onTouchEnd&&o.onTouchEnd(e),clearTimeout(n.touchTimer),clearTimeout(n.leaveTimer),e.persist(),n.leaveTimer=setTimeout(function(){n.handleClose(e)},i)},n.isControlled=null!=e.open,n.isControlled||(n.state.open=!1),n}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){clearTimeout(this.enterTimer),clearTimeout(this.leaveTimer),clearTimeout(this.touchTimer),clearTimeout(this.closeTimer),this.handleResize.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.classes,u=(t.className,t.disableFocusListener),l=t.disableHoverListener,c=t.disableTouchListener,f=(t.enterDelay,t.enterTouchDelay,t.id),m=(t.leaveDelay,t.leaveTouchDelay,t.onClose,t.onOpen,t.open),_=t.placement,E=t.PopperProps;E=void 0===E?{}:E;var T=E.className,x=(0,s.default)(E,["className"]),S=t.theme,k=t.title,C=(0,s.default)(t,["children","classes","className","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterTouchDelay","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","theme","title"]),O="rtl"===S.direction?r(_):_,N=this.isControlled?m:this.state.open,P={"aria-describedby":f};return""===k&&(N=!1),c||(P.onTouchStart=this.handleTouchStart,P.onTouchEnd=this.handleTouchEnd),l||(P.onMouseOver=this.handleEnter,P.onMouseLeave=this.handleLeave),u||(P.onFocus=this.handleEnter,P.onBlur=this.handleLeave),h.default.createElement(y.Manager,(0,o.default)({tag:!1},C),h.default.createElement(p.default,{target:"window",onResize:this.handleResize}),h.default.createElement(y.Target,null,function(t){var r=t.targetProps;return h.default.createElement(b.default,{rootRef:function(t){e.children=t,r.ref(e.children)}},h.default.cloneElement(n,P))}),h.default.createElement(w.default,null,h.default.createElement(y.Popper,(0,o.default)({placement:O,eventsEnabled:N,className:(0,v.default)(i.popper,(0,d.default)({},i.open,N),T),ref:function(t){e.popper=t}},x),function(t){var n=t.popperProps,r=t.restProps,s=(n["data-placement"]||O).split("-")[0];return h.default.createElement("div",(0,o.default)({},n,r,{style:(0,a.default)({},n.style,{top:n.style.top||0,left:n.style.left||0},r.style)}),h.default.createElement("div",{id:f,role:"tooltip","aria-hidden":!N,className:(0,v.default)(i.tooltip,(0,d.default)({},i.open,N),(0,d.default)({},i.touch,e.ignoreNonTouchEvents),i["tooltipPlacement".concat((0,g.capitalize)(s))])},k))})))}}]),t}(h.default.Component);x.propTypes={},x.defaultProps={disableFocusListener:!1,disableHoverListener:!1,disableTouchListener:!1,enterDelay:0,enterTouchDelay:1e3,leaveDelay:0,leaveTouchDelay:1500,placement:"bottom"};var S=(0,E.default)(T,{name:"MuiTooltip",withTheme:!0})(x);t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(555);n.d(t,"Manager",function(){return r.a});var i=n(556);n.d(t,"Target",function(){return i.a});var o=n(557);n.d(t,"Popper",function(){return o.a}),n.d(t,"placements",function(){return o.b});var a=n(559);n.d(t,"Arrow",function(){return a.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}function i(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 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(1),u=(n.n(s),n(2)),l=n.n(u),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r._setTargetNode=function(e){r._targetNode=e},r._getTargetNode=function(){return r._targetNode},a=n,o(r,a)}return a(t,e),c(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this._setTargetNode,getTargetNode:this._getTargetNode}}}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.children,i=r(e,["tag","children"]);return!1!==t?Object(s.createElement)(t,i,n):n}}]),t}(s.Component);f.childContextTypes={popperManager:l.a.object.isRequired},f.propTypes={tag:l.a.oneOfType([l.a.string,l.a.bool]),children:l.a.oneOfType([l.a.node,l.a.func])},f.defaultProps={tag:"div"},t.a=f},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 i=n(1),o=(n.n(i),n(2)),a=n.n(o),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e,t){var n=e.component,o=void 0===n?"div":n,a=e.innerRef,u=e.children,l=r(e,["component","innerRef","children"]),c=t.popperManager,f=function(e){c.setTargetNode(e),"function"===typeof a&&a(e)};if("function"===typeof u){return u({targetProps:{ref:f},restProps:l})}var d=s({},l);return"string"===typeof o?d.ref=f:d.innerRef=f,Object(i.createElement)(o,d,u)};u.contextTypes={popperManager:a.a.object.isRequired},u.propTypes={component:a.a.oneOfType([a.a.node,a.a.func]),innerRef:a.a.func,children:a.a.oneOfType([a.a.node,a.a.func])},t.a=u},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 i(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 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)}n.d(t,"b",function(){return h});var s=n(1),u=(n.n(s),n(2)),l=n.n(u),c=n(558),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=c.a.placements,p=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={},r._setArrowNode=function(e){r._arrowNode=e},r._getTargetNode=function(){if(r.props.target)return r.props.target;if(!r.context.popperManager||!r.context.popperManager.getTargetNode())throw new Error("Target missing. Popper must be given a target from the Popper Manager, or as a prop.");return r.context.popperManager.getTargetNode()},r._getOffsets=function(e){return Object.keys(e.offsets).map(function(t){return e.offsets[t]})},r._isDataDirty=function(e){return!r.state.data||JSON.stringify(r._getOffsets(r.state.data))!==JSON.stringify(r._getOffsets(e))},r._updateStateModifier={enabled:!0,order:900,fn:function(e){return r._isDataDirty(e)&&r.setState({data:e}),e}},r._getPopperStyle=function(){var e=r.state.data;return r._popper&&e?f({position:e.offsets.popper.position},e.styles):{position:"absolute",pointerEvents:"none",opacity:0}},r._getPopperPlacement=function(){return r.state.data?r.state.data.placement:void 0},r._getPopperHide=function(){return r.state.data&&r.state.data.hide?"":void 0},r._getArrowStyle=function(){if(r.state.data&&r.state.data.offsets.arrow){var e=r.state.data.offsets.arrow;return{top:e.top,left:e.left}}return{}},r._handlePopperRef=function(e){r._popperNode=e,e?r._createPopper():r._destroyPopper(),r.props.innerRef&&r.props.innerRef(e)},r._scheduleUpdate=function(){r._popper&&r._popper.scheduleUpdate()},a=n,o(r,a)}return a(t,e),d(t,[{key:"getChildContext",value:function(){return{popper:{setArrowNode:this._setArrowNode,getArrowStyle:this._getArrowStyle}}}},{key:"componentDidUpdate",value:function(e){e.placement===this.props.placement&&e.eventsEnabled===this.props.eventsEnabled&&e.target===this.props.target||(this._destroyPopper(),this._createPopper()),e.children!==this.props.children&&this._scheduleUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyPopper()}},{key:"_createPopper",value:function(){var e=this,t=this.props,n=t.placement,r=t.eventsEnabled,i=t.positionFixed,o=f({},this.props.modifiers,{applyStyle:{enabled:!1},updateState:this._updateStateModifier});this._arrowNode&&(o.arrow=f({},this.props.modifiers.arrow||{},{element:this._arrowNode})),this._popper=new c.a(this._getTargetNode(),this._popperNode,{placement:n,positionFixed:i,eventsEnabled:r,modifiers:o}),setTimeout(function(){return e._scheduleUpdate()})}},{key:"_destroyPopper",value:function(){this._popper&&this._popper.destroy()}},{key:"render",value:function(){var e=this.props,t=e.component,n=(e.innerRef,e.placement,e.eventsEnabled,e.positionFixed,e.modifiers,e.children),i=r(e,["component","innerRef","placement","eventsEnabled","positionFixed","modifiers","children"]),o=this._getPopperStyle(),a=this._getPopperPlacement(),u=this._getPopperHide();if("function"===typeof n){return n({popperProps:{ref:this._handlePopperRef,style:o,"data-placement":a,"data-x-out-of-boundaries":u},restProps:i,scheduleUpdate:this._scheduleUpdate})}var l=f({},i,{style:f({},i.style,o),"data-placement":a,"data-x-out-of-boundaries":u});return"string"===typeof t?l.ref=this._handlePopperRef:l.innerRef=this._handlePopperRef,Object(s.createElement)(t,l,n)}}]),t}(s.Component);p.contextTypes={popperManager:l.a.object},p.childContextTypes={popper:l.a.object.isRequired},p.propTypes={component:l.a.oneOfType([l.a.node,l.a.func]),innerRef:l.a.func,placement:l.a.oneOf(h),eventsEnabled:l.a.bool,positionFixed:l.a.bool,modifiers:l.a.object,children:l.a.oneOfType([l.a.node,l.a.func]),target:l.a.oneOfType([l.a.instanceOf("undefined"!==typeof Element?Element:Object),l.a.shape({getBoundingClientRect:l.a.func.isRequired,clientWidth:l.a.number.isRequired,clientHeight:l.a.number.isRequired})])},p.defaultProps={component:"div",placement:"bottom",eventsEnabled:!0,positionFixed:!1,modifiers:{}},t.a=p},function(e,t,n){"use strict";(function(e){function n(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function r(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},fe))}}function i(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=o(e),n=t.overflow,r=t.overflowX;return/(auto|scroll|overlay)/.test(n+t.overflowY+r)?e:s(a(e))}function u(e){return 11===e?me:10===e?ve:me||ve}function l(e){if(!e)return document.documentElement;for(var t=u(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===o(n,"position")?l(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||l(e.firstElementChild)===e)}function f(e){return null!==e.parentNode?f(e.parentNode):e}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return c(a)?a:l(a);var s=f(e);return s.host?d(s.host,t):d(e,f(t).host)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[n]}return e[n]}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h(t,"top"),i=h(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function m(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function v(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],u(10)?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function y(){var e=document.body,t=document.documentElement,n=u(10)&&getComputedStyle(t);return{height:v("Height",e,t,n),width:v("Width",e,t,n)}}function g(e){return we({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};try{if(u(10)){t=e.getBoundingClientRect();var n=h(e,"top"),r=h(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?y():{},s=a.width||e.clientWidth||i.right-i.left,l=a.height||e.clientHeight||i.bottom-i.top,c=e.offsetWidth-s,f=e.offsetHeight-l;if(c||f){var d=o(e);c-=m(d,"x"),f-=m(d,"y"),i.width-=c,i.height-=f}return g(i)}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(10),i="HTML"===t.nodeName,a=b(e),l=b(t),c=s(e),f=o(t),d=parseFloat(f.borderTopWidth,10),h=parseFloat(f.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var m=g({top:a.top-l.top-d,left:a.left-l.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var v=parseFloat(f.marginTop,10),y=parseFloat(f.marginLeft,10);m.top-=d-v,m.bottom-=d-v,m.left-=h-y,m.right-=h-y,m.marginTop=v,m.marginLeft=y}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(m=p(m,t)),m}function _(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=w(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:h(n),s=t?0:h(n,"left");return g({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}function E(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===o(e,"position")||E(a(e)))}function T(e){if(!e||!e.parentElement||u())return document.documentElement;for(var t=e.parentElement;t&&"none"===o(t,"transform");)t=t.parentElement;return t||document.documentElement}function x(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},u=i?T(e):d(e,t);if("viewport"===r)o=_(u,i);else{var l=void 0;"scrollParent"===r?(l=s(a(t)),"BODY"===l.nodeName&&(l=e.ownerDocument.documentElement)):l="window"===r?e.ownerDocument.documentElement:r;var c=w(l,u,i);if("HTML"!==l.nodeName||E(u))o=c;else{var f=y(),h=f.height,p=f.width;o.top+=c.top-c.marginTop,o.bottom=h+c.top,o.left+=c.left-c.marginLeft,o.right=p+c.left}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function S(e){return e.width*e.height}function k(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=x(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map(function(e){return we({key:e},s[e],{area:S(s[e])})}).sort(function(e,t){return t.area-e.area}),l=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=l.length>0?l[0].key:u[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function C(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return w(n,r?T(t):d(t,n),r)}function O(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function P(e,t,n){n=n.split("-")[0];var r=O(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[l]:t[N(s)],i}function I(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function A(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=I(e,function(e){return e[t]===n});return e.indexOf(r)}function D(e,t,n){return(void 0===n?e:e.slice(0,A(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=g(t.offsets.popper),t.offsets.reference=g(t.offsets.reference),t=n(t,e))}),t}function R(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=C(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=k(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=P(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=D(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function M(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function L(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function j(){return this.state.isDestroyed=!0,M(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[L("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(e){var t=e.ownerDocument;return t?t.defaultView:window}function U(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||U(s(o.parentNode),t,n,r),r.push(o)}function B(e,t,n,r){n.updateBound=r,F(e).addEventListener("resize",n.updateBound,{passive:!0});var i=s(e);return U(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function q(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}function V(e,t){return F(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function z(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=V(this.reference,this.state))}function W(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function H(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&W(t[n])&&(r="px"),e.style[n]=t[n]+r})}function K(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function G(e){return H(e.instance.popper,e.styles),K(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&H(e.arrowElement,e.arrowStyles),e}function Q(e,t,n,r,i){var o=C(i,t,e,n.positionFixed),a=k(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),H(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Y(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=I(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=l(e.instance.popper),u=b(s),c={position:i.position},f={left:Math.floor(i.left),top:Math.round(i.top),bottom:Math.round(i.bottom),right:Math.floor(i.right)},d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",p=L("transform"),m=void 0,v=void 0;if(v="bottom"===d?-u.height+f.bottom:f.top,m="right"===h?-u.width+f.right:f.left,a&&p)c[p]="translate3d("+m+"px, "+v+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var y="bottom"===d?-1:1,g="right"===h?-1:1;c[d]=v*y,c[h]=m*g,c.willChange=d+", "+h}var w={"x-placement":e.placement};return e.attributes=we({},w,e.attributes),e.styles=we({},c,e.styles),e.arrowStyles=we({},e.offsets.arrow,e.arrowStyles),e}function X(e,t,n){var r=I(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function $(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,s=a.popper,u=a.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",m=O(r)[c];u[p]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(u[p]-m)),u[d]+m>s[p]&&(e.offsets.popper[d]+=u[d]+m-s[p]),e.offsets.popper=g(e.offsets.popper);var v=u[d]+u[c]/2-m/2,y=o(e.instance.popper),b=parseFloat(y["margin"+f],10),w=parseFloat(y["border"+f+"Width"],10),_=v-e.offsets.popper[d]-b-w;return _=Math.max(Math.min(s[c]-m,_),0),e.arrowElement=r,e.offsets.arrow=(n={},be(n,d,Math.round(_)),be(n,h,""),n),e}function J(e){return"end"===e?"start":"start"===e?"end":e}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ee.indexOf(e),r=Ee.slice(n+1).concat(Ee.slice(0,n));return t?r.reverse():r}function ee(e,t){if(M(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=x(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=N(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Te.FLIP:a=[r,i];break;case Te.CLOCKWISE:a=Z(r);break;case Te.COUNTERCLOCKWISE:a=Z(r,!0);break;default:a=t.behavior}return a.forEach(function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=N(r);var l=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),h=f(l.left)<f(n.left),p=f(l.right)>f(n.right),m=f(l.top)<f(n.top),v=f(l.bottom)>f(n.bottom),y="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,g=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(g&&"start"===o&&h||g&&"end"===o&&p||!g&&"start"===o&&m||!g&&"end"===o&&v);(d||y||b)&&(e.flipped=!0,(d||y)&&(r=a[u+1]),b&&(o=J(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=we({},e.offsets.popper,P(e.instance.popper,e.offsets.reference,e.placement)),e=D(e.instance.modifiers,e,"flip"))}),e}function te(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<o(r[u])&&(e.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}function ne(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return g(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function re(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(I(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return l=l.map(function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return ne(e,i,t,n)})}),l.forEach(function(e,t){e.forEach(function(n,r){W(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}function ie(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=W(+n)?[+n,0]:re(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e}function oe(e,t){var n=t.boundariesElement||l(e.instance.popper);e.instance.reference===n&&(n=l(n));var r=L("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=x(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var c=t.priority,f=e.offsets.popper,d={primary:function(e){var n=f[e];return f[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(f[e],u[e])),be({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=f[n];return f[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(f[n],u[e]-("right"===e?f.width:f.height))),be({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";f=we({},f,d[t](e))}),e.offsets.popper=f,e}function ae(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:be({},u,o[u]),end:be({},u,o[u]+o[l]-a[l])};e.offsets.popper=we({},a,c[r])}return e}function se(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=I(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ue(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=N(t),e.offsets.popper=g(i),e}for(var le="undefined"!==typeof window&&"undefined"!==typeof document,ce=["Edge","Trident","Firefox"],fe=0,de=0;de<ce.length;de+=1)if(le&&navigator.userAgent.indexOf(ce[de])>=0){fe=1;break}var he=le&&window.Promise,pe=he?n:r,me=le&&!(!window.MSInputMethodContext||!document.documentMode),ve=le&&/MSIE 10/.test(navigator.userAgent),ye=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ge=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),be=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_e=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ee=_e.slice(3),Te={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},xe={shift:{order:100,enabled:!0,fn:ae},offset:{order:200,enabled:!0,fn:ie,offset:0},preventOverflow:{order:300,enabled:!0,fn:oe,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:te},arrow:{order:500,enabled:!0,fn:$,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:ee,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ue},hide:{order:800,enabled:!0,fn:se},computeStyle:{order:850,enabled:!0,fn:Y,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:G,onLoad:Q,gpuAcceleration:void 0}},Se={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:xe},ke=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ye(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=pe(this.update.bind(this)),this.options=we({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(we({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=we({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return we({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return ge(e,[{key:"update",value:function(){return R.call(this)}},{key:"destroy",value:function(){return j.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return z.call(this)}}]),e}();ke.Utils=("undefined"!==typeof window?window:e).PopperUtils,ke.placements=_e,ke.Defaults=Se,t.a=ke}).call(t,n(20))},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 i=n(1),o=(n.n(i),n(2)),a=n.n(o),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e,t){var n=e.component,o=void 0===n?"span":n,a=e.innerRef,u=e.children,l=r(e,["component","innerRef","children"]),c=t.popper,f=function(e){c.setArrowNode(e),"function"===typeof a&&a(e)},d=c.getArrowStyle();if("function"===typeof u){return u({arrowProps:{ref:f,style:d},restProps:l})}var h=s({},l,{style:s({},d,l.style)});return"string"===typeof o?h.ref=f:h.innerRef=f,Object(i.createElement)(o,h,u)};u.contextTypes={popper:a.a.object.isRequired},u.propTypes={component:a.a.oneOfType([a.a.node,a.a.func]),innerRef:a.a.func,children:a.a.oneOfType([a.a.node,a.a.func])},t.a=u},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(561))},function(e,t,n){"use strict";var r=n(54),i=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(4)),a=i(n(1)),s=(i(n(2)),r(n(118))),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){function n(e){return a.default.createElement(t,(0,o.default)({fullScreen:(0,s.isWidthDown)(i,e.width)},e))}var r=e.breakpoint,i=void 0===r?"sm":r;return n.propTypes={},(0,s.default)()(n)}},l=u;t.default=l},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(563))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4)),o=r(n(12)),a=r(n(3)),s=r(n(8)),u=r(n(9)),l=r(n(10)),c=r(n(11)),f=r(n(1)),d=(r(n(2)),r(n(48))),h=n(30),p=r(n(32)),m=n(49),v={entering:{transform:"scale(1)"},entered:{transform:"scale(1)"}},y=function(e){function t(){var e,n,r;(0,s.default)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(0,l.default)(r,(n=r=(0,l.default)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleEnter=function(e){var t=r.props.theme;(0,m.reflow)(e);var n=(0,m.getTransitionProps)(r.props,{mode:"enter"});e.style.webkitTransition=t.transitions.create("transform",n),e.style.transition=t.transitions.create("transform",n),r.props.onEnter&&r.props.onEnter(e)},r.handleExit=function(e){var t=r.props.theme,n=(0,m.getTransitionProps)(r.props,{mode:"exit"});e.style.webkitTransition=t.transitions.create("transform",n),e.style.transition=t.transitions.create("transform",n),r.props.onExit&&r.props.onExit(e)},n))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=(e.onEnter,e.onExit,e.style),r=(e.theme,(0,a.default)(e,["children","onEnter","onExit","style","theme"])),s=(0,o.default)({},n,f.default.isValidElement(t)?t.props.style:{});return f.default.createElement(d.default,(0,i.default)({appear:!0,onEnter:this.handleEnter,onExit:this.handleExit},r),function(e,n){return f.default.cloneElement(t,(0,o.default)({style:(0,o.default)({transform:"scale(0)",willChange:"transform"},v[e],s)},n))})}}]),t}(f.default.Component);y.propTypes={},y.defaultProps={timeout:{enter:h.duration.enteringScreen,exit:h.duration.leavingScreen}};var g=(0,p.default)()(y);t.default=g},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 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 o(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)}n.d(t,"a",function(){return f});var a=n(1),s=n.n(a),u=n(78),l=n(565),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={drawerOpen:!1},n.drawerWidth=250,n}return o(t,e),c(t,[{key:"componentWillMount",value:function(){this.setState({drawerOpen:this.props.drawerOpen})}},{key:"componentWillReceiveProps",value:function(e){this.setState({drawerOpen:e.drawerOpen})}},{key:"render",value:function(){var e=this,t=this.props.a;return s.a.createElement(u.f,{anchor:this.props.side,open:this.state.drawerOpen,onClose:function(){return e.props.toggleDrawer()},onOpen:function(){return e.props.toggleDrawer()}},s.a.createElement("div",{tabIndex:0,role:"button"},s.a.createElement("div",{style:{width:this.drawerWidth}},s.a.createElement(u.d,{style:{paddingTop:this.props.data.getButtonHeight()}},this.props.data.getNavbarData().map(function(n,r){return s.a.createElement(l.a,{data:e.props.data,name:e.props.name,pageTitle:e.props.pageTitle,nav:n,key:"sbit-"+r,a:t})})))))}}]),t}(a.Component)},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 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 o(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)}n.d(t,"a",function(){return g});var a=n(1),s=n.n(a),u=n(78),l=n(178),c=n.n(l),f=n(80),d=n.n(f),h=n(566),p=n.n(h),m=n(567),v=n.n(m),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={open:!1},n.handleClick=n.handleClick.bind(n),n.handleLinkClick=n.handleLinkClick.bind(n),n.getLink=n.getLink.bind(n),n.firstPadding="15px",n.secondPadding="30px",n}return o(t,e),y(t,[{key:"handleClick",value:function(){this.setState({open:!this.state.open})}},{key:"handleLinkClick",value:function(e){if(window){var t=""+this.props.name+this.props.nav.links[e];"Home"===this.props.nav.title&&(t=this.props.nav.links[e]),window.location.href=t}}},{key:"getLink",value:function(e){var t=""+this.props.name+this.props.nav.links[e];return"Home"===this.props.nav.title&&(t=this.props.nav.links[e]),t}},{key:"render",value:function(){var e=this,t=this.props.a;return s.a.createElement("div",null,s.a.createElement(u.e,{button:!0,onClick:this.handleClick},s.a.createElement(c.a,{style:{paddingLeft:this.firstPadding},primary:this.props.nav.title}),this.state.open?s.a.createElement(p.a,null):s.a.createElement(v.a,null)),s.a.createElement(d.a,{in:this.state.open,timeout:"auto",unmountOnExit:!0},s.a.createElement(u.d,{component:"div"},this.props.nav.names.map(function(n,r){return s.a.createElement(u.e,{button:!0,key:n+"-"+r,component:"a",href:e.getLink(r),onClick:t},s.a.createElement(c.a,{style:{paddingLeft:e.secondPadding},primary:n,disabled:e.props.pageTitle===e.props.nav.links[r],key:n+"-li-"+r}))}))))}}]),t}(a.Component)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(96)),a=(0,o.default)(i.default.createElement("g",null,i.default.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),"ExpandLess");t.default=a},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1)),o=r(n(96)),a=(0,o.default)(i.default.createElement("g",null,i.default.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),"ExpandMore");t.default=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 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 o(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)}n.d(t,"a",function(){return y});var a=n(1),s=n.n(a),u=n(569),l=(n.n(u),n(570)),c=(n.n(l),n(572)),f=(n.n(c),n(189)),d=n(573),h=n.n(d),p=n(679),m=n.n(p),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={contentData:null,setEditData:null,firebase:null,tempEditType:"",tempEditContent:"",canEdit:!1,currentEmail:"",pageTitle:"",newPage:""},n.possibleTypes=["MARKDOWN","LATEX","IMAGE","SPECIAL"],n}return o(t,e),v(t,[{key:"componentWillMount",value:function(){var e=this;this.setState({contentData:this.props.contentData,setEditData:this.props.setEditData,firebase:this.props.firebase,pageTitle:this.props.pageTitle}),this.props.edit&&this.props.firebase.auth().onAuthStateChanged(function(t){if(t)e.setState({canEdit:!0,currentEmail:t.email});else{var n=new e.props.firebase.auth.GoogleAuthProvider;e.props.firebase.auth().signInWithPopup(n).then(function(t){var n=t.user,r=n.email.split("@")[1];"uw.edu"===r||"washington.edu"===r||"u.washington.edu"===r?e.setState({canEdit:!0,currentEmail:n.email}):(alert("email not allowed, your email has been logged and will be reported to igem administration"),e.props.firebase.database().ref("evilPeople").push(n.email))}).catch(function(e){var t=e.code,n=e.message,r=e.email,i=e.credential;console.log(t,n,r,i,"error, email did not work")})}})}},{key:"componentWillReceiveProps",value:function(e){this.setState({contentData:e.contentData,setEditData:e.setEditData,firebase:this.props.firebase})}},{key:"filterToPage",value:function(){if(this.state.contentData){var e=0,t=!0,n=!1,r=void 0;try{for(var i,o=this.state.contentData[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(a.pageTitle===this.state.pageTitle)return this.pageIndex=e,a;e++}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}return null}},{key:"createSpecial",value:function(e){var t=null;switch(e){case"HOMEPAGE":t=s.a.createElement("div",null,s.a.createElement(f.a,null));break;default:t=s.a.createElement("div",null,"stub div")}return t}},{key:"generateSegment",value:function(e,t,n){var r=this,i=null;switch(e.type){case"MARKDOWN":i=s.a.createElement("div",null,h()().use(m.a).processSync(e.data).contents);break;case"LATEX":i=s.a.createElement(l.BlockMath,null,e.data);break;case"IMAGE":i=null;break;case"SPECIAL":i=this.createSpecial(e.data);break;default:i=s.a.createElement("div",null,"stub div")}var o=!1;return this.props.edit&&this.state.setEditData&&this.state.setEditData.index===t&&(o=!0),s.a.createElement("div",{key:"segment"+t,className:(this.props.edit?"editBorder":"")+" "+(o?"greenBorder":"")},i,this.props.edit&&s.a.createElement("div",null,!o&&s.a.createElement("div",null,s.a.createElement("button",{onClick:function(){r.props.setEdit(r.state.pageTitle,t),r.setState({tempEditContent:null,tempEditType:null})}},"edit"),s.a.createElement("button",{style:{margin:10},onClick:function(){var e=n;e.content.splice(t,0,{type:"MARKDOWN",data:"Insert text"}),r.props.firebase.database().ref("pageData/"+r.pageIndex).set(e),r.setState({setEditData:null,tempEditContent:null,tempEditType:null})}},"insert before"),s.a.createElement("button",{style:{margin:10},onClick:function(){var e=n;e.content.splice(t+1,0,{type:"MARKDOWN",data:"Insert text"}),r.props.firebase.database().ref("pageData/"+r.pageIndex).set(e),r.setState({setEditData:null,tempEditContent:null,tempEditType:null})}},"insert after"),s.a.createElement("button",{onClick:function(){var e=n;e.content.splice(t,1),r.props.firebase.database().ref("pageData/"+r.pageIndex).set(e),r.setState({setEditData:null,tempEditContent:null,tempEditType:null})}},"delete")),o&&s.a.createElement("div",null,s.a.createElement("select",{value:null!==this.state.tempEditType?this.state.tempEditType:e.type,onChange:function(e){r.setState({tempEditType:e.target.value})}},this.possibleTypes.map(function(e){return s.a.createElement("option",{value:e,key:e},e)})),s.a.createElement("button",{onClick:function(){var i=n;i.content[t]={data:null!==r.state.tempEditContent?r.state.tempEditContent:e.data,type:null!==r.state.tempEditType?r.state.tempEditType:e.type},r.props.firebase.database().ref("pageData/"+r.pageIndex).set(i),r.setState({setEditData:null,tempEditContent:null,tempEditType:null})}},"submit"),s.a.createElement("button",{onClick:function(){r.setState({setEditData:null,tempEditContent:null,tempEditType:null})}},"cancel"),s.a.createElement("br",null),s.a.createElement("textarea",{style:{margin:"auto"},cols:100,rows:30,value:null!==this.state.tempEditContent?this.state.tempEditContent:e.data,onChange:function(e){r.setState({tempEditContent:e.target.value})}}))))}},{key:"submitNewPage",value:function(){var e=this;if(this.state.newPage&&"/"===this.state.newPage[0]){var t={pageTitle:this.state.newPage},n=this.state.contentData;n.push(t),this.props.firebase.database().ref("pageData").set(n,function(){e.setState({newPage:"",pageTitle:e.state.newPage})})}else alert("error, invalid string")}},{key:"render",value:function(){var e=this,t=this.filterToPage(),n=this.state.contentData?this.state.contentData.reduce(function(e,t){return e.push(t.pageTitle),e},[]):[];return t&&!t.content&&(t.content=[]),s.a.createElement("div",{style:{marginTop:"100px",marginLeft:"5%",marginRight:"5%"}},(this.props.edit&&this.state.canEdit||!this.props.edit)&&s.a.createElement("div",null,this.props.edit&&s.a.createElement("div",null,s.a.createElement("h1",null,"Choose a page to edit:"),s.a.createElement("select",{value:this.state.pageTitle?this.state.pageTitle:this.props.pageTitle,onChange:function(t){e.setState({pageTitle:t.target.value})}},n.map(function(e){return s.a.createElement("option",{value:e,key:e},e)})),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("h1",null,"Create new page"),s.a.createElement("p",null,"Must have / before it, and correct capitalization"),s.a.createElement("input",{value:this.state.newPage,onChange:function(t){e.setState({newPage:t.target.value})}}),s.a.createElement("button",{onClick:function(){e.submitNewPage()}},"submit new page"),s.a.createElement("br",null),s.a.createElement("br",null)),t&&t.content.map(function(n,r){return e.generateSegment(n,r,t)}),this.props.edit&&s.a.createElement("div",null,s.a.createElement("button",{style:{margin:10},onClick:function(){var n=t;n.content.push({type:"MARKDOWN",data:"Insert text"}),e.props.firebase.database().ref("pageData/"+e.pageIndex).set(n),e.setState({setEditData:null,tempEditContent:null,tempEditType:null})}},"insert after"),s.a.createElement("button",{onClick:function(){e.props.firebase.auth().signOut()}},"sign out"))))}}]),t}(a.Component)},function(e,t){},function(e,t,n){!function(e,r){r(t,n(1),n(2),n(571))}(0,function(e,t,n,r){"use strict";t=t&&"default"in t?t.default:t,n=n&&"default"in n?n.default:n,r=r&&"default"in r?r.default:r;var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(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)},s=function(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},u=function(e,u){var l=u.displayMode,c=function(n){function u(e){i(this,u);var t=s(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e));return t.usedProp=e.math?"math":"children",t.state=t.createNewState(null,e),t}return a(u,n),o(u,[{key:"componentWillReceiveProps",value:function(){this.setState(this.createNewState)}},{key:"shouldComponentUpdate",value:function(e){return e[this.usedProp]!==this.props[this.usedProp]}},{key:"createNewState",value:function(e,t){try{return{html:this.generateHtml(t),error:void 0}}catch(e){if(e instanceof r.ParseError||e instanceof TypeError)return{error:e};throw e}}},{key:"generateHtml",value:function(e){var t=e.errorColor,n=e.renderError;return r.renderToString(e[this.usedProp],{displayMode:l,errorColor:t,throwOnError:!!n})}},{key:"render",value:function(){var n=this.state,r=n.error,i=n.html,o=this.props.renderError;return r?o?o(r):t.createElement(e,{html:""+r.message}):t.createElement(e,{html:i})}}]),u}(t.Component);return c.propTypes={children:n.string,errorColor:n.string,math:n.string,renderError:n.func},c},l=function(e){var n=e.html;return t.createElement("span",{dangerouslySetInnerHTML:{__html:n}})};l.propTypes={html:n.string.isRequired};var c=u(l,{displayMode:!1}),f=function(e){var n=e.html;return t.createElement("div",{dangerouslySetInnerHTML:{__html:n}})};f.propTypes={html:n.string.isRequired};var d=u(f,{displayMode:!0});e.InlineMath=c,e.BlockMath=d,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,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=63)}([function(e,t,n){"use strict";var r=n(57),i=n.n(r),o=n(18),a=n.n(o),s=n(12),u=n(30),l=n(28),c=n(5),f=n(13),d=n(19),h=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xa3"],p=function(e,t,n){return l.a[n][e]&&l.a[n][e].replace&&(e=l.a[n][e].replace),{value:e,metrics:u.a.getCharacterMetrics(e,t,n)}},m=function(e,t,n,r,i){var o=p(e,t,n),a=o.metrics;e=o.value;var u=void 0;if(a){var l=a.italic;"text"===n&&(l=0),u=new s.a.symbolNode(e,a.height,a.depth,l,a.skew,a.width,i)}else"undefined"!==typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"'"),u=new s.a.symbolNode(e,0,0,0,0,0,i);if(r){u.maxFontSize=r.sizeMultiplier,r.style.isTight()&&u.classes.push("mtight");var c=r.getColor();c&&(u.style.color=c)}return u},v=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return n&&n.fontFamily&&"boldsymbol"===n.fontFamily&&p(e,"Main-Bold",t).metrics?m(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===l.a[t][e].font?m(e,"Main-Regular",t,n,r):m(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},y=function(e,t,n,r,i){if("mathord"===i){var o=g(e,t,n,r);return m(e,o.fontName,t,n,r.concat([o.fontClass]))}if("textord"===i){if("ams"===(l.a[t][e]&&l.a[t][e].font)){var a=I("amsrm",n.fontWeight,n.fontShape);return m(e,a,t,n,r.concat("amsrm",n.fontWeight,n.fontShape))}var s=I("textrm",n.fontWeight,n.fontShape);return m(e,s,t,n,r.concat(n.fontWeight,n.fontShape))}throw new Error("unexpected type: "+i+" in mathDefault")},g=function(e,t,n,r){return/[0-9]/.test(e.charAt(0))||c.a.contains(h,e)?{fontName:"Main-Italic",fontClass:"mainit"}:{fontName:"Math-Italic",fontClass:"mathit"}},b=function(e,t,n,r){return p(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},w=function(e,t,n){var r=e.mode,i=e.value,o=["mord"],a=t.fontFamily;if(a){var s=void 0,u=void 0;if("boldsymbol"===a){var l=b(i,r);s=l.fontName,u=[l.fontClass]}else if("mathit"===a||c.a.contains(h,i)){var f=g(i,r,t,o);s=f.fontName,u=[f.fontClass]}else-1!==a.indexOf("math")||"math"===r?(s=M[a].fontName,u=[a]):(s=I(a,t.fontWeight,t.fontShape),u=[a,t.fontWeight,t.fontShape]);return p(i,s,r).metrics?m(i,s,r,t,o.concat(u)):y(i,r,t,o,n)}return y(i,r,t,o,n)},_=function(e){for(var t=0;t<e.length-1;t++)e[t].tryCombine(e[t+1])&&(e.splice(t+1,1),t--);return e},E=function(e){var t=0,n=0,r=0,i=!0,o=!1,s=void 0;try{for(var u,l=a()(e.children);!(i=(u=l.next()).done);i=!0){var c=u.value;c.height>t&&(t=c.height),c.depth>n&&(n=c.depth),c.maxFontSize>r&&(r=c.maxFontSize)}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}e.height=t,e.depth=n,e.maxFontSize=r},T=function(e,t,n,r){var i=new s.a.span(e,t,n,r);return E(i),i},x=function(e,t){var n=t.fontMetrics().defaultRuleThickness,r=f.a.ruleSpan(e,n,t);return r.height=n,r.style.height=5*r.height+"em",r.maxFontSize=1,r},S=function(e,t,n,r){var i=new s.a.anchor(e,t,n,r);return E(i),i},k=function(e){var t=new s.a.documentFragment(e);return E(t),t},C=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,o=1;o<t.length;o++){var s=-t[o].shift-i-t[o].elem.depth,u=s-(t[o-1].elem.height+t[o-1].elem.depth);i+=s,n.push({type:"kern",size:u}),n.push(t[o])}return{children:n,depth:r}}var l=void 0;if("top"===e.positionType){var c=e.positionData,f=!0,d=!1,h=void 0;try{for(var p,m=a()(e.children);!(f=(p=m.next()).done);f=!0){var v=p.value;c-="kern"===v.type?v.size:v.elem.height+v.elem.depth}}catch(e){d=!0,h=e}finally{try{!f&&m.return&&m.return()}finally{if(d)throw h}}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var y=e.children[0];if("elem"!==y.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-y.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-y.elem.depth}}return{children:e.children,depth:l}},O=function(e,t){var n=C(e),r=n.children,i=n.depth,o=0,u=!0,l=!1,c=void 0;try{for(var f,d=a()(r);!(u=(f=d.next()).done);u=!0){var h=f.value;if("elem"===h.type){var p=h.elem;o=Math.max(o,p.maxFontSize,p.height)}}}catch(e){l=!0,c=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}o+=2;var m=T(["pstrut"],[]);m.style.height=o+"em";var v=[],y=i,g=i,b=i,w=!0,_=!1,E=void 0;try{for(var x,S=a()(r);!(w=(x=S.next()).done);w=!0){var k=x.value;if("kern"===k.type)b+=k.size;else{var O=k.elem,N=k.wrapperClasses||[],P=k.wrapperStyle||{},I=T(N,[m,O],void 0,P);I.style.top=-o-b-O.depth+"em",k.marginLeft&&(I.style.marginLeft=k.marginLeft),k.marginRight&&(I.style.marginRight=k.marginRight),v.push(I),b+=O.height+O.depth}y=Math.min(y,b),g=Math.max(g,b)}}catch(e){_=!0,E=e}finally{try{!w&&S.return&&S.return()}finally{if(_)throw E}}var A=T(["vlist"],v);A.style.height=g+"em";var D=void 0;if(y<0){var R=T(["vlist"],[]);R.style.height=-y+"em";var M=T(["vlist-s"],[new s.a.symbolNode("\u200b")]);D=[T(["vlist-r"],[A,M]),T(["vlist-r"],[R])]}else D=[T(["vlist-r"],[A])];var L=T(["vlist-t"],D);return 2===D.length&&L.classes.push("vlist-t2"),L.height=g,L.depth=-y,L},N=function(e,t){var n=e.value.body;return n=e.value.star?n.replace(/ /g,"\u2423"):n.replace(/ /g,"\xa0")},P=function(e,t){var n=T(["mord","rule"],[],t),r=Object(d.a)(e,t);return n.style.marginRight=r+"em",n},I=function(e,t,n){return A(e)+"-"+D(t,n)},A=function(e){var t="";switch(e){case"amsrm":t="AMS";break;case"textrm":t="Main";break;case"textsf":t="SansSerif";break;case"texttt":t="Typewriter";break;default:throw new Error("Invalid font provided: "+e)}return t},D=function(e,t){var n="";return"textbf"===e&&(n+="Bold"),"textit"===t&&(n+="Italic"),n||"Regular"},R={"\\qquad":{size:"2em",className:"qquad"},"\\quad":{size:"1em",className:"quad"},"\\enspace":{size:"0.5em",className:"enspace"},"\\;":{size:"0.277778em",className:"thickspace"},"\\:":{size:"0.22222em",className:"mediumspace"},"\\,":{size:"0.16667em",className:"thinspace"},"\\!":{size:"-0.16667em",className:"negativethinspace"}},M={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},L={vec:["vec",.471,.714]},j=function(e,t){var n=i()(L[e],3),r=n[0],o=n[1],a=n[2],u=new s.a.pathNode(r),l=new s.a.svgNode([u],{width:o+"em",height:a+"em",style:"width:"+o+"em",viewBox:"0 0 "+1e3*o+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),c=T(["overlay"],[l],t);return c.height=a,c.style.height=a+"em",c.style.width=o+"em",c};t.a={fontMap:M,makeSymbol:m,mathsym:v,makeSpan:T,makeLineSpan:x,makeAnchor:S,makeFragment:k,makeVList:O,makeOrd:w,makeVerb:N,makeGlue:P,staticSvg:j,svgData:L,tryCombineChars:_,spacingFunctions:R}},function(e,t,n){"use strict";var r=n(18),i=n.n(r),o=n(7),a=n.n(o),s=n(10),u=n.n(s),l=n(5),c=function(){function e(t,n){a()(this,e),this.type=t,this.attributes={},this.children=n||[]}return u()(e,[{key:"setAttribute",value:function(e,t){this.attributes[e]=t}},{key:"toNode",value:function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);var n=!0,r=!1,o=void 0;try{for(var a,s=i()(this.children);!(n=(a=s.next()).done);n=!0){var u=a.value;e.appendChild(u.toNode())}}catch(e){r=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return e}},{key:"toMarkup",value:function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=l.a.escape(this.attributes[t]),e+='"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">"}},{key:"toText",value:function(){return"mspace"===this.type?"0.16667em"===this.attributes.width?"\u2006":" ":this.children.map(function(e){return e.toText()}).join("")}}]),e}(),f=function(){function e(t){a()(this,e),this.text=t}return u()(e,[{key:"toNode",value:function(){return document.createTextNode(this.text)}},{key:"toMarkup",value:function(){return l.a.escape(this.text)}},{key:"toText",value:function(){return this.text}}]),e}();t.a={MathNode:c,TextNode:f}},function(e,t,n){"use strict";function r(e,t,n){var r=v(e,n),o=new a.a.MathNode("mrow",r),s=new a.a.MathNode("annotation",[new a.a.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var u=new a.a.MathNode("semantics",[o,s]),l=new a.a.MathNode("math",[u]);return i.a.makeSpan(["katex-mathml"],[l])}n.d(t,"e",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return v}),n.d(t,"b",function(){return y}),t.c=r;var i=n(0),o=n(30),a=n(1),s=n(6),u=n(9),l=n(28),c=n(5),f=n(13),d=function(e,t){return l.a[t][e]&&l.a[t][e].replace&&(e=l.a[t][e].replace),new a.a.TextNode(e)},h=function(e,t){var n=t.fontFamily;if(!n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";var a=e.value;if(c.a.contains(["\\imath","\\jmath"],a))return null;l.a[r][a]&&l.a[r][a].replace&&(a=l.a[r][a].replace);var s=i.a.fontMap[n].fontName;return o.a.getCharacterMetrics(a,s,r)?i.a.fontMap[n].variant:null},p={},m={mi:"italic",mn:"normal",mtext:"normal"};p.mathord=function(e,t){var n=new a.a.MathNode("mi",[d(e.value,e.mode)]),r=h(e,t)||"italic";return r!==m[n.type]&&n.setAttribute("mathvariant",r),n},p.textord=function(e,t){var n=d(e.value,e.mode),r=h(e,t)||"normal",i=void 0;return i="text"===e.mode?new a.a.MathNode("mtext",[n]):/[0-9]/.test(e.value)?new a.a.MathNode("mn",[n]):"\\prime"===e.value?new a.a.MathNode("mo",[n]):new a.a.MathNode("mi",[n]),r!==m[i.type]&&i.setAttribute("mathvariant",r),i},p.bin=function(e,t){var n=new a.a.MathNode("mo",[d(e.value,e.mode)]),r=h(e,t);return"bold-italic"===r&&n.setAttribute("mathvariant",r),n},p.rel=function(e){return new a.a.MathNode("mo",[d(e.value,e.mode)])},p.open=function(e){return new a.a.MathNode("mo",[d(e.value,e.mode)])},p.close=function(e){return new a.a.MathNode("mo",[d(e.value,e.mode)])},p.inner=function(e){return new a.a.MathNode("mo",[d(e.value,e.mode)])},p.punct=function(e){var t=new a.a.MathNode("mo",[d(e.value,e.mode)]);return t.setAttribute("separator","true"),t},p.ordgroup=function(e,t){var n=v(e.value,t);return new a.a.MathNode("mrow",n)},p.supsub=function(e,t){var n=!1,r=void 0;e.value.base&&"horizBrace"===e.value.base.value.type&&!!e.value.sup===e.value.base.value.isOver&&(n=!0,r=e.value.base.value.isOver);var i=[y(e.value.base,t,!0)];e.value.sub&&i.push(y(e.value.sub,t,!0)),e.value.sup&&i.push(y(e.value.sup,t,!0));var o=void 0;if(n)o=r?"mover":"munder";else if(e.value.sub)if(e.value.sup){var s=e.value.base;o=s&&s.value.limits&&t.style===u.a.DISPLAY?"munderover":"msubsup"}else{var l=e.value.base;o=l&&l.value.limits&&t.style===u.a.DISPLAY?"munder":"msub"}else{var c=e.value.base;o=c&&c.value.limits&&t.style===u.a.DISPLAY?"mover":"msup"}return new a.a.MathNode(o,i)},p.spacing=function(e){var t=void 0;return"\\ "===e.value||"\\space"===e.value||" "===e.value||"~"===e.value?t=new a.a.MathNode("mtext",[new a.a.TextNode("\xa0")]):(t=new a.a.MathNode("mspace"),t.setAttribute("width",i.a.spacingFunctions[e.value].size)),t},p.horizBrace=function(e,t){var n=f.a.mathMLnode(e.value.label);return new a.a.MathNode(e.value.isOver?"mover":"munder",[y(e.value.base,t),n])},p.xArrow=function(e,t){var n=f.a.mathMLnode(e.value.label),r=void 0,i=void 0;if(e.value.body){var o=y(e.value.body,t);e.value.below?(i=y(e.value.below,t),r=new a.a.MathNode("munderover",[n,i,o])):r=new a.a.MathNode("mover",[n,o])}else e.value.below?(i=y(e.value.below,t),r=new a.a.MathNode("munder",[n,i])):r=new a.a.MathNode("mover",[n]);return r},p.mclass=function(e,t){var n=v(e.value.value,t);return new a.a.MathNode("mstyle",n)},p.raisebox=function(e,t){var n=new a.a.MathNode("mpadded",[y(e.value.body,t)]),r=e.value.dy.value.number+e.value.dy.value.unit;return n.setAttribute("voffset",r),n};var v=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];n.push(y(i,t))}return n},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return new a.a.MathNode("mrow");if(p[e.type]){var r=p[e.type](e,t);return n&&"mrow"===r.type&&1===r.children.length?r.children[0]:r}throw new s.a("Got group of unknown type: '"+e.type+"'")}},function(e,t,n){"use strict";function r(e){for(var t=e.type,n=e.names,r=e.props,s=e.handler,u=e.htmlBuilder,l=e.mathmlBuilder,c={numArgs:r.numArgs,argTypes:r.argTypes,greediness:void 0===r.greediness?1:r.greediness,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,handler:s},f=0;f<n.length;++f)a[n[f]]=c;t&&(u&&(i.d[t]=u),l&&(o.d[t]=l))}n.d(t,"a",function(){return a}),t.b=r,n.d(t,"c",function(){return s});var i=n(4),o=n(2),a={},s=function(e){return"ordgroup"===e.type?e.value:[e]}},function(e,t,n){"use strict";function r(e,t){e=JSON.parse(o()(e));var n=w(e,t,!0),r=v(["base"],n,t),i=v(["strut"]),a=v(["strut","bottom"]);i.style.height=r.height+"em",a.style.height=r.height+r.depth+"em",a.style.verticalAlign=-r.depth+"em";var s=v(["katex-html"],[i,a,r]);return s.setAttribute("aria-hidden","true"),s}n.d(t,"a",function(){return w}),n.d(t,"e",function(){return S}),n.d(t,"d",function(){return k}),n.d(t,"b",function(){return C}),t.c=r;var i=n(77),o=n.n(i),a=n(35),s=n.n(a),u=n(6),l=n(9),c=n(0),f=n(12),d=n(19),h=n(5),p=n(13),m=n(112),v=c.a.makeSpan,y=function(e,t){return e?h.a.contains(["mbin","mopen","mrel","mop","mpunct"],E(e,"right")):t},g=function(e,t){return e?h.a.contains(["mrel","mclose","mpunct"],E(e,"left")):t},b={display:l.a.DISPLAY,text:l.a.TEXT,script:l.a.SCRIPT,scriptscript:l.a.SCRIPTSCRIPT},w=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[null,null],i=[],o=0;o<e.length;o++){var a=e[o],u=C(a,t);u instanceof f.a.documentFragment?i.push.apply(i,s()(u.children)):i.push(u)}for(var l=[r[0]&&v([r[0]],[],t)].concat(s()(i.filter(function(e){return e&&"mspace"!==e.classes[0]})),[r[1]&&v([r[1]],[],t)]),d=1;d<l.length-1;d++){var h=_(l[d],"left");"mbin"===h.classes[0]&&y(l[d-1],n)&&(h.classes[0]="mord");var p=_(l[d],"right");"mbin"===p.classes[0]&&g(l[d+1],n)&&(p.classes[0]="mord")}for(var w=[],x=0,S=0;S<i.length;S++)if(w.push(i[S]),"mspace"!==i[S].classes[0]&&x<l.length-1){0===x&&(w.pop(),S--);var k=E(l[x],"right"),O=E(l[x+1],"left");if(k&&O&&n){var N=T(l[x+1])?m.b[k][O]:m.a[k][O];if(N){var P=t;1===e.length&&("sizing"===e[0].type?P=t.havingSize(e[0].value.size):"styling"===e[0].type&&(P=t.havingStyle(b[e[0].value.style]))),w.push(c.a.makeGlue(N,P))}}x++}for(var I=0;I<w.length;I++)"\u0338"===w[I].value&&(w[I].style.position="absolute",w[I].style.paddingLeft="0.8em");return w},_=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";if((t instanceof f.a.documentFragment||t instanceof f.a.anchor)&&t.children.length){if("right"===n)return e(t.children[t.children.length-1]);if("left"===n)return e(t.children[0])}return t},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";return e?(e=_(e,t),h.a.contains(["mord","mop","mbin","mrel","mopen","mclose","mpunct","minner"],e.classes[0])?e.classes[0]:null):null},T=function(e){return e=_(e,"left"),h.a.contains(e.classes,"mtight")},x=function(e,t){if(e.value.base){var n=e.value.base;if("op"===n.type)return n.value.limits&&(t.style.size===l.a.DISPLAY.size||n.value.alwaysHandleSupSub);if("accent"===n.type)return h.a.isCharacterBox(n.value.base);if("horizBrace"===n.type){return!e.value.sub===n.value.isOver}return null}return!1},S=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return v(t.concat(n))},k={};k.mathord=function(e,t){return c.a.makeOrd(e,t,"mathord")},k.textord=function(e,t){return c.a.makeOrd(e,t,"textord")},k.bin=function(e,t){return c.a.mathsym(e.value,e.mode,t,["mbin"])},k.rel=function(e,t){return c.a.mathsym(e.value,e.mode,t,["mrel"])},k.open=function(e,t){return c.a.mathsym(e.value,e.mode,t,["mopen"])},k.close=function(e,t){return c.a.mathsym(e.value,e.mode,t,["mclose"])},k.inner=function(e,t){return c.a.mathsym(e.value,e.mode,t,["minner"])},k.punct=function(e,t){return c.a.mathsym(e.value,e.mode,t,["mpunct"])},k.ordgroup=function(e,t){return v(["mord"],w(e.value,t,!0),t)},k.supsub=function(e,t){if(x(e,t))return k[e.value.base.type](e,t);var n=C(e.value.base,t),r=void 0,i=void 0,o=t.fontMetrics(),a=void 0,s=0,u=0;e.value.sup&&(a=t.havingStyle(t.style.sup()),r=C(e.value.sup,a,t),h.a.isCharacterBox(e.value.base)||(s=n.height-a.fontMetrics().supDrop*a.sizeMultiplier/t.sizeMultiplier)),e.value.sub&&(a=t.havingStyle(t.style.sub()),i=C(e.value.sub,a,t),h.a.isCharacterBox(e.value.base)||(u=n.depth+a.fontMetrics().subDrop*a.sizeMultiplier/t.sizeMultiplier));var d=void 0;d=t.style===l.a.DISPLAY?o.sup1:t.style.cramped?o.sup3:o.sup2;var p=t.sizeMultiplier,m=.5/o.ptPerEm/p+"em",y=void 0;if(e.value.sup)if(e.value.sub){s=Math.max(s,d,r.depth+.25*o.xHeight),u=Math.max(u,o.sub2);var g=o.defaultRuleThickness;if(s-r.depth-(i.height-u)<4*g){u=4*g-(s-r.depth)+i.height;var b=.8*o.xHeight-(s-r.depth);b>0&&(s+=b,u-=b)}var w=[{type:"elem",elem:i,shift:u,marginRight:m},{type:"elem",elem:r,shift:-s,marginRight:m}];n instanceof f.a.symbolNode&&(w[0].marginLeft=-n.italic+"em"),y=c.a.makeVList({positionType:"individualShift",children:w},t)}else s=Math.max(s,d,r.depth+.25*o.xHeight),y=c.a.makeVList({positionType:"shift",positionData:-s,children:[{type:"elem",elem:r,marginRight:m}]},t);else{u=Math.max(u,o.sub1,i.height-.8*o.xHeight);var _=[{type:"elem",elem:i,marginRight:m}];n instanceof f.a.symbolNode&&(_[0].marginLeft=-n.italic+"em"),y=c.a.makeVList({positionType:"shift",positionData:u,children:_},t)}var T=E(n)||"mord";return v([T],[n,v(["msupsub"],[y])],t)},k.spacing=function(e,t){return"\\ "===e.value||"\\space"===e.value||" "===e.value||"~"===e.value?"text"===e.mode?c.a.makeOrd(e,t,"textord"):v(["mspace"],[c.a.mathsym(e.value,e.mode,t)],t):v(["mspace",c.a.spacingFunctions[e.value].className],[],t)},k.horizBrace=function(e,t){var n=t.style,r="supsub"===e.type,i=void 0,o=void 0;r&&(e.value.sup?(o=t.havingStyle(n.sup()),i=C(e.value.sup,o,t)):(o=t.havingStyle(n.sub()),i=C(e.value.sub,o,t)),e=e.value.base);var a=C(e.value.base,t.havingBaseStyle(l.a.DISPLAY)),s=p.a.svgSpan(e,t),u=void 0;if(e.value.isOver?(u=c.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),u.children[0].children[0].children[1].classes.push("svg-align")):(u=c.a.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),u.children[0].children[0].children[0].classes.push("svg-align")),r){var f=v(["mord",e.value.isOver?"mover":"munder"],[u],t);u=e.value.isOver?c.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:i}]},t):c.a.makeVList({positionType:"bottom",positionData:f.depth+.2+i.height,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:f}]},t)}return v(["mord",e.value.isOver?"mover":"munder"],[u],t)},k.xArrow=function(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=C(e.value.body,r,t);i.classes.push("x-arrow-pad");var o=void 0;e.value.below&&(r=t.havingStyle(n.sub()),o=C(e.value.below,r,t),o.classes.push("x-arrow-pad"));var a=p.a.svgSpan(e,t),s=-t.fontMetrics().axisHeight+.5*a.height,u=-t.fontMetrics().axisHeight-.5*a.height-.111;"\\xleftequilibrium"===e.value.label&&(u-=i.depth);var l=void 0;if(e.value.below){var f=-t.fontMetrics().axisHeight+o.height+.5*a.height+.111;l=c.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:a,shift:s},{type:"elem",elem:o,shift:f}]},t)}else l=c.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:a,shift:s}]},t);return l.children[0].children[0].children[1].classes.push("svg-align"),v(["mrel","x-arrow"],[l],t)},k.mclass=function(e,t){var n=w(e.value.value,t,!0);return v([e.value.mclass],n,t)},k.raisebox=function(e,t){var n=k.sizing({value:{value:[{type:"text",value:{body:e.value.value,font:"mathrm"}}],size:6}},t),r=Object(d.a)(e.value.dy.value,t);return c.a.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)};var C=function(e,t,n){if(!e)return v();if(k[e.type]){var r=k[e.type](e,t);if(n&&t.size!==n.size){r=v(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new u.a("Got group of unknown type: '"+e.type+"'")}},function(e,t,n){"use strict";function r(e){return String(e).replace(d,function(e){return f[e]})}function i(e){h(e,"")}var o=Array.prototype.indexOf,a=function(e,t){if(null==e)return-1;if(o&&e.indexOf===o)return e.indexOf(t);for(var n=e.length,r=0;r<n;r++)if(e[r]===t)return r;return-1},s=function(e,t){return-1!==a(e,t)},u=function(e,t){return void 0===e?t:e},l=/([A-Z])/g,c=function(e){return e.replace(l,"-$1").toLowerCase()},f={"&":"&",">":">","<":"<",'"':""","'":"'"},d=/[&><"']/g,h=void 0;if("undefined"!==typeof document){var p=document.createElement("span");h="textContent"in p?function(e,t){e.textContent=t}:function(e,t){e.innerText=t}}var m=function e(t){return!!t&&("ordgroup"===t.type?1===t.value.length?e(t.value[0]):t:"color"===t.type?1===t.value.value.length?e(t.value.value[0]):t:"font"===t.type?e(t.value.body):t)},v=function(e){var t=m(e);return"mathord"===t.type||"textord"===t.type||"bin"===t.type||"rel"===t.type||"inner"===t.type||"open"===t.type||"close"===t.type||"punct"===t.type};t.a={contains:s,deflt:u,escape:r,hyphenate:c,indexOf:a,setTextContent:h,clearNode:i,getBaseElem:m,isCharacterBox:v}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),o=(n(14),n(27),function e(t,n){i()(this,e);var r="KaTeX parse error: "+t,o=void 0,a=n&&n.loc;if(a&&a.start<=a.end){var s=a.lexer.input;o=a.start;var u=a.end;o===s.length?r+=" at end of input: ":r+=" at position "+(o+1)+": ";var l=s.slice(o,u).replace(/[^]/g,"$&\u0332"),c=void 0;c=o>15?"\u2026"+s.slice(o-15,o):s.slice(0,o);var f=void 0;f=u+15<s.length?s.slice(u,u+15)+"\u2026":s.slice(u),r+=c+l+f}var d=new Error(r);return d.name="ParseError",d.__proto__=e.prototype,d.position=o,d});o.prototype.__proto__=Error.prototype,t.a=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";var r=n(7),i=n.n(r),o=n(10),a=n.n(o),s=function(){function e(t,n,r){i()(this,e),this.id=t,this.size=n,this.cramped=r}return a()(e,[{key:"sup",value:function(){return u[l[this.id]]}},{key:"sub",value:function(){return u[c[this.id]]}},{key:"fracNum",value:function(){return u[f[this.id]]}},{key:"fracDen",value:function(){return u[d[this.id]]}},{key:"cramp",value:function(){return u[h[this.id]]}},{key:"text",value:function(){return u[p[this.id]]}},{key:"isTight",value:function(){return this.size>=2}}]),e}(),u=[new s(0,0,!1),new s(1,0,!0),new s(2,1,!1),new s(3,1,!0),new s(4,2,!1),new s(5,2,!0),new s(6,3,!1),new s(7,3,!0)],l=[4,5,4,5,6,7,6,7],c=[5,5,5,5,7,7,7,7],f=[2,3,4,5,6,7,6,7],d=[3,3,5,5,7,7,7,7],h=[1,1,3,3,5,5,7,7],p=[0,1,2,3,2,3,2,3];t.a={DISPLAY:u[0],TEXT:u[2],SCRIPT:u[4],SCRIPTSCRIPT:u[6]}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(73),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){var r=n(52)("wks"),i=n(32),o=n(16).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(18),i=n.n(r),o=n(105),a=n.n(o),s=n(7),u=n.n(s),l=n(10),c=n.n(l),f=n(42),d=n(5),h=n(111),p=function(e){e=e.slice();for(var t=e.length-1;t>=0;t--)e[t]||e.splice(t,1);return e.join(" ")},m=function(){function e(t,n,r,i){if(u()(this,e),this.classes=t||[],this.children=n||[],this.height=0,this.depth=0,this.maxFontSize=0,this.style=a()({},i),this.attributes={},r){r.style.isTight()&&this.classes.push("mtight");var o=r.getColor();o&&(this.style.color=o)}}return c()(e,[{key:"setAttribute",value:function(e,t){this.attributes[e]=t}},{key:"tryCombine",value:function(e){return!1}},{key:"toNode",value:function(){var e=document.createElement("span");e.className=p(this.classes);for(var t in this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}},{key:"toMarkup",value:function(){var e="<span";this.classes.length&&(e+=' class="',e+=d.a.escape(p(this.classes)),e+='"');var t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=d.a.hyphenate(n)+":"+this.style[n]+";");t&&(e+=' style="'+d.a.escape(t)+'"');for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(e+=" "+r+'="',e+=d.a.escape(this.attributes[r]),e+='"');e+=">";for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+="</span>"}}]),e}(),v=function(){function e(t,n,r,i){u()(this,e),this.href=t,this.classes=n,this.children=r,this.height=0,this.depth=0,this.maxFontSize=0,this.style={},this.attributes={},i.style.isTight()&&this.classes.push("mtight");var o=i.getColor();o&&(this.style.color=o)}return c()(e,[{key:"setAttribute",value:function(e,t){this.attributes[e]=t}},{key:"tryCombine",value:function(e){return!1}},{key:"toNode",value:function(){var e=document.createElement("a");e.setAttribute("href",this.href),this.classes.length&&(e.className=p(this.classes));for(var t in this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}},{key:"toMarkup",value:function(){var e="<a";e+='href="'+(e+=d.a.escape(this.href))+'"',this.classes.length&&(e+=' class="'+d.a.escape(p(this.classes))+'"');var t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=d.a.hyphenate(n)+":"+this.style[n]+";");t&&(e+=' style="'+d.a.escape(t)+'"');for(var r in this.attributes)"href"!==r&&Object.prototype.hasOwnProperty.call(this.attributes,r)&&(e+=" "+r+'="'+d.a.escape(this.attributes[r])+'"');e+=">";var o=!0,a=!1,s=void 0;try{for(var u,l=i()(this.children);!(o=(u=l.next()).done);o=!0){e+=u.value.toMarkup()}}catch(e){a=!0,s=e}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}return e+="</a>"}}]),e}(),y=function(){function e(t){u()(this,e),this.children=t||[],this.height=0,this.depth=0,this.maxFontSize=0}return c()(e,[{key:"toNode",value:function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}},{key:"toMarkup",value:function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}}]),e}(),g={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"},b=function(){function e(t,n,r,i,o,s,l,c){u()(this,e),this.value=t,this.height=n||0,this.depth=r||0,this.italic=i||0,this.skew=o||0,this.width=s||0,this.classes=l||[],this.style=a()({},c),this.maxFontSize=0;var d=Object(f.a)(this.value.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[\xee\xef\xed\xec]/.test(this.value)&&(this.value=g[this.value])}return c()(e,[{key:"tryCombine",value:function(t){if(!t||!(t instanceof e)||this.italic>0||p(this.classes)!==p(t.classes)||this.skew!==t.skew||this.maxFontSize!==t.maxFontSize)return!1;for(var n in this.style)if(this.style.hasOwnProperty(n)&&this.style[n]!==t.style[n])return!1;for(var r in t.style)if(t.style.hasOwnProperty(r)&&this.style[r]!==t.style[r])return!1;return this.value+=t.value,this.height=Math.max(this.height,t.height),this.depth=Math.max(this.depth,t.depth),this.italic=t.italic,!0}},{key:"toNode",value:function(){var e=document.createTextNode(this.value),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=this.italic+"em"),this.classes.length>0&&(t=t||document.createElement("span"),t.className=p(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(t=t||document.createElement("span"),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e}},{key:"toMarkup",value:function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=d.a.escape(p(this.classes)),t+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=d.a.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+d.a.escape(n)+'"');var i=d.a.escape(this.value);return e?(t+=">",t+=i,t+="</span>"):i}}]),e}(),w=function(){function e(t,n){u()(this,e),this.children=t||[],this.attributes=n||{},this.height=0,this.depth=0,this.maxFontSize=0}return c()(e,[{key:"toNode",value:function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}},{key:"toMarkup",value:function(){var e="<svg";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>"}}]),e}(),_=function(){function e(t,n){u()(this,e),this.pathName=t,this.alternate=n}return c()(e,[{key:"toNode",value:function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",h.a.path[this.pathName]),e}},{key:"toMarkup",value:function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+h.a.path[this.pathName]+"'/>"}}]),e}(),E=function(){function e(t){u()(this,e),this.attributes=t||{}}return c()(e,[{key:"toNode",value:function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}},{key:"toMarkup",value:function(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>"}}]),e}();t.a={span:m,anchor:v,documentFragment:y,symbolNode:b,svgNode:w,pathNode:_,lineNode:E}},function(e,t,n){"use strict";var r=n(57),i=n.n(r),o=n(12),a=n(0),s=n(1),u=n(5),l={widehat:"^",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23b5",overbrace:"\u23de",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb"},c=function(e){var t=new s.a.MathNode("mo",[new s.a.TextNode(l[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},f={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,667],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},d=function(e){return"ordgroup"===e.type?e.value.length:1},h=function(e,t){var n=function(){var n=4e5,r=e.value.label.substr(1);if(u.a.contains(["widehat","widetilde","utilde"],r)){var s=d(e.value.base),l=void 0,c=void 0,h=void 0;if(s>5)l="widehat"===r?420:312,n="widehat"===r?2364:2340,h="widehat"===r?.42:.34,c=("widehat"===r?"widehat":"tilde")+"4";else{var p=[1,1,2,2,3,3][s];"widehat"===r?(n=[0,1062,2364,2364,2364][p],l=[0,239,300,360,420][p],h=[0,.24,.3,.3,.36,.42][p],c="widehat"+p):(n=[0,600,1033,2339,2340][p],l=[0,260,286,306,312][p],h=[0,.26,.286,.3,.306,.34][p],c="tilde"+p)}var m=new o.a.pathNode(c),v=new o.a.svgNode([m],{width:"100%",height:h+"em",viewBox:"0 0 "+n+" "+l,preserveAspectRatio:"none"});return{span:a.a.makeSpan([],[v],t),minWidth:0,height:h}}var y=[],g=i()(f[r],4),b=g[0],w=g[1],_=g[2],E=g[3],T=_/1e3,x=b.length,S=void 0,k=void 0;if(1===x)S=["hide-tail"],k=[E];else if(2===x)S=["halfarrow-left","halfarrow-right"],k=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");S=["brace-left","brace-center","brace-right"],k=["xMinYMin","xMidYMin","xMaxYMin"]}for(var C=0;C<x;C++){var O=new o.a.pathNode(b[C]),N=new o.a.svgNode([O],{width:"400em",height:T+"em",viewBox:"0 0 "+n+" "+_,preserveAspectRatio:k[C]+" slice"}),P=a.a.makeSpan([S[C]],[N],t);if(1===x)return{span:P,minWidth:w,height:T};P.style.height=T+"em",y.push(P)}return{span:a.a.makeSpan(["stretchy"],y,t),minWidth:w,height:T}}(),r=n.span,s=n.minWidth,l=n.height;return r.height=l,r.style.height=l+"em",s>0&&(r.style.minWidth=s+"em"),r},p=function(e,t,n,r){var i=void 0,s=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(i=a.a.makeSpan(["stretchy",t],[],r),"fbox"===t){var u=r.color&&r.getColor();u&&(i.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new o.a.lineNode({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new o.a.lineNode({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new o.a.svgNode(l,{width:"100%",height:s+"em"});i=a.a.makeSpan([],[c],r)}return i.height=s,i.style.height=s+"em",i},m=function(e,t,n){var r=void 0,i=void 0,s="stretchy";return"vertical-separator"===e?(r=new o.a.pathNode("vertSeparator"),i=new o.a.svgNode([r],{width:"0.25em",height:"400em",viewBox:"0 0 250 400000",preserveAspectRatio:"xMinYMin slice"}),s="vertical-separator"):(r=new o.a.pathNode("stdHorizRule"),i=new o.a.svgNode([r],{width:"400em",height:5*t+"em",viewBox:"0 0 400000 200",preserveAspectRatio:"xMinYMin slice"})),a.a.makeSpan([s],[i],n)};t.a={encloseSpan:p,mathMLnode:c,ruleSpan:m,svgSpan:h}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),o=n(31),a=function e(t,n,r,a,s){i()(this,e),this.type=t,this.value=n,this.mode=r,this.loc=o.a.range(a,s)};t.a=a},function(e,t,n){var r=n(22),i=n(70),o=n(71),a=Object.defineProperty;t.f=n(23)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports={}},function(e,t,n){e.exports={default:n(103),__esModule:!0}},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var r=n(6),i=(n(43),{pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375}),o={ex:!0,em:!0,mu:!0},a=function(e){return"string"!==typeof e&&(e=e.unit),e in i||e in o||"ex"===e},s=function(e,t){var n=void 0;if(e.unit in i)n=i[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var o=void 0;if(o=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=o.fontMetrics().xHeight;else{if("em"!==e.unit)throw new r.a("Invalid unit: '"+e.unit+"'");n=o.fontMetrics().quad}o!==t&&(n*=o.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(20);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(16),i=n(8),o=n(47),a=n(26),s=function(e,t,n){var u,l,c,f=e&s.F,d=e&s.G,h=e&s.S,p=e&s.P,m=e&s.B,v=e&s.W,y=d?i:i[t]||(i[t]={}),g=y.prototype,b=d?r:h?r[t]:(r[t]||{}).prototype;d&&(n=t);for(u in n)(l=!f&&b&&void 0!==b[u])&&u in y||(c=l?b[u]:n[u],y[u]=d&&"function"!=typeof b[u]?n[u]:m&&l?o(c,r):v&&b[u]==c?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):p&&"function"==typeof c?o(Function.call,c):c,p&&((y.virtual||(y.virtual={}))[u]=c,e&s.R&&g&&!g[u]&&a(g,u,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(15),i=n(33);e.exports=n(23)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(7),i=n.n(r),o=n(10),a=n.n(o),s=n(31),u=function(){function e(t,n){i()(this,e),this.text=t,this.loc=n}return a()(e,[{key:"range",value:function(t,n){return new e(n,s.a.range(this,t))}}]),e}()},function(e,t,n){"use strict";function r(e,t,n,r,o,a){i[e][o]={font:t,group:n,replace:r},a&&r&&(i[e][r]=i[e][o])}var i={math:{},text:{}};t.a=i;var o="math",a="text",s="main",u="ams",l="accent",c="bin",f="close",d="mathord",h="op",p="open",m="rel",v="spacing",y="textord";r(o,s,m,"\u2261","\\equiv",!0),r(o,s,m,"\u227a","\\prec",!0),r(o,s,m,"\u227b","\\succ",!0),r(o,s,m,"\u223c","\\sim",!0),r(o,s,m,"\u22a5","\\perp"),r(o,s,m,"\u2aaf","\\preceq",!0),r(o,s,m,"\u2ab0","\\succeq",!0),r(o,s,m,"\u2243","\\simeq",!0),r(o,s,m,"\u2223","\\mid",!0),r(o,s,m,"\u226a","\\ll"),r(o,s,m,"\u226b","\\gg",!0),r(o,s,m,"\u224d","\\asymp",!0),r(o,s,m,"\u2225","\\parallel"),r(o,s,m,"\u22c8","\\bowtie",!0),r(o,s,m,"\u2323","\\smile",!0),r(o,s,m,"\u2291","\\sqsubseteq",!0),r(o,s,m,"\u2292","\\sqsupseteq",!0),r(o,s,m,"\u2250","\\doteq",!0),r(o,s,m,"\u2322","\\frown",!0),r(o,s,m,"\u220b","\\ni",!0),r(o,s,m,"\u221d","\\propto",!0),r(o,s,m,"\u22a2","\\vdash",!0),r(o,s,m,"\u22a3","\\dashv",!0),r(o,s,m,"\u220b","\\owns"),r(o,s,"punct",".","\\ldotp"),r(o,s,"punct","\u22c5","\\cdotp"),r(o,s,y,"#","\\#"),r(a,s,y,"#","\\#"),r(o,s,y,"&","\\&"),r(a,s,y,"&","\\&"),r(o,s,y,"\u2135","\\aleph",!0),r(o,s,y,"\u2200","\\forall",!0),r(o,s,y,"\u210f","\\hbar"),r(o,s,y,"\u2203","\\exists",!0),r(o,s,y,"\u2207","\\nabla",!0),r(o,s,y,"\u266d","\\flat",!0),r(o,s,y,"\u2113","\\ell",!0),r(o,s,y,"\u266e","\\natural",!0),r(o,s,y,"\u2663","\\clubsuit",!0),r(o,s,y,"\u2118","\\wp",!0),r(o,s,y,"\u266f","\\sharp",!0),r(o,s,y,"\u2662","\\diamondsuit",!0),r(o,s,y,"\u211c","\\Re",!0),r(o,s,y,"\u2661","\\heartsuit",!0),r(o,s,y,"\u2111","\\Im",!0),r(o,s,y,"\u2660","\\spadesuit",!0),r(a,s,y,"\xa7","\\S",!0),r(a,s,y,"\xb6","\\P",!0),r(o,s,y,"\u2020","\\dag"),r(a,s,y,"\u2020","\\dag"),r(a,s,y,"\u2020","\\textdagger"),r(o,s,y,"\u2021","\\ddag"),r(a,s,y,"\u2021","\\ddag"),r(a,s,y,"\u2020","\\textdaggerdbl"),r(o,s,f,"\u23b1","\\rmoustache"),r(o,s,p,"\u23b0","\\lmoustache"),r(o,s,f,"\u27ef","\\rgroup"),r(o,s,p,"\u27ee","\\lgroup"),r(o,s,c,"\u2213","\\mp",!0),r(o,s,c,"\u2296","\\ominus",!0),r(o,s,c,"\u228e","\\uplus",!0),r(o,s,c,"\u2293","\\sqcap",!0),r(o,s,c,"\u2217","\\ast"),r(o,s,c,"\u2294","\\sqcup",!0),r(o,s,c,"\u25ef","\\bigcirc"),r(o,s,c,"\u2219","\\bullet"),r(o,s,c,"\u2021","\\ddagger"),r(o,s,c,"\u2240","\\wr",!0),r(o,s,c,"\u2a3f","\\amalg"),r(o,s,c,"&","\\And"),r(o,s,m,"\u27f5","\\longleftarrow",!0),r(o,s,m,"\u21d0","\\Leftarrow",!0),r(o,s,m,"\u27f8","\\Longleftarrow",!0),r(o,s,m,"\u27f6","\\longrightarrow",!0),r(o,s,m,"\u21d2","\\Rightarrow",!0),r(o,s,m,"\u27f9","\\Longrightarrow",!0),r(o,s,m,"\u2194","\\leftrightarrow",!0),r(o,s,m,"\u27f7","\\longleftrightarrow",!0),r(o,s,m,"\u21d4","\\Leftrightarrow",!0),r(o,s,m,"\u27fa","\\Longleftrightarrow",!0),r(o,s,m,"\u21a6","\\mapsto",!0),r(o,s,m,"\u27fc","\\longmapsto",!0),r(o,s,m,"\u2197","\\nearrow",!0),r(o,s,m,"\u21a9","\\hookleftarrow",!0),r(o,s,m,"\u21aa","\\hookrightarrow",!0),r(o,s,m,"\u2198","\\searrow",!0),r(o,s,m,"\u21bc","\\leftharpoonup",!0),r(o,s,m,"\u21c0","\\rightharpoonup",!0),r(o,s,m,"\u2199","\\swarrow",!0),r(o,s,m,"\u21bd","\\leftharpoondown",!0),r(o,s,m,"\u21c1","\\rightharpoondown",!0),r(o,s,m,"\u2196","\\nwarrow",!0),r(o,s,m,"\u21cc","\\rightleftharpoons",!0),r(o,u,m,"\u226e","\\nless",!0),r(o,u,m,"\ue010","\\nleqslant"),r(o,u,m,"\ue011","\\nleqq"),r(o,u,m,"\u2a87","\\lneq",!0),r(o,u,m,"\u2268","\\lneqq",!0),r(o,u,m,"\ue00c","\\lvertneqq"),r(o,u,m,"\u22e6","\\lnsim",!0),r(o,u,m,"\u2a89","\\lnapprox",!0),r(o,u,m,"\u2280","\\nprec",!0),r(o,u,m,"\u22e0","\\npreceq",!0),r(o,u,m,"\u22e8","\\precnsim",!0),r(o,u,m,"\u2ab9","\\precnapprox",!0),r(o,u,m,"\u2241","\\nsim",!0),r(o,u,m,"\ue006","\\nshortmid"),r(o,u,m,"\u2224","\\nmid",!0),r(o,u,m,"\u22ac","\\nvdash",!0),r(o,u,m,"\u22ad","\\nvDash",!0),r(o,u,m,"\u22ea","\\ntriangleleft"),r(o,u,m,"\u22ec","\\ntrianglelefteq",!0),r(o,u,m,"\u228a","\\subsetneq",!0),r(o,u,m,"\ue01a","\\varsubsetneq"),r(o,u,m,"\u2acb","\\subsetneqq",!0),r(o,u,m,"\ue017","\\varsubsetneqq"),r(o,u,m,"\u226f","\\ngtr",!0),r(o,u,m,"\ue00f","\\ngeqslant"),r(o,u,m,"\ue00e","\\ngeqq"),r(o,u,m,"\u2a88","\\gneq",!0),r(o,u,m,"\u2269","\\gneqq",!0),r(o,u,m,"\ue00d","\\gvertneqq"),r(o,u,m,"\u22e7","\\gnsim",!0),r(o,u,m,"\u2a8a","\\gnapprox",!0),r(o,u,m,"\u2281","\\nsucc",!0),r(o,u,m,"\u22e1","\\nsucceq",!0),r(o,u,m,"\u22e9","\\succnsim",!0),r(o,u,m,"\u2aba","\\succnapprox",!0),r(o,u,m,"\u2246","\\ncong",!0),r(o,u,m,"\ue007","\\nshortparallel"),r(o,u,m,"\u2226","\\nparallel",!0),r(o,u,m,"\u22af","\\nVDash",!0),r(o,u,m,"\u22eb","\\ntriangleright"),r(o,u,m,"\u22ed","\\ntrianglerighteq",!0),r(o,u,m,"\ue018","\\nsupseteqq"),r(o,u,m,"\u228b","\\supsetneq",!0),r(o,u,m,"\ue01b","\\varsupsetneq"),r(o,u,m,"\u2acc","\\supsetneqq",!0),r(o,u,m,"\ue019","\\varsupsetneqq"),r(o,u,m,"\u22ae","\\nVdash",!0),r(o,u,m,"\u2ab5","\\precneqq",!0),r(o,u,m,"\u2ab6","\\succneqq",!0),r(o,u,m,"\ue016","\\nsubseteqq"),r(o,u,c,"\u22b4","\\unlhd"),r(o,u,c,"\u22b5","\\unrhd"),r(o,u,m,"\u219a","\\nleftarrow",!0),r(o,u,m,"\u219b","\\nrightarrow",!0),r(o,u,m,"\u21cd","\\nLeftarrow",!0),r(o,u,m,"\u21cf","\\nRightarrow",!0),r(o,u,m,"\u21ae","\\nleftrightarrow",!0),r(o,u,m,"\u21ce","\\nLeftrightarrow",!0),r(o,u,m,"\u25b3","\\vartriangle"),r(o,u,y,"\u210f","\\hslash"),r(o,u,y,"\u25bd","\\triangledown"),r(o,u,y,"\u25ca","\\lozenge"),r(o,u,y,"\u24c8","\\circledS"),r(o,u,y,"\xae","\\circledR"),r(a,u,y,"\xae","\\circledR"),r(o,u,y,"\u2221","\\measuredangle",!0),r(o,u,y,"\u2204","\\nexists"),r(o,u,y,"\u2127","\\mho"),r(o,u,y,"\u2132","\\Finv",!0),r(o,u,y,"\u2141","\\Game",!0),r(o,u,y,"k","\\Bbbk"),r(o,u,y,"\u2035","\\backprime"),r(o,u,y,"\u25b2","\\blacktriangle"),r(o,u,y,"\u25bc","\\blacktriangledown"),r(o,u,y,"\u25a0","\\blacksquare"),r(o,u,y,"\u29eb","\\blacklozenge"),r(o,u,y,"\u2605","\\bigstar"),r(o,u,y,"\u2222","\\sphericalangle",!0),r(o,u,y,"\u2201","\\complement",!0),r(o,u,y,"\xf0","\\eth",!0),r(o,u,y,"\u2571","\\diagup"),r(o,u,y,"\u2572","\\diagdown"),r(o,u,y,"\u25a1","\\square"),r(o,u,y,"\u25a1","\\Box"),r(o,u,y,"\u25ca","\\Diamond"),r(o,u,y,"\xa5","\\yen",!0),r(o,u,y,"\u2713","\\checkmark",!0),r(a,u,y,"\u2713","\\checkmark"),r(o,u,y,"\u2136","\\beth",!0),r(o,u,y,"\u2138","\\daleth",!0),r(o,u,y,"\u2137","\\gimel",!0),r(o,u,y,"\u03dd","\\digamma"),r(o,u,y,"\u03f0","\\varkappa"),r(o,u,p,"\u250c","\\ulcorner"),r(o,u,f,"\u2510","\\urcorner"),r(o,u,p,"\u2514","\\llcorner"),r(o,u,f,"\u2518","\\lrcorner"),r(o,u,m,"\u2266","\\leqq",!0),r(o,u,m,"\u2a7d","\\leqslant"),r(o,u,m,"\u2a95","\\eqslantless",!0),r(o,u,m,"\u2272","\\lesssim"),r(o,u,m,"\u2a85","\\lessapprox"),r(o,u,m,"\u224a","\\approxeq",!0),r(o,u,c,"\u22d6","\\lessdot"),r(o,u,m,"\u22d8","\\lll"),r(o,u,m,"\u2276","\\lessgtr"),r(o,u,m,"\u22da","\\lesseqgtr");r(o,u,m,"\u2a8b","\\lesseqqgtr"),r(o,u,m,"\u2251","\\doteqdot"),r(o,u,m,"\u2253","\\risingdotseq",!0),r(o,u,m,"\u2252","\\fallingdotseq",!0),r(o,u,m,"\u223d","\\backsim",!0),r(o,u,m,"\u22cd","\\backsimeq",!0),r(o,u,m,"\u2ac5","\\subseteqq",!0),r(o,u,m,"\u22d0","\\Subset",!0),r(o,u,m,"\u228f","\\sqsubset",!0),r(o,u,m,"\u227c","\\preccurlyeq",!0),r(o,u,m,"\u22de","\\curlyeqprec",!0),r(o,u,m,"\u227e","\\precsim",!0),r(o,u,m,"\u2ab7","\\precapprox",!0),r(o,u,m,"\u22b2","\\vartriangleleft"),r(o,u,m,"\u22b4","\\trianglelefteq"),r(o,u,m,"\u22a8","\\vDash"),r(o,u,m,"\u22aa","\\Vvdash",!0),r(o,u,m,"\u2323","\\smallsmile"),r(o,u,m,"\u2322","\\smallfrown"),r(o,u,m,"\u224f","\\bumpeq",!0),r(o,u,m,"\u224e","\\Bumpeq",!0),r(o,u,m,"\u2267","\\geqq",!0),r(o,u,m,"\u2a7e","\\geqslant",!0),r(o,u,m,"\u2a96","\\eqslantgtr",!0),r(o,u,m,"\u2273","\\gtrsim",!0),r(o,u,m,"\u2a86","\\gtrapprox",!0),r(o,u,c,"\u22d7","\\gtrdot"),r(o,u,m,"\u22d9","\\ggg",!0),r(o,u,m,"\u2277","\\gtrless",!0),r(o,u,m,"\u22db","\\gtreqless",!0),r(o,u,m,"\u2a8c","\\gtreqqless",!0),r(o,u,m,"\u2256","\\eqcirc",!0),r(o,u,m,"\u2257","\\circeq",!0),r(o,u,m,"\u225c","\\triangleq",!0),r(o,u,m,"\u223c","\\thicksim"),r(o,u,m,"\u2248","\\thickapprox"),r(o,u,m,"\u2ac6","\\supseteqq",!0),r(o,u,m,"\u22d1","\\Supset",!0),r(o,u,m,"\u2290","\\sqsupset",!0),r(o,u,m,"\u227d","\\succcurlyeq",!0),r(o,u,m,"\u22df","\\curlyeqsucc",!0),r(o,u,m,"\u227f","\\succsim",!0),r(o,u,m,"\u2ab8","\\succapprox",!0),r(o,u,m,"\u22b3","\\vartriangleright"),r(o,u,m,"\u22b5","\\trianglerighteq"),r(o,u,m,"\u22a9","\\Vdash",!0),r(o,u,m,"\u2223","\\shortmid"),r(o,u,m,"\u2225","\\shortparallel"),r(o,u,m,"\u226c","\\between",!0),r(o,u,m,"\u22d4","\\pitchfork",!0),r(o,u,m,"\u221d","\\varpropto"),r(o,u,m,"\u25c0","\\blacktriangleleft"),r(o,u,m,"\u2234","\\therefore",!0),r(o,u,m,"\u220d","\\backepsilon"),r(o,u,m,"\u25b6","\\blacktriangleright"),r(o,u,m,"\u2235","\\because",!0),r(o,u,m,"\u22d8","\\llless"),r(o,u,m,"\u22d9","\\gggtr"),r(o,u,c,"\u22b2","\\lhd"),r(o,u,c,"\u22b3","\\rhd"),r(o,u,m,"\u2242","\\eqsim",!0),r(o,s,m,"\u22c8","\\Join"),r(o,u,m,"\u2251","\\Doteq",!0),r(o,u,c,"\u2214","\\dotplus",!0),r(o,u,c,"\u2216","\\smallsetminus"),r(o,u,c,"\u22d2","\\Cap",!0),r(o,u,c,"\u22d3","\\Cup",!0),r(o,u,c,"\u2a5e","\\doublebarwedge",!0),r(o,u,c,"\u229f","\\boxminus",!0),r(o,u,c,"\u229e","\\boxplus",!0),r(o,u,c,"\u22c7","\\divideontimes",!0),r(o,u,c,"\u22c9","\\ltimes",!0),r(o,u,c,"\u22ca","\\rtimes",!0),r(o,u,c,"\u22cb","\\leftthreetimes",!0),r(o,u,c,"\u22cc","\\rightthreetimes",!0),r(o,u,c,"\u22cf","\\curlywedge",!0),r(o,u,c,"\u22ce","\\curlyvee",!0),r(o,u,c,"\u229d","\\circleddash",!0),r(o,u,c,"\u229b","\\circledast",!0),r(o,u,c,"\u22c5","\\centerdot"),r(o,u,c,"\u22ba","\\intercal",!0),r(o,u,c,"\u22d2","\\doublecap"),r(o,u,c,"\u22d3","\\doublecup"),r(o,u,c,"\u22a0","\\boxtimes",!0),r(o,u,m,"\u21e2","\\dashrightarrow",!0),r(o,u,m,"\u21e0","\\dashleftarrow",!0),r(o,u,m,"\u21c7","\\leftleftarrows",!0),r(o,u,m,"\u21c6","\\leftrightarrows",!0),r(o,u,m,"\u21da","\\Lleftarrow",!0),r(o,u,m,"\u219e","\\twoheadleftarrow",!0),r(o,u,m,"\u21a2","\\leftarrowtail",!0),r(o,u,m,"\u21ab","\\looparrowleft",!0),r(o,u,m,"\u21cb","\\leftrightharpoons",!0),r(o,u,m,"\u21b6","\\curvearrowleft",!0),r(o,u,m,"\u21ba","\\circlearrowleft",!0),r(o,u,m,"\u21b0","\\Lsh",!0),r(o,u,m,"\u21c8","\\upuparrows",!0),r(o,u,m,"\u21bf","\\upharpoonleft",!0),r(o,u,m,"\u21c3","\\downharpoonleft",!0),r(o,u,m,"\u22b8","\\multimap",!0),r(o,u,m,"\u21ad","\\leftrightsquigarrow",!0),r(o,u,m,"\u21c9","\\rightrightarrows",!0),r(o,u,m,"\u21c4","\\rightleftarrows",!0),r(o,u,m,"\u21a0","\\twoheadrightarrow",!0),r(o,u,m,"\u21a3","\\rightarrowtail",!0),r(o,u,m,"\u21ac","\\looparrowright",!0),r(o,u,m,"\u21b7","\\curvearrowright",!0),r(o,u,m,"\u21bb","\\circlearrowright",!0),r(o,u,m,"\u21b1","\\Rsh",!0),r(o,u,m,"\u21ca","\\downdownarrows",!0),r(o,u,m,"\u21be","\\upharpoonright",!0),r(o,u,m,"\u21c2","\\downharpoonright",!0),r(o,u,m,"\u21dd","\\rightsquigarrow",!0),r(o,u,m,"\u21dd","\\leadsto"),r(o,u,m,"\u21db","\\Rrightarrow",!0),r(o,u,m,"\u21be","\\restriction"),r(o,s,y,"\u2018","`"),r(o,s,y,"$","\\$"),r(a,s,y,"$","\\$"),r(a,s,y,"$","\\textdollar"),r(o,s,y,"%","\\%"),r(a,s,y,"%","\\%"),r(o,s,y,"_","\\_"),r(a,s,y,"_","\\_"),r(a,s,y,"_","\\textunderscore"),r(o,s,y,"\u2220","\\angle",!0),r(o,s,y,"\u221e","\\infty",!0),r(o,s,y,"\u2032","\\prime"),r(o,s,y,"\u25b3","\\triangle"),r(o,s,y,"\u0393","\\Gamma",!0),r(o,s,y,"\u0394","\\Delta",!0),r(o,s,y,"\u0398","\\Theta",!0),r(o,s,y,"\u039b","\\Lambda",!0),r(o,s,y,"\u039e","\\Xi",!0),r(o,s,y,"\u03a0","\\Pi",!0),r(o,s,y,"\u03a3","\\Sigma",!0),r(o,s,y,"\u03a5","\\Upsilon",!0),r(o,s,y,"\u03a6","\\Phi",!0),r(o,s,y,"\u03a8","\\Psi",!0),r(o,s,y,"\u03a9","\\Omega",!0),r(o,s,y,"\xac","\\neg"),r(o,s,y,"\xac","\\lnot"),r(o,s,y,"\u22a4","\\top"),r(o,s,y,"\u22a5","\\bot"),r(o,s,y,"\u2205","\\emptyset"),r(o,u,y,"\u2205","\\varnothing"),r(o,s,d,"\u03b1","\\alpha",!0),r(o,s,d,"\u03b2","\\beta",!0),r(o,s,d,"\u03b3","\\gamma",!0),r(o,s,d,"\u03b4","\\delta",!0),r(o,s,d,"\u03f5","\\epsilon",!0),r(o,s,d,"\u03b6","\\zeta",!0),r(o,s,d,"\u03b7","\\eta",!0),r(o,s,d,"\u03b8","\\theta",!0),r(o,s,d,"\u03b9","\\iota",!0),r(o,s,d,"\u03ba","\\kappa",!0),r(o,s,d,"\u03bb","\\lambda",!0),r(o,s,d,"\u03bc","\\mu",!0),r(o,s,d,"\u03bd","\\nu",!0),r(o,s,d,"\u03be","\\xi",!0),r(o,s,d,"\u03bf","\\omicron",!0),r(o,s,d,"\u03c0","\\pi",!0),r(o,s,d,"\u03c1","\\rho",!0),r(o,s,d,"\u03c3","\\sigma",!0),r(o,s,d,"\u03c4","\\tau",!0),r(o,s,d,"\u03c5","\\upsilon",!0),r(o,s,d,"\u03d5","\\phi",!0),r(o,s,d,"\u03c7","\\chi",!0),r(o,s,d,"\u03c8","\\psi",!0),r(o,s,d,"\u03c9","\\omega",!0),r(o,s,d,"\u03b5","\\varepsilon",!0),r(o,s,d,"\u03d1","\\vartheta",!0),r(o,s,d,"\u03d6","\\varpi",!0),r(o,s,d,"\u03f1","\\varrho",!0),r(o,s,d,"\u03c2","\\varsigma",!0),r(o,s,d,"\u03c6","\\varphi",!0),r(o,s,c,"\u2217","*"),r(o,s,c,"+","+"),r(o,s,c,"\u2212","-"),r(o,s,c,"\u22c5","\\cdot",!0),r(o,s,c,"\u2218","\\circ"),r(o,s,c,"\xf7","\\div",!0),r(o,s,c,"\xb1","\\pm",!0),r(o,s,c,"\xd7","\\times",!0),r(o,s,c,"\u2229","\\cap",!0),r(o,s,c,"\u222a","\\cup",!0),r(o,s,c,"\u2216","\\setminus"),r(o,s,c,"\u2227","\\land"),r(o,s,c,"\u2228","\\lor"),r(o,s,c,"\u2227","\\wedge",!0),r(o,s,c,"\u2228","\\vee",!0),r(o,s,y,"\u221a","\\surd"),r(o,s,p,"(","("),r(o,s,p,"[","["),r(o,s,p,"\u27e8","\\langle",!0),r(o,s,p,"\u2223","\\lvert"),r(o,s,p,"\u2225","\\lVert"),r(o,s,f,")",")"),r(o,s,f,"]","]"),r(o,s,f,"?","?");r(o,s,f,"!","!"),r(o,s,f,"\u27e9","\\rangle",!0),r(o,s,f,"\u2223","\\rvert"),r(o,s,f,"\u2225","\\rVert"),r(o,s,m,"=","="),r(o,s,m,"<","<"),r(o,s,m,">",">"),r(o,s,m,":",":"),r(o,s,m,"\u2248","\\approx",!0),r(o,s,m,"\u2245","\\cong",!0),r(o,s,m,"\u2265","\\ge"),r(o,s,m,"\u2265","\\geq",!0),r(o,s,m,"\u2190","\\gets"),r(o,s,m,">","\\gt"),r(o,s,m,"\u2208","\\in",!0),r(o,s,m,"\u2209","\\notin",!0),r(o,s,m,"\u0338","\\not"),r(o,s,m,"\u2282","\\subset",!0),r(o,s,m,"\u2283","\\supset",!0),r(o,s,m,"\u2286","\\subseteq",!0),r(o,s,m,"\u2287","\\supseteq",!0),r(o,u,m,"\u2288","\\nsubseteq",!0),r(o,u,m,"\u2289","\\nsupseteq",!0),r(o,s,m,"\u22a8","\\models"),r(o,s,m,"\u2190","\\leftarrow",!0),r(o,s,m,"\u2264","\\le"),r(o,s,m,"\u2264","\\leq",!0),r(o,s,m,"<","\\lt"),r(o,s,m,"\u2260","\\ne",!0),r(o,s,m,"\u2260","\\neq"),r(o,s,m,"\u2192","\\rightarrow",!0),r(o,s,m,"\u2192","\\to"),r(o,u,m,"\u2271","\\ngeq",!0),r(o,u,m,"\u2270","\\nleq",!0),r(o,s,v,null,"\\!"),r(o,s,v,"\xa0","\\ "),r(o,s,v,"\xa0","~"),r(o,s,v,null,"\\,"),r(o,s,v,null,"\\:"),r(o,s,v,null,"\\;"),r(o,s,v,null,"\\enspace"),r(o,s,v,null,"\\qquad"),r(o,s,v,null,"\\quad"),r(o,s,v,"\xa0","\\space"),r(o,s,v,"\xa0","\\nobreakspace"),r(a,s,v,null,"\\!"),r(a,s,v,"\xa0","\\ "),r(a,s,v,"\xa0","~"),r(a,s,v,null,"\\,"),r(a,s,v,null,"\\:"),r(a,s,v,null,"\\;"),r(a,s,v,null,"\\enspace"),r(a,s,v,null,"\\qquad"),r(a,s,v,null,"\\quad"),r(a,s,v,"\xa0","\\space"),r(a,s,v,"\xa0","\\nobreakspace"),r(o,s,"punct",",",","),r(o,s,"punct",";",";"),r(o,s,"punct",":","\\colon"),r(o,u,c,"\u22bc","\\barwedge",!0),r(o,u,c,"\u22bb","\\veebar",!0),r(o,s,c,"\u2299","\\odot",!0),r(o,s,c,"\u2295","\\oplus",!0),r(o,s,c,"\u2297","\\otimes",!0),r(o,s,y,"\u2202","\\partial",!0),r(o,s,c,"\u2298","\\oslash",!0),r(o,u,c,"\u229a","\\circledcirc",!0),r(o,u,c,"\u22a1","\\boxdot",!0),r(o,s,c,"\u25b3","\\bigtriangleup"),r(o,s,c,"\u25bd","\\bigtriangledown"),r(o,s,c,"\u2020","\\dagger"),r(o,s,c,"\u22c4","\\diamond"),r(o,s,c,"\u22c6","\\star"),r(o,s,c,"\u25c3","\\triangleleft"),r(o,s,c,"\u25b9","\\triangleright"),r(o,s,p,"{","\\{"),r(a,s,y,"{","\\{"),r(a,s,y,"{","\\textbraceleft"),r(o,s,f,"}","\\}"),r(a,s,y,"}","\\}"),r(a,s,y,"}","\\textbraceright"),r(o,s,p,"{","\\lbrace"),r(o,s,f,"}","\\rbrace"),r(o,s,p,"[","\\lbrack"),r(o,s,f,"]","\\rbrack"),r(a,s,y,"<","\\textless"),r(a,s,y,">","\\textgreater"),r(o,s,p,"\u230a","\\lfloor"),r(o,s,f,"\u230b","\\rfloor"),r(o,s,p,"\u2308","\\lceil"),r(o,s,f,"\u2309","\\rceil"),r(o,s,y,"\\","\\backslash"),r(o,s,y,"\u2223","|"),r(o,s,y,"\u2223","\\vert"),r(a,s,y,"|","\\textbar"),r(o,s,y,"\u2225","\\|"),r(o,s,y,"\u2225","\\Vert"),r(a,s,y,"\u2225","\\textbardbl"),r(o,s,m,"\u2191","\\uparrow",!0),r(o,s,m,"\u21d1","\\Uparrow",!0),r(o,s,m,"\u2193","\\downarrow",!0),r(o,s,m,"\u21d3","\\Downarrow",!0),r(o,s,m,"\u2195","\\updownarrow",!0),r(o,s,m,"\u21d5","\\Updownarrow",!0),r(o,s,h,"\u2210","\\coprod"),r(o,s,h,"\u22c1","\\bigvee"),r(o,s,h,"\u22c0","\\bigwedge"),r(o,s,h,"\u2a04","\\biguplus"),r(o,s,h,"\u22c2","\\bigcap"),r(o,s,h,"\u22c3","\\bigcup"),r(o,s,h,"\u222b","\\int"),r(o,s,h,"\u222b","\\intop"),r(o,s,h,"\u222c","\\iint"),r(o,s,h,"\u222d","\\iiint"),r(o,s,h,"\u220f","\\prod"),r(o,s,h,"\u2211","\\sum"),r(o,s,h,"\u2a02","\\bigotimes"),r(o,s,h,"\u2a01","\\bigoplus"),r(o,s,h,"\u2a00","\\bigodot"),r(o,s,h,"\u222e","\\oint"),r(o,s,h,"\u2a06","\\bigsqcup"),r(o,s,h,"\u222b","\\smallint"),r(a,s,"inner","\u2026","\\textellipsis"),r(o,s,"inner","\u2026","\\mathellipsis"),r(a,s,"inner","\u2026","\\ldots",!0),r(o,s,"inner","\u2026","\\ldots",!0),r(o,s,"inner","\u22ef","\\@cdots",!0),r(o,s,"inner","\u22f1","\\ddots",!0),r(o,s,y,"\u22ee","\\vdots",!0),r(o,s,l,"\u02ca","\\acute"),r(o,s,l,"\u02cb","\\grave"),r(o,s,l,"\xa8","\\ddot"),r(o,s,l,"~","\\tilde"),r(o,s,l,"\u02c9","\\bar"),r(o,s,l,"\u02d8","\\breve"),r(o,s,l,"\u02c7","\\check"),r(o,s,l,"^","\\hat"),r(o,s,l,"\u20d7","\\vec"),r(o,s,l,"\u02d9","\\dot"),r(o,s,l,"\u02da","\\mathring"),r(o,s,d,"\u0131","\\imath",!0),r(o,s,d,"\u0237","\\jmath",!0),r(a,s,y,"\u0131","\\i",!0),r(a,s,y,"\u0237","\\j",!0),r(a,s,y,"\xdf","\\ss",!0),r(a,s,y,"\xe6","\\ae",!0),r(a,s,y,"\xe6","\\ae",!0),r(a,s,y,"\u0153","\\oe",!0),r(a,s,y,"\xf8","\\o",!0),r(a,s,y,"\xc6","\\AE",!0),r(a,s,y,"\u0152","\\OE",!0),r(a,s,y,"\xd8","\\O",!0),r(a,s,l,"\u02ca","\\'"),r(a,s,l,"\u02cb","\\`"),r(a,s,l,"\u02c6","\\^"),r(a,s,l,"\u02dc","\\~"),r(a,s,l,"\u02c9","\\="),r(a,s,l,"\u02d8","\\u"),r(a,s,l,"\u02d9","\\."),r(a,s,l,"\u02da","\\r"),r(a,s,l,"\u02c7","\\v"),r(a,s,l,"\xa8",'\\"'),r(a,s,l,"\u02dd","\\H"),r(a,s,y,"\u2013","--"),r(a,s,y,"\u2013","\\textendash"),r(a,s,y,"\u2014","---"),r(a,s,y,"\u2014","\\textemdash"),r(a,s,y,"\u2018","`"),r(a,s,y,"\u2018","\\textquoteleft"),r(a,s,y,"\u2019","'"),r(a,s,y,"\u2019","\\textquoteright"),r(a,s,y,"\u201c","``"),r(a,s,y,"\u201c","\\textquotedblleft"),r(a,s,y,"\u201d",""),r(a,s,y,"\u201d","\\textquotedblright"),r(o,s,y,"\xb0","\\degree"),r(a,s,y,"\xb0","\\degree"),r(o,s,d,"\xa3","\\pounds"),r(o,s,d,"\xa3","\\mathsterling",!0),r(a,s,d,"\xa3","\\pounds"),r(a,s,d,"\xa3","\\textsterling",!0),r(o,u,y,"\u2720","\\maltese"),r(a,u,y,"\u2720","\\maltese"),r(a,s,v,"\xa0","\\ "),r(a,s,v,"\xa0"," "),r(a,s,v,"\xa0","~");for(var g='0123456789/@."',b=0;b<g.length;b++){var w=g.charAt(b);r(o,s,y,w,w)}for(var _='0123456789!@*()-=+[]<>|";:?/.,',E=0;E<_.length;E++){var T=_.charAt(E);r(a,s,y,T,T)}for(var x="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",S=0;S<x.length;S++){var k=x.charAt(S);r(o,s,d,k,k),r(a,s,y,k,k)}for(var C="\xc7\xd0\xde\xe7\xfe",O=0;O<C.length;O++){var N=C.charAt(O);r(o,s,d,N,N),r(a,s,y,N,N)}r(a,s,y,"\xf0","\xf0"),r(a,s,y,"\u2013","\u2013"),r(a,s,y,"\u2014","\u2014"),r(a,s,y,"\u2018","\u2018"),r(a,s,y,"\u2019","\u2019"),r(a,s,y,"\u201c","\u201c"),r(a,s,y,"\u201d","\u201d")},function(e,t,n){var r=n(38);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=n(42),i=n(59),o={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2]},a={"\xc5":"A","\xc7":"C","\xd0":"D","\xde":"o","\xe5":"a","\xe7":"c","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"},s=function(e,t,n){if(!i.a[t])throw new Error("Font metrics not found for font: "+t+".");var o=e.charCodeAt(0);e[0]in a&&(o=a[e[0]].charCodeAt(0));var s=i.a[t][o];if(s||"text"!==n||Object(r.b)(o)&&(s=i.a[t][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}},u={},l=function(e){var t=void 0;if(t=e>=5?0:e>=3?1:2,!u[t]){var n=u[t]={cssEmPerMu:o.quad[t]/18};for(var r in o)o.hasOwnProperty(r)&&(n[r]=o[r][t])}return u[t]};t.a={getFontMetrics:l,getCharacterMetrics:s}},function(e,t,n){"use strict";var r=n(66),i=n.n(r),o=n(7),a=n.n(o),s=n(10),u=n.n(s),l=function(){function e(t,n,r){a()(this,e),this.lexer=t,this.start=n,this.end=r,i()(this)}return u()(e,null,[{key:"range",value:function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc}}]),e}();t.a=l},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),o=n(5),a=function e(t){i()(this,e),t=t||{},this.displayMode=o.a.deflt(t.displayMode,!1),this.throwOnError=o.a.deflt(t.throwOnError,!0),this.errorColor=o.a.deflt(t.errorColor,"#cc0000"),this.macros=t.macros||{},this.colorIsTextColor=o.a.deflt(t.colorIsTextColor,!1),this.maxSize=Math.max(0,o.a.deflt(t.maxSize,1/0))};t.a=a},function(e,t,n){"use strict";t.__esModule=!0;var r=n(79),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){"use strict";var r=n(81)(!0);n(48)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(87),i=n(53);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(49),i=n(38);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(52)("keys"),i=n(32);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){"use strict";function r(e){var t=!0,n=!1,r=void 0;try{for(var i,o=u()(l);!(t=(i=o.next()).done);t=!0){var a=i.value,s=!0,c=!1,f=void 0;try{for(var d,h=u()(a.blocks);!(s=(d=h.next()).done);s=!0){var p=d.value;if(e>=p[0]&&e<=p[1])return a.name}}catch(e){c=!0,f=e}finally{try{!s&&h.return&&h.return()}finally{if(c)throw f}}}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return null}function i(e){for(var t=0;t<c.length;t+=2)if(e>=c[t]&&e<=c[t+1])return!0;return!1}t.a=r,t.b=i;var o=n(35),a=n.n(o),s=n(18),u=n.n(s),l=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:1024,1279},{name:"brahmic",blocks:2304,4255},{name:"georgian",blocks:4256,4351},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:44032,55215}],c=[];l.forEach(function(e){return e.blocks.forEach(function(e){return c.push.apply(c,a()(e))})})},function(e,t,n){"use strict";var r=n(7),i=n.n(r),o=n(10),a=n.n(o),s=n(30),u=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],l=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],c=function(e,t){return t.size<2?e:u[e-1][t.size-1]},f=function(){function e(t){i()(this,e),this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.fontFamily=t.fontFamily,this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=l[this.size-1],this.maxSize=t.maxSize,this._fontMetrics=void 0}return a()(e,[{key:"extend",value:function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)}},{key:"havingStyle",value:function(e){return this.style===e?this:this.extend({style:e,size:c(this.textSize,e)})}},{key:"havingCrampedStyle",value:function(){return this.havingStyle(this.style.cramp())}},{key:"havingSize",value:function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:l[e-1]})}},{key:"havingBaseStyle",value:function(t){t=t||this.style.text();var n=c(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}},{key:"withColor",value:function(e){return this.extend({color:e})}},{key:"withPhantom",value:function(){return this.extend({phantom:!0})}},{key:"withFontFamily",value:function(e){return this.extend({fontFamily:e||this.fontFamily})}},{key:"withFontWeight",value:function(e){return this.extend({fontWeight:e})}},{key:"withFontShape",value:function(e){return this.extend({fontShape:e})}},{key:"sizingClasses",value:function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}},{key:"baseSizingClasses",value:function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]}},{key:"fontMetrics",value:function(){return this._fontMetrics||(this._fontMetrics=s.a.getFontMetrics(this.size)),this._fontMetrics}},{key:"getColor",value:function(){return this.phantom?"transparent":null!=this.color&&e.colorMap.hasOwnProperty(this.color)?e.colorMap[this.color]:this.color}}]),e}();f.BASESIZE=6,f.colorMap={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd","katex-blueA":"#ccfaff","katex-blueB":"#80f6ff","katex-blueC":"#63d9ea","katex-blueD":"#11accd","katex-blueE":"#0c7f99","katex-tealA":"#94fff5","katex-tealB":"#26edd5","katex-tealC":"#01d1c1","katex-tealD":"#01a995","katex-tealE":"#208170","katex-greenA":"#b6ffb0","katex-greenB":"#8af281","katex-greenC":"#74cf70","katex-greenD":"#1fab54","katex-greenE":"#0d923f","katex-goldA":"#ffd0a9","katex-goldB":"#ffbb71","katex-goldC":"#ff9c39","katex-goldD":"#e07d10","katex-goldE":"#a75a05","katex-redA":"#fca9a9","katex-redB":"#ff8482","katex-redC":"#f9685d","katex-redD":"#e84d39","katex-redE":"#bc2612","katex-maroonA":"#ffbde0","katex-maroonB":"#ff92c6","katex-maroonC":"#ed5fa6","katex-maroonD":"#ca337c","katex-maroonE":"#9e034e","katex-purpleA":"#ddd7ff","katex-purpleB":"#c6b9fc","katex-purpleC":"#aa87ff","katex-purpleD":"#7854ab","katex-purpleE":"#543b78","katex-mintA":"#f5f9e8","katex-mintB":"#edf2df","katex-mintC":"#e0e5cc","katex-grayA":"#f6f7f7","katex-grayB":"#f0f1f2","katex-grayC":"#e3e5e6","katex-grayD":"#d6d8da","katex-grayE":"#babec2","katex-grayF":"#888d93","katex-grayG":"#626569","katex-grayH":"#3b3e40","katex-grayI":"#21242c","katex-kaBlue":"#314453","katex-kaGreen":"#71B307"},t.a=f},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(12),a=n(0),s=n(30),u=n(28),l=n(5),c=function(e,t,n){return u.a.math[e]&&u.a.math[e].replace?s.a.getCharacterMetrics(u.a.math[e].replace,t,n):s.a.getCharacterMetrics(e,t,n)},f=function(e,t,n,r){var i=n.havingBaseStyle(t),o=a.a.makeSpan((r||[]).concat(i.sizingClasses(n)),[e],n);return o.delimSizeMultiplier=i.sizeMultiplier/n.sizeMultiplier,o.height*=o.delimSizeMultiplier,o.depth*=o.delimSizeMultiplier,o.maxFontSize=i.sizeMultiplier,o},d=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=i+"em",e.height-=i,e.depth+=i},h=function(e,t,n,r,i,o){var s=a.a.makeSymbol(e,"Main-Regular",i,r),u=f(s,t,r,o);return n&&d(u,r,t),u},p=function(e,t,n,r){return a.a.makeSymbol(e,"Size"+t+"-Regular",n,r)},m=function(e,t,n,r,o,s){var u=p(e,t,o,r),l=f(a.a.makeSpan(["delimsizing","size"+t],[u],r),i.a.TEXT,r,s);return n&&d(l,r,i.a.TEXT),l},v=function(e,t,n){var r=void 0;return"Size1-Regular"===t?r="delim-size1":"Size4-Regular"===t&&(r="delim-size4"),{type:"elem",elem:a.a.makeSpan(["delimsizinginner",r],[a.a.makeSpan([],[a.a.makeSymbol(e,t,n)])])}},y=function(e,t,n,r,o,s){var u=void 0,l=void 0,d=void 0,h=void 0;u=d=h=e,l=null;var p="Size1-Regular";"\\uparrow"===e?d=h="\u23d0":"\\Uparrow"===e?d=h="\u2016":"\\downarrow"===e?u=d="\u23d0":"\\Downarrow"===e?u=d="\u2016":"\\updownarrow"===e?(u="\\uparrow",d="\u23d0",h="\\downarrow"):"\\Updownarrow"===e?(u="\\Uparrow",d="\u2016",h="\\Downarrow"):"["===e||"\\lbrack"===e?(u="\u23a1",d="\u23a2",h="\u23a3",p="Size4-Regular"):"]"===e||"\\rbrack"===e?(u="\u23a4",d="\u23a5",h="\u23a6",p="Size4-Regular"):"\\lfloor"===e?(d=u="\u23a2",h="\u23a3",p="Size4-Regular"):"\\lceil"===e?(u="\u23a1",d=h="\u23a2",p="Size4-Regular"):"\\rfloor"===e?(d=u="\u23a5",h="\u23a6",p="Size4-Regular"):"\\rceil"===e?(u="\u23a4",d=h="\u23a5",p="Size4-Regular"):"("===e?(u="\u239b",d="\u239c",h="\u239d",p="Size4-Regular"):")"===e?(u="\u239e",d="\u239f",h="\u23a0",p="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(u="\u23a7",l="\u23a8",h="\u23a9",d="\u23aa",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(u="\u23ab",l="\u23ac",h="\u23ad",d="\u23aa",p="Size4-Regular"):"\\lgroup"===e?(u="\u23a7",h="\u23a9",d="\u23aa",p="Size4-Regular"):"\\rgroup"===e?(u="\u23ab",h="\u23ad",d="\u23aa",p="Size4-Regular"):"\\lmoustache"===e?(u="\u23a7",h="\u23ad",d="\u23aa",p="Size4-Regular"):"\\rmoustache"===e&&(u="\u23ab",h="\u23a9",d="\u23aa",p="Size4-Regular");var m=c(u,p,o),y=m.height+m.depth,g=c(d,p,o),b=g.height+g.depth,w=c(h,p,o),_=w.height+w.depth,E=0,T=1;if(null!==l){var x=c(l,p,o);E=x.height+x.depth,T=2}var S=y+_+E,k=Math.ceil((t-S)/(T*b)),C=S+k*T*b,O=r.fontMetrics().axisHeight;n&&(O*=r.sizeMultiplier);var N=C/2-O,P=[];if(P.push(v(h,p,o)),null===l)for(var I=0;I<k;I++)P.push(v(d,p,o));else{for(var A=0;A<k;A++)P.push(v(d,p,o));P.push(v(l,p,o));for(var D=0;D<k;D++)P.push(v(d,p,o))}P.push(v(u,p,o));var R=r.havingBaseStyle(i.a.TEXT),M=a.a.makeVList({positionType:"bottom",positionData:N,children:P},R);return f(a.a.makeSpan(["delimsizing","mult"],[M],R),i.a.TEXT,r,s)},g=function(e,t,n,r){var i=void 0;if("sqrtTall"===e){i="M702 80H400000v40H742v"+(n-54-80)+"l-4 4-4 4c-.667.7\n-2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1h-12l-28-84c-16.667-52-96.667\n-294.333-240-727l-212 -643 -85 170c-4-3.333-8.333-7.667-13 -13l-13-13l77-155\n 77-156c66 199.333 139 419.667 219 661 l218 661zM702 80H400000v40H742z"}var s=new o.a.pathNode(e,i),u=new o.a.svgNode([s],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return a.a.makeSpan(["hide-tail"],[u],r)},b=function(e,t){var n=N("\\surd",e,C,t),r=void 0,i=t.sizeMultiplier,o=0,a=0,s=0;if("small"===n.type){s=1080;i=t.havingBaseStyle(n.style).sizeMultiplier/t.sizeMultiplier,o=1.08*i,a=1*i,r=g("sqrtMain",o,s,t),r.style.minWidth="0.853em",r.advanceWidth=.833*i}else"large"===n.type?(s=1080*T[n.size],a=T[n.size]/i,o=(T[n.size]+.08)/i,r=g("sqrtSize"+n.size,o,s,t),r.style.minWidth="1.02em",r.advanceWidth=1/i):(o=e/i+.08,a=e/i,s=Math.floor(1e3*e)+80,r=g("sqrtTall",o,s,t),r.style.minWidth="0.742em",r.advanceWidth=1.056/i);return r.height=a,r.style.height=o+"em",{span:r,ruleWidth:t.fontMetrics().sqrtRuleThickness*i}},w=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd"],_=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache"],E=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],T=[0,1.2,1.8,2.4,3],x=function(e,t,n,i,o){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),l.a.contains(w,e)||l.a.contains(E,e))return m(e,t,!1,n,i,o);if(l.a.contains(_,e))return y(e,T[t],!1,n,i,o);throw new r.a("Illegal delimiter: '"+e+"'")},S=[{type:"small",style:i.a.SCRIPTSCRIPT},{type:"small",style:i.a.SCRIPT},{type:"small",style:i.a.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],k=[{type:"small",style:i.a.SCRIPTSCRIPT},{type:"small",style:i.a.SCRIPT},{type:"small",style:i.a.TEXT},{type:"stack"}],C=[{type:"small",style:i.a.SCRIPTSCRIPT},{type:"small",style:i.a.SCRIPT},{type:"small",style:i.a.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],O=function(e){return"small"===e.type?"Main-Regular":"large"===e.type?"Size"+e.size+"-Regular":"stack"===e.type?"Size4-Regular":void 0},N=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size),o=i;o<n.length&&"stack"!==n[o].type;o++){var a=c(e,O(n[o]),"math"),s=a.height+a.depth;if("small"===n[o].type){s*=r.havingBaseStyle(n[o].style).sizeMultiplier}if(s>t)return n[o]}return n[n.length-1]},P=function(e,t,n,r,i,o){"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle");var a=void 0;a=l.a.contains(E,e)?S:l.a.contains(w,e)?C:k;var s=N(e,t,a,r);return"small"===s.type?h(e,s.style,n,r,i,o):"large"===s.type?m(e,s.size,n,r,i,o):y(e,t,n,r,i,o)},I=function(e,t,n,r,i,o){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,u=Math.max(t-a,n+a),l=Math.max(u/500*901,2*u-s);return P(e,l,!0,r,i,o)};t.a={sqrtImage:b,sizedDelim:x,customSizedDelim:P,leftRightDelim:I}},function(e,t,n){var r=n(20),i=n(16).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(25),i=n(8),o=n(24);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(72);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(82),i=n(25),o=n(83),a=n(26),s=n(21),u=n(17),l=n(84),c=n(54),f=n(91),d=n(11)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,m,v,y,g){l(n,t,m);var b,w,_,E=function(e){if(!h&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",x="values"==v,S=!1,k=e.prototype,C=k[d]||k["@@iterator"]||v&&k[v],O=C||E(v),N=v?x?E("entries"):O:void 0,P="Array"==t?k.entries||C:C;if(P&&(_=f(P.call(new e)))!==Object.prototype&&(c(_,T,!0),r||s(_,d)||a(_,d,p)),x&&C&&"values"!==C.name&&(S=!0,O=function(){return C.call(this)}),r&&!g||!h&&!S&&k[d]||a(k,d,O),u[t]=O,u[T]=p,v)if(b={values:x?O:E("values"),keys:y?O:E("keys"),entries:N},g)for(w in b)w in k||o(k,w,b[w]);else i(i.P+i.F*(h||S),t,b);return b}},function(e,t,n){var r=n(50);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(37),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(16),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(15).f,i=n(21),o=n(11)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(56),i=n(11)("iterator"),o=n(17);e.exports=n(8).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(50),i=n(11)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(97),o=r(i),a=n(18),s=r(a);t.default=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=(0,s.default)(e);!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){n(99);for(var r=n(16),i=n(26),o=n(17),a=n(11)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var l=s[u],c=r[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(e,t,n){"use strict";t.a={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1187],8674:[-.064,.437,0,0,1167],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],824:[.19444,.69444,0,0,0],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,0],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,0],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],824:[.19444,.69444,0,0,0],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1015],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,889],8617:[.011,.511,0,0,1015],8618:[.011,.511,0,0,1015],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,889],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,667],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,666],8800:[.215,.716,0,0,666],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,692],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,847],8942:[.03,.9,0,0,121],8943:[-.19,.31,0,0,1015],8945:[-.1,.82,0,0,1015],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,301],9137:[.244,.744,0,0,301],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,184],10223:[.244,.744,0,0,184],10229:[.011,.511,0,0,1470],10230:[.011,.511,0,0,1469],10231:[.011,.511,0,0,1748],10232:[.024,.525,0,0,1497],10233:[.024,.525,0,0,1526],10234:[.024,.525,0,0,1746],10236:[.011,.511,0,0,1498],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778]},"Math-BoldItalic":{47:[.19444,.69444,0,0,0],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{47:[.19444,.69444,0,0,0],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],176:[0,.69444,0,0,.66667],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],733:[0,.69444,0,0,.5],771:[0,.67659,0,0,.5],776:[0,.67937,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],176:[0,.61111,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}}},function(e,t,n){"use strict";function r(e,t,n){for(var r=u.a(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var l=s.a.indexOf(r[a].classes,"sizing");l<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[l+1]==="reset-size"+t.size&&(r[a].classes[l+1]="reset-size"+n.size),r[a].height*=o,r[a].depth*=o}return i.a.makeFragment(r)}t.a=r;var i=n(0),o=n(3),a=n(1),s=n(5),u=n(4),l=n(2),c=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];Object(o.b)({type:"sizing",names:c,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser;i.consumeSpaces();var o=i.parseExpression(!1,n);return{type:"sizing",size:s.a.indexOf(c,r)+1,value:o}},htmlBuilder:function(e,t){var n=t.havingSize(e.value.size);return r(e.value.value,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.value.size),r=l.a(e.value.value,n),i=new a.a.MathNode("mstyle",r);return i.setAttribute("mathsize",n.sizeMultiplier+"em"),i}})},function(e,t,n){"use strict";function r(e){for(var t=e.type,n=e.names,r=e.props,s=e.handler,u=e.htmlBuilder,l=e.mathmlBuilder,c={numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:s},f=0;f<n.length;++f)a[n[f]]=c;u&&(i.d[t]=u),l&&(o.d[t]=l)}n.d(t,"a",function(){return a}),t.b=r;var i=n(4),o=n(2),a=(n(43),n(14),{})},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p});var r=n(7),i=n.n(r),o=n(10),a=n.n(o),s=n(145),u=n.n(s),l=n(6),c=n(31),f=n(27),d=new RegExp("[\u0300-\u036f]+$"),h=new RegExp("([ \r\n\t]+)|(%[^\n]*[\n]|[!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff][\u0300-\u036f]*|[\ud800-\udbff][\udc00-\udfff][\u0300-\u036f]*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\[a-zA-Z@]+|\\\\[^\ud800-\udfff])"),p=new RegExp("^\\\\[a-zA-Z@]+"),m=new RegExp("^%[^\n]*[\n]"),v=function(){function e(t){i()(this,e),this.input=t,this.pos=0}return a()(e,[{key:"lex",value:function(){var e=this.input,t=this.pos;if(t===e.length)return new f.a("EOF",new c.a(this,t,t));var n=u()(h,e,t);if(null===n)throw new l.a("Unexpected character: '"+e[t]+"'",new f.a(e[t],new c.a(this,t,t+1)));var r=n[2]||" ",i=this.pos;this.pos+=n[0].length;var o=this.pos;return m.test(r)?this.lex():new f.a(r,new c.a(this,i,o))}}]),e}();t.c=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64),i=(n.n(r),n(65));t.default=i.a},function(e,t){},function(e,t,n){"use strict";var r=n(6),i=n(34),o=n(76),a=n(113),s=n(5),u=function(e,t,n){s.a.clearNode(t);var r=f(e,n).toNode();t.appendChild(r)};"undefined"!==typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!==typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),u=function(){throw new r.a("KaTeX doesn't work in quirks mode.")});var l=function(e,t){return f(e,t).toMarkup()},c=function(e,t){var n=new i.a(t);return Object(a.a)(e,n)},f=function(e,t){var n=new i.a(t),r=Object(a.a)(e,n);return Object(o.b)(r,e,n)},d=function(e,t){var n=new i.a(t),r=Object(a.a)(e,n);return Object(o.a)(r,e,n)};t.a={render:u,renderToString:l,ParseError:r.a,__parse:c,__renderToDomTree:f,__renderToHTMLTree:d}},function(e,t,n){e.exports={default:n(67),__esModule:!0}},function(e,t,n){n(68),e.exports=n(8).Object.freeze},function(e,t,n){var r=n(20),i=n(69).onFreeze;n(46)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(32)("meta"),i=n(20),o=n(21),a=n(15).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(24)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return l&&p.NEED&&u(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(e,t,n){e.exports=!n(23)&&!n(24)(function(){return 7!=Object.defineProperty(n(45)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(20);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){e.exports={default:n(74),__esModule:!0}},function(e,t,n){n(75);var r=n(8).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(25);r(r.S+r.F*!n(23),"Object",{defineProperty:n(15).f})},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c});var r=n(4),i=n(2),o=n(0),a=n(43),s=(n(34),n(9)),u=function(e){return new a.a({style:e.displayMode?s.a.DISPLAY:s.a.TEXT,maxSize:e.maxSize})},l=function(e,t,n){var a=u(n),s=Object(i.c)(e,t,a),l=Object(r.c)(e,a),c=o.a.makeSpan(["katex"],[s,l]);return n.displayMode?o.a.makeSpan(["katex-display"],[c]):c},c=function(e,t,n){var i=u(n),a=Object(r.c)(e,i),s=o.a.makeSpan(["katex"],[a]);return n.displayMode?o.a.makeSpan(["katex-display"],[s]):s}},function(e,t,n){e.exports={default:n(78),__esModule:!0}},function(e,t,n){var r=n(8),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t,n){e.exports={default:n(80),__esModule:!0}},function(e,t,n){n(36),n(92),e.exports=n(8).Array.from},function(e,t,n){var r=n(37),i=n(38);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(e,t){e.exports=!0},function(e,t,n){e.exports=n(26)},function(e,t,n){"use strict";var r=n(85),i=n(33),o=n(54),a={};n(26)(a,n(11)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(22),i=n(86),o=n(53),a=n(41)("IE_PROTO"),s=function(){},u=function(){var e,t=n(45)("iframe"),r=o.length;for(t.style.display="none",n(90).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(15),i=n(22),o=n(39);e.exports=n(23)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(21),i=n(40),o=n(88)(!1),a=n(41)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var r=n(40),i=n(51),o=n(89);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(37),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){e.exports=n(16).document&&document.documentElement},function(e,t,n){var r=n(21),i=n(29),o=n(41)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(47),i=n(25),o=n(29),a=n(93),s=n(94),u=n(51),l=n(95),c=n(55);i(i.S+i.F*!n(96)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,f,d=o(e),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,y=0,g=c(d);if(v&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==g||h==Array&&s(g))for(t=u(d.length),n=new h(t);t>y;y++)l(n,y,v?m(d[y],y):d[y]);else for(f=g.call(d),n=new h;!(i=f.next()).done;y++)l(n,y,v?a(f,m,[i.value,y],!0):i.value);return n.length=y,n}})},function(e,t,n){var r=n(22);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(17),i=n(11)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(15),i=n(33);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(11)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){e.exports={default:n(98),__esModule:!0}},function(e,t,n){n(58),n(36),e.exports=n(102)},function(e,t,n){"use strict";var r=n(100),i=n(101),o=n(17),a=n(40);e.exports=n(48)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(56),i=n(11)("iterator"),o=n(17);e.exports=n(8).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){n(58),n(36),e.exports=n(104)},function(e,t,n){var r=n(22),i=n(55);e.exports=n(8).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){e.exports={default:n(106),__esModule:!0}},function(e,t,n){n(107),e.exports=n(8).Object.assign},function(e,t,n){var r=n(25);r(r.S+r.F,"Object",{assign:n(108)})},function(e,t,n){"use strict";var r=n(39),i=n(109),o=n(110),a=n(29),s=n(49),u=Object.assign;e.exports=!u||n(24)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,l=1,c=i.f,f=o.f;u>l;)for(var d,h=s(arguments[l++]),p=c?r(h).concat(c(h)):r(h),m=p.length,v=0;m>v;)f.call(h,d=p[v++])&&(n[d]=h[d]);return n}:u},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r={stdHorizRule:"M0 80H400000 v40H0z M0 80H400000 v40H0z",vertSeparator:"M100 0h50V400000h-50zM100 0h50V400000h-50z",sqrtMain:"M95,702c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,\n-10,-9.5,-14c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54c44.2,-33.3,65.8,\n-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10s173,378,173,378c0.7,0,\n35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429c69,-144,104.5,-217.7,106.5,\n-221c5.3,-9.3,12,-14,20,-14H400000v40H845.2724s-225.272,467,-225.272,467\ns-235,486,-235,486c-2.7,4.7,-9,7,-19,7c-6,0,-10,-1,-12,-3s-194,-422,-194,-422\ns-65,47,-65,47z M834 80H400000v40H845z",sqrtSize1:"M263,681c0.7,0,18,39.7,52,119c34,79.3,68.167,\n158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120c340,-704.7,510.7,-1060.3,512,-1067\nc4.7,-7.3,11,-11,19,-11H40000v40H1012.3s-271.3,567,-271.3,567c-38.7,80.7,-84,\n175,-136,283c-52,108,-89.167,185.3,-111.5,232c-22.3,46.7,-33.8,70.3,-34.5,71\nc-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1s-109,-253,-109,-253c-72.7,-168,-109.3,\n-252,-110,-252c-10.7,8,-22,16.7,-34,26c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26\ns76,-59,76,-59s76,-60,76,-60z M1001 80H40000v40H1012z",sqrtSize2:"M1001,80H400000v40H1013.1s-83.4,268,-264.1,840c-180.7,\n572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,\n-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744c-10,12,-21,25,-33,39s-32,39,-32,39\nc-6,-5.3,-15,-14,-27,-26s25,-30,25,-30c26.7,-32.7,52,-63,76,-91s52,-60,52,-60\ns208,722,208,722c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,\n-658.5c53.7,-170.3,84.5,-266.8,92.5,-289.5c4,-6.7,10,-10,18,-10z\nM1001 80H400000v40H1013z",sqrtSize3:"M424,2478c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,\n-342,-109.8,-513.3,-110.5,-514c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,\n25c-5.7,9.3,-9.8,16,-12.5,20s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,\n-13s76,-122,76,-122s77,-121,77,-121s209,968,209,968c0,-2,84.7,-361.7,254,-1079\nc169.3,-717.3,254.7,-1077.7,256,-1081c4,-6.7,10,-10,18,-10H400000v40H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M1001 80H400000v40H1014z",sqrtSize4:"M473,2793c339.3,-1799.3,509.3,-2700,510,-2702\nc3.3,-7.3,9.3,-11,18,-11H400000v40H1017.7s-90.5,478,-276.2,1466c-185.7,988,\n-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,\n-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200c0,-1.3,-5.3,8.7,-16,30c-10.7,\n21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26s76,-153,76,-153s77,-151,\n77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,606z\nM1001 80H400000v40H1017z",doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",baraboveleftarrow:"M1 500c30.67-18 59-41.833 85-71.5s45-61.17 57-94.5h23\nc15.33 0 23 .33 23 1 0 .67-5.33 12.67-16 36-16.67 34.67-39 67.33-67 98l-10 11\nh39904v40H96l9 10c27.33 30.67 50.67 65 70 103l14 33c0 .67-7.67 1-23 1h-22\nC116.67 596.33 69 540.67 1 500z M96 480 H400000 v40 H96z\nM1 147 H399905 v40 H1z M0 147 H399905 v40 H0z",rightarrowabovebar:"M400000 167c-70.67 42-118 97.67-142 167h-23c-15.33 0\n-23-.33-23-1 0-1.33 5.33-13.67 16-37 18-35.33 41.33-69 70-101l7-8h-39905\nv-40h39905c-389 0 0 0 0 0l-7-8c-28.67-32-52-65.67-70-101-10.67-23.33-16-35.67\n-16-37 0-.67 7.67-1 23-1h23c11.33 33.33 30 64.833 56 94.5s54.67 53.83 86 72.5z\nM0 147 H399905 v40 H0z M96 480 H400000 v40 H0z M96 480 H400000 v40 H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};t.a={path:r}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s});var r={number:3,unit:"mu"},i={number:4,unit:"mu"},o={number:5,unit:"mu"},a={mord:{mop:r,mbin:i,mrel:o,minner:r},mop:{mord:r,mop:r,mrel:o,minner:r},mbin:{mord:i,mop:i,mopen:i,minner:i},mrel:{mord:o,mop:o,mopen:o,minner:o},mopen:{},mclose:{mop:r,mbin:i,mrel:o,minner:r},mpunct:{mord:r,mop:r,mrel:o,mopen:r,mclose:r,mpunct:r,minner:r},minner:{mord:r,mop:r,mbin:i,mrel:o,mopen:r,mpunct:r,minner:r}},s={mord:{mop:r},mop:{mord:r,mop:r},mbin:{},mrel:{},mopen:{},mclose:{mop:r},mpunct:{},minner:{mop:r}}},function(e,t,n){"use strict";var r=n(114),i=function(e,t){if(!("string"===typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");return new r.a(e,t).parse()};t.a=i},function(e,t,n){"use strict";function r(e,t){return{type:"arg",result:e,token:t}}function i(e){return{type:"fn",result:e.text,token:e}}function o(e){return{type:"$",result:"$",token:e}}function a(e){if("$"===e.type)throw new _.a("Unexpected $",e.token);return e}var s=n(7),u=n.n(s),l=n(10),c=n.n(l),f=n(115),d=n(142),h=n(144),p=n(28),m=n(19),v=n(42),y=n(148),g=n.n(y),b=n(149),w=n(14),_=n(6),E=n(62),T=(n(34),n(27),function(){function e(t,n){u()(this,e),this.mode="math",this.gullet=new h.a(t,n.macros,this.mode),n.colorIsTextColor&&(this.gullet.macros["\\color"]="\\textcolor"),this.settings=n,this.leftrightDepth=0}return c()(e,[{key:"expect",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.nextToken.text!==e)throw new _.a("Expected '"+e+"', got '"+this.nextToken.text+"'",this.nextToken);t&&this.consume()}},{key:"consume",value:function(){this.nextToken=this.gullet.expandNextToken()}},{key:"switchMode",value:function(e){this.mode=e,this.gullet.switchMode(e)}},{key:"parse",value:function(){return this.consume(),this.parseInput()}},{key:"parseInput",value:function(){var e=this.parseExpression(!1);return this.expect("EOF",!1),e}},{key:"parseExpression",value:function(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var i=this.nextToken;if(-1!==e.endOfExpression.indexOf(i.text))break;if(n&&i.text===n)break;if(t&&f.a[i.text]&&f.a[i.text].infix)break;var o=this.parseAtom(n);if(!o){if(!this.settings.throwOnError&&"\\"===i.text[0]){var a=this.handleUnsupportedCmd();r.push(a);continue}break}r.push(o)}return this.handleInfixNodes(r)}},{key:"handleInfixNodes",value:function(e){for(var t=-1,n=void 0,r=0;r<e.length;r++){var i=e[r];if("infix"===i.type){if(-1!==t)throw new _.a("only one infix operator per group",i.value.token);t=r,n=i.value.replaceWith}}if(-1!==t&&n){var o=void 0,a=void 0,s=e.slice(0,t),u=e.slice(t+1);o=1===s.length&&"ordgroup"===s[0].type?s[0]:new w.a("ordgroup",s,this.mode),a=1===u.length&&"ordgroup"===u[0].type?u[0]:new w.a("ordgroup",u,this.mode);var l=this.callFunction(n,[o,a],[]);return[new w.a(l.type,l,this.mode)]}return e}},{key:"handleSupSubscript",value:function(t){var n=this.nextToken,r=n.text;this.consume(),this.consumeSpaces();var i=this.parseGroup();if(!i){if(this.settings.throwOnError||"\\"!==this.nextToken.text[0])throw new _.a("Expected group after '"+r+"'",n);return this.handleUnsupportedCmd()}var o=a(i);if("fn"===o.type){if(f.a[o.result].greediness>e.SUPSUB_GREEDINESS)return this.parseGivenFunction(i);throw new _.a("Got function '"+o.result+"' with no arguments as "+t,n)}return o.result}},{key:"handleUnsupportedCmd",value:function(){for(var e=this.nextToken.text,t=[],n=0;n<e.length;n++)t.push(new w.a("textord",e[n],"text"));var r=new w.a("text",{body:t,type:"text"},this.mode),i=new w.a("color",{color:this.settings.errorColor,value:[r],type:"color"},this.mode);return this.consume(),i}},{key:"parseAtom",value:function(e){var t=this.parseImplicitGroup(e);if("text"===this.mode)return t;for(var n=void 0,r=void 0;;){this.consumeSpaces();var i=this.nextToken;if("\\limits"===i.text||"\\nolimits"===i.text){if(!t||"op"!==t.type)throw new _.a("Limit controls must follow a math operator",i);var o="\\limits"===i.text;t.value.limits=o,t.value.alwaysHandleSupSub=!0,this.consume()}else if("^"===i.text){if(n)throw new _.a("Double superscript",i);n=this.handleSupSubscript("superscript")}else if("_"===i.text){if(r)throw new _.a("Double subscript",i);r=this.handleSupSubscript("subscript")}else{if("'"!==i.text)break;if(n)throw new _.a("Double superscript",i);var a=new w.a("textord","\\prime",this.mode),s=[a];for(this.consume();"'"===this.nextToken.text;)s.push(a),this.consume();"^"===this.nextToken.text&&s.push(this.handleSupSubscript("superscript")),n=new w.a("ordgroup",s,this.mode)}}return n||r?new w.a("supsub",{base:t,sup:n,sub:r},this.mode):t}},{key:"parseImplicitGroup",value:function(e){var t=this.parseSymbol();if(null==t)return this.parseFunction();if("arg"===t.type)return this.parseGivenFunction(t);var n=t.result;if("$"===n){if("math"===this.mode)throw new _.a("$ within math mode");var r=this.mode;this.switchMode("math"),this.consume();var i=this.parseExpression(!1,"$");return this.expect("$",!1),this.switchMode(r),this.consume(),new w.a("styling",{style:"text",value:i},"math")}if("\\begin"===n){var o=this.parseGivenFunction(t),a=o.value.name;if(!d.a.hasOwnProperty(a))throw new _.a("No such environment: "+a,o.value.nameGroup);var s=d.a[a],u=this.parseArguments("\\begin{"+a+"}",s),l=u.args,c=u.optArgs,f={mode:this.mode,envName:a,parser:this},h=s.handler(f,l,c);this.expect("\\end",!1);var p=this.nextToken,m=this.parseFunction();if(!m)throw new _.a("failed to parse function after \\end");if(m.value.name!==a)throw new _.a("Mismatch: \\begin{"+a+"} matched by \\end{"+m.value.name+"}",p);return h}return this.parseGivenFunction(t,e)}},{key:"parseFunction",value:function(){var e=this.parseGroup();return e?this.parseGivenFunction(e):null}},{key:"parseGivenFunction",value:function(e,t){if(e=a(e),"fn"===e.type){var n=e.result,r=f.a[n];if("text"===this.mode&&!r.allowedInText)throw new _.a("Can't use function '"+n+"' in text mode",e.token);if("math"===this.mode&&!1===r.allowedInMath)throw new _.a("Can't use function '"+n+"' in math mode",e.token);var i=this.parseArguments(n,r),o=i.args,s=i.optArgs,u=e.token,l=this.callFunction(n,o,s,u,t);return new w.a(l.type,l,this.mode)}return e.result}},{key:"callFunction",value:function(e,t,n,r,i){var o={funcName:e,parser:this,token:r,breakOnTokenText:i},a=f.a[e];if(a&&a.handler)return a.handler(o,t,n);throw new _.a("No function handler for "+e)}},{key:"parseArguments",value:function(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var i=t.greediness,o=[],s=[],u=0;u<n;u++){var l=t.argTypes&&t.argTypes[u],c=u<t.numOptionalArgs;u>0&&!c&&this.consumeSpaces(),0!==u||c||"math"!==this.mode||this.consumeSpaces();var d=this.nextToken,h=l?this.parseGroupOfType(l,c):this.parseGroup(c);if(!h){if(c){s.push(null);continue}if(this.settings.throwOnError||"\\"!==this.nextToken.text[0])throw new _.a("Expected group after '"+e+"'",d);h=r(this.handleUnsupportedCmd(),d)}var p=void 0;if(h=a(h),"fn"===h.type){if(!(f.a[h.result].greediness>i))throw new _.a("Got function '"+h.result+"' as argument to '"+e+"'",d);p=this.parseGivenFunction(h)}else p=h.result;(c?s:o).push(p)}return{args:o,optArgs:s}}},{key:"parseGroupOfType",value:function(e,t){return"original"===e&&(e=this.mode),"color"===e?this.parseColorGroup(t):"size"===e?this.parseSizeGroup(t):"url"===e?this.parseUrlGroup(t):this.parseGroup(t,e)}},{key:"consumeSpaces",value:function(){for(;" "===this.nextToken.text;)this.consume()}},{key:"parseStringGroup",value:function(e,t){if(t&&"["!==this.nextToken.text)return null;var n=this.mode;this.mode="text",this.expect(t?"[":"{");for(var r="",i=this.nextToken,o=i;this.nextToken.text!==(t?"]":"}");){if("EOF"===this.nextToken.text)throw new _.a("Unexpected end of input in "+e,i.range(this.nextToken,r));o=this.nextToken,r+=o.text,this.consume()}return this.mode=n,this.expect(t?"]":"}"),i.range(o,r)}},{key:"parseStringGroupWithBalancedBraces",value:function(e,t){if(t&&"["!==this.nextToken.text)return null;var n=this.mode;this.mode="text",this.expect(t?"[":"{");for(var r="",i=0,o=this.nextToken,a=o;i>0||this.nextToken.text!==(t?"]":"}");){if("EOF"===this.nextToken.text)throw new _.a("Unexpected end of input in "+e,o.range(this.nextToken,r));if(a=this.nextToken,r+=a.text,"{"===a.text)i+=1;else if("}"===a.text){if(i<=0)throw new _.a("Unbalanced brace of input in "+e,o.range(this.nextToken,r));i-=1}this.consume()}return this.mode=n,this.expect(t?"]":"}"),o.range(a,r)}},{key:"parseRegexGroup",value:function(e,t){var n=this.mode;this.mode="text";for(var r=this.nextToken,i=r,o="";"EOF"!==this.nextToken.text&&e.test(o+this.nextToken.text);)i=this.nextToken,o+=i.text,this.consume();if(""===o)throw new _.a("Invalid "+t+": '"+r.text+"'",r);return this.mode=n,r.range(i,o)}},{key:"parseColorGroup",value:function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new _.a("Invalid color: '"+t.text+"'",t);return r(new w.a("color",n[0],this.mode),t)}},{key:"parseUrlGroup",value:function(e){var t=this.parseStringGroupWithBalancedBraces("url",e);if(!t)return null;var n=t.text,i=n.replace(/\\([#$%&~_^{}])/g,"$1");return r(new w.a("url",i,this.mode),t)}},{key:"parseSizeGroup",value:function(e){var t=void 0;if(!(t=e||"{"===this.nextToken.text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new _.a("Invalid size: '"+t.text+"'",t);var i={number:+(n[1]+n[2]),unit:n[3]};if(!Object(m.b)(i))throw new _.a("Invalid unit: '"+i.unit+"'",t);return r(new w.a("size",i,this.mode),t)}},{key:"parseGroup",value:function(e,t){var n=this.mode,i=this.nextToken;if(this.nextToken.text===(e?"[":"{")){t&&this.switchMode(t),this.consume();var o=this.parseExpression(!1,e?"]":"}"),a=this.nextToken;return t&&this.switchMode(n),this.expect(e?"]":"}"),"text"===t&&this.formLigatures(o),r(new w.a("ordgroup",o,this.mode,i,a),i.range(a,i.text))}t&&this.switchMode(t);var s=e?null:this.parseSymbol();return t&&this.switchMode(n),s}},{key:"formLigatures",value:function(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n],i=r.value;"-"===i&&"-"===e[n+1].value&&(n+1<t&&"-"===e[n+2].value?(e.splice(n,3,new w.a("textord","---","text",r,e[n+2])),t-=2):(e.splice(n,2,new w.a("textord","--","text",r,e[n+1])),t-=1)),"'"!==i&&"`"!==i||e[n+1].value!==i||(e.splice(n,2,new w.a("textord",i+i,"text",r,e[n+1])),t-=1)}}},{key:"parseSymbol",value:function(){var e=this.nextToken,t=e.text;if(f.a[t])return this.consume(),i(e);if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),a="*"===n.charAt(0);if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new _.a("\\verb assertion failed --\n please report what input caused this bug");return n=n.slice(1,-1),r(new w.a("verb",{body:n,star:a},"text"),e)}if("$"===t)return o(e);b.a.hasOwnProperty(t[0])&&!p.a[this.mode][t[0]]&&(t=b.a[t[0]]+t.substr(1));var s=E.a.exec(t);s&&(t=t.substring(0,s.index),"i"===t?t="\u0131":"j"===t&&(t="\u0237"));var u=null;if(p.a[this.mode][t])u=new w.a(p.a[this.mode][t].group,t,this.mode,e);else{if("text"!==this.mode||!Object(v.b)(t.charCodeAt(0)))return null;u=new w.a("textord",t,this.mode,e)}if(this.consume(),s)for(var l=0;l<s[0].length;l++){var c=s[0][l];if(!g.a[c])throw new _.a("Unknown accent ' "+c+"'",e);var d=g.a[c][this.mode];if(!d)throw new _.a("Accent "+c+" unsupported in "+this.mode+" mode",e);u=new w.a("accent",{type:"accent",label:d,isStretchy:!1,isShifty:!0,base:u},this.mode,e)}return r(u,e)}}]),e}());T.endOfExpression=["}","\\end","\\right","&","\\\\","\\cr"],T.SUPSUB_GREEDINESS=1,t.a=T},function(e,t,n){"use strict";var r=n(6),i=n(14),o=n(3),a=(n(116),n(117),n(118),n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(60),n(132),n(133),n(137),n(138),n(139),n(140),n(141),o.a);t.a=a;var s=function(e,t,n){Object(o.b)({names:e,props:t,handler:n})};s(["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],{numArgs:1},function(e,t){var n=t[0];return{type:"mclass",mclass:"m"+e.funcName.substr(5),value:Object(o.c)(n)}}),s(["\\stackrel"],{numArgs:2},function(e,t){var n=t[0],r=t[1],a=new i.a("op",{type:"op",limits:!0,alwaysHandleSupSub:!0,symbol:!1,value:Object(o.c)(r)},r.mode);return{type:"mclass",mclass:"mrel",value:[new i.a("supsub",{base:a,sup:n,sub:null},n.mode)]}});var u={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint"};s(["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],{numArgs:0},function(e){return{type:"op",limits:!1,symbol:!1,body:e.funcName}}),s(["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],{numArgs:0},function(e){return{type:"op",limits:!0,symbol:!1,body:e.funcName}}),s(["\\int","\\iint","\\iiint","\\oint","\u222b","\u222c","\u222d","\u222e"],{numArgs:0},function(e){var t=e.funcName;return 1===t.length&&(t=u[t]),{type:"op",limits:!1,symbol:!0,body:t}}),s(["\\overbrace","\\underbrace"],{numArgs:1},function(e,t){var n=t[0];return{type:"horizBrace",label:e.funcName,isOver:/^\\over/.test(e.funcName),base:n}}),s(["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],{numArgs:1,numOptionalArgs:1},function(e,t,n){var r=n[0],i=t[0];return{type:"xArrow",label:e.funcName,body:i,below:r}}),s(["\\over","\\choose","\\atop"],{numArgs:0,infix:!0},function(e){var t=void 0;switch(e.funcName){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",replaceWith:t,token:e.token}}),s(["\\\\","\\cr"],{numArgs:0,numOptionalArgs:1,argTypes:["size"]},function(e,t,n){return{type:"cr",size:n[0]}}),s(["\\begin","\\end"],{numArgs:1,argTypes:["text"]},function(e,t){var n=t[0];if("ordgroup"!==n.type)throw new r.a("Invalid environment name",n);for(var i="",o=0;o<n.value.length;++o)i+=n.value[o].value;return{type:"environment",name:i,nameGroup:n}}),s(["\\raisebox"],{numArgs:2,argTypes:["size","text"],allowedInText:!0},function(e,t){var n=t[0],r=t[1];return{type:"raisebox",dy:n,body:r,value:Object(o.c)(r)}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(12),a=n(1),s=n(44),u=n(9),l=n(4),c=n(2);Object(r.b)({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=n[0];return{type:"sqrt",body:t[0],index:r}},htmlBuilder:function(e,t){var n=l.b(e.value.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n instanceof o.a.documentFragment&&(n=i.a.makeSpan([],[n],t));var r=t.fontMetrics(),a=r.defaultRuleThickness,c=a;t.style.id<u.a.TEXT.id&&(c=t.fontMetrics().xHeight);var f=a+c/4,d=(n.height+n.depth+f+a)*t.sizeMultiplier,h=s.a.sqrtImage(d,t),p=h.span,m=h.ruleWidth,v=p.height-m;v>n.height+n.depth+f&&(f=(f+v-n.height-n.depth)/2);var y=p.height-n.height-f-m;n.style.paddingLeft=p.advanceWidth+"em";var g=i.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+y)},{type:"elem",elem:p},{type:"kern",size:m}]},t);if(e.value.index){var b=t.havingStyle(u.a.SCRIPTSCRIPT),w=l.b(e.value.index,b,t),_=.6*(g.height-g.depth),E=i.a.makeVList({positionType:"shift",positionData:-_,children:[{type:"elem",elem:w}]},t),T=i.a.makeSpan(["root"],[E]);return i.a.makeSpan(["mord","sqrt"],[T,g],t)}return i.a.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder:function(e,t){return e.value.index?new a.a.MathNode("mroot",[c.b(e.value.body,t),c.b(e.value.index,t)]):new a.a.MathNode("msqrt",[c.b(e.value.body,t)])}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(6),s=n(4),u=n(2),l=function(e,t){var n=s.a(e.value.value,t.withColor(e.value.color),!1);return new i.a.makeFragment(n)},c=function(e,t){var n=u.a(e.value.value,t),r=new o.a.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.value.color),r};Object(r.b)({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(e,t){var n=t[0],i=t[1];return{type:"color",color:n.value,value:Object(r.c)(i)}},htmlBuilder:l,mathmlBuilder:c}),Object(r.b)({type:"color",names:["\\blue","\\orange","\\pink","\\red","\\green","\\gray","\\purple","\\blueA","\\blueB","\\blueC","\\blueD","\\blueE","\\tealA","\\tealB","\\tealC","\\tealD","\\tealE","\\greenA","\\greenB","\\greenC","\\greenD","\\greenE","\\goldA","\\goldB","\\goldC","\\goldD","\\goldE","\\redA","\\redB","\\redC","\\redD","\\redE","\\maroonA","\\maroonB","\\maroonC","\\maroonD","\\maroonE","\\purpleA","\\purpleB","\\purpleC","\\purpleD","\\purpleE","\\mintA","\\mintB","\\mintC","\\grayA","\\grayB","\\grayC","\\grayD","\\grayE","\\grayF","\\grayG","\\grayH","\\grayI","\\kaBlue","\\kaGreen"],props:{numArgs:1,allowedInText:!0,greediness:3},handler:function(e,t){var n=t[0];return{type:"color",color:"katex-"+e.funcName.slice(1),value:Object(r.c)(n)}},htmlBuilder:l,mathmlBuilder:c}),Object(r.b)({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(e,t){var n=e.parser,r=e.breakOnTokenText,i=t[0];if(!i)throw new a.a("\\color not followed by color");var o=n.parseExpression(!0,r);return{type:"color",color:i.value,value:o}},htmlBuilder:l,mathmlBuilder:c})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(4),s=n(2),u={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},l={"\\textbf":"textbf"},c={"\\textit":"textit"};Object(r.b)({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textit"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=t[0];return{type:"text",body:Object(r.c)(n),font:e.funcName}},htmlBuilder:function(e,t){var n=e.value.font,r=void 0;r=u[n]?t.withFontFamily(u[n]):l[n]?t.withFontWeight(l[n]):t.withFontShape(c[n]);var o=a.a(e.value.body,r,!0);return i.a.tryCombineChars(o),i.a.makeSpan(["mord","text"],o,r)},mathmlBuilder:function(e,t){for(var n=e.value.body,r=[],i=null,a=0;a<n.length;a++){var u=s.b(n[a],t);"mtext"===u.type&&null!=i?Array.prototype.push.apply(i.children,u.children):(r.push(u),"mtext"===u.type&&(i=u))}return 1===r.length?r[0]:new o.a.MathNode("mrow",r)}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(5),s=n(13),u=n(4),l=n(2),c=function(e,t){var n=u.b(e.value.body,t),r=e.value.label.substr(1),o=t.sizeMultiplier,l=void 0,c=0,f=/color/.test(r);if("sout"===r)l=i.a.makeSpan(["stretchy","sout"]),l.height=t.fontMetrics().defaultRuleThickness/o,c=-.5*t.fontMetrics().xHeight;else{n.classes.push(/cancel/.test(r)?"cancel-pad":"boxpad");var d=0;d=/box/.test(r)?"colorbox"===r?.3:.34:a.a.isCharacterBox(e.value.body)?.2:0,l=s.a.encloseSpan(n,r,d,t),c=n.depth+d,f&&(l.style.backgroundColor=e.value.backgroundColor.value,"fcolorbox"===r&&(l.style.borderColor=e.value.borderColor.value))}var h=void 0;return h=f?i.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:0}]},t):i.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:l,shift:c,wrapperClasses:/cancel/.test(r)?["svg-align"]:[]}]},t),/cancel/.test(r)?i.a.makeSpan(["mord","cancel-lap"],[h],t):i.a.makeSpan(["mord"],[h],t)},f=function(e,t){var n=new o.a.MathNode("menclose",[l.b(e.value.body,t)]);switch(e.value.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\colorbox":n.setAttribute("mathbackground",e.value.backgroundColor.value);break;case"\\fcolorbox":n.setAttribute("mathbackground",e.value.backgroundColor.value),n.setAttribute("notation","box");break;default:n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return n};Object(r.b)({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var r=t[0],i=t[1];return{type:"enclose",label:e.funcName,backgroundColor:r,body:i}},htmlBuilder:c,mathmlBuilder:f}),Object(r.b)({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var r=t[0],i=t[1],o=t[2];return{type:"enclose",label:e.funcName,backgroundColor:i,borderColor:r,body:o}},htmlBuilder:c,mathmlBuilder:f}),Object(r.b)({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\fbox"],props:{numArgs:1},handler:function(e,t,n){var r=t[0];return{type:"enclose",label:e.funcName,body:r}},htmlBuilder:c,mathmlBuilder:f})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(4),s=n(2);Object(r.b)({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){return{type:"overline",body:t[0]}},htmlBuilder:function(e,t){var n=a.b(e.value.body,t.havingCrampedStyle()),r=i.a.makeLineSpan("overline-line",t),o=i.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:r.height},{type:"elem",elem:r}]},t);return i.a.makeSpan(["mord","overline"],[o],t)},mathmlBuilder:function(e,t){var n=new o.a.MathNode("mo",[new o.a.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new o.a.MathNode("mover",[s.b(e.value.body,t),n]);return r.setAttribute("accent","true"),r}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(4),s=n(2);Object(r.b)({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",body:t[0]}},htmlBuilder:function(e,t){var n=a.b(e.value.body,t),r=i.a.makeLineSpan("underline-line",t),o=i.a.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r},{type:"kern",size:5*r.height},{type:"elem",elem:n}]},t);return i.a.makeSpan(["mord","underline"],[o],t)},mathmlBuilder:function(e,t){var n=new o.a.MathNode("mo",[new o.a.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new o.a.MathNode("munder",[s.b(e.value.body,t),n]);return r.setAttribute("accentunder","true"),r}})},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(1),a=n(19);Object(i.b)({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,n){var r=n[0],i=t[0],o=t[1];return{type:"rule",shift:r&&r.value,width:i.value,height:o.value}},htmlBuilder:function(e,t){var n=r.a.makeSpan(["mord","rule"],[],t),i=0;e.value.shift&&(i=Object(a.a)(e.value.shift,t));var o=Object(a.a)(e.value.width,t),s=Object(a.a)(e.value.height,t);return n.style.borderRightWidth=o+"em",n.style.borderTopWidth=s+"em",n.style.bottom=i+"em",n.width=o,n.height=s+i,n.depth=-i,n.maxFontSize=1.125*s*t.sizeMultiplier,n},mathmlBuilder:function(e,t){return new o.a.MathNode("mrow")}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(19),s=n(6);Object(r.b)({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n="m"===e.funcName[1],r="mu"===t[0].value.unit;if(n){if(r||"undefined"!==typeof console&&console.warn("In LaTeX, "+e.funcName+" supports only mu units, not "+t[0].value.unit+" units"),"math"!==e.parser.mode)throw new s.a("Can't use function '"+e.funcName+"' in text mode")}else r&&"undefined"!==typeof console&&console.warn("In LaTeX, "+e.funcName+" does not support mu units");return{type:"kern",dimension:t[0].value}},htmlBuilder:function(e,t){return i.a.makeGlue(e.value.dimension,t)},mathmlBuilder:function(e,t){var n=new o.a.MathNode("mspace"),r=Object(a.a)(e.value.dimension,t);return n.setAttribute("width",r+"em"),n}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(4),s=n(2);Object(r.b)({type:"phantom",names:["\\phantom"],props:{numArgs:1},handler:function(e,t){var n=t[0];return{type:"phantom",value:Object(r.c)(n)}},htmlBuilder:function(e,t){var n=a.a(e.value.value,t.withPhantom(),!1);return new i.a.makeFragment(n)},mathmlBuilder:function(e,t){var n=s.a(e.value.value,t);return new o.a.MathNode("mphantom",n)}}),Object(r.b)({type:"hphantom",names:["\\hphantom"],props:{numArgs:1},handler:function(e,t){var n=t[0];return{type:"hphantom",value:Object(r.c)(n),body:n}},htmlBuilder:function(e,t){var n=i.a.makeSpan([],[a.b(e.value.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=i.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=s.a(e.value.value,t),r=new o.a.MathNode("mphantom",n);return r.setAttribute("height","0px"),r}}),Object(r.b)({type:"vphantom",names:["\\vphantom"],props:{numArgs:1},handler:function(e,t){var n=t[0];return{type:"vphantom",value:Object(r.c)(n),body:n}},htmlBuilder:function(e,t){var n=i.a.makeSpan(["inner"],[a.b(e.value.body,t.withPhantom())]),r=i.a.makeSpan(["fix"],[]);return i.a.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:function(e,t){var n=s.a(e.value.value,t),r=new o.a.MathNode("mphantom",n);return r.setAttribute("width","0px"),r}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(9),s=n(4),u=n(2),l=function(e,t){var n=[];if("bmod"===e.value.modType?t.style.isTight()?n.push(i.a.makeSpan(["mspace","thickspace"],[],t)):n.push(i.a.makeSpan(["mspace","muspace"],[],t)):t.style.size===a.a.DISPLAY.size?n.push(i.a.makeSpan(["mspace","quad"],[],t)):"mod"===e.value.modType?n.push(i.a.makeSpan(["mspace","twelvemuspace"],[],t)):n.push(i.a.makeSpan(["mspace","eightmuspace"],[],t)),"pod"!==e.value.modType&&"pmod"!==e.value.modType||n.push(i.a.mathsym("(",e.mode)),"pod"!==e.value.modType){var r=[i.a.mathsym("m",e.mode),i.a.mathsym("o",e.mode),i.a.mathsym("d",e.mode)];"bmod"===e.value.modType?(n.push(i.a.makeSpan(["mbin"],r,t)),t.style.isTight()?n.push(i.a.makeSpan(["mspace","thickspace"],[],t)):n.push(i.a.makeSpan(["mspace","muspace"],[],t))):(Array.prototype.push.apply(n,r),n.push(i.a.makeSpan(["mspace","sixmuspace"],[],t)))}return e.value.value&&Array.prototype.push.apply(n,s.a(e.value.value,t,!1)),"pod"!==e.value.modType&&"pmod"!==e.value.modType||n.push(i.a.mathsym(")",e.mode)),i.a.makeFragment(n)},c=function(e,t){var n=[];if("pod"!==e.value.modType&&"pmod"!==e.value.modType||n.push(new o.a.MathNode("mo",[u.e("(",e.mode)])),"pod"!==e.value.modType&&n.push(new o.a.MathNode("mo",[u.e("mod",e.mode)])),e.value.value){var r=new o.a.MathNode("mspace");r.setAttribute("width","0.333333em"),n.push(r),n=n.concat(u.a(e.value.value,t))}return"pod"!==e.value.modType&&"pmod"!==e.value.modType||n.push(new o.a.MathNode("mo",[u.e(")",e.mode)])),new o.a.MathNode("mo",n)};Object(r.b)({type:"mod",names:["\\bmod"],props:{numArgs:0},handler:function(e,t){return{type:"mod",modType:"bmod",value:null}},htmlBuilder:l,mathmlBuilder:c}),Object(r.b)({type:"mod",names:["\\pod","\\pmod","\\mod"],props:{numArgs:1},handler:function(e,t){var n=t[0];return{type:"mod",modType:e.funcName.substr(1),value:Object(r.c)(n)}},htmlBuilder:l,mathmlBuilder:c})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(12),a=n(1),s=n(5),u=n(9),l=n(4),c=n(2),f=function(e,t){var n=void 0,r=void 0,a=!1;"supsub"===e.type&&(n=e.value.sup,r=e.value.sub,e=e.value.base,a=!0);var c=t.style,f=["\\smallint"],d=!1;c.size===u.a.DISPLAY.size&&e.value.symbol&&!s.a.contains(f,e.value.body)&&(d=!0);var h=void 0;if(e.value.symbol){var p=d?"Size2-Regular":"Size1-Regular";h=i.a.makeSymbol(e.value.body,p,"math",t,["mop","op-symbol",d?"large-op":"small-op"])}else if(e.value.value){var m=l.a(e.value.value,t,!0);1===m.length&&m[0]instanceof o.a.symbolNode?(h=m[0],h.classes[0]="mop"):h=i.a.makeSpan(["mop"],m,t)}else{for(var v=[],y=1;y<e.value.body.length;y++)v.push(i.a.mathsym(e.value.body[y],e.mode));h=i.a.makeSpan(["mop"],v,t)}var g=0,b=0;if(h instanceof o.a.symbolNode&&(g=(h.height-h.depth)/2-t.fontMetrics().axisHeight,b=h.italic),a){h=i.a.makeSpan([],[h]);var w=void 0,_=void 0;if(n){var E=l.b(n,t.havingStyle(c.sup()),t);_={elem:E,kern:Math.max(t.fontMetrics().bigOpSpacing1,t.fontMetrics().bigOpSpacing3-E.depth)}}if(r){var T=l.b(r,t.havingStyle(c.sub()),t);w={elem:T,kern:Math.max(t.fontMetrics().bigOpSpacing2,t.fontMetrics().bigOpSpacing4-T.height)}}var x=void 0;if(_&&w){var S=t.fontMetrics().bigOpSpacing5+w.elem.height+w.elem.depth+w.kern+h.depth+g;x=i.a.makeVList({positionType:"bottom",positionData:S,children:[{type:"kern",size:t.fontMetrics().bigOpSpacing5},{type:"elem",elem:w.elem,marginLeft:-b+"em"},{type:"kern",size:w.kern},{type:"elem",elem:h},{type:"kern",size:_.kern},{type:"elem",elem:_.elem,marginLeft:b+"em"},{type:"kern",size:t.fontMetrics().bigOpSpacing5}]},t)}else if(w){var k=h.height-g;x=i.a.makeVList({positionType:"top",positionData:k,children:[{type:"kern",size:t.fontMetrics().bigOpSpacing5},{type:"elem",elem:w.elem,marginLeft:-b+"em"},{type:"kern",size:w.kern},{type:"elem",elem:h}]},t)}else{if(!_)return h;var C=h.depth+g;x=i.a.makeVList({positionType:"bottom",positionData:C,children:[{type:"elem",elem:h},{type:"kern",size:_.kern},{type:"elem",elem:_.elem,marginLeft:b+"em"},{type:"kern",size:t.fontMetrics().bigOpSpacing5}]},t)}return i.a.makeSpan(["mop","op-limits"],[x],t)}return g&&(h.style.position="relative",h.style.top=g+"em"),h},d=function(e,t){var n=void 0;if(e.value.symbol)n=new a.a.MathNode("mo",[c.e(e.value.body,e.mode)]);else{if(!e.value.value){n=new a.a.MathNode("mi",[new a.a.TextNode(e.value.body.slice(1))]);var r=new a.a.MathNode("mo",[c.e("\u2061","text")]);return new o.a.documentFragment([n,r])}n=new a.a.MathNode("mo",c.a(e.value.value,t))}return n},h={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcap","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};Object(r.b)({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:function(e,t){var n=e.funcName;return 1===n.length&&(n=h[n]),{type:"op",limits:!0,symbol:!0,body:n}},htmlBuilder:f,mathmlBuilder:d}),Object(r.b)({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(e,t){var n=t[0];return{type:"op",limits:!1,symbol:!1,value:Object(r.c)(n)}},htmlBuilder:f,mathmlBuilder:d})},function(e,t,n){"use strict";var r=n(18),i=n.n(r),o=n(3),a=n(0),s=n(1),u=n(12),l=n(4),c=n(2);Object(o.b)({type:"operatorname",names:["\\operatorname"],props:{numArgs:1},handler:function(e,t){var n=t[0];return{type:"operatorname",value:Object(o.c)(n)}},htmlBuilder:function(e,t){var n=[];if(e.value.value.length>0){var r="",o="",s=!0,c=!1,f=void 0;try{for(var d,h=i()(e.value.value);!(s=(d=h.next()).done);s=!0){var p=d.value;-1!=="*-/:".indexOf(p.value)&&(p.type="textord")}}catch(e){c=!0,f=e}finally{try{!s&&h.return&&h.return()}finally{if(c)throw f}}var m=l.a(e.value.value,t.withFontFamily("mathrm"),!0),v=!0,y=!1,g=void 0;try{for(var b,w=i()(m);!(v=(b=w.next()).done);v=!0){var _=b.value;_ instanceof u.a.symbolNode?(r=_.value,r=r.replace(/\u2212/,"-"),r=r.replace(/\u2217/,"*"),o=/[\u0391-\u03D7]/.test(r)?"math":"text",n.push(a.a.mathsym(r,o))):n.push(_)}}catch(e){y=!0,g=e}finally{try{!v&&w.return&&w.return()}finally{if(y)throw g}}}return a.a.makeSpan(["mop"],n,t)},mathmlBuilder:function(e,t){var n=[];if(e.value.value.length>0){var r=c.a(e.value.value,t.withFontFamily("mathrm")),i=r.map(function(e){return e.toText()}).join("");i=i.replace(/\u2212/g,"-"),i=i.replace(/\u2217/g,"*"),n=[new s.a.TextNode(i)]}var o=new s.a.MathNode("mi",n);o.setAttribute("mathvariant","normal");var a=new s.a.MathNode("mo",[c.e("\u2061","text")]);return new u.a.documentFragment([o,a])}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(44),a=n(1),s=n(9),u=n(4),l=n(2);Object(r.b)({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac"],props:{numArgs:2,greediness:2},handler:function(e,t){var n=t[0],r=t[1],i=void 0,o=null,a=null,s="auto";switch(e.funcName){case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,o="(",a=")";break;default:throw new Error("Unrecognized genfrac command")}switch(e.funcName){case"\\dfrac":case"\\dbinom":s="display";break;case"\\tfrac":case"\\tbinom":s="text"}return{type:"genfrac",numer:n,denom:r,hasBarLine:i,leftDelim:o,rightDelim:a,size:s}},htmlBuilder:function(e,t){var n=t.style;"display"===e.value.size?n=s.a.DISPLAY:"text"===e.value.size&&(n=s.a.TEXT);var r=n.fracNum(),a=n.fracDen(),l=void 0;l=t.havingStyle(r);var c=u.b(e.value.numer,l,t);l=t.havingStyle(a);var f=u.b(e.value.denom,l,t),d=void 0,h=void 0,p=void 0;e.value.hasBarLine?(d=i.a.makeLineSpan("frac-line",t),h=d.height,p=d.height):(d=null,h=0,p=t.fontMetrics().defaultRuleThickness);var m=void 0,v=void 0,y=void 0;n.size===s.a.DISPLAY.size?(m=t.fontMetrics().num1,v=h>0?3*p:7*p,y=t.fontMetrics().denom1):(h>0?(m=t.fontMetrics().num2,v=p):(m=t.fontMetrics().num3,v=3*p),y=t.fontMetrics().denom2);var g=void 0;if(d){var b=t.fontMetrics().axisHeight;m-c.depth-(b+.5*h)<v&&(m+=v-(m-c.depth-(b+.5*h))),b-.5*h-(f.height-y)<v&&(y+=v-(b-.5*h-(f.height-y)));var w=-(b-.5*h);g=i.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:y},{type:"elem",elem:d,shift:w+2*h},{type:"elem",elem:c,shift:-m}]},t)}else{var _=m-c.depth-(f.height-y);_<v&&(m+=.5*(v-_),y+=.5*(v-_)),g=i.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:y},{type:"elem",elem:c,shift:-m}]},t)}l=t.havingStyle(n),g.height*=l.sizeMultiplier/t.sizeMultiplier,g.depth*=l.sizeMultiplier/t.sizeMultiplier;var E=void 0;E=n.size===s.a.DISPLAY.size?t.fontMetrics().delim1:t.fontMetrics().delim2;var T=void 0,x=void 0;return T=null==e.value.leftDelim?u.e(t,["mopen"]):o.a.customSizedDelim(e.value.leftDelim,E,!0,t.havingStyle(n),e.mode,["mopen"]),x=null==e.value.rightDelim?u.e(t,["mclose"]):o.a.customSizedDelim(e.value.rightDelim,E,!0,t.havingStyle(n),e.mode,["mclose"]),i.a.makeSpan(["mord"].concat(l.sizingClasses(t)),[T,i.a.makeSpan(["mfrac"],[g]),x],t)},mathmlBuilder:function(e,t){var n=new a.a.MathNode("mfrac",[l.b(e.value.numer,t),l.b(e.value.denom,t)]);if(e.value.hasBarLine||n.setAttribute("linethickness","0px"),null!=e.value.leftDelim||null!=e.value.rightDelim){var r=[];if(null!=e.value.leftDelim){var i=new a.a.MathNode("mo",[new a.a.TextNode(e.value.leftDelim)]);i.setAttribute("fence","true"),r.push(i)}if(r.push(n),null!=e.value.rightDelim){var o=new a.a.MathNode("mo",[new a.a.TextNode(e.value.rightDelim)]);o.setAttribute("fence","true"),r.push(o)}return new a.a.MathNode("mrow",r)}return n}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(4),s=n(2);Object(r.b)({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=t[0];return{type:"lap",alignment:e.funcName.slice(5),body:n}},htmlBuilder:function(e,t){var n=void 0;"clap"===e.value.alignment?(n=i.a.makeSpan([],[a.b(e.value.body,t)]),n=i.a.makeSpan(["inner"],[n],t)):n=i.a.makeSpan(["inner"],[a.b(e.value.body,t)]);var r=i.a.makeSpan(["fix"],[]);return i.a.makeSpan(["mord",e.value.alignment],[n,r],t)},mathmlBuilder:function(e,t){var n=new o.a.MathNode("mpadded",[s.b(e.value.body,t)]);if("rlap"!==e.value.alignment){var r="llap"===e.value.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(4),s=n(2);Object(r.b)({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=!1,i=!1,o=n[0];if(o)for(var a="",s=0;s<o.value.length;++s)if("t"===(a=o.value[s].value))r=!0;else{if("b"!==a){r=!1,i=!1;break}i=!0}else r=!0,i=!0;return{type:"smash",body:t[0],smashHeight:r,smashDepth:i}},htmlBuilder:function(e,t){var n=i.a.makeSpan(["mord"],[a.b(e.value.body,t)]);if(!e.value.smashHeight&&!e.value.smashDepth)return n;if(e.value.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.value.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;return i.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=new o.a.MathNode("mpadded",[s.b(e.value.body,t)]);return e.value.smashHeight&&n.setAttribute("height","0px"),e.value.smashDepth&&n.setAttribute("depth","0px"),n}})},function(e,t,n){"use strict";function r(e,t){if(l.a.contains(h,e.value))return e;throw new u.a("Invalid delimiter: '"+e.value+"' after '"+t.funcName+"'",e)}var i=n(0),o=n(3),a=n(44),s=n(1),u=n(6),l=n(5),c=n(4),f=n(2),d={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},h=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];Object(o.b)({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=r(t[0],e);return{type:"delimsizing",size:d[e.funcName].size,mclass:d[e.funcName].mclass,value:n.value}},htmlBuilder:function(e,t){var n=e.value.value;return"."===n?i.a.makeSpan([e.value.mclass]):a.a.sizedDelim(n,e.value.size,t,e.mode,[e.value.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.value.value&&t.push(f.e(e.value.value,e.mode));var n=new s.a.MathNode("mo",t);return"mopen"===e.value.mclass||"mclose"===e.value.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),Object(o.b)({type:"leftright",names:["\\left","\\right"],props:{numArgs:1},handler:function(e,t){var n=r(t[0],e);if("\\left"===e.funcName){var i=e.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var a=i.parseFunction();if(!a)throw new u.a("failed to parse function after \\right");return{type:"leftright",body:o,left:n.value,right:a.value.value}}return{type:"leftright",value:n.value}},htmlBuilder:function(e,t){for(var n=c.a(e.value.body,t,!0,[null,"mclose"]),r=0,o=0,s=!1,u=0;u<n.length;u++)n[u].isMiddle?s=!0:(r=Math.max(n[u].height,r),o=Math.max(n[u].depth,o));r*=t.sizeMultiplier,o*=t.sizeMultiplier;var l=void 0;if(l="."===e.value.left?c.e(t,["mopen"]):a.a.leftRightDelim(e.value.left,r,o,t,e.mode,["mopen"]),n.unshift(l),s)for(var f=1;f<n.length;f++){var d=n[f];d.isMiddle&&(n[f]=a.a.leftRightDelim(d.isMiddle.value,r,o,d.isMiddle.options,e.mode,[]))}var h=void 0;return h="."===e.value.right?c.e(t,["mclose"]):a.a.leftRightDelim(e.value.right,r,o,t,e.mode,["mclose"]),n.push(h),i.a.makeSpan(["minner"],n,t)},mathmlBuilder:function(e,t){var n=f.a(e.value.body,t);if("."!==e.value.left){var r=new s.a.MathNode("mo",[f.e(e.value.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.value.right){var i=new s.a.MathNode("mo",[f.e(e.value.right,e.mode)]);i.setAttribute("fence","true"),n.push(i)}return new s.a.MathNode("mrow",n)}}),Object(o.b)({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(e,t){var n=r(t[0],e);if(!e.parser.leftrightDepth)throw new u.a("\\middle without preceding \\left",n);return{type:"middle",value:n.value}},htmlBuilder:function(e,t){var n=void 0;return"."===e.value.value?n=c.e(t,[]):(n=a.a.sizedDelim(e.value.value,1,t,e.mode,[]),n.isMiddle={value:e.value.value,options:t}),n},mathmlBuilder:function(e,t){var n=new s.a.MathNode("mo",[f.e(e.value.middle,e.mode)]);return n.setAttribute("fence","true"),n}})},function(e,t,n){"use strict";var r=n(3),i=n(1),o=n(9),a=n(60),s=n(2),u={display:o.a.DISPLAY,text:o.a.TEXT,script:o.a.SCRIPT,scriptscript:o.a.SCRIPTSCRIPT};Object(r.b)({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser;i.consumeSpaces();var o=i.parseExpression(!0,n);return{type:"styling",style:r.slice(1,r.length-5),value:o}},htmlBuilder:function(e,t){var n=u[e.value.style],r=t.havingStyle(n);return Object(a.a)(e.value.value,r,t)},mathmlBuilder:function(e,t){var n={display:o.a.DISPLAY,text:o.a.TEXT,script:o.a.SCRIPT,scriptscript:o.a.SCRIPTSCRIPT},r=n[e.value.style],a=t.havingStyle(r),u=s.a(e.value.value,a),l=new i.a.MathNode("mstyle",u),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=c[e.value.style];return l.setAttribute("scriptlevel",f[0]),l.setAttribute("displaystyle",f[1]),l}})},function(e,t,n){"use strict";var r=n(134),i=n.n(r),o=n(3),a=n(14),s=n(4),u=n(2),l=function(e,t){var n=e.value.font;return s.b(e.value.body,t.withFontFamily(n))},c=function(e,t){var n=e.value.font;return u.b(e.value.body,t.withFontFamily(n))},f={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Object(o.b)({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\boldsymbol","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak","\\bm"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=t[0],r=e.funcName;return r in f&&(r=f[r]),{type:"font",font:r.slice(1),body:n}},htmlBuilder:l,mathmlBuilder:c});var d={"\\rm":"mathrm","\\sf":"mathsf","\\tt":"mathtt","\\bf":"mathbf","\\it":"mathit"};Object(o.b)({type:"font",names:i()(d),props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=e.breakOnTokenText;n.consumeSpaces();var o=n.parseExpression(!0,i);return{type:"font",font:d[r],body:new a.a("ordgroup",o,n.mode)}},htmlBuilder:l,mathmlBuilder:c})},function(e,t,n){e.exports={default:n(135),__esModule:!0}},function(e,t,n){n(136),e.exports=n(8).Object.keys},function(e,t,n){var r=n(29),i=n(39);n(46)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(5),s=n(13),u=n(4),l=n(2),c=function(e,t){var n=e.value.base,r=void 0;if("supsub"===e.type){var o=e;e=o.value.base,n=e.value.base,o.value.base=n,r=u.b(o,t)}var l=u.b(n,t.havingCrampedStyle()),c=e.value.isShifty&&a.a.isCharacterBox(n),f=0;if(c){var d=a.a.getBaseElem(n);f=u.b(d,t.havingCrampedStyle()).skew}var h=Math.min(l.height,t.fontMetrics().xHeight),p=void 0;if(e.value.isStretchy)p=s.a.svgSpan(e,t),p=i.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+2*f+"em)",marginLeft:2*f+"em"}:void 0}]},t);else{var m=void 0,v=void 0;"\\vec"===e.value.label?(m=i.a.staticSvg("vec",t),v=i.a.svgData.vec[1]):(m=i.a.makeSymbol(e.value.label,"Main-Regular",e.mode,t),m.italic=0,v=m.width),p=i.a.makeSpan(["accent-body"],[m]);var y=-v/2;y+=f,p.style.left=y+"em",p=i.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:-h},{type:"elem",elem:p}]},t)}var g=i.a.makeSpan(["mord","accent"],[p],t);return r?(r.children[0]=g,r.height=Math.max(g.height,r.height),r.classes[0]="mord",r):g},f=function(e,t){var n=void 0;n=e.value.isStretchy?s.a.mathMLnode(e.value.label):new o.a.MathNode("mo",[l.e(e.value.label,e.mode)]);var r=new o.a.MathNode("mover",[l.b(e.value.base,t),n]);return r.setAttribute("accent","true"),r},d=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(e){return"\\"+e}).join("|"));Object(r.b)({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],r=!d.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName;return{type:"accent",label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:c,mathmlBuilder:f}),Object(r.b)({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:c,mathmlBuilder:f})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(13),s=n(4),u=n(2);Object(r.b)({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=t[0];return{type:"accentUnder",label:e.funcName,base:n}},htmlBuilder:function(e,t){var n=s.b(e.value.base,t),r=a.a.svgSpan(e,t),o="\\utilde"===e.value.label?.12:0,u=i.a.makeVList({positionType:"bottom",positionData:r.height+o,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return i.a.makeSpan(["mord","accentunder"],[u],t)},mathmlBuilder:function(e,t){var n=a.a.mathMLnode(e.value.label),r=new o.a.MathNode("munder",[u.b(e.value.body,t),n]);return r.setAttribute("accentunder","true"),r}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(6);Object(r.b)({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new a.a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=i.a.makeVerb(e,t),r=[],o=t.havingStyle(t.style.text()),a=0;a<n.length;a++)if("\xa0"===n[a]){var s=i.a.makeSpan(["mord","rule"],[],o);s.style.marginLeft="0.525em",r.push(s)}else r.push(i.a.makeSymbol(n[a],"Typewriter-Regular",e.mode,o,["mathtt"]));return i.a.tryCombineChars(r),i.a.makeSpan(["mord","text"].concat(o.sizingClasses(t)),r,o)},mathmlBuilder:function(e,t){var n=new o.a.TextNode(i.a.makeVerb(e,t)),r=new o.a.MathNode("mtext",[n]);return r.setAttribute("mathvariant",i.a.fontMap.mathtt.variant),r}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(4),s=n(2);Object(r.b)({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"]},handler:function(e,t){var n=t[1];return{type:"href",href:t[0].value,body:Object(r.c)(n)}},htmlBuilder:function(e,t){var n=a.a(e.value.body,t,!1),r=e.value.href;return new i.a.makeAnchor(r,[],n,t)},mathmlBuilder:function(e,t){var n=s.a(e.value.body,t),r=new o.a.MathNode("mrow",n);return r.setAttribute("href",e.value.href),r}})},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n(1),a=n(9),s=n(4),u=n(2),l=function(e,t){var n=t.style;return n.size===a.a.DISPLAY.size?e.value.display:n.size===a.a.TEXT.size?e.value.text:n.size===a.a.SCRIPT.size?e.value.script:n.size===a.a.SCRIPTSCRIPT.size?e.value.scriptscript:e.value.text};Object(r.b)({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",display:Object(r.c)(t[0]),text:Object(r.c)(t[1]),script:Object(r.c)(t[2]),scriptscript:Object(r.c)(t[3])}},htmlBuilder:function(e,t){var n=l(e,t),r=s.a(n,t,!1);return new i.a.makeFragment(r)},mathmlBuilder:function(e,t){var n=l(e,t),r=u.a(n,t,!1);return new o.a.MathNode("mrow",r)}})},function(e,t,n){"use strict";var r=n(61),i=(n(143),r.a);t.a=i},function(e,t,n){"use strict";function r(e,t,n){for(var r=[],i=[r],o=[];;){var a=e.parseExpression(!1,void 0);a=new l.a("ordgroup",a,e.mode),n&&(a=new l.a("styling",{style:n,value:[a]},e.mode)),r.push(a);var s=e.nextToken.text;if("&"===s)e.consume();else{if("\\end"===s){var c=i[i.length-1];i.length>1&&1===c.length&&0===c[0].value.value[0].value.length&&i.pop();break}if("\\\\"!==s&&"\\cr"!==s)throw new u.a("Expected & or \\\\ or \\end",e.nextToken);var f=e.parseFunction();if(!f)throw new u.a("Failed to parse function after "+s);o.push(f.value.size),r=[],i.push(r)}}return t.body=i,t.rowGaps=o,new l.a(t.type,t,e.mode)}function i(e){return"d"===e.substr(0,1)?"display":"text"}var o=n(0),a=n(61),s=n(1),u=n(6),l=n(14),c=n(19),f=n(5),d=n(13),h=n(4),p=n(2),m=function(e,t){var n=void 0,r=void 0,i=e.value.body.length,a=0,s=new Array(i),l=1/t.fontMetrics().ptPerEm,p=5*l,m=12*l,v=3*l,y=f.a.deflt(e.value.arraystretch,1),g=y*m,b=.7*g,w=.3*g,_=0;for(n=0;n<e.value.body.length;++n){var E=e.value.body[n],T=b,x=w;a<E.length&&(a=E.length);var S=new Array(E.length);for(r=0;r<E.length;++r){var k=h.b(E[r],t);x<k.depth&&(x=k.depth),T<k.height&&(T=k.height),S[r]=k}var C=0;e.value.rowGaps[n]&&(C=Object(c.a)(e.value.rowGaps[n].value,t))>0&&(C+=w,x<C&&(x=C),C=0),e.value.addJot&&(x+=v),S.height=T,S.depth=x,_+=T,S.pos=_,_+=x+C,s[n]=S}var O=_/2+t.fontMetrics().axisHeight,N=e.value.cols||[],P=[],I=void 0,A=void 0;for(r=0,A=0;r<a||A<N.length;++r,++A){for(var D=N[A]||{},R=!0;"separator"===D.type;){if(R||(I=o.a.makeSpan(["arraycolsep"],[]),I.style.width=t.fontMetrics().doubleRuleSep+"em",P.push(I)),"|"!==D.separator)throw new u.a("Invalid separator type: "+D.separator);var M=d.a.ruleSpan("vertical-separator",.05,t);M.style.height=_+"em",M.style.verticalAlign=-(_-O)+"em",P.push(M),A++,D=N[A]||{},R=!1}if(!(r>=a)){var L=void 0;(r>0||e.value.hskipBeforeAndAfter)&&0!==(L=f.a.deflt(D.pregap,p))&&(I=o.a.makeSpan(["arraycolsep"],[]),I.style.width=L+"em",P.push(I));var j=[];for(n=0;n<i;++n){var F=s[n],U=F[r];if(U){var B=F.pos-O;U.depth=F.depth,U.height=F.height,j.push({type:"elem",elem:U,shift:B})}}j=o.a.makeVList({positionType:"individualShift",children:j},t),j=o.a.makeSpan(["col-align-"+(D.align||"c")],[j]),P.push(j),(r<a-1||e.value.hskipBeforeAndAfter)&&0!==(L=f.a.deflt(D.postgap,p))&&(I=o.a.makeSpan(["arraycolsep"],[]),I.style.width=L+"em",P.push(I))}}return s=o.a.makeSpan(["mtable"],P),o.a.makeSpan(["mord"],[s],t)},v=function(e,t){return new s.a.MathNode("mtable",e.value.body.map(function(e){return new s.a.MathNode("mtr",e.map(function(e){return new s.a.MathNode("mtd",[p.b(e,t)])}))}))},y=function(e,t){var n={type:"array",cols:[],addJot:!0};n=r(e.parser,n,"display");var i=void 0,o=0,a=new l.a("ordgroup",[],e.mode);if(t[0]&&t[0].value){for(var s="",c=0;c<t[0].value.length;c++)s+=t[0].value[c].value;i=Number(s),o=2*i}var f=!o;n.value.body.forEach(function(e){for(var t=1;t<e.length;t+=2){e[t].value.value[0].value.unshift(a)}if(f)o<e.length&&(o=e.length);else{var n=e.length/2;if(i<n)throw new u.a("Too many math in a row: expected "+i+", but got "+n,e)}});for(var d=0;d<o;++d){var h="r",p=0;d%2===1?h="l":d>0&&f&&(p=1),n.value.cols[d]={type:"align",align:h,pregap:p,postgap:0}}return n};Object(a.b)({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n=t[0];n=n.value.map?n.value:[n];var o=n.map(function(e){var t=e.value;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};throw new u.a("Unknown column alignment: "+e.value,e)}),a={type:"array",cols:o,hskipBeforeAndAfter:!0};return a=r(e.parser,a,i(e.envName))},htmlBuilder:m,mathmlBuilder:v}),Object(a.b)({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n={type:"array",hskipBeforeAndAfter:!1};return n=r(e.parser,n,i(e.envName)),t&&(n=new l.a("leftright",{body:[n],left:t[0],right:t[1]},e.mode)),n},htmlBuilder:m,mathmlBuilder:v}),Object(a.b)({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(e){var t={type:"array",arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]};return t=r(e.parser,t,i(e.envName)),t=new l.a("leftright",{body:[t],left:"\\{",right:"."},e.mode)},htmlBuilder:m,mathmlBuilder:v}),Object(a.b)({type:"array",names:["aligned"],props:{numArgs:0},handler:y,htmlBuilder:m,mathmlBuilder:v}),Object(a.b)({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){var t={type:"array",cols:[{type:"align",align:"c"}],addJot:!0};return t=r(e.parser,t,"display")},htmlBuilder:m,mathmlBuilder:v}),Object(a.b)({type:"array",names:["alignedat"],props:{numArgs:1},handler:y,htmlBuilder:m,mathmlBuilder:v})},function(e,t,n){"use strict";var r=n(35),i=n.n(r),o=n(7),a=n.n(o),s=n(10),u=n.n(s),l=n(62),c=n(27),f=n(146),d=n(6),h=n(147),p=n.n(h),m=function(){function e(t,n,r){a()(this,e),this.lexer=new l.c(t),this.macros=p()({},f.a,n),this.mode=r,this.stack=[]}return u()(e,[{key:"switchMode",value:function(e){this.mode=e}},{key:"future",value:function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}},{key:"popToken",value:function(){return this.future(),this.stack.pop()}},{key:"pushToken",value:function(e){this.stack.push(e)}},{key:"pushTokens",value:function(e){var t;(t=this.stack).push.apply(t,i()(e))}},{key:"consumeSpaces",value:function(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}},{key:"consumeArgs",value:function(e){for(var t=[],n=0;n<e;++n){this.consumeSpaces();var r=this.popToken();if("{"===r.text){for(var i=[],o=1;0!==o;){var a=this.popToken();if(i.push(a),"{"===a.text)++o;else if("}"===a.text)--o;else if("EOF"===a.text)throw new d.a("End of input in macro argument",r)}i.pop(),i.reverse(),t[n]=i}else{if("EOF"===r.text)throw new d.a("End of input expecting macro argument");t[n]=[r]}}return t}},{key:"expandOnce",value:function(){var e=this.popToken(),t=e.text;if("\\"===t.charAt(0)&&l.b.test(t)&&this.consumeSpaces(),!this.macros.hasOwnProperty(t))return this.pushToken(e),e;var n=this._getExpansion(t),r=n.tokens,o=n.numArgs,a=r;if(o){var s=this.consumeArgs(o);a=a.slice();for(var u=a.length-1;u>=0;--u){var c=a[u];if("#"===c.text){if(0===u)throw new d.a("Incomplete placeholder at end of macro body",c);if(c=a[--u],"#"===c.text)a.splice(u+1,1);else{if(!/^[1-9]$/.test(c.text))throw new d.a("Not a valid argument number",c);var f;(f=a).splice.apply(f,[u,2].concat(i()(s[+c.text-1])))}}}}return this.pushTokens(a),a}},{key:"expandAfterFuture",value:function(){return this.expandOnce(),this.future()}},{key:"expandNextToken",value:function(){for(;;){var e=this.expandOnce();if(e instanceof c.a){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error}},{key:"_getExpansion",value:function(e){var t=this.macros[e],n="function"===typeof t?t(this):t;if("string"===typeof n){var r=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(r+1));)++r;for(var o=new l.c(n),a=[],s=o.lex();"EOF"!==s.text;)a.push(s),s=o.lex();a.reverse();var u={tokens:a,numArgs:r};return"function"!==typeof t&&(this.macros[e]=u),u}return n}}]),e}();t.a=m},function(e,t){function n(e){if(!e.__matchAtRelocatable){var t=e.source+"|()",n="g"+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"");e.__matchAtRelocatable=new RegExp(t,n)}return e.__matchAtRelocatable}function r(e,t,r){if(e.global||e.sticky)throw new Error("matchAt(...): Only non-global regexes are supported");var i=n(e);i.lastIndex=r;var o=i.exec(t);return null==o[o.length-1]?(o.length=o.length-1,o):null}e.exports=r},function(e,t,n){"use strict";function r(e,t){s[e]=t}var i=n(59),o=n(28),a=n(5),s=(n(27),{});t.a=s,r("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),r("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),r("\\@ifnextchar",function(e){var t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),r("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),r("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),r("\\bgroup","{"),r("\\egroup","}"),r("\\begingroup","{"),r("\\endgroup","}"),r("\\lq","`"),r("\\rq","'"),r("\\lbrack","["),r("\\rbrack","]"),r("\\aa","\\r a"),r("\\AA","\\r A"),r("\u2102","\\mathbb{C}"),r("\u210d","\\mathbb{H}"),r("\u2115","\\mathbb{N}"),r("\u2119","\\mathbb{P}"),r("\u211a","\\mathbb{Q}"),r("\u211d","\\mathbb{R}"),r("\u2124","\\mathbb{Z}"),r("\xb7","\\cdotp"),r("\\llap","\\mathllap{\\textrm{#1}}"),r("\\rlap","\\mathrlap{\\textrm{#1}}"),r("\\clap","\\mathclap{\\textrm{#1}}"),r("\\varGamma","\\mathit{\\Gamma}"),r("\\varDelta","\\mathit{\\Delta}"),r("\\varTheta","\\mathit{\\Theta}"),r("\\varLambda","\\mathit{\\Lambda}"),r("\\varXi","\\mathit{\\Xi}"),r("\\varPi","\\mathit{\\Pi}"),r("\\varSigma","\\mathit{\\Sigma}"),r("\\varUpsilon","\\mathit{\\Upsilon}"),r("\\varPhi","\\mathit{\\Phi}"),r("\\varPsi","\\mathit{\\Psi}"),r("\\varOmega","\\mathit{\\Omega}"),r("\\overset","\\mathop{#2}\\limits^{#1}"),r("\\underset","\\mathop{#2}\\limits_{#1}"),r("\\boxed","\\fbox{\\displaystyle{#1}}"),r("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),r("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),r("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var u={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\implies":"\\dotsb","\\impliedby":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\iff":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\bmod":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};r("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in u?t=u[n]:"\\not"===n.substr(0,4)?t="\\dotsb":n in o.a.math&&a.a.contains(["bin","rel"],o.a.math[n].group)&&(t="\\dotsb"),t});var l={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};r("\\dotso",function(e){return e.future().text in l?"\\ldots\\,":"\\ldots"}),r("\\dotsc",function(e){var t=e.future().text;return t in l&&","!==t?"\\ldots\\,":"\\ldots"}),r("\\cdots",function(e){return e.future().text in l?"\\@cdots\\,":"\\@cdots"}),r("\\dotsb","\\cdots"),r("\\dotsm","\\cdots"),r("\\dotsi","\\!\\cdots"),r("\\dotsx","\\ldots\\,"),r("\\DOTSI","\\relax"),r("\\DOTSB","\\relax"),r("\\DOTSX","\\relax"),r("\\thinspace","\\,"),r("\\medspace","\\:"),r("\\thickspace","\\;"),r("\\TeX","\\textrm{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}");var c=i.a["Main-Regular"]["T".charCodeAt(0)][1]-.7*i.a["Main-Regular"]["A".charCodeAt(0)][1]+"em";r("\\LaTeX","\\textrm{L\\kern-.36em\\raisebox{"+c+"}{\\scriptsize A}\\kern-.15em\\TeX}"),r("\\KaTeX","\\textrm{K\\kern-.17em\\raisebox{"+c+"}{\\scriptsize A}\\kern-.15em\\TeX}"),r("\\hspace","\\@ifstar\\kern\\kern"),r("\\ordinarycolon",":"),r("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),r("\\dblcolon","\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon"),r("\\coloneqq","\\vcentcolon\\mathrel{\\mkern-1.2mu}="),r("\\Coloneqq","\\dblcolon\\mathrel{\\mkern-1.2mu}="),r("\\coloneq","\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}"),r("\\Coloneq","\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}"),r("\\eqqcolon","=\\mathrel{\\mkern-1.2mu}\\vcentcolon"),r("\\Eqqcolon","=\\mathrel{\\mkern-1.2mu}\\dblcolon"),r("\\eqcolon","\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon"),r("\\Eqcolon","\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon"),r("\\colonapprox","\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx"),r("\\Colonapprox","\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx"),r("\\colonsim","\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim"),r("\\Colonsim","\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim"),r("\u2254","\\coloneqq"),r("\u2255","\\eqqcolon"),r("\u2a74","\\Coloneqq"),r("\\ratio","\\vcentcolon"),r("\\coloncolon","\\dblcolon"),r("\\colonequals","\\coloneqq"),r("\\coloncolonequals","\\Coloneqq"),r("\\equalscolon","\\eqqcolon"),r("\\equalscoloncolon","\\Eqqcolon"),r("\\colonminus","\\coloneq"),r("\\coloncolonminus","\\Coloneq"),r("\\minuscolon","\\eqcolon"),r("\\minuscoloncolon","\\Eqcolon"),r("\\coloncolonapprox","\\Colonapprox"),r("\\coloncolonsim","\\Colonsim"),r("\\simcolon","\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon"),r("\\simcoloncolon","\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon"),r("\\approxcolon","\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon"),r("\\approxcoloncolon","\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon"),r("\\notni","\\not\\ni"),r("\\limsup","\\DOTSB\\mathop{\\operatorname{lim\\,sup}}\\limits"),r("\\liminf","\\DOTSB\\mathop{\\operatorname{lim\\,inf}}\\limits")},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var c in n)o.call(n,c)&&(u[c]=n[c]);if(i){s=i(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t){e.exports={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"}}},function(e,t,n){"use strict";t.a={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\u010f":"d\u030c","\u1e0b":"d\u0307","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u013a":"l\u0301","\u013e":"l\u030c","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\u010e":"D\u030c","\u1e0a":"D\u0307","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0139":"L\u0301","\u013d":"L\u030c","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u0164":"T\u030c","\u1e6a":"T\u0307","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"}}]).default})},function(e,t){},function(e,t,n){"use strict";var r=n(574),i=n(586),o=n(633);e.exports=r().use(i).use(o).freeze()},function(e,t,n){"use strict";function r(e,t){t.tree=e.parse(t.file)}function i(e,t,n){function r(e,r,i){e?n(e):(t.tree=r,t.file=i,n())}e.run(t.tree,t.file,r)}function o(e,t){t.file.contents=e.stringify(t.tree,t.file)}function a(){function e(){for(var e=a(),t=C.length,n=-1;++n<t;)e.use.apply(null,C[n]);return e.data(p(!0,{},N)),e}function t(){var t,n,r,i;if(P)return e;for(;++I<C.length;)t=C[I],n=t[0],r=t[1],i=null,!1!==r&&(!0===r&&(t[1]=void 0),"function"===typeof(i=n.apply(e,t.slice(1)))&&O.use(i));return P=!0,I=1/0,e}function n(t,n){return g(t)?2===arguments.length?(f("data",P),N[t]=n,e):_.call(N,t)&&N[t]||null:t?(f("data",P),N=t,e):N}function r(t){function n(e){o(e.plugins),e.settings&&(s=p(s||{},e.settings))}function r(e){if("function"===typeof e)a(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?a.apply(null,e):n(e)}}function o(e){var t,n;if(null===e||void 0===e);else{if(!("object"===typeof e&&"length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)r(e[n])}}function a(e,t){var n=i(e);n?(b(n[1])&&b(t)&&(t=p(n[1],t)),n[1]=t):C.push(w.call(arguments))}var s;if(f("use",P),null===t||void 0===t);else if("function"===typeof t)a.apply(null,arguments);else{if("object"!==typeof t)throw new Error("Expected usable value, not `"+t+"`");"length"in t?o(t):n(t)}return s&&(N.settings=p(N.settings||{},s)),e}function i(e){for(var t,n=C.length,r=-1;++r<n;)if(t=C[r],t[0]===e)return t}function o(n){var r,i=v(n);return t(),r=e.Parser,l("parse",r),s(r)?new r(String(i),i).parse():r(String(i),i)}function u(e,n,r){function i(t,i){function o(n,o,a){o=o||e,n?i(n):t?t(o):r(null,o,a)}O.run(e,v(n),o)}if(d(e),t(),r||"function"!==typeof n||(r=n,n=null),!r)return new Promise(i);i(null,r)}function T(e,t){function n(e,t){i=!0,m(e),r=t}var r,i=!1;return u(e,t,n),h("runSync","run",i),r}function x(n,r){var i,o=v(r);return t(),i=e.Compiler,c("stringify",i),d(n),s(i)?new i(n,o).compile():i(n,o)}function S(n,r){function i(t,i){function o(e){e?i(e):t?t(a):r(null,a)}var a=v(n);E.run(e,{file:a},o)}if(t(),l("process",e.Parser),c("process",e.Compiler),!r)return new Promise(i);i(null,r)}function k(n){function r(e){o=!0,m(e)}var i,o=!1;return t(),l("processSync",e.Parser),c("processSync",e.Compiler),i=v(n),S(i,r),h("processSync","process",o),i}var C=[],O=y(),N={},P=!1,I=-1;return e.data=n,e.freeze=t,e.attachers=C,e.use=r,e.parse=o,e.stringify=x,e.run=u,e.runSync=T,e.process=S,e.processSync=k,e}function s(e){return"function"===typeof e&&u(e.prototype)}function u(e){var t;for(t in e)return!0;return!1}function l(e,t){if("function"!==typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function c(e,t){if("function"!==typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function f(e,t){if(t)throw new Error(["Cannot invoke `"+e+"` on a frozen processor.\nCreate a new ","processor first, by invoking it: use `processor()` instead of ","`processor`."].join(""))}function d(e){if(!e||!g(e.type))throw new Error("Expected node, got `"+e+"`")}function h(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}var p=n(575),m=n(576),v=n(577),y=n(583),g=n(584),b=n(585);e.exports=a().freeze();var w=[].slice,_={}.hasOwnProperty,E=y().use(r).use(i).use(o)},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},a=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var o;for(o in e);return"undefined"===typeof o||r.call(e,o)};e.exports=function e(){var t,n,r,i,s,u,l=arguments[0],c=1,f=arguments.length,d=!1;for("boolean"===typeof l&&(d=l,l=arguments[1]||{},c=2),(null==l||"object"!==typeof l&&"function"!==typeof l)&&(l={});c<f;++c)if(null!=(t=arguments[c]))for(n in t)r=l[n],i=t[n],l!==i&&(d&&i&&(a(i)||(s=o(i)))?(s?(s=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},l[n]=e(d,u,i)):"undefined"!==typeof i&&(l[n]=i));return l}},function(e,t,n){"use strict";function r(e){if(e)throw e}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=this.path,i=new a(e,t,n);return r&&(i.name=r+":"+i.name,i.file=r),i.fatal=!1,this.messages.push(i),i}function i(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function o(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var a=n(578),s=n(580);e.exports=s;var u=s.prototype;u.message=r,u.info=o,u.fail=i,u.warn=r},function(e,t,n){"use strict";function r(){}function i(e,t,n){var r,i,s;"string"===typeof t&&(n=t,t=null),r=o(n),i=a(t)||"1:1",s={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(s=t,t=t.start):s.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=s,this.source=r[0],this.ruleId=r[1]}function o(e){var t,n=[null,null];return"string"===typeof e&&(t=e.indexOf(":"),-1===t?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1))),n}var a=n(579);e.exports=i,r.prototype=Error.prototype,i.prototype=new r;var s=i.prototype;s.file="",s.name="",s.reason="",s.message="",s.stack="",s.fatal=null,s.column=null,s.line=null},function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e?s.call(e,"position")||s.call(e,"type")?o(e.position):s.call(e,"start")||s.call(e,"end")?o(e):s.call(e,"line")||s.call(e,"column")?i(e):null:null}function i(e){return e&&"object"===typeof e||(e={}),a(e.line)+":"+a(e.column)}function o(e){return e&&"object"===typeof e||(e={}),i(e.start)+"-"+i(e.end)}function a(e){return e&&"number"===typeof e?e:1}var s={}.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";(function(t){function r(e){var n,i,o;if(e){if("string"===typeof e||c(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof r))return new r(e);for(this.data={},this.messages=[],this.history=[],this.cwd=t.cwd(),i=-1,o=h.length;++i<o;)n=h[i],f.call(e,n)&&(this[n]=e[n]);for(n in e)-1===h.indexOf(n)&&(this[n]=e[n])}function i(e){var t=this.contents||"";return c(t)?t.toString(e):String(t)}function o(e,t){if(-1!==e.indexOf(u.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+u.sep+"`")}function a(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function s(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var u=n(190),l=n(581),c=n(582);e.exports=r;var f={}.hasOwnProperty,d=r.prototype;d.toString=i;var h=["history","path","basename","stem","extname","dirname"];Object.defineProperty(d,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){a(e,"path"),e!==this.path&&this.history.push(e)}}),Object.defineProperty(d,"dirname",{get:function(){return"string"===typeof this.path?u.dirname(this.path):void 0},set:function(e){s(this.path,"dirname"),this.path=u.join(e||"",this.basename)}}),Object.defineProperty(d,"basename",{get:function(){return"string"===typeof this.path?u.basename(this.path):void 0},set:function(e){a(e,"basename"),o(e,"basename"),this.path=u.join(this.dirname||"",e)}}),Object.defineProperty(d,"extname",{get:function(){return"string"===typeof this.path?u.extname(this.path):void 0},set:function(e){var t=e||"";if(o(t,"extname"),s(this.path,"extname"),t){if("."!==t.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==t.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=l(this.path,t)}}),Object.defineProperty(d,"stem",{get:function(){return"string"===typeof this.path?u.basename(this.path,this.extname):void 0},set:function(e){a(e,"stem"),o(e,"stem"),this.path=u.join(this.dirname||"",e+(this.extname||""))}})}).call(t,n(64))},function(e,t,n){"use strict";function r(e,t){if("string"!==typeof e)return e;if(0===e.length)return e;var n=i.basename(e,i.extname(e))+t;return i.join(i.dirname(e),n)}var i=n(190);e.exports=r},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,n){"use strict";function r(){function e(){function e(s){var u=n[++t],l=o.call(arguments,0),c=l.slice(1),f=r.length,d=-1;if(s)return void a(s);for(;++d<f;)null!==c[d]&&void 0!==c[d]||(c[d]=r[d]);r=c,u?i(u,e).apply(null,r):a.apply(null,[null].concat(r))}var t=-1,r=o.call(arguments,0,-1),a=arguments[arguments.length-1];if("function"!==typeof a)throw new Error("Expected function as last argument, not "+a);e.apply(null,[null].concat(r))}function t(e){if("function"!==typeof e)throw new Error("Expected `fn` to be a function, not "+e);return n.push(e),r}var n=[],r={};return r.run=e,r.use=t,r}function i(e,t){function n(){var t,n=o.call(arguments,0),s=e.length>n.length;s&&n.push(r);try{t=e.apply(null,n)}catch(e){if(s&&a)throw e;return r(e)}s||(t&&"function"===typeof t.then?t.then(i,r):t instanceof Error?r(t):i(t))}function r(){a||(a=!0,t.apply(null,arguments))}function i(e){r(null,e)}var a;return n}e.exports=r;var o=[].slice},function(e,t){function n(e){return"[object String]"===r.call(e)}var r=Object.prototype.toString;e.exports=n},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t,n){"use strict";function r(e){var t=i(a);t.prototype.options=o(t.prototype.options,this.data("settings"),e),this.Parser=t}var i=n(191),o=n(24),a=n(588);e.exports=r,r.Parser=a},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,n){"use strict";function r(e,t){this.file=t,this.offset={},this.options=o(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=s(t).toOffset,this.unescape=u(this,"escape"),this.decode=l(this)}function i(e){var t,n=[];for(t in e)n.push(t);return n}var o=n(24),a=n(192),s=n(589),u=n(590),l=n(591),c=n(594);e.exports=r;var f=r.prototype;f.setOptions=n(595),f.parse=n(597),f.options=n(198),f.exitStart=a("atStart",!0),f.enterList=a("inList",!1),f.enterLink=a("inLink",!1),f.enterBlock=a("inBlock",!1),f.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.blockTokenizers={newline:n(599),indentedCode:n(600),fencedCode:n(601),blockquote:n(602),atxHeading:n(603),thematicBreak:n(604),list:n(605),setextHeading:n(607),html:n(608),footnote:n(609),definition:n(610),table:n(611),paragraph:n(612)},f.inlineTokenizers={escape:n(613),autoLink:n(615),url:n(616),html:n(618),link:n(619),reference:n(620),strong:n(621),emphasis:n(623),deletion:n(626),code:n(628),break:n(630),text:n(632)},f.blockMethods=i(f.blockTokenizers),f.inlineMethods=i(f.inlineTokenizers),f.tokenizeBlock=c("block"),f.tokenizeInline=c("inline"),f.tokenizeFactory=c},function(e,t,n){"use strict";function r(e){var t=a(String(e));return{toPosition:i(t),toOffset:o(t)}}function i(e){function t(t){var n=-1,r=e.length;if(t<0)return{};for(;++n<r;)if(e[n]>t)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}return t}function o(e){function t(t){var n=t&&t.line,r=t&&t.column;return!isNaN(n)&&!isNaN(r)&&n-1 in e?(e[n-2]||0)+r-1||0:-1}return t}function a(e){for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}e.exports=r},function(e,t,n){"use strict";function r(e,t){function n(n){for(var r,i=0,o=n.indexOf("\\"),a=e[t],s=[];-1!==o;)s.push(n.slice(i,o)),i=o+1,r=n.charAt(i),r&&-1!==a.indexOf(r)||s.push("\\"),o=n.indexOf("\\",i);return s.push(n.slice(i)),s.join("")}return n}e.exports=r},function(e,t,n){"use strict";function r(e){function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function n(t,n,r){3!==r&&e.file.message(t,n)}function r(r,i,a){o(r,{position:t(i),warning:n,text:a,reference:a,textContext:e,referenceContext:e})}function a(e,r,a){return o(e,i(a,{position:t(r),warning:n}))}return r.raw=a,r}var i=n(24),o=n(81);e.exports=r},function(e,t){e.exports={AEli:"\xc6",AElig:"\xc6",AM:"&",AMP:"&",Aacut:"\xc1",Aacute:"\xc1",Abreve:"\u0102",Acir:"\xc2",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrav:"\xc0",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",Arin:"\xc5",Aring:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",Atild:"\xc3",Atilde:"\xc3",Aum:"\xc4",Auml:"\xc4",Backslash:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",Bscr:"\u212c",Bumpeq:"\u224e",CHcy:"\u0427",COP:"\xa9",COPY:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",Cayleys:"\u212d",Ccaron:"\u010c",Ccedi:"\xc7",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"\u212d",Chi:"\u03a7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2a74",Congruent:"\u2261",Conint:"\u222f",ContourIntegral:"\u222e",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",Diamond:"\u22c4",DifferentialD:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",Downarrow:"\u21d3",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ET:"\xd0",ETH:"\xd0",Eacut:"\xc9",Eacute:"\xc9",Ecaron:"\u011a",Ecir:"\xca",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrav:"\xc8",Egrave:"\xc8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",Equilibrium:"\u21cc",Escr:"\u2130",Esim:"\u2a73",Eta:"\u0397",Eum:"\xcb",Euml:"\xcb",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",HilbertSpace:"\u210b",Hopf:"\u210d",HorizontalLine:"\u2500",Hscr:"\u210b",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xcd",Iacute:"\xcd",Icir:"\xce",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xcc",Igrave:"\xcc",Im:"\u2111",Imacr:"\u012a",ImaginaryI:"\u2148",Implies:"\u21d2",Int:"\u222c",Integral:"\u222b",Intersection:"\u22c2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xcf",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Larr:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",LeftRightArrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",Leftarrow:"\u21d0",Leftrightarrow:"\u21d4",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",LongLeftRightArrow:"\u27f7",LongRightArrow:"\u27f6",Longleftarrow:"\u27f8",Longleftrightarrow:"\u27fa",Longrightarrow:"\u27f9",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",Mopf:"\ud835\udd44",Mscr:"\u2133",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\ud835\udca9",Ntild:"\xd1",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacut:"\xd3",Oacute:"\xd3",Ocir:"\xd4",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograv:"\xd2",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslas:"\xd8",Oslash:"\xd8",Otild:"\xd5",Otilde:"\xd5",Otimes:"\u2a37",Oum:"\xd6",Ouml:"\xd6",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",Poincareplane:"\u210c",Popf:"\u2119",Pr:"\u2abb",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",Prime:"\u2033",Product:"\u220f",Proportion:"\u2237",Proportional:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUO:'"',QUOT:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",RE:"\xae",REG:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",Rfr:"\u211c",Rho:"\u03a1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",Rightarrow:"\u21d2",Ropf:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",Rscr:"\u211b",Rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",SuchThat:"\u220b",Sum:"\u2211",Sup:"\u22d1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22d1",THOR:"\xde",THORN:"\xde",TRADE:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacut:"\xda",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucir:"\xdb",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrav:"\xd9",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",UpTee:"\u22a5",UpTeeArrow:"\u21a5",Uparrow:"\u21d1",Updownarrow:"\u21d5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uum:"\xdc",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacut:"\xdd",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",ZeroWidthSpace:"\u200b",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\ud835\udcb5",aacut:"\xe1",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acir:"\xe2",acirc:"\xe2",acut:"\xb4",acute:"\xb4",acy:"\u0430",aeli:"\xe6",aelig:"\xe6",af:"\u2061",afr:"\ud835\udd1e",agrav:"\xe0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",am:"&",amp:"&",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",ap:"\u2248",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",apid:"\u224b",apos:"'",approx:"\u2248",approxeq:"\u224a",arin:"\xe5",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",asymp:"\u2248",asympeq:"\u224d",atild:"\xe3",atilde:"\xe3",aum:"\xe4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",beta:"\u03b2",beth:"\u2136",between:"\u226c",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",bprime:"\u2035",breve:"\u02d8",brvba:"\xa6",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",bumpeq:"\u224f",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",ccaps:"\u2a4d",ccaron:"\u010d",ccedi:"\xe7",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cedi:"\xb8",cedil:"\xb8",cemptyv:"\u29b2",cen:"\xa2",cent:"\xa2",centerdot:"\xb7",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledR:"\xae",circledS:"\u24c8",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",conint:"\u222e",copf:"\ud835\udd54",coprod:"\u2210",cop:"\xa9",copy:"\xa9",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curre:"\xa4",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dArr:"\u21d3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",ddotseq:"\u2a77",de:"\xb0",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",dharl:"\u21c3",dharr:"\u21c2",diam:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divid:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",dot:"\u02d9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eDDot:"\u2a77",eDot:"\u2251",eacut:"\xe9",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\xea",ecirc:"\xea",ecolon:"\u2255",ecy:"\u044d",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrav:"\xe8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",equals:"=",equest:"\u225f",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",erarr:"\u2971",escr:"\u212f",esdot:"\u2250",esim:"\u2242",eta:"\u03b7",et:"\xf0",eth:"\xf0",eum:"\xeb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac1:"\xbc",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac3:"\xbe",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",gE:"\u2267",gEl:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gammad:"\u03dd",gap:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\ud835\udd58",grave:"`",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",g:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hArr:"\u21d4",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",hbar:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hslash:"\u210f",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xed",iacute:"\xed",ic:"\u2063",icir:"\xee",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexc:"\xa1",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",igrav:"\xec",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",intcal:"\u22ba",integers:"\u2124",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iprod:"\u2a3c",iques:"\xbf",iquest:"\xbf",iscr:"\ud835\udcbe",isin:"\u2208",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xef",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAarr:"\u21da",lArr:"\u21d0",lAtail:"\u291b",lBarr:"\u290e",lE:"\u2266",lEg:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",laqu:"\xab",laquo:"\xab",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lceil:"\u2308",lcub:"{",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21a2",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",leftthreetimes:"\u22cb",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",mac:"\xaf",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",measuredangle:"\u2221",mfr:"\ud835\udd2a",mho:"\u2127",micr:"\xb5",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middo:"\xb7",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",mstpos:"\u223e",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nGtv:"\u226b\u0338",nLeftarrow:"\u21cd",nLeftrightarrow:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nLtv:"\u226a\u0338",nRightarrow:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbs:"\xa0",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",neArr:"\u21d7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",ngsim:"\u2275",ngt:"\u226f",ngtr:"\u226f",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",nlArr:"\u21cd",nlE:"\u2266\u0338",nlarr:"\u219a",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219a",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nlsim:"\u2274",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nmid:"\u2224",nopf:"\ud835\udd5f",no:"\xac",not:"\xac",notin:"\u2209",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntild:"\xf1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24c8",oacut:"\xf3",oacute:"\xf3",oast:"\u229b",ocir:"\xf4",ocirc:"\xf4",ocy:"\u043e",odash:"\u229d",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograv:"\xf2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",oplus:"\u2295",or:"\u2228",orarr:"\u21bb",ord:"\xba",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oscr:"\u2134",oslas:"\xf8",oslash:"\xf8",osol:"\u2298",otild:"\xf5",otilde:"\xf5",otimes:"\u2297",otimesas:"\u2a36",oum:"\xf6",ouml:"\xf6",ovbar:"\u233d",par:"\xb6",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",plusm:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",pointint:"\u2a15",popf:"\ud835\udd61",poun:"\xa3",pound:"\xa3",pr:"\u227a",prE:"\u2ab3",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",primes:"\u2119",prnE:"\u2ab5",prnap:"\u2ab9",prnsim:"\u22e8",prod:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quo:'"',quot:'"',rAarr:"\u21db",rArr:"\u21d2",rAtail:"\u291c",rBarr:"\u290f",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raqu:"\xbb",raquo:"\xbb",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",re:"\xae",reg:"\xae",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",rightarrow:"\u2192",rightarrowtail:"\u21a3",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",rightthreetimes:"\u22cc",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",rsaquo:"\u203a",rscr:"\ud835\udcc7",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",sbquo:"\u201a",sc:"\u227b",scE:"\u2ab4",scap:"\u2ab8",scaron:"\u0161",sccue:"\u227d",sce:"\u2ab0",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",scnap:"\u2aba",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",seArr:"\u21d8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xa7",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xad",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",subE:"\u2ac5",subdot:"\u2abd",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",sum:"\u2211",sung:"\u266a",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szli:"\xdf",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tbrk:"\u23b4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",thor:"\xfe",thorn:"\xfe",tilde:"\u02dc",time:"\xd7",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uArr:"\u21d1",uHar:"\u2963",uacut:"\xfa",uacute:"\xfa",uarr:"\u2191",ubrcy:"\u045e",ubreve:"\u016d",ucir:"\xfb",ucirc:"\xfb",ucy:"\u0443",udarr:"\u21c5",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",ufr:"\ud835\udd32",ugrav:"\xf9",ugrave:"\xf9",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",um:"\xa8",uml:"\xa8",uogon:"\u0173",uopf:"\ud835\udd66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",upsi:"\u03c5",upsih:"\u03d2",upsilon:"\u03c5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uum:"\xfc",uuml:"\xfc",uwangle:"\u29a7",vArr:"\u21d5",vBar:"\u2ae8",vBarv:"\u2ae9",vDash:"\u22a8",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vcy:"\u0432",vdash:"\u22a2",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",vert:"|",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\ud835\udd35",xhArr:"\u27fa",xharr:"\u27f7",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacut:"\xfd",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",ye:"\xa5",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yum:"\xff",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeetrf:"\u2128",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}},function(e,t){e.exports={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"}},function(e,t,n){"use strict";function r(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}function i(e,t){return e.value+=t.value,e}function o(e,t){return this.options.commonmark?t:(e.children=e.children.concat(t.children),e)}function a(e){function t(t,n){function i(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)x++,t=n,n=e.indexOf("\n",n+1);-1===t?S+=e.length:S=e.length-t,x in w&&(-1!==t?S+=w[x]:S<=w[x]&&(S=w[x]+1))}function o(){var e=[],t=x+1;return function(){for(var n=x+1;t<n;)e.push((w[t]||0)+1),t++;return e}}function a(){var e={line:x,column:S};return e.offset=b.toOffset(e),e}function u(e){this.start=e,this.end=a()}function l(e){t.substring(0,e.length)!==e&&b.file.fail(new Error("Incorrectly eaten value: please report this warning on http://git.io/vg5Ft"),a())}function c(){function e(e,n){var r=e.position,i=r?r.start:t,o=[],a=r&&r.end.line,s=t.line;if(e.position=new u(i),r&&n&&r.indent){if(o=r.indent,a<s){for(;++a<s;)o.push((w[a]||0)+1);o.push(t.column)}n=o.concat(n)}return e.position.indent=n||[],e}var t=a();return e}function f(e,t){var n=t?t.children:_,i=n[n.length-1];return i&&e.type===i.type&&e.type in s&&r(i)&&r(e)&&(e=s[e.type].call(b,i,e)),e!==i&&n.push(e),b.atStart&&0!==_.length&&b.exitStart(),e}function d(e){function n(e,t){return d(f(d(e),t),u)}function r(){var r=n.apply(null,arguments);return x=h.line,S=h.column,t=e+t,r}function s(){var n=d({});return x=h.line,S=h.column,t=e+t,n.position}var u=o(),d=c(),h=a();return l(e),n.reset=r,r.test=s,n.test=s,t=t.substring(e.length),i(e),u=u(),n}var h,p,m,v,y,g,b=this,w=b.offset,_=[],E=b[e+"Methods"],T=b[e+"Tokenizers"],x=n.line,S=n.column;if(!t)return _;for(d.now=a,d.file=b.file,i("");t;){for(h=-1,p=E.length,y=!1;++h<p&&(v=E[h],!(m=T[v])||m.onlyAtStart&&!b.atStart||m.notInList&&b.inList||m.notInBlock&&b.inBlock||m.notInLink&&b.inLink||(g=t.length,m.apply(b,[d,t]),!(y=g!==t.length))););y||b.file.fail(new Error("Infinite loop"),d.now())}return b.eof=a(),_}return t}e.exports=a;var s={text:i,blockquote:o}},function(e,t,n){"use strict";function r(e){var t,n,r=this,s=r.options;if(null==e)e={};else{if("object"!==typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=i(e)}for(t in a){if(n=e[t],null==n&&(n=s[t]),"blocks"!==t&&"boolean"!==typeof n||"blocks"===t&&"object"!==typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return r.options=e,r.escape=o(e),r}var i=n(24),o=n(197),a=n(198);e.exports=r},function(e,t){e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";function r(){var e,t=this,n=String(t.file),r={line:1,column:1,offset:0},u=i(r);return n=n.replace(s,a),65279===n.charCodeAt(0)&&(n=n.slice(1),u.column++,u.offset++),e={type:"root",children:t.tokenizeBlock(n,u),position:{start:r,end:t.eof||i(r)}},t.options.position||o(e,!0),e}var i=n(24),o=n(598);e.exports=r;var a="\n",s=/\r\n|\r/g},function(e,t,n){"use strict";function r(e,t){return a(e,t?i:o),e}function i(e){delete e.position}function o(e){e.position=void 0}var a=n(62);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,o,a,s,u=t.charAt(0);if("\n"===u){if(n)return!0;for(s=1,r=t.length,o=u,a="";s<r&&(u=t.charAt(s),i(u));)a+=u,"\n"===u&&(o+=a,a=""),s++;e(o)}}var i=n(19);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){for(var r,i,c,f=-1,d=t.length,h="",p="",m="",v="";++f<d;)if(r=t.charAt(f),c)if(c=!1,h+=m,p+=v,m="",v="",r===a)m=r,v=r;else for(h+=r,p+=r;++f<d;){if(!(r=t.charAt(f))||r===a){v=r,m=r;break}h+=r,p+=r}else if(r===u&&t.charAt(f+1)===r&&t.charAt(f+2)===r&&t.charAt(f+3)===r)m+=l,f+=3,c=!0;else if(r===s)m+=r,c=!0;else{for(i="";r===s||r===u;)i+=r,r=t.charAt(++f);if(r!==a)break;m+=i+r,v+=r}if(p)return!!n||e(h)({type:"code",lang:null,value:o(p)})}var i=n(21),o=n(120);e.exports=r;var a="\n",s="\t",u=" ",l=i(u,4)},function(e,t,n){"use strict";function r(e,t,n){var r,d,h,p,m,v,y,g,b,w,_,E=this,T=E.options,x=t.length+1,S=0,k="";if(T.gfm){for(;S<x&&((h=t.charAt(S))===s||h===a);)k+=h,S++;if(w=S,(h=t.charAt(S))===u||h===l){for(S++,d=h,r=1,k+=h;S<x&&(h=t.charAt(S))===d;)k+=h,r++,S++;if(!(r<c)){for(;S<x&&((h=t.charAt(S))===s||h===a);)k+=h,S++;for(p="",m="";S<x&&(h=t.charAt(S))!==o&&h!==u&&h!==l;)h===s||h===a?m+=h:(p+=m+h,m=""),S++;if(!(h=t.charAt(S))||h===o){if(n)return!0;for(_=e.now(),_.column+=k.length,_.offset+=k.length,k+=p,p=E.decode.raw(E.unescape(p),_),m&&(k+=m),m="",g="",b="",v="",y="";S<x;)if(h=t.charAt(S),v+=g,y+=b,g="",b="",h===o){for(v?(g+=h,b+=h):k+=h,m="",S++;S<x&&(h=t.charAt(S))===s;)m+=h,S++;if(g+=m,b+=m.slice(w),!(m.length>=f)){for(m="";S<x&&(h=t.charAt(S))===d;)m+=h,S++;if(g+=m,b+=m,!(m.length<r)){for(m="";S<x&&((h=t.charAt(S))===s||h===a);)g+=h,b+=h,S++;if(!h||h===o)break}}}else v+=h,b+=h,S++;return k+=v+g,e(k)({type:"code",lang:p||null,value:i(y)})}}}}}var i=n(120);e.exports=r;var o="\n",a="\t",s=" ",u="~",l="`",c=3,f=4},function(e,t,n){"use strict";function r(e,t,n){for(var r,c,f,d,h,p,m,v,y,g=this,b=g.offset,w=g.blockTokenizers,_=g.interruptBlockquote,E=e.now(),T=E.line,x=t.length,S=[],k=[],C=[],O=0;O<x&&((c=t.charAt(O))===u||c===s);)O++;if(t.charAt(O)===l){if(n)return!0;for(O=0;O<x;){for(d=t.indexOf(a,O),m=O,v=!1,-1===d&&(d=x);O<x&&((c=t.charAt(O))===u||c===s);)O++;if(t.charAt(O)===l?(O++,v=!0,t.charAt(O)===u&&O++):O=m,h=t.slice(O,d),!v&&!i(h)){O=m;break}if(!v&&(f=t.slice(O),o(_,w,g,[e,f,!0])))break;p=m===O?h:t.slice(m,d),C.push(O-m),S.push(p),k.push(h),O=d+1}for(O=-1,x=C.length,r=e(S.join(a));++O<x;)b[T]=(b[T]||0)+C[O],T++;return y=g.enterBlock(),k=g.tokenizeBlock(k.join(a),E),y(),r({type:"blockquote",children:k})}}var i=n(29),o=n(121);e.exports=r;var a="\n",s="\t",u=" ",l=">"},function(e,t,n){"use strict";function r(e,t,n){for(var r,l,c,f=this,d=f.options,h=t.length+1,p=-1,m=e.now(),v="",y="";++p<h;){if((r=t.charAt(p))!==a&&r!==o){p--;break}v+=r}for(c=0;++p<=h;){if((r=t.charAt(p))!==s){p--;break}v+=r,c++}if(!(c>u)&&c&&(d.pedantic||t.charAt(p+1)!==s)){for(h=t.length+1,l="";++p<h;){if((r=t.charAt(p))!==a&&r!==o){p--;break}l+=r}if(d.pedantic||0!==l.length||!r||r===i){if(n)return!0;for(v+=l,l="",y="";++p<h&&(r=t.charAt(p))&&r!==i;)if(r===a||r===o||r===s){for(;r===a||r===o;)l+=r,r=t.charAt(++p);for(;r===s;)l+=r,r=t.charAt(++p);for(;r===a||r===o;)l+=r,r=t.charAt(++p);p--}else y+=l+r,l="";return m.column+=v.length,m.offset+=v.length,v+=y+l,e(v)({type:"heading",depth:c,children:f.tokenizeInline(y,m)})}}}e.exports=r;var i="\n",o="\t",a=" ",s="#",u=6},function(e,t,n){"use strict";function r(e,t,n){for(var r,f,d,h,p=-1,m=t.length+1,v="";++p<m&&((r=t.charAt(p))===o||r===a);)v+=r;if(r===s||r===l||r===u)for(f=r,v+=r,d=1,h="";++p<m;)if((r=t.charAt(p))===f)d++,v+=h+f,h="";else{if(r!==a)return d>=c&&(!r||r===i)?(v+=h,!!n||e(v)({type:"thematicBreak"})):void 0;h+=r}}e.exports=r;var i="\n",o="\t",a=" ",s="*",u="_",l="-",c=3},function(e,t,n){"use strict";function r(e,t,n){for(var r,o,a,u,c,f,b,_,E,T,x,S,N,P,I,A,D,R,M,L,j,F,U,B,q=this,V=q.options.commonmark,z=q.options.pedantic,W=q.blockTokenizers,H=q.interruptList,K=0,G=t.length,Q=null,Y=0;K<G;){if((u=t.charAt(K))===g)Y+=w-Y%w;else{if(u!==v)break;Y++}K++}if(!(Y>=w)){if(u=t.charAt(K),r=V?O:C,!0===k[u])c=u,a=!1;else{for(a=!0,o="";K<G&&(u=t.charAt(K),l(u));)o+=u,K++;if(u=t.charAt(K),!o||!0!==r[u])return;Q=parseInt(o,10),c=u}if((u=t.charAt(++K))===v||u===g){if(n)return!0;for(K=0,P=[],I=[],A=[];K<G;){for(f=t.indexOf(y,K),b=K,_=!1,B=!1,-1===f&&(f=G),U=K+w,Y=0;K<G;){if((u=t.charAt(K))===g)Y+=w-Y%w;else{if(u!==v)break;Y++}K++}if(Y>=w&&(B=!0),D&&Y>=D.indent&&(B=!0),u=t.charAt(K),E=null,!B){if(!0===k[u])E=u,K++,Y++;else{for(o="";K<G&&(u=t.charAt(K),l(u));)o+=u,K++;u=t.charAt(K),K++,o&&!0===r[u]&&(E=u,Y+=o.length+1)}if(E)if((u=t.charAt(K))===g)Y+=w-Y%w,K++;else if(u===v){for(U=K+w;K<U&&t.charAt(K)===v;)K++,Y++;K===U&&t.charAt(K)===v&&(K-=w-1,Y-=w-1)}else u!==y&&""!==u&&(E=null)}if(E){if(!z&&c!==E)break;_=!0}else V||B||t.charAt(b)!==v?V&&D&&(B=Y>=D.indent||Y>w):B=!0,_=!1,K=b;if(x=t.slice(b,f),T=b===K?x:t.slice(K,f),(E===h||E===p||E===m)&&W.thematicBreak.call(q,e,x,!0))break;if(S=N,N=!s(T).length,B&&D)D.value=D.value.concat(A,x),I=I.concat(A,x),A=[];else if(_)0!==A.length&&(D.value.push(""),D.trail=A.concat()),D={value:[x],indent:Y,trail:[]},P.push(D),I=I.concat(A,x),A=[];else if(N){if(S)break;A.push(x)}else{if(S)break;if(d(H,W,q,[e,x,!0]))break;D.value=D.value.concat(A,x),I=I.concat(A,x),A=[]}K=f+1}for(j=e(I.join(y)).reset({type:"list",ordered:a,start:Q,loose:null,children:[]}),R=q.enterList(),M=q.enterBlock(),L=!1,K=-1,G=P.length;++K<G;)D=P[K].value.join(y),F=e.now(),D=e(D)(i(q,D,F),j),D.loose&&(L=!0),D=P[K].trail.join(y),K!==G-1&&(D+=y),e(D);return R(),M(),j.loose=L,j}}}function i(e,t,n){var r,i,s=e.offset,u=e.options.pedantic?o:a,l=null;return t=u.apply(null,arguments),e.options.gfm&&(r=t.match(E))&&(i=r[0].length,l=r[1].toLowerCase()===b,s[n.line]+=i,t=t.slice(i)),{type:"listItem",loose:_.test(t)||t.charAt(t.length-1)===y,checked:l,children:e.tokenizeBlock(t,n)}}function o(e,t,n){function r(e){return i[o]=(i[o]||0)+e.length,o++,""}var i=e.offset,o=n.line;return t=t.replace(x,r),o=n.line,t.replace(S,r)}function a(e,t,n){function r(e,t,n,r,s){return o=t+n+r,a=s,Number(n)<10&&o.length%2===1&&(n=v+n),(i=t+u(v,n.length)+r)+a}var i,o,a,s,l,d,h,p=e.offset,m=n.line;for(t=t.replace(T,r),s=t.split(y),l=f(t,c(i).indent).split(y),l[0]=a,p[m]=(p[m]||0)+o.length,m++,d=0,h=s.length;++d<h;)p[m]=(p[m]||0)+s[d].length-l[d].length,m++;return l.join(y)}var s=n(29),u=n(21),l=n(61),c=n(200),f=n(606),d=n(121);e.exports=r;var h="*",p="_",m="-",v=" ",y="\n",g="\t",b="x",w=4,_=/\n\n(?!\s*$)/,E=/^\[([ \t]|x|X)][ \t]/,T=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,x=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,S=/^( {1,4}|\t)?/gm,k={};k[h]=!0,k["+"]=!0,k[m]=!0;var C={};C["."]=!0;var O={};O["."]=!0,O[")"]=!0},function(e,t,n){"use strict";function r(e,t){var n,r,c,f,d=e.split(u),h=d.length+1,p=1/0,m=[];for(d.unshift(o(s,t)+"!");h--;)if(r=a(d[h]),m[h]=r.stops,0!==i(d[h]).length){if(!r.indent){p=1/0;break}r.indent>0&&r.indent<p&&(p=r.indent)}if(p!==1/0)for(h=d.length;h--;){for(c=m[h],n=p;n&&!(n in c);)n--;f=0!==i(d[h]).length&&p&&n!==p?l:"",d[h]=f+d[h].slice(n in c?c[n]+1:0)}return d.shift(),d.join(u)}var i=n(29),o=n(21),a=n(200);e.exports=r;var s=" ",u="\n",l="\t"},function(e,t,n){"use strict";function r(e,t,n){for(var r,l,c,f,d,h=this,p=e.now(),m=t.length,v=-1,y="";++v<m;){if((c=t.charAt(v))!==a||v>=s){v--;break}y+=c}for(r="",l="";++v<m;){if((c=t.charAt(v))===i){v--;break}c===a||c===o?l+=c:(r+=l+c,l="")}if(p.column+=y.length,p.offset+=y.length,y+=r+l,c=t.charAt(++v),f=t.charAt(++v),c===i&&u[f]){for(y+=c,l=f,d=u[f];++v<m;){if((c=t.charAt(v))!==f){if(c!==i)return;v--;break}l+=c}return!!n||e(y+l)({type:"heading",depth:d,children:h.tokenizeInline(r,p)})}}e.exports=r;var i="\n",o="\t",a=" ",s=3,u={};u["="]=1,u["-"]=2},function(e,t,n){"use strict";function r(e,t,n){for(var r,l,c,f,d,h,p,m=this,v=m.options.blocks,y=t.length,g=0,b=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+v.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];g<y&&((f=t.charAt(g))===o||f===a);)g++;if(t.charAt(g)===u){for(r=t.indexOf(s,g+1),r=-1===r?y:r,l=t.slice(g,r),c=-1,d=b.length;++c<d;)if(b[c][0].test(l)){h=b[c];break}if(h){if(n)return h[2];if(g=r,!h[1].test(l))for(;g<y;){if(r=t.indexOf(s,g+1),r=-1===r?y:r,l=t.slice(g+1,r),h[1].test(l)){l&&(g=r);break}g=r}return p=t.slice(0,g),e(p)({type:"html",value:p})}}}var i=n(201).openCloseTag;e.exports=r;var o="\t",a=" ",s="\n",u="<"},function(e,t,n){"use strict";function r(e,t,n){var r,m,v,y,g,b,w,_,E,T,x,S,k=this,C=k.offset;if(k.options.footnotes){for(r=0,m=t.length,v="",y=e.now(),g=y.line;r<m&&(E=t.charAt(r),i(E));)v+=E,r++;if(t.charAt(r)===c&&t.charAt(r+1)===d){for(v+=c+d,r=v.length,w="";r<m&&(E=t.charAt(r))!==f;)E===a&&(w+=E,r++,E=t.charAt(r)),w+=E,r++;if(w&&t.charAt(r)===f&&t.charAt(r+1)===h){if(n)return!0;for(T=o(w),v+=w+f+h,r=v.length;r<m&&((E=t.charAt(r))===u||E===l);)v+=E,r++;for(y.column+=v.length,y.offset+=v.length,w="",b="",_="";r<m;){if((E=t.charAt(r))===s){for(_=E,r++;r<m&&(E=t.charAt(r))===s;)_+=E,r++;for(w+=_,_="";r<m&&(E=t.charAt(r))===l;)_+=E,r++;if(0===_.length)break;w+=_}w&&(b+=w,w=""),b+=E,r++}return v+=b,b=b.replace(p,function(e){return C[g]=(C[g]||0)+e.length,g++,""}),x=e(v),S=k.enterBlock(),b=k.tokenizeBlock(b,y),S(),x({type:"footnoteDefinition",identifier:T,children:b})}}}}var i=n(19),o=n(122);e.exports=r,r.notInList=!0,r.notInBlock=!0;var a="\\",s="\n",u="\t",l=" ",c="[",f="]",d="^",h=":",p=/^( {4}|\t)?/gm},function(e,t,n){"use strict";function r(e,t,n){for(var r,a,w,_,E,T,x,S,k=this,C=k.options.commonmark,O=0,N=t.length,P="";O<N&&((_=t.charAt(O))===h||_===d);)P+=_,O++;if((_=t.charAt(O))===p){for(O++,P+=_,w="";O<N&&(_=t.charAt(O))!==m;)_===c&&(w+=_,O++,_=t.charAt(O)),w+=_,O++;if(w&&t.charAt(O)===m&&t.charAt(O+1)===g){for(T=w,P+=w+m+g,O=P.length,w="";O<N&&((_=t.charAt(O))===d||_===h||_===f);)P+=_,O++;if(_=t.charAt(O),w="",r=P,_===b){for(O++;O<N&&(_=t.charAt(O),i(_));)w+=_,O++;if((_=t.charAt(O))===i.delimiter)P+=b+w+_,O++;else{if(C)return;O-=w.length+1,w=""}}if(!w){for(;O<N&&(_=t.charAt(O),o(_));)w+=_,O++;P+=w}if(w){for(x=w,w="";O<N&&((_=t.charAt(O))===d||_===h||_===f);)w+=_,O++;if(_=t.charAt(O),E=null,_===u?E=u:_===l?E=l:_===v&&(E=y),E){if(!w)return;for(P+=w+_,O=P.length,w="";O<N&&(_=t.charAt(O))!==E;){if(_===f){if(O++,(_=t.charAt(O))===f||_===E)return;w+=f}w+=_,O++}if((_=t.charAt(O))!==E)return;a=P,P+=w+_,O++,S=w,w=""}else w="",O=P.length;for(;O<N&&((_=t.charAt(O))===d||_===h);)P+=_,O++;return _=t.charAt(O),_&&_!==f?void 0:!!n||(r=e(r).test().end,x=k.decode.raw(k.unescape(x),r,{nonTerminated:!1}),S&&(a=e(a).test().end,S=k.decode.raw(k.unescape(S),a)),e(P)({type:"definition",identifier:s(T),title:S||null,url:x}))}}}}function i(e){return e!==w&&e!==p&&e!==m}function o(e){return e!==p&&e!==m&&!a(e)}var a=n(19),s=n(122);e.exports=r,r.notInList=!0,r.notInBlock=!0;var u='"',l="'",c="\\",f="\n",d="\t",h=" ",p="[",m="]",v="(",y=")",g=":",b="<",w=">";i.delimiter=w},function(e,t,n){"use strict";function r(e,t,n){var r,b,w,_,E,T,x,S,k,C,O,N,P,I,A,D,R,M,L,j,F,U,B,q,V=this;if(V.options.gfm){for(r=0,M=0,T=t.length+1,x=[];r<T;){if(U=t.indexOf(f,r),B=t.indexOf(u,r+1),-1===U&&(U=t.length),-1===B||B>U){if(M<p)return;break}x.push(t.slice(r,U)),M++,r=U+1}for(_=x.join(f),b=x.splice(1,1)[0]||[],r=0,T=b.length,M--,w=!1,O=[];r<T;){if((k=b.charAt(r))===u){if(C=null,!1===w){if(!1===q)return}else O.push(w),w=!1;q=!1}else if(k===s)C=!0,w=w||g;else if(k===l)w=w===m?v:C&&w===g?y:m;else if(!i(k))return;r++}if(!1!==w&&O.push(w),!(O.length<h)){if(n)return!0;for(R=-1,j=[],F=e(_).reset({type:"table",align:O,children:j});++R<M;){for(L=x[R],E={type:"tableRow",children:[]},R&&e(f),e(L).reset(E,F),T=L.length+1,r=0,S="",N="",P=!0,I=null,A=null;r<T;)if((k=L.charAt(r))!==d&&k!==c){if(""===k||k===u)if(P)e(k);else{if(k&&A){S+=k,r++;continue}!N&&!k||P||(_=N,S.length>1&&(k?(_+=S.slice(0,S.length-1),S=S.charAt(S.length-1)):(_+=S,S="")),D=e.now(),e(_)({type:"tableCell",children:V.tokenizeInline(N,D)},E)),e(S+k),S="",N=""}else if(S&&(N+=S,S=""),N+=k,k===o&&r!==T-2&&(N+=L.charAt(r+1),r++),k===a){for(I=1;L.charAt(r+1)===k;)N+=k,r++,I++;A?I>=A&&(A=0):A=I}P=!1,r++}else N?S+=k:e(k),r++;R||e(f+b)}return F}}}var i=n(19);e.exports=r;var o="\\",a="`",s="-",u="|",l=":",c=" ",f="\n",d="\t",h=1,p=2,m="left",v="center",y="right",g=null},function(e,t,n){"use strict";function r(e,t,n){for(var r,d,h,p,m,v=this,y=v.options,g=y.commonmark,b=y.gfm,w=v.blockTokenizers,_=v.interruptParagraph,E=t.indexOf(u),T=t.length;E<T;){if(-1===E){E=T;break}if(t.charAt(E+1)===u)break;if(g){for(p=0,r=E+1;r<T;){if((h=t.charAt(r))===l){p=f;break}if(h!==c)break;p++,r++}if(p>=f){E=t.indexOf(u,E+1);continue}}if(d=t.slice(E+1),s(_,w,v,[e,d,!0]))break;if(w.list.call(v,e,d,!0)&&(v.inList||g||b&&!o(i.left(d).charAt(0))))break;if(r=E,-1!==(E=t.indexOf(u,E+1))&&""===i(t.slice(r,E))){E=r;break}}return d=t.slice(0,E),""===i(d)?(e(d),null):!!n||(m=e.now(),d=a(d),e(d)({type:"paragraph",children:v.tokenizeInline(d,m)}))}var i=n(29),o=n(61),a=n(120),s=n(121);e.exports=r;var u="\n",l="\t",c=" ",f=4},function(e,t,n){"use strict";function r(e,t,n){var r,i,o=this;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==o.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(i))}var i=n(614);e.exports=r,r.locator=i},function(e,t,n){"use strict";function r(e,t){return e.indexOf("\\",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,a,h,p,m,v,y,g,b,w,_,E;if(t.charAt(0)===s){for(r=this,a="",h=t.length,p=0,m="",y=!1,g="",p++,a=s;p<h&&(v=t.charAt(p),!(i(v)||v===u||v===l||":"===v&&t.charAt(p+1)===c));)m+=v,p++;if(m){if(g+=m,m="",v=t.charAt(p),g+=v,p++,v===l)y=!0;else{if(":"!==v||t.charAt(p+1)!==c)return;g+=c,p++}for(;p<h&&(v=t.charAt(p),!i(v)&&v!==u);)m+=v,p++;if(v=t.charAt(p),m&&v===u)return!!n||(g+=m,w=g,a+=g+v,b=e.now(),b.column++,b.offset++,y&&(g.slice(0,d).toLowerCase()===f?(w=w.substr(d),b.column+=d,b.offset+=d):g=f+g),_=r.inlineTokenizers,r.inlineTokenizers={text:_.text},E=r.enterLink(),w=r.tokenizeInline(w,b),r.inlineTokenizers=_,E(),e(a)({type:"link",title:null,url:o(g,{nonTerminated:!1}),children:w}))}}}var i=n(19),o=n(81),a=n(203);e.exports=r,r.locator=a,r.notInLink=!0;var s="<",u=">",l="@",c="/",f="mailto:",d=f.length},function(e,t,n){"use strict";function r(e,t,n){var r,a,v,y,g,b,w,_,E,T,x,S,k=this;if(k.options.gfm){for(r="",y=-1,_=m;++y<_;)if(b=p[y],w=t.slice(0,b.length),w.toLowerCase()===b){r=w;break}if(r){for(y=r.length,_=t.length,E="",T=0;y<_&&(v=t.charAt(y),!o(v)&&v!==f)&&("."!==v&&","!==v&&":"!==v&&";"!==v&&'"'!==v&&"'"!==v&&")"!==v&&"]"!==v||(x=t.charAt(y+1))&&!o(x))&&(v!==l&&v!==s||T++,v!==c&&v!==u||!(--T<0));)E+=v,y++;if(E){if(r+=E,a=r,b===h){if(-1===(g=E.indexOf(d))||g===_-1)return;a=a.substr(h.length)}return!!n||(S=k.enterLink(),a=k.tokenizeInline(a,e.now()),S(),e(r)({type:"link",title:null,url:i(r,{nonTerminated:!1}),children:a}))}}}}var i=n(81),o=n(19),a=n(617);e.exports=r,r.locator=a,r.notInLink=!0;var s="[",u="]",l="(",c=")",f="<",d="@",h="mailto:",p=["http://","https://",h],m=p.length},function(e,t,n){"use strict";function r(e,t){var n,r=i.length,o=-1,a=-1;if(!this.options.gfm)return-1;for(;++o<r;)-1!==(n=e.indexOf(i[o],t))&&(n<a||-1===a)&&(a=n);return a}e.exports=r;var i=["https://","http://","mailto:"]},function(e,t,n){"use strict";function r(e,t,n){var r,o,l=this,c=t.length;if(!("<"!==t.charAt(0)||c<3)&&(r=t.charAt(1),(i(r)||"?"===r||"!"===r||"/"===r)&&(o=t.match(a))))return!!n||(o=o[0],!l.inLink&&s.test(o)?l.inLink=!0:l.inLink&&u.test(o)&&(l.inLink=!1),e(o)({type:"html",value:o}))}var i=n(196),o=n(203),a=n(201).tag;e.exports=r,r.locator=o;var s=/^<a /i,u=/^<\/a>/i},function(e,t,n){"use strict";function r(e,t,n){var r,o,y,g,b,w,_,E,T,x,S,k,C,O,N,P,I,A,D,R=this,M="",L=0,j=t.charAt(0),F=R.options.pedantic,U=R.options.commonmark,B=R.options.gfm;if("!"===j&&(T=!0,M=j,j=t.charAt(++L)),j===u&&(T||!R.inLink)){for(M+=j,N="",L++,k=t.length,I=e.now(),O=0,I.column+=L,I.offset+=L;L<k;){if(j=t.charAt(L),w=j,j===p){for(o=1;t.charAt(L+1)===p;)w+=j,L++,o++;y?o>=y&&(y=0):y=o}else if(j===s)L++,w+=t.charAt(L);else if(y&&!B||j!==u){if((!y||B)&&j===l){if(!O){if(!F)for(;L<k&&(j=t.charAt(L+1),i(j));)w+=j,L++;if(t.charAt(L+1)!==c)return;w+=c,r=!0,L++;break}O--}}else O++;N+=w,w="",L++}if(r){for(x=N,M+=N+w,L++;L<k&&(j=t.charAt(L),i(j));)M+=j,L++;if(j=t.charAt(L),E=U?v:m,N="",g=M,j===d){for(L++,g+=d;L<k&&(j=t.charAt(L))!==h;){if(U&&"\n"===j)return;N+=j,L++}if(t.charAt(L)!==h)return;M+=d+N+h,P=N,L++}else{for(j=null,w="";L<k&&(j=t.charAt(L),!w||!a.call(E,j));){if(i(j)){if(!F)break;w+=j}else{if(j===c)O++;else if(j===f){if(0===O)break;O--}N+=w,w="",j===s&&(N+=s,j=t.charAt(++L)),N+=j}L++}M+=N,P=N,L=M.length}for(N="";L<k&&(j=t.charAt(L),i(j));)N+=j,L++;if(j=t.charAt(L),M+=N,N&&a.call(E,j))if(L++,M+=j,N="",S=E[j],b=M,U){for(;L<k&&(j=t.charAt(L))!==S;)j===s&&(N+=s,j=t.charAt(++L)),L++,N+=j;if((j=t.charAt(L))!==S)return;for(C=N,M+=N+j,L++;L<k&&(j=t.charAt(L),i(j));)M+=j,L++}else for(w="";L<k;){if((j=t.charAt(L))===S)_&&(N+=S+w,w=""),_=!0;else if(_){if(j===f){M+=N+S+w,C=N;break}i(j)?w+=j:(N+=S+w+j,w="",_=!1)}else N+=j;L++}if(t.charAt(L)===f)return!!n||(M+=f,P=R.decode.raw(R.unescape(P),e(g).test().end,{nonTerminated:!1}),C&&(b=e(b).test().end,C=R.decode.raw(R.unescape(C),b)),D={type:T?"image":"link",title:C||null,url:P},T?D.alt=R.decode.raw(R.unescape(x),I)||null:(A=R.enterLink(),D.children=R.tokenizeInline(x,I),A()),e(M)(D))}}}var i=n(19),o=n(204);e.exports=r,r.locator=o;var a={}.hasOwnProperty,s="\\",u="[",l="]",c="(",f=")",d="<",h=">",p="`",m={};m['"']='"',m["'"]="'";var v={};v['"']='"',v["'"]="'",v[c]=f},function(e,t,n){"use strict";function r(e,t,n){var r,o,y,g,b,w,_,E,T=this,x=t.charAt(0),S=0,k=t.length,C="",O="",N=s,P=c;if("!"===x&&(N=u,O=x,x=t.charAt(++S)),x===m){if(S++,O+=x,w="",T.options.footnotes&&t.charAt(S)===h){if(N===u)return;O+=h,S++,N=l}for(E=0;S<k;){if((x=t.charAt(S))===m)_=!0,E++;else if(x===v){if(!E)break;E--}x===p&&(w+=p,x=t.charAt(++S)),w+=x,S++}if(C=w,r=w,(x=t.charAt(S))===v){for(S++,C+=x,w="";S<k&&(x=t.charAt(S),i(x));)w+=x,S++;if(x=t.charAt(S),N!==l&&x===m){for(o="",w+=x,S++;S<k&&(x=t.charAt(S))!==m&&x!==v;)x===p&&(o+=p,x=t.charAt(++S)),o+=x,S++;x=t.charAt(S),x===v?(P=o?d:f,w+=o+x,S++):o="",C+=w,w=""}else{if(!r)return;o=r}if(P===d||!_)return C=O+C,N===s&&T.inLink?null:!!n||(N===l&&-1!==r.indexOf(" ")?e(C)({type:"footnote",children:this.tokenizeInline(r,e.now())}):(y=e.now(),y.column+=O.length,y.offset+=O.length,o=P===d?o:r,g={type:N+"Reference",identifier:a(o)},N!==s&&N!==u||(g.referenceType=P),N===s?(b=T.enterLink(),g.children=T.tokenizeInline(r,y),b()):N===u&&(g.alt=T.decode.raw(T.unescape(r),y)||null),e(C)(g)))}}}var i=n(19),o=n(204),a=n(122);e.exports=r,r.locator=o;var s="link",u="image",l="footnote",c="shortcut",f="collapsed",d="full",h="^",p="\\",m="[",v="]"},function(e,t,n){"use strict";function r(e,t,n){var r,a,l,c,f,d,h,p=this,m=0,v=t.charAt(m);if((v===s||v===u)&&t.charAt(++m)===v&&(a=p.options.pedantic,l=v,f=l+l,d=t.length,m++,c="",v="",!a||!o(t.charAt(m))))for(;m<d;){if(h=v,(v=t.charAt(m))===l&&t.charAt(m+1)===l&&(!a||!o(h))&&(v=t.charAt(m+2))!==l){if(!i(c))return;return!!n||(r=e.now(),r.column+=2,r.offset+=2,e(f+c+f)({type:"strong",children:p.tokenizeInline(c,r)}))}a||"\\"!==v||(c+=v,v=t.charAt(++m)),c+=v,m++}}var i=n(29),o=n(19),a=n(622);e.exports=r,r.locator=a;var s="*",u="_"},function(e,t,n){"use strict";function r(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);return-1===r?n:-1===n?r:r<n?r:n}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,s,c,f,d,h,p,m=this,v=0,y=t.charAt(v);if((y===u||y===l)&&(s=m.options.pedantic,d=y,c=y,h=t.length,v++,f="",y="",!s||!a(t.charAt(v))))for(;v<h;){if(p=y,(y=t.charAt(v))===c&&(!s||!a(p))){if((y=t.charAt(++v))!==c){if(!i(f)||p===c)return;if(!s&&c===l&&o(y)){f+=c;continue}return!!n||(r=e.now(),r.column++,r.offset++,e(d+f+c)({type:"emphasis",children:m.tokenizeInline(f,r)}))}f+=c}s||"\\"!==y||(f+=y,y=t.charAt(++v)),f+=y,v++}}var i=n(29),o=n(624),a=n(19),s=n(625);e.exports=r,r.locator=s;var u="*",l="_"},function(e,t,n){"use strict";function r(e){return o.test("number"===typeof e?i(e):e.charAt(0))}e.exports=r;var i=String.fromCharCode,o=/\w/},function(e,t,n){"use strict";function r(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);return-1===r?n:-1===n?r:r<n?r:n}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,o,u,l=this,c="",f="",d="",h="";if(l.options.gfm&&t.charAt(0)===a&&t.charAt(1)===a&&!i(t.charAt(2)))for(r=1,o=t.length,u=e.now(),u.column+=2,u.offset+=2;++r<o;){if((c=t.charAt(r))===a&&f===a&&(!d||!i(d)))return!!n||e(s+h+s)({type:"delete",children:l.tokenizeInline(h,u)});h+=f,d=f,f=c}}var i=n(19),o=n(627);e.exports=r,r.locator=o;var a="~",s="~~"},function(e,t,n){"use strict";function r(e,t){return e.indexOf("~~",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){for(var r,o,s,u,l,c,f,d,h=t.length,p=0,m="",v="";p<h&&t.charAt(p)===a;)m+=a,p++;if(m){for(l=m,u=p,m="",d=t.charAt(p),s=0;p<h;){if(c=d,d=t.charAt(p+1),c===a?(s++,v+=c):(s=0,m+=c),s&&d!==a){if(s===u){l+=m+v,f=!0;break}m+=v,v=""}p++}if(!f){if(u%2!==0)return;m=""}if(n)return!0;for(r="",o="",h=m.length,p=-1;++p<h;)c=m.charAt(p),i(c)?o+=c:(o&&(r&&(r+=o),o=""),r+=c);return e(l)({type:"inlineCode",value:r})}}var i=n(19),o=n(629);e.exports=r,r.locator=o;var a="`"},function(e,t,n){"use strict";function r(e,t){return e.indexOf("`",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){for(var r,i=t.length,a=-1,s="";++a<i;){if("\n"===(r=t.charAt(a))){if(a<o)return;return!!n||(s+=r,e(s)({type:"break"}))}if(" "!==r)return;s+=r}}var i=n(631);e.exports=r,r.locator=i;var o=2},function(e,t,n){"use strict";function r(e,t){for(var n=e.indexOf("\n",t);n>t&&" "===e.charAt(n-1);)n--;return n}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,i,o,a,s,u,l,c,f,d,h=this;if(n)return!0;for(r=h.inlineMethods,a=r.length,i=h.inlineTokenizers,o=-1,f=t.length;++o<a;)"text"!==(c=r[o])&&i[c]&&(l=i[c].locator,l||e.file.fail("Missing locator: `"+c+"`"),-1!==(u=l.call(h,t,1))&&u<f&&(f=u));s=t.slice(0,f),d=e.now(),h.decode(s,d,function(t,n,r){e(r||t)({type:"text",value:t})})}e.exports=r},function(e,t,n){"use strict";function r(e){var t=i(a);t.prototype.options=o(t.prototype.options,this.data("settings"),e),this.Compiler=t}var i=n(191),o=n(24),a=n(634);e.exports=r,r.Compiler=a},function(e,t,n){"use strict";function r(e,t){this.inLink=!1,this.inTable=!1,this.tree=e,this.file=t,this.options=i(this.options),this.setOptions({})}var i=n(24),o=n(192);e.exports=r;var a=r.prototype;a.enterLink=o("inLink",!1),a.enterTable=o("inTable",!1),a.enterLinkReference=n(635),a.options=n(206),a.setOptions=n(636),a.compile=n(642),a.visit=n(646),a.all=n(647),a.block=n(648),a.visitOrderedItems=n(649),a.visitUnorderedItems=n(650),a.visitors={root:n(651),text:n(652),heading:n(653),paragraph:n(654),blockquote:n(655),list:n(656),listItem:n(657),inlineCode:n(658),code:n(659),html:n(660),thematicBreak:n(661),strong:n(662),emphasis:n(663),break:n(664),delete:n(665),link:n(666),linkReference:n(668),imageReference:n(670),definition:n(671),image:n(672),footnote:n(673),footnoteReference:n(674),footnoteDefinition:n(675),table:n(676),tableCell:n(678)}},function(e,t,n){"use strict";function r(e,t){var n=e.encode,r=e.escape,o=e.enterLink();return"shortcut"!==t.referenceType&&"collapsed"!==t.referenceType?o:(e.escape=i,e.encode=i,function(){e.encode=n,e.escape=r,o()})}var i=n(205);e.exports=r},function(e,t,n){"use strict";function r(e){var t,n,r=this,o=r.options;if(null==e)e={};else{if("object"!==typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=c(e)}for(n in d)v[typeof d[n]](e,n,o[n],m[n]);return t=e.ruleRepetition,t&&t<3&&i(t,"options.ruleRepetition"),r.encode=l(String(e.entities)),r.escape=h(e),r.options=e,r}function i(e,t){throw new Error("Invalid value `"+e+"` for setting `"+t+"`")}function o(e,t,n){var r=e[t];null==r&&(r=n),"boolean"!==typeof r&&i(r,"options."+t),e[t]=r}function a(e,t,n){var r=e[t];null==r&&(r=n),isNaN(r)&&i(r,"options."+t),e[t]=r}function s(e,t,n,r){var o=e[t];null==o&&(o=n),o=String(o),o in r||i(o,"options."+t),e[t]=o}function u(e,t,n){var r=e[t];null==r&&(r=n),"function"!==typeof r&&i(r,"options."+t),e[t]=r}function l(e){function t(e){return f(e,n)}var n={};return"false"===e?p:("true"===e&&(n.useNamedReferences=!0),"escape"===e&&(n.escapeOnly=!0,n.useNamedReferences=!0),t)}var c=n(24),f=n(637),d=n(206),h=n(640),p=n(205);e.exports=r;var m={entities:{true:!0,false:!0,numbers:!0,escape:!0},bullet:{"*":!0,"-":!0,"+":!0},rule:{"-":!0,_:!0,"*":!0},listItemIndent:{tab:!0,mixed:!0,1:!0},emphasis:{_:!0,"*":!0},strong:{_:!0,"*":!0},fence:{"`":!0,"~":!0}},v={boolean:o,string:s,number:a,function:u}},function(e,t,n){"use strict";function r(e,t){function n(e,t,n){return s(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charAt(t+2),f)}function r(e,t,n){return o(e,n.charAt(t+1),i)}var i=t||{},a=i.subset,l=a?u(a):y,c=i.escapeOnly,f=i.omitOptionalSemicolons;return e=e.replace(l,function(e,t,n){return o(e,n.charAt(t+1),i)}),a||c?e:e.replace(g,n).replace(b,r)}function i(e){return r(e,{escapeOnly:!0,useNamedReferences:!0})}function o(e,t,n){var r,i,o=n.useShortestReferences,u=n.omitOptionalSemicolons;return(o||n.useNamedReferences)&&p.call(v,e)&&(r=a(v[e],t,u,n.attribute)),!o&&r||(i=s(e.charCodeAt(0),t,u)),r&&(!o||r.length<i.length)?r:i}function a(e,t,n,r){var i="&"+e;return n&&p.call(c,e)&&-1===h.indexOf(e)&&(!r||t&&"="!==t&&!d(t))?i:i+";"}function s(e,t,n){var r="&#x"+e.toString(16).toUpperCase();return n&&t&&!f(t)?r:r+";"}function u(e){return new RegExp("["+e.join("")+"]","g")}var l=n(638),c=n(193),f=n(194),d=n(195),h=n(639);e.exports=r,r.escape=i;var p={}.hasOwnProperty,m=['"',"'","<",">","&","`"],v=function(){var e,t={};for(e in l)t[l[e]]=e;return t}(),y=u(m),g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g},function(e,t){e.exports={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203e",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"}},function(e,t){e.exports=["cent","copy","divide","gt","lt","not","para","times"]},function(e,t,n){"use strict";function r(e){function t(t,n,r){function p(e){return-1===A.indexOf(e)?m[e]:d+e}var v,y,g,b,w,_,E=this,T=e.gfm,x=e.commonmark,S=e.pedantic,k=x?[".",")"]:["."],C=r&&r.children,O=C&&C.indexOf(n),N=C&&C[O-1],P=C&&C[O+1],I=t.length,A=c(e),D=-1,R=[],M=R;for(v=N?o(N)&&/\n\s*$/.test(N.value):!r||"root"===r.type||"paragraph"===r.type;++D<I;){if(y=t.charAt(D),_=!1,"\n"===y)v=!0;else if(y===d||"`"===y||"*"===y||"["===y||"<"===y||"&"===y&&f(t.slice(D))>0||"]"===y&&E.inLink||T&&"~"===y&&"~"===t.charAt(D+1)||T&&"|"===y&&(E.inTable||i(t,D))||"_"===y&&D>0&&D<I-1&&(S||!u(t.charAt(D-1))||!u(t.charAt(D+1)))||T&&!E.inLink&&":"===y&&a(R.join("")))_=!0;else if(v)if(">"===y||"#"===y||-1!==h.indexOf(y))_=!0;else if(s(y)){for(w=D+1;w<I&&s(t.charAt(w));)w++;-1!==k.indexOf(t.charAt(w))&&((P=t.charAt(w+1))&&" "!==P&&"\t"!==P&&"\n"!==P||(R.push(t.slice(D,w)),D=w,y=t.charAt(D),_=!0))}v&&!l(y)&&(v=!1),R.push(_?p(y):y)}if(C&&o(n)){if(N&&"shortcut"===N.referenceType){for(D=-1,I=M.length;++D<I;)if(" "!==(y=M[D])&&"\t"!==y){"("!==y&&":"!==y||(M[D]=p(y));break}o(P)&&D===I&&"("===P.value.charAt(0)&&M.push(d)}T&&!E.inLink&&o(N)&&":"===t.charAt(0)&&a(N.value.slice(-6))&&(M[0]=p(":")),o(P)&&"&"===t.charAt(I-1)&&0!==f("&"+P.value)&&(M[M.length-1]=p("&")),T&&o(P)&&"~"===t.charAt(I-1)&&"~"===P.value.charAt(0)&&M.splice(M.length-1,0,d),g=o(N)&&u(N.value.slice(-1)),b=o(P)&&u(P.value.charAt(0)),1===I?"_"!==t||!S&&g&&b||M.unshift(d):("_"!==t.charAt(0)||!S&&g&&u(t.charAt(1))||M.unshift(d),"_"!==t.charAt(I-1)||!S&&b&&u(t.charAt(I-2))||M.splice(M.length-1,0,d))}return M.join("")}return t}function i(e,t){var n=e.lastIndexOf("\n",t),r=e.indexOf("\n",t);for(n=-1===n?-1:n,r=-1===r?e.length:r;++n<r;)if(-1===p.indexOf(e.charAt(n)))return!1;return!0}function o(e){return e&&"text"===e.type}function a(e){var t=e.slice(-6).toLowerCase();return"mailto"===t||"https"===t.slice(-5)||"http"===t.slice(-4)}var s=n(61),u=n(641),l=n(19),c=n(197),f=n(207);e.exports=r;var d="\\",h=["*","-","+"],p=[":","-"," ","|"],m={"<":"<",":":":","&":"&","|":"|","~":"~"}},function(e,t,n){"use strict";e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return!/[^0-9a-z\xDF-\xFF]/.test(e.toLowerCase())}},function(e,t,n){"use strict";function r(){return this.visit(i(this.tree,this.options.commonmark))}var i=n(643);e.exports=r},function(e,t,n){"use strict";function r(e,t){function n(e){e.children&&s(e)}function r(e,n,r){var o=r.children,a=n&&o[n-1];if(a&&e.type===a.type&&i(a,t)&&i(e,t))return e.value&&(a.value+=e.value),e.children&&(a.children=a.children.concat(e.children)),o.splice(n,1),a.position&&e.position&&(a.position.end=e.position.end),n}var s=a(r);return o(e,n),e}function i(e,t){var n,r;return"text"===e.type?!e.position||(n=e.position.start,r=e.position.end,n.line!==r.line||r.column-n.column===e.value.length):t&&"blockquote"===e.type}var o=n(62),a=n(644);e.exports=r},function(e,t,n){"use strict";function r(e){return i(o(e))}function i(e){function t(t){var n=t&&t.children;if(!n)throw new Error("Missing children in `parent` for `modifier`");return a(n,e,t)}return t}function o(e){function t(t,n){return e(t,n,this)}return t}var a=n(645);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,o=-1;if(!e)throw new Error("Iterate requires that |this| not be "+e);if(!i.call(e,"length"))throw new Error("Iterate requires that |this| has a `length`");if("function"!==typeof t)throw new Error("`callback` must be a function");for(;++o<e.length;)o in e&&"number"===typeof(r=t.call(n,e[o],o,e))&&(r<0&&(o=0),o=r-1)}e.exports=r;var i={}.hasOwnProperty},function(e,t,n){"use strict";function r(e,t){var n=this,r=n.visitors;return"function"!==typeof r[e.type]&&n.file.fail(new Error("Missing compiler for node of type `"+e.type+"`: `"+e+"`"),e),r[e.type].call(n,e,t)}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t=this,n=e.children,r=n.length,i=[],o=-1;++o<r;)i[o]=t.visit(n[o],e);return i}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n,r=this,i=[],o=e.children,a=o.length,s=-1;++s<a;)t=o[s],n&&(t.type===n.type&&"list"===n.type?i.push(n.ordered===t.ordered?"\n\n\n":"\n\n"):"list"!==n.type||"code"!==t.type||t.lang?i.push("\n\n"):i.push("\n\n\n")),i.push(r.visit(t,e)),n=t;return i.join("")}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n=this,r=n.visitors.listItem,i=n.options.incrementListMarker,o=[],a=e.start,s=e.children,u=s.length,l=-1;++l<u;)t=(i?a+l:a)+".",o[l]=r.call(n,s[l],e,l,t);return o.join("\n")}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t=this,n=t.options.bullet,r=t.visitors.listItem,i=e.children,o=i.length,a=-1,s=[];++a<o;)s[a]=r.call(t,i[a],e,a,n);return s.join("\n")}e.exports=r},function(e,t,n){"use strict";function r(e){return this.block(e)+"\n"}e.exports=r},function(e,t,n){"use strict";function r(e,t){return this.encode(this.escape(e.value,e,t),e)}e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=this,r=e.depth,o=n.options.setext,a=n.options.closeAtx,s=n.all(e).join("");return o&&r<3?s+"\n"+i(1===r?"=":"-",s.length):(t=i("#",e.depth))+" "+s+(a?" "+t:"")}var i=n(21);e.exports=r},function(e,t,n){"use strict";function r(e){return this.all(e).join("")}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n=this.block(e).split("\n"),r=[],i=n.length,o=-1;++o<i;)t=n[o],r[o]=(t?" ":"")+t;return">"+r.join("\n>")}e.exports=r},function(e,t,n){"use strict";function r(e){return this[i[e.ordered]](e)}e.exports=r;var i={true:"visitOrderedItems",false:"visitUnorderedItems"}},function(e,t,n){"use strict";function r(e,t,n,r){for(var s,u,l,c=this,f=c.options.listItemIndent,d=e.loose,h=e.children,p=h.length,m=[],v=-1;++v<p;)m[v]=c.visit(h[v],e);return s=a[e.checked]+m.join(d?"\n\n":"\n"),"1"===f||"mixed"===f&&-1===s.indexOf("\n")?(u=r.length+1,l=" "):(u=4*Math.ceil((r.length+1)/4),l=i(" ",u-r.length)),s=r+l+o(s,u/4).slice(u),d&&t.children.length-1!==n&&(s+="\n"),s}var i=n(21),o=n(208);e.exports=r;var a={undefined:"",null:"",true:"[x] ",false:"[ ] "}},function(e,t,n){"use strict";function r(e){var t=e.value,n=o("`",i(t,"`")+1),r=n,a=n;return"`"===t.charAt(0)&&(r+=" "),"`"===t.charAt(t.length-1)&&(a=" "+a),r+t+a}var i=n(209),o=n(21);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r=this,s=e.value,u=r.options,l=u.fence,c=r.encode(e.lang||"",e);return c||u.fences||!s?(n=o(l,Math.max(i(s,l)+1,3)))+c+"\n"+s+"\n"+n:(t&&"listItem"===t.type&&"tab"!==u.listItemIndent&&u.pedantic&&r.file.fail("Cannot indent code properly. See http://git.io/vgFvT",e.position),a(s,1))}var i=n(209),o=n(21),a=n(208);e.exports=r},function(e,t,n){"use strict";function r(e){return e.value}e.exports=r},function(e,t,n){"use strict";function r(){var e=this.options,t=i(e.rule,e.ruleRepetition);return e.ruleSpaces?t.split("").join(" "):t}var i=n(21);e.exports=r},function(e,t,n){"use strict";function r(e){var t=i(this.options.strong,2);return t+this.all(e).join("")+t}var i=n(21);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.options.emphasis;return t+this.all(e).join("")+t}e.exports=r},function(e,t,n){"use strict";function r(){return i[this.options.commonmark]}e.exports=r;var i={true:"\\\n",false:" \n"}},function(e,t,n){"use strict";function r(e){return"~~"+this.all(e).join("")+"~~"}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.encode(e.url||"",e),r=t.enterLink(),s=t.encode(t.escape(e.url||"",e)),u=t.all(e).join("");return r(),null!=e.title||!a.test(n)||s!==u&&s!=="mailto:"+u?(n=i(n),e.title&&(n+=" "+o(t.encode(t.escape(e.title,e),e))),"["+u+"]("+n+")"):i(t.encode(e.url),!0)}var i=n(123),o=n(124);e.exports=r;var a=/^[a-z][a-z+.-]+:\/?/i},function(e,t,n){"use strict";function r(e,t){var n,r=0;if(e=String(e),"string"!==typeof t||1!==t.length)throw new Error("Expected character");for(n=e.indexOf(t);-1!==n;)r++,n=e.indexOf(t,n+1);return r}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=e.referenceType,r=t.enterLinkReference(t,e),a=t.all(e).join("");return r(),"shortcut"!==n&&"collapsed"!==n||(a=i(a,e.identifier)),"["+a+"]"+o(e)}var i=n(669),o=n(210);e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n,r=e.length,a=t.length,s=[],u=0,l=0;l<r;){for(n=l;l<r&&!o.test(e.charAt(l));)l+=1;for(s.push(e.slice(n,l));u<a&&!o.test(t.charAt(u));)u+=1;for(n=u;u<a&&o.test(t.charAt(u));)"&"===t.charAt(u)&&(u+=i(t.slice(u))),u+=1;for(s.push(t.slice(n,u));l<r&&o.test(e.charAt(l));)l+=1}return s.join("")}var i=n(207);e.exports=r;var o=/[-!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~_]/},function(e,t,n){"use strict";function r(e){return"!["+(this.encode(e.alt,e)||"")+"]"+i(e)}var i=n(210);e.exports=r},function(e,t,n){"use strict";function r(e){var t=i(e.url);return e.title&&(t+=" "+o(e.title)),"["+e.identifier+"]: "+t}var i=n(123),o=n(124);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=i(t.encode(e.url||"",e)),r=t.enterLink(),a=t.encode(t.escape(e.alt||"",e));return r(),e.title&&(n+=" "+o(t.encode(e.title,e))),"!["+a+"]("+n+")"}var i=n(123),o=n(124);e.exports=r},function(e,t,n){"use strict";function r(e){return"[^"+this.all(e).join("")+"]"}e.exports=r},function(e,t,n){"use strict";function r(e){return"[^"+e.identifier+"]"}e.exports=r},function(e,t,n){"use strict";function r(e){return"[^"+e.identifier.toLowerCase()+"]: "+this.all(e).join("\n\n"+i(" ",4))}var i=n(21);e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n,r=this,o=r.options,a=o.looseTable,s=o.spacedTable,u=o.paddedTable,l=o.stringLength,c=e.children,f=c.length,d=r.enterTable(),h=[];f--;)h[f]=r.all(c[f]);return d(),a?(t="",n=""):s?(t="| ",n=" |"):(t="|",n="|"),i(h,{align:e.align,pad:u,start:t,end:n,stringLength:l,delimiter:s?" | ":"|"})}var i=n(677);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r,l,E,T,x,S,k,C,O,N,P,I=t||{},A=I.delimiter,D=I.start,R=I.end,M=I.align,L=I.stringLength||o,j=0,F=-1,U=e.length,B=[];for(M=M?M.concat():[],null!==A&&void 0!==A||(A=w+b+w),null!==D&&void 0!==D||(D=b+w),null!==R&&void 0!==R||(R=w+b);++F<U;)for(E=e[F],x=-1,E.length>j&&(j=E.length);++x<j;)S=E[x]?s(E[x]):null,B[x]||(B[x]=v),S>B[x]&&(B[x]=S);for("string"===typeof M&&(M=a(j,M).split("")),x=-1;++x<j;)n=M[x],"string"===typeof n&&(n=n.charAt(0).toLowerCase()),-1===m.indexOf(n)&&(n=p),M[x]=n;for(F=-1,l=[];++F<U;){for(E=e[F],x=-1,T=[];++x<j;)C=E[x],C=i(C),M[x]===h?(S=s(C),k=B[x]+(u.test(C)?0:1)-(L(C)-S),T[x]=C+a(k-1)):T[x]=C;l[F]=T}for(B=[],F=-1;++F<U;)for(T=l[F],x=-1;++x<j;)C=T[x],B[x]||(B[x]=v),(k=L(C))>B[x]&&(B[x]=k);for(F=-1;++F<U;){if(T=l[F],x=-1,!1!==I.pad)for(;++x<j;)C=T[x],S=B[x]-(L(C)||0),O=a(S),M[x]===f||M[x]===h?C=O+C:M[x]===d?(S/=2,S%1===0?(N=S,P=S):(N=S+.5,P=S-.5),C=a(N)+C+a(P)):C+=O,T[x]=C;l[F]=T.join(A)}if(!1!==I.rule){for(x=-1,r=[];++x<j;)!1===I.pad?(C=e[0][x],O=L(i(C)),O=O>v?O:v):O=B[x],n=M[x],C=n===f||n===p?g:y,C+=a(O-2,g),C+=n!==c&&n!==p?y:g,r[x]=C;l.splice(1,0,r.join(A))}return D+l.join(R+_+D)+R}function i(e){return null===e||void 0===e?"":String(e)}function o(e){return String(e).length}function a(e,t){return new Array(e+1).join(t||w)}function s(e){var t=l.exec(e);return t?t.index+1:e.length}e.exports=r;var u=/\./,l=/\.[^.]*$/,c="l",f="r",d="c",h=".",p="",m=[c,f,d,h,p],v=3,y=":",g="-",b="|",w=" ",_="\n"},function(e,t,n){"use strict";function r(e){return this.all(e).join("")}e.exports=r},function(e,t,n){"use strict";function r(e){function t(e,t,n){var r=l.call(m,e)?m[e]:e;return n&&-1!==c.indexOf(r)&&(n=n.filter(function(e){return"\n"!==e})),f(r,t,n)}function n(e){var n={type:"element",tagName:"div",properties:{},children:o(e,p).children};return d&&(n=a(n,h)),n=u(n),s(t,n,r.prefix)}var r=e||{},f=r.createElement||i,d=!1!==r.sanitize,h=d&&"boolean"!==typeof r.sanitize?r.sanitize:null,p=r.toHast||{},m=r.remarkReactComponents||{};this.Compiler=n}e.exports=r;var i,o=n(680),a=n(707),s=n(710),u=n(720);try{i=n(1).createElement}catch(e){}var l={}.hasOwnProperty,c=["table","thead","tbody","tfoot","tr"]},function(e,t,n){"use strict";e.exports=n(681)},function(e,t,n){"use strict";function r(e,t){function n(e,t){var n,r;return e&&"data"in e&&(n=e.data,"element"===t.type&&n.hName&&(t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=o(t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},l(r)||(t.position={start:u.start(r),end:u.end(r)}),t}function r(e,t,r,i){return(void 0===i||null===i)&&"object"===typeof r&&"length"in r&&(i=r,r={}),n(e,{type:"element",tagName:t,properties:r||{},children:i||[]})}function i(e){r.footnotes.push(e)}var a=t||{},f=a.allowDangerousHTML;return r.dangerous=f,r.definition=c(e,a),r.footnotes=[],r.augment=n,r.handlers=o(h,a.handlers||{}),s(e,"footnoteDefinition",i),r}function i(e,t){var n=r(e,t),i=f(n,e),o=d(n);return i&&i.children&&o&&(i.children=i.children.concat(a("text","\n"),o)),i}e.exports=i;var o=n(24),a=n(22),s=n(62),u=n(211),l=n(682),c=n(683),f=n(212),d=n(684),h=n(685)},function(e,t,n){"use strict";function r(e){var t=i(i(e).position),n=i(t.start),r=i(t.end);return!n.line||!n.column||!r.line||!r.column}function i(e){return e&&"object"===typeof e?e:{}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return o(i(e,t))}function i(e,t){function n(e){var t=a(e.identifier);u.call(i,t)||(i[t]=e)}function r(e){i[a(e.identifier)]=e}var i={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return s(e,"definition",t&&t.commonmark?n:r),i}function o(e){function t(t){var n=t&&a(t);return n&&u.call(e,n)?e[n]:null}return t}function a(e){return e.toUpperCase()}var s=n(62);e.exports=r;var u={}.hasOwnProperty},function(e,t,n){"use strict";function r(e){var t,n=e.footnotes,r=n.length,s=-1,u=[];if(!r)return null;for(;++s<r;)t=n[s],u[s]={type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:t.children.concat({type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"\u21a9"}]}),position:t.position};return e(null,"div",{className:["footnotes"]},a([i(e),o(e,{type:"list",ordered:!0,children:u})],!0))}e.exports=r;var i=n(213),o=n(214),a=n(50)},function(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(686),break:n(687),code:n(688),delete:n(690),emphasis:n(691),footnoteReference:n(215),footnote:n(692),heading:n(693),html:n(694),imageReference:n(695),image:n(696),inlineCode:n(697),linkReference:n(698),link:n(699),listItem:n(700),list:n(214),paragraph:n(701),root:n(702),strong:n(703),table:n(704),text:n(705),thematicBreak:n(213),toml:r,yaml:r,definition:r,footnoteDefinition:r}},function(e,t,n){"use strict";function r(e,t){return e(t,"blockquote",i(o(e,t),!0))}e.exports=r;var i=n(50),o=n(16)},function(e,t,n){"use strict";function r(e,t){return[e(t,"br"),i("text","\n")]}e.exports=r;var i=n(22)},function(e,t,n){"use strict";function r(e,t){var n=t.value?i(t.value+"\n"):"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};return r&&(a.className=["language-"+r]),e(t.position,"pre",[e(t,"code",a,[o("text",n)])])}e.exports=r;var i=n(689),o=n(22)},function(e,t,n){"use strict";function r(e,t){var n,r,u="string"===typeof e,l=u&&e.length,c=0,f=-1,d=-1,h=t||4,p=[];if(!u)throw new Error("detab expected string");for(;++f<l;)n=e.charCodeAt(f),n===o?(r=h-(d+1)%h,d+=r,p.push(e.slice(c,f)+i(" ",r)),c=f+1):n===a||n===s?d=-1:d++;return p.push(e.slice(c)),p.join("")}e.exports=r;var i=n(21),o=9,a=10,s=13},function(e,t,n){"use strict";function r(e,t){return e(t,"del",i(e,t))}e.exports=r;var i=n(16)},function(e,t,n){"use strict";function r(e,t){return e(t,"em",i(e,t))}e.exports=r;var i=n(16)},function(e,t,n){"use strict";function r(e,t){for(var n=[],r=1,o=e.footnotes,a=o.length,s=-1;++s<a;)n[s]=o[s].identifier;for(;-1!==n.indexOf(String(r));)r++;return r=String(r),o.push({type:"footnoteDefinition",identifier:r,children:[{type:"paragraph",children:t.children}],position:t.position}),i(e,{type:"footnoteReference",identifier:r,position:t.position})}e.exports=r;var i=n(215)},function(e,t,n){"use strict";function r(e,t){return e(t,"h"+t.depth,i(e,t))}e.exports=r;var i=n(16)},function(e,t,n){"use strict";function r(e,t){return e.dangerous?e.augment(t,i("raw",t.value)):null}e.exports=r;var i=n(22)},function(e,t,n){"use strict";function r(e,t){var n=e.definition(t.identifier),r={src:i(n&&n.url||""),alt:t.alt};return n&&null!==n.title&&void 0!==n.title&&(r.title=n.title),o(e,t,n)||e(t,"img",r)}e.exports=r;var i=n(82),o=n(216)},function(e,t,n){"use strict";function r(e,t){var n={src:i(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)}var i=n(82);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e(t,"code",[o("text",i(t.value))])}e.exports=r;var i=n(202),o=n(22)},function(e,t,n){"use strict";function r(e,t){var n=e.definition(t.identifier),r={href:i(n&&n.url||"")};return n&&null!==n.title&&void 0!==n.title&&(r.title=n.title),o(e,t,n)||e(t,"a",r,a(e,t))}e.exports=r;var i=n(82),o=n(216),a=n(16)},function(e,t,n){"use strict";function r(e,t){var n={href:i(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,o(e,t))}var i=n(82),o=n(16);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,s,u=t.children,l=u[0],c={},f=!1;return n&&n.loose||1!==u.length||"paragraph"!==l.type||(f=!0),r=a(e,f?l:t),"boolean"===typeof t.checked&&(f||l&&"paragraph"===l.type||r.unshift(e(null,"p",[])),s=f?r:r[0].children,0!==s.length&&s.unshift(i("text"," ")),s.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),c.className=["task-list-item"]),f||0===r.length||(r=o(r,!0)),e(t,"li",c,r)}e.exports=r;var i=n(22),o=n(50),a=n(16)},function(e,t,n){"use strict";function r(e,t){return e(t,"p",i(e,t))}e.exports=r;var i=n(16)},function(e,t,n){"use strict";function r(e,t){return e.augment(t,i("root",o(a(e,t))))}e.exports=r;var i=n(22),o=n(50),a=n(16)},function(e,t,n){"use strict";function r(e,t){return e(t,"strong",i(e,t))}e.exports=r;var i=n(16)},function(e,t,n){"use strict";function r(e,t){for(var n,r,s,u,l,c=t.children,f=c.length,d=t.align,h=d.length,p=[];f--;){for(r=c[f].children,u=0===f?"th":"td",n=h,s=[];n--;)l=r[n],s[n]=e(l,u,{align:d[n]},l?a(e,l):[]);p[f]=e(c[f],"tr",o(s,!0))}return e(t,"table",o([e(p[0].position,"thead",o([p[0]],!0)),e({start:i.start(p[1]),end:i.end(p[p.length-1])},"tbody",o(p.slice(1),!0))],!0))}e.exports=r;var i=n(211),o=n(50),a=n(16)},function(e,t,n){"use strict";function r(e,t){return e.augment(t,i("text",o(t.value)))}e.exports=r;var i=n(22),o=n(706)},function(e,t,n){"use strict";function r(e){return String(e).replace(i,o)}e.exports=r;var i=/[ \t]*\n+[ \t]*/g,o="\n"},function(e,t,n){"use strict";e.exports=n(708)},function(e,t,n){"use strict";function r(e,t){var n,r={type:"root",children:[]};return e&&"object"===typeof e&&e.type?(n=i(y(g,t||{}),e,[]),n?"length"in n?1===n.length?n[0]:(r.children=n,r):n:r):r}function i(e,t,n){var r,i,o,a,s=t&&t.type,u={type:t.type},l=!0;if(b.call(w,s))if(r=w[s],"function"===typeof r&&(r=r(e,t)),r){i=y(r,w["*"]);for(a in i)o=i[a](e,t[a],t,n),!1===o?(l=!1,u[a]=t[a]):null!==o&&void 0!==o&&(u[a]=o)}else l=!1;else l=!1;return l?u:u.children&&0!==u.children.length&&-1===e.strip.indexOf(u.tagName)?u.children:null}function o(e,t,n,r){var o,a=t||[],s=a.length||0,u=[],l=-1;for(r=r.concat(n.tagName);++l<s;)(o=i(e,a[l],r))&&("length"in o?u=u.concat(o):u.push(o));return u}function a(e,t,n,r){var i,o,a,l=f(e,n.tagName,n,r),c=e.attributes,d=t||{},h={};i=b.call(c,l)?c[l]:[],i=[].concat(i,c["*"]);for(o in d)a=d[o],(-1!==i.indexOf(o)||v(o)&&-1!==i.indexOf("data*"))&&null!==(a=a&&"object"===typeof a&&"length"in a?s(e,a,o):u(e,a,o))&&void 0!==a&&(h[o]=a);return h}function s(e,t,n){for(var r,i=t.length,o=[],a=-1;++a<i;)null!==(r=u(e,t[a],n))&&void 0!==r&&o.push(r);return o}function u(e,t,n){return"boolean"!==typeof t&&"number"!==typeof t&&"string"!==typeof t?null:l(e,t,n)?(-1!==e.clobber.indexOf(n)&&(t=e.clobberPrefix+t),t):null}function l(e,t,n){var r,i,o,a,s,u=e.protocols;if(u=b.call(u,n)?u[n].concat():[],0===u.length)return!0;if(t=String(t),"#"===(i=t.charAt(0))||"/"===i)return!0;if(-1===(o=t.indexOf(":")))return!0;for(a=u.length,s=-1;++s<a;)if(r=u[s],o===r.length&&t.slice(0,r.length)===r)return!0;return-1!==(s=t.indexOf("?"))&&o>s||-1!==(s=t.indexOf("#"))&&o>s}function c(){return"html"}function f(e,t,n,r){var i,o,a="string"===typeof t?t:null,s=e.ancestors;if(!a||"*"===a||-1===e.tagNames.indexOf(a))return!1;if(s=b.call(s,a)?s[a]:[],0!==s.length)for(i=s.length+1,o=-1;++o<i;){if(!s[o])return!1;if(-1!==r.indexOf(s[o]))break}return a}function d(e){return e.allowDoctypes?{name:c}:null}function h(e){return e.allowComments?{value:p}:null}function p(e,t){return"string"===typeof t?t:""}function m(e,t){return t}function v(e){return e.length>4&&"data"===e.slice(0,4).toLowerCase()}var y=n(24),g=n(709);e.exports=r;var b={}.hasOwnProperty,w={root:{children:o},doctype:d,comment:h,element:{tagName:f,properties:a,children:o},text:{value:p},"*":{data:m,position:m}}},function(e,t){e.exports={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{li:["ol","ul"],tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","h7","h8","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details"],attributes:{a:["href"],img:["src","longDesc"],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charoff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hspace","isMap","id","label","lang","maxLength","media","method","multiple","name","nohref","noshade","nowrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","valign","value","vspace","width","itemProp"]}}},function(e,t,n){"use strict";function r(e,t,n){var r,o;if("function"!==typeof e)throw new Error("h is not a function");if(r=a(e),o=u(e),null!==n&&void 0!==n||(n=(!0===r||!0===o)&&"h-"),b("root",t))t=1===t.children.length&&b("element",t.children[0])?t.children[0]:{type:"element",tagName:"div",properties:{},children:t.children};else if(!b("element",t))throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return i(e,t,{prefix:n,key:0,react:r,vdom:o,hyperscript:s(e)})}function i(e,t,n){var r,a,s,u,c,f,d,h,p=t.tagName;r=t.properties,a={};for(u in r)o(a,u,r[u],n);for(!0===n.vdom&&(p=p.toUpperCase()),!0===n.hyperscript&&a.id&&(p+="#"+a.id,delete a.id),!0!==n.hyperscript&&!0!==n.vdom||!a.className||(p+="."+v.parse(a.className).join("."),delete a.className),"string"===typeof a.style&&(!0===n.vdom?(a.attributes||(a.attributes={}),a.attributes.style=a.style,delete a.style):!0===n.react&&(a.style=l(a.style))),n.prefix&&(n.key++,a.key=n.prefix+n.key),c=[],s=t.children||[],f=s.length,d=-1;++d<f;)h=s[d],b("element",h)?c.push(i(e,h,n)):b("text",h)&&c.push(h.value);return 0===c.length?e(p,a):e(p,a,c)}function o(e,t,n,r){var i,o=m(t)||{};if(!(null===n||void 0===n||!1===n||g(n)||o.boolean&&!n)){if(t=o.name?o.name:r.react&&!c(t)?f(t):p(t),null!==n&&"object"===typeof n&&"length"in n&&(n=(o.commaSeparated?y:v).stringify(n)),o.boolean&&!0===r.hyperscript&&(n=""),"class"!==o.name&&(o.mustUseAttribute||!o.name)&&(!0===r.vdom?i="attributes":!0===r.hyperscript&&(i="attrs"),i))return void 0===e[i]&&(e[i]={}),void(e[i][t]=n);e[o.propertyName||t]=n}}function a(e){var t=e&&e("div");return Boolean(t&&("_owner"in t||"_store"in t)&&null===t.key)}function s(e){return Boolean(e&&e.context&&e.cleanup)}function u(e){try{return"VirtualNode"===e("div").type}catch(e){}return!1}function l(e){for(var t,n,r,i={},o=e.split(";"),a=o.length,s=-1;++s<a;)t=o[s],-1!==(r=t.indexOf(":"))&&(n=f(h(t.slice(0,r))),i[n]=h(t.slice(r+1)));return i}function c(e){var t=e.slice(0,4);return("data"===t||"aria"===t)&&e.length>4}function f(e){return"-ms-"===e.slice(0,4)&&(e="ms-"+e.slice(4)),e.replace(/-([a-z])/g,d)}function d(e,t){return t.toUpperCase()}var h=n(29),p=n(711),m=n(712),v=n(713),y=n(714),g=n(715),b=n(199);e.exports=r},function(e,t,n){"use strict";var r=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,i=/-[a-z\u00E0-\u00F6\u00F8-\u00FE]/g;e.exports=t=function(e){return e.replace(r,function(e){return"-"+e.toLowerCase()})},t.reverse=function(e){return e.replace(i,function(e){return e.slice(1).toUpperCase()})}},function(e,t,n){"use strict";function r(e){var t=o(e);return f[c[t]||t]}function i(e,t){return(e&t)===t}function o(e){return e.toLowerCase()}e.exports=r;var a,s,u,l={abbr:null,accept:256,acceptCharset:128,accessKey:128,action:null,allowFullScreen:9,allowTransparency:1,alt:null,as:null,async:8,autoComplete:128,autoFocus:8,autoPlay:8,capture:9,cellPadding:null,cellSpacing:null,challenge:1,charSet:1,checked:10,cite:null,className:129,cols:49,colSpan:null,command:null,content:null,contentEditable:null,contextMenu:1,controls:10,controlsList:128,coords:272,crossOrigin:null,data:null,dateTime:1,default:8,defer:8,dir:null,dirName:null,disabled:9,download:64,draggable:null,dropzone:128,encType:null,form:1,formAction:1,formEncType:1,formMethod:1,formNoValidate:8,formTarget:1,frameBorder:1,headers:128,height:49,hidden:9,high:16,href:null,hrefLang:null,htmlFor:128,httpEquiv:128,id:2,inputMode:1,is:1,isMap:8,keyParams:1,keyType:1,kind:null,label:null,lang:null,list:1,loop:10,low:16,manifest:1,marginHeight:16,marginWidth:16,max:null,maxLength:49,media:1,mediaGroup:null,menu:null,method:null,min:null,minLength:49,multiple:10,muted:10,name:null,nonce:null,noValidate:8,open:8,optimum:16,pattern:null,ping:128,placeholder:null,playsInline:8,poster:null,preload:null,profile:null,radioGroup:null,readOnly:10,referrerPolicy:null,rel:129,required:8,reversed:8,role:1,rows:49,rowSpan:48,sandbox:128,scope:null,scoped:8,scrolling:null,seamless:9,selected:10,shape:null,size:49,sizes:129,slot:null,sortable:8,sorted:128,span:48,spellCheck:null,src:null,srcDoc:2,srcLang:null,srcSet:257,start:16,step:null,style:null,summary:null,tabIndex:16,target:null,title:null,translate:null,type:null,typeMustMatch:8,useMap:null,value:2,volume:48,width:17,wmode:1,wrap:null,autoCapitalize:null,autoCorrect:null,autoSave:null,itemProp:129,itemScope:9,itemType:129,itemID:1,itemRef:129,property:null,results:null,security:1,unselectable:1,xmlLang:1,xmlBase:1},c={xmlbase:"xml:base",xmllang:"xml:lang",classname:"class",htmlfor:"for",httpequiv:"http-equiv",acceptcharset:"accept-charset"},f={};r.all=f;for(a in l)s=o(a),s=c[s]||s,u=l[a],f[s]={name:s,propertyName:a,mustUseAttribute:i(u,1),mustUseProperty:i(u,2),boolean:i(u,8),overloadedBoolean:i(u,64),numeric:i(u,16),positiveNumeric:i(u,48),commaSeparated:i(u,256),spaceSeparated:i(u,128)}},function(e,t,n){"use strict";function r(e){var t=o(String(e||a));return t===a?[]:t.split(u)}function i(e){return o(e.join(s))}var o=n(29);t.parse=r,t.stringify=i;var a="",s=" ",u=/[ \t\n\r\f]+/g},function(e,t,n){"use strict";function r(e){for(var t,n=[],r=String(e||u),i=r.indexOf(a),s=0,l=!1;!l;)-1===i&&(i=r.length,l=!0),t=o(r.slice(s,i)),!t&&l||n.push(t),s=i+1,i=r.indexOf(a,s);return n}function i(e,t){var n=t||{},r=!1===n.padLeft?u:s,i=n.padRight?s:u;return e[e.length-1]===u&&(e=e.concat(u)),o(e.join(i+a+r))}t.parse=r,t.stringify=i;var o=n(29),a=",",s=" ",u=""},function(e,t,n){"use strict";var r=n(217),i=n(218);r(i,{getPolyfill:n(219),implementation:i,shim:n(719)}),e.exports=i},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Array.prototype.slice,a=n(717),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"===typeof window||!h)return f(e);try{return f(e)}catch(e){return!1}},m=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===i.call(e),o=a(e),s=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var d=l&&n;if(s&&e.length>0&&!r.call(e,0))for(var h=0;h<e.length;++h)f.push(String(h));if(o&&e.length>0)for(var m=0;m<e.length;++m)f.push(String(m));else for(var v in e)d&&"prototype"===v||!r.call(e,v)||f.push(String(v));if(u)for(var y=p(e),g=0;g<c.length;++g)y&&"constructor"===c[g]||!r.call(e,c[g])||f.push(c[g]);return f};m.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var e=Object.keys;Object.keys=function(t){return e(a(t)?o.call(t):t)}}}else Object.keys=m;return Object.keys||m},e.exports=m},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,i){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)t.call(i,e[a],a,e);else for(var s in e)n.call(e,s)&&t.call(i,e[s],s,e)}},function(e,t,n){"use strict";var r=n(217),i=n(219);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},function(e,t,n){"use strict";function r(e){if("tr"===e.tagName||"td"===e.tagName||"th"===e.tagName){var t,n;for(t in s)a.call(s,t)&&void 0!==e.properties[t]&&(n=s[t],i(e,n,e.properties[t]),delete e.properties[t])}}function i(e,t,n){var r=(e.properties.style||"").trim();r&&!/;\s*/.test(r)&&(r+=";"),r&&(r+=" ");var i=r+t+": "+n+";";e.properties.style=i}var o=n(62),a=Object.prototype.hasOwnProperty,s={align:"text-align",valign:"vertical-align",height:"height",width:"width"};e.exports=function(e){return o(e,"element",r),e}},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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,[{key:"getNavbarData",value:function(){return u}},{key:"getDisplayConstants",value:function(e){if(s.globalColor)return s;var t=this.getNavbarDataTitleFromLink(e);if(""===t)return s;var n=s.pageSpecificColors[t];return n||s}},{key:"getNavbarDataTitleFromLink",value:function(e){var t="";return u.forEach(function(n){(n.links.indexOf(e)>-1||n.names.indexOf(e.split("/")[1])>-1)&&(t=n.title)}),t}},{key:"getLogo",value:function(){return s.logo}},{key:"getButtonHeight",value:function(){return s.buttonHeight}},{key:"getContentData",value:function(){return a}}]),e}();t.a=o;var a=[{content:[{data:"fdsafdsagda",type:"MARKDOWN"}],pageTitle:"/ContentTest"},{content:[{data:"HOMEPAGE",type:"SPECIAL"}],pageTitle:"/TempMain"}],s={primaryColor:"#420DAB",secondaryColor:"#6308b2",globalColor:!1,pageSpecificColors:{Home:{primaryColor:"#FFFFFF",secondaryColor:"#FFFF00"},Project:{primaryColor:"#FF0000",secondaryColor:"#00FF00"}},logo:"T--Washington--WLogo.png",buttonHeight:"16px"},u=[{title:"Home",names:["Home","UW 2017","UW 2016","UW 2015","UW 2014","UW 2013","UW 2012","UW 2011","UW 2010","UW 2009","UW 2008"],links:["https://2018.igem.org/Team:Washington","https://2017.igem.org/Team:Washington","https://2016.igem.org/Team:Washington","https://2015.igem.org/Team:Washington","https://2014.igem.org/Team:Washington","https://2013.igem.org/Team:Washington","https://2012.igem.org/Team:Washington","https://2011.igem.org/Team:Washington","https://2010.igem.org/Team:Washington","https://2009.igem.org/Team:Washington","https://2008.igem.org/Team:Washington"]},{title:"Project",names:["Description","Design","Experiments","Parts","Protocols","Notebook","Safety","BioBricks","InterLab","ASDFTest","ASDFTestA"],links:["/Description","/Design","/Experiments","/Parts","/Protocols","/Notebook","/Safety","/Parts","/InterLab","/ASDFTest","/ASDFTestA"]},{title:"Modeling",names:["Model"],links:["/Model"]},{title:"Human Practices",names:["Human Practices","Education & Engagement","Entrepreneurship","Collaborations"],links:["/Human_Practices","/Public_Engagement","/Entrepreneurship","/Collaborations"]},{title:"Team",names:["Members","Attributions"],links:["/Members","/Attributions"]}]}]); //# sourceMappingURL=main.8e876a65.js.map