UNPKG

react-floating-label-paper-input

Version:
1 lines 103 kB
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=43)}([function(t,e){var r=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=r)},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(1),i=r(0),o=r(30),u=r(6),s=function(t,e,r){var a,c,f,l=t&s.F,p=t&s.G,h=t&s.S,v=t&s.P,d=t&s.B,_=t&s.W,y=p?i:i[e]||(i[e]={}),m=y.prototype,b=p?n:h?n[e]:(n[e]||{}).prototype;p&&(r=e);for(a in r)(c=!l&&b&&void 0!==b[a])&&a in y||(f=c?b[a]:r[a],y[a]=p&&"function"!=typeof b[a]?r[a]:d&&c?o(f,n):_&&b[a]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[a]=f,t&s.R&&m&&!m[a]&&u(m,a,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,r){var n=r(11),i=r(31),o=r(16),u=Object.defineProperty;e.f=r(4)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){t.exports=!r(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(3),i=r(12);t.exports=r(4)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(34),i=r(17);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(20)("wks"),i=r(14),o=r(1).Symbol,u="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=n},function(t,e,r){var n=r(7);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(33),i=r(21);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){var n=r(7);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(20)("keys"),i=r(14);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(1),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(17);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports=!0},function(t,e){t.exports={}},function(t,e,r){var n=r(11),i=r(70),o=r(21),u=r(19)("IE_PROTO"),s=function(){},a=function(){var t,e=r(32)("iframe"),n=o.length;for(e.style.display="none",r(71).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;n--;)delete a.prototype[o[n]];return a()};t.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[u]=t):r=a(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(3).f,i=r(5),o=r(10)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){e.f=r(10)},function(t,e,r){var n=r(1),i=r(0),o=r(24),u=r(28),s=r(3).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:u.f(t)})}},function(t,e,r){var n=r(49);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){t.exports=!r(4)&&!r(8)(function(){return 7!=Object.defineProperty(r(32)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(7),i=r(1).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,r){var n=r(5),i=r(9),o=r(51)(!1),u=r(19)("IE_PROTO");t.exports=function(t,e){var r,s=i(t),a=0,c=[];for(r in s)r!=u&&n(s,r)&&c.push(r);for(;e.length>a;)n(s,r=e[a++])&&(~o(c,r)||c.push(r));return c}},function(t,e,r){var n=r(35);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(5),i=r(23),o=r(19)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(65),o=n(i),u=r(76),s=n(u),a="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===a(o.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e,r){"use strict";var n=r(24),i=r(2),o=r(39),u=r(6),s=r(5),a=r(25),c=r(69),f=r(27),l=r(36),p=r(10)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,r,d,_,y,m){c(r,e,d);var b,g,w,O=function(t){if(!h&&t in I)return I[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},S=e+" Iterator",x="values"==_,k=!1,I=t.prototype,j=I[p]||I["@@iterator"]||_&&I[_],E=!h&&j||O(_),z=_?x?O("entries"):E:void 0,M="Array"==e?I.entries||j:j;if(M&&(w=l(M.call(new t)))!==Object.prototype&&w.next&&(f(w,S,!0),n||s(w,p)||u(w,p,v)),x&&j&&"values"!==j.name&&(k=!0,E=function(){return j.call(this)}),n&&!m||!h&&!k&&I[p]||u(I,p,E),a[e]=E,a[S]=v,_)if(b={values:x?E:O("values"),keys:y?E:O("keys"),entries:z},m)for(g in b)g in I||o(I,g,b[g]);else i(i.P+i.F*(h||k),e,b);return b}},function(t,e,r){t.exports=r(6)},function(t,e,r){var n=r(33),i=r(21).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(15),i=r(12),o=r(9),u=r(16),s=r(5),a=r(31),c=Object.getOwnPropertyDescriptor;e.f=r(4)?c:function(t,e){if(t=o(t),e=u(e,!0),a)try{return c(t,e)}catch(t){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e){t.exports=require("react")},function(t,e,r){t.exports=r(44)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(45),o=n(i),u=r(54),s=n(u),a=r(55),c=n(a),f=r(59),l=n(f),p=r(60),h=n(p),v=r(64),d=n(v),_=r(86),y=n(_),m=r(42),b=n(m),g=r(94),w=n(g),O=r(95),S=n(O);r(101);var x=function(t){function e(t){(0,l.default)(this,e);var r=(0,d.default)(this,(e.__proto__||(0,c.default)(e)).call(this,t));r.inputs={};var n=t.inputClasses?t.inputClasses:[];return n.push("mat-input","form-control"),r.state={classes:["paper-input","floating-label","floating-label-active"],inputClasses:n,placeholder:""},r.handleOnFocus=r.handleOnFocus.bind(r),r.handleOnFocusOut=r.handleOnFocusOut.bind(r),r}return(0,y.default)(e,t),(0,h.default)(e,[{key:"componentWillUpdate",value:function(t){var e=w.default.fromJS(this.state);if(!1===t.isValid&&-1===this.state.classes.indexOf("has-error")){var r=e.updateIn(["classes"],function(t){return t.push("has-error")});this.setState({classes:r.toObject().classes.toArray()})}else if(!0===t.isValid&&-1!==this.state.classes.indexOf("has-error")){var r=e.toObject().classes.toArray().filter(function(t){return"has-error"!==t}),n=r;this.setState({classes:n})}}},{key:"componentWillMount",value:function(){var t=w.default.fromJS(this.state);if(-1===this.state.classes.indexOf("floating-label-completed")&&(this.props.defaultValue&&""!=this.props.defaultValue||this.props.value&&""!=this.props.value)){var e=t.updateIn(["classes"],function(t){return t.push("floating-label-completed")});this.setState({classes:e.toObject().classes.toArray()})}}},{key:"handleOnFocusOut",value:function(t){t.preventDefault();var e=w.default.fromJS(this.state);if(-1!==this.state.classes.indexOf("floating-label-completed")&&""==this.inputs.value){var r=e.toObject().classes.toArray().filter(function(t){return"floating-label-completed"!==t}),n=r;this.setState({classes:n,placeholder:""})}else this.setState({placeholder:""});this.props.onBlur&&this.props.onBlur()}},{key:"handleOnFocus",value:function(t){t.preventDefault();var e=w.default.fromJS(this.state);if(-1===this.state.classes.indexOf("floating-label-completed")){var r=e.updateIn(["classes"],function(t){return t.push("floating-label-completed")}),n=r.toObject().classes.toArray();this.setState({classes:n,placeholder:this.props.placeholder})}else this.setState({placeholder:this.props.placeholder});this.props.onFocus&&this.props.onFocus()}},{key:"render",value:function(){var t=this,e=this.props,r=e.labelName,n=e.isValid,i=e.errorMessage,u=(e.placeholder,e.inputMaskType),a=e.type,c=e.options,f=(0,s.default)(e,["labelName","isValid","errorMessage","placeholder","inputMaskType","type","options"]);return"select"===a?b.default.createElement("div",{className:this.state.classes.join(" ")},b.default.createElement("label",{className:"control-label",htmlFor:"first-name"},this.props.labelName?this.props.labelName:"Default Label"),b.default.createElement("select",(0,o.default)({},f,{onFocus:this.handleOnFocus,onBlur:this.handleOnFocusOut,ref:function(e){t.inputs=e},className:this.state.inputClasses.join(" ")}),b.default.createElement("option",{value:""}),c.map(function(t,e){return b.default.createElement("option",{key:e,value:t.value},t.label)})),-1!=this.state.classes.indexOf("floating-label-completed")?b.default.createElement("span",{className:"paper-input-bar"}):"",!1===n?b.default.createElement("span",{className:"has-error-text"},i):null):b.default.createElement("div",{className:this.state.classes.join(" ")},b.default.createElement("label",{className:"control-label"},r||"Default Label"),this.props.type&&"inputMask"===this.props.type?b.default.createElement(S.default,(0,o.default)({type:u||"text",placeholder:this.state.placeholder},f,{onFocus:this.handleOnFocus,onBlur:this.handleOnFocusOut,ref:function(e){t.inputs=e},className:this.state.inputClasses.join(" ")})):b.default.createElement("input",(0,o.default)({},f,{onFocus:this.handleOnFocus,onBlur:this.handleOnFocusOut,ref:function(e){t.inputs=e},className:this.state.inputClasses.join(" "),type:this.props.type||"text"})),-1!=this.state.classes.indexOf("floating-label-completed")?b.default.createElement("span",{className:"paper-input-bar"}):"",!1===n?b.default.createElement("span",{className:"has-error-text"},i):null)}}]),e}(m.Component);e.default=x},function(t,e,r){"use strict";e.__esModule=!0;var n=r(46),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},function(t,e,r){t.exports={default:r(47),__esModule:!0}},function(t,e,r){r(48),t.exports=r(0).Object.assign},function(t,e,r){var n=r(2);n(n.S+n.F,"Object",{assign:r(50)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){"use strict";var n=r(13),i=r(22),o=r(15),u=r(23),s=r(34),a=Object.assign;t.exports=!a||r(8)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=a({},t)[r]||Object.keys(a({},e)).join("")!=n})?function(t,e){for(var r=u(t),a=arguments.length,c=1,f=i.f,l=o.f;a>c;)for(var p,h=s(arguments[c++]),v=f?n(h).concat(f(h)):n(h),d=v.length,_=0;d>_;)l.call(h,p=v[_++])&&(r[p]=h[p]);return r}:a},function(t,e,r){var n=r(9),i=r(52),o=r(53);t.exports=function(t){return function(e,r,u){var s,a=n(e),c=i(a.length),f=o(u,c);if(t&&r!=r){for(;c>f;)if((s=a[f++])!=s)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===r)return t||f||0;return!t&&-1}}},function(t,e,r){var n=r(18),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){var n=r(18),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}},function(t,e,r){t.exports={default:r(56),__esModule:!0}},function(t,e,r){r(57),t.exports=r(0).Object.getPrototypeOf},function(t,e,r){var n=r(23),i=r(36);r(58)("getPrototypeOf",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(2),i=r(0),o=r(8);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],u={};u[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",u)}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(61),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){t.exports={default:r(62),__esModule:!0}},function(t,e,r){r(63);var n=r(0).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){var n=r(2);n(n.S+n.F*!r(4),"Object",{defineProperty:r(3).f})},function(t,e,r){"use strict";e.__esModule=!0;var n=r(37),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){t.exports={default:r(66),__esModule:!0}},function(t,e,r){r(67),r(72),t.exports=r(28).f("iterator")},function(t,e,r){"use strict";var n=r(68)(!0);r(38)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(18),i=r(17);t.exports=function(t){return function(e,r){var o,u,s=String(i(e)),a=n(r),c=s.length;return a<0||a>=c?t?"":void 0:(o=s.charCodeAt(a),o<55296||o>56319||a+1===c||(u=s.charCodeAt(a+1))<56320||u>57343?t?s.charAt(a):o:t?s.slice(a,a+2):u-56320+(o-55296<<10)+65536)}}},function(t,e,r){"use strict";var n=r(26),i=r(12),o=r(27),u={};r(6)(u,r(10)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(u,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(3),i=r(11),o=r(13);t.exports=r(4)?Object.defineProperties:function(t,e){i(t);for(var r,u=o(e),s=u.length,a=0;s>a;)n.f(t,r=u[a++],e[r]);return t}},function(t,e,r){var n=r(1).document;t.exports=n&&n.documentElement},function(t,e,r){r(73);for(var n=r(1),i=r(6),o=r(25),u=r(10)("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(","),a=0;a<s.length;a++){var c=s[a],f=n[c],l=f&&f.prototype;l&&!l[u]&&i(l,u,c),o[c]=o.Array}},function(t,e,r){"use strict";var n=r(74),i=r(75),o=r(25),u=r(9);t.exports=r(38)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){t.exports={default:r(77),__esModule:!0}},function(t,e,r){r(78),r(83),r(84),r(85),t.exports=r(0).Symbol},function(t,e,r){"use strict";var n=r(1),i=r(5),o=r(4),u=r(2),s=r(39),a=r(79).KEY,c=r(8),f=r(20),l=r(27),p=r(14),h=r(10),v=r(28),d=r(29),_=r(80),y=r(81),m=r(11),b=r(7),g=r(9),w=r(16),O=r(12),S=r(26),x=r(82),k=r(41),I=r(3),j=r(13),E=k.f,z=I.f,M=x.f,D=n.Symbol,P=n.JSON,A=P&&P.stringify,q=h("_hidden"),R=h("toPrimitive"),C={}.propertyIsEnumerable,T=f("symbol-registry"),L=f("symbols"),U=f("op-symbols"),N=Object.prototype,F="function"==typeof D,B=n.QObject,K=!B||!B.prototype||!B.prototype.findChild,V=o&&c(function(){return 7!=S(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=E(N,e);n&&delete N[e],z(t,e,r),n&&t!==N&&z(N,e,n)}:z,W=function(t){var e=L[t]=S(D.prototype);return e._k=t,e},J=F&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},Y=function(t,e,r){return t===N&&Y(U,e,r),m(t),e=w(e,!0),m(r),i(L,e)?(r.enumerable?(i(t,q)&&t[q][e]&&(t[q][e]=!1),r=S(r,{enumerable:O(0,!1)})):(i(t,q)||z(t,q,O(1,{})),t[q][e]=!0),V(t,e,r)):z(t,e,r)},H=function(t,e){m(t);for(var r,n=_(e=g(e)),i=0,o=n.length;o>i;)Y(t,r=n[i++],e[r]);return t},X=function(t,e){return void 0===e?S(t):H(S(t),e)},G=function(t){var e=C.call(this,t=w(t,!0));return!(this===N&&i(L,t)&&!i(U,t))&&(!(e||!i(this,t)||!i(L,t)||i(this,q)&&this[q][t])||e)},$=function(t,e){if(t=g(t),e=w(e,!0),t!==N||!i(L,e)||i(U,e)){var r=E(t,e);return!r||!i(L,e)||i(t,q)&&t[q][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=M(g(t)),n=[],o=0;r.length>o;)i(L,e=r[o++])||e==q||e==a||n.push(e);return n},Z=function(t){for(var e,r=t===N,n=M(r?U:g(t)),o=[],u=0;n.length>u;)!i(L,e=n[u++])||r&&!i(N,e)||o.push(L[e]);return o};F||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===N&&e.call(U,r),i(this,q)&&i(this[q],t)&&(this[q][t]=!1),V(this,t,O(1,r))};return o&&K&&V(N,t,{configurable:!0,set:e}),W(t)},s(D.prototype,"toString",function(){return this._k}),k.f=$,I.f=Y,r(40).f=x.f=Q,r(15).f=G,r(22).f=Z,o&&!r(24)&&s(N,"propertyIsEnumerable",G,!0),v.f=function(t){return W(h(t))}),u(u.G+u.W+u.F*!F,{Symbol:D});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var rt=j(h.store),nt=0;rt.length>nt;)d(rt[nt++]);u(u.S+u.F*!F,"Symbol",{for:function(t){return i(T,t+="")?T[t]:T[t]=D(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in T)if(T[e]===t)return e},useSetter:function(){K=!0},useSimple:function(){K=!1}}),u(u.S+u.F*!F,"Object",{create:X,defineProperty:Y,defineProperties:H,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),P&&u(u.S+u.F*(!F||c(function(){var t=D();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!J(t))return y(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!J(e))return e}),n[1]=e,A.apply(P,n)}}),D.prototype[R]||r(6)(D.prototype,R,D.prototype.valueOf),l(D,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){var n=r(14)("meta"),i=r(7),o=r(5),u=r(3).f,s=0,a=Object.isExtensible||function(){return!0},c=!r(8)(function(){return a(Object.preventExtensions({}))}),f=function(t){u(t,n,{value:{i:"O"+ ++s,w:{}}})},l=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[n].i},p=function(t,e){if(!o(t,n)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[n].w},h=function(t){return c&&v.NEED&&a(t)&&!o(t,n)&&f(t),t},v=t.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,r){var n=r(13),i=r(22),o=r(15);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var u,s=r(t),a=o.f,c=0;s.length>c;)a.call(t,u=s[c++])&&e.push(u);return e}},function(t,e,r){var n=r(35);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(9),i=r(40).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?s(t):i(n(t))}},function(t,e){},function(t,e,r){r(29)("asyncIterator")},function(t,e,r){r(29)("observable")},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(87),o=n(i),u=r(91),s=n(u),a=r(37),c=n(a);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,r){t.exports={default:r(88),__esModule:!0}},function(t,e,r){r(89),t.exports=r(0).Object.setPrototypeOf},function(t,e,r){var n=r(2);n(n.S,"Object",{setPrototypeOf:r(90).set})},function(t,e,r){var n=r(7),i=r(11),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r(30)(Function.call,r(41).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},function(t,e,r){t.exports={default:r(92),__esModule:!0}},function(t,e,r){r(93);var n=r(0).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){var n=r(2);n(n.S,"Object",{create:r(26)})},function(t,e,r){!function(e,r){t.exports=r()}(0,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:z(t)}function r(t){return u(t)?t:M(t)}function n(t){return s(t)?t:D(t)}function i(t){return o(t)&&!a(t)?t:P(t)}function o(t){return!(!t||!t[ar])}function u(t){return!(!t||!t[cr])}function s(t){return!(!t||!t[fr])}function a(t){return u(t)||s(t)}function c(t){return!(!t||!t[lr])}function f(t){return t.value=!1,t}function l(t){t&&(t.value=!0)}function p(){}function h(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function v(t){return void 0===t.size&&(t.size=t.__iterate(_)),t.size}function d(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?v(t)+e:e}function _(){return!0}function y(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function m(t,e){return g(t,e,0)}function b(t,e){return g(t,e,e)}function g(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function w(t){this.next=t}function O(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function S(){return{value:void 0,done:!0}}function x(t){return!!j(t)}function k(t){return t&&"function"==typeof t.next}function I(t){var e=j(t);return e&&e.call(t)}function j(t){var e=t&&(wr&&t[wr]||t[Or]);if("function"==typeof e)return e}function E(t){return t&&"number"==typeof t.length}function z(t){return null===t||void 0===t?L():o(t)?t.toSeq():F(t)}function M(t){return null===t||void 0===t?L().toKeyedSeq():o(t)?u(t)?t.toSeq():t.fromEntrySeq():U(t)}function D(t){return null===t||void 0===t?L():o(t)?u(t)?t.entrySeq():t.toIndexedSeq():N(t)}function P(t){return(null===t||void 0===t?L():o(t)?u(t)?t.entrySeq():t:N(t)).toSetSeq()}function A(t){this._array=t,this.size=t.length}function q(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function R(t){this._iterable=t,this.size=t.length||t.size}function C(t){this._iterator=t,this._iteratorCache=[]}function T(t){return!(!t||!t[xr])}function L(){return kr||(kr=new A([]))}function U(t){var e=Array.isArray(t)?new A(t).fromEntrySeq():k(t)?new C(t).fromEntrySeq():x(t)?new R(t).fromEntrySeq():"object"==typeof t?new q(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function N(t){var e=B(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function F(t){var e=B(t)||"object"==typeof t&&new q(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function B(t){return E(t)?new A(t):k(t)?new C(t):x(t)?new R(t):void 0}function K(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[r?o-u:u];if(!1===e(s[1],n?s[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function V(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new w(function(){var t=i[r?o-u:u];return u++>o?S():O(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function W(t,e){return e?J(e,t,"",{"":t}):Y(t)}function J(t,e,r,n){return Array.isArray(e)?t.call(n,r,D(e).map(function(r,n){return J(t,r,n,e)})):H(e)?t.call(n,r,M(e).map(function(r,n){return J(t,r,n,e)})):e}function Y(t){return Array.isArray(t)?D(t).map(Y).toList():H(t)?M(t).map(Y).toMap():t}function H(t){return t&&(t.constructor===Object||void 0===t.constructor)}function X(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function G(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||u(t)!==u(e)||s(t)!==s(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!a(t);if(c(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&X(i[1],t)&&(r||X(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var f=t;t=e,e=f}var l=!0,p=e.__iterate(function(e,n){if(r?!t.has(e):i?!X(e,t.get(n,dr)):!X(t.get(n,dr),e))return l=!1,!1});return l&&t.size===p}function $(t,e){if(!(this instanceof $))return new $(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Ir)return Ir;Ir=this}}function Q(t,e){if(!t)throw new Error(e)}function Z(t,e,r){if(!(this instanceof Z))return new Z(t,e,r);if(Q(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(jr)return jr;jr=this}}function tt(){throw TypeError("Abstract")}function et(){}function rt(){}function nt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(!1===t||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null===t||void 0===t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return it(r)}if("string"===e)return t.length>Rr?ut(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return at(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function ut(t){var e=Lr[t];return void 0===e&&(e=st(t),Tr===Cr&&(Tr=0,Lr={}),Tr++,Lr[t]=e),e}function st(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return it(e)}function at(t){var e;if(Pr&&void 0!==(e=Er.get(t)))return e;if(void 0!==(e=t[qr]))return e;if(!Dr){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[qr]))return e;if(void 0!==(e=ct(t)))return e}if(e=++Ar,1073741824&Ar&&(Ar=0),Pr)Er.set(t,e);else{if(void 0!==Mr&&!1===Mr(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Dr)Object.defineProperty(t,qr,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[qr]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[qr]=e}}return e}function ct(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ft(t){Q(t!==1/0,"Cannot perform this action with an infinite size.")}function lt(t){return null===t||void 0===t?Ot():pt(t)&&!c(t)?t:Ot().withMutations(function(e){var n=r(t);ft(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function pt(t){return!(!t||!t[Ur])}function ht(t,e){this.ownerID=t,this.entries=e}function vt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function dt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function _t(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function yt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function mt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&gt(t._root)}function bt(t,e){return O(t,e[0],e[1])}function gt(t,e){return{node:t,index:0,__prev:e}}function wt(t,e,r,n){var i=Object.create(Nr);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ot(){return Fr||(Fr=wt(0))}function St(t,e,r){var n,i;if(t._root){var o=f(_r),u=f(yr);if(n=xt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===dr?-1:1:0)}else{if(r===dr)return t;i=1,n=new ht(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?wt(i,n):Ot()}function xt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===dr?t:(l(s),l(u),new yt(e,n,[i,o]))}function kt(t){return t.constructor===yt||t.constructor===_t}function It(t,e,r,n,i){if(t.keyHash===n)return new _t(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&vr,s=(0===r?n:n>>>r)&vr;return new vt(e,1<<u|1<<s,u===s?[It(t,e,r+pr,n,i)]:(o=new yt(e,n,i),u<s?[t,o]:[o,t]))}function jt(t,e,r,n){t||(t=new p);for(var i=new yt(t,ot(r),[r,n]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}function Et(t,e,r,n){for(var i=0,o=0,u=new Array(r),s=0,a=1,c=e.length;s<c;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new vt(t,i,u)}function zt(t,e,r,n,i){for(var o=0,u=new Array(hr),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new dt(t,o+1,u)}function Mt(t,e,n){for(var i=[],u=0;u<n.length;u++){var s=n[u],a=r(s);o(s)||(a=a.map(function(t){return W(t)})),i.push(a)}return At(t,e,i)}function Dt(t,e,r){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):X(t,e)?t:e}function Pt(t){return function(e,r,n){if(e&&e.mergeDeepWith&&o(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return X(e,i)?e:i}}function At(t,e,r){return r=r.filter(function(t){return 0!==t.size}),0===r.length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,dr,function(t){return t===dr?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function qt(t,e,r,n){var i=t===dr,o=e.next();if(o.done){var u=i?r:t,s=n(u);return s===u?t:s}Q(i||t&&t.set,"invalid keyPath");var a=o.value,c=i?dr:t.get(a,dr),f=qt(c,e,r,n);return f===c?t:f===dr?t.remove(a):(i?Ot():t).set(a,f)}function Rt(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Ct(t,e,r,n){var i=n?t:h(t);return i[e]=r,i}function Tt(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Lt(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Ut(t){var e=Vt();if(null===t||void 0===t)return e;if(Nt(t))return t;var r=n(t),i=r.size;return 0===i?e:(ft(i),i>0&&i<hr?Kt(0,i,pr,null,new Ft(r.toArray())):e.withMutations(function(t){t.setSize(i),r.forEach(function(e,r){return t.set(r,e)})}))}function Nt(t){return!(!t||!t[Wr])}function Ft(t,e){this.array=t,this.ownerID=e}function Bt(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,c=u-r;return c>hr&&(c=hr),function(){if(i===c)return Hr;var t=e?--c:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,c=i>o?0:o-i>>n,f=1+(u-i>>n);return f>hr&&(f=hr),function(){for(;;){if(s){var t=s();if(t!==Hr)return t;s=null}if(c===f)return Hr;var o=e?--f:c++;s=r(a&&a[o],n-pr,i+(o<<n))}}}var o=t._origin,u=t._capacity,s=$t(u),a=t._tail;return r(t._root,t._level,0)}function Kt(t,e,r,n,i,o,u){var s=Object.create(Jr);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function Vt(){return Yr||(Yr=Kt(0,0,pr))}function Wt(t,e,r){if((e=d(t,e))!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Xt(t,e).set(0,r):Xt(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=f(yr);return e>=$t(t._capacity)?n=Jt(n,t.__ownerID,0,e,r,o):i=Jt(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Kt(t._origin,t._capacity,t._level,i,n):t}function Jt(t,e,r,n,i,o){var u=n>>>r&vr,s=t&&u<t.array.length;if(!s&&void 0===i)return t;var a;if(r>0){var c=t&&t.array[u],f=Jt(c,e,r-pr,n,i,o);return f===c?t:(a=Yt(t,e),a.array[u]=f,a)}return s&&t.array[u]===i?t:(l(o),a=Yt(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Yt(t,e){return e&&t&&e===t.ownerID?t:new Ft(t?t.array.slice():[],e)}function Ht(t,e){if(e>=$t(t._capacity))return t._tail;if(e<1<<t._level+pr){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&vr],n-=pr;return r}}function Xt(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new p,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:r<0?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,c=t._root,f=0;u+f<0;)c=new Ft(c&&c.array.length?[void 0,c]:[],n),a+=pr,f+=1<<a;f&&(u+=f,i+=f,s+=f,o+=f);for(var l=$t(o),h=$t(s);h>=1<<a+pr;)c=new Ft(c&&c.array.length?[c]:[],n),a+=pr;var v=t._tail,d=h<l?Ht(t,s-1):h>l?new Ft([],n):v;if(v&&h>l&&u<o&&v.array.length){c=Yt(c,n);for(var _=c,y=a;y>pr;y-=pr){var m=l>>>y&vr;_=_.array[m]=Yt(_.array[m],n)}_.array[l>>>pr&vr]=v}if(s<o&&(d=d&&d.removeAfter(n,0,s)),u>=h)u-=h,s-=h,a=pr,c=null,d=d&&d.removeBefore(n,0,u);else if(u>i||h<l){for(f=0;c;){var b=u>>>a&vr;if(b!==h>>>a&vr)break;b&&(f+=(1<<a)*b),a-=pr,c=c.array[b]}c&&u>i&&(c=c.removeBefore(n,a,u-f)),c&&h<l&&(c=c.removeAfter(n,a,h-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):Kt(u,s,a,c,d)}function Gt(t,e,r){for(var i=[],u=0,s=0;s<r.length;s++){var a=r[s],c=n(a);c.size>u&&(u=c.size),o(a)||(c=c.map(function(t){return W(t)})),i.push(c)}return u>t.size&&(t=t.setSize(u)),At(t,e,i)}function $t(t){return t<hr?0:t-1>>>pr<<pr}function Qt(t){return null===t||void 0===t?ee():Zt(t)?t:ee().withMutations(function(e){var n=r(t);ft(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function Zt(t){return pt(t)&&c(t)}function te(t,e,r,n){var i=Object.create(Qt.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function ee(){return Xr||(Xr=te(Ot(),Vt()))}function re(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===dr){if(!a)return t;u.size>=hr&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):te(n,i)}function ne(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ue(t){this._iter=t,this.size=t.size}function se(t){var e=Ee(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=ze,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return!1!==e(r,t,n)},r)},e.__iteratorUncached=function(e,r){if(e===gr){var n=t.__iterator(e,r);return new w(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===br?mr:br,r)},e}function ae(t,e,r){var n=Ee(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,dr);return o===dr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return!1!==n(e.call(r,t,i,u),i,o)},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(gr,i);return new w(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return O(n,s,e.call(r,u[1],s,t),i)})},n}function ce(t,e){var r=Ee(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=ze,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function fe(t,e,r,n){var i=Ee(t);return n&&(i.has=function(n){var i=t.get(n,dr);return i!==dr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,dr);return o!==dr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(gr,o),s=0;return new w(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],f=a[1];if(e.call(r,f,c,t))return O(i,n?c:s++,f,o)}})},i}function le(t,e,r){var n=lt().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function pe(t,e,r){var n=u(t),i=(c(t)?Qt():lt()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=je(t);return i.map(function(e){return xe(t,o(e))})}function he(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r===1/0?r=i:r|=0),y(e,r,i))return t;var o=m(e,i),u=b(r,i);if(o!==o||u!==u)return he(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a===a&&(s=a<0?0:a);var c=Ee(t);return c.size=0===s?s:t.size&&s||void 0,!n&&T(t)&&s>=0&&(c.get=function(e,r){return e=d(this,e),e>=0&&e<s?t.get(e+o,r):r}),c.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,c=0;return t.__iterate(function(t,r){if(!a||!(a=u++<o))return c++,!1!==e(t,n?r:c-1,i)&&c!==s}),c},c.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);var i=0!==s&&t.__iterator(e,r),u=0,a=0;return new w(function(){for(;u++<o;)i.next();if(++a>s)return S();var t=i.next();return n||e===br?t:e===mr?O(e,a-1,void 0,t):O(e,a-1,t.value[1],t)})},c}function ve(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(gr,i),s=!0;return new w(function(){if(!s)return S();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return e.call(r,c,a,o)?n===gr?t:O(n,a,c,t):(s=!1,S())})},n}function de(t,e,r,n){var i=Ee(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,c){if(!s||!(s=e.call(r,t,o,c)))return a++,i(t,n?o:a-1,u)}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(gr,o),a=!0,c=0;return new w(function(){var t,o,f;do{if(t=s.next(),t.done)return n||i===br?t:i===mr?O(i,c++,void 0,t):O(i,c++,t.value[1],t);var l=t.value;o=l[0],f=l[1],a&&(a=e.call(r,f,o,u))}while(a);return i===gr?t:O(i,o,f,t)})},i}function _e(t,e){var n=u(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?U(t):N(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var a=i[0];if(a===t||n&&u(a)||s(t)&&s(a))return a}var c=new A(i);return n?c=c.toKeyedSeq():s(t)||(c=c.toSetSeq()),c=c.flatten(!0),c.size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),c}function ye(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){function u(t,c){var f=this;t.__iterate(function(t,i){return(!e||c<e)&&o(t)?u(t,c+1):!1===n(t,r?i:s++,f)&&(a=!0),!a},i)}var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),s=[],a=0;return new w(function(){for(;u;){var t=u.next();if(!1===t.done){var c=t.value;if(n===gr&&(c=c[1]),e&&!(s.length<e)||!o(c))return r?t:O(n,a++,c,t);s.push(u),u=c.__iterator(n,i)}else u=s.pop()}return S()})},n}function me(t,e,r){var n=je(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function be(t,e){var r=Ee(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(br,n),u=0;return new w(function(){return(!i||u%2)&&(i=o.next(),i.done)?i:u%2?O(r,u++,e):O(r,u++,i.value,i)})},r}function ge(t,e,r){e||(e=Me);var n=u(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?M(o):s(t)?D(o):P(o)}function we(t,e,r){if(e||(e=Me),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return Oe(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return Oe(e,t,r)?r:t})}function Oe(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function Se(t,r,n){var i=Ee(t);return i.size=new A(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(br,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=e(t),I(i?t.reverse():t)}),u=0,s=!1;return new w(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?S():O(t,u++,r.apply(null,e.map(function(t){return t.value})))})},i}function xe(t,e){return T(t)?e:t.constructor(e)}function ke(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ie(t){return ft(t.size),v(t)}function je(t){return u(t)?r:s(t)?n:i}function Ee(t){return Object.create((u(t)?M:s(t)?D:P).prototype)}function ze(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function Me(t,e){return t>e?1:t<e?-1:0}function De(t){var r=I(t);if(!r){if(!E(t))throw new TypeError("Expected iterable or array-like: "+t);r=I(e(t))}return r}function Pe(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Re(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=lt(o)},i=n.prototype=Object.create(Gr);return i.constructor=n,n}function Ae(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function qe(t){return t._name||t.constructor.name||"Record"}function Re(t,e){try{e.forEach(Ce.bind(void 0,t))}catch(t){}}function Ce(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Te(t){return null===t||void 0===t?Fe():Le(t)&&!c(t)?t:Fe().withMutations(function(e){var r=i(t);ft(r.size),r.forEach(function(t){return e.add(t)})})}function Le(t){return!(!t||!t[$r])}function Ue(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Ne(t,e){var r=Object.create(Qr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Fe(){return Zr||(Zr=Ne(Ot()))}function Be(t){return null===t||void 0===t?We():Ke(t)?t:We().withMutations(function(e){var r=i(t);ft(r.size),r.forEach(function(t){return e.add(t)})})}function Ke(t){return Le(t)&&c(t)}function Ve(t,e){var r=Object.create(tn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function We(){return en||(en=Ve(ee()))}function Je(t){return null===t||void 0===t?Xe():Ye(t)?t:Xe().unshiftAll(t)}function Ye(t){return!(!t||!t[rn])}function He(t,e,r,n){var i=Object.create(nn);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Xe(){return on||(on=He(0))}function Ge(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function $e(t,e){return e}function Qe(t,e){return[e,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function tr(t){return function(){return-t.apply(this,arguments)}}function er(t){return"string"==typeof t?JSON.stringify(t):String(t)}function rr(){return h(arguments)}function nr(t,e){return t<e?1:t>e?-1:0}function ir(t){if(t.size===1/0)return 0;var e=c(t),r=u(t),n=e?1:0;return or(t.__iterate(r?e?function(t,e){n=31*n+ur(ot(t),ot(e))|0}:function(t,e){n=n+ur(ot(t),ot(e))|0}:e?function(t){n=31*n+ot(t)|0}:function(t){n=n+ot(t)|0}),n)}function or(t,e){return e=zr(e,3432918353),e=zr(e<<15|e>>>-15,461845907),e=zr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=zr(e^e>>>16,2246822507),e=zr(e^e>>>13,3266489909),e=it(e^e>>>16)}function ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var sr=Array.prototype.slice;t(r,e),t(n,e),t(i,e),e.isIterable=o,e.isKeyed=u,e.isIndexed=s,e.isAssociative=a,e.isOrdered=c,e.Keyed=r,e.Indexed=n,e.Set=i;var ar="@@__IMMUTABLE_ITERABLE__@@",cr="@@__IMMUTABLE_KEYED__@@",fr="@@__IMMUTABLE_INDEXED__@@",lr="@@__IMMUTABLE_ORDERED__@@",pr=5,hr=1<<pr,vr=hr-1,dr={},_r={value:!1},yr={value:!1},mr=0,br=1,gr=2,wr="function"==typeof Symbol&&Symbol.iterator,Or="@@iterator",Sr=wr||Or;w.prototype.toString=function(){return"[Iterator]"},w.KEYS=mr,w.VALUES=br,w.ENTRIES=gr,w.prototype.inspect=w.prototype.toSource=function(){return this.toString()},w.prototype[Sr]=function(){return this},t(z,e),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(t,e){return K(this,t,e,!0)},z.prototype.__iterator=function(t,e){return V(this,t,e,!0)},t(M,z),M.prototype.toKeyedSeq=function(){return this},t(D,z),D.of=function(){return D(arguments)},D.prototype.toIndexedSeq=function(){return this},D.prototype.toString=function(){return this.__toString("Seq [","]")},D.prototype.__iterate=function(t,e){return K(this,t,e,!1)},D.prototype.__iterator=function(t,e){return V(this,t,e,!1)},t(P,z),P.of=function(){return P(arguments)},P.prototype.toSetSeq=function(){return this},z.isSeq=T,z.Keyed=M,z.Set=P,z.Indexed=D;var xr="@@__IMMUTABLE_SEQ__@@";z.prototype[xr]=!0,t(A,D),A.prototype.get=function(t,e){return this.has(t)?this._array[d(this,t)]:e},A.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},A.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new w(function(){return i>n?S():O(t,i,r[e?n-i++:i++])})},t(q,M),q.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},q.prototype.has=function(t){return this._object.hasOwnProperty(t)},q.prototype.__iterate=functi