text: !function(n){function t(t){for(var r,u,a=t[0],c=t[1],f=t[2],l=0,h=[];l<a.length;l++)u=a[l],Object.prototype.hasOwnProperty.call(i,u)&&i[u]&&h.push(i[u][0]),i[u]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(n[r]=c[r]);for(s&&s(t);h.length;)h.shift()();return o.push.apply(o,f||[]),e()}function e(){for(var n,t=0;t<o.length;t++){for(var e=o[t],r=!0,a=1;a<e.length;a++){var c=e[a];0!==i[c]&&(r=!1)}r&&(o.splice(t--,1),n=u(u.s=e[0]))}return n}var r={},i={0:0},o=[];function u(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,u),e.l=!0,e.exports}u.m=n,u.c=r,u.d=function(n,t,e){u.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},u.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},u.t=function(n,t){if(1&t&&(n=u(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(u.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)u.d(e,r,function(t){return n[t]}.bind(null,r));return e},u.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return u.d(t,"a",t),t},u.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},u.p="";var a=window.webpackJsonp=window.webpackJsonp||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var f=0;f<a.length;f++)t(a[f]);var s=c;o.push([204,1]),e()}({204:function(n,t,e){e(447),n.exports=e(446)},446:function(n,t,e){},447:function(n,t,e){"use strict";e.r(t);e(18),e(19),e(21),e(22),e(38),e(131),e(31),e(32),e(6),e(71),e(72),e(27),e(57),e(16),e(81),e(135),e(25),e(209),e(136),e(137),e(82),e(10),e(211),e(83),e(17),e(11),e(14),e(84),e(86),e(140),e(143),e(59),e(144),e(145),e(146),e(214),e(39),e(54),e(215),e(149);function r(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function i(n,t,e){return t&&r(n.prototype,t),e&&r(n,e),n}function o(n,t){var e;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(e=function(n,t){if(!n)return;if("string"==typeof n)return u(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(n,t)}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){e=n[Symbol.iterator]()},n:function(){var n=e.next();return a=n.done,n},e:function(n){c=!0,o=n},f:function(){try{a||null==e.return||e.return()}finally{if(c)throw o}}}}function u(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function c(n){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function f(n){return null!=n&&(Array.isArray(n)||ArrayBuffer.isView(n))}function s(n){return null!=n&&"function"==typeof n.Dispose}function l(n,t,e){return n.has(t)?[!0,n.get(t)]:[!1,e]}function h(n,t){for(var e=n.toString(10);e.length<t;)e="0"+e;return e}function d(n){var t=n;return"number"==typeof t.offset?t.offset:1===n.kind?0:-6e4*n.getTimezoneOffset()}var p=function(){var n=function(){function n(){a(this,n)}return i(n,null,[{key:"id",value:function(t){return n.idMap.has(t)||n.idMap.set(t,++n.count),n.idMap.get(t)}}]),n}();return n.idMap=new WeakMap,n.count=0,n}();function v(n){for(var t=0,e=5381,r=n.length;t<r;)e=33*e^n.charCodeAt(t++);return e}function y(n){return 2654435761*n|0}function g(n){return 0===n.length?0:n.reduce((function(n,t){return(n<<5)+n^t}))}function w(n){if(null==n)return 0;switch(c(n)){case"boolean":return n?1:0;case"number":return y(n);case"string":return v(n);default:if(function(n){return null!=n&&"function"==typeof n.GetHashCode}(n))return n.GetHashCode();if(f(n)){for(var t=n.length,e=new Array(t),r=0;r<t;r++)e[r]=w(n[r]);return g(e)}return v(String(n))}}function m(n,t,e){if(null==n)return null==t;if(null==t)return!1;if(n.length!==t.length)return!1;for(var r=0;r<n.length;r++)if(!e(n[r],t[r]))return!1;return!0}function b(n,t){return m(n,t,S)}function S(n,t){return n===t||(null==n?null==t:null!=t&&("object"===c(n)&&(function(n){return null!=n&&"function"==typeof n.Equals}(n)?n.Equals(t):f(n)?f(t)&&b(n,t):n instanceof Date&&(t instanceof Date&&0===E(n,t)))))}function E(n,t){var e,r;return"offset"in n&&"offset"in t?(e=n.getTime(),r=t.getTime()):(e=n.getTime()+d(n),r=t.getTime()+d(t)),e===r?0:e<r?-1:1}function C(n,t){return n===t?0:n<t?-1:1}function k(n,t,e){if(null==n)return null==t?0:1;if(null==t)return-1;if(n.length!==t.length)return n.length<t.length?-1:1;for(var r=0,i=0;r<n.length;r++)if(0!==(i=e(n[r],t[r])))return i;return 0}function A(n,t){return k(n,t,O)}function O(n,t){return n===t?0:null==n?null==t?0:-1:null==t?1:"object"!==c(n)?n<t?-1:1:function(n){return null!=n&&"function"==typeof n.CompareTo}(n)?n.CompareTo(t):f(n)&&f(t)?A(n,t):n instanceof Date&&t instanceof Date?E(n,t):1}function _(n,t,e){return n(t,e)>0?t:e}var T=0,j=1,x=2,M=3,R=4;function I(n,t){return n.replace(/[a-z]?[A-Z]/g,(function(n){return 1===n.length?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase()}))}function D(n,t){switch(t){case j:return n.charAt(0).toLowerCase()+n.slice(1);case x:return I(n,"_");case M:return I(n,"_").toUpperCase();case R:return I(n,"-");case T:default:return n}}function N(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;function e(n){throw new Error("Cannot infer key and value of "+String(n))}var r,i={},u=t,a=o(n);try{for(a.s();!(r=a.n()).done;){var c=r.value,f=T;if(null==c&&e(c),"function"==typeof c.toJSON&&(c=c.toJSON(),f=u),Array.isArray(c))switch(c.length){case 0:e(c);break;case 1:i[D(c[0],f)]=!0;break;case 2:var s=c[1];i[D(c[0],f)]=s;break;default:i[D(c[0],f)]=c.slice(1)}else"string"==typeof c?i[D(c,f)]=!0:e(c)}}catch(n){a.e(n)}finally{a.f()}return i}function P(n,t){if(null!=t){if(t.length>1)return t;var e;switch(n){case 2:e=function(n,e){return t(n)(e)};break;case 3:e=function(n,e,r){return t(n)(e)(r)};break;case 4:e=function(n,e,r,i){return t(n)(e)(r)(i)};break;case 5:e=function(n,e,r,i,o){return t(n)(e)(r)(i)(o)};break;case 6:e=function(n,e,r,i,o,u){return t(n)(e)(r)(i)(o)(u)};break;case 7:e=function(n,e,r,i,o,u,a){return t(n)(e)(r)(i)(o)(u)(a)};break;case 8:e=function(n,e,r,i,o,u,a,c){return t(n)(e)(r)(i)(o)(u)(a)(c)};break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+n)}return e.__CURRIED__=t,e}}function G(n,t){if(null!=t){if("__CURRIED__"in t)return t.__CURRIED__;switch(n){case 2:return function(n){return function(e){return t(n,e)}};case 3:return function(n){return function(e){return function(r){return t(n,e,r)}}};case 4:return function(n){return function(e){return function(r){return function(i){return t(n,e,r,i)}}}};case 5:return function(n){return function(e){return function(r){return function(i){return function(o){return t(n,e,r,i,o)}}}}};case 6:return function(n){return function(e){return function(r){return function(i){return function(o){return function(u){return t(n,e,r,i,o,u)}}}}}};case 7:return function(n){return function(e){return function(r){return function(i){return function(o){return function(u){return function(a){return t(n,e,r,i,o,u,a)}}}}}}};case 8:return function(n){return function(e){return function(r){return function(i){return function(o){return function(u){return function(a){return function(c){return t(n,e,r,i,o,u,a,c)}}}}}}}};default:throw new Error("Currying to more than 8-arity is not supported: "+n)}}}function F(n,t,e){if(null!=t){if("__CURRIED__"in t){t=t.__CURRIED__;for(var r=0;r<e.length;r++)t=t(e[r]);return t}switch(n){case 1:return function(n){return t.apply(void 0,e.concat([n]))};case 2:return function(n){return function(r){return t.apply(void 0,e.concat([n,r]))}};case 3:return function(n){return function(r){return function(i){return t.apply(void 0,e.concat([n,r,i]))}}};case 4:return function(n){return function(r){return function(i){return function(o){return t.apply(void 0,e.concat([n,r,i,o]))}}}};case 5:return function(n){return function(r){return function(i){return function(o){return function(u){return t.apply(void 0,e.concat([n,r,i,o,u]))}}}}};case 6:return function(n){return function(r){return function(i){return function(o){return function(u){return function(a){return t.apply(void 0,e.concat([n,r,i,o,u,a]))}}}}}};case 7:return function(n){return function(r){return function(i){return function(o){return function(u){return function(a){return function(c){return t.apply(void 0,e.concat([n,r,i,o,u,a,c]))}}}}}}};case 8:return function(n){return function(r){return function(i){return function(o){return function(u){return function(a){return function(c){return function(f){return t.apply(void 0,e.concat([n,r,i,o,u,a,c,f]))}}}}}}}};default:throw new Error("Partially applying to more than 8-arity is not supported: "+n)}}}function U(n,t){if(n.has(t))return n.get(t);throw new Error("The given key '".concat(t,"' was not present in the dictionary."))}function H(n){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function L(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&q(n,t)}function q(n,t){return(q=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function V(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,r=z(n);if(t){var i=z(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return W(this,e)}}function W(n,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function z(n){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function B(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(n)))return;var e=[],r=!0,i=!1,o=void 0;try{for(var u,a=n[Symbol.iterator]();!(r=(u=a.next()).done)&&(e.push(u.value),!t||e.length!==t);r=!0);}catch(n){i=!0,o=n}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return e}(n,t)||function(n,t){if(!n)return;if("string"==typeof n)return J(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return J(n,t)}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function $(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Q(n,t,e){return t&&Z(n.prototype,t),e&&Z(n,e),n}function X(n,t){return null!=t&&Object.getPrototypeOf(n).constructor===Object.getPrototypeOf(t).constructor}function Y(n,t){return function(n,t){n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}(n,t||K),n}var K=function(){function n(){$(this,n)}return Q(n,[{key:"toString",value:function(){return"{"+Object.entries(this).map((function(n){var t=B(n,2),e=t[0],r=t[1];return e+" = "+String(r)})).join(";\n ")+"}"}},{key:"GetHashCode",value:function(n){return function(n){if(null==n)return 0;switch(c(n)){case"boolean":return n?1:0;case"number":return y(n);case"string":return v(n);default:return y(p.id(n))}}(null!=n?n:this)}},{key:"Equals",value:function(n,t){return n===(null!=t?t:this)}}]),n}();function nn(n,t){if(n===t)return 0;if(null==t)return-1;for(;null!=n.tail;){if(null==t.tail)return 1;var e=O(n.head,t.head);if(0!==e)return e;n=n.tail,t=t.tail}return null==t.tail?0:-1}var tn=function(){function n(t,e){$(this,n),this.head=t,this.tail=e}return Q(n,[{key:"toString",value:function(){return"["+Array.from(this).join("; ")+"]"}},{key:"toJSON",value:function(){return Array.from(this)}},{key:Symbol.iterator,value:function(){var n=this;return{next:function(){var t=null==n?void 0:n.head,e=null==(null==n?void 0:n.tail);return n=null==n?void 0:n.tail,{done:e,value:t}}}}},{key:"GetHashCode",value:function(){return g(Array.from(this).map(w))}},{key:"Equals",value:function(n){return 0===nn(this,n)}},{key:"CompareTo",value:function(n){return nn(this,n)}}]),n}(),en=function(n){L(e,n);var t=V(e);function e(n,r){var i;$(this,e),(i=t.call(this)).tag=0|n,i.name=r;for(var o=arguments.length,u=new Array(o>2?o-2:0),a=2;a<o;a++)u[a-2]=arguments[a];return i.fields=u,i}return Q(e,[{key:"toString",value:function(){var n=this.fields.length;return 0===n?this.name:1===n?this.name+" "+String(this.fields[0]):this.name+" ("+this.fields.map((function(n){return String(n)})).join(",")+")"}},{key:"toJSON",value:function(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}},{key:"GetHashCode",value:function(){var n=this.fields.map((function(n){return w(n)}));return n.splice(0,0,y(this.tag)),g(n)}},{key:"Equals",value:function(n){return this===n||X(this,n)&&this.tag===n.tag&&b(this.fields,n.fields)}},{key:"CompareTo",value:function(n){return this===n?0:X(this,n)?this.tag===n.tag?A(this.fields,n.fields):this.tag<n.tag?-1:1:-1}}]),e}(K);function rn(n,t){for(var e={},r=null==t?Object.keys(n):t(n),i=0;i<r.length;i++)e[r[i]]=n[r[i]];return e}function on(n,t,e){if(n===t)return!0;if(X(n,t)){for(var r=null==e?Object.keys(n):e(n),i=0;i<r.length;i++)if(!S(n[r[i]],t[r[i]]))return!1;return!0}return!1}function un(n,t,e){if(n===t)return 0;if(X(n,t)){for(var r=null==e?Object.keys(n):e(n),i=0;i<r.length;i++){var o=O(n[r[i]],t[r[i]]);if(0!==o)return o}return 0}return-1}var an=function(n){L(e,n);var t=V(e);function e(){return $(this,e),t.apply(this,arguments)}return Q(e,[{key:"toString",value:function(){return"{"+Object.entries(this).map((function(n){var t=B(n,2),e=t[0],r=t[1];return e+" = "+String(r)})).join(";\n ")+"}"}},{key:"toJSON",value:function(){return rn(this)}},{key:"GetHashCode",value:function(){return g(Object.values(this).map((function(n){return w(n)})))}},{key:"Equals",value:function(n){return on(this,n)}},{key:"CompareTo",value:function(n){return un(this,n)}}]),e}(K);function cn(n){return Object.assign(Object.create(an.prototype),n)}var fn=function(n){L(e,n);var t=V(e);function e(n){var r;return $(this,e),(r=t.call(this)).contents=n,r}return e}(an);Y((function(n){this.stack=Error().stack,this.message=n}),K);Y((function(){}),K),e(182),e(91),e(218),e(219);function sn(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(n)))return;var e=[],r=!0,i=!1,o=void 0;try{for(var u,a=n[Symbol.iterator]();!(r=(u=a.next()).done)&&(e.push(u.value),!t||e.length!==t);r=!0);}catch(n){i=!0,o=n}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return e}(n,t)||ln(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(n,t){if(n){if("string"==typeof n)return hn(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?hn(n,t):void 0}}function hn(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function dn(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function pn(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var vn=function(){function n(t,e,r,i,o,u){pn(this,n),this.fullname=t,this.generics=e,this.construct=r,this.fields=i,this.cases=o,this.enumCases=u}var t,e,r;return t=n,(e=[{key:"toString",value:function(){return function n(t){var e=null==t.generics||mn(t)?[]:t.generics;return e.length>0?t.fullname+"["+e.map((function(t){return n(t)})).join(",")+"]":t.fullname}(this)}},{key:"Equals",value:function(n){return gn(this,n)}},{key:"CompareTo",value:function(n){return wn(this,n)}}])&&dn(t.prototype,e),r&&dn(t,r),n}();function yn(n){return null!=n.generics?n.generics:[]}function gn(n,t){return""===n.fullname?""===t.fullname&&m(bn(n),bn(t),(function(n,t){var e=sn(n,2),r=e[0],i=e[1],o=sn(t,2),u=o[0],a=o[1];return r===u&&gn(i,a)})):n.fullname===t.fullname&&m(yn(n),yn(t),gn)}function wn(n,t){return n.fullname!==t.fullname?n.fullname<t.fullname?-1:1:k(yn(n),yn(t),wn)}new vn("System.Object"),new vn("Microsoft.FSharp.Core.Unit"),new vn("System.Char"),new vn("System.String"),new vn("System.Boolean"),new vn("System.SByte"),new vn("System.Byte"),new vn("System.Int16"),new vn("System.UInt16"),new vn("System.Int32"),new vn("System.UInt32"),new vn("System.Single"),new vn("System.Double"),new vn("System.Decimal");function mn(n){return n.fullname.endsWith("[]")}function bn(n){if(null!=n.fields)return n.fields();throw new Error("".concat(n.fullname," is not an F# record type"))}var Sn;e(40),e(187),e(93),e(221),e(94),e(189),e(190),e(151),e(225),e(226),e(153),e(95),e(96),e(97),e(98),e(99),e(100),e(101),e(102),e(103),e(104),e(105),e(106),e(107),e(108),e(109),e(110),e(111),e(112),e(113),e(114),e(115),e(116),e(117),e(229),e(230),e(154),e(232),e(234),e(236);!function(n){n[n.AllowHexSpecifier=512]="AllowHexSpecifier"}(Sn||(Sn={}));var En=null;try{En=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(n){}function Cn(n,t,e){this.low=0|n,this.high=0|t,this.unsigned=!!e}function kn(n){return!0===(n&&n.__isLong__)}Cn.prototype.GetHashCode=function(){var n=this.unsigned?1:0;return n=((n=(n<<5)+n^this.high)<<5)+n^this.low},Cn.prototype.Equals=function(n){return Xn(this,n)},Cn.prototype.CompareTo=function(n){return tt(this,n)},Cn.prototype.toString=function(n){return Jn(this,n)},Cn.prototype.toJSON=function(){return Jn(this)},Cn.prototype.__isLong__,Object.defineProperty(Cn.prototype,"__isLong__",{value:!0});var An={},On={};function _n(n,t){var e,r,i;return t?(i=0<=(n>>>=0)&&n<256)&&(r=On[n])?r:(e=jn(n,(0|n)<0?-1:0,!0),i&&(On[n]=e),e):(i=-128<=(n|=0)&&n<128)&&(r=An[n])?r:(e=jn(n,n<0?-1:0,!1),i&&(An[n]=e),e)}function Tn(n,t){if(isNaN(n))return t?Fn:Gn;if(t){if(n<0)return Fn;if(n>=Dn)return Vn}else{if(n<=-Nn)return Wn;if(n+1>=Nn)return qn}return n<0?et(Tn(-n,t)):jn(n%In|0,n/In|0,t)}function jn(n,t,e){return new Cn(n,t,e)}var xn=Math.pow;function Mn(n,t,e){if(0===n.length)throw Error("empty string");if("NaN"===n||"Infinity"===n||"+Infinity"===n||"-Infinity"===n)return Gn;if("number"==typeof t?(e=t,t=!1):t=!!t,(e=e||10)<2||36<e)throw RangeError("radix");var r=n.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return et(Mn(n.substring(1),t,e));for(var i=Tn(xn(e,8)),o=Gn,u=0;u<n.length;u+=8){var a=Math.min(8,n.length-u),c=parseInt(n.substring(u,u+a),e);if(a<8)o=rt(ot(o,Tn(xn(e,a))),Tn(c));else o=rt(o=ot(o,i),Tn(c))}return o.unsigned=t,o}function Rn(n,t){return"number"==typeof n?Tn(n,t):"string"==typeof n?Mn(n,t):jn(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}var In=4294967296,Dn=In*In,Nn=Dn/2,Pn=_n(1<<24),Gn=_n(0),Fn=_n(0,!0),Un=_n(1),Hn=_n(1,!0),Ln=_n(-1),qn=jn(-1,2147483647,!1),Vn=jn(-1,-1,!0),Wn=jn(0,-2147483648,!1);function zn(n){return n.unsigned?n.low>>>0:n.low}function Bn(n){return n.unsigned?(n.high>>>0)*In+(n.low>>>0):n.high*In+(n.low>>>0)}function Jn(n,t){if((t=t||10)<2||36<t)throw RangeError("radix");if($n(n))return"0";if(Zn(n)){if(Xn(n,Wn)){var e=Tn(t),r=ut(n,e),i=it(ot(r,e),n);return Jn(r,t)+zn(i).toString(t)}return"-"+Jn(et(n),t)}for(var o=Tn(xn(t,6),n.unsigned),u=n,a="";;){var c=ut(u,o),f=(zn(it(u,ot(c,o)))>>>0).toString(t);if($n(u=c))return f+a;for(;f.length<6;)f="0"+f;a=""+f+a}}function $n(n){return 0===n.high&&0===n.low}function Zn(n){return!n.unsigned&&n.high<0}function Qn(n){return 1==(1&n.low)}function Xn(n,t){return kn(t)||(t=Rn(t)),(n.unsigned===t.unsigned||n.high>>>31!=1||t.high>>>31!=1)&&(n.high===t.high&&n.low===t.low)}function Yn(n,t){return tt(n,t)<0}function Kn(n,t){return tt(n,t)>0}function nt(n,t){return tt(n,t)>=0}function tt(n,t){if(kn(t)||(t=Rn(t)),Xn(n,t))return 0;var e=Zn(n),r=Zn(t);return e&&!r?-1:!e&&r?1:n.unsigned?t.high>>>0>n.high>>>0||t.high===n.high&&t.low>>>0>n.low>>>0?-1:1:Zn(it(n,t))?-1:1}function et(n){return!n.unsigned&&Xn(n,Wn)?Wn:rt(at(n),Un)}function rt(n,t){kn(t)||(t=Rn(t));var e=n.high>>>16,r=65535&n.high,i=n.low>>>16,o=65535&n.low,u=t.high>>>16,a=65535&t.high,c=t.low>>>16,f=0,s=0,l=0,h=0;return l+=(h+=o+(65535&t.low))>>>16,s+=(l+=i+c)>>>16,f+=(s+=r+a)>>>16,f+=e+u,jn((l&=65535)<<16|(h&=65535),(f&=65535)<<16|(s&=65535),n.unsigned)}function it(n,t){return kn(t)||(t=Rn(t)),rt(n,et(t))}function ot(n,t){if($n(n))return n.unsigned?Fn:Gn;if(kn(t)||(t=Rn(t)),En)return jn(En.mul(n.low,n.high,t.low,t.high),En.get_high(),n.unsigned);if($n(t))return n.unsigned?Fn:Gn;if(Xn(n,Wn))return Qn(t)?Wn:Gn;if(Xn(t,Wn))return Qn(n)?Wn:Gn;if(Zn(n))return Zn(t)?ot(et(n),et(t)):et(ot(et(n),t));if(Zn(t))return et(ot(n,et(t)));if(Yn(n,Pn)&&Yn(t,Pn))return Tn(Bn(n)*Bn(t),n.unsigned);var e=n.high>>>16,r=65535&n.high,i=n.low>>>16,o=65535&n.low,u=t.high>>>16,a=65535&t.high,c=t.low>>>16,f=65535&t.low,s=0,l=0,h=0,d=0;return h+=(d+=o*f)>>>16,l+=(h+=i*f)>>>16,h&=65535,l+=(h+=o*c)>>>16,s+=(l+=r*f)>>>16,l&=65535,s+=(l+=i*c)>>>16,l&=65535,s+=(l+=o*a)>>>16,s+=e*f+r*c+i*a+o*u,jn((h&=65535)<<16|(d&=65535),(s&=65535)<<16|(l&=65535),n.unsigned)}function ut(n,t){if(kn(t)||(t=Rn(t)),$n(t))throw Error("division by zero");var e,r,i;if(En)return n.unsigned||-2147483648!==n.high||-1!==t.low||-1!==t.high?jn((n.unsigned?En.div_u:En.div_s)(n.low,n.high,t.low,t.high),En.get_high(),n.unsigned):n;if($n(n))return n.unsigned?Fn:Gn;if(n.unsigned){if(t.unsigned||(t=function(n){return n.unsigned?n:jn(n.low,n.high,!0)}(t)),Kn(t,n))return Fn;if(Kn(t,st(n,1)))return Hn;i=Fn}else{if(Xn(n,Wn))return Xn(t,Un)||Xn(t,Ln)?Wn:Xn(t,Wn)?Un:Xn(e=ct(ut(ft(n,1),t),1),Gn)?Zn(t)?Un:Ln:i=rt(e,ut(r=it(n,ot(t,e)),t));if(Xn(t,Wn))return n.unsigned?Fn:Gn;if(Zn(n))return Zn(t)?ut(et(n),et(t)):et(ut(et(n),t));if(Zn(t))return et(ut(n,et(t)));i=Gn}for(r=n;nt(r,t);){e=Math.max(1,Math.floor(Bn(r)/Bn(t)));for(var o=Math.ceil(Math.log(e)/Math.LN2),u=o<=48?1:xn(2,o-48),a=Tn(e),c=ot(a,t);Zn(c)||Kn(c,r);)c=ot(a=Tn(e-=u,n.unsigned),t);$n(a)&&(a=Un),i=rt(i,a),r=it(r,c)}return i}function at(n){return jn(~n.low,~n.high,n.unsigned)}function ct(n,t){return kn(t)&&(t=zn(t)),0==(t&=63)?n:t<32?jn(n.low<<t,n.high<<t|n.low>>>32-t,n.unsigned):jn(0,n.low<<t-32,n.unsigned)}function ft(n,t){return kn(t)&&(t=zn(t)),0==(t&=63)?n:t<32?jn(n.low>>>t|n.high<<32-t,n.high>>t,n.unsigned):jn(n.high>>t-32,n.high>=0?0:-1,n.unsigned)}function st(n,t){if(kn(t)&&(t=zn(t)),0===(t&=63))return n;var e=n.high;return t<32?jn(n.low>>>t|e<<32-t,e>>>t,n.unsigned):jn(32===t?e:e>>>t-32,0,n.unsigned)}var lt=Cn,ht=ot,dt=tt,pt=function(n,t,e){return e?function(n,t){return new Cn(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)}(n,t):function(n,t){return new Cn(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)}(n,t)},vt=function(n,t){return t?function(n){var t=n.high,e=n.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(n):function(n){var t=n.high,e=n.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,e>>>24,e>>>16&255,e>>>8&255,255&e]}(n)},yt=Jn;function gt(n){var t=n<0,e=(n=Math.abs(n))%36e5/6e4;return(t?"-":"+")+h(~~(n/36e5),2)+":"+h(e,2)}function wt(n,t){var e=n.toISOString();return"first"===t?e.substring(0,e.indexOf("T")):e.substring(e.indexOf("T")+1,e.length-1)}function mt(n,t,e){return t.replace(/(\w)\1*/g,(function(t){var r=Number.NaN;switch(t.substring(0,1)){case"y":var i=e?n.getUTCFullYear():n.getFullYear();r=t.length<4?i%100:i;break;case"M":r=(e?n.getUTCMonth():n.getMonth())+1;break;case"d":r=e?n.getUTCDate():n.getDate();break;case"H":r=e?n.getUTCHours():n.getHours();break;case"h":var o=e?n.getUTCHours():n.getHours();r=o>12?o%12:o;break;case"m":r=e?n.getUTCMinutes():n.getMinutes();break;case"s":r=e?n.getUTCSeconds():n.getSeconds();break;case"f":r=e?n.getUTCMilliseconds():n.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function bt(n,t){var e,r,i,o,u,a,c=new Date(n.getTime()+(null!==(e=n.offset)&&void 0!==e?e:0));if("string"!=typeof t)return c.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+gt(null!==(r=n.offset)&&void 0!==r?r:0);if(1!==t.length)return mt(c,t,!0);switch(t){case"D":case"d":return wt(c,"first");case"T":case"t":return wt(c,"second");case"O":case"o":return o=c,u=null!==(i=n.offset)&&void 0!==i?i:0,(a=o.toISOString()).substring(0,a.length-1)+gt(u);default:throw new Error("Unrecognized Date print format")}}function St(n,t){var e=1===n.kind;if("string"!=typeof t)return e?n.toUTCString():n.toLocaleString();if(1!==t.length)return mt(n,t,e);switch(t){case"D":case"d":return e?wt(n,"first"):n.toLocaleDateString();case"T":case"t":return e?wt(n,"second"):n.toLocaleTimeString();case"O":case"o":return function(n,t){if(t)return n.toISOString();var e=null==n.kind||2===n.kind;return h(n.getFullYear(),4)+"-"+h(n.getMonth()+1,2)+"-"+h(n.getDate(),2)+"T"+h(n.getHours(),2)+":"+h(n.getMinutes(),2)+":"+h(n.getSeconds(),2)+"."+h(n.getMilliseconds(),3)+(e?gt(-6e4*n.getTimezoneOffset()):"")}(n,e);default:throw new Error("Unrecognized Date print format")}}function Et(n,t,e){return null!=n.offset?bt(n,t):St(n,t)}e(118),e(196),e(239),e(119);var Ct={GetHashCode:function(){return g([this.s,this.e].concat(this.c))},Equals:function(n){return!this.cmp(n)},CompareTo:function(n){return this.cmp(n)}},kt="[big.js] ",At=kt+"Invalid ",Ot=At+"decimal places",_t=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Tt(n,t){var e,r,i;if(0===t&&1/t<0)t="-0";else if(!_t.test(t+=""))throw Error(At+"number");for(n.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(e=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(e<0&&(e=r),e+=+t.slice(r+1),t=t.substring(0,r)):e<0&&(e=t.length),i=t.length,r=0;r<e&&r<i&&"0"==t.charAt(r);)++r;if(r==i)n.c=[n.e=0];else for(n.e=e-r-1,n.c=[],e=0;r<i;)n.c[e++]=+t.charAt(r++);return n=jt(n,Mt.DP,Mt.RM)}function jt(n,t,e,r){var i=n.c,o=n.e+t+1;if(o<i.length){if(1===e)r=i[o]>=5;else if(2===e)r=i[o]>5||5==i[o]&&(r||o<0||void 0!==i[o+1]||1&i[o-1]);else if(3===e)r=r||!!i[0];else if(r=!1,0!==e)throw Error("[big.js] Invalid rounding mode");if(o<1)i.length=1,r?(n.e=-t,i[0]=1):i[0]=n.e=0;else{if(i.length=o--,r)for(;++i[o]>9;)i[o]=0,o--||(++n.e,i.unshift(1));for(o=i.length;!i[--o];)i.pop()}}else if(e<0||e>3||e!==~~e)throw Error("[big.js] Invalid rounding mode");return n}function xt(n,t,e,r){var i,o,u=n.constructor,a=!n.c[0];if(void 0!==e){if(e!==~~e||e<(3==t)||e>1e6)throw Error(3==t?At+"precision":Ot);for(e=r-(n=new u(n)).e,n.c.length>++r&&jt(n,e,u.RM),2==t&&(r=n.e+e+1);n.c.length<r;)n.c.push(0)}if(i=n.e,e=(o=n.c.join("")).length,2!=t&&(1==t||3==t&&r<=i||i<=u.NE||i>=u.PE))o=o.charAt(0)+(e>1?"."+o.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)o="0"+o;o="0."+o}else if(i>0)if(++i>e)for(i-=e;i--;)o+="0";else i<e&&(o=o.slice(0,i)+"."+o.slice(i));else e>1&&(o=o.charAt(0)+"."+o.slice(1));return n.s<0&&(!a||4==t)?"-"+o:o}Ct.abs=function(){var n=new this.constructor(this);return n.s=1,n},Ct.cmp=function(n){var t,e=this.constructor,r=new e(this),i=(n=new e(n),r.c),o=n.c,u=r.s,a=n.s,c=r.e,f=n.e;if(!i[0]||!o[0])return i[0]?u:o[0]?-a:0;if(u!=a)return u;if(t=u<0,c!=f)return c>f^t?1:-1;for(a=Math.max(i.length,o.length),u=0;u<a;u++)if((c=u<i.length?i[u]:0)!=(f=u<o.length?o[u]:0))return c>f^t?1:-1;return 0},Ct.div=function(n){var t=this.constructor,e=new t(this),r=(n=new t(n),e.c),i=n.c,o=e.s==n.s?1:-1,u=t.DP;if(u!==~~u||u<0||u>1e6)throw Error(Ot);if(!i[0])throw Error("[big.js] Division by zero");if(!r[0])return new t(0*o);var a,c,f,s,l,h=i.slice(),d=a=i.length,p=r.length,v=r.slice(0,a),y=v.length,g=n,w=g.c=[],m=0,b=u+(g.e=e.e-n.e)+1;for(g.s=o,o=b<0?0:b,h.unshift(0);y++<a;)v.push(0);do{for(f=0;f<10;f++){if(a!=(y=v.length))s=a>y?1:-1;else for(l=-1,s=0;++l<a;)if(i[l]!=v[l]){s=i[l]>v[l]?1:-1;break}if(!(s<0))break;for(c=y==a?i:h;y;){if(v[--y]<c[y]){for(l=y;l&&!v[--l];)v[l]=9;--v[l],v[y]+=10}v[y]-=c[y]}for(;!v[0];)v.shift()}w[m++]=s?f:++f,v[0]&&s?v[y]=r[d]||0:v=[r[d]]}while((d++<p||void 0!==v[0])&&o--);return w[0]||1==m||(w.shift(),g.e--),m>b&&jt(g,u,t.RM,void 0!==v[0]),g},Ct.eq=function(n){return!this.cmp(n)},Ct.gt=function(n){return this.cmp(n)>0},Ct.gte=function(n){return this.cmp(n)>-1},Ct.lt=function(n){return this.cmp(n)<0},Ct.lte=function(n){return this.cmp(n)<1},Ct.minus=Ct.sub=function(n){var t,e,r,i,o=this.constructor,u=new o(this),a=(n=new o(n),u.s),c=n.s;if(a!=c)return n.s=-c,u.plus(n);var f=u.c.slice(),s=u.e,l=n.c,h=n.e;if(!f[0]||!l[0])return l[0]?(n.s=-c,n):new o(f[0]?u:0);if(a=s-h){for((i=a<0)?(a=-a,r=f):(h=s,r=l),r.reverse(),c=a;c--;)r.push(0);r.reverse()}else for(e=((i=f.length<l.length)?f:l).length,a=c=0;c<e;c++)if(f[c]!=l[c]){i=f[c]<l[c];break}if(i&&(r=f,f=l,l=r,n.s=-n.s),(c=(e=l.length)-(t=f.length))>0)for(;c--;)f[t++]=0;for(c=t;e>a;){if(f[--e]<l[e]){for(t=e;t&&!f[--t];)f[t]=9;--f[t],f[e]+=10}f[e]-=l[e]}for(;0===f[--c];)f.pop();for(;0===f[0];)f.shift(),--h;return f[0]||(n.s=1,f=[h=0]),n.c=f,n.e=h,n},Ct.mod=function(n){var t,e=this.constructor,r=new e(this),i=(n=new e(n),r.s),o=n.s;if(!n.c[0])throw Error("[big.js] Division by zero");return r.s=n.s=1,t=1==n.cmp(r),r.s=i,n.s=o,t?new e(r):(i=e.DP,o=e.RM,e.DP=e.RM=0,r=r.div(n),e.DP=i,e.RM=o,this.minus(r.times(n)))},Ct.plus=Ct.add=function(n){var t,e=this.constructor,r=new e(this),i=(n=new e(n),r.s),o=n.s;if(i!=o)return n.s=-o,r.minus(n);var u=r.e,a=r.c,c=n.e,f=n.c;if(!a[0]||!f[0])return f[0]?n:new e(a[0]?r:0*i);if(a=a.slice(),i=u-c){for(i>0?(c=u,t=f):(i=-i,t=a),t.reverse();i--;)t.push(0);t.reverse()}for(a.length-f.length<0&&(t=f,f=a,a=t),i=f.length,o=0;i;a[i]%=10)o=(a[--i]=a[i]+f[i]+o)/10|0;for(o&&(a.unshift(o),++c),i=a.length;0===a[--i];)a.pop();return n.c=a,n.e=c,n},Ct.pow=function(n){var t=this.constructor,e=new t(this),r=new t(1),i=new t(1),o=n<0;if(n!==~~n||n<-1e6||n>1e6)throw Error(At+"exponent");for(o&&(n=-n);1&n&&(r=r.times(e)),n>>=1;)e=e.times(e);return o?i.div(r):r},Ct.round=function(n,t){var e=this.constructor;if(void 0===n)n=0;else if(n!==~~n||n<-1e6||n>1e6)throw Error(Ot);return jt(new e(this),n,void 0===t?e.RM:t)},Ct.sqrt=function(){var n,t,e,r=this.constructor,i=new r(this),o=i.s,u=i.e,a=new r(.5);if(!i.c[0])return new r(i);if(o<0)throw Error(kt+"No square root");0===(o=Math.sqrt(i+""))||o===1/0?((t=i.c.join("")).length+u&1||(t+="0"),u=((u+1)/2|0)-(u<0||1&u),n=new r(((o=Math.sqrt(t))==1/0?"1e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+u)):n=new r(o),u=n.e+(r.DP+=4);do{e=n,n=a.times(e.plus(i.div(e)))}while(e.c.slice(0,u).join("")!==n.c.slice(0,u).join(""));return jt(n,r.DP-=4,r.RM)},Ct.times=Ct.mul=function(n){var t,e=this.constructor,r=new e(this),i=(n=new e(n),r.c),o=n.c,u=i.length,a=o.length,c=r.e,f=n.e;if(n.s=r.s==n.s?1:-1,!i[0]||!o[0])return new e(0*n.s);for(n.e=c+f,u<a&&(t=i,i=o,o=t,f=u,u=a,a=f),t=new Array(f=u+a);f--;)t[f]=0;for(c=a;c--;){for(a=0,f=u+c;f>c;)a=t[f]+o[c]*i[f-c-1]+a,t[f--]=a%10,a=a/10|0;t[f]=(t[f]+a)%10}for(a?++n.e:t.shift(),c=t.length;!t[--c];)t.pop();return n.c=t,n},Ct.toExponential=function(n){return xt(this,1,n,n)},Ct.toFixed=function(n){return xt(this,2,n,this.e+n)},Ct.toPrecision=function(n){return xt(this,3,n,n-1)},Ct.toString=function(){return xt(this)},Ct.valueOf=Ct.toJSON=function(){return xt(this,4)};var Mt=function n(){function t(e){var r=this;if(!(r instanceof t))return void 0===e?n():new t(e);e instanceof t?(r.s=e.s,r.e=e.e,r.c=e.c.slice(),function(n){if((n=jt(n,28,0)).c.length>1&&!n.c[0]){var t=n.c.findIndex((function(n){return n}));n.c=n.c.slice(t),n.e=n.e-t}}(r)):Tt(r,e),r.constructor=t}return t.prototype=Ct,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.version="5.2.2",t}(),Rt=Mt;var It=Rt;new Rt(0),new Rt(1),new Rt(-1),new Rt("79228162514264337593543950335"),new Rt("-79228162514264337593543950335");function Dt(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Nt(n){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var Pt=/(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w)/,Gt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ft(n){return"number"==typeof n||n instanceof lt||n instanceof It}function Ut(n,t){return n instanceof lt?dt(n,t)<0:n instanceof It?n.cmp(t)<0:n<t}function Ht(n,t){return n instanceof lt?ht(n,t):n instanceof It?n.mul(t):n*t}function Lt(n,t){return n instanceof lt?String(n)+(0).toFixed(t).substr(1):n.toFixed(t)}function qt(n,t){return n instanceof lt?String(n)+(0).toPrecision(t).substr(1):n.toPrecision(t)}function Vt(n,t){return n instanceof lt?String(n)+(0).toExponential(t).substr(1):n.toExponential(t)}function Wt(n){return n instanceof lt?yt(n.unsigned?n:pt(vt(n),!0),16):(Number(n)>>>0).toString(16)}function zt(n){return{input:n,cont:(t=n,function(n){return Pt.test(t)?function n(t,e){return function(){for(var r=t,i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];for(var a=0,c=o;a<c.length;a++){var f=c[a];r=Jt(r,f)}return Pt.test(r)?n(r,e):e(r.replace(/%%/g,"%"))}}(t,n):n(t)})};var t}function Bt(n){return n.cont((function(n){return n}))}function Jt(n,t){return n.replace(Pt,(function(n,e,r,i,o,u){var a="";if(Ft(t))switch("x"!==u.toLowerCase()&&(Ut(t,0)?(t=Ht(t,-1),a="-"):r.indexOf(" ")>=0?a=" ":r.indexOf("+")>=0&&(a="+")),o=null==o?null:parseInt(o,10),u){case"f":case"F":t=Lt(t,o=null!=o?o:6);break;case"g":case"G":t=null!=o?qt(t,o):qt(t);break;case"e":case"E":t=null!=o?Vt(t,o):Vt(t);break;case"x":t=Wt(t);break;case"X":t=Wt(t).toUpperCase();break;default:t=String(t)}if(i=parseInt(i,10),isNaN(i))t=a+t;else{var c=r.indexOf("0")>=0,f=r.indexOf("-")>=0,s=f||!c?" ":"0";t="0"===s?a+(t=Qt(t,i-a.length,s,f)):Qt(a+t,i,s,f)}return(e+t).replace(/%/g,"%%")}))}function $t(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return"object"===Nt(n)&&e.length>0&&(n=e[0],e.shift()),n.replace(Gt,(function(n,t,r,i,o,u){var a=e[t];if(Ft(a))switch(o=null==o?null:parseInt(o,10),i){case"f":case"F":a=Lt(a,o=null!=o?o:2);break;case"g":case"G":a=null!=o?qt(a,o):qt(a);break;case"e":case"E":a=null!=o?Vt(a,o):Vt(a);break;case"p":case"P":o=null!=o?o:2,a=Lt(Ht(a,100),o)+" %";break;case"d":case"D":a=null!=o?Qt(String(a),o,"0"):String(a);break;case"x":case"X":a=null!=o?Qt(Wt(a),o,"0"):Wt(a),"X"===i&&(a=a.toUpperCase());break;default:if(u){var c="";a=u.replace(/(0+)(\.0+)?/,(function(n,t,e){return Ut(a,0)&&(a=Ht(a,-1),c="-"),Qt(a=Lt(a,null!=e?e.length-1:0),(t||"").length-c.length+(null!=e?e.length:0),"0")})),a=c+a}}else a instanceof Date&&(a=Et(a,u||i));return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=Qt(String(a),Math.abs(r)," ",r<0)),a}))}function Zt(n,t){return Array.isArray(t)?t.join(n):Array.from(t).join(n)}function Qt(n,t,e,r){e=e||" ",t-=n.length;for(var i=0;i<t;i++)n=r?n+e:e+n;return n}function Xt(n,t,e){if(t+(e||0)>n.length)throw new Error("Invalid startIndex and/or length");return null!=e?n.substr(t,e):n.substr(t)}function Yt(n){return(Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function Kt(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&ne(n,t)}function ne(n,t){return(ne=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function te(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,r=re(n);if(t){var i=re(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return ee(this,e)}}function ee(n,t){return!t||"object"!==Yt(t)&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function re(n){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function ie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var ue=function(){function n(t){ie(this,n),this.value=t}var t,e,r;return t=n,(e=[{key:"toString",value:function(){return String(this.value)}},{key:"toJSON",value:function(){return this.value}},{key:"GetHashCode",value:function(){return w(this.value)}},{key:"Equals",value:function(t){return null!=t&&S(this.value,t instanceof n?t.value:t)}},{key:"CompareTo",value:function(t){return null==t?1:O(this.value,t instanceof n?t.value:t)}}])&&oe(t.prototype,e),r&&oe(t,r),n}();function ae(n){return null==n||n instanceof ue?new ue(n):n}function ce(n){if(null==n)throw new Error("Option has no value");return n instanceof ue?n.value:n}function fe(n){return null==n?[]:[ce(n)]}function se(n,t){return null!=n?ce(n):t}var le=function(n){Kt(e,n);var t=te(e);function e(){return ie(this,e),t.apply(this,arguments)}return e}(en);e(197),e(240);function he(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function de(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var pe=function(){function n(t){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.iter=t}var t,e,r;return t=n,(e=[{key:"MoveNext",value:function(){var n=this.iter.next();return this.current=n.value,!n.done}},{key:"Reset",value:function(){throw new Error("JS iterators cannot be reset")}},{key:"Dispose",value:function(){}},{key:"Current",get:function(){return this.current}}])&&de(t.prototype,e),r&&de(t,r),n}();function ve(n){return new pe(n[Symbol.iterator]())}function ye(n){return{next:function(){return n.MoveNext()?{done:!1,value:n.Current}:{done:!0,value:void 0}}}}function ge(n){var t,e=(he(t={},Symbol.iterator,n),he(t,"toString",(function(){return"seq ["+Array.from(e).join("; ")+"]"})),t);return e}function we(n,t){return Se((function(){var e=!1,r=[n[Symbol.iterator](),void 0];return xe((function(){var n,i,o;if(!e){if(null!=(o=null===(n=r[0])||void 0===n?void 0:n.next())&&!o.done)return[o.value,r];e=!0,r=[void 0,t[Symbol.iterator]()]}return null==(o=null===(i=r[1])||void 0===i?void 0:i.next())||o.done?void 0:[o.value,r]}),r)}))}function me(n){return Se((function(){var t,e=n[Symbol.iterator]();return xe((function(n){for(var r=!1;!r;)if(null==n){var i=e.next();i.done?r=!0:n=i.value[Symbol.iterator]()}else{var o=n.next();o.done?n=void 0:(t=o.value,r=!0)}return null!=n?[t,n]:void 0}),void 0)}))}function be(n,t){return me(Oe(n,t))}function Se(n){return ge((function(){return n()[Symbol.iterator]()}))}function Ee(n){return[n]}function Ce(n,t,e){if(Array.isArray(e)||ArrayBuffer.isView(e))return e.reduce(n,t);for(var r,i=0,o=e[Symbol.iterator]();!(r=o.next()).done;i++)t=n(t,r.value,i);return t}function ke(n,t){Ce((function(t,e){n(e)}),void 0,t)}function Ae(n,t){Ce((function(t,e,r){n(null!=r?r:0,e)}),void 0,t)}function Oe(n,t){return Se((function(){return xe((function(t){var e=t.next();return e.done?void 0:[n(e.value),t]}),t[Symbol.iterator]())}))}function _e(n,t){return ge((function(){for(var e=t[Symbol.iterator](),r=1;r<=n;r++)if(e.next().done)throw new Error("Seq has not enough elements");return e}))}function Te(n,t,e){return Ce((function(t,r){return e.Add(t,n(r))}),e.GetZero(),t)}function je(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Se((function(){var r=t[Symbol.iterator]();return xe((function(t){if(t<n){var i=r.next();if(!i.done)return[i.value,t+1];if(!e)throw new Error("Seq has not enough elements")}}),0)}))}function xe(n,t){return ge((function(){var e=t;return{next:function(){var t=n(e);if(null!=t){var r=ce(t);if(null!=r)return e=r[1],{done:!1,value:r[0]}}return{done:!0,value:void 0}}}}))}e(241),e(242),e(243),e(244),e(120);var Me=Y((function(n,t){var e=new fn(null);this.comparer=t,e.contents=this,this.hashMap=new Map([]),this["init@20-1"]=1,ke((function(n){Pe(e.contents,n[0],n[1])}),n)}));function Re(n,t){var e=0|n.comparer.GetHashCode(t),r=l(n.hashMap,e,null);return r[0]?[!0,e,r[1].findIndex((function(e){return n.comparer.Equals(t,e[0])}))]:[!1,e,-1]}function Ie(n,t){var e=Re(n,t);switch(e[0]&&e[2]>-1?0:1){case 0:return U(n.hashMap,e[1])[e[2]];case 1:return}}function De(n){n.hashMap.clear()}function Ne(n){return 0|Te((function(n){return n.length}),n.hashMap.values(),{GetZero:function(){return 0},Add:function(n,t){return n+t}})}function Pe(n,t,e){var r=Re(n,t);switch(r[0]&&r[2]>-1?0:1){case 0:var i=$t("An item with the same key has already been added. Key: {0}",t);throw new Error(i);case 1:if(r[0])U(n.hashMap,r[1]).push([t,e]);else n.hashMap.set(r[1],[[t,e]])}}function Ge(n,t){var e=Re(n,t);switch(e[0]&&e[2]>-1?0:1){case 0:return U(n.hashMap,e[1]).splice(e[2],1),!0;case 1:return!1}}Me.prototype[Symbol.iterator]=function(){var n=this;return ye(ve(Se((function(){return be((function(n){return Oe((function(n){return n}),n)}),n.hashMap.values())}))))},Me.prototype.Add=function(n){Pe(this,n[0],n[1])},Me.prototype.Clear=function(){De(this)},Me.prototype.Contains=function(n){var t=Ie(this,n[0]);switch(null!=t&&S(t[1],n[1])?0:1){case 0:return!0;case 1:return!1}},Me.prototype.CopyTo=function(n,t){Ae((function(e,r){n[t+e]=r}),this)},Object.defineProperty(Me.prototype,"Count",{get:function(){return 0|Ne(this)}}),Object.defineProperty(Me.prototype,"IsReadOnly",{get:function(){return!1}}),Me.prototype.Remove=function(n){var t=Ie(this,n[0]);if(null!=t){if(S(t[1],n[1]))Ge(this,n[0]);return!0}return!1},Object.defineProperty(Me.prototype,"size",{get:function(){return 0|Ne(this)}}),Me.prototype.clear=function(){De(this)},Me.prototype.delete=function(n){return Ge(this,n)},Me.prototype.entries=function(){return Oe((function(n){return n}),this)},Me.prototype.get=function(n){return function(n,t){var e=Ie(n,t);if(null!=e)return e[1];throw new Error("The item was not found in collection")}(this,n)},Me.prototype.has=function(n){return function(n,t){var e=Re(n,t);switch(e[0]&&e[2]>-1?0:1){case 0:return!0;case 1:return!1}}(this,n)},Me.prototype.keys=function(){return Oe((function(n){return n[0]}),this)},Me.prototype.set=function(n,t){return function(n,t,e){var r=Re(n,t);switch(r[0]&&r[2]>-1?0:1){case 0:U(n.hashMap,r[1])[r[2]]=[t,e];break;case 1:if(r[0])U(n.hashMap,r[1]).push([t,e]);else n.hashMap.set(r[1],[[t,e]])}}(this,n,t),this},Me.prototype.values=function(){return Oe((function(n){return n[1]}),this)};var Fe=Y((function(n,t){this.tag=0|n,this.name=t;for(var e=arguments.length,r=new Array(e>2?e-2:0),i=2;i<e;i++)r[i-2]=arguments[i];this.fields=r}),en);function Ue(n){return function n(t,e){n:for(;;){var r=t,i=e;switch(i.tag){case 1:return r+1|0;case 2:t=n(r+1,i.fields[2]),e=i.fields[3];continue n;default:return 0|r}break}}(0,n)}var He=Y((function(n,t){this.stack=n,this.started=t}),an);function Le(n){for(;;){var t=n;if(null==t.tail)return new tn;if(1===t.head.tag)return t;2!==t.head.tag?n=t.tail:n=new tn(t.head.fields[2],new tn(new Fe(1,"MapOne",t.head.fields[0],t.head.fields[1]),new tn(t.head.fields[3],t.tail)))}}function qe(n){return new He(Le(new tn(n,new tn)),!1)}function Ve(n){if(n.started){var t=n.stack;if(null==t.tail)return function(){throw new Error("enumeration already finished")}();if(1===t.head.tag)return[t.head.fields[0],t.head.fields[1]];throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}var We=Y((function(n){this.s=n,this.i=qe(this.s)}));function ze(n){return function(n){return this instanceof We?We.call(this,n):new We(n)}(n)}function Be(n){return xe((function(n){return n.MoveNext()?[n.Current,n]:void 0}),ze(n))}Object.defineProperty(We.prototype,"Current",{get:function(){return Ve(this.i)}}),We.prototype.MoveNext=function(){return function(n){if(n.started){var t=n.stack;if(null==t.tail)return!1;if(1===t.head.tag)return n.stack=Le(t.tail),!(null==n.stack.tail);throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return n.started=!0,!(null==n.stack.tail)}(this.i)},We.prototype.Reset=function(){this.i=qe(this.s)},We.prototype.Dispose=function(){};var Je=Y((function(n,t){this.comparer=n,this.tree=t}));function $e(n){return n.tree}function Ze(n,t){return function(n,t,e){n:for(;;){var r=n,i=t,o=e;switch(o.tag){case 1:if(0===(0|r.Compare(i,o.fields[0])))return o.fields[1];throw new Error("key not found");case 2:var u=0|r.Compare(i,o.fields[0]);if(u<0){n=r,t=i,e=o.fields[2];continue n}if(0===u)return o.fields[1];n=r,t=i,e=o.fields[3];continue n;default:throw new Error("key not found")}break}}(n.comparer,t,n.tree)}function Qe(n){return Ue(n.tree)}function Xe(n,t){return function(n,t,e){n:for(;;){var r=n,i=t,o=e;switch(o.tag){case 1:return 0===r.Compare(i,o.fields[0]);case 2:var u=0|r.Compare(i,o.fields[0]);if(u<0){n=r,t=i,e=o.fields[2];continue n}if(0===u)return!0;n=r,t=i,e=o.fields[3];continue n;default:return!1}break}}(n.comparer,t,n.tree)}Je.prototype.toString=function(){return"map ["+Zt("; ",Oe((function(n){return $t("({0}, {1})",n[0],n[1])}),this))+"]"},Je.prototype.GetHashCode=function(){for(var n=function(n,t){return(n<<1)+t+631},t=0,e=ze($e(this));e.MoveNext();){var r=e.Current;t=n(t,w(r[0])),t=n(t,w(r[1]))}return 0|Math.abs(t)},Je.prototype.Equals=function(n){return 0===this.CompareTo(n)},Je.prototype[Symbol.iterator]=function(){return ye(ze(this.tree))},Je.prototype.CompareTo=function(n){var t=0,e=!1,r=ze($e(this));try{var i=ze($e(n));try{for(;!e&&0===t;){var o=[r.MoveNext(),i.MoveNext()];if(o[0])if(o[1]){var u=r.Current,a=i.Current,c=0|this.comparer.Compare(u[0],a[0]);t=0!==c?c:O(u[1],a[1])}else t=1;else o[1]?t=-1:e=!0}return 0|t}finally{s(i)&&i.Dispose()}}finally{s(r)&&r.Dispose()}},Object.defineProperty(Je.prototype,"size",{get:function(){return 0|Qe(this)}}),Je.prototype.clear=function(){throw new Error("Map cannot be mutated")},Je.prototype.delete=function(n){throw new Error("Map cannot be mutated")},Je.prototype.entries=function(){return Be($e(this))},Je.prototype.get=function(n){return Ze(this,n)},Je.prototype.has=function(n){return Xe(this,n)},Je.prototype.keys=function(){return Oe((function(n){return n[0]}),Be($e(this)))},Je.prototype.set=function(n,t){throw new Error("Map cannot be mutated")},Je.prototype.values=function(){return Oe((function(n){return n[1]}),Be($e(this)))};var Ye=Y((function(n,t){var e=new fn(null);this.comparer=t,e.contents=this,this.hashMap=new Map([]),this["init@21-2"]=1,ke((function(n){er(e.contents,n)}),n)}));function Ke(n,t){var e=0|n.comparer.GetHashCode(t),r=l(n.hashMap,e,null);return r[0]?[!0,e,r[1].findIndex((function(e){return n.comparer.Equals(t,e)}))]:[!1,e,-1]}function nr(n){n.hashMap.clear()}function tr(n){return 0|Te((function(n){return n.length}),n.hashMap.values(),{GetZero:function(){return 0},Add:function(n,t){return n+t}})}function er(n,t){var e=Ke(n,t);switch(e[0]&&e[2]>-1?0:1){case 0:return!1;case 1:if(e[0]){U(n.hashMap,e[1]).push(t);return!0}return n.hashMap.set(e[1],[t]),!0}}function rr(n,t){var e=Ke(n,t);switch(e[0]&&e[2]>-1?0:1){case 0:return!0;case 1:return!1}}function ir(n,t){var e=Ke(n,t);switch(e[0]&&e[2]>-1?0:1){case 0:return U(n.hashMap,e[1]).splice(e[2],1),!0;case 1:return!1}}Ye.prototype[Symbol.iterator]=function(){var n=this;return ye(ve(Se((function(){return be((function(n){return Oe((function(n){return n}),n)}),n.hashMap.values())}))))},Ye.prototype.Add=function(n){er(this,n)},Ye.prototype.Clear=function(){nr(this)},Ye.prototype.Contains=function(n){return rr(this,n)},Ye.prototype.CopyTo=function(n,t){Ae((function(e,r){n[t+e]=r}),this)},Object.defineProperty(Ye.prototype,"Count",{get:function(){return 0|tr(this)}}),Object.defineProperty(Ye.prototype,"IsReadOnly",{get:function(){return!1}}),Ye.prototype.Remove=function(n){return ir(this,n)},Object.defineProperty(Ye.prototype,"size",{get:function(){return 0|tr(this)}}),Ye.prototype.add=function(n){er(this,n);return this},Ye.prototype.add_=function(n){return er(this,n)},Ye.prototype.clear=function(){nr(this)},Ye.prototype.delete=function(n){return ir(this,n)},Ye.prototype.has=function(n){return rr(this,n)},Ye.prototype.keys=function(){return Oe((function(n){return n}),this)},Ye.prototype.values=function(){return Oe((function(n){return n}),this)},Ye.prototype.entries=function(){return Oe((function(n){return[n,n]}),this)};var or=Y((function(n,t){this.tag=0|n,this.name=t;for(var e=arguments.length,r=new Array(e>2?e-2:0),i=2;i<e;i++)r[i-2]=arguments[i];this.fields=r}),en);function ur(n){return new or(2,"SetOne",n)}function ar(n,t,e,r){return new or(1,"SetNode",n,t,e,r)}var cr=Y((function(n,t){this.stack=n,this.started=t}),an);function fr(n){for(;;){var t=n;if(null==t.tail)return new tn;if(2===t.head.tag)return t;1!==t.head.tag?n=t.tail:n=new tn(t.head.fields[1],new tn(ur(t.head.fields[0]),new tn(t.head.fields[2],t.tail)))}}function sr(n){return new cr(fr(new tn(n,new tn)),!1)}function lr(n){if(n.started){var t=n.stack;if(null==t.tail)return function(){throw new Error("Enumeration already started")}();if(2===t.head.tag)return t.head.fields[0];throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}var hr=Y((function(n){this.s=n,this.i=sr(this.s)}));function dr(n){return function(n){return this instanceof hr?hr.call(this,n):new hr(n)}(n)}function pr(n,t,e){return 0===t.tag?0===e.tag?0:-1:0===e.tag?1:0|function(n,t,e){n:for(;;){var r,i,o,u,a,c,f,s,l,h,d,p,v,y,g,w,m,b,S,E,C,k,A,O,_,T,j,x,M,R,I,D,N,P,G,F,U=n,H=t,L=e;switch(null!=H.tail?null!=L.tail?2===L.head.tag?2===H.head.tag?(r=4,u=H.head.fields[0],a=L.head.fields[0],c=H.tail,f=L.tail):1===H.head.tag?0===H.head.fields[1].tag?(r=6,v=H.head.fields[1],y=H.head.fields[0],g=H.head.fields[2],w=L.head.fields[0],m=H.tail,b=L.tail):(r=9,j=H.head.fields[0],x=H.head.fields[1],M=H.head.fields[2],R=H.tail):(r=10,I=L.head.fields[0],D=L.tail):1===L.head.tag?0===L.head.fields[1].tag?2===H.head.tag?(r=5,s=H.head.fields[0],l=L.head.fields[0],h=L.head.fields[2],d=H.tail,p=L.tail):1===H.head.tag?0===H.head.fields[1].tag?(r=7,S=H.head.fields[0],E=H.head.fields[2],C=L.head.fields[0],k=L.head.fields[2],A=H.tail,O=L.tail):(r=9,j=H.head.fields[0],x=H.head.fields[1],M=H.head.fields[2],R=H.tail):(r=11,N=L.head.fields[0],P=L.head.fields[1],G=L.head.fields[2],F=L.tail):2===H.head.tag?(r=8,_=H.head.fields[0],T=H.tail):1===H.head.tag?(r=9,j=H.head.fields[0],x=H.head.fields[1],M=H.head.fields[2],R=H.tail):(r=11,N=L.head.fields[0],P=L.head.fields[1],G=L.head.fields[2],F=L.tail):2===H.head.tag?(r=8,_=H.head.fields[0],T=H.tail):1===H.head.tag?(r=9,j=H.head.fields[0],x=H.head.fields[1],M=H.head.fields[2],R=H.tail):(r=3,i=H.tail,o=L.tail):r=2:r=null!=L.tail?1:0,r){case 0:return 0;case 1:return-1;case 2:return 1;case 3:n=U,t=i,e=o;continue n;case 4:var q=0|U.Compare(u,a);if(0!==q)return 0|q;n=U,t=c,e=f;continue n;case 5:var V=0|U.Compare(s,l);if(0!==V)return 0|V;n=U,t=new tn(new or(0,"SetEmpty"),d),e=new tn(h,p);continue n;case 6:var W=0|U.Compare(y,w);if(0!==W)return 0|W;n=U,t=new tn(g,m),e=new tn(v,b);continue n;case 7:var z=0|U.Compare(S,C);if(0!==z)return 0|z;n=U,t=new tn(E,A),e=new tn(k,O);continue n;case 8:n=U,t=new tn(new or(0,"SetEmpty"),new tn(ur(_),T)),e=L;continue n;case 9:n=U,t=new tn(x,new tn(ar(j,new or(0,"SetEmpty"),M,0),R)),e=L;continue n;case 10:n=U,t=H,e=new tn(new or(0,"SetEmpty"),new tn(ur(I),D));continue n;case 11:n=U,t=H,e=new tn(P,new tn(ar(N,new or(0,"SetEmpty"),G,0),F));continue n}break}}(n,new tn(t,new tn),new tn(e,new tn))}Object.defineProperty(hr.prototype,"Current",{get:function(){return lr(this.i)}}),hr.prototype.MoveNext=function(){return function(n){if(n.started){var t=n.stack;if(null==t.tail)return!1;if(2===t.head.tag)return n.stack=fr(t.tail),!(null==n.stack.tail);throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return n.started=!0,!(null==n.stack.tail)}(this.i)},hr.prototype.Reset=function(){this.i=sr(this.s)},hr.prototype.Dispose=function(){};var vr=Y((function(n,t){this.comparer=n,this.tree=t}));function yr(n){return n.comparer}function gr(n){return n.tree}vr.prototype.toString=function(){return"set ["+(Zt("; ",Oe((function(n){return String(n)}),this))+"]")},vr.prototype.GetHashCode=function(){for(var n=0,t=dr(gr(this));t.MoveNext();){n=((0|n)<<1)+(0|w(t.Current))+631}return 0|Math.abs(n)},vr.prototype.Equals=function(n){return 0===pr(yr(this),gr(this),gr(n))},vr.prototype.CompareTo=function(n){return 0|pr(yr(this),gr(this),gr(n))},vr.prototype[Symbol.iterator]=function(){return ye(dr(gr(this)))};function wr(n,t,e){return 0===function(n,t,e){if(null==t)return null==e?0:-1;if(null==e)return 1;var r=0,i=0,o=0|t.length,u=0|e.length;if(o>u)return 1;if(o<u)return-1;for(;r<o&&0===i;)i=n(t[r],e[r]),r+=1;return 0|i}(O,t,e)}function mr(n,t){return t.from(n)}function br(n,t,e){for(;;){var r=n,i=t,o=e;if(null==o.tail)return i;n=r,t=r(i,o.head),e=o.tail}}function Sr(n){return br((function(n,t){return new tn(t,n)}),new tn,n)}function Er(n){return Sr(Ce((function(n,t){return new tn(t,n)}),new tn,n))}function Cr(n,t){return Sr(br((function(t,e){return new tn(n(e),t)}),new tn,t))}function kr(n,t){br((function(t,e){n(e)}),void 0,t)}function Ar(n){for(var t=new tn,e=function(n){if(f(n))return n.length;var t,e=0,r=o(n);try{for(r.s();!(t=r.n()).done;){t.value;e++}}catch(n){r.e(n)}finally{r.f()}return e}(n)-1;e>=0;e--)t=new tn(n[e],t);return t}var Or=e(1),_r=e.n(Or).a,Tr=Or.createElement;function jr(n,t){return[n,t]}var xr=function(n){Object(Or.useEffect)((function(){var t=n();return function(){t.Dispose()}}))},Mr=function(n){Object(Or.useLayoutEffect)((function(){var t=n();return function(){t.Dispose()}}))};Y((function(){}));function Rr(n,t,e,r){var i=_r.memo(n,P(2,se(G(2,e),null)));return ke((function(t){n.displayName=t}),fe(t)),function(n){var t;return t=Ir(r,n),_r.createElement(i,t)}}function Ir(n,t){if(null==n)return t;var e=n;return t.key=e(t),t}Y((function(){}));function Dr(n){return{Dispose:function(){n()}}}function Nr(n){xr(n)}function Pr(n){return _r.useRef(n)}function Gr(n){var t,e,r,i=Pr(n),o=(t=function(n){return i.current(n)},e=se([],[]),_r.useCallback(t,e));return r=function(){i.current=n},Mr((function(n){return r(),Dr((function(){}))})),o}var Fr=function(){var n=!1;try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var t=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassiveEventSupport",(function(n){}),t),window.removeEventListener("testPassiveEventSupport",(function(n){}),t)}}catch(n){}return n}();function Ur(n,t){return 0===t.indexOf(n)?t:void 0}function Hr(n,t){return r=n,(i=(e=t).lastIndexOf(r))>=0&&i===e.length-r.length?t:void 0;var e,r,i}function Lr(n,t){return(1===t?function(n){var t,e,r,i;return null!=(t=Ur("/",n))?"#"+t:null!=(e=Ur("#/",n))?e:null!=(r=Ur("#",n))?"#/"+Xt(i=r,1,i.length-1):"#/"+n}:function(n){var t;return null!=(t=Ur("/",n))?t:"/"+n})(Zt("/",Cr((function(n){return n.indexOf("?")>=0||0===n.indexOf("#")||0===n.indexOf("/")?n:encodeURIComponent(n)}),n)))}function qr(n,t){var e;return e=Ar((null!=Ur("#",n)?Xt(n,1,n.length-1):1===t?null!=Hr("#",n)?"":null!=Hr("#/",n)?"":n:n).split("/")),Er(be((function(n){if("string"!=typeof(u=n)||/^\s*$/.test(u))return new tn;var t=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return 0===e.length?n.trimEnd():n.replace(new RegExp("["+Dt(e.join(""))+"]+$"),"")}(n,"#");if("?"===t)return new tn;if(null!=Ur("?",t))return new tn(t,new tn);var e=t.split("?");if(wr(0,e,null)||1!==e.length){if(wr(0,e,null)||2!==e.length)return new tn;if(""===e[1]){var r=e[0];return new tn(decodeURIComponent(r),new tn)}var i=e[0],o=e[1];return Ar([decodeURIComponent(i),"?"+o])}var u,a=e[0];return new tn(decodeURIComponent(a),new tn)}),e))}var Vr,Wr,zr=Rr((function(n){var t=Gr((function(t){var e,r=se(n.onUrlChanged,(function(n){})),i=0|se(n.hashMode,1);r(qr(2===(e=i)?window.location.pathname+window.location.search:window.location.hash,e))}));window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?Nr(Gr((function(){var n=se(void 0,!1),e=function(n){t(n)};return n&&Fr?window.addEventListener("hashchange",e,cn({passive:!0})):window.addEventListener("hashchange",e),Dr((function(){n&&Fr?window.removeEventListener("hashchange",e,cn({passive:!0})):window.removeEventListener("hashchange",e)}))}))):Nr(Gr((function(){var n=se(void 0,!1),e=function(n){t(n)};return n&&Fr?window.addEventListener("popstate",e,cn({passive:!0})):window.addEventListener("popstate",e),Dr((function(){n&&Fr?window.removeEventListener("popstate",e,cn({passive:!0})):window.removeEventListener("popstate",e)}))}))),Nr(Gr((function(){var n=se(void 0,!1),e=function(n){t(n)};return n&&Fr?window.addEventListener("CUSTOM_NAVIGATION_EVENT",e,cn({passive:!0})):window.addEventListener("CUSTOM_NAVIGATION_EVENT",e),Dr((function(){n&&Fr?window.removeEventListener("CUSTOM_NAVIGATION_EVENT",e,cn({passive:!0})):window.removeEventListener("CUSTOM_NAVIGATION_EVENT",e)}))})));var e=n.application;return null==e?null:e}),void 0,Wr,Vr);var Br=Y((function(n,t){this.tag=0|n,this.name=t;for(var e=arguments.length,r=new Array(e>2?e-2:0),i=2;i<e;i++)r[i-2]=arguments[i];this.fields=r}),en);var Jr=new Br(0,"FableAgGrid");var $r=Y((function(n,t,e){this.CurrentPage=n,this.ShowQuickView=t,this.ShowLoader=e}),an);var Zr=new $r(Jr,!1,!1),Qr=Y((function(n,t){this.tag=0|n,this.name=t;for(var e=arguments.length,r=new Array(e>2?e-2:0),i=2;i<e;i++)r[i-2]=arguments[i];this.fields=r}),en);e(247),e(155);function Xr(n){return(Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function Yr(n,t){return!t||"object"!==Xr(t)&&"function"!=typeof t?Kr(n):t}function Kr(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ni(n){var t="function"==typeof Map?new Map:void 0;return(ni=function(n){if(null===n||(e=n,-1===Function.toString.call(e).indexOf("[native code]")))return n;var e;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return ti(n,arguments,ii(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ri(r,n)})(n)}function ti(n,t,e){return(ti=ei()?Reflect.construct:function(n,t,e){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(n,r));return e&&ri(i,e.prototype),i}).apply(null,arguments)}function ei(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}function ri(n,t){return(ri=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function ii(n){return(ii=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function oi(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(n)))return;var e=[],r=!0,i=!1,o=void 0;try{for(var u,a=n[Symbol.iterator]();!(r=(u=a.next()).done)&&(e.push(u.value),!t||e.length!==t);r=!0);}catch(n){i=!0,o=n}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return e}(n,t)||ui(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ui(n,t){if(n){if("string"==typeof n)return ai(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ai(n,t):void 0}}function ai(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function ci(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function fi(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function si(n,t,e){return t&&fi(n.prototype,t),e&&fi(n,e),n}var li=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ci(this,n),this._id=0,this._cancelled=t,this._listeners=new Map}return si(n,[{key:"cancel",value:function(){if(!this._cancelled){this._cancelled=!0;var n,t=function(n,t){var e;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(e=ui(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,a=!1;return{s:function(){e=n[Symbol.iterator]()},n:function(){var n=e.next();return u=n.done,n},e:function(n){a=!0,o=n},f:function(){try{u||null==e.return||e.return()}finally{if(a)throw o}}}}(this._listeners);try{for(t.s();!(n=t.n()).done;){(0,oi(n.value,2)[1])()}}catch(n){t.e(n)}finally{t.f()}}}},{key:"addListener",value:function(n){var t=this._id;return this._listeners.set(this._id++,n),t}},{key:"removeListener",value:function(n){return this._listeners.delete(n)}},{key:"register",value:function(n,t){var e=this,r=this.addListener(null==t?n:function(){return n(t)});return{Dispose:function(){e.removeListener(r)}}}},{key:"isCancelled",get:function(){return this._cancelled}}]),n}(),hi=function(n){!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&ri(n,t)}(i,n);var t,e,r=(t=i,e=ei(),function(){var n,r=ii(t);if(e){var i=ii(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Yr(this,n)});function i(){var n;return ci(this,i),n=r.call(this,"The operation was canceled"),Object.setPrototypeOf(Kr(n),i.prototype),n}return i}(ni(Error)),di=function(){function n(){ci(this,n),this.callCount=0}return si(n,[{key:"incrementAndCheck",value:function(){return this.callCount++>n.maxTrampolineCallCount}},{key:"hijack",value:function(n){this.callCount=0,setTimeout(n,0)}}],[{key:"maxTrampolineCallCount",get:function(){return 2e3}}]),n}();function pi(n){return function(t){if(t.cancelToken.isCancelled)t.onCancel(new hi);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((function(){try{n(t)}catch(n){t.onError(n)}}));else try{n(t)}catch(n){t.onError(n)}}}function vi(n,t){return pi((function(e){n({onSuccess:function(n){try{t(n)(e)}catch(n){e.onError(n)}},onError:e.onError,onCancel:e.onCancel,cancelToken:e.cancelToken,trampoline:e.trampoline})}))}function yi(n){return pi((function(t){return t.onSuccess(n)}))}var gi=new(function(){function n(){ci(this,n)}return si(n,[{key:"Bind",value:function(n,t){return vi(n,t)}},{key:"Combine",value:function(n,t){return this.Bind(n,(function(){return t}))}},{key:"Delay",value:function(n){return pi((function(t){return n()(t)}))}},{key:"For",value:function(n,t){var e=n[Symbol.iterator](),r=e.next();return this.While((function(){return!r.done}),this.Delay((function(){var n=t(r.value);return r=e.next(),n})))}},{key:"Return",value:function(n){return yi(n)}},{key:"ReturnFrom",value:function(n){return n}},{key:"TryFinally",value:function(n,t){return pi((function(e){n({onSuccess:function(n){t(),e.onSuccess(n)},onError:function(n){t(),e.onError(n)},onCancel:function(n){t(),e.onCancel(n)},cancelToken:e.cancelToken,trampoline:e.trampoline})}))}},{key:"TryWith",value:function(n,t){return pi((function(e){n({onSuccess:e.onSuccess,onCancel:e.onCancel,cancelToken:e.cancelToken,trampoline:e.trampoline,onError:function(n){try{t(n)(e)}catch(n){e.onError(n)}}})}))}},{key:"Using",value:function(n,t){return this.TryFinally(t(n),(function(){return n.Dispose()}))}},{key:"While",value:function(n,t){var e=this;return n()?this.Bind(t,(function(){return e.While(n,t)})):this.Return(void 0)}},{key:"Zero",value:function(){return pi((function(n){return n.onSuccess(void 0)}))}}]),n}());function wi(n){}var mi=new li;function bi(n){return pi((function(t){n({onSuccess:function(n){return t.onSuccess(function(n){return new le(0,"Choice1Of2",n)}(n))},onError:function(n){return t.onSuccess(new le(1,"Choice2Of2",n))},onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))}function Si(n,t){return function(n,t){return Ei(n,t)}(n,t)}function Ei(n,t,e,r,i){"function"!=typeof t&&(i=t,t=void 0);var o=new di;n({onSuccess:t||wi,onError:e||wi,onCancel:r||wi,cancelToken:i||mi,trampoline:o})}function Ci(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var ki=function n(t,e,r){Ci(this,n),this.OnNext=t,this.OnError=e||function(n){},this.OnCompleted=r||function(){}};function Ai(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var Oi=function(){function n(t,e){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._subscriber=t,this.delegates=e||new Array}var t,e,r;return t=n,(e=[{key:"Add",value:function(n){this._addHandler(n)}},{key:"Trigger",value:function(n){ke((function(t){return t(n)}),this.delegates)}},{key:"AddHandler",value:function(n){null==this._dotnetDelegates&&(this._dotnetDelegates=new Map);var t=function(t){return n(null,t)};this._dotnetDelegates.set(n,t),this._addHandler(t)}},{key:"RemoveHandler",value:function(n){if(null!=this._dotnetDelegates){var t=this._dotnetDelegates.get(n);null!=t&&(this._dotnetDelegates.delete(n),this._removeHandler(t))}}},{key:"Subscribe",value:function(n){return"function"==typeof n?this._subscribeFromCallback(n):this._subscribeFromObserver(n)}},{key:"_addHandler",value:function(n){this.delegates.push(n)}},{key:"_removeHandler",value:function(n){var t=this.delegates.indexOf(n);t>-1&&this.delegates.splice(t,1)}},{key:"_subscribeFromObserver",value:function(n){var t=this;if(this._subscriber)return this._subscriber(n);var e=n.OnNext;return this._addHandler(e),{Dispose:function(){t._removeHandler(e)}}}},{key:"_subscribeFromCallback",value:function(n){var t=this;return this._addHandler(n),{Dispose:function(){t._removeHandler(n)}}}},{key:"Publish",get:function(){return this}}])&&Ai(t.prototype,e),r&&Ai(t,r),n}();var _i=Oi;function Ti(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var ji=function(){function n(t){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new _i}var t,e,r;return t=n,(e=[{key:"Dispose",value:function(){this.Enabled=!1,this._isDisposed=!0}},{key:"Close",value:function(){this.Dispose()}},{key:"Start",value:function(){this.Enabled=!0}},{key:"Stop",value:function(){this.Enabled=!1}},{key:"Elapsed",get:function(){return this._elapsed}},{key:"Enabled",get:function(){return this._enabled},set:function(n){var t=this;this._isDisposed||this._enabled===n||(this._enabled=n,this._enabled?this.AutoReset?this._intervalId=setInterval((function(){t.AutoReset||(t.Enabled=!1),t._elapsed.Trigger(new Date)}),this.Interval):this._timeoutId=setTimeout((function(){t.Enabled=!1,t._timeoutId=0,t.AutoReset&&(t.Enabled=!0),t._elapsed.Trigger(new Date)}),this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}}])&&Ti(t.prototype,e),r&&Ti(t,r),n}();function xi(n,t){console.error(ae(n),t)}function Mi(n,t){var e,r=new ji(n);r.AutoReset=!1,function(n,t){t.Subscribe(new ki(n))}(t,(e=r).Elapsed),e.Enabled=!0,e.Start()}function Ri(n,t,e){kr((function(e){try{e(t)}catch(t){n(t)}}),e)}function Ii(){return new tn}function Di(n){return t=n,Sr(Ce((function(n,t){return br((function(n,t){return new tn(t,n)}),n,t)}),new tn,t));var t}function Ni(n){Mi(0,(function(t){Si(n)}))}e(202);var Pi=e(47),Gi=Y((function(n,t,e,r){this.Message=n,this.Title=t,this.Options=e,this.Dispatcher=r}),an);var Fi=Pi.success;Pi.error,Pi.info,Pi.warning;function Ui(n){var t=new Gi("","",{},void 0);return new Gi(n,t.Title,t.Options,t.Dispatcher)}Pi.options;Pi.remove,Pi.clear;function Hi(n,t){var e,r,i,o,u,a,c,f,s,l,h=Ui(t);return r=n,e=new Gi((i=h).Message,r,i.Options,i.Dispatcher),o="toast-top-right",(u=e).Options.positionClass=o,a=3e3,(c=u).Options.timeOut=a,f="swing",(s=c).Options.hideEasing=f,(l=s).Options.closeButton=!0,l}function Li(n,t){var e,r=Hi(n,t);return e=r,new tn((function(n){e.Dispatcher=n,Fi(e.Message,e.Title,e.Options)}),new tn)}function qi(n){return gi.Delay((function(){return gi.Bind((t=2e3,pi((function(n){var e,r=setTimeout((function(){n.cancelToken.removeListener(e),n.onSuccess(void 0)}),t);e=n.cancelToken.addListener((function(){clearTimeout(r),n.onCancel(new hi)}))}))),(function(){return gi.Return(n)}));var t}))}function Vi(n,t){var e,r,i,o,u;switch(n.tag){case 2:return[t,Li(String(t.CurrentPage),n.fields[0])];case 1:var a;if(t.ShowLoader)a=Ii();else{var c=new Qr(1,"ToggleLoader");r=Ni,i=qi,o=c,u=function(n){return n},a=new tn((function(n){r(gi.Delay((function(){return gi.Bind(bi(i(o)),(function(t){return 0===t.tag?(n(u(t.fields[0])),gi.Zero()):gi.Zero()}))})))}),new tn)}return[(e=!t.ShowLoader,new $r(t.CurrentPage,t.ShowQuickView,e)),a];default:return[new $r(n.fields[0],t.ShowQuickView,t.ShowLoader),Ii()]}}function Wi(n,t){var e,r,i;return r=function(n){var t;return"className"===(t=n)[0]?String(t[1]):void 0},i=t,e=Sr(br((function(n,t){var e=r(t);if(null==e)return n;var i=ce(e);return new tn(i,n)}),new tn,i)),jr("className",Zt(" ",new tn(n,e)))}var zi=e(203),Bi=e.n(zi);Y((function(){}));function Ji(n){var t=Ar([jr("className","fsharp"),jr("children",n)]);return _r.createElement(Bi.a,N(t,0))}function $i(n,t){var e,r,i,o,u=new tn((e=Ar([(i=Bt(zt("https://github.com/DanpowerGruppe/Fable.AgGrid/tree/master/src/docs/views/FableAgGrid/%s.fs")),r=i(n),jr("href",r)),(o="Fix docs file "+n+" here",jr("children",o))]),Tr("a",N(e,0))),new tn);return Tr("div",{children:_r.Children.toArray(mr(u,Array))})}var Zi,Qi,Xi,Yi,Ki,no,to,eo,ro,io,oo,uo,ao,co,fo,so,lo,ho,po,vo=(po=Ar([(Zi=Ar(["Fable.ReactAgGrid - Documentation",(Qi=Ar([jr("href","https://www.nuget.org/packages/Fable.ReactAgGrid/"),(Xi=[(Yi=new tn(jr("src","https://img.shields.io/nuget/v/Fable.ReactAgGrid.svg?style=flat"),new tn),Tr("img",N(Yi,0)))],jr("children",_r.Children.toArray(mr(Xi,Array))))]),Tr("a",N(Qi,0)))]),Ki=Zi,no=Ar([jr("className","title is-1"),jr("children",_r.Children.toArray(mr(Ki,Array)))]),Tr("h1",N(no,0))),(to=new tn("Fable bindings for AgGrid.",new tn),eo=to,ro=Ar([jr("className","subtitle is-2"),jr("children",_r.Children.toArray(mr(eo,Array)))]),Tr("h2",N(ro,0))),(io=new tn,Tr("hr",N(io,0))),(oo=Ar([Tr("p",{children:["ag-Grid is a powerfulll data grid."]}),Tr("p",{children:["ag-Grid contains multiple filters and grouping features"]})]),uo=oo,ao=Ar([jr("className","content"),jr("children",_r.Children.toArray(mr(uo,Array)))]),Tr("div",N(ao,0))),(co=Ar([(fo=Ar([jr("className","title is-4"),jr("children","Features")]),Tr("h4",N(fo,0))),(so=Ar([Tr("li",{children:["column interactions (resize, reorder and pin columns="]}),Tr("li",{children:["Pagination"]}),Tr("li",{children:["Sorting"]}),Tr("li",{children:["Row selection"]}),Tr("li",{children:["Data export"]})]),Tr("ul",{children:_r.Children.toArray(mr(so,Array))}))]),lo=co,ho=Ar([jr("className","content"),jr("children",_r.Children.toArray(mr(lo,Array)))]),Tr("div",N(ho,0))),$i("Fable.AgGrid")]),Tr("div",{children:_r.Children.toArray(mr(po,Array))})),yo=function(n){var t,e,r,i,o,u,a,c,f,s=Ar([(e=Bt(zt("%s - Installation")),t=e(n),r=Ar([jr("className","title is-1"),jr("children",t)]),Tr("h1",N(r,0))),(i=new tn,Tr("hr",N(i,0))),(o=Ar([(u=Ar([jr("className","title is-4"),jr("children","Use Paket")]),Tr("h4",N(u,0))),Ji((a=Bt(zt("paket add %s")),a(n)))]),c=o,f=Ar([jr("className","content"),jr("children",_r.Children.toArray(mr(c,Array)))]),Tr("div",N(f,0)))]);return Tr("div",{children:_r.Children.toArray(mr(s,Array))})}("Fable.ReactAgGrid"),go=function(){var n,t,e,r,i,o,u,a=Ar([(n=new tn("Fable.ReactAgGrid.ExampleGrid",new tn),t=n,e=Ar([jr("className","title is-1"),jr("children",_r.Children.toArray(mr(t,Array)))]),Tr("h1",N(e,0))),(r=new tn,Tr("hr",N(r,0))),(i=Ar([Tr("p",{children:["Here is an example how to use agGrid"]}),Ji('\n                type GridInput =\n                    {\n                        Row : int\n                        Col : int\n                        Value : string\n                    }\n\n                type TableRep =\n                    {\n                        HeadCol : string []\n                        HeadRow : DateTimeOffset []\n                        Values : float [] []\n                        Grid : obj []\n                    }\n\n                type Model =\n                    {\n                        TableRep : TableRep option\n                    }\n                type State = {\n                    TableRep : TableRep\n\n                }\n\n                type Msg =\n                | SetGridInput of GridInput\n\n                open Fable.ReactAgGrid\n\n                let agGrid (tableRep :TableRep) dispatch =\n                    div [ Class "ag-theme-balham"; Style [ Height "400px"; CSSProp.Width "800px"  ] ] [\n                        Grid.grid [\n                            Grid.ColumnDefs [|  Grid.ColumnDef [Grid.HeaderName "Datum"; Grid.Field "date"; Grid.Sortable true]\n                                                for i,header in tableRep.HeadCol |> Array.indexed do\n                                                    Grid.ColumnDef\n                                                              [ Grid.HeaderName header;\n                                                                Grid.Field (string i);\n                                                                Grid.Width 100\n                                                                Grid.Editable true\n                                                                Grid.Sortable true\n                                                                Grid.OnCellValueChanged (fun ev -> dispatch (SetGridInput ({Row = int ev.node.id; Col = int ev.colDef.field; Value = string ev.newValue})))] |]\n                            Grid.RowData (tableRep.Grid |> Array.map box)\n                            Grid.RowHeight 36.\n                            Grid.RowStyle (createObj [ "font-size" ==> "16px" ])\n                            Grid.StopEditingWhenGridLosesFocus true\n                        ] [ ]\n                    ]\n                ')]),o=i,u=Ar([jr("className","content"),jr("children",_r.Children.toArray(mr(o,Array)))]),Tr("div",N(u,0))),$i("ExampleGrid")]);return Tr("div",{children:_r.Children.toArray(mr(a,Array))})}();function wo(n){return function(n){if(Array.isArray(n))return mo(n)}(n)||function(n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}(n)||function(n,t){if(!n)return;if("string"==typeof n)return mo(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return mo(n,t)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mo(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function bo(n,t){var e,r,i,o,u,a,c,f=function(e,r){var i,o=S(n.CurrentPage,r)?new tn(jr("className","is-active"),new tn):new tn,u=Er(Se((function(){return we(o,Se((function(){return we(Ee(jr("onClick",(function(n){t(new Qr(2,"SentToast",e))}))),Se((function(){return we(Ee(jr("children",e)),Se((function(){return Ee(jr("href",function(n){switch(n.tag){case 1:return Lr(new tn("installation",new tn),1);case 2:return Lr(new tn("examplegrid",new tn),1);default:return Lr(new tn("",new tn),1)}}(r)))})))})))})))}))),a=new tn((i=Er(Se((function(){return we(u,Se((function(){return Ee(Wi("",u))})))}))),Tr("a",N(i,0))),new tn);return Tr("li",{children:_r.Children.toArray(mr(a,Array))})},s=Ar([(e=Ar([jr("className","menu-label"),jr("children","Fable.AgGrid")]),Tr("p",N(e,0))),(r=new tn(f("Overview",new Br(0,"FableAgGrid")),new tn),i=r,o=Ar([jr("className","menu-list"),jr("children",_r.Children.toArray(mr(i,Array)))]),Tr("ul",N(o,0))),(u=Ar([f("Installation",new Br(1,"FableAgGridInstallation")),f("Example Grid",new Br(2,"FableAgGridExampleGrid"))]),a=u,c=Ar([jr("className","menu-list"),jr("children",_r.Children.toArray(mr(a,Array)))]),Tr("ul",N(c,0)))]),l=Ar([jr("className","menu"),jr("children",_r.Children.toArray(mr(s,Array)))]);return Tr("aside",N(l,0))}function So(n,t){var e,r,i,o,u,a,c,f,s,l,h,d,p,v,y,g,w,m,b,S,E=Ar([(e=["container","md:flex","justify-center"],jr("className",Zt(" ",e))),(r=[(i=new tn((o=Ar([jr("className","is-ancestor"),(u=[(a=Ar([jr("className","is-2"),(c=bo(n,t),jr("children",c))]),f=Er(Se((function(){return we(a,Se((function(){return Ee(Wi("tile",a))})))}))),Tr("div",N(f,0))),(S=n,s=1===S.CurrentPage.tag?yo:2===S.CurrentPage.tag?go:vo,l=new tn(s,new tn),h=l,d=Ar([jr("className","tile"),jr("children",_r.Children.toArray(mr(h,Array)))]),Tr("div",N(d,0)))],jr("children",_r.Children.toArray(mr(u,Array))))]),p=Er(Se((function(){return we(o,Se((function(){return Ee(Wi("tile",o))})))}))),Tr("div",N(p,0))),new tn),v=i,y=Ar([jr("className","section"),jr("children",_r.Children.toArray(mr(v,Array)))]),Tr("section",N(y,0)))],jr("children",_r.Children.toArray(mr(r,Array))))]);b=Tr("div",N(E,0));var C=Ar([["onUrlChanged",function(n){var e;t((e=function(n){switch(null!=n.tail?""===n.head?null==n.tail.tail?0:3:"installation"===n.head?null==n.tail.tail?1:3:"examplegrid"===n.head&&null==n.tail.tail?2:3:3){case 0:return new Br(0,"FableAgGrid");case 1:return new Br(1,"FableAgGridInstallation");case 2:return new Br(2,"FableAgGridExampleGrid");case 3:return Jr}}(n),new Qr(0,"UrlChanged",e)))}],(g=new tn(b,new tn),["application",(w=g,m=[],Or.createElement.apply(Or,[Or.Fragment,N(m,1)].concat(wo(w))))])]);return zr(N(C,0))}var Eo=Y((function(n,t){this.tag=0|n,this.name=t;for(var e=arguments.length,r=new Array(e>2?e-2:0),i=2;i<e;i++)r[i-2]=arguments[i];this.fields=r}),en);var Co=Y((function(n){var t,e,r,i;this.state=new Eo(0,"Writable",(t=new Array(_(C,n,10)),e=0,r=_(C,n,10),i=null,t.fill(i,e,e+r),t),0)}));function ko(n,t){var e,r,i=n.state;if(1===i.tag){i.fields[0][i.fields[1]]=t;var o=(i.fields[1]+1)%i.fields[0].length|0,u=o===i.fields[2];n.state=u?new Eo(1,"ReadWritable",(e=i.fields[2],r=i.fields[0],mr(Se((function(){return we(_e(e,r),Se((function(){return we(je(e,r),Se((function(){return be((function(n){return Ee(null)}),function(n,t,e){if(0===t)throw new Error("Step cannot be 0");return Se((function(){return xe((function(n){return t>0&&n<=e||t<0&&n>=e?[n,n+t]:void 0}),n)}))}(0,1,r.length))})))})))})),Array)),i.fields[0].length,0):new Eo(1,"ReadWritable",i.fields[0],o,i.fields[2])}else{i.fields[0][i.fields[1]]=t;var a=(i.fields[1]+1)%i.fields[0].length|0;n.state=new Eo(1,"ReadWritable",i.fields[0],a,i.fields[1])}}var Ao=Y((function(n,t,e,r,i,o,u){this.init=n,this.update=t,this.subscribe=e,this.view=r,this.setState=i,this.onError=o,this.syncDispatch=u}),an);function Oo(n,t){return new Ao(t.init,t.update,t.subscribe,t.view,n,t.onError,t.syncDispatch)}function _o(n){return G(2,n.view)}function To(n,t){var e,r=t.init(n),i=function(n){return this instanceof Co?Co.call(this,n):new Co(n)}(10),o=!1,u=r[0],a=F(1,t.syncDispatch,[function(n){var e;if(o)ko(i,n);else{o=!0;for(var r=ae(n),c=function(){var n=ce(r);try{var o=t.update(n,u);t.setState(o[0],a),Ri((function(e){var r;t.onError([(r=Bt(zt("Error in command while handling: %A")),r(n)),e])}),a,o[1]),u=o[0]}catch(r){t.onError([(e=Bt(zt("Unable to process the message: %A")),e(n)),r])}r=function(n){var t=n.state;if(1===t.tag){var e=(t.fields[2]+1)%t.fields[0].length|0,r=e===t.fields[1];return n.state=r?new Eo(0,"Writable",t.fields[0],t.fields[1]):new Eo(1,"ReadWritable",t.fields[0],t.fields[1],e),ae(t.fields[0][t.fields[2]])}}(i)};null!=r;)c();o=!1}}]);t.setState(r[0],a);try{e=t.subscribe(r[0])}catch(n){t.onError(["Unable to subscribe:",n]),e=Ii()}var c=Di(Ar([e,r[1]]));Ri((function(n){t.onError(["Error intitializing:",n])}),a,c)}var jo=e(121),xo=Y((function(n,t,e){this.model=n,this.render=t,this.equal=e}),an);var Mo,Ro,Io=Y((function(n){Or.Component.call(this,n)}),Or.Component);function Do(n,t,e,r){var i,o=new xo(e,(function(){return t(e,r)}),n);return i=Io,Or.createElement.apply(Or,[i,o].concat([]))}function No(n,t,e){var r=void 0;return Oo((function(i,o){if(null!=r){var u=r;window.cancelAnimationFrame(u)}r=window.requestAnimationFrame((function(r){jo.render(n((function(n,t){return n===t}),P(2,_o(e)),i,o),document.getElementById(t))}))}),e)}Io.prototype.shouldComponentUpdate=function(n,t){return!this.props.equal(this.props.model,n.model)},Io.prototype.render=function(){return this.props.render()},Ro=new Ao((function(){return[Zr,Ii()]}),Vi,(function(n){return Ii()}),Mo=So,(function(n,t){Mo(n,t)}),(function(n){xi(n[0],n[1])}),P(2,(function(n){return n}))),To(void 0,No(Do,"elmish-app",Ro))}});
  //# sourceMappingURL=app.790f5f71f2ddc7b6bfcc.js.map