pixel-priya 1.2.77 → 1.2.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -40,7 +40,7 @@ object-assign
40
40
  http://jedwatson.github.io/classnames
41
41
  */!function(){var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,c=l||s||Function("return this")(),d=Object.prototype.toString,u=c.Symbol,f=u?u.prototype:void 0,h=f?f.toString:void 0;function p(e){if("string"==typeof e)return e;if(C(e))return h?h.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function C(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}function g(e){return e?(e=function(e){if("number"==typeof e)return e;if(C(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var l=i.test(e);return l||o.test(e)?a(e.slice(2),l?2:8):r.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}e.exports=function(e,t,n){var r,i,o;return e=null==(r=e)?"":p(r),i=function(e){var t=g(e),n=t%1;return t==t?n?t-n:t:0}(n),o=e.length,i==i&&(void 0!==o&&(i=i<=o?i:o),i=i>=0?i:0),n=i,t=p(t),e.slice(n,n+t.length)==t}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n,r=/^\[object .+?Constructor\]$/,i="object"==typeof t&&t&&t.Object===Object&&t,o="object"==typeof self&&self&&self.Object===Object&&self,a=i||o||Function("return this")(),l=Array.prototype,s=Function.prototype,c=Object.prototype,d=a["__core-js_shared__"],u=(n=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",f=s.toString,h=c.hasOwnProperty,p=c.toString,m=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=l.splice,g=x(a,"Map"),v=x(Object,"create");function y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function w(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function b(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function E(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function M(e){return!(!L(e)||(t=e,u&&u in t))&&(function(e){var t=L(e)?p.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?m:r).test(function(e){if(null!=e){try{return f.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function A(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function x(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return M(n)?n:void 0}function k(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(k.Cache||b),n}function L(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}y.prototype.clear=function(){this.__data__=v?v(null):{}},y.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},y.prototype.get=function(e){var t=this.__data__;if(v){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return h.call(t,e)?t[e]:void 0},y.prototype.has=function(e){var t=this.__data__;return v?void 0!==t[e]:h.call(t,e)},y.prototype.set=function(e,t){return this.__data__[e]=v&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=E(t,e);return!(n<0||(n==t.length-1?t.pop():C.call(t,n,1),0))},w.prototype.get=function(e){var t=this.__data__,n=E(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return E(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,r=E(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},b.prototype.clear=function(){this.__data__={hash:new y,map:new(g||w),string:new y}},b.prototype.delete=function(e){return A(this,e).delete(e)},b.prototype.get=function(e){return A(this,e).get(e)},b.prototype.has=function(e){return A(this,e).has(e)},b.prototype.set=function(e,t){return A(this,e).set(e,t),this},k.Cache=b,e.exports=k}).call(this,n(3))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,c=l||s||Function("return this")(),d=Object.prototype.toString,u=Math.max,f=Math.min,h=function(){return c.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var l=i.test(e);return l||o.test(e)?a(e.slice(2),l?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,a,l,s,c=0,d=!1,C=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function y(e){var n=e-s;return void 0===s||n>=t||n<0||C&&e-c>=o}function w(){var e=h();if(y(e))return b(e);l=setTimeout(w,function(e){var n=t-(e-s);return C?f(n,o-(e-c)):n}(e))}function b(e){return l=void 0,g&&r?v(e):(r=i=void 0,a)}function E(){var e=h(),n=y(e);if(r=arguments,i=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),d?v(e):a}(s);if(C)return l=setTimeout(w,t),v(s)}return void 0===l&&(l=setTimeout(w,t)),a}return t=m(t)||0,p(n)&&(d=!!n.leading,o=(C="maxWait"in n)?u(m(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=i=l=void 0},E.flush=function(){return void 0===l?a:b(h())},E}}).call(this,n(3))},function(e,t,n){(function(e,n){var r="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,c=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[r]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[o]=p["[object RegExp]"]=p[a]=p["[object String]"]=p["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,C="object"==typeof self&&self&&self.Object===Object&&self,g=m||C||Function("return this")(),v=t&&!t.nodeType&&t,y=v&&"object"==typeof n&&n&&!n.nodeType&&n,w=y&&y.exports===v&&m.process,b=function(){try{return w&&w.binding("util")}catch(e){}}(),E=b&&b.isTypedArray;function M(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function A(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function x(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function k(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function L(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var S,_,V,O=Array.prototype,z=Function.prototype,N=Object.prototype,T=g["__core-js_shared__"],I=(S=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",D=z.toString,Z=N.hasOwnProperty,j=N.toString,R=RegExp("^"+D.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=g.Symbol,P=g.Uint8Array,F=N.propertyIsEnumerable,U=O.splice,q=(_=Object.keys,V=Object,function(e){return _(V(e))}),W=be(g,"DataView"),Q=be(g,"Map"),G=be(g,"Promise"),K=be(g,"Set"),Y=be(g,"WeakMap"),X=be(Object,"create"),J=Se(W),$=Se(Q),ee=Se(G),te=Se(K),ne=Se(Y),re=B?B.prototype:void 0,ie=re?re.valueOf:void 0,oe=re?re.toString:void 0;function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new se;++t<n;)this.add(e[t])}function de(e){this.__data__=new le(e)}function ue(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}ae.prototype.clear=function(){this.__data__=X?X(null):{}},ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ae.prototype.get=function(e){var t=this.__data__;if(X){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Z.call(t,e)?t[e]:void 0},ae.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:Z.call(t,e)},ae.prototype.set=function(e,t){return this.__data__[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this},le.prototype.clear=function(){this.__data__=[]},le.prototype.delete=function(e){var t=this.__data__,n=ue(t,e);return!(n<0||(n==t.length-1?t.pop():U.call(t,n,1),0))},le.prototype.get=function(e){var t=this.__data__,n=ue(t,e);return n<0?void 0:t[n][1]},le.prototype.has=function(e){return ue(this.__data__,e)>-1},le.prototype.set=function(e,t){var n=this.__data__,r=ue(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},se.prototype.clear=function(){this.__data__={hash:new ae,map:new(Q||le),string:new ae}},se.prototype.delete=function(e){return we(this,e).delete(e)},se.prototype.get=function(e){return we(this,e).get(e)},se.prototype.has=function(e){return we(this,e).has(e)},se.prototype.set=function(e,t){return we(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},de.prototype.clear=function(){this.__data__=new le},de.prototype.delete=function(e){return this.__data__.delete(e)},de.prototype.get=function(e){return this.__data__.get(e)},de.prototype.has=function(e){return this.__data__.has(e)},de.prototype.set=function(e,t){var n=this.__data__;if(n instanceof le){var r=n.__data__;if(!Q||r.length<199)return r.push([e,t]),this;n=this.__data__=new se(r)}return n.set(e,t),this};var fe,he=(fe=function(e,t){return e&&pe(e,t,Be)},function(e,t){if(null==e)return e;if(!Ne(e))return fe(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e}),pe=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var l=o[++r];if(!1===t(i[l],l,i))break}return e};function me(e,t){for(var n=0,r=(t=Ae(t,e)?[t]:ve(t)).length;null!=e&&n<r;)e=e[He(t[n++])];return n&&n==r?e:void 0}function Ce(e,t){return null!=e&&t in Object(e)}function ge(e,t,n,l,s){return e===t||(null==e||null==t||!De(e)&&!Ze(t)?e!=e&&t!=t:function(e,t,n,l,s,c){var d=ze(e),u=ze(t),f="[object Array]",h="[object Array]";d||(f=(f=Ee(e))==r?o:f),u||(h=(h=Ee(t))==r?o:h);var p=f==o&&!k(e),m=h==o&&!k(t),C=f==h;if(C&&!p)return c||(c=new de),d||Re(e)?ye(e,t,n,l,s,c):function(e,t,n,r,o,l,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new P(e),new P(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ve(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var c=L;case a:var d=2&l;if(c||(c=H),e.size!=t.size&&!d)return!1;var u=s.get(e);if(u)return u==t;l|=1,s.set(e,t);var f=ye(c(e),c(t),r,o,l,s);return s.delete(e),f;case"[object Symbol]":if(ie)return ie.call(e)==ie.call(t)}return!1}(e,t,f,n,l,s,c);if(!(2&s)){var g=p&&Z.call(e,"__wrapped__"),v=m&&Z.call(t,"__wrapped__");if(g||v){var y=g?e.value():e,w=v?t.value():t;return c||(c=new de),n(y,w,l,s,c)}}return!!C&&(c||(c=new de),function(e,t,n,r,i,o){var a=2&i,l=Be(e),s=l.length;if(s!=Be(t).length&&!a)return!1;for(var c=s;c--;){var d=l[c];if(!(a?d in t:Z.call(t,d)))return!1}var u=o.get(e);if(u&&o.get(t))return u==t;var f=!0;o.set(e,t),o.set(t,e);for(var h=a;++c<s;){var p=e[d=l[c]],m=t[d];if(r)var C=a?r(m,p,d,t,e,o):r(p,m,d,e,t,o);if(!(void 0===C?p===m||n(p,m,r,i,o):C)){f=!1;break}h||(h="constructor"==d)}if(f&&!h){var g=e.constructor,v=t.constructor;g==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,l,s,c))}(e,t,ge,n,l,s))}function ve(e){return ze(e)?e:Le(e)}function ye(e,t,n,r,i,o){var a=2&i,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var d=-1,u=!0,f=1&i?new ce:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var h=e[d],p=t[d];if(r)var m=a?r(p,h,d,t,e,o):r(h,p,d,e,t,o);if(void 0!==m){if(m)continue;u=!1;break}if(f){if(!A(t,function(e,t){if(!f.has(t)&&(h===e||n(h,e,r,i,o)))return f.add(t)})){u=!1;break}}else if(h!==p&&!n(h,p,r,i,o)){u=!1;break}}return o.delete(e),o.delete(t),u}function we(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!De(e)||function(e){return!!I&&I in e}(e))&&(Te(e)||k(e)?R:f).test(Se(e))}(n)?n:void 0}var Ee=function(e){return j.call(e)};function Me(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||h.test(e))&&e>-1&&e%1==0&&e<t}function Ae(e,t){if(ze(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!je(e))||s.test(e)||!l.test(e)||null!=t&&e in Object(t)}function xe(e){return e==e&&!De(e)}function ke(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(W&&"[object DataView]"!=Ee(new W(new ArrayBuffer(1)))||Q&&Ee(new Q)!=i||G&&"[object Promise]"!=Ee(G.resolve())||K&&Ee(new K)!=a||Y&&"[object WeakMap]"!=Ee(new Y))&&(Ee=function(e){var t=j.call(e),n=t==o?e.constructor:void 0,r=n?Se(n):void 0;if(r)switch(r){case J:return"[object DataView]";case $:return i;case ee:return"[object Promise]";case te:return a;case ne:return"[object WeakMap]"}return t});var Le=_e(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(je(e))return oe?oe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(d,function(e,t,r,i){n.push(r?i.replace(u,"$1"):t||e)}),n});function He(e){if("string"==typeof e||je(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Se(e){if(null!=e){try{return D.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function _e(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(_e.Cache||se),n}function Ve(e,t){return e===t||e!=e&&t!=t}function Oe(e){return function(e){return Ze(e)&&Ne(e)}(e)&&Z.call(e,"callee")&&(!F.call(e,"callee")||j.call(e)==r)}_e.Cache=se;var ze=Array.isArray;function Ne(e){return null!=e&&Ie(e.length)&&!Te(e)}function Te(e){var t=De(e)?j.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function De(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ze(e){return!!e&&"object"==typeof e}function je(e){return"symbol"==typeof e||Ze(e)&&"[object Symbol]"==j.call(e)}var Re=E?function(e){return function(t){return e(t)}}(E):function(e){return Ze(e)&&Ie(e.length)&&!!p[j.call(e)]};function Be(e){return Ne(e)?function(e){var t=ze(e)||Oe(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],n=t.length,r=!!n;for(var i in e)!Z.call(e,i)||r&&("length"==i||Me(i,n))||t.push(i);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||N))return q(e);var t,n,r=[];for(var i in Object(e))Z.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e)}function Pe(e){return e}n.exports=function(e,t,n){var r=ze(e)?M:x,i=arguments.length<3;return r(e,function(e){return"function"==typeof e?e:null==e?Pe:"object"==typeof e?ze(e)?function(e,t){return Ae(e)&&xe(t)?ke(He(e),t):function(n){var r=function(e,t){var n=null==e?void 0:me(e,t);return void 0===n?void 0:n}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){for(var r,i=-1,o=(t=Ae(t,e)?[t]:ve(t)).length;++i<o;){var a=He(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}return r||!!(o=e?e.length:0)&&Ie(o)&&Me(a,o)&&(ze(e)||Oe(e))}(e,t,Ce)}(n,e):ge(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Be(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,xe(i)]}return t}(e);return 1==t.length&&t[0][2]?ke(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n){var r=n.length,i=r;if(null==e)return!i;for(e=Object(e);r--;){var o=n[r];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r<i;){var a=(o=n[r])[0],l=e[a],s=o[1];if(o[2]){if(void 0===l&&!(a in e))return!1}else if(!ge(s,l,void 0,3,new de))return!1}return!0}(n,0,t)}}(e):Ae(t=e)?(n=He(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return me(t,e)}}(t);var t,n}(t),n,i,he)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){if(Array.isArray(e))return e}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(e){return c(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":c(e)})(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var p=n(0),m=n.n(p),C=n(5),g=n.n(C),v=n(4),y=n.n(v),w=n(6),b=n.n(w),E=n(2),M=n.n(E),A=n(1),x=n.n(A);function k(e,t){return a(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||l()}n(8);var L=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],H=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function S(e,t,n,r,i){return!n||i?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n}function _(e,t,n,i,a){var l,s,c=[];return s=!0===t,[(l=[]).concat.apply(l,o(e.map(function(e){var o={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:S(n,e[3],e[4],i,a),priority:e[5]||0},l=[];return e[6]&&e[6].map(function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}({},o);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,l.push(n)}),l.length>0?(o.mainCode=!0,s||"Array"===t.constructor.name&&t.includes(e[2])?(o.hasAreaCodes=!0,[o].concat(l)):(c=c.concat(l),[o])):[o]}))),c]}function V(e,t,n,r){if(null!==n){var i=Object.keys(n),o=Object.values(n);i.forEach(function(n,i){if(r)return e.push([n,o[i]]);var a=e.findIndex(function(e){return e[0]===n});if(-1===a){var l=[n];l[t]=o[i],e.push(l)}else e[a][t]=o[i]})}}function O(e,t){return 0===t.length?e:e.map(function(e){var n=t.findIndex(function(t){return t[0]===e[2]});if(-1===n)return e;var r=t[n];return r[1]&&(e[4]=r[1]),r[3]&&(e[5]=r[3]),r[2]&&(e[6]=r[2]),e})}var z=function e(t,n,r,i,a,l,c,d,u,f,h,p,m,C){s(this,e),this.filterRegions=function(e,t){if("string"==typeof e){var n=e;return t.filter(function(e){return e.regions.some(function(e){return e===n})})}return t.filter(function(t){return e.map(function(e){return t.regions.some(function(t){return t===e})}).some(function(e){return e})})},this.sortTerritories=function(e,t){var n=[].concat(o(e),o(t));return n.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}),n},this.getFilteredCountryList=function(e,t,n){return 0===e.length?t:n?e.map(function(e){var n=t.find(function(t){return t.iso2===e});if(n)return n}).filter(function(e){return e}):t.filter(function(t){return e.some(function(e){return e===t.iso2})})},this.localizeCountries=function(e,t,n){for(var r=0;r<e.length;r++)void 0!==t[e[r].iso2]?e[r].localName=t[e[r].iso2]:void 0!==t[e[r].name]&&(e[r].localName=t[e[r].name]);return n||e.sort(function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0}),e},this.getCustomAreas=function(e,t){for(var n=[],r=0;r<t.length;r++){var i=JSON.parse(JSON.stringify(e));i.dialCode+=t[r],n.push(i)}return n},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter(function(e){return!t.includes(e.iso2)})};var g=function(e,t,n){var r=[];return V(r,1,e,!0),V(r,3,t),V(r,2,n),r}(d,u,f),v=O(JSON.parse(JSON.stringify(L)),g),y=O(JSON.parse(JSON.stringify(H)),g),w=k(_(v,t,p,m,C),2),b=w[0],E=w[1];if(n){var M=k(_(y,t,p,m,C),2),A=M[0];M[1],b=this.sortTerritories(A,b)}r&&(b=this.filterRegions(r,b)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(i,b,c.includes("onlyCountries")),l),h,c.includes("onlyCountries")),this.preferredCountries=0===a.length?[]:this.localizeCountries(this.getFilteredCountryList(a,b,c.includes("preferredCountries")),h,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(i,E),l)},N=function(e){function t(e){var n;s(this,t),(n=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?u(e):t}(this,f(t).call(this,e))).getProbableCandidate=y()(function(e){return e&&0!==e.length?n.state.onlyCountries.filter(function(t){return M()(t.name.toLowerCase(),e.toLowerCase())},u(u(n)))[0]:null}),n.guessSelectedCountry=y()(function(e,t,r,i){var o;if(!1===n.props.enableAreaCodes&&(i.some(function(t){if(M()(e,t.dialCode))return r.some(function(e){if(t.iso2===e.iso2&&e.mainCode)return o=e,!0}),!0}),o))return o;var a=r.find(function(e){return e.iso2==t});if(""===e.trim())return a;var l=r.reduce(function(t,n){if(M()(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t},{dialCode:"",priority:10001},u(u(n)));return l.name?l:a}),n.updateCountry=function(e){var t,r=n.state.onlyCountries;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?r.find(function(t){return t.dialCode==+e}):r.find(function(t){return t.iso2==e}))&&t.dialCode&&n.setState({selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.formatNumber(t.dialCode,t)})},n.scrollTo=function(e,t){if(e){var r=n.dropdownRef;if(r&&document.body){var i=r.offsetHeight,o=r.getBoundingClientRect().top+document.body.scrollTop,a=o+i,l=e,s=l.getBoundingClientRect(),c=l.offsetHeight,d=s.top+document.body.scrollTop,u=d+c,f=d-o+r.scrollTop,h=i/2-c/2;if(n.props.enableSearch?d<o+32:d<o)t&&(f-=h),r.scrollTop=f;else if(u>a){t&&(f+=h);var p=i-c;r.scrollTop=f-p}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var r,o=t.format,s=n.props,c=s.disableCountryCode,d=s.enableAreaCodeStretch,u=s.enableLongNumbers,f=s.autoFormat;if(c?((r=o.split(" ")).shift(),r=r.join(" ")):d&&t.isAreaCode?((r=o.split(" "))[1]=r[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),r=r.join(" ")):r=o,!e||0===e.length)return c?"":n.props.prefix;if(e&&e.length<2||!r||!f)return c?e:n.props.prefix+e;var h,p=b()(r,function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,r=a(n=e.remainingText)||i(n)||l(),o=r[0],s=r.slice(1);return{formattedText:e.formattedText+o,remainingText:s}},{formattedText:"",remainingText:e.split("")});return(h=u?p.formattedText+p.remainingText.join(""):p.formattedText).includes("(")&&!h.includes(")")&&(h+=")"),h},n.cursorToEnd=function(){var e=n.numberInputRef;if(document.activeElement===e){e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)}},n.getElement=function(e){return n["flag_no_".concat(e)]},n.getCountryData=function(){return n.state.selectedCountry?{name:n.state.selectedCountry.name||"",dialCode:n.state.selectedCountry.dialCode||"",countryCode:n.state.selectedCountry.iso2||"",format:n.state.selectedCountry.format||""}:{}},n.handleFlagDropdownClick=function(e){if(e.preventDefault(),n.state.showDropdown||!n.props.disabled){var t=n.state,r=t.preferredCountries,i=t.onlyCountries,o=t.selectedCountry,a=n.concatPreferredCountries(r,i).findIndex(function(e){return e.dialCode===o.dialCode&&e.iso2===o.iso2});n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:a},function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))})}},n.handleInput=function(e){var t=e.target.value,r=n.props,i=r.prefix,o=r.onChange,a=n.props.disableCountryCode?"":i,l=n.state.selectedCountry,s=n.state.freezeSelection;if(!n.props.countryCodeEditable){var c=i+(l.hasAreaCodes?n.state.onlyCountries.find(function(e){return e.iso2===l.iso2&&e.mainCode}).dialCode:l.dialCode);if(t.slice(0,c.length)!==c)return}if(t===i)return o&&o("",n.getCountryData(),e,""),n.setState({formattedNumber:""});if(t.replace(/\D/g,"").length>15){if(!1===n.props.enableLongNumbers)return;if("number"==typeof n.props.enableLongNumbers&&t.replace(/\D/g,"").length>n.props.enableLongNumbers)return}if(t!==n.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var d=n.props.country,u=n.state,f=u.onlyCountries,h=u.selectedCountry,p=u.hiddenAreaCodes;if(o&&e.persist(),t.length>0){var m=t.replace(/\D/g,"");(!n.state.freezeSelection||h&&h.dialCode.length>m.length)&&(l=n.props.disableCountryGuess?h:n.guessSelectedCountry(m.substring(0,6),d,f,p)||h,s=!1),a=n.formatNumber(m,l),l=l.dialCode?l:h}var C=e.target.selectionStart,g=e.target.selectionStart,v=n.state.formattedNumber,y=a.length-v.length;n.setState({formattedNumber:a,freezeSelection:s,selectedCountry:l},function(){y>0&&(g-=y),")"==a.charAt(a.length-1)?n.numberInputRef.setSelectionRange(a.length-1,a.length-1):g>0&&v.length>=a.length?n.numberInputRef.setSelectionRange(g,g):C<v.length&&n.numberInputRef.setSelectionRange(C,C),o&&o(a.replace(/[^0-9]+/g,""),n.getCountryData(),e,a)})}},n.handleInputClick=function(e){n.setState({showDropdown:!1}),n.props.onClick&&n.props.onClick(e,n.getCountryData())},n.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},n.handleFlagItemClick=function(e,t){var r=n.state.selectedCountry,i=n.state.onlyCountries.find(function(t){return t==e});if(i){var o=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),a=o.length>1?o.replace(r.dialCode,i.dialCode):i.dialCode,l=n.formatNumber(a.replace(/\D/g,""),i);n.setState({showDropdown:!1,selectedCountry:i,freezeSelection:!0,formattedNumber:l,searchValue:""},function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(l.replace(/[^0-9]+/g,""),n.getCountryData(),t,l)})}},n.handleInputFocus=function(e){n.numberInputRef&&n.numberInputRef.value===n.props.prefix&&n.state.selectedCountry&&!n.props.disableCountryCode&&n.setState({formattedNumber:n.props.prefix+n.state.selectedCountry.dialCode},function(){n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)}),n.setState({placeholder:""}),n.props.onFocus&&n.props.onFocus(e,n.getCountryData()),n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)},n.handleInputBlur=function(e){e.target.value||n.setState({placeholder:n.props.placeholder}),n.props.onBlur&&n.props.onBlur(e,n.getCountryData())},n.handleInputCopy=function(e){if(n.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},n.getHighlightCountryIndex=function(e){var t=n.state.highlightCountryIndex+e;return t<0||t>=n.state.onlyCountries.length+n.state.preferredCountries.length?t-e:n.props.enableSearch&&t>n.getSearchFilteredCountries().length?0:t},n.searchCountry=function(){var e=n.getProbableCandidate(n.state.queryString)||n.state.onlyCountries[0],t=n.state.onlyCountries.findIndex(function(t){return t==e})+n.state.preferredCountries.length;n.scrollTo(n.getElement(t),!0),n.setState({queryString:"",highlightCountryIndex:t})},n.handleKeydown=function(e){var t=n.props.keys,r=e.target.className;if(r.includes("selected-flag")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick(e);if(r.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(n.state.showDropdown&&!n.props.disabled&&(!r.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var i=function(e){n.setState({highlightCountryIndex:n.getHighlightCountryIndex(e)},function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)})};switch(e.which){case t.DOWN:i(1);break;case t.UP:i(-1);break;case t.ENTER:n.props.enableSearch?n.handleFlagItemClick(n.getSearchFilteredCountries()[n.state.highlightCountryIndex]||n.getSearchFilteredCountries()[0],e):n.handleFlagItemClick([].concat(o(n.state.preferredCountries),o(n.state.onlyCountries))[n.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:n.setState({showDropdown:!1},n.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&n.setState({queryString:n.state.queryString+String.fromCharCode(e.which)},n.state.debouncedQueryStingSearcher)}}},n.handleInputKeyDown=function(e){var t=n.props,r=t.keys,i=t.onEnterKeyPress,o=t.onKeyDown;e.which===r.ENTER&&i&&i(e),o&&o(e)},n.handleClickOutside=function(e){n.dropdownRef&&!n.dropdownContainerRef.contains(e.target)&&n.state.showDropdown&&n.setState({showDropdown:!1})},n.handleSearchChange=function(e){var t=e.currentTarget.value,r=n.state,i=r.preferredCountries,o=r.selectedCountry,a=0;if(""===t&&o){var l=n.state.onlyCountries;a=n.concatPreferredCountries(i,l).findIndex(function(e){return e==o}),setTimeout(function(){return n.scrollTo(n.getElement(a))},100)}n.setState({searchValue:t,highlightCountryIndex:a})},n.concatPreferredCountries=function(e,t){return e.length>0?o(new Set(e.concat(t))):t},n.getDropdownCountryName=function(e){return e.localName||e.name},n.getSearchFilteredCountries=function(){var e=n.state,t=e.preferredCountries,r=e.onlyCountries,i=e.searchValue,a=n.props.enableSearch,l=n.concatPreferredCountries(t,r),s=i.trim().toLowerCase().replace("+","");if(a&&s){if(/^\d+$/.test(s))return l.filter(function(e){var t=e.dialCode;return["".concat(t)].some(function(e){return e.toLowerCase().includes(s)})});var c=l.filter(function(e){var t=e.iso2;return["".concat(t)].some(function(e){return e.toLowerCase().includes(s)})}),d=l.filter(function(e){var t=e.name,n=e.localName;return e.iso2,["".concat(t),"".concat(n||"")].some(function(e){return e.toLowerCase().includes(s)})});return n.scrollToTop(),o(new Set([].concat(c,d)))}return l},n.getCountryDropdownList=function(){var e=n.state,t=e.preferredCountries,i=e.highlightCountryIndex,o=e.showDropdown,a=e.searchValue,l=n.props,s=l.disableDropdown,c=l.prefix,d=n.props,u=d.enableSearch,f=d.searchNotFound,h=d.disableSearchIcon,p=d.searchClass,C=d.searchStyle,g=d.searchPlaceholder,v=d.autocompleteSearch,y=n.getSearchFilteredCountries().map(function(e,t){var r=i===t,o=x()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:r}),a="flag ".concat(e.iso2);return m.a.createElement("li",Object.assign({ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:o,"data-dial-code":"1",tabIndex:s?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},r?{"aria-selected":!0}:{}),m.a.createElement("div",{className:a}),m.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),m.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):c+e.dialCode))}),w=m.a.createElement("li",{key:"dashes",className:"divider"});t.length>0&&(!u||u&&!a.trim())&&y.splice(t.length,0,w);var b=x()(r({"country-list":!0,hide:!o},n.props.dropdownClass,!0));return m.a.createElement("ul",{ref:function(e){return!u&&e&&e.focus(),n.dropdownRef=e},className:b,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},u&&m.a.createElement("li",{className:x()(r({search:!0},p,p))},!h&&m.a.createElement("span",{className:x()(r({"search-emoji":!0},"".concat(p,"-emoji"),p)),role:"img","aria-label":"Magnifying glass"},"🔎"),m.a.createElement("input",{className:x()(r({"search-box":!0},"".concat(p,"-box"),p)),style:C,type:"search",placeholder:g,autoFocus:!0,autoComplete:v?"on":"off",value:a,onChange:n.handleSearchChange})),y.length>0?y:m.a.createElement("li",{className:"no-entries-message"},m.a.createElement("span",null,f)))};var c,h=new z(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),p=h.onlyCountries,C=h.preferredCountries,v=h.hiddenAreaCodes,w=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:w.length>1?n.guessSelectedCountry(w.substring(0,6),e.country,p,v)||0:e.country&&p.find(function(t){return t.iso2==e.country})||0;var E,A=w.length<2&&c&&!M()(w,c.dialCode)?c.dialCode:"";E=""===w&&0===c?"":n.formatNumber((e.disableCountryCode?"":A)+w,c.name?c:void 0);var k=p.findIndex(function(e){return e==c});return n.state={showDropdown:e.showDropdown,formattedNumber:E,onlyCountries:p,preferredCountries:C,hiddenAreaCodes:v,selectedCountry:c,highlightCountryIndex:k,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:g()(n.searchCountry,250),searchValue:""},n}var n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),(n=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,n){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,n=t.onlyCountries,r=t.selectedCountry,i=t.hiddenAreaCodes,o=this.props,a=o.country,l=o.prefix;if(""===e)return this.setState({selectedCountry:r,formattedNumber:""});var s,c,d=e.replace(/\D/g,"");if(r&&M()(e,l+r.dialCode))c=this.formatNumber(d,r),this.setState({formattedNumber:c});else{var u=(s=this.props.disableCountryGuess?r:this.guessSelectedCountry(d.substring(0,6),a,n,i)||r)&&M()(d,l+s.dialCode)?s.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":u)+d,s||void 0),this.setState({selectedCountry:s,formattedNumber:c})}}},{key:"render",value:function(){var e,t,n,i=this,o=this.state,a=o.onlyCountries,l=o.selectedCountry,s=o.showDropdown,c=o.formattedNumber,d=o.hiddenAreaCodes,u=this.props,f=u.disableDropdown,h=u.renderStringAsFlag,p=u.isValid,C=u.defaultErrorMessage,g=u.specialLabel;if("boolean"==typeof p)t=p;else{var v=p(c.replace(/\D/g,""),l,a,d);"boolean"==typeof v?!1===(t=v)&&(n=C):(t=!1,n=v)}var y=x()((r(e={},this.props.containerClass,!0),r(e,"react-tel-input",!0),e)),w=x()({arrow:!0,up:s}),b=x()(r({"form-control":!0,"invalid-number":!t,open:s},this.props.inputClass,!0)),E=x()({"selected-flag":!0,open:s}),M=x()(r({"flag-dropdown":!0,"invalid-number":!t,open:s},this.props.buttonClass,!0)),A="flag ".concat(l&&l.iso2);return m.a.createElement("div",{className:"".concat(y," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},g&&m.a.createElement("div",{className:"special-label"},g),n&&m.a.createElement("div",{className:"invalid-number-message"},n),m.a.createElement("input",Object.assign({className:b,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:c,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(e){i.numberInputRef=e,"function"==typeof i.props.inputProps.ref?i.props.inputProps.ref(e):"object"==typeof i.props.inputProps.ref&&(i.props.inputProps.ref.current=e)}})),m.a.createElement("div",{className:M,style:this.props.buttonStyle,ref:function(e){return i.dropdownContainerRef=e}},h?m.a.createElement("div",{className:E},h):m.a.createElement("div",{onClick:f?void 0:this.handleFlagDropdownClick,className:E,title:l?"".concat(l.localName||l.name,": + ").concat(l.dialCode):"",tabIndex:f?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!s||void 0},m.a.createElement("div",{className:A},!f&&m.a.createElement("div",{className:w}))),s&&this.getCountryDropdownList()))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(m.a.Component);N.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=N}])),iL),lL=H(aL),sL={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function cL(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return dL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dL(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uL(e,t){for(var n,r=0,i=cL(t.split(""));!(n=i()).done;){n.value===e&&r++}return r}function fL(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return hL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hL(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(e){return{text:e}};var r=uL(t,e);return function(i){if(!i)return{text:"",template:e};for(var o,a=0,l="",s=fL(e.split(""));!(o=s()).done;){var c=o.value;if(c===t){if(l+=i[a],++a===i.length&&i.length<r)break}else l+=c}return n&&(l=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",i=e.length,o=uL("(",e)-uL(")",e);o>0&&i<t.length;)e+=t[i].replace(n,r),")"===t[i]&&o--,i++;return e}(l,e)),{text:l,template:e}}}var mL=8,CL=46;function gL(e,t){void 0!==t&&(!function(){if("undefined"!=typeof navigator)return vL.test(navigator.userAgent)}()?e.setSelectionRange(t,t):setTimeout(function(){return e.setSelectionRange(t,t)},0))}var vL=/Android/i;function yL(e,t,n,r,i){if(!t.hasAttribute("readonly")){var o=function(e){switch(e.keyCode){case mL:return"Backspace";case CL:return"Delete"}}(e);switch(o){case"Delete":case"Backspace":e.preventDefault();var a=function(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}(t);return a?(function(e,t){var n=e.value;n=n.slice(0,t.start)+n.slice(t.end),e.value=n,gL(e,t.start)}(t,a),wL(t,n,r,void 0,i)):wL(t,n,r,o,i)}}}function wL(e,t,n,r,i){var o=function(e,t,n){for(var r={},i="",o=0,a=0;a<e.length;){var l=n(e[a],i,r);void 0!==l&&(i+=l,void 0!==t&&(t===a?o=i.length-1:t>a&&(o=i.length))),a++}return void 0===t&&(o=i.length),{value:i,caret:o}}(e.value,e.selectionStart,t),a=o.value,l=o.caret;if(r){var s=function(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1)}return{value:e,caret:t}}(a,l,r);a=s.value,l=s.caret}var c=function(e,t,n){"string"==typeof n&&(n=pL(n));var r=n(e)||{},i=r.text,o=r.template;if(void 0===i&&(i=e),o)if(void 0===t)t=i.length;else{for(var a=0,l=!1,s=-1;a<i.length&&a<o.length;){if(i[a]!==o[a]){if(0===t){l=!0,t=a;break}s=a,t--}a++}l||(t=s+1)}return{text:i,caret:t}}(a,l,n),d=c.text;l=c.caret,e.value=d,gL(e,l),i&&i(a)}var bL=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function EL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ML(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EL(Object(n),!0).forEach(function(t){AL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function AL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xL(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kL(e){var t=e.ref,n=e.parse,r=e.format,i=e.value,o=e.defaultValue,l=e.controlled,s=void 0===l||l,c=e.onChange,d=e.onKeyDown,u=xL(e,bL),f=a(),h=p(function(e){f.current=e,t&&("function"==typeof t?t(e):t.current=e)},[t]),m=p(function(e){wL(f.current,n,r,void 0,c)},[f,n,r,c]),C=p(function(e){if(d&&d(e),!e.defaultPrevented)return yL(e,f.current,n,r,c)},[f,n,r,c,d]),g=ML(ML({},u),{},{ref:h,onChange:m,onKeyDown:C});return ML(ML({},g),{},s?{value:r(LL(i)?"":i).text}:{defaultValue:r(LL(o)?"":o).text})}function LL(e){return null==e}var HL=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function SL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VL(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function OL(e,t){var n=e.inputComponent,r=void 0===n?"input":n,o=e.parse,a=e.format,l=e.value,s=e.defaultValue,c=e.onChange,d=e.controlled,u=e.onKeyDown,f=e.type,h=kL(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SL(Object(n),!0).forEach(function(t){_L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t,parse:o,format:a,value:l,defaultValue:s,onChange:c,controlled:d,onKeyDown:u,type:void 0===f?"text":f},VL(e,HL)));return i.createElement(r,h)}function zL(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var o=Number(n[i]),a=Number(r[i]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}(OL=i.forwardRef(OL)).propTypes={parse:Wh.func.isRequired,format:Wh.func.isRequired,inputComponent:Wh.elementType,type:Wh.string,value:Wh.string,defaultValue:Wh.string,onChange:Wh.func,controlled:Wh.bool,onKeyDown:Wh.func,onCut:Wh.func,onPaste:Wh.func};var NL={}.constructor;function TL(e){return null!=e&&e.constructor===NL}function IL(e){return IL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IL(e)}function DL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZL(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jL(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jL(e){var t=function(e,t){if("object"!=IL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=IL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==IL(t)?t:t+""}var RL=" ext. ",BL=/^\d+$/,PL=function(){return ZL(function e(t){DL(this,e),GL(t),this.metadata=t,JL.call(this,t)},[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&BL.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new FL(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new FL(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),FL=function(){return ZL(function e(t,n){DL(this,e),this.globalMetadataObject=n,this.metadata=t,JL.call(this,n.metadata)},[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map(function(t){return new UL(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&QL(this.types(),e))return new WL(QL(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?RL:this.metadata[13]||RL}}])}(),UL=function(){return ZL(function e(t,n){DL(this,e),this._format=t,this.metadata=n},[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||qL.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),qL=/^\(?\$1\)?$/,WL=function(){return ZL(function e(t,n){DL(this,e),this.type=t,this.metadata=n},[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function QL(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function GL(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!TL(e)||!TL(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(TL(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+KL(e)+": "+e,"."))}var KL=function(e){return IL(e)};function YL(e,t){if((t=new PL(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function XL(e,t){return t.countries.hasOwnProperty(e)}function JL(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===zL(t,"1.2.0")?this.v2=!0:-1===zL(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function $L(e,t,n){return function(e,t,n,r){t&&(r=new PL(r.metadata)).selectNumberingPlan(t);var i=r.type(n),o=i&&i.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";var a=e.length,l=o[0];if(l===a)return"IS_POSSIBLE";if(l>a)return"TOO_SHORT";if(o[o.length-1]<a)return"TOO_LONG";return o.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,t,void 0,n)}function eH(e,t,n){return"IS_POSSIBLE"===$L(e,t,n)}function tH(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function nH(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return rH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rH(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var iH=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function oH(e,t,n){if(t=t||{},e.country||e.countryCallingCode){(n=new PL(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(tH(r,n.nationalNumberPattern())){if(aH(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?aH(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var i,o=nH(iH);!(i=o()).done;){var a=i.value;if(aH(r,a,n))return a}}}}function aH(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&tH(e,t.pattern()))}function lH(e,t,n){var r=new PL(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return function(e,t,n){var r=new PL(n);if(r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,n)}):[]}var sH="0-90-9٠-٩۰-۹",cH="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),dH=new RegExp("(["+sH+"])");function uH(e,t,n,r){if(t){var i=new PL(r);i.selectNumberingPlan(t,n);var o=new RegExp(i.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(dH);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}function fH(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,o,a,l=r.length-1,s=l>0&&r[l];if(t.nationalPrefixTransformRule()&&s)i=e.replace(n,t.nationalPrefixTransformRule()),l>1&&(o=r[1]);else{var c=r[0];i=e.slice(c.length),s&&(o=r[1])}if(s){var d=e.indexOf(r[1]);e.slice(0,d)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=r[0];return{nationalNumber:i,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}function hH(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return pH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pH(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mH(e,t){var n=t.countries,r=t.metadata;r=new PL(r);for(var i,o=hH(n);!(i=o()).done;){var a=i.value;if(r.selectNumberingPlan(a),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return a}else if(oH({phone:e,country:a},void 0,r.metadata))return a}}function CH(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return 1===i.length?i[0]:mH(n,{countries:i,metadata:r.metadata})}function gH(e,t,n){var r=fH(e,n),i=r.carrierCode,o=r.nationalNumber;if(o!==e){if(!function(e,t,n){if(tH(e,n.nationalNumberPattern())&&!tH(t,n.nationalNumberPattern()))return!1;return!0}(e,o,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=CH(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!function(e,t,n){switch($L(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,n)))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:i}}function vH(e,t,n,r,i){var o=t||n?YL(t||n,i):r;if(0===e.indexOf(o)){(i=new PL(i)).selectNumberingPlan(t||n,o);var a=e.slice(o.length),l=gH(a,t,i).nationalNumber,s=gH(e,t,i).nationalNumber;if(!tH(s,i.nationalNumberPattern())&&tH(l,i.nationalNumberPattern())||"TOO_LONG"===$L(s,t,i))return{countryCallingCode:o,number:a}}return{number:e}}function yH(e,t,n,r,i){if(!e)return{};var o;if("+"!==e[0]){var a=uH(e,t||n,r,i);if(!a||a===e){if(t||n||r){var l=vH(e,t,n,r,i),s=l.countryCallingCode,c=l.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:c}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};i=new PL(i);for(var d=2;d-1<=3&&d<=e.length;){var u=e.slice(1,d);if(i.hasCallingCode(u))return i.selectNumberingPlan(u),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(d)};d++}return{}}function wH(e){return e.replace(new RegExp("[".concat(cH,"]+"),"g")," ").trim()}var bH=/(\$\d)/;function EH(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(bH,t.nationalPrefixFormattingRule()):t.format());return r?wH(o):o}var MH=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var AH=function(e){return"([".concat(sH,"]{1,").concat(e,"})")};function xH(e){var t="[  \\t,]*",n="[:\\..]?[  \\t,-]*",r="#?",i="[  \\t]*";return";ext="+AH("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+AH("20")+r)+"|"+(t+"(?:[xx##~~]|int|int)"+n+AH("9")+r)+"|"+("[- ]+"+AH("6")+"#")+"|"+(i+"(?:,{2}|;)"+n+AH("15")+r)+"|"+(i+"(?:,)+"+n+AH("9")+r)}var kH="["+sH+"]{2}",LH="[++]{0,1}(?:["+cH+"]*["+sH+"]){3,}["+cH+sH+"]*",HH=new RegExp("^[++]{0,1}(?:["+cH+"]*["+sH+"]){1,2}$","i"),SH=LH+"(?:"+xH()+")?",_H=new RegExp("^"+kH+"$|^"+SH+"$","i");var VH={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function OH(e,t,n,r){if(n=n?function(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}({},VH,n):VH,r=new PL(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var i,o=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return a?NH(i=zH(a,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return a?(i=zH(a,null,"INTERNATIONAL",r,n),NH(i="+".concat(o," ").concat(i),e.ext,r,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(a);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(o).concat(a),ext:e.ext});case"IDD":if(!n.fromCountry)return;var l=function(e,t,n,r,i){var o=YL(r,i.metadata);if(o===n){var a=zH(e,t,"NATIONAL",i);return"1"===n?n+" "+a:a}var l=function(e,t,n){var r=new PL(n);return r.selectNumberingPlan(e,t),r.defaultIDDPrefix()?r.defaultIDDPrefix():MH.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,void 0,i.metadata);if(l)return"".concat(l," ").concat(n," ").concat(zH(e,null,"INTERNATIONAL",i))}(a,e.carrierCode,o,n.fromCountry,r);return NH(l,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function zH(e,t,n,r,i){var o,a,l=(o=r.formats(),a=e,function(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}(o,function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==a.search(t))return!1}return tH(a,e.pattern())}));return l?EH(e,l,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!l.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:t,metadata:r}):e}function NH(e,t,n,r){return t?r(e,t,n):e}function TH(e){return TH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TH(e)}function IH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IH(Object(n),!0).forEach(function(t){ZH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZH(e,t,n){return(t=RH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jH(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RH(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RH(e){var t=function(e,t){if("object"!=TH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=TH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==TH(t)?t:t+""}var BH=function(){return jH(function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("First argument is required");if("string"!=typeof t)throw new TypeError("First argument must be a string");if("+"===t[0]&&!n)throw new TypeError("`metadata` argument not passed");if(TL(n)&&TL(n.countries)){r=n;var i=t;if(!FH.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=yH(i,void 0,void 0,void 0,r);if(t=o.countryCallingCode,!(n=o.number))throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw new TypeError("`nationalNumber` argument must be a string");GL(r);var a=function(e,t){var n,r,i=new PL(t);PH(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e;return{country:n,countryCallingCode:r}}(t,r),l=a.country,s=a.countryCallingCode;this.country=l,this.countryCallingCode=s,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}},[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:lH(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new PL(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return eH(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(e,t,n){return t=t||{},(n=new PL(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==oH(e,t,n.metadata):tH(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new PL(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return oH(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return OH(this,e,t?DH(DH({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])}(),PH=function(e){return/^[A-Z]{2}$/.test(e)};var FH=/^\+\d+$/;function UH(e){return UH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UH(e)}function qH(e,t,n){return t=KH(t),function(e,t){if(t&&("object"==UH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,QH()?Reflect.construct(t,n||[],KH(e).constructor):t.apply(e,n))}function WH(e){var t="function"==typeof Map?new Map:void 0;return WH=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(QH())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&GH(i,n.prototype),i}(e,arguments,KH(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),GH(n,e)},WH(e)}function QH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(QH=function(){return!!e})()}function GH(e,t){return GH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GH(e,t)}function KH(e){return KH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KH(e)}var YH=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=qH(this,e,[t]),Object.setPrototypeOf(n,e.prototype),n.name=n.constructor.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GH(e,t)}(e,WH(Error)),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),XH=new RegExp("(?:"+xH()+")$","i");function JH(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $H(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$H(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var eS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function tS(e){return eS[e]}function nS(e){for(var t,n="",r=JH(e.split(""));!(t=r()).done;){var i=tS(t.value);i&&(n+=i)}return n}function rS(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return iS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iS(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function iS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oS(e){for(var t,n="",r=rS(e.split(""));!(t=r()).done;){n+=aS(t.value,n)||""}return n}function aS(e,t,n){return"+"===e?t?void("function"==typeof n&&n("end")):"+":tS(e)}var lS="(["+sH+"]|[\\-\\.\\(\\)]?)",sS=new RegExp("^\\+"+lS+"*["+sH+"]"+lS+"*$","g"),cS=new RegExp("^("+("["+sH+"]+((\\-)*["+sH+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+sH+"])*")+"\\.?$","g"),dS="tel:",uS=";phone-context=";function fS(e,t){var n,r=t.extractFormattedPhoneNumber,i=function(e){var t=e.indexOf(uS);if(t<0)return null;var n=t+15;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(sS.test(e)||cS.test(e))}(i))throw new YH("NOT_A_NUMBER");if(null===i)n=r(e)||"";else{n="","+"===i.charAt(0)&&(n+=i);var o,a=e.indexOf(dS);o=a>=0?a+4:0;var l=e.indexOf(uS);n+=e.substring(o,l)}var s=n.indexOf(";isub=");if(s>0&&(n=n.substring(0,s)),""!==n)return n}var hS=new RegExp("[++"+sH+"]"),pS=new RegExp("[^"+sH+"#]+$");function mS(e,t,n){if(t=t||{},n=new PL(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new YH("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){var r=fS(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>250){if(n)throw new YH("TOO_LONG");return}if(!1===t)return e;var r=e.search(hS);if(r<0)return;return e.slice(r).replace(pS,"")}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=2&&_H.test(e)}(r))return function(e){return HH.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(XH);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(XH),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}(r);if(i.ext)return i;return{number:r}}(e,t.v2,t.extract),i=r.number,o=r.ext,a=r.error;if(!i){if(t.v2){if("TOO_SHORT"===a)throw new YH("TOO_SHORT");throw new YH("NOT_A_NUMBER")}return{}}var l=function(e,t,n,r){var i,o=yH(oS(e),void 0,t,n,r.metadata),a=o.countryCallingCodeSource,l=o.countryCallingCode,s=o.number;if(l)r.selectNumberingPlan(l);else{if(!s||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(i=t),l=n||YL(t,r.metadata)}if(!s)return{countryCallingCodeSource:a,countryCallingCode:l};var c=gH(oS(s),i,r),d=c.nationalNumber,u=c.carrierCode,f=CH(l,{nationalNumber:d,metadata:r});f&&(i=f,"001"===f||r.selectNumberingPlan(i));return{country:i,countryCallingCode:l,countryCallingCodeSource:a,nationalNumber:d,carrierCode:u}}(i,t.defaultCountry,t.defaultCallingCode,n),s=l.country,c=l.nationalNumber,d=l.countryCallingCode,u=l.countryCallingCodeSource,f=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new YH("INVALID_COUNTRY");return{}}if(!c||c.length<2){if(t.v2)throw new YH("TOO_SHORT");return{}}if(c.length>17){if(t.v2)throw new YH("TOO_LONG");return{}}if(t.v2){var h=new BH(d,c,n.metadata);return s&&(h.country=s),f&&(h.carrierCode=f),o&&(h.ext=o),h.__countryCallingCodeSource=u,h}var p=!!(t.extended?n.hasSelectedNumberingPlan():s)&&tH(c,n.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:d,carrierCode:f,valid:p,possible:!!p||!(!0!==t.extended||!n.possibleLengths()||!eH(c,s,n)),phone:c,ext:o}:p?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(s,c,o):{}}function CS(e){return CS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CS(e)}function gS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gS(Object(n),!0).forEach(function(t){yS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=CS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=CS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==CS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wS(e){return wS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wS(e)}function bS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ES(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=wS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=wS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return AS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AS(e,t):void 0}}(e,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 AS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xS(e){var t,n,r,i=MS(Array.prototype.slice.call(e),4),o=i[0],a=i[1],l=i[2],s=i[3];if("string"!=typeof o)throw new TypeError("A text for parsing must be a string.");if(t=o,a&&"string"!=typeof a){if(!TL(a))throw new Error("Invalid second argument: ".concat(a));l?(n=a,r=l):r=a}else s?(n=l,r=s):(n=void 0,r=l),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bS(Object(n),!0).forEach(function(t){ES(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({defaultCountry:a},n));return{text:t,options:n,metadata:r}}function kS(e){return kS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kS(e)}function LS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LS(Object(n),!0).forEach(function(t){SS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=kS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=kS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _S(e,t,n){t&&t.defaultCountry&&!XL(t.defaultCountry,n)&&(t=HS(HS({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return mS(e,vS(vS({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof YH))throw e}}function VS(e){return VS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VS(e)}function OS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OS(Object(n),!0).forEach(function(t){NS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=VS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=VS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TS(){var e=xS(arguments),t=e.text,n=e.options,r=e.metadata,i=_S(t,n=zS(zS({},n),{},{extract:!1}),r);return i&&i.isValid()||!1}function IS(e){return IS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IS(e)}function DS(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZS(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZS(e){var t=function(e,t){if("object"!=IS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=IS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==IS(t)?t:t+""}var jS=function(){return DS(function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onCountryChange=n,this.onCallingCodeChange=r},[{key:"reset",value:function(e){var t=e.country,n=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,n)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this[r]=e[r]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])}();function RS(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return BS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BS(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function BS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var PS="x",FS=new RegExp(PS);function US(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function qS(e,t){return")"===e[t]&&t++,function(e){var t=[],n=0;for(;n<e.length;)"("===e[n]?t.push(n):")"===e[n]&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var o=0,a=t;o<a.length;o++){var l=a[o];i+=e.slice(r,l),r=l+1}return i}(e.slice(0,t))}function WS(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var a=QS(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:o,metadata:r});if(a)return a}return QS(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:o,metadata:r})}(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:o})}function QS(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix,a=EH(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?a=e.nationalPrefix+o(t)+a:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(a=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+a)),function(e,t){return nS(e)===t.getNationalDigits()}(a,e))return a}function GS(e){return GS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GS(e)}function KS(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YS(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YS(e){var t=function(e,t){if("object"!=GS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=GS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==GS(t)?t:t+""}var XS=function(){return KS(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],n=t.branches,r=t.instructions;if(n)return{op:"|",args:n.concat([t_(r)])};if(0===r.length)throw new Error("Pattern is required");return 1===r.length?r[0]:r}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw new Error("Pattern is required");var t=e.match(e_);if(t){var n=t[1],r=e.slice(0,t.index),i=e.slice(t.index+n.length);switch(n){case"(?:":r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(r&&this.parsePattern(r),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext().branches;o.push(t_(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:o});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(r&&this.parsePattern(r),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(t_(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:JS(r)});break;default:throw new Error("Unknown operator: ".concat(n))}i&&this.parsePattern(i)}else{if($S.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}])}();function JS(e){for(var t=[],n=0;n<e.length;){if("-"===e[n]){if(0===n||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,o=r;o<=i;)t.push(String.fromCharCode(o)),o++}else t.push(e[n]);n++}return t}var $S=/[\(\)\[\]\?\:\|]/,e_=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function t_(e){return 1===e.length?e[0]:e}function n_(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r_(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i_(e){return i_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i_(e)}function o_(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a_(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a_(e){var t=function(e,t){if("object"!=i_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i_(t)?t:t+""}var l_=function(){return o_(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matchTree=(new XS).parse(t)},[{key:"match",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOverflow;if(!e)throw new Error("String is required");var n=s_(e.split(""),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!n||!n.overflow||t)return n}}])}();function s_(e,t,n){if("string"==typeof t){var r=e.join("");return 0===t.indexOf(r)?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===r.indexOf(t)?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),o=0;o<t.length;){var a=s_(i,t[o],n&&o===t.length-1);if(!a)return;if(a.overflow)return a;if(!a.match){if(a.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(a,null,2)))}if(0===(i=i.slice(a.matchedChars.length)).length)return o===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0};o++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var l,s,c=n_(t.args);!(s=c()).done;){var d=s_(e,s.value,n);if(d){if(d.overflow)return d;if(d.match)return{match:!0,matchedChars:d.matchedChars};if(!d.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(d,null,2)));l=!0}}return l?{partialMatch:!0}:void 0;case"[]":for(var u,f=n_(t.args);!(u=f()).done;){var h=u.value;if(e[0]===h)return 1===e.length?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[h]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function c_(e){return c_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c_(e)}function d_(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u_(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f_(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h_(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h_(e){var t=function(e,t){if("object"!=c_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=c_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==c_(t)?t:t+""}var p_=US("9",15),m_=/[- ]/,C_=new RegExp("["+cH+"]*\\$1["+cH+"]*(\\$\\d["+cH+"]*)*$"),g_=function(){return f_(function e(t){t.state;var n=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=n,this.resetFormat()},[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var n=this;if(function(e,t,n){return"IS_POSSIBLE"===$L(e,t,n)}(t.nationalSignificantNumber,t.country,this.metadata))for(var r,i=d_(this.matchingFormats);!(r=i()).done;){var o=r.value,a=WS(t,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return n.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return n.getSeparatorAfterNationalPrefix(e)}});if(a)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(a.replace(/\d/g,PS),t),this.populatedNationalNumberTemplate=a,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(PS),a}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var n=this.chosenFormat,r=this.chooseFormat(t);if(r)return r===n?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,n=e.nationalSignificantNumber,r=e.nationalPrefix,i=e.international,o=n,a=o.length-3;a<0&&(a=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,i,r)&&t.formatMatches(e,o,a)}),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,n){return!(n&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat())&&!(!t&&!n&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,n){var r=e.leadingDigitsPatterns().length;if(0===r)return!0;n=Math.min(n,r-1);var i=e.leadingDigitsPatterns()[n];if(t.length<3)try{return void 0!==new l_(i).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp("^(".concat(i,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,n=this,r=function(){var r=t.value;return n.chosenFormat===r?0:C_.test(n.getFormatFormat(r,e.international))?n.createTemplateForFormat(r,e)?(n.chosenFormat=r,0):(n.matchingFormats=n.matchingFormats.filter(function(e){return e!==r}),1):1},i=d_(this.matchingFormats.slice());!(t=i()).done&&0!==r(););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var n=this.getTemplateForFormat(e,t);return n?(this.setNationalNumberTemplate(n,t),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&m_.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var n=e.IDDPrefix,r=e.missingPlus;return n?t&&!1===t.spacing?n:n+" ":r?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,n=0,r=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";n<r.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(PS,t+1),n++;return qS(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,PS)+US(PS,t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var n=t.nationalSignificantNumber,r=t.international,i=t.nationalPrefix,o=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=e.pattern();a=a.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var l=p_.match(a)[0];if(!(n.length>l.length)){var s=new RegExp("^"+a+"$"),c=n.replace(/\d/g,"9");s.test(c)&&(l=c);var d,u=this.getFormatFormat(e,r);if(this.shouldTryNationalPrefixFormattingRule(e,{international:r,nationalPrefix:i})){var f=u.replace(bH,e.nationalPrefixFormattingRule());if(nS(e.nationalPrefixFormattingRule())===(i||"")+nS("$1")&&(u=f,d=!0,i))for(var h=i.length;h>0;)u=u.replace(/\d/,PS),h--}var p=l.replace(new RegExp(a),u).replace(new RegExp("9","g"),PS);return d||(o?p=US(PS,o.length)+" "+p:i&&(p=US(PS,i.length)+this.getSeparatorAfterNationalPrefix(e)+p)),r&&(p=wH(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,n){for(var r,i=RS(n.split(""));!(r=i()).done;){var o=r.value;if(e.slice(t+1).search(FS)<0)return;t=e.search(FS),e=e.replace(FS,o)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],qS(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var n=t.international,r=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var i=e.usesNationalPrefix();if(i&&r||!i&&!n)return!0}}}])}();function v_(e){return v_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v_(e)}function y_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w_(e,t):void 0}}(e,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 w_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b_(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E_(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E_(e){var t=function(e,t){if("object"!=v_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=v_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==v_(t)?t:t+""}var M_=new RegExp("^"+("["+cH+sH+"]+")+"$","i"),A_="(?:[++]["+cH+sH+"]*|["+cH+sH+"]+)",x_=new RegExp("[^"+cH+sH+"]+.*$"),k_=/[^\d\[\]]/,L_=function(){return b_(function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,o=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=o},[{key:"input",value:function(e,t){var n,r=function(e){var t=function(e){var t=function(e){var t,n=e.search(A_);if(n<0)return;e=e.slice(n),"+"===e[0]&&(t=!0,e=e.slice(1));e=e.replace(x_,""),t&&(e="+"+e);return e}(e)||"";if("+"===t[0])return[t.slice(1),!0];return[t]}(e),n=y_(t,2),r=n[0],i=n[1];M_.test(r)||(r="");return[r,i]}(e),i=y_(r,2),o=i[0],a=i[1],l=nS(o);return a&&(t.digits||(t.startInternationalNumber(void 0,void 0),l||(n=!0))),l&&this.inputDigits(l,t),{digits:l,justLeadingPlus:n}}},{key:"inputDigits",value:function(e,t){var n=t.digits,r=n.length<3&&n.length+e.length>=3;if(t.appendDigits(e),r&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,n=e.callingCode;return t&&!n}},{key:"extractCountryCallingCode",value:function(e){var t=yH("+"+e.getDigitsWithoutInternationalPrefix(),e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode,r=t.number;if(n)return e.setCallingCode(n),e.update({nationalSignificantNumber:r}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&k_.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var n=fH(e,this.metadata),r=n.nationalPrefix,i=n.nationalNumber,o=n.carrierCode;if(i!==e)return this.onExtractedNationalNumber(r,o,i,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=fH(e,this.metadata),i=r.nationalPrefix,o=r.nationalNumber,a=r.carrierCode;if(o!==t)return this.onExtractedNationalNumber(i,a,o,e,n),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,n,r,i){var o,a=!1,l=r.lastIndexOf(n);if(l<0||l!==r.length-n.length)a=!0;else{var s=r.slice(0,l);s&&s!==e&&(o=s)}i({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:n,nationalSignificantNumberIsModified:a,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,function(t){return e.update(t)})||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,n=e.IDDPrefix,r=e.digits;if(e.nationalSignificantNumber,!t&&!n){var i=uH(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==i&&i!==r?(e.update({IDDPrefix:r.slice(0,r.length-i.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=vH(e.digits,e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata).countryCallingCode;if(t)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:t}),!0}}},{key:"startInternationalNumber",value:function(e,t){var n=t.country,r=t.callingCode;e.startInternationalNumber(n,r),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}}])}();function H_(e){return H_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H_(e)}function S_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return __(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?__(e,t):void 0}}(e,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 __(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function V_(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O_(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O_(e){var t=function(e,t){if("object"!=H_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=H_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==H_(t)?t:t+""}var z_=function(){return V_(function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new PL(n);var r=S_(this.getCountryAndCallingCode(t),2),i=r[0],o=r[1];this.defaultCountry=i,this.defaultCallingCode=o,this.reset()},[{key:"getCountryAndCallingCode",value:function(e){var t,n;return e&&(TL(e)?(t=e.defaultCountry,n=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,n]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),n=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(n){var r;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(n,this.state)),void 0===r&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var i=this.state.getNationalDigits();i&&(r=this.formatter.format(i,this.state))}this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new jS({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,n){e.metadata.selectNumberingPlan(n,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new g_({state:this.state,metadata:this.metadata}),this.parser=new L_({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){return this.state.country}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var n=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},r=this.state.callingCode;return n(r?e?"".concat(r," ").concat(e):r:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,r=e.nationalPrefix,i=t,o=n||r;return o&&(i=o+i),i}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(e?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,PS)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(CH(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,n=e.callingCode,r=e.country,i=e.nationalSignificantNumber;if(t)return this.isInternational()?n?"+"+n+i:"+"+t:r||n?"+"+(r?this.metadata.countryCallingCode():n)+i:void 0}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.carrierCode,r=e.callingCode,i=this._getCountry();if(t&&(i||r)){if(i&&i===this.defaultCountry){var o=new PL(this.metadata.metadata);o.selectNumberingPlan(i);var a=o.numberingPlan.callingCode(),l=this.metadata.getCountryCodesForCallingCode(a);if(l.length>1){var s=mH(t,{countries:l,metadata:this.metadata.metadata});s&&(i=s)}}var c=new BH(i||r,t,this.metadata.metadata);return n&&(c.carrierCode=n),c}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])}();function N_(e){return new PL(e).getCountries()}function T_(e){var t=e.inputFormat,n=e.country,r=e.metadata;return"NATIONAL_PART_OF_INTERNATIONAL"===t?"+".concat(YL(n,r)):""}function I_(e,t){return t&&" "===(e=e.slice(t.length))[0]&&(e=e.slice(1)),e}function D_(e,t,n){if(!n||!n.ignoreRest){return aS(e,t,function(e){if(n&&"end"===e)n.ignoreRest=!0})}}function Z_(e){var t=e.onKeyDown,n=e.inputFormat;return p(function(e){e.keyCode===j_&&"INTERNATIONAL"===n&&e.target instanceof HTMLInputElement&&e.target.selectionStart===R_.length?e.preventDefault():t&&t(e)},[t,n])}var j_=8,R_="+",B_=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function P_(){return P_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P_.apply(this,arguments)}function F_(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var U_=function(e){function t(t,n){var r=t.onKeyDown,o=t.country,a=t.inputFormat,l=t.metadata,s=void 0===l?e:l;t.international,t.withCountryCallingCode;var c=F_(t,B_),d=p(function(e){var t=new z_(o,s),n=T_({inputFormat:a,country:o,metadata:s}),r=t.input(n+e),i=t.getTemplate();return n&&(r=I_(r,n),i&&(i=I_(i,n))),{text:r,template:i}},[o,s]),u=Z_({onKeyDown:r,inputFormat:a});return i.createElement(OL,P_({},c,{ref:n,parse:D_,format:d,onKeyDown:u}))}return(t=i.forwardRef(t)).propTypes={value:Wh.string.isRequired,onChange:Wh.func.isRequired,onKeyDown:Wh.func,country:Wh.string,inputFormat:Wh.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Wh.object},t}(),q_=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function W_(){return W_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W_.apply(this,arguments)}function Q_(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var G_=function(e){function t(t,n){var r=t.value,o=t.onChange,a=t.onKeyDown,l=t.country,s=t.inputFormat,c=t.metadata,d=void 0===c?e:c,u=t.inputComponent,f=void 0===u?"input":u;t.international,t.withCountryCallingCode;var h=Q_(t,q_),m=T_({inputFormat:s,country:l,metadata:d}),C=p(function(e){var t=oS(e.target.value);t===r&&(0===K_(m,t,l,d).indexOf(e.target.value)&&(t=t.slice(0,-1)));o(t)},[m,r,o,l,d]),g=Z_({onKeyDown:a,inputFormat:s});return i.createElement(f,W_({},h,{ref:n,value:K_(m,r,l,d),onChange:C,onKeyDown:g}))}return(t=i.forwardRef(t)).propTypes={value:Wh.string.isRequired,onChange:Wh.func.isRequired,onKeyDown:Wh.func,country:Wh.string,inputFormat:Wh.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Wh.object,inputComponent:Wh.elementType},t}();function K_(e,t,n,r){return I_(function(e,t,n){return n||(n=t,t=void 0),new z_(t,n).input(e)}(e+t,n,r),e)}function Y_(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var X_=["value","onChange","options","disabled","readOnly"],J_=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function $_(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return eV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eV(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function eV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tV(){return tV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tV.apply(this,arguments)}function nV(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rV(e){var t=e.value,n=e.onChange,r=e.options,o=e.disabled,a=e.readOnly,l=nV(e,X_),s=p(function(e){var t=e.target.value;n("ZZ"===t?void 0:t)},[n]);return h(function(){return lV(r,t)},[r,t]),i.createElement("select",tV({},l,{disabled:o||a,readOnly:a,value:t||"ZZ",onChange:s}),r.map(function(e){var t=e.value,n=e.label,r=e.divider;return i.createElement("option",{key:r?"|":t||"ZZ",value:r?"|":t||"ZZ",disabled:!!r,style:r?iV:void 0},n)}))}rV.propTypes={value:Wh.string,onChange:Wh.func.isRequired,options:Wh.arrayOf(Wh.shape({value:Wh.string,label:Wh.string,divider:Wh.bool})).isRequired,disabled:Wh.bool,readOnly:Wh.bool};var iV={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function oV(e){var t=e.value,n=e.options,r=e.className,o=e.iconComponent;e.getIconAspectRatio;var a,l=e.arrowComponent,s=void 0===l?aV:l,c=e.unicodeFlags,d=nV(e,J_),u=h(function(){return lV(n,t)},[n,t]);return i.createElement("div",{className:"PhoneInputCountry"},i.createElement(rV,tV({},d,{value:t,options:n,className:z("PhoneInputCountrySelect",r)})),u&&(c&&t?i.createElement("div",{className:"PhoneInputCountryIconUnicode"},Y_((a=t)[0])+Y_(a[1])):i.createElement(o,{"aria-hidden":!0,country:t,label:u.label,aspectRatio:c?1:void 0})),i.createElement(s,null))}function aV(){return i.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function lV(e,t){for(var n,r=$_(e);!(n=r()).done;){var i=n.value;if(!i.divider&&sV(i.value,t))return i}}function sV(e,t){return null==e?null==t:e===t}oV.propTypes={iconComponent:Wh.elementType,arrowComponent:Wh.elementType,unicodeFlags:Wh.bool};var cV=["country","countryName","flags","flagUrl"];function dV(){return dV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dV.apply(this,arguments)}function uV(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fV(e){var t=e.country,n=e.countryName,r=e.flags,o=e.flagUrl,a=uV(e,cV);return r&&r[t]?r[t]({title:n}):i.createElement("img",dV({},a,{alt:n,role:n?void 0:"presentation",src:o.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}fV.propTypes={country:Wh.string.isRequired,countryName:Wh.string.isRequired,flags:Wh.objectOf(Wh.elementType),flagUrl:Wh.string.isRequired};var hV=["aspectRatio"],pV=["title"],mV=["title"];function CV(){return CV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CV.apply(this,arguments)}function gV(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vV(e){var t=e.aspectRatio,n=gV(e,hV);return 1===t?i.createElement(wV,n):i.createElement(yV,n)}function yV(e){var t=e.title,n=gV(e,pV);return i.createElement("svg",CV({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),i.createElement("title",null,t),i.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},i.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),i.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),i.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),i.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),i.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),i.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),i.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}function wV(e){var t=e.title,n=gV(e,mV);return i.createElement("svg",CV({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),i.createElement("title",null,t),i.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},i.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),i.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),i.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),i.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),i.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),i.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),i.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}function bV(e){(function(e){if(e.length<2)return!1;if("+"!==e[0])return!1;for(var t=1;t<e.length;){var n=e.charCodeAt(t);if(!(n>=48&&n<=57))return!1;t++}return!0})(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function EV(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return MV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MV(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function MV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AV(e,t){return!!XL(e,t)||(console.error("Country not found: ".concat(e)),!1)}function xV(e,t){return e&&0===(e=e.filter(function(e){return AV(e,t)})).length&&(e=void 0),e}vV.propTypes={title:Wh.string.isRequired,aspectRatio:Wh.number},yV.propTypes={title:Wh.string.isRequired},wV.propTypes={title:Wh.string.isRequired};var kV=["country","label","aspectRatio"];function LV(){return LV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LV.apply(this,arguments)}function HV(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SV(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,o=e.internationalIcon;function a(e){var a=e.country,l=e.label,s=e.aspectRatio,c=HV(e,kV),d=o===vV?s:void 0;return i.createElement("div",LV({},c,{className:z("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":1===d,"PhoneInputCountryIcon--border":a})}),a?i.createElement(r,{country:a,countryName:l,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):i.createElement(o,{title:l,aspectRatio:d,className:"PhoneInputCountryIconImg"}))}return a.propTypes={country:Wh.string,label:Wh.string.isRequired,aspectRatio:Wh.number},a}function _V(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return VV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VV(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function VV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OV(e,t){"function"==typeof e?e(t):e.current=t}SV({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:fV,internationalIcon:vV});var zV=Wh.shape({country_calling_codes:Wh.object.isRequired,countries:Wh.object.isRequired}),NV=Wh.objectOf(Wh.string);function TV(e,t){return"+"+YL(e,t)}function IV(e,t){return function(){var e=xS(arguments);return _S(e.text,e.options,e.metadata)}(e||"",t)}function DV(e,t){var n=t.prevCountry,r=t.newCountry,i=t.metadata,o=t.useNationalFormat;if(n===r)return e;if(!e)return o?"":r?TV(r,i):"";if(r){if("+"===e[0]){if(o)return 0===e.indexOf("+"+YL(r,i))?function(e,t,n){if(t){var r="+"+YL(t,n);if(e.length<r.length){if(0===r.indexOf(e))return""}else if(0===e.indexOf(r))return e.slice(r.length)}for(var i=0,o=Object.keys(n.country_calling_codes);i<o.length;i++){var a=o[i];if(1===e.indexOf(a))return e.slice(1+a.length)}return""}(e,r,i):"";if(n){var a=TV(r,i);return 0===e.indexOf(a)?e:a}var l=TV(r,i);return 0===e.indexOf(l)?e:l}}else if("+"!==e[0])return ZV(e,n,i)||"";return e}function ZV(e,t,n){if(e){if("+"===e[0]){if("+"===e)return;var r=new z_(t,n);return r.input(e),r.getNumberValue()}if(t){var i=FV(e,t,n);return"+".concat(YL(t,n)).concat(i||"")}}}function jV(e,t,n){var r=FV(e,t,n);if(r){var i=r.length-function(e,t){return t=new PL(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}(t,n);if(i>0)return e.slice(0,e.length-i)}return e}function RV(e,t){var n=t.country,r=t.countries,i=t.defaultCountry,o=t.latestCountrySelectedByUser,a=t.required,l=t.metadata;if("+"===e)return n;var s=function(e,t){var n=new z_(null,t);return n.input(e),n.getCountry()}(e,l);if(s)return!r||r.indexOf(s)>=0?s:void 0;if(n)if(UV(e,n,l)){if(o&&UV(e,o,l))return o;if(i&&UV(e,i,l))return i;if(!a)return}else if(!a)return;return n}function BV(e,t,n){if(0===e.indexOf(TV(t,n))){var r=new z_(t,n);r.input(e);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}return e.replace(/\D/g,"")}function PV(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function FV(e,t,n){var r=new z_(t,n);r.input(e);var i=r.getNumber();return i&&i.nationalNumber}function UV(e,t,n){for(var r=TV(t,n),i=0;i<e.length&&i<r.length;){if(e[i]!==r[i])return!1;i++}return!0}function qV(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,i=e.international,o=e.useNationalFormat,a=e.metadata;return(!1===i||o)&&n&&n.country?function(e){return e.formatNational().replace(/\D/g,"")}(n):!t&&i&&r?TV(r,a):t}function WV(e){return WV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WV(e)}function QV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QV(Object(n),!0).forEach(function(t){KV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=WV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=WV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==WV(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YV(e,t){return null===e&&(e=void 0),null===t&&(t=void 0),e===t}var XV=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function JV(e){return JV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JV(e)}function $V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$V(Object(n),!0).forEach(function(t){sO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$V(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tO(){return tO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tO.apply(this,arguments)}function nO(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cO(r.key),r)}}function iO(e,t,n){return t=aO(t),function(e,t){if(t&&("object"===JV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oO()?Reflect.construct(t,n||[],aO(e).constructor):t.apply(e,n))}function oO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oO=function(){return!!e})()}function aO(e){return aO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aO(e)}function lO(e,t){return lO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lO(e,t)}function sO(e,t,n){return(t=cO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cO(e){var t=function(e,t){if("object"!=JV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=JV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==JV(t)?t:t+""}var dO=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),sO(n=iO(this,e,[t]),"setInputRef",function(e){!function(e,t){for(var n,r=_V(e);!(n=r()).done;){var i=n.value;i&&OV(i,t)}}([n.props.inputRef,n.inputRef],e)}),sO(n,"isCountrySupportedWithError",function(e){return AV(e,n.props.metadata)}),sO(n,"onCountryChange",function(e){var t=n.props,r=t.international,i=t.metadata,o=t.onChange,a=t.focusInputOnCountrySelection,l=n.state,s=DV(l.phoneDigits,{prevCountry:l.country,newCountry:e,metadata:i,useNationalFormat:!r}),c=ZV(s,e,i);a&&n.inputRef.current.focus(),n.setState({country:e,latestCountrySelectedByUser:e,hasUserSelectedACountry:!0,phoneDigits:s,value:c},function(){o(c)})}),sO(n,"onChange",function(e){var t=n.props,r=t.defaultCountry,i=t.onChange,o=t.addInternationalOption,a=t.international,l=t.limitMaxLength,s=t.countryCallingCodeEditable,c=t.metadata,d=n.state,u=d.countries,f=d.phoneDigits,h=d.country,p=d.latestCountrySelectedByUser,m=function(e,t){var n,r=t.prevPhoneDigits,i=t.country,o=t.defaultCountry,a=t.latestCountrySelectedByUser,l=t.countryRequired,s=t.getAnyCountry,c=t.countries,d=t.international,u=t.limitMaxLength,f=t.countryCallingCodeEditable,h=t.metadata;if(d&&!1===f&&i){var p,m=TV(i,h);if(0!==e.indexOf(m))return e&&"+"!==e[0]?p=ZV(e=m+e,i,h):e=m,{phoneDigits:e,value:p,country:i}}return!1===d&&i&&e&&"+"===e[0]&&(e=BV(e,i,h)),e&&i&&u&&(e=jV(e,i,h)),!e||"+"===e[0]||i&&!d||(e="+"+e),!e&&r&&"+"===r[0]&&(i=d?void 0:o),"+"===e&&r&&"+"===r[0]&&r.length>1&&(i=void 0),e&&(n="+"===e[0]&&("+"===e||i&&0===TV(i,h).indexOf(e))?void 0:ZV(e,i,h)),n&&(i=RV(n,{country:i,countries:c,defaultCountry:o,latestCountrySelectedByUser:a,required:!1,metadata:h}),!1===d&&i&&e&&"+"===e[0]&&(n=ZV(e=BV(e,i,h),i,h))),!i&&l&&(i=o||s()),{phoneDigits:e,country:i,value:n}}(e,{prevPhoneDigits:f,country:h,countryRequired:!o,defaultCountry:r,latestCountrySelectedByUser:p,getAnyCountry:function(){return n.getFirstSupportedCountry({countries:u})},countries:u,international:a,limitMaxLength:l,countryCallingCodeEditable:s,metadata:c}),C=m.phoneDigits,g=m.country,v=m.value,y={phoneDigits:C,value:v,country:g};p&&v&&!UV(v,p,c)&&(y.latestCountrySelectedByUser=void 0),!1===s&&(v||C!==n.state.phoneDigits||(y.forceRerender={})),n.setState(y,function(){return i(v)})}),sO(n,"_onFocus",function(){return n.setState({isFocused:!0})}),sO(n,"_onBlur",function(){return n.setState({isFocused:!1})}),sO(n,"onFocus",function(e){n._onFocus();var t=n.props.onFocus;t&&t(e)}),sO(n,"onBlur",function(e){var t=n.props.onBlur;n._onBlur(),t&&t(e)}),sO(n,"onCountryFocus",function(e){n._onFocus();var t=n.props.countrySelectProps;if(t){var r=t.onFocus;r&&r(e)}}),sO(n,"onCountryBlur",function(e){n._onBlur();var t=n.props.countrySelectProps;if(t){var r=t.onBlur;r&&r(e)}}),n.inputRef=i.createRef();var r=n.props,o=r.value;r.labels;var a=r.international,l=r.addInternationalOption,s=r.displayInitialValueAsLocalNumber,c=r.initialValueFormat,d=r.metadata,u=n.props,f=u.defaultCountry,h=u.countries;f&&(n.isCountrySupportedWithError(f)||(f=void 0)),o&&bV(o),h=xV(h,d);var p=IV(o,d);n.CountryIcon=SV(n.props);var m=function(e){var t,n=e.value,r=e.phoneNumber,i=e.defaultCountry,o=e.getAnyCountry,a=e.countries,l=e.required,s=e.metadata;return r&&r.country?t=r.country:i&&(n&&!UV(n,i,s)||(t=i)),a&&a.indexOf(t)<0&&(t=void 0),!t&&l&&a&&a.length>0&&(t=o()),t}({value:o,phoneNumber:p,defaultCountry:f,required:!l,countries:h||N_(d),getAnyCountry:function(){return n.getFirstSupportedCountry({countries:h})},metadata:d});return n.state={props:n.props,country:m,countries:h,phoneDigits:qV({value:o,phoneNumber:p,defaultCountry:f,international:a,useNationalFormat:s||"national"===c,metadata:d}),value:o},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lO(e,t)}(e,i.PureComponent),t=e,n=[{key:"componentDidMount",value:function(){var e=this.props.onCountryChange,t=this.props.defaultCountry,n=this.state.country;e&&(t&&(this.isCountrySupportedWithError(t)||(t=void 0)),n!==t&&e(n))}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.onCountryChange,r=this.state.country;n&&r!==t.country&&n(r)}},{key:"getCountrySelectOptions",value:function(e){var t=e.countries,n=this.props,r=n.international,i=n.countryCallingCodeEditable,o=n.countryOptionsOrder,a=n.addInternationalOption,l=n.labels,s=n.locales,c=n.metadata;return this.useMemoCountrySelectOptions(function(){return function(e,t){if(!t)return e;for(var n,r=[],i=[],o=r,a=function(){var t=n.value;if("|"===t)o.push({divider:!0});else if("..."===t||"…"===t)o=i;else{var r;r="🌐"===t?void 0:t;var a=e.indexOf(e.filter(function(e){return e.value===r})[0]),l=e[a];e.splice(a,1),o.push(l)}},l=EV(t);!(n=l()).done;)a();return r.concat(e).concat(i)}(function(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,i=e.compareStringsLocales,o=e.compareStrings;o||(o=PV);var a=t.map(function(e){return{value:e,label:n[e]||e}});return a.sort(function(e,t){return o(e.label,t.label,i)}),r&&a.unshift({label:n.ZZ}),a}({countries:t||N_(c),countryNames:l,addInternationalOption:(!r||!1!==i)&&a,compareStringsLocales:s}),function(e,t){if(e&&(e=e.filter(function(e){switch(e){case"🌐":case"|":case"...":case"…":return!0;default:return AV(e,t)}})).length>0)return e}(o,c))},[t,o,a,l,c])}},{key:"useMemoCountrySelectOptions",value:function(e,t){return this.countrySelectOptionsMemoDependencies&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}(t,this.countrySelectOptionsMemoDependencies)||(this.countrySelectOptionsMemo=e(),this.countrySelectOptionsMemoDependencies=t),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(e){var t=e.countries;return this.getCountrySelectOptions({countries:t})[0].value}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.disabled,r=e.readOnly,o=e.autoComplete,a=e.style,l=e.className;e.inputRef;var s=e.inputComponent,c=e.numberInputProps,d=e.smartCaret,u=e.countrySelectComponent,f=e.countrySelectProps,h=e.containerComponent,p=e.containerComponentProps;e.defaultCountry,e.countries,e.countryOptionsOrder;var m=e.labels;e.flags,e.flagComponent,e.flagUrl,e.addInternationalOption,e.internationalIcon,e.displayInitialValueAsLocalNumber,e.initialValueFormat,e.onCountryChange,e.limitMaxLength,e.countryCallingCodeEditable,e.focusInputOnCountrySelection,e.reset;var C=e.metadata,g=e.international;e.locales;var v=nO(e,XV),y=this.state,w=y.country,b=y.countries,E=y.phoneDigits,M=y.isFocused,A=d?U_:G_,x=this.getCountrySelectOptions({countries:b});return i.createElement(h,tO({style:a,className:z(l,"PhoneInput",{"PhoneInput--focus":M,"PhoneInput--disabled":n,"PhoneInput--readOnly":r})},p),i.createElement(u,tO({name:t?"".concat(t,"Country"):void 0,"aria-label":m.country},f,{value:w,options:x,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:n||f&&f.disabled,readOnly:r||f&&f.readOnly,iconComponent:this.CountryIcon})),i.createElement(A,tO({ref:this.setInputRef,type:"tel",autoComplete:o},c,v,{inputFormat:!0===g?"INTERNATIONAL":!1===g?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:!!g||void 0,withCountryCallingCode:!!g||void 0,name:t,metadata:C,country:w,value:E||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:n,readOnly:r,inputComponent:s,className:z("PhoneInputInput",c&&c.className,v.className)})))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return eO({props:e},function(e,t,n){var r=e.metadata,i=e.countries,o=e.defaultCountry,a=e.value,l=e.reset,s=e.international,c=e.displayInitialValueAsLocalNumber,d=e.initialValueFormat,u=t.defaultCountry,f=t.value,h=t.reset;n.country;var p=n.value,m=n.hasUserSelectedACountry,C=n.latestCountrySelectedByUser,g=function(e){return qV(GV(GV({},e),{},{international:s,useNationalFormat:c||"national"===d,metadata:r}))};if(l!==h)return{phoneDigits:g({value:void 0,defaultCountry:o}),value:void 0,country:o,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(o!==u){var v=!o||AV(o,r),y=!p||s&&p===g({value:void 0,defaultCountry:u});if(!m&&v&&!a&&y)return{country:o,phoneDigits:g({value:void 0,defaultCountry:o}),value:void 0}}if(!YV(a,f)&&!YV(a,p)){var w,b,E;if(a){a&&bV(a),w=IV(a,r);var M=xV(i,r);w&&w.country?(!M||M.indexOf(w.country)>=0)&&(b=w.country):(b=RV(a,{country:void 0,countries:M,metadata:r}))||o&&0===a.indexOf(TV(o,r))&&(b=o)}return a?C&&((b?C===b:UV(a,C,r))?b||(b=C):E={latestCountrySelectedByUser:void 0}):E={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0},GV(GV({},E),{},{phoneDigits:g({phoneNumber:w,value:a,defaultCountry:o}),value:a,country:a?b:o})}}(e,t.props,t))}}],n&&rO(t.prototype,n),r&&rO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),uO=i.forwardRef(function(e,t){return i.createElement(dO,tO({},function(e){for(var t in e=eO({},e),fO)void 0===e[t]&&(e[t]=fO[t]);return e}(e),{inputRef:t}))});uO.propTypes={value:Wh.string,onChange:Wh.func.isRequired,onFocus:Wh.func,onBlur:Wh.func,disabled:Wh.bool,readOnly:Wh.bool,autoComplete:Wh.string,initialValueFormat:Wh.oneOf(["national"]),displayInitialValueAsLocalNumber:Wh.bool,defaultCountry:Wh.string,countries:Wh.arrayOf(Wh.string),labels:NV,locales:Wh.oneOfType([Wh.string,Wh.arrayOf(Wh.string)]),flagUrl:Wh.string,flags:Wh.objectOf(Wh.elementType),flagComponent:Wh.elementType,addInternationalOption:Wh.bool,internationalIcon:Wh.elementType,countryOptionsOrder:Wh.arrayOf(Wh.string),style:Wh.object,className:Wh.string,countrySelectComponent:Wh.elementType,countrySelectProps:Wh.object,inputComponent:Wh.elementType,numberInputProps:Wh.object,containerComponent:Wh.elementType,containerComponentProps:Wh.object,smartCaret:Wh.bool,international:Wh.bool,limitMaxLength:Wh.bool,countryCallingCodeEditable:Wh.bool,metadata:zV,onCountryChange:Wh.func,focusInputOnCountrySelection:Wh.bool};var fO={autoComplete:"tel",countrySelectComponent:oV,flagComponent:fV,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:vV,inputComponent:"input",containerComponent:"div",reset:Wh.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};var hO={ext:"ext.",country:"Phone number country",phone:"Phone",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XA:"Abkhazia",XK:"Kosovo",XO:"South Ossetia",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"},pO=["metadata","labels"];function mO(){return mO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mO.apply(this,arguments)}function CO(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gO(e){var t=i.forwardRef(function(t,n){var r=t.metadata,o=void 0===r?e:r,a=t.labels,l=void 0===a?hO:a,s=CO(t,pO);return i.createElement(uO,mO({},s,{ref:n,metadata:o,labels:l}))});return t.propTypes={metadata:zV,labels:NV},t}function vO(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(sL),e.apply(this,n)}(TS,arguments)}gO(),gO(sL);const yO=({country:t,value:r,onChange:i,width:o="100%",placeholder:a="Enter phone number",onFocus:s,onBlur:d,id:u,dropdownStyle:f={},enableAreaCodeStretch:h=!1,disabled:p=!1,isValid:m=!0,isVerified:C=!1,isVerifyDisplay:g=!1,onVerifyClick:v=()=>{},onValidationChange:y=()=>{}})=>{const[w,b]=c(r),[E,M]=c(!1),[A,x]=c(m),[k,L]=c(t);l(()=>{if(r){let e=r;e.startsWith("+")||(e=`+${e}`),b(e)}},[r]);const H=e=>{const t=vO(e),n=!!e&&e.replace(/[^\d]/g,"").length<=3,r=t||n;x(r),y(r)};return n("div",{id:u,children:[e(lL,{specialLabel:"",countryCodeEditable:!1,country:t,value:w,onChange:(e,t)=>{const n=t?.countryCode?.toLowerCase(),r=e.replace(/[^0-9+]/g,"");if(k?.toLowerCase()!==n)return b(t?.dialCode),i(t?.dialCode),L(n),void x(!0);let o=r;o.startsWith("+")||(o=`+${o}`),b(o),i(o),H(o)},inputStyle:{width:o,height:"32px",border:E?"1px solid var(--brand-color)":A?"1px solid var(--default-color)":"1px solid var(--error_light)",borderRadius:"4px",fontSize:"14px",transition:"border-color 0.3s ease"},enableSearch:!0,placeholder:a,onFocus:e=>{M(!0),s&&s(e)},onBlur:e=>{M(!1),d&&d(e),H(w)},dropdownStyle:f,enableAreaCodeStretch:h,disabled:p}),!A&&!E&&e(F,{color:"var(--error_light)",className:"error",fontSize:10,children:"Invalid phone number format"}),C?e(F,{color:"var(--phone-number-verified-color)",children:"Verified"}):vO(w)&&g&&!C&&e(F,{color:"var(--brand-color)",className:"cursor_pointer",onClick:v,children:"Verify"})]})},wO=(e,t,n)=>{const r=[...e],i=r[t];let o;o=r[n+1]?r[n-1]?n>t?(r[n].executionOrder+r[n+1].executionOrder)/2:(r[n].executionOrder+r[n-1].executionOrder)/2:r[n].executionOrder/2:r[n].executionOrder+1;const a={...i,executionOrder:o,...i._id?{id:i._id}:{}};return r.splice(t,1),r.splice(n,0,a),r},bO=(e,t)=>{if(!e)return"";const n=new Date(e),r=n.getDate().toString().padStart(2,"0"),i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n.getMonth()],o=n.getFullYear(),a=(n.getMonth()+1).toString().padStart(2,"0");switch(t){case"dd MMM yyyy":default:return`${r} ${i} ${o}`;case"MMM dd yyyy":return`${i} ${r} ${o}`;case"yyyy dd MM":return`${o} ${r} ${a}`}},EO=e=>{const t={};return e.forEach((e,n)=>{t[n]?t[n]=Array.isArray(t[n])?[...t[n],e]:[t[n],e]:t[n]=e}),t},MO=(e,t,n,r)=>{let i,o;const a=()=>{if(r){const e=((e,t)=>e.findIndex(e=>e.key===t))(t,r);if(-1===e)throw new Error(`Key "${r}" not found in oldData.`);return e}return 0},l=[...n];switch(e){case"above":i=[...l,...t].slice(0,100);break;case"below":i=[...t,...l].slice(-100);break;case"expand":case"expandAll":case"collapseAll":case"collapse":const n=a();if(void 0===n)throw new Error("Both sourceId and index are required for 'expand' or 'collapse' actions.");0!==n||["above","below"].includes(e)||G(l)||!l[0]||(l[0]={...l[0],lastResource:!0}),i=[...t.slice(0,n),...l].slice(-40);break;case"addAbove":const r=a();if(void 0===r)throw new Error("Both sourceId and index are required for 'addAbove' action.");i=[...t.slice(0,r),...l,...t.slice(r)];break;case"addBelow":const s=a();if(void 0===s)throw new Error("Both sourceId and index are required for 'addBelow' action.");i=[...t.slice(0,s+1),...l,...t.slice(s+1)];break;case"start":case"show":case"hide":case"clone":case"create":case"refresh":case"delete":if(G(l))throw new Error("Tree data list is empty, cannot determine root.");o=l[0],i=l.slice(1);break;default:throw new Error(`Invalid action: ${e}`)}if(G(i)&&!["start","delete","hide","refresh"].includes(e))throw new Error("Tree data list is empty.");const s=i[0]||o,c=i[i.length-1]||{lastResource:!0,key:""};return{treeDataList:i,next:!c?.lastResource,previous:!s?.lastResource,startId:s?.key,endId:c?.key,root:o}},AO=(e,t)=>{const n=t.searchKey?.split("/")||[];return G(n)||e.map(e=>(n.includes(e.key)&&(e.state=t.state),e)),e},xO=e=>{l(()=>{const t=t=>{e&&t.preventDefault()};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[e])},kO=(e,t,n,r)=>{if(!t)throw new Error("Key is required");const i=new Map,o=new Map,a=new Set;let l=[...e];n&&!G(n)&&(l=[n,...e]),l.forEach(e=>{i.set(e.key,e),e.parentId&&(o.has(e.parentId)||o.set(e.parentId,[]),o.get(e.parentId).push(e))});const s=i.get(t);return s&&(s.selectedStatus=r?"completely":"none",function e(t,n){if(a.has(t))throw new Error(`Cycle detected at node: ${t}`);a.add(t),(o.get(t)||[]).forEach(t=>{t.selectedStatus=n,e(t.key,n)}),a.delete(t)}(t,s.selectedStatus),function e(t){if(a.has(t))throw new Error(`Cycle detected at node: ${t}`);a.add(t);const n=i.get(t);if(n&&n.parentId){const t=i.get(n.parentId);t&&(t.selectedStatus=function(e){const t=i.get(e);if(!t)return"none";const n=(t.resourceCount??0)+(t.subContainerCount??0)+(t.conditionCount??0);if(0===n)return t.selectedStatus??"none";const r=o.get(e)||[];let a=0,l=!1;for(const e of r)"completely"===e.selectedStatus?a++:"partially"===e.selectedStatus&&(l=!0);return a===n?"completely":l||a>0?"partially":"none"}(t.key),e(t.key))}a.delete(t)}(t)),G(n)?{data:l}:{rootNode:l[0],data:l.slice(1)}};function LO(e,t){const n=t?new Map(t.map(e=>[e.key,e])):null;return e.map(e=>{const t=n?.get(e.key);return{...e,...t||{},selectedStatus:"none"}})}const HO=(e,t,n,r,i=!1)=>{if(!t)throw new Error("Key is required");const o=new Map,a=new Map,l=new Set;let s=[...e];n&&!G(n)&&(s=[n,...e]),s.forEach(e=>{o.set(e.key,e),e.parentId&&(a.has(e.parentId)||a.set(e.parentId,[]),a.get(e.parentId).push(e))});const c=o.get(t);if(c)if(c.expanded=r,r){(a.get(t)||[]).forEach(e=>e.hide=!!i)}else c.expandedAll=!1,function e(t,n){if(l.has(t))throw new Error(`Cycle detected at node: ${t}`);l.add(t),(a.get(t)||[]).forEach(t=>{t.hide=n,t.expanded=!1,e(t.key,!0)}),l.delete(t)}(t,!0);return G(n)?{data:s}:{rootNode:s[0],data:s.slice(1)}},SO=e=>`${e.getDate().toString().padStart(2,"0")}/${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getFullYear()}`,_O=(e,t,n)=>{
42
42
  //!Note : This function is used to override the stepId because in some step Groups we are using the same stepId for multiple steps. So we need to override the stepId for the new steps.
43
- let r=n?.map(e=>({...e,stepId:gp()}));return e.map(e=>e.stepId===t&&["Group","PRE","POST","Script"].includes(e.type)?{...e,data:[...r||[]]}:e.data?{...e,data:_O(e.data,t,r)}:e)},VO=(e,t,n,r)=>e.map(e=>e.title===t?{...e,data:_O(e.data,n,r)}:e),OO=e=>{let t;if(e.includes("T"))t=new Date(e);else{const[n,r]=e.split(" ");if(!n||!r)throw new Error("Invalid input format. Expected 'DD-MM-YYYY HH:mm'");const[i,o,a]=n.split("-"),[l,s]=r.split(":");t=new Date(parseInt(a||"",10),parseInt(o||"",10)-1,parseInt(i||"",10),parseInt(l||"",10),parseInt(s||"",10))}const n=`${t.getFullYear()}-${("0"+(t.getMonth()+1)).slice(-2)}-${("0"+t.getDate()).slice(-2)}`,r=`${("0"+t.getHours()).slice(-2)}:${("0"+t.getMinutes()).slice(-2)}:00`;return new Date(`${n}T${r}`)},zO=e=>{const t=new Date;return new Intl.DateTimeFormat("en-US",{timeZone:e,weekday:"long",year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}).format(t)},NO=({data:r,level:i=0,columnCount:o=1,viewModeId:a,ViewComponent:l,handleClick:s,handleStepGroupExpand:c,isStepGroupExpanded:d})=>{const u=0===i?26:i+8,h=p(e=>["PRE","POST","Group"].includes(e)?"6px 8px":"7px 8px",[]);return e(t,{children:r?.map(t=>{const r=a===t.stepId,i=d?.(t.stepId),p=h(t.type);return n(f,{children:[e("tr",r?{className:"pre-edit-row",id:"getInFocus",children:e("td",{colSpan:o,children:e("div",{style:{marginLeft:u},children:l&&e(l,{})})})}:{children:e("td",{colSpan:o,style:{padding:p},children:n("div",{style:{marginLeft:u,display:"flex",alignItems:"center"},children:[e(K,{title:t?.name,children:n(F,{as:"div",color:"var(--brand-color)",lineHeight:"18px",onClick:()=>s?.(t),children:[t.displayOrder,".",ie(t.name,40)]})}),["PRE","POST","Group"].includes(t.type)&&e("div",{className:"pre-accordion-arrow "+(i?"expanded":""),children:e(P,{name:"arrow_right",className:"pre-arrow-svg",color:i?"var(--brand-color)":"var(--default-color)",width:12,height:12,onClick:()=>c?.(t)})})]})})}),i&&e(NO,{data:t.data,level:u,columnCount:o,viewModeId:a,handleClick:s,ViewComponent:l,handleStepGroupExpand:c,isStepGroupExpanded:d})]},t.stepId)})})};var TO=g(({row:r,columns:i,tableBodyRowClass:o,handleOnclick:a,tableDataTextColor:l,withCheckbox:s,onSelectClick:c,draggable:d,indexNumber:u=0,dataLength:f=0,viewModeId:p,ViewComponent:m,handleClick:C,handleStepGroupExpand:g,isStepGroupExpanded:v,scriptType:y})=>{const w=r?.isDisabled,b=r?._id||r?.stepId,E=!!y&&"cascaded"===r.cascaded,M=w||f<=1||E;let A=(u+1).toString();const{attributes:x,listeners:k,setNodeRef:L,transform:H,transition:S}=va({id:b,disabled:M}),_=h(()=>({transform:qr.Transform.toString(H),transition:S}),[H,S]),V=v?.(r.stepId);return n(t,{children:[e("tr",{ref:L,style:_,className:z(o,{"disabled-row":w}),children:i.map((t,i)=>{const o=0===i;return e("td",{style:{paddingLeft:o&&d?"0px":"8px"},onClick:()=>a(t,r,i),className:z(t.className,{"clickable-cell":t.onClick}),children:n(F,{as:"div",color:l,className:"ff-data-checkbox-container",children:[o&&s&&e("span",{className:"ff-table-pre-post-checkbox",children:e(te,{onChange:e=>c(e,r),checked:r.checked,disabled:!!w})}),o&&d&&e("div",{className:w?"ff-table-drag":"ff-table-drag-icon",...k,...x,children:e(P,{name:"drag",className:M?"drag-icon-disabled":"drag-icon"})}),yr(r,t,u),o&&["PRE","POST","Group"].includes(r.type)&&e("div",{className:"pre-accordion-arrow "+(V?"expanded":""),children:e(P,{name:"arrow_right",color:V?"var(--brand-color)":"var(--default-color)",width:12,height:12,className:"pre-arrow-svg",onClick:()=>{g?.({...r,serialNumber:A})}})}),t.extraInfo&&t.extraInfo({row:r,indexNumber:u})]})},`${t.accessor}${i}`)})},b),V&&e(NO,{data:r.data,columnCount:i.length,viewModeId:p,ViewComponent:m,handleClick:C,handleStepGroupExpand:g,isStepGroupExpanded:v})]})});const IO=(e,t)=>{const{action:n,sourceIndex:r,nlpName:i,id:o}=t;if(!n)return e;const a=[...e];let l={stepId:"stepId-9745-9745",isNew:!0,disabled:!1,...i&&{name:i},...o&&{id:o}};switch(n){case"addBelow":void 0!==r&&a.splice(r+1,0,l);break;case"replaceNlp":void 0!==r&&a.splice(r,0,l);break;case"EditNlp":void 0!==r&&(a.splice(r,1),a.splice(r,0,l));break;case"addLast":a.push(l)}return a},DO=(e,t="nearest",n=5)=>{if(!e)return;const r=document.getElementById(e);r?r.scrollIntoView({behavior:"smooth",block:t}):n>0?setTimeout(()=>{DO(e,t,n-1)},300):console.warn(`Element with id - "${e}" not found after multiple retries.`)},ZO=o(({data:t=[],columns:r=[],headerType:i,withCheckbox:o=!1,onSelect:s,allSelected:d,partialSelected:u=!1,withFixedHeader:f=!0,borderWithRadius:h=!1,headerCheckboxDisabled:p=!1,noDataContent:m,height:C="100%",className:g="",tableHeadClass:v="",tableBodyRowClass:E="",headerTextColor:M,tableDataTextColor:A,draggable:x=!1,onDragEnd:k,loadMore:L=()=>{},editMode:H="",editComponent:S,NlpComponent:_,AddNlp:V,handleDragStart:O,handleViewComponent:N,handleAccordion:T,loading:I,scriptType:D=!1},Z)=>{const j=a(null),[R,B]=c(null),[P,U]=c(null),q=e=>{U(t=>t===e?.stepId?null:e?.stepId)},W=e=>{q(e);const t=N?.(e,q);t?B(()=>t):q(null)},[Q,K]=c(new Map),Y=e=>Q.has(e),X=e=>{Y(e?.stepId)||(P&&q(null),T?.(e)),I||K(t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n})};l(()=>{const e=document.getElementById("ff-table-scroll-container"),n=document.getElementById("ff-table-first-node"),r=document.getElementById("ff-table-last-node");if(e&&n&&r&&t?.length)return j.current=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";L(t)}})},{root:e,rootMargin:"8px",threshold:.1}),j.current.observe(n),j.current.observe(r),()=>{j.current?.disconnect()}},[t,L]);const J=(e,t,n)=>{let{onClick:r,accessor:i}=e;r&&hr(r)&&r(i,t,n)},$=(e,t)=>{s&&s(e,t)};return l(()=>{DO("getInFocus")},[V,P]),Z&&b(Z,()=>({resetStepGroupAccordion:()=>{K(new Map)}})),e(Io,{collisionDetection:hi,onDragStart:()=>{O?.(),Q.clear()},onDragEnd:e=>{const{active:n,over:r}=e;if(!r||n.id===r.id)return;const i=t.findIndex(e=>e._id===n.id||e.stepId===n.id),o=t.findIndex(e=>e._id===r.id||e.stepId===r.id);-1!==i&&-1!==o&&k&&k(i,o)},modifiers:[eh],children:e(ua,{disabled:!x,items:t?.map(e=>e.stepId||e._id),strategy:sa,children:n("div",{style:{height:C},id:"ff-table-scroll-container",className:z(g,{"pre-fixed-header-table":f,"pre-border-borderRadius":h}),children:[n("table",{className:z("ff-table-pre-post"),cellSpacing:0,children:[e("thead",{className:z({"pre-table-thead":f},v),children:e("tr",{children:r.map((t,r)=>e("th",{className:z(`${i&&`${i}-bg`}`,`${M&&`${M}-color`}`),style:{width:t?.width},children:n(F,{as:"div",fontWeight:"semi-bold",className:"ff-label-checkbox-container",lineHeight:"18px",color:"var(--drawer-title-color)",children:[0===r&&o&&e("span",{className:"ff-table-pre-post-checkbox",children:e(te,{onChange:e=>{$(e,{allSelected:e.target.checked})},checked:void 0!==d&&d,partial:!!u,disabled:p})}),t.header]})},t.header))})}),n("tbody",{className:"pre-table-tbody",children:[e("tr",{id:"ff-table-first-node"}),IO(t,V??{})?.map((i,a)=>{const l=H===i.stepId;return l||i.isNew?n("tr",{id:"getInFocus",className:"pre-edit-row",children:[l&&w(S)&&e("td",{colSpan:r.length,children:y(S,{rowData:i,rowIndex:a+1})}),i.isNew&&!l&&w(_)&&e("td",{colSpan:r.length,children:y(_,{rowIndex:a,rowData:i})})]},i.stepId||a):e(TO,{row:i,indexNumber:a,columns:r,tableBodyRowClass:E,handleOnclick:J,tableDataTextColor:A,withCheckbox:o,onSelectClick:$,draggable:x,dataLength:t?.length,viewModeId:P,ViewComponent:R,handleClick:W,handleStepGroupExpand:X,isStepGroupExpanded:Y,scriptType:D})}),e("tr",{id:"ff-table-last-node"})]})]}),G(t)&&G(V)&&e("div",{className:"ff-no-data-content",style:{height:`calc(${C} - 50px)`},children:m})]})})})}),jO=g(({data:r=[],level:o=0,columnCount:s=1,viewModeId:c,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:p,isViewPrivilegeMode:m,columns:C=[],parentIndex:g,updateRowHeight:v})=>{const y=a([]),w=new Set(["Group","PRE","POST","Script"]),b=o+8,E=(e,t,n,r)=>{const i=e[t.accessor];if(t.cell){const o=e._id||e.id;return t.cell({value:i,row:e,column:t.accessor,index:n,tableType:r,...o&&{refId:o}})}return t.accessor||i&&"object"!=typeof i?i:"--"};return l(()=>{if(!v)return;const e=new ResizeObserver(()=>{let e=0;y.current.forEach(t=>{t&&(e+=t.getBoundingClientRect().height)}),e>0&&v(g??0,e)});return y.current.forEach(t=>{t&&e.observe(t)}),()=>e.disconnect()},[r,v,g,p]),e(t,{children:r?.map((t,r)=>{const o=g??0+r+1;return n(i.Fragment,{children:[e("tr",c===t?.stepId?{ref:e=>y.current[r]=e,className:"steps-edit-row",id:"getInFocus",children:e("td",{colSpan:s,children:e("div",{style:{marginLeft:`${b}px`},children:d&&e(d,{})})})}:{ref:e=>y.current[r]=e,children:C.map((r,i)=>{return e("td",{style:{maxWidth:r.width,padding:(o=t.type,w.has(o)?"6px 8px":"7px 8px")},children:n(F,{as:"div",className:"ff-data-checkbox-container",children:[n("div",{className:"ff-data-checkbox-container-content",style:{marginLeft:0===i?`${b}px`:0},onClick:()=>{0===i&&!t?.displayName?.includes("End")&&!t?.isDisabled&&u?.({...t,tableType:f})},children:[!m&&0===i&&e("div",{style:{padding:"4px 18px"}}),E({...t,marginLeft:b},r)]}),0===i&&["Group","PRE","POST","Script"].includes(t.type)&&e("div",{className:"ff-accordion-arrow "+(p?.(t.stepId)?"expanded":""),children:e(P,{name:"arrow_right",color:p?.(t.stepId)?"var(--brand-color)":"var(--default-color)",className:"steps-arrow-svg",width:12,height:12,onClick:()=>h?.({...t,tableType:f})})})]})},`${t.stepId}-${i}`);var o})}),p?.(t.stepId)&&e(jO,{data:t.data,level:b,columnCount:s,viewModeId:c,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:p,isViewPrivilegeMode:m,columns:C,parentIndex:o,updateRowHeight:v})]},t.stepId)})})});jO.displayName="StepGroupAccordions";const RO=g(({row:r,columns:i,tableBodyRowClass:o,handleOnclick:s,tableDataTextColor:c,withCheckbox:d,onSelectClick:u,draggable:f,indexNumber:p=0,tableType:m="",viewModeId:C,ViewComponent:g,handleClick:v,selectedRows:y,handleStepGroupExpand:w,isStepGroupExpanded:b,dataLength:E,stepPartialSelect:M,isViewPrivilegeMode:A,isClientSide:x,updateRowHeight:k,rowId:L,onRowHover:H,onRowHoverOut:S})=>{const _=a(null),V=h(()=>r?.isDisabled||(E??0)<=1||r.isSpecialNlp,[r,E]),O=(p+1).toString(),{attributes:N,listeners:T,setNodeRef:I,transform:D,transition:Z}=va({id:r?._id||r?.stepId,disabled:V}),j=h(()=>({transform:qr.Transform.toString(D),transition:Z}),[D,Z]),R=r?._id||r?.stepId;l(()=>{if(_.current&&k){const e=_.current.getBoundingClientRect().height;k(p,e)}},[r,k,p,b?.(r?.stepId)]);const B=e=>A||x?["Group","PRE","POST","Script"].includes(r.type)&&0===e?"4px 8px":"7px 8px":0!==e?"Steps"===m?"4px 8px":"7px 8px":"Steps"===m&&f?"4px 8px 4px 0px":"4px 8px 4px 24px";return n(t,{children:[e("tr",{"data-rowid":L,ref:e=>{_.current=e,I(e)},style:j,className:z(o,"sortable-item",{"disabled-inner-row":V}),id:R,onMouseEnter:()=>{H?.(L||""),console.log("Mouse entered row:",L)},onMouseLeave:()=>{S?.(L||""),console.log("Mouse left row:",null)},children:i?.map((i,o)=>e(t,{children:e("td",{style:{padding:B(o),maxWidth:i.width},onClick:()=>s(i,r,p),children:n(F,{as:"div",color:c,className:"ff-data-checkbox-container",children:[0===o&&!x&&f&&e("div",{className:V?"ff-table-drag":"ff-table-drag-icon",...T,...N,children:e(P,{name:"drag",className:V?"drag-icon-disabled":"drag-icon"})}),0===o&&!x&&d&&e("span",{className:m&&y[m]?.has(r.stepId)||M?.has(r.stepId)?"ff-step-table-select-checkbox":"ff-table-checkbox-step",children:e(te,{onChange:e=>u(m,r,e.target.checked),checked:!!y[m]?.has(r.stepId),partial:M?.has(r.stepId),disabled:r?.isSpecialNlp&&r?.name?.includes("End")})}),n("div",{className:"ff-margin-container",style:{marginLeft:0===o?r.marginLeft:0},children:[yr(r,i,p,m),["Group","PRE","POST","Script"].includes(r.type)&&0===o&&!x&&e("div",{className:"ff-accordion-arrow "+(b?.(r?.stepId)?"expanded":""),children:e(P,{name:"arrow_right",className:"steps-arrow-svg",color:b?.(r?.stepId)?"var(--brand-color)":"var(--default-color)",width:12,height:12,onClick:()=>w?.({...r,tableType:m,serialNumber:O})})}),i.extraInfo?.({row:r,indexNumber:p,tableType:m})]})]})},`${i.accessor}-${gp()}`)}))},R),b?.(r?.stepId)&&e(jO,{data:r.data||r?.stepResults,columnCount:i.length,viewModeId:C,ViewComponent:g,handleClick:v,tableType:m,handleStepGroupExpand:w,isStepGroupExpanded:b,level:r?.marginLeft,isViewPrivilegeMode:A,columns:i,parentIndex:p,updateRowHeight:k})]})});RO.displayName="StepTableMainRow";const BO=({data:t=[],columns:r=[],headerType:i,withCheckbox:o=!1,onSelect:s,withFixedHeader:d=!0,borderWithRadius:u=!1,noDataContent:f,height:m="100%",className:C="",tableBodyRowClass:g="",headerTextColor:v,tableDataTextColor:b,draggable:E=!1,onDragEnd:M,loadMore:A=()=>{},editMode:x="",editComponent:k,NlpComponent:L,AddNlp:H,handleDragStart:S,tableType:_,viewModeId:V,ViewComponent:O,handleClick:N,selectedRows:T,handleStepGroupExpand:I,isStepGroupExpanded:D,stepPartialSelect:Z,isViewPrivilegeMode:j,isClientSide:R,highlightKey:B,onHighlightComplete:P,handleRowHover:F,handleRowHoverOut:U})=>{const q=a(null),W=a(null),[Q,K]=c(0),[Y,X]=c(0),[J,$]=c([]),[ee,te]=c(null),ne=50,re=a(0);l(()=>{W.current&&X(W.current.clientHeight);const e=IO(t,H??{});$(t=>{const n=[...t];for(;n.length<e.length;)n.push(ne);return n.length>e.length&&(n.length=e.length),n})},[t,H]),l(()=>{re.current>0&&W.current&&(W.current.scrollTop=re.current,re.current=0)},[J]),l(()=>{if(G(B))if(x)te(x);else if(H&&Object.keys(H).length>0){const e=IO(t,H).find(e=>e.isNew);e&&te(e.stepId||"new-row")}else te(null);else te(B)},[x,H,t,B]),l(()=>{if(ee&&W.current){const e=setTimeout(()=>{const e=W.current?.querySelector(`[data-rowid="${ee}"]`);e&&(e.scrollIntoView({behavior:"smooth",block:"nearest"}),setTimeout(()=>{G(B)||P?.()},300))},100);return()=>clearTimeout(e)}},[ee,J,B,P]);const ie=p(e=>{const t=e.currentTarget.scrollTop;K(t)},[]),oe=p((e,t)=>{$(n=>{const r=[...n];return e<r.length&&r[e]!==t?(r[e]=t,r):n})},[]),ae=h(()=>IO(t,H??{}),[t,H]),le=ae.length,{startIndex:se,paddingTop:ce,paddingBottom:de,visibleRows:ue}=h(()=>{let e=0,t=le-1,n=0,r=0;if(J.length===le&&Y>0){let i=0;for(let t=0;t<le;t++)i<=Q&&(e=t),i+=J[t]??0;i=0;for(let e=0;e<le;e++)if(i+=J[e]??0,i>=Q+Y&&t===le-1){t=e;break}if(e=Math.max(0,e-5),t=Math.min(le-1,t+5),ee){const n=ae.findIndex(e=>e.stepId===ee||e.isNew&&"new-row"===ee);n>=0&&(n<e?e=n:n>t&&(t=n))}n=J.slice(0,e).reduce((e,t)=>e+t,0),r=J.slice(t+1).reduce((e,t)=>e+t,0)}else{if(e=Math.max(0,Math.floor(Q/ne)-5),t=Math.min(le-1,e+Math.ceil(Y/ne)+5),ee){const n=ae.findIndex(e=>e.stepId===ee||e.isNew&&"new-row"===ee);n>=0&&(n<e?e=n:n>t&&(t=n))}n=e*ne,r=(le-t-1)*ne}return{startIndex:e,endIndex:t,paddingTop:n,paddingBottom:r,visibleRows:ae.slice(e,t+1)}},[ae,le,J,Y,Q,5,ee,ne]);l(()=>{const e=W.current,n=document.getElementById("ff-table-first-node"),r=document.getElementById("ff-table-last-node");if(e&&n&&r&&t?.length)return q.current=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";A(t)}})},{root:e,rootMargin:"8px",threshold:.1}),q.current.observe(n),q.current.observe(r),()=>{q.current?.disconnect()}},[t?.length,A]);const fe=(e,t,n)=>{const{onClick:r,accessor:i}=e;r&&hr(r)&&r(i,t,n)},he=(e,t,n)=>{s&&s(e,t,n)};return e(Io,{collisionDetection:hi,onDragStart:S,onDragEnd:e=>{const{active:n,over:r}=e;if(!r||n.id===r.id)return;const i=t.findIndex(e=>e._id===n.id||e.stepId===n.id),o=t.findIndex(e=>e._id===r.id||e.stepId===r.id);-1!==i&&-1!==o&&M&&M(i,o)},modifiers:[eh],children:e(ua,{disabled:!E,items:t?.map(e=>e._id||e.stepId),strategy:sa,children:n("div",{ref:W,style:{height:m,position:"relative",overflowY:m?.includes("vh")?"auto":void 0},id:"ff-table-scroll-container",className:z(C,{"ff-fixed-header-steps-table":d,"steps-border-borderRadius":u}),onScroll:ie,children:[n("table",{className:z("ff-table-steps"),cellSpacing:0,children:[e("thead",{className:"steps-inner-thead",children:e("tr",{children:r?.map(t=>e("th",{className:z(`${i&&`${i}-bg`}`,`${v&&`${v}-color`}`),style:{width:t?.width}},`${t.header}-${gp()}`))})}),n("tbody",{className:"ff-steps-tbody",children:[e("tr",{id:"ff-table-first-node",style:{display:"none"}}),ce>0&&e("tr",{children:e("td",{style:{height:ce,padding:0},colSpan:r.length})}),ue.map((i,a)=>{const l=se+a,s=x===i.stepId,c=s||i.isNew,d=s&&i.stepId===ee||i.isNew&&"new-row"===ee;return c?n("tr",{className:"steps-edit-row",id:d?"getInFocus":void 0,"data-rowid":i.stepId||"new-row",children:[s&&w(k)&&e("td",{colSpan:r.length,children:y(k,{rowData:i,rowIndex:l+1})}),i.isNew&&!s&&w(L)&&e("td",{colSpan:r.length,children:y(L,{rowIndex:l,rowData:i})})]},i.stepId||l):e(RO,{rowId:i.stepId,row:i,onRowHover:F,onRowHoverOut:U,indexNumber:l,columns:r,tableBodyRowClass:g,handleOnclick:fe,tableDataTextColor:b,withCheckbox:o,onSelectClick:he,draggable:E,tableType:_,viewModeId:V,ViewComponent:O,handleClick:N,selectedRows:T,handleStepGroupExpand:I,isStepGroupExpanded:D,dataLength:t?.length,stepPartialSelect:Z,isViewPrivilegeMode:j,isClientSide:R,updateRowHeight:oe})}),de>0&&e("tr",{children:e("td",{style:{height:de,padding:0},colSpan:r.length})}),e("tr",{id:"ff-table-last-node",style:{display:"none"}})]})]}),t?.length<=0&&e("div",{className:"steps-no-data-content",style:{height:`calc(${m} - 50px)`},children:f})]})})})},PO=e=>["ElseIfCondition","ElseCondition"].includes(e?.nlpName);let FO=null,UO=null;const qO=e=>{if(UO===e&&FO)return FO;const t=((e,t="Steps")=>{const n=e.find(e=>e?.title===t);return n?.data??[]})(e),n=new Map,r=(e,n,r)=>{const i=t,o=i.findIndex(t=>t.stepId===e?.stepId),a=i.findIndex(e=>e.stepId===n?.stepId);return r?i.slice(o+1,a).map(e=>e.stepId):i.slice(o,a+1).map(e=>e.stepId)};return t?.forEach(e=>{const i=(e=>e.specialNlpId??e.conditionSearchKey??null)(e);if(!i)return;const o=n.get(i)||{start:null,end:null,childIds:[],allIds:[]};if(e?.isSpecialNlp&&e.name?.startsWith("Start")){o.start=e;const n=(e=>{const n=(e=>({IfCondition:"EndIfCondition",StartForLoop:"EndForLoop",StartIteration:"EndIteration",ElseIfCondition:"EndElseIfCondition",ElseCondition:"EndElseCondition"}[e.nlpName]||e.nlpName))(e),r=t;if(void 0!==e?.conditionId&&void 0!==e?.conditionSearchKey&&!e.specialNlpId){const t=e.conditionId===e.conditionSearchKey?e.conditionId:e.conditionSearchKey;return r.find(e=>e.conditionSearchKey===t&&e.nlpName===n)||null}return e.specialNlpId&&r.find(t=>t.specialNlpId===e.specialNlpId&&t.nlpName===n)||null})(e);n&&(o.end=n,o.childIds=r(e,n,!0),o.allIds=r(e,n,!1))}n.set(i,o)}),FO=n,UO=e,n},WO=e=>e.includes("/")?e.split("/").slice(0,-1).join("/"):e;const QO=e=>{if(!e)return!1;for(const t of Object.values(e))if(t&&t.size>0)return!0;return!1},GO=e=>{switch(e){case"PASS":return"var(--status-button-text-passed)";case"FAIL":return"var(--status-button-text-failed)";case"SKIP":return"var(--status-button-text-skipped)";case"WARNING":return"var(--status-warning-text-color)";default:return"var(--status-button-text-notExecuted)"}},KO=e=>{switch(e){case"PASS":return"Passed";case"FAIL":return"Failed";case"SKIP":return"Skipped";case"WARNING":return"Warning";default:return e}},YO=e=>{switch(e){case"PASS":return"passed";case"FAIL":return"failed";case"SKIP":return"skipped";case"WARNING":return"warning";case"Running":return"running";case"Partially Executed":return"partially-executed";case"Aborted":return"aborted";case"Terminated":return"terminated";default:return"default"}},XO=({metaData:t,width:r=0,displayIcon:i=!1})=>{const o=t?.total||0,a=[{name:"Passed",count:t?.totalPassed,color:"var(--status-approved-text-color)"},{name:"Failed",count:t?.totalFailed,color:"var(--status-rejected-text-color)"},{name:"Warning",count:t?.totalWarning,color:"var(--status-warning-text-color)"},{name:"Skipped",count:t?.totalSkipped,color:"var(--status-skipped-text-color)"},{name:"Terminated",count:t?.totalTerminated,color:"var(--status-skipped-text-color)"},{name:"Aborted",count:t?.totalAborted,color:"var(--status-skipped-text-color)"}],l=a.filter(e=>e.count>0),s=l.map(({count:e,name:t})=>`${e}/${o} ${t}`).join(" "),c=r?ie(s,r,"pixel"):s,d={Passed:t?.totalPassed||0,Failed:t?.totalFailed||0,Warning:t?.totalWarning||0,Skipped:t?.totalSkipped||0},u=Object.values(d).reduce((e,t)=>e+t,0),f=[["Passed","Failed"],["Warning","Skipped"]].map(e=>a.filter(({name:t,count:n})=>e.includes(t)&&n>0)).filter(Boolean),h=(e,t)=>"Skipped"===e?"var(--status-skipped-bg-color)":t,p=n("div",{className:"ff-status-tooltip",children:[f.map((t,r)=>e("div",{className:"ff-status-tooltip-row",children:t.map(({name:t,count:r,color:i})=>n("div",{className:"ff-status-item",children:[e("span",{className:"ff-status-dot",style:{backgroundColor:h(t,i)}}),n(F,{as:"span",fontWeight:"medium",fontSize:10,className:"ff-status-text",children:[t,": ",r]})]},t))},r)),e("div",{className:"ff-status-tooltip-divider"}),n(F,{as:"span",fontWeight:"medium",fontSize:10,className:"ff-status-tooltip-total",children:["Total Steps - ",u]})]});if(i)return e(K,{title:p,children:e(P,{name:"status_icon"})});const m=[];let C=0;for(const{count:e,name:t,color:n}of l){const r=`${e}/${o} ${t}`;if(!(C+r.length<=c.length)){const e=c.slice(C).trim();e&&m.push({text:e,color:n});break}m.push({text:r,color:n}),C+=r.length+1}return e("div",{className:"ff-stepResultStats",children:e(K,{title:s,children:e(F,{as:"div",className:"status-inline-text",fontWeight:"semi-bold",children:m.map(({text:t,color:n},r)=>e(F,{as:"span",fontWeight:"semi-bold",style:{color:n,whiteSpace:"nowrap"},children:t+" "},r))})})})},JO=({isHeaderRequired:r,isViewPrivilegeMode:i,onAccordionClick:o,isBulkEnable:a,showActionCell:l,handleMainCheckbox:s,isAllSelected:c,isPartialSelected:d,tableMeta:u=[],title:f,totalRows:h,expanded:p,actionCell:m,row:C,metaData:g,isClientSide:v,isMaximize:y})=>{const w=u?.map(e=>e.width),b=e=>{const t=w[e]??0;switch(e){case 0:return t+110;case 1:return t+(t>300?60:70);case 2:return t+20;default:return 0}};return n("article",{className:"step-title-article",style:{...!r&&!v&&{backgroundColor:"var(--hover-color)"}},children:[e("div",{style:{width:`${b(0)}px`},children:n("div",{className:"accordion-header",style:{paddingLeft:i||v?"8px":"24px"},children:[!i&&!v&&e(te,{onChange:e=>s(f,e.target.checked),checked:c(f,h),partial:d(f,h),disabled:0===h}),e("div",{className:"header-title",children:e(F,{as:"div",fontWeight:"semi-bold",color:v?"var(--brand-color)":"var(--nlp-option-color)",cursor:"default",lineHeight:"18px",children:f})}),e("div",v?{style:{padding:"12px"}}:{className:"accordion-arrow "+(p?"expanded":""),onClick:()=>o(f),children:e(P,{name:"arrow_right",color:p?"var(--brand-color)":"var(--default-color)",width:16,height:16,className:"steps-arrow-svg"})}),n("div",{className:"ff_action_container",children:[g&&e(XO,{metaData:g,width:y?100-(C?.marginLeft??0):250-(C?.marginLeft??0)}),l&&!a&&e(t,{children:m(C)})]})]})}),g?.message&&e("div",{className:"step-result",style:{width:`${b(1)}px`},children:e(K,{title:g?.message,placement:"bottom-start",children:e(F,{lineHeight:"18px",as:"div",className:"step-result-text",color:GO(g?.status),children:g?.message})})}),g?.status&&e("div",{className:"step-result",style:{width:`${b(2)}px`},children:e(cr,{label:KO(g?.status),status:YO(g?.status),children:g?.status})})]})},$O=i.memo(i.forwardRef(({tableMeta:t=[],tableData:r=[],noDataContent:i,height:o="100%",withFixedHeader:a=!1,headerType:s,handleDragStart:d,onDragEnd:u,editMode:f,editComponent:m,NlpComponent:C,AddNlp:g,handleAccordion:v,handleViewComponent:y,onSelectClick:w,loading:E=!1,isViewPrivilegeMode:M=!1,defaultExpanded:A="Steps",isHeaderRequired:x=!0,isClientSide:k=!1,highlightKey:L,onHighlightComplete:H,isDraggable:S=!0,isMaximize:_=!1,handleParentRowHover:V,handleParentRowHoverOut:O},N)=>{const[T,I]=c(null),[D,Z]=c(null),[j,R]=c({}),[B,P]=c(new Map),[U,q]=c(!1),W=p((e,t)=>{const n=r.find(t=>t.title===e);n&&n.data&&0!==n.data.length&&R(n=>({...n,[e]:"open"===t||!n[e]}))},[r]),Q=h(()=>e=>j[e]??!1,[j]),K=p(e=>{Z(t=>t===e?.stepId?null:e?.stepId)},[]),Y=p(e=>{K(e);const t=y?.(e,K);t?I(()=>t):K(null)},[y,K]),[X,J]=c(Object.fromEntries(r.map(e=>[e.title,new Set]))),[$,ee]=c(new Set);l(()=>{if(J(e=>function(e,t){const n={};return e.forEach(e=>{const r=e.data.map(e=>e.stepId),i=t[e.title]||new Set,o=new Set([...i].filter(e=>r.includes(e)));n[e.title]=o}),n}(r,e)),ee(e=>function(e,t){const n=e.reduce((e,t)=>(t.data.forEach(t=>e.add(t.stepId)),e),new Set);return new Set([...t].filter(e=>n.has(e)))}(r,e)),R(e=>function(e,t,n){const r={Steps:"Steps",Depends:"Depends on Scripts",PRE:"Pre Conditions",POST:"Post Conditions"},i={};return e.forEach(e=>{const o=e.title,a=o in t,l="All"===n?Object.values(r).includes(o):o===r[n];i[o]=a?t[o]??!1:l}),i}(r,e,A)),X&&!QO(X))return;const{updateSelectRow:e,updateStepPartialSelect:t}=((e,t,n)=>{const r=qO(e),i=new Set(t.Steps),o=new Set(n);return r?.forEach(e=>{const t=e?.childIds;if(0===t?.length)return;const n=t.every(e=>i.has(e)),a=t.some(e=>i.has(e));if(n?(i.add(e.start.stepId),i.add(e.end.stepId)):(i.delete(e.start.stepId),i.delete(e.end.stepId)),PO(e?.start)&&(a||n)){const t=e?.start?.conditionSearchKey,n=WO(t),a=r?.get(n)?.allIds;if(0===a?.length)return;a?.forEach(e=>{i.add(e),o.delete(e)})}a&&!n?(o.add(e.start.stepId),o.add(e.end.stepId)):(o.delete(e.start.stepId),o.delete(e.end.stepId))}),{updateSelectRow:{...t,Steps:i},updateStepPartialSelect:o}})(r,X,$);t&&ee(t),e&&J(e)},[r]),l(()=>{if(QO(X)){const e={...X,partialSelected:$};w?.(e)}else w?.(X)},[X]);const te=p((e,t)=>{const n=r.find(t=>t.title===e)?.data.map(e=>e.stepId);n&&(J(r=>({...r,[e]:t?new Set(n):new Set})),t||ee(new Set))},[r]),ne=p((e,t,n,r)=>{const{updateSelectRow:i,updateStepPartialSelect:o}=((e,t,n,r,i,o="Steps")=>{const a=new Set(r[o]);if("Steps"===o&&(t?.isSpecialNlp||t?.conditionId||t?.parentSpecialNlpId)){const{updateStepPartialSelect:l}=function(r){const o=new Set(i),l=qO(e),s=e=>{const t=e?.conditionSearchKey,n=WO(t),r=l.get(n);r&&"IfCondition"===r.start.nlpName&&0===r?.start?.marginLeft&&c(r.start),!r?.start?.conditionSearchKey?.includes("/")||"IfCondition"===r?.start.nlpName&&0===r?.start?.marginLeft||s(r.start)},c=e=>{if(e?.isSpecialNlp){const t=e?.specialNlpId||e?.conditionSearchKey,r=t&&l.get(t);r&&Array.isArray(r.allIds)&&r.allIds.forEach(e=>{o.delete(e),n?a.add(e):a.delete(e)})}else n?a.add(e?.stepId):a.delete(e?.stepId)},d=e=>{let c=!0;const d=e=>{const t=e?.childIds;if(PO(e?.start)){const t=(e=>e.includes("/")&&e.split("/")[0]||e)(e?.start?.conditionSearchKey),o=l.get(t),a=o?.start?.stepId,c=i.has(a);n&&!c&&s(r)}if(0===t?.length)return;const u=t.every(e=>a.has(e)),f=t.some(e=>a.has(e));if(u?(a.add(e.start?.stepId),a.add(e.end?.stepId)):(a.delete(e.start?.stepId),a.delete(e.end?.stepId)),f&&!u?(o.add(e.start?.stepId),o.add(e.end?.stepId)):(o.delete(e.start?.stepId),o.delete(e.end?.stepId)),e?.start?.parentSpecialNlpId){const t=l.get(e.start.parentSpecialNlpId);t&&d(t)}if(e?.start?.conditionSearchKey){const t=WO(e?.start?.conditionSearchKey),n=e?.start?.conditionSearchKey,r=e?.start?.conditionId;if(n===r&&c){c=!1;const e=l.get(t);return void(e&&d(e))}if(n===r)return;const i=l.get(t);return void(i&&d(i))}};if(e?.conditionSearchKey===e?.conditionId&&!e?.parentSpecialNlpId&&e?.specialNlpId){const t=l.get(e?.conditionSearchKey);return void(t&&d(t))}if(e?.conditionSearchKey||e?.conditionId||!e?.specialNlpId||e?.parentSpecialNlpId){if(e?.conditionSearchKey&&e?.conditionSearchKey===e?.conditionId&&e?.conditionId&&e?.specialNlpId){const t=l.get(e?.conditionSearchKey);t&&d(t)}if(e?.parentSpecialNlpId){const t=l.get(e?.parentSpecialNlpId);t&&d(t)}if(e?.conditionSearchKey){const r=l.get(e?.conditionSearchKey).childIds;let i=0;r.forEach(e=>{a.has(e)&&i++});const s=i>0&&i<r.length,u=0===i,f=e?.conditionSearchKey;if(!f.includes("/")&&f&&!n&&!s&&u){const t=e?.conditionId;let n=[];if(l&&t)for(const[e,r]of l.entries())e.includes(t)&&e.includes("/")&&n.push(r);n.forEach(e=>{["ElseIfCondition","ElseCondition"].includes(e.start?.nlpName)&&(e.childIds?.forEach(e=>{a.delete(e),o.delete(e)}),a.delete(e.start.stepId),a.delete(e.end.stepId),o.delete(e.start.stepId),o.delete(e.end.stepId))})}const h=!t?.isSpecialNlp||PO(e)||t?.specialNlpId?e.conditionSearchKey:WO(e.conditionSearchKey);c=!0;const p=l.get(h);p&&d(p)}}};return c(r),d(r),{updateStepPartialSelect:o}}(t);return{updateSelectRow:{...r,[o]:a},updateStepPartialSelect:l}}return n?a.add(t.stepId):a.delete(t.stepId),{updateSelectRow:{...r,[o]:a}}})(e,t,n,X,$,r);o&&ee(o),i&&J(i)},[X,$]),re=p((e,t,n)=>{ne(r,t,n,e)},[r,ne]),ie=p((e,t)=>{const n=t>0&&X[e]?.size===t;return e.includes("Script")&&q(n),n},[X]),oe=p((e,t)=>{const n=X[e]?.size||0;return n>0&&n<t},[X]),ae=p(e=>B.has(e),[B]),le=p(e=>{ae(e?.stepId)||(D&&K(null),v?.(e)),E||P(t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n})},[ae,D,K,v,E]),se=p(n=>"Steps"!==n.title||M?e(BO,{onHighlightComplete:H,highlightKey:L,draggable:!1,editMode:f,withCheckbox:!M,editComponent:m,columns:t,data:n.data,headerType:s,noDataContent:i,tableType:n.title,onSelect:re,selectedRows:X,viewModeId:D,ViewComponent:T,handleClick:Y,handleStepGroupExpand:le,isStepGroupExpanded:ae,isViewPrivilegeMode:M,height:n?.data?.length<=15?"auto":o,isClientSide:k}):e(BO,{onHighlightComplete:H,highlightKey:L,draggable:S,columns:t,onDragEnd:u,data:n.data,headerType:s,withCheckbox:!0,editMode:f,editComponent:m,noDataContent:i,NlpComponent:C,AddNlp:g,tableType:n.title,handleDragStart:()=>{B.clear(),d?.()},onSelect:re,selectedRows:X,viewModeId:D,ViewComponent:T,handleClick:Y,handleStepGroupExpand:le,isStepGroupExpanded:ae,stepPartialSelect:$,height:0===n?.data?.length?"300px":n?.data?.length<=12?"auto":o,isClientSide:k,handleRowHover:V,handleRowHoverOut:O}),[M,H,L,S,t,u,s,f,m,i,C,g,B,d,re,X,D,T,Y,le,ae,$,r.length,o,k]);return b(N,()=>({resetSelection:()=>{J(Object.fromEntries(r.map(e=>[e.title,new Set]))),ee(new Set)},handleUpdateCheckbox:(e,t)=>{const n=e?.parentSpecialNlpId,i=e?.conditionSearchKey;(n||i)&&ne(t||r,e,!1)},deleteRow:e=>{J(t=>Object.fromEntries(Object.entries(t)?.map(([t,n])=>[t,new Set([...n].filter(t=>t!==e?.stepId))])))},resetStepGroupAccordion:()=>{P(new Map)}}),[r,ne]),l(()=>{G(g)||(I(()=>null),Z(null),"addLast"===g?.action&&W("Steps","open"))},[g]),n("div",{className:z("ff-accordion-table-container-steps",{"ff-accordion-fixed-header-table":a}),children:[x&&!k&&e("table",{cellSpacing:0,className:z("ff-accordion-table",{"ff-accordion-fixed-header":a}),children:e("thead",{className:"table-thead",children:e("tr",{className:"ff-table-row",children:t.map((t,n)=>e("th",{style:{width:t?.width},className:z("ff-table-header",s&&`ff-accordion-table--${s}-bg`),children:e(F,{as:"div",fontWeight:"semi-bold",lineHeight:"18px",color:"var(--drawer-title-color)",children:t.header})},`${t.header}-${n}`))})})}),e("div",{className:"ff-accordion-table-body",style:{height:o,overflowY:"auto"},children:r?.map(r=>{const{title:i,data:o,actionCell:a,metaData:l}=r,s=o.length,c=Q(i),d=X[i]?.size??0;return n("div",{className:"column-table-accordion",children:[e(JO,{isViewPrivilegeMode:M,onAccordionClick:W,showActionCell:d>0&&s>0&&a,handleMainCheckbox:te,isAllSelected:ie,isPartialSelected:oe,title:i,totalRows:s,expanded:c,metaData:l,actionCell:a,row:r,tableMeta:t,isHeaderRequired:x,isBulkEnable:U,isClientSide:k,isMaximize:_}),c&&se(r)]},i)})})]})}));$O.displayName="StepLandingTable";var ez,tz,nz,rz,iz,oz,az,lz,sz,cz,dz,uz,fz,hz,pz,mz,Cz,gz,vz,yz,wz,bz,Ez,Mz,Az,xz,kz,Lz,Hz,Sz,_z,Vz,Oz,zz,Nz,Tz,Iz,Dz,Zz,jz,Rz,Bz,Pz,Fz,Uz,qz,Wz,Qz,Gz,Kz,Yz,Xz,Jz,$z,eN,tN,nN,rN,iN,oN,aN,lN,sN,cN,dN,uN,fN,hN,pN,mN,CN,gN,vN,yN,wN,bN,EN,MN,AN,xN,kN,LN,HN,SN,_N,VN,ON,zN,NN,TN,IN,DN={exports:{}};function ZN(){return ez||(ez=1,DN.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:Q(e)}function r(e){return l(e)?e:G(e)}function i(e){return s(e)?e:K(e)}function o(e){return a(e)&&!c(e)?e:Y(e)}function a(e){return!(!e||!e[u])}function l(e){return!(!e||!e[f])}function s(e){return!(!e||!e[h])}function c(e){return l(e)||s(e)}function d(e){return!(!e||!e[p])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=l,n.isIndexed=s,n.isAssociative=c,n.isOrdered=d,n.Keyed=r,n.Indexed=i,n.Set=o;var u="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",m="delete",C=5,g=1<<C,v=g-1,y={},w={value:!1},b={value:!1};function E(e){return e.value=!1,e}function M(e){e&&(e.value=!0)}function A(){}function x(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(H)),e.size}function L(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function H(){return!0}function S(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function _(e,t){return O(e,t,0)}function V(e,t){return O(e,t,t)}function O(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var z=0,N=1,T=2,I="function"==typeof Symbol&&Symbol.iterator,D="@@iterator",Z=I||D;function j(e){this.next=e}function R(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function B(){return{value:void 0,done:!0}}function P(e){return!!q(e)}function F(e){return e&&"function"==typeof e.next}function U(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(I&&e[I]||e[D]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function Q(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function K(e){return null==e?ae():a(e)?l(e)?e.entrySeq():e.toIndexedSeq():se(e)}function Y(e){return(null==e?ae():a(e)?l(e)?e.entrySeq():e:se(e)).toSetSeq()}j.prototype.toString=function(){return"[Iterator]"},j.KEYS=z,j.VALUES=N,j.ENTRIES=T,j.prototype.inspect=j.prototype.toSource=function(){return this.toString()},j.prototype[Z]=function(){return this},t(Q,n),Q.of=function(){return Q(arguments)},Q.prototype.toSeq=function(){return this},Q.prototype.toString=function(){return this.__toString("Seq {","}")},Q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Q.prototype.__iterate=function(e,t){return ue(this,e,t,!0)},Q.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(G,Q),G.prototype.toKeyedSeq=function(){return this},t(K,Q),K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(e,t){return ue(this,e,t,!1)},K.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Y,Q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Q.isSeq=oe,Q.Keyed=G,Q.Set=Y,Q.Indexed=K;var X,J,$,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ie(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():F(e)?new ie(e).fromEntrySeq():P(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=de(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=de(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function de(e){return W(e)?new te(e):F(e)?new ie(e):P(e)?new re(e):void 0}function ue(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var l=i[n?o-a:a];if(!1===t(l[1],r?l[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new j(function(){var e=i[n?o-a:a];return a++>o?B():R(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function he(e,t){return t?pe(t,e,"",{"":e}):me(e)}function pe(e,t,n,r){return Array.isArray(t)?e.call(r,n,K(t).map(function(n,r){return pe(e,n,r,t)})):Ce(t)?e.call(r,n,G(t).map(function(n,r){return pe(e,n,r,t)})):t}function me(e){return Array.isArray(e)?K(e).map(me).toList():Ce(e)?G(e).map(me).toMap():e}function Ce(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ge(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ve(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||s(e)!==s(t)||d(e)!==d(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(d(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&ge(i[1],e)&&(n||ge(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var u=!0,f=t.__iterate(function(t,r){if(n?!e.has(t):i?!ge(t,e.get(r,y)):!ge(e.get(r,y),t))return u=!1,!1});return u&&e.size===f}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function be(e,t,n){if(!(this instanceof be))return new be(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if($)return $;$=this}}function Ee(){throw TypeError("Abstract")}function Me(){}function Ae(){}function xe(){}Q.prototype[ee]=!0,t(te,K),te.prototype.get=function(e,t){return this.has(e)?this._array[L(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new j(function(){return i>r?B():R(e,i,n[t?r-i++:i++])})},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new j(function(){var a=r[t?i-o:o];return o++>i?B():R(e,a,n[a])})},ne.prototype[p]=!0,t(re,K),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=U(this._iterable),r=0;if(F(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=U(this._iterable);if(!F(n))return new j(B);var r=0;return new j(function(){var t=n.next();return t.done?t:R(e,r++,t.value)})},t(ie,K),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(n=r.next()).done;){var a=n.value;if(i[o]=a,!1===e(a,o++,this))break}return o},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new j(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return R(e,i,r[i++])})},t(ye,K),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return ge(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:new ye(this._value,V(t,n)-_(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return ge(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return ge(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new j(function(){return r<n.size?R(e,r++,n._value):B()})},ye.prototype.equals=function(e){return e instanceof ye?ge(this._value,e._value):ve(e)},t(be,K),be.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},be.prototype.get=function(e,t){return this.has(e)?this._start+L(this,e)*this._step:t},be.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},be.prototype.slice=function(e,t){return S(e,t,this.size)?this:(e=_(e,this.size),(t=V(t,this.size))<=e?new be(0,0):new be(this.get(e,this._end),this.get(t,this._end),this._step))},be.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},be.prototype.lastIndexOf=function(e){return this.indexOf(e)},be.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(i,o,this))return o+1;i+=t?-r:r}return o},be.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new j(function(){var a=i;return i+=t?-r:r,o>n?B():R(e,o++,a)})},be.prototype.equals=function(e){return e instanceof be?this._start===e._start&&this._end===e._end&&this._step===e._step:ve(this,e)},t(Ee,n),t(Me,Ee),t(Ae,Ee),t(xe,Ee),Ee.Keyed=Me,Ee.Indexed=Ae,Ee.Set=xe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Le(e){return e>>>1&1073741824|3221225471&e}function He(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Le(n)}if("string"===t)return e.length>je?Se(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Ve(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Se(e){var t=Pe[e];return void 0===t&&(t=_e(e),Be===Re&&(Be=0,Pe={}),Be++,Pe[e]=t),t}function _e(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Le(t)}function Ve(e){var t;if(Ie&&void 0!==(t=Te.get(e)))return t;if(void 0!==(t=e[Ze]))return t;if(!ze){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ze]))return t;if(void 0!==(t=Ne(e)))return t}if(t=++De,1073741824&De&&(De=0),Ie)Te.set(e,t);else{if(void 0!==Oe&&!1===Oe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ze)Object.defineProperty(e,Ze,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ze]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ze]=t}}return t}var Oe=Object.isExtensible,ze=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Ne(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Te,Ie="function"==typeof WeakMap;Ie&&(Te=new WeakMap);var De=0,Ze="__immutablehash__";"function"==typeof Symbol&&(Ze=Symbol(Ze));var je=16,Re=255,Be=0,Pe={};function Fe(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ue(e){return null==e?it():qe(e)&&!d(e)?e:it().withMutations(function(t){var n=r(e);Fe(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function qe(e){return!(!e||!e[Qe])}t(Ue,Me),Ue.prototype.toString=function(){return this.__toString("Map {","}")},Ue.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ue.prototype.set=function(e,t){return ot(this,e,t)},Ue.prototype.setIn=function(e,t){return this.updateIn(e,y,function(){return t})},Ue.prototype.remove=function(e){return ot(this,e,y)},Ue.prototype.deleteIn=function(e){return this.updateIn(e,function(){return y})},Ue.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ue.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Ct(this,En(e),t,n);return r===y?void 0:r},Ue.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):it()},Ue.prototype.merge=function(){return ft(this,void 0,arguments)},Ue.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},Ue.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,it(),function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]})},Ue.prototype.mergeDeep=function(){return ft(this,ht,arguments)},Ue.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,pt(t),n)},Ue.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,it(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]})},Ue.prototype.sort=function(e){return Pt(un(this,e))},Ue.prototype.sortBy=function(e,t){return Pt(un(this,t,e))},Ue.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ue.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new A)},Ue.prototype.asImmutable=function(){return this.__ensureOwner()},Ue.prototype.wasAltered=function(){return this.__altered},Ue.prototype.__iterator=function(e,t){return new et(this,e,t)},Ue.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},Ue.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ue.isMap=qe;var We,Qe="@@__IMMUTABLE_MAP__@@",Ge=Ue.prototype;function Ke(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return R(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var i=Object.create(Ge);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function it(){return We||(We=rt(0))}function ot(e,t,n){var r,i;if(e._root){var o=E(w),a=E(b);if(r=at(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===y?-1:1:0)}else{if(n===y)return e;i=1,r=new Ke(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(i,r):it()}function at(e,t,n,r,i,o,a,l){return e?e.update(t,n,r,i,o,a,l):o===y?e:(M(l),M(a),new $e(t,r,[i,o]))}function lt(e){return e.constructor===$e||e.constructor===Je}function st(e,t,n,r,i){if(e.keyHash===r)return new Je(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&v,l=(0===n?r:r>>>n)&v;return new Ye(t,1<<a|1<<l,a===l?[st(e,t,n+C,r,i)]:(o=new $e(t,r,i),a<l?[e,o]:[o,e]))}function ct(e,t,n,r){e||(e=new A);for(var i=new $e(e,He(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}function dt(e,t,n,r){for(var i=0,o=0,a=new Array(n),l=0,s=1,c=t.length;l<c;l++,s<<=1){var d=t[l];void 0!==d&&l!==r&&(i|=s,a[o++]=d)}return new Ye(e,i,a)}function ut(e,t,n,r,i){for(var o=0,a=new Array(g),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[o++]:void 0;return a[r]=i,new Xe(e,o+1,a)}function ft(e,t,n){for(var i=[],o=0;o<n.length;o++){var l=n[o],s=r(l);a(l)||(s=s.map(function(e){return he(e)})),i.push(s)}return mt(e,t,i)}function ht(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ge(e,t)?e:t}function pt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return ge(t,i)?t:i}}function mt(e,t,n){return n=n.filter(function(e){return 0!==e.size}),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,y,function(e){return e===y?n:t(e,n,r)})}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)}):e.constructor(n[0])}function Ct(e,t,n,r){var i=e===y,o=t.next();if(o.done){var a=i?n:e,l=r(a);return l===a?e:l}we(i||e&&e.set,"invalid keyPath");var s=o.value,c=i?y:e.get(s,y),d=Ct(c,t,n,r);return d===c?e:d===y?e.remove(s):(i?it():e).set(s,d)}function gt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function vt(e,t,n,r){var i=r?e:x(e);return i[t]=n,i}function yt(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,l=0;l<i;l++)l===t?(o[l]=n,a=-1):o[l]=e[l+a];return o}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}Ge[Qe]=!0,Ge[m]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ke.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ge(n,i[o][0]))return i[o][1];return r},Ke.prototype.update=function(e,t,n,r,i,o,a){for(var l=i===y,s=this.entries,c=0,d=s.length;c<d&&!ge(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(M(a),(l||!u)&&M(o),!l||1!==s.length){if(!u&&!l&&s.length>=bt)return ct(e,s,r,i);var f=e&&e===this.ownerID,h=f?s:x(s);return u?l?c===d-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new Ke(e,h)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=He(n));var i=1<<((0===e?t:t>>>e)&v),o=this.bitmap;return 0===(o&i)?r:this.nodes[gt(o&i-1)].get(e+C,t,n,r)},Ye.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=He(r));var l=(0===t?n:n>>>t)&v,s=1<<l,c=this.bitmap,d=0!==(c&s);if(!d&&i===y)return this;var u=gt(c&s-1),f=this.nodes,h=d?f[u]:void 0,p=at(h,e,t+C,n,r,i,o,a);if(p===h)return this;if(!d&&p&&f.length>=Et)return ut(e,f,c,l,p);if(d&&!p&&2===f.length&&lt(f[1^u]))return f[1^u];if(d&&p&&1===f.length&&lt(p))return p;var m=e&&e===this.ownerID,g=d?p?c:c^s:c|s,w=d?p?vt(f,u,p,m):wt(f,u,m):yt(f,u,p,m);return m?(this.bitmap=g,this.nodes=w,this):new Ye(e,g,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=He(n));var i=(0===e?t:t>>>e)&v,o=this.nodes[i];return o?o.get(e+C,t,n,r):r},Xe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=He(r));var l=(0===t?n:n>>>t)&v,s=i===y,c=this.nodes,d=c[l];if(s&&!d)return this;var u=at(d,e,t+C,n,r,i,o,a);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<Mt)return dt(e,c,f,l)}else f++;var h=e&&e===this.ownerID,p=vt(c,l,u,h);return h?(this.count=f,this.nodes=p,this):new Xe(e,f,p)},Je.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ge(n,i[o][0]))return i[o][1];return r},Je.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=He(r));var l=i===y;if(n!==this.keyHash)return l?this:(M(a),M(o),st(this,e,t,n,[r,i]));for(var s=this.entries,c=0,d=s.length;c<d&&!ge(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(M(a),(l||!u)&&M(o),l&&2===d)return new $e(e,this.keyHash,s[1^c]);var f=e&&e===this.ownerID,h=f?s:x(s);return u?l?c===d-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new Je(e,this.keyHash,h)},$e.prototype.get=function(e,t,n,r){return ge(n,this.entry[0])?this.entry[1]:r},$e.prototype.update=function(e,t,n,r,i,o,a){var l=i===y,s=ge(r,this.entry[0]);return(s?i===this.entry[1]:l)?this:(M(a),l?void M(o):s?e&&e===this.ownerID?(this.entry[1]=i,this):new $e(e,this.keyHash,[r,i]):(M(o),st(this,e,t,He(r),[r,i])))},Ke.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},$e.prototype.iterate=function(e,t){return e(this.entry)},t(et,j),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return tt(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return tt(e,o.entry);t=this._stack=nt(o,t)}continue}t=this._stack=this._stack.__prev}return B()};var bt=g/4,Et=g/2,Mt=g/4;function At(e){var t=Nt();if(null==e)return t;if(xt(e))return e;var n=i(e),r=n.size;return 0===r?t:(Fe(r),r>0&&r<g?zt(0,r,C,null,new Ht(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}function xt(e){return!(!e||!e[kt])}t(At,Ae),At.of=function(){return this(arguments)},At.prototype.toString=function(){return this.__toString("List [","]")},At.prototype.get=function(e,t){if((e=L(this,e))>=0&&e<this.size){var n=Zt(this,e+=this._origin);return n&&n.array[e&v]}return t},At.prototype.set=function(e,t){return Tt(this,e,t)},At.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},At.prototype.insert=function(e,t){return this.splice(e,0,t)},At.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=C,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Nt()},At.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){jt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},At.prototype.pop=function(){return jt(this,0,-1)},At.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){jt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},At.prototype.shift=function(){return jt(this,1)},At.prototype.merge=function(){return Rt(this,void 0,arguments)},At.prototype.mergeWith=function(t){return Rt(this,t,e.call(arguments,1))},At.prototype.mergeDeep=function(){return Rt(this,ht,arguments)},At.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Rt(this,pt(t),n)},At.prototype.setSize=function(e){return jt(this,0,e)},At.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:jt(this,_(e,n),V(t,n))},At.prototype.__iterator=function(e,t){var n=0,r=Ot(this,t);return new j(function(){var t=r();return t===Vt?B():R(e,n++,t)})},At.prototype.__iterate=function(e,t){for(var n,r=0,i=Ot(this,t);(n=i())!==Vt&&!1!==e(n,r++,this););return r},At.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?zt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},At.isList=xt;var kt="@@__IMMUTABLE_LIST__@@",Lt=At.prototype;function Ht(e,t){this.array=e,this.ownerID=t}Lt[kt]=!0,Lt[m]=Lt.remove,Lt.setIn=Ge.setIn,Lt.deleteIn=Lt.removeIn=Ge.removeIn,Lt.update=Ge.update,Lt.updateIn=Ge.updateIn,Lt.mergeIn=Ge.mergeIn,Lt.mergeDeepIn=Ge.mergeDeepIn,Lt.withMutations=Ge.withMutations,Lt.asMutable=Ge.asMutable,Lt.asImmutable=Ge.asImmutable,Lt.wasAltered=Ge.wasAltered,Ht.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&v;if(r>=this.array.length)return new Ht([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-C,n))===a&&o)return this}if(o&&!i)return this;var l=Dt(this,e);if(!o)for(var s=0;s<r;s++)l.array[s]=void 0;return i&&(l.array[r]=i),l},Ht.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&v;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-C,n))===o&&i===this.array.length-1)return this}var a=Dt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var St,_t,Vt={};function Ot(e,t){var n=e._origin,r=e._capacity,i=Bt(r),o=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?l(e,n):s(e,t,n)}function l(e,a){var l=a===i?o&&o.array:e&&e.array,s=a>n?0:n-a,c=r-a;return c>g&&(c=g),function(){if(s===c)return Vt;var e=t?--c:s++;return l&&l[e]}}function s(e,i,o){var l,s=e&&e.array,c=o>n?0:n-o>>i,d=1+(r-o>>i);return d>g&&(d=g),function(){for(;;){if(l){var e=l();if(e!==Vt)return e;l=null}if(c===d)return Vt;var n=t?--d:c++;l=a(s&&s[n],i-C,o+(n<<i))}}}}function zt(e,t,n,r,i,o,a){var l=Object.create(Lt);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=i,l.__ownerID=o,l.__hash=a,l.__altered=!1,l}function Nt(){return St||(St=zt(0,0,C))}function Tt(e,t,n){if((t=L(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?jt(e,t).set(0,n):jt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=E(b);return t>=Bt(e._capacity)?r=It(r,e.__ownerID,0,t,n,o):i=It(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):zt(e._origin,e._capacity,e._level,i,r):e}function It(e,t,n,r,i,o){var a,l=r>>>n&v,s=e&&l<e.array.length;if(!s&&void 0===i)return e;if(n>0){var c=e&&e.array[l],d=It(c,t,n-C,r,i,o);return d===c?e:((a=Dt(e,t)).array[l]=d,a)}return s&&e.array[l]===i?e:(M(o),a=Dt(e,t),void 0===i&&l===a.array.length-1?a.array.pop():a.array[l]=i,a)}function Dt(e,t){return t&&e&&t===e.ownerID?e:new Ht(e?e.array.slice():[],t)}function Zt(e,t){if(t>=Bt(e._capacity))return e._tail;if(t<1<<e._level+C){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=C;return n}}function jt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new A,i=e._origin,o=e._capacity,a=i+t,l=void 0===n?o:n<0?o+n:i+n;if(a===i&&l===o)return e;if(a>=l)return e.clear();for(var s=e._level,c=e._root,d=0;a+d<0;)c=new Ht(c&&c.array.length?[void 0,c]:[],r),d+=1<<(s+=C);d&&(a+=d,i+=d,l+=d,o+=d);for(var u=Bt(o),f=Bt(l);f>=1<<s+C;)c=new Ht(c&&c.array.length?[c]:[],r),s+=C;var h=e._tail,p=f<u?Zt(e,l-1):f>u?new Ht([],r):h;if(h&&f>u&&a<o&&h.array.length){for(var m=c=Dt(c,r),g=s;g>C;g-=C){var y=u>>>g&v;m=m.array[y]=Dt(m.array[y],r)}m.array[u>>>C&v]=h}if(l<o&&(p=p&&p.removeAfter(r,0,l)),a>=f)a-=f,l-=f,s=C,c=null,p=p&&p.removeBefore(r,0,a);else if(a>i||f<u){for(d=0;c;){var w=a>>>s&v;if(w!==f>>>s&v)break;w&&(d+=(1<<s)*w),s-=C,c=c.array[w]}c&&a>i&&(c=c.removeBefore(r,s,a-d)),c&&f<u&&(c=c.removeAfter(r,s,f-d)),d&&(a-=d,l-=d)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=c,e._tail=p,e.__hash=void 0,e.__altered=!0,e):zt(a,l,s,c,p)}function Rt(e,t,n){for(var r=[],o=0,l=0;l<n.length;l++){var s=n[l],c=i(s);c.size>o&&(o=c.size),a(s)||(c=c.map(function(e){return he(e)})),r.push(c)}return o>e.size&&(e=e.setSize(o)),mt(e,t,r)}function Bt(e){return e<g?0:e-1>>>C<<C}function Pt(e){return null==e?qt():Ft(e)?e:qt().withMutations(function(t){var n=r(e);Fe(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Ft(e){return qe(e)&&d(e)}function Ut(e,t,n,r){var i=Object.create(Pt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function qt(){return _t||(_t=Ut(it(),Nt()))}function Wt(e,t,n){var r,i,o=e._map,a=e._list,l=o.get(t),s=void 0!==l;if(n===y){if(!s)return e;a.size>=g&&a.size>=2*o.size?(r=(i=a.filter(function(e,t){return void 0!==e&&l!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=o,i=a.set(l,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Ut(r,i)}function Qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=yn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===T){var r=e.__iterator(t,n);return new j(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===N?z:N,n)},t}function Jt(e,t,n){var r=yn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,y);return o===y?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(T,i);return new j(function(){var i=o.next();if(i.done)return i;var a=i.value,l=a[0];return R(r,l,t.call(n,a[1],l,e),i)})},r}function $t(e,t){var n=yn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var i=yn(e);return r&&(i.has=function(r){var i=e.get(r,y);return i!==y&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,y);return o!==y&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,l=0;return e.__iterate(function(e,o,s){if(t.call(n,e,o,s))return l++,i(e,r?o:l-1,a)},o),l},i.__iteratorUncached=function(i,o){var a=e.__iterator(T,o),l=0;return new j(function(){for(;;){var o=a.next();if(o.done)return o;var s=o.value,c=s[0],d=s[1];if(t.call(n,d,c,e))return R(i,r?c:l++,d,o)}})},i}function tn(e,t,n){var r=Ue().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function nn(e,t,n){var r=l(e),i=(d(e)?Pt():Ue()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=vn(e);return i.map(function(t){return mn(e,o(t))})}function rn(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),S(t,n,i))return e;var o=_(t,i),a=V(n,i);if(o!=o||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var l,s=a-o;s==s&&(l=s<0?0:s);var c=yn(e);return c.size=0===l?l:e.size&&l||void 0,!r&&oe(e)&&l>=0&&(c.get=function(t,n){return(t=L(this,t))>=0&&t<l?e.get(t+o,n):n}),c.__iterateUncached=function(t,n){var i=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,c=0;return e.__iterate(function(e,n){if(!s||!(s=a++<o))return c++,!1!==t(e,r?n:c-1,i)&&c!==l}),c},c.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var i=0!==l&&e.__iterator(t,n),a=0,s=0;return new j(function(){for(;a++<o;)i.next();if(++s>l)return B();var e=i.next();return r||t===N?e:R(t,s-1,t===z?void 0:e.value[1],e)})},c}function on(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,l){return t.call(n,e,i,l)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(T,i),l=!0;return new j(function(){if(!l)return B();var e=a.next();if(e.done)return e;var i=e.value,s=i[0],c=i[1];return t.call(n,c,s,o)?r===T?e:R(r,s,c,e):(l=!1,B())})},r}function an(e,t,n,r){var i=yn(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var l=!0,s=0;return e.__iterate(function(e,o,c){if(!l||!(l=t.call(n,e,o,c)))return s++,i(e,r?o:s-1,a)}),s},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var l=e.__iterator(T,o),s=!0,c=0;return new j(function(){var e,o,d;do{if((e=l.next()).done)return r||i===N?e:R(i,c++,i===z?void 0:e.value[1],e);var u=e.value;o=u[0],d=u[1],s&&(s=t.call(n,d,o,a))}while(s);return i===T?e:R(i,o,d,e)})},i}function ln(e,t){var n=l(e),i=[e].concat(t).map(function(e){return a(e)?n&&(e=r(e)):e=n?le(e):se(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&l(o)||s(e)&&s(o))return o}var c=new te(i);return n?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}function sn(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,i){var o=0,l=!1;function s(e,c){var d=this;e.__iterate(function(e,i){return(!t||c<t)&&a(e)?s(e,c+1):!1===r(e,n?i:o++,d)&&(l=!0),!l},i)}return s(e,0),o},r.__iteratorUncached=function(r,i){var o=e.__iterator(r,i),l=[],s=0;return new j(function(){for(;o;){var e=o.next();if(!1===e.done){var c=e.value;if(r===T&&(c=c[1]),t&&!(l.length<t)||!a(c))return n?e:R(r,s++,c,e);l.push(o),o=c.__iterator(r,i)}else o=l.pop()}return B()})},r}function cn(e,t,n){var r=vn(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}function dn(e,t){var n=yn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e,r){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(N,r),a=0;return new j(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?R(n,a++,t):R(n,a++,i.value,i)})},n}function un(e,t,n){t||(t=bn);var r=l(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?G(o):s(e)?K(o):Y(o)}function fn(e,t,n){if(t||(t=bn),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return hn(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return hn(t,e,n)?n:e})}function hn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function pn(e,t,r){var i=yn(e);return i.size=new te(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(N,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=n(e),U(i?e.reverse():e)}),a=0,l=!1;return new j(function(){var n;return l||(n=o.map(function(e){return e.next()}),l=n.some(function(e){return e.done})),l?B():R(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function mn(e,t){return oe(e)?t:e.constructor(t)}function Cn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function gn(e){return Fe(e.size),k(e)}function vn(e){return l(e)?r:s(e)?i:o}function yn(e){return Object.create((l(e)?G:s(e)?K:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function bn(e,t){return e>t?1:e<t?-1:0}function En(e){var t=U(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(n(e))}return t}function Mn(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);Ln(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Ue(o)},i=r.prototype=Object.create(An);return i.constructor=r,r}t(Pt,Ue),Pt.of=function(){return this(arguments)},Pt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Pt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qt()},Pt.prototype.set=function(e,t){return Wt(this,e,t)},Pt.prototype.remove=function(e){return Wt(this,e,y)},Pt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Pt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Pt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ut(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Pt.isOrderedMap=Ft,Pt.prototype[p]=!0,Pt.prototype[m]=Pt.prototype.remove,t(Qt,G),Qt.prototype.get=function(e,t){return this._iter.get(e,t)},Qt.prototype.has=function(e){return this._iter.has(e)},Qt.prototype.valueSeq=function(){return this._iter.valueSeq()},Qt.prototype.reverse=function(){var e=this,t=$t(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?gn(this):0,function(i){return e(i,t?--n:n++,r)}),t)},Qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(N,t),r=t?gn(this):0;return new j(function(){var i=n.next();return i.done?i:R(e,t?--r:r++,i.value,i)})},Qt.prototype[p]=!0,t(Gt,K),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t),r=0;return new j(function(){var t=n.next();return t.done?t:R(e,r++,t.value,t)})},t(Kt,Y),Kt.prototype.has=function(e){return this._iter.includes(e)},Kt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t);return new j(function(){var t=n.next();return t.done?t:R(e,t.value,t.value,t)})},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Cn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t);return new j(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Cn(r);var i=a(r);return R(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},Gt.prototype.cacheResult=Qt.prototype.cacheResult=Kt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Mn,Me),Mn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Mn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Mn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Mn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=xn(this,it()))},Mn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:xn(this,n)},Mn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:xn(this,t)},Mn.prototype.wasAltered=function(){return this._map.wasAltered()},Mn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},Mn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},Mn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?xn(this,t,e):(this.__ownerID=e,this._map=t,this)};var An=Mn.prototype;function xn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function Ln(e,t){try{t.forEach(Hn.bind(void 0,e))}catch(e){}}function Hn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Sn(e){return null==e?In():_n(e)&&!d(e)?e:In().withMutations(function(t){var n=o(e);Fe(n.size),n.forEach(function(e){return t.add(e)})})}function _n(e){return!(!e||!e[On])}An[m]=An.remove,An.deleteIn=An.removeIn=Ge.removeIn,An.merge=Ge.merge,An.mergeWith=Ge.mergeWith,An.mergeIn=Ge.mergeIn,An.mergeDeep=Ge.mergeDeep,An.mergeDeepWith=Ge.mergeDeepWith,An.mergeDeepIn=Ge.mergeDeepIn,An.setIn=Ge.setIn,An.update=Ge.update,An.updateIn=Ge.updateIn,An.withMutations=Ge.withMutations,An.asMutable=Ge.asMutable,An.asImmutable=Ge.asImmutable,t(Sn,xe),Sn.of=function(){return this(arguments)},Sn.fromKeys=function(e){return this(r(e).keySeq())},Sn.prototype.toString=function(){return this.__toString("Set {","}")},Sn.prototype.has=function(e){return this._map.has(e)},Sn.prototype.add=function(e){return Nn(this,this._map.set(e,!0))},Sn.prototype.remove=function(e){return Nn(this,this._map.remove(e))},Sn.prototype.clear=function(){return Nn(this,this._map.clear())},Sn.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter(function(e){return 0!==e.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)o(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Sn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return o(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.every(function(e){return e.includes(n)})||e.remove(n)})})},Sn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return o(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.some(function(e){return e.includes(n)})&&e.remove(n)})})},Sn.prototype.merge=function(){return this.union.apply(this,arguments)},Sn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Sn.prototype.sort=function(e){return Dn(un(this,e))},Sn.prototype.sortBy=function(e,t){return Dn(un(this,t,e))},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},Sn.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Sn.isSet=_n;var Vn,On="@@__IMMUTABLE_SET__@@",zn=Sn.prototype;function Nn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Tn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Vn||(Vn=Tn(it()))}function Dn(e){return null==e?Pn():Zn(e)?e:Pn().withMutations(function(t){var n=o(e);Fe(n.size),n.forEach(function(e){return t.add(e)})})}function Zn(e){return _n(e)&&d(e)}zn[On]=!0,zn[m]=zn.remove,zn.mergeDeep=zn.merge,zn.mergeDeepWith=zn.mergeWith,zn.withMutations=Ge.withMutations,zn.asMutable=Ge.asMutable,zn.asImmutable=Ge.asImmutable,zn.__empty=In,zn.__make=Tn,t(Dn,Sn),Dn.of=function(){return this(arguments)},Dn.fromKeys=function(e){return this(r(e).keySeq())},Dn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Dn.isOrderedSet=Zn;var jn,Rn=Dn.prototype;function Bn(e,t){var n=Object.create(Rn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Pn(){return jn||(jn=Bn(qt()))}function Fn(e){return null==e?Kn():Un(e)?e:Kn().unshiftAll(e)}function Un(e){return!(!e||!e[Wn])}Rn[p]=!0,Rn.__empty=Pn,Rn.__make=Bn,t(Fn,Ae),Fn.of=function(){return this(arguments)},Fn.prototype.toString=function(){return this.__toString("Stack [","]")},Fn.prototype.get=function(e,t){var n=this._head;for(e=L(this,e);n&&e--;)n=n.next;return n?n.value:t},Fn.prototype.peek=function(){return this._head&&this._head.value},Fn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Fn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Fe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Fn.prototype.pop=function(){return this.slice(1)},Fn.prototype.unshift=function(){return this.push.apply(this,arguments)},Fn.prototype.unshiftAll=function(e){return this.pushAll(e)},Fn.prototype.shift=function(){return this.pop.apply(this,arguments)},Fn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Kn()},Fn.prototype.slice=function(e,t){if(S(e,t,this.size))return this;var n=_(e,this.size);if(V(t,this.size)!==this.size)return Ae.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Gn(r,i)},Fn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Fn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Fn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new j(function(){if(r){var t=r.value;return r=r.next,R(e,n++,t)}return B()})},Fn.isStack=Un;var qn,Wn="@@__IMMUTABLE_STACK__@@",Qn=Fn.prototype;function Gn(e,t,n,r){var i=Object.create(Qn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Kn(){return qn||(qn=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Qn[Wn]=!0,Qn.withMutations=Ge.withMutations,Qn.asMutable=Ge.asMutable,Qn.asImmutable=Ge.asImmutable,Qn.wasAltered=Ge.wasAltered,n.Iterator=j,Yn(n,{toArray:function(){Fe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Qt(this,!0)},toMap:function(){return Ue(this.toKeyedSeq())},toObject:function(){Fe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Pt(this.toKeyedSeq())},toOrderedSet:function(){return Dn(l(this)?this.valueSeq():this)},toSet:function(){return Sn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Kt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Fn(l(this)?this.valueSeq():this)},toList:function(){return At(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return mn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return ge(t,e)})},entries:function(){return this.__iterator(T)},every:function(e,t){Fe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return mn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Fe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Fe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(z)},map:function(e,t){return mn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,i;return Fe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return mn(this,$t(this,!0))},slice:function(e,t){return mn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return mn(this,un(this,e))},values:function(){return this.__iterator(N)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ve(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(H)},flatMap:function(e,t){return mn(this,cn(this,e,t))},flatten:function(e){return mn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find(function(t,n){return ge(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=En(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,y):y)===y)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fn(this,e)},maxBy:function(e,t){return fn(this,t,e)},min:function(e){return fn(this,e?nr(e):or)},minBy:function(e,t){return fn(this,t?nr(t):or,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return mn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return mn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return mn(this,un(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return mn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return mn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[u]=!0,Xn[Z]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return mn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return ge(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return ge(t,e)})},mapEntries:function(e,t){var n=this,r=0;return mn(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return mn(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Jn=r.prototype;function $n(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function ir(){return x(arguments)}function or(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=d(e),n=l(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+sr(He(e),He(t))|0}:function(e,t){r=r+sr(He(e),He(t))|0}:t?function(e){r=31*r+He(e)|0}:function(e){r=r+He(e)|0});return lr(i,r)}function lr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Le((t=ke(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[f]=!0,Jn[Z]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(i,{toKeyedSeq:function(){return new Qt(this,!1)},filter:function(e,t){return mn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return mn(this,$t(this,!1))},slice:function(e,t){return mn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=_(e,e<0?this.count():this.size);var r=this.slice(0,e);return mn(this,1===n?r:r.concat(x(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return mn(this,sn(this,e,!1))},get:function(e,t){return(e=L(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=L(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return mn(this,dn(this,e))},interleave:function(){var e=[this].concat(x(arguments)),t=pn(this.toSeq(),K.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),mn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return mn(this,an(this,e,t,!1))},zip:function(){return mn(this,pn(this,ir,[this].concat(x(arguments))))},zipWith:function(e){var t=x(arguments);return t[0]=this,mn(this,pn(this,e,t))}}),i.prototype[h]=!0,i.prototype[p]=!0,Yn(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(K,i.prototype),Yn(Y,o.prototype),Yn(Me,r.prototype),Yn(Ae,i.prototype),Yn(xe,o.prototype);var cr={Iterable:n,Seq:Q,Collection:Ee,Map:Ue,OrderedMap:Pt,List:At,Stack:Fn,Set:Sn,OrderedSet:Dn,Record:Mn,Range:be,Repeat:ye,is:ge,fromJS:he};return cr}()),DN.exports}function jN(){if(nz)return tz;nz=1;var e=ZN().OrderedMap;return tz={createFromArray:function(t){return e(t.map(function(e){return[e.getKey(),e]}))}}}function RN(){if(iz)return rz;iz=1;var e=ZN(),t=e.Map,n=e.OrderedSet,r=e.Record,i=n(),o={style:i,entity:null},a=function(e){var r,o;function a(){return e.apply(this,arguments)||this}o=e,(r=a).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var c=a.prototype;return c.getStyle=function(){return this.get("style")},c.getEntity=function(){return this.get("entity")},c.hasStyle=function(e){return this.getStyle().includes(e)},a.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return a.create(n)},a.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return a.create(n)},a.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return a.create(n)},a.create=function(e){if(!e)return l;var n=t({style:i,entity:null}).merge(e),r=s.get(n);if(r)return r;var o=new a(n);return s=s.set(n,o),o},a.fromJS=function(e){var t=e.style,r=e.entity;return new a({style:Array.isArray(t)?n(t):t,entity:Array.isArray(r)?n(r):r})},a}(r(o)),l=new a,s=t([[t(o),l]]);return a.EMPTY=l,rz=a}function BN(){if(az)return oz;return az=1,oz=function(e,t,n,r){if(e.size){var i=0;e.reduce(function(e,o,a){return t(e,o)||(n(e)&&r(i,a),i=a),o}),n(e.last())&&r(i,e.count())}}}function PN(){if(sz)return lz;sz=1;var e=RN(),t=BN(),n=ZN(),r=n.List,i=n.Map,o=n.OrderedSet,a=n.Record,l=n.Repeat,s=o(),c=a({key:"",type:"unstyled",text:"",characterList:r(),depth:0,data:i()}),d=function(n){var i,o;function a(t){return n.call(this,function(t){if(!t)return t;var n=t.characterList,i=t.text;return i&&!n&&(t.characterList=r(l(e.EMPTY,i.length))),t}(t))||this}o=n,(i=a).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var c=a.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():s},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.findStyleRanges=function(e,n){t(this.getCharacterList(),u,e,n)},c.findEntityRanges=function(e,n){t(this.getCharacterList(),f,e,n)},a}(c);function u(e,t){return e.getStyle()===t.getStyle()}function f(e,t){return e.getEntity()===t.getEntity()}return lz=d}function FN(){if(dz)return cz;dz=1;var e=RN(),t=BN(),n=ZN(),r=n.List,i=n.Map,o=n.OrderedSet,a=n.Record,l=n.Repeat,s=o(),c={parent:null,characterList:r(),data:i(),depth:0,key:"",text:"",type:"unstyled",children:r(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},u=function(e,t){return e.getEntity()===t.getEntity()},f=function(n){var i,o;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return n.call(this,function(t){if(!t)return t;var n=t.characterList,i=t.text;return i&&!n&&(t.characterList=r(l(e.EMPTY,i.length))),t}(t))||this}o=n,(i=a).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var f=a.prototype;return f.getKey=function(){return this.get("key")},f.getType=function(){return this.get("type")},f.getText=function(){return this.get("text")},f.getCharacterList=function(){return this.get("characterList")},f.getLength=function(){return this.getText().length},f.getDepth=function(){return this.get("depth")},f.getData=function(){return this.get("data")},f.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():s},f.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},f.getChildKeys=function(){return this.get("children")},f.getParentKey=function(){return this.get("parent")},f.getPrevSiblingKey=function(){return this.get("prevSibling")},f.getNextSiblingKey=function(){return this.get("nextSibling")},f.findStyleRanges=function(e,n){t(this.getCharacterList(),d,e,n)},f.findEntityRanges=function(e,n){t(this.getCharacterList(),u,e,n)},a}(a(c));return cz=f}function UN(){if(Cz)return mz;Cz=1;var e=function(){if(pz)return hz;pz=1;var e=RN();return hz=function(t,n,r,i){for(var o=n,a=t.getCharacterList();o<r;)a=a.set(o,e.applyEntity(a.get(o),i)),o++;return t.set("characterList",a)}}(),t=ZN();return mz=function(n,r,i){var o=n.getBlockMap(),a=r.getStartKey(),l=r.getStartOffset(),s=r.getEndKey(),c=r.getEndOffset(),d=o.skipUntil(function(e,t){return t===a}).takeUntil(function(e,t){return t===s}).toOrderedMap().merge(t.OrderedMap([[s,o.get(s)]])).map(function(t,n){var r=n===a?l:0,o=n===s?c:t.getLength();return e(t,r,o,i)});return n.merge({blockMap:o.merge(d),selectionBefore:r,selectionAfter:r})},mz}function qN(){if(wz)return yz;wz=1;var e="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};return yz=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(e(n),!t){var a;if(void 0===n)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;(a=new Error(n.replace(/%s/g,function(){return String(i[l++])}))).name="Invariant Violation"}throw a.framesToPop=1,a}},yz}function WN(){if(Az)return Mz;Az=1;var e=vz?gz:(vz=1,gz={getRemovalRange:function(e,t,n,r,i){var o=n.split(" ");o=o.map(function(e,t){if("forward"===i){if(t>0)return" "+e}else if(t<o.length-1)return e+" ";return e});for(var a,l=r,s=null,c=null,d=0;d<o.length;d++){if(e<(a=l+o[d].length)&&l<t)null!==s||(s=l),c=a;else if(null!==s)break;l=a}var u=r+n.length,f=s===r,h=c===u;return(!f&&h||f&&!h)&&("forward"===i?c!==u&&c++:s!==r&&s--),{start:s,end:c}}}),t=function(){if(Ez)return bz;Ez=1;var e=qN();return bz=function(t,n){var r=[];return t.findEntityRanges(function(e){return e.getEntity()===n},function(e,t){r.push({start:e,end:t})}),r.length||("production"!==process.env.NODE_ENV?e(!1,"Entity key not found in this range."):e(!1)),r},bz}(),n=qN();function r(r,i,o,a,l,s,c){var d=o.getStartOffset(),u=o.getEndOffset(),f=r.__get(l).getMutability(),h=c?d:u;if("MUTABLE"===f)return o;var p=t(i,l).filter(function(e){return h<=e.end&&h>=e.start});1!=p.length&&("production"!==process.env.NODE_ENV?n(!1,"There should only be one entity range within this removal range."):n(!1));var m=p[0];if("IMMUTABLE"===f)return o.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});s||(c?u=m.end:d=m.start);var C=e.getRemovalRange(d,u,i.getText().slice(m.start,m.end),m.start,a);return o.merge({anchorOffset:C.start,focusOffset:C.end,isBackward:!1})}return Mz=function(e,t,n,i,o){var a=i.getStartOffset(),l=i.getEndOffset(),s=t.getEntityAt(a),c=n.getEntityAt(l-1);if(!s&&!c)return i;var d=i;if(s&&s===c)d=r(e,t,d,o,s,!0,!0);else if(s&&c){var u=r(e,t,d,o,s,!1,!0),f=r(e,n,d,o,c,!1,!1);d=d.merge({anchorOffset:u.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var h=r(e,t,d,o,s,!1,!0);d=d.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(c){var p=r(e,n,d,o,c,!1,!1);d=d.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return d}}function QN(){if(kz)return xz;kz=1;var e={},t=Math.pow(2,24);return xz=function(){for(var n;void 0===n||e.hasOwnProperty(n)||!isNaN(+n);)n=Math.floor(Math.random()*t).toString(32);return e[n]=!0,n},xz}function GN(){if(Hz)return Lz;Hz=1;var e=FN(),t=QN(),n=ZN().OrderedMap;return Lz=function(r){return r.first()instanceof e?function(e){var r,i={};return n(e.withMutations(function(e){e.forEach(function(n,o){var a=n.getKey(),l=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),d=n.getParentKey(),u=t();if(i[a]=u,l&&(e.get(l)?e.setIn([l,"prevSibling"],u):e.setIn([a,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],u):e.setIn([a,"prevSibling"],null)),d&&e.get(d)){var f=e.get(d).getChildKeys();e.setIn([d,"children"],f.set(f.indexOf(n.getKey()),u))}else e.setIn([a,"parent"],null),r&&(e.setIn([r.getKey(),"nextSibling"],u),e.setIn([a,"prevSibling"],i[r.getKey()])),r=e.get(a);c.forEach(function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([a,"children"],n.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[i[e.getKey()],e.set("key",i[e.getKey()])]}))}(r):function(e){return n(e.toArray().map(function(e){var n=t();return[n,e.set("key",n)]}))}(r)},Lz}function KN(){if(_z)return Sz;_z=1;var e=RN(),t=BN(),n=qN();function r(r,i,o){var a=i.getCharacterList(),l=o>0?a.get(o-1):void 0,s=o<a.count()?a.get(o):void 0,c=l?l.getEntity():void 0,d=s?s.getEntity():void 0;if(d&&d===c&&"MUTABLE"!==r.__get(d).getMutability()){for(var u,f=function(e,r,i){var o;return t(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===r},function(e,t){e<=i&&t>=i&&(o={start:e,end:t})}),"object"!=typeof o&&("production"!==process.env.NODE_ENV?n(!1,"Removal range must exist within character list."):n(!1)),o}(a,d,o),h=f.start,p=f.end;h<p;)u=a.get(h),a=a.set(h,e.applyEntity(u,null)),h++;return i.set("characterList",a)}return i}return Sz=function(e,t){var n=e.getBlockMap(),i=e.getEntityMap(),o={},a=t.getStartKey(),l=t.getStartOffset(),s=n.get(a),c=r(i,s,l);c!==s&&(o[a]=c);var d=t.getEndKey(),u=t.getEndOffset(),f=n.get(d);a===d&&(f=c);var h=r(i,f,u);return h!==f&&(o[d]=h),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}}function YN(){if(Oz)return Vz;Oz=1;var e=GN(),t=KN();return Vz=function(n,r){var i=r.getStartKey(),o=r.getStartOffset(),a=r.getEndKey(),l=r.getEndOffset(),s=t(n,r).getBlockMap(),c=s.keySeq(),d=c.indexOf(i),u=c.indexOf(a)+1;return e(s.slice(d,u).map(function(e,t){var n=e.getText(),r=e.getCharacterList();return i===a?e.merge({text:n.slice(o,l),characterList:r.slice(o,l)}):t===i?e.merge({text:n.slice(o),characterList:r.slice(o)}):t===a?e.merge({text:n.slice(0,l),characterList:r.slice(0,l)}):e}))}}function XN(){if(Nz)return zz;return Nz=1,zz=function(e,t,n){var r=e;if(n===r.count())t.forEach(function(e){r=r.push(e)});else if(0===n)t.reverse().forEach(function(e){r=r.unshift(e)});else{var i=r.slice(0,n),o=r.slice(n);r=i.concat(t,o).toList()}return r}}function JN(){if(Iz)return Tz;Iz=1;var e=jN(),t=FN(),n=ZN(),r=XN(),i=qN(),o=GN(),a=n.List,l=function(n,r,i,o,l,s){var c=i.first()instanceof t,d=[],u=o.size,f=i.get(l),h=o.first(),p=o.last(),m=p.getLength(),C=p.getKey(),g=c&&(!f.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());i.forEach(function(e,t){t===l?(g?d.push(e):d.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.slice(0,t),a=i.slice(0,t),l=n.first();return e.merge({text:o+l.getText(),characterList:a.concat(l.getCharacterList()),type:o?e.getType():l.getType(),data:l.getData()})}(e,s,o)),o.slice(g?0:1,u-1).forEach(function(e){return d.push(e)}),d.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.length,a=r.slice(t,o),l=i.slice(t,o),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(l),data:s.getData()})}(e,s,o))):d.push(e)});var v=e.createFromArray(d);return c&&(v=function(e,t,n,r){return e.withMutations(function(t){var i=n.getKey(),o=r.getKey(),l=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,i=[];for(t.get(n)&&i.push(n);r&&r.getNextSiblingKey();){var o=r.getNextSiblingKey();if(!o)break;i.push(o),r=t.get(o)}return i}(r,e),d=c[c.length-1];if(t.get(o)?(t.setIn([i,"nextSibling"],o),t.setIn([o,"prevSibling"],i)):(t.setIn([i,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],i)),t.setIn([d,"nextSibling"],l),l&&t.setIn([l,"prevSibling"],d),c.forEach(function(e){return t.setIn([e,"parent"],s)}),s){var u=e.get(s).getChildKeys(),f=u.indexOf(i)+1,h=u.toArray();h.splice.apply(h,[f,0].concat(c)),t.setIn([s,"children"],a(h))}})}(v,0,f,h)),n.merge({blockMap:v,selectionBefore:r,selectionAfter:r.merge({anchorKey:C,anchorOffset:m,focusKey:C,focusOffset:m,isBackward:!1})})};return Tz=function(e,n,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||("production"!==process.env.NODE_ENV?i(!1,"`insertFragment` should only be called with a collapsed selection state."):i(!1));var c=e.getBlockMap(),d=o(a),u=n.getStartKey(),f=n.getStartOffset(),h=c.get(u);return h instanceof t&&(h.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?i(!1,"`insertFragment` should not be called when a container node is selected."):i(!1))),1===d.size?function(e,t,n,i,o,a){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),d=s.getCharacterList(),u=o,f=a+i.getText().length,h=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":h=i.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":h=i.getData()}var p=s.getType();c&&"unstyled"===p&&(p=i.getType());var m=s.merge({text:c.slice(0,a)+i.getText()+c.slice(a),characterList:r(d,i.getCharacterList(),a),type:p,data:h});return e.merge({blockMap:n.set(o,m),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:f,focusKey:u,focusOffset:f,isBackward:!1})})}(e,n,c,d.first(),u,f,s):l(e,n,c,d,u,f)},Tz}function $N(){if(Rz)return jz;Rz=1;var e=ZN().Map;return jz=function(t,n,r){var i=n.getStartKey(),o=n.getEndKey(),a=t.getBlockMap(),l=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat(e([[o,a.get(o)]])).map(r);return t.merge({blockMap:a.merge(l),selectionBefore:n,selectionAfter:n})},jz}function eT(){if(Pz)return Bz;Pz=1;var e=FN();return Bz=function(t,n){if(!(t instanceof e))return null;var r=t.getNextSiblingKey();if(r)return r;var i=t.getParentKey();if(!i)return null;for(var o=n.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?n.get(a):null}return o?o.getNextSiblingKey():null}}function tT(){if(Uz)return Fz;Uz=1;var e=FN(),t=eT(),n=ZN();n.List;var r=n.Map,i=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},o=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var i=r.getParentKey();i&&n.push(i),r=i?t.get(i):null}return n},a=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},s=function(e,n,r,s){return e.withMutations(function(c){if(i(n.getKey(),c,function(e){return e.merge({nextSibling:a(e,c,s),prevSibling:l(e,c,s)})}),i(r.getKey(),c,function(e){return e.merge({nextSibling:a(e,c,s),prevSibling:l(e,c,s)})}),o(n.getKey(),s).forEach(function(e){return i(e,c,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return c.get(e)}),nextSibling:a(e,c,s),prevSibling:l(e,c,s)})})}),i(n.getNextSiblingKey(),c,function(e){return e.merge({prevSibling:n.getPrevSiblingKey()})}),i(n.getPrevSiblingKey(),c,function(e){return e.merge({nextSibling:a(e,c,s)})}),i(r.getNextSiblingKey(),c,function(e){return e.merge({prevSibling:l(e,c,s)})}),i(r.getPrevSiblingKey(),c,function(e){return e.merge({nextSibling:r.getNextSiblingKey()})}),o(r.getKey(),s).forEach(function(e){i(e,c,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return c.get(e)}),nextSibling:a(e,c,s),prevSibling:l(e,c,s)})})}),function(e,n){var r=[];if(!e)return r;for(var i=t(e,n);i&&n.get(i);){var o=n.get(i);r.push(i),i=o.getParentKey()?t(o,n):null}return r}(r,s).forEach(function(e){return i(e,c,function(e){return e.merge({nextSibling:a(e,c,s),prevSibling:l(e,c,s)})})}),null==e.get(n.getKey())&&null!=e.get(r.getKey())&&r.getParentKey()===n.getKey()&&null==r.getPrevSiblingKey()){var d=n.getPrevSiblingKey();i(r.getKey(),c,function(e){return e.merge({prevSibling:d})}),i(d,c,function(e){return e.merge({nextSibling:r.getKey()})});var u=d?e.get(d):null,f=u?u.getParentKey():null;if(n.getChildKeys().forEach(function(e){i(e,c,function(e){return e.merge({parent:f})})}),null!=f){var h=e.get(f);i(f,c,function(e){return e.merge({children:h.getChildKeys().concat(n.getChildKeys())})})}i(n.getChildKeys().find(function(t){return null===e.get(t).getNextSiblingKey()}),c,function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})}})},c=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e};return Fz=function(n,i){if(i.isCollapsed())return n;var a,l=n.getBlockMap(),d=i.getStartKey(),u=i.getStartOffset(),f=i.getEndKey(),h=i.getEndOffset(),p=l.get(d),m=l.get(f),C=p instanceof e,g=[];if(C){var v=m.getChildKeys(),y=o(f,l);m.getNextSiblingKey()&&(g=g.concat(y)),v.isEmpty()||(g=g.concat(y.concat([f]))),g=g.concat(o(t(m,l),l))}a=p===m?c(p.getCharacterList(),u,h):p.getCharacterList().slice(0,u).concat(m.getCharacterList().slice(h));var w=p.merge({text:p.getText().slice(0,u)+m.getText().slice(h),characterList:a}),b=C&&0===u&&0===h&&m.getParentKey()===d&&null==m.getPrevSiblingKey()?r([[d,null]]):l.toSeq().skipUntil(function(e,t){return t===d}).takeUntil(function(e,t){return t===f}).filter(function(e,t){return-1===g.indexOf(t)}).concat(r([[f,null]])).map(function(e,t){return t===d?w:null}),E=l.merge(b).filter(function(e){return!!e});return C&&p!==m&&(E=s(E,p,m,l)),n.merge({blockMap:E,selectionBefore:i,selectionAfter:i.merge({anchorKey:d,anchorOffset:u,focusKey:d,focusOffset:u,isBackward:!1})})},Fz}function nT(){if(Wz)return qz;Wz=1;var e=FN(),t=QN(),n=ZN(),r=qN(),i=$N(),o=n.List,a=n.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};return qz=function(n,s){s.isCollapsed()||("production"!==process.env.NODE_ENV?r(!1,"Selection range must be collapsed."):r(!1));var c=s.getAnchorKey(),d=n.getBlockMap(),u=d.get(c),f=u.getText();if(!f){var h=u.getType();if("unordered-list-item"===h||"ordered-list-item"===h)return i(n,s,function(e){return e.merge({type:"unstyled",depth:0})})}var p=s.getAnchorOffset(),m=u.getCharacterList(),C=t(),g=u instanceof e,v=u.merge({text:f.slice(0,p),characterList:m.slice(0,p)}),y=v.merge({key:C,text:f.slice(p),characterList:m.slice(p),data:a()}),w=d.toSeq().takeUntil(function(e){return e===u}),b=d.toSeq().skipUntil(function(e){return e===u}).rest(),E=w.concat([[c,v],[C,y]],b).toOrderedMap();return g&&(u.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?r(!1,"ContentBlockNode must not have children"):r(!1)),E=function(e,t,n){return e.withMutations(function(e){var r=t.getKey(),i=n.getKey();l(t.getParentKey(),e,function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,a=t.toArray();return a.splice(n,0,i),e.merge({children:o(a)})}),l(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:i})}),l(r,e,function(e){return e.merge({nextSibling:i})}),l(i,e,function(e){return e.merge({prevSibling:r})})})}(E,v,y)),n.merge({blockMap:E,selectionBefore:s,selectionAfter:s.merge({anchorKey:C,anchorOffset:0,focusKey:C,focusOffset:0,isBackward:!1})})},qz}function rT(){if(Gz)return Qz;Gz=1;var e=RN(),t=function(){if(fz)return uz;fz=1;var e=RN(),t=ZN().Map;function n(n,r,i,o){var a=n.getBlockMap(),l=r.getStartKey(),s=r.getStartOffset(),c=r.getEndKey(),d=r.getEndOffset(),u=a.skipUntil(function(e,t){return t===l}).takeUntil(function(e,t){return t===c}).concat(t([[c,a.get(c)]])).map(function(t,n){var r,a;l===c?(r=s,a=d):(r=n===l?s:0,a=n===c?d:t.getLength());for(var u,f=t.getCharacterList();r<a;)u=f.get(r),f=f.set(r,o?e.applyStyle(u,i):e.removeStyle(u,i)),r++;return t.set("characterList",f)});return n.merge({blockMap:a.merge(u),selectionBefore:r,selectionAfter:r})}return uz={add:function(e,t,r){return n(e,t,r,!0)},remove:function(e,t,r){return n(e,t,r,!1)}}}(),n=UN(),r=WN(),i=YN(),o=ZN(),a=JN(),l=function(){if(Zz)return Dz;Zz=1;var e=ZN(),t=XN(),n=qN(),r=e.Repeat;return Dz=function(e,i,o,a){i.isCollapsed()||("production"!==process.env.NODE_ENV?n(!1,"`insertText` should only be called with a collapsed range."):n(!1));var l=null;if(null!=o&&(l=o.length),null==l||0===l)return e;var s=e.getBlockMap(),c=i.getStartKey(),d=i.getStartOffset(),u=s.get(c),f=u.getText(),h=u.merge({text:f.slice(0,d)+o+f.slice(d,u.getLength()),characterList:t(u.getCharacterList(),r(a,l).toList(),d)}),p=d+l;return e.merge({blockMap:s.set(c,h),selectionAfter:i.merge({anchorOffset:p,focusOffset:p})})},Dz}(),s=qN(),c=$N(),d=KN(),u=tT(),f=nT(),h=o.OrderedSet,p={replaceText:function(t,n,r,i,o){var a=d(t,n),s=u(a,n),c=e.create({style:i||h(),entity:o||null});return l(s,s.getSelectionAfter(),r,c)},insertText:function(e,t,n,r,i){return t.isCollapsed()||("production"!==process.env.NODE_ENV?s(!1,"Target range must be collapsed for `insertText`."):s(!1)),p.replaceText(e,t,n,r,i)},moveText:function(e,t,n){var r=i(e,t),o=p.removeRange(e,t,"backward");return p.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=d(e,t),o=u(i,t);return a(o,o.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var i,o,a,l;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(i),l=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),f=a.getEntityAt(s),h=l.getEntityAt(c-1);if(i===o&&f&&f===h){var p=r(e.getEntityMap(),a,l,t,n);return u(e,p)}var m=d(e,t);return u(m,t)},splitBlock:function(e,t){var n=d(e,t),r=u(n,t);return f(r,r.getSelectionAfter())},applyInlineStyle:function(e,n,r){return t.add(e,n,r)},removeInlineStyle:function(e,n,r){return t.remove(e,n,r)},setBlockType:function(e,t,n){return c(e,t,function(e){return e.merge({type:n,depth:0})})},setBlockData:function(e,t,n){return c(e,t,function(e){return e.merge({data:n})})},mergeBlockData:function(e,t,n){return c(e,t,function(e){return e.merge({data:e.getData().merge(n)})})},applyEntity:function(e,t,r){var i=d(e,t);return n(i,t,r)}};return Qz=p}function iT(){if(Yz)return Kz;return Yz=1,Kz=function(e){return Object.keys(e).map(function(t){return e[t]})},Kz}function oT(){if(Jz)return Xz;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Jz=1;var t=BN(),n=iT(),r=ZN(),i=r.List,o=r.Repeat,a=r.Record,l=function(){return!0},s=a({start:null,end:null}),c=a({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,n,r){var a=n.getLength();if(!a)return i.of(new c({start:0,end:0,decoratorKey:null,leaves:i.of(new s({start:0,end:0}))}));var d=[],h=r?r.getDecorations(n,e):i(o(null,a)),p=n.getCharacterList();return t(h,f,l,function(e,t){d.push(new c({start:e,end:t,decoratorKey:h.get(e),leaves:u(p.slice(e,t).toList(),e)}))}),i(d)},fromJS:function(t){var r=t.leaves,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["leaves"]);return new c(function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){e(t,n,r[n])})}return t}({},o,{leaves:null!=r?i(Array.isArray(r)?r:n(r)).map(function(e){return s(e)}):null}))}};function u(e,n){var r=[],o=e.map(function(e){return e.getStyle()}).toList();return t(o,f,l,function(e,t){r.push(new s({start:e+n,end:t+n}))}),i(r)}function f(e,t){return e===t}return Xz=d}function aT(){if(eN)return $z;eN=1;var e=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getType=function(){return this.get("type")},i.getMutability=function(){return this.get("mutability")},i.getData=function(){return this.get("data")},r}((0,ZN().Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));return $z=e}function lT(){if(iN)return rN;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}iN=1;var t=aT(),n=ZN(),r=qN(),i=(nN||(nN=1,tN=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}),tN),o=(0,n.Map)(),a=i();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var s={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),s.__getLastCreatedEntityKey()},create:function(e,t,n){return l("DraftEntity.create","contentState.createEntity"),s.__create(e,t,n)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),s.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),s.__get(e)},__getAll:function(){return o},__loadWithEntities:function(e){o=e,a=i()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),s.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),s.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return a},__create:function(e,n,r){return s.__add(new t({type:e,mutability:n,data:r||{}}))},__add:function(e){return a=i(),o=o.set(a,e),a},__get:function(e){var t=o.get(e);return t||("production"!==process.env.NODE_ENV?r(!1,"Unknown DraftEntity key: %s.",e):r(!1)),t},__mergeData:function(t,n){var r=s.__get(t),i=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){e(t,n,r[n])})}return t}({},r.getData(),n),a=r.set("data",i);return o=o.set(t,a),a},__replaceData:function(e,t){var n=s.__get(e).set("data",t);return o=o.set(e,n),n}};return rN=s}function sT(){if(aN)return oN;aN=1;var e=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},i.getAnchorKey=function(){return this.get("anchorKey")},i.getAnchorOffset=function(){return this.get("anchorOffset")},i.getFocusKey=function(){return this.get("focusKey")},i.getFocusOffset=function(){return this.get("focusOffset")},i.getIsBackward=function(){return this.get("isBackward")},i.getHasFocus=function(){return this.get("hasFocus")},i.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset(),a=this.getEndOffset();return t<=o&&o<=n||t<=a&&a<=n}if(e!==r&&e!==i)return!1;var l=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=l&&n>=l},i.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},i.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},i.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},i.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},i.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,ZN().Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));return oN=e}function cT(){return sN?lN:(sN=1,lN=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]})}function dT(){if(dN)return cN;dN=1;var e=new RegExp("\r","g");return cN=function(t){return t.replace(e,"")}}function uT(){if(fN)return uN;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}fN=1;var n=jN(),r=RN(),i=PN(),o=FN(),a=lT(),l=sT(),s=QN(),c=iT(),d=cT(),u=ZN(),f=dT(),h=u.List,p=u.Record,m=u.Repeat,C=u.Map,g=u.OrderedMap,v=p({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),y=d("draft_tree_data_support")?o:i,w=function(t){var i,o;function d(){return t.apply(this,arguments)||this}o=t,(i=d).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var u=d.prototype;return u.getEntityMap=function(){return a},u.getBlockMap=function(){return this.get("blockMap")},u.getSelectionBefore=function(){return this.get("selectionBefore")},u.getSelectionAfter=function(){return this.get("selectionAfter")},u.getBlockForKey=function(e){return this.getBlockMap().get(e)},u.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},u.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},u.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},u.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},u.getBlocksAsArray=function(){return this.getBlockMap().toArray()},u.getFirstBlock=function(){return this.getBlockMap().first()},u.getLastBlock=function(){return this.getBlockMap().last()},u.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},u.getLastCreatedEntityKey=function(){return a.__getLastCreatedEntityKey()},u.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},u.createEntity=function(e,t,n){return a.__create(e,t,n),this},u.mergeEntityData=function(e,t){return a.__mergeData(e,t),this},u.replaceEntityData=function(e,t){return a.__replaceData(e,t),this},u.addEntity=function(e){return a.__add(e),this},u.getEntity=function(e){return a.__get(e)},u.getAllEntities=function(){return a.__getAll()},u.loadWithEntities=function(e){return a.__loadWithEntities(e)},d.createFromBlockArray=function(e,t){var r=Array.isArray(e)?e:e.contentBlocks,i=n.createFromArray(r),o=i.isEmpty()?new l:l.createEmpty(i.first().getKey());return new d({blockMap:i,entityMap:t||a,selectionBefore:o,selectionAfter:o})},d.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map(function(e){return e=f(e),new y({key:s(),text:e,type:"unstyled",characterList:h(m(r.EMPTY,e.length))})});return d.createFromBlockArray(n)},d.fromJS=function(t){return new d(e({},t,{blockMap:g(t.blockMap).map(d.createContentBlockFromJS),selectionBefore:new l(t.selectionBefore),selectionAfter:new l(t.selectionAfter)}))},d.createContentBlockFromJS=function(t){var n=t.characterList;return new y(e({},t,{data:C(t.data),characterList:null!=n?h((Array.isArray(n)?n:c(n)).map(function(e){return r.fromJS(e)})):void 0}))},d}(v);return uN=w}function fT(){if(pN)return hN;pN=1;var e=qN(),t="LTR",n=null;function r(e){return e===t||"RTL"===e}function i(n){return r(n)||("production"!==process.env.NODE_ENV?e(!1,"`dir` must be a strong direction to be converted to HTML Direction"):e(!1)),n===t?"ltr":"rtl"}function o(e){n=e}return hN={NEUTRAL:"NEUTRAL",LTR:t,RTL:"RTL",isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(t,n){return r(t)||("production"!==process.env.NODE_ENV?e(!1,"`dir` must be a strong direction to be converted to HTML Direction"):e(!1)),r(n)||("production"!==process.env.NODE_ENV?e(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):e(!1)),t===n?null:i(t)},setGlobalDir:o,initGlobalDir:function(){o(t)},getGlobalDir:function(){return n||this.initGlobalDir(),n||("production"!==process.env.NODE_ENV?e(!1,"Global direction not set."):e(!1)),n}}}function hT(){if(CN)return mN;CN=1;var e=fT(),t=qN(),n="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",r="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",i=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+n+r+"]"),o=new RegExp("["+n+r+"]");function a(e){var t=i.exec(e);return null==t?null:t[0]}function l(t){var n=a(t);return null==n?e.NEUTRAL:o.exec(n)?e.RTL:e.LTR}function s(t,n){if(n=n||e.NEUTRAL,!t.length)return n;var r=l(t);return r===e.NEUTRAL?n:r}function c(n,r){return r||(r=e.getGlobalDir()),e.isStrong(r)||("production"!==process.env.NODE_ENV?t(!1,"Fallback direction must be a strong direction"):t(!1)),s(n,r)}return mN={firstStrongChar:a,firstStrongCharDir:l,resolveBlockDir:s,getDirection:c,isDirectionLTR:function(t,n){return c(t,n)===e.LTR},isDirectionRTL:function(t,n){return c(t,n)===e.RTL}}}function pT(){if(wN)return yN;wN=1;return yN=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},yN}function mT(){if(EN)return bN;EN=1;var e,t=function(){if(vN)return gN;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}vN=1;var t=hT(),n=fT(),r=qN();return gN=function(){function i(t){e(this,"_defaultDir",void 0),e(this,"_lastDir",void 0),t?n.isStrong(t)||("production"!==process.env.NODE_ENV?r(!1,"Default direction must be a strong direction (LTR or RTL)"):r(!1)):t=n.getGlobalDir(),this._defaultDir=t,this.reset()}var o=i.prototype;return o.reset=function(){this._lastDir=this._defaultDir},o.getDirection=function(e){return this._lastDir=t.getDirection(e,this._lastDir),this._lastDir},i}()}(),n=ZN(),r=pT(),i=n.OrderedMap;return bN={getDirectionMap:function(o,a){e?e.reset():e=new t;var l=o.getBlockMap(),s=l.valueSeq().map(function(t){return r(e).getDirection(t.getText())}),c=i(l.keySeq().zip(s));return null!=a&&n.is(a,c)?a:c}}}function CT(){if(AN)return MN;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}AN=1;var n=oT(),r=uT(),i=mT(),o=sT(),a=ZN(),l=a.OrderedSet,s=a.Record,c=a.Stack,d=a.OrderedMap,u=a.List,f=s({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:c(),selection:null,treeMap:null,undoStack:c()}),h=function(){s.createEmpty=function(e){return this.createWithText("",e)},s.createWithText=function(e,t){return s.createWithContent(r.createFromText(e),t)},s.createWithContent=function(e,t){if(0===e.getBlockMap().count())return s.createEmpty(t);var n=e.getBlockMap().first().getKey();return s.create({currentContent:e,undoStack:c(),redoStack:c(),decorator:t||null,selection:o.createEmpty(n)})},s.create=function(t){var n=t.currentContent,r=e({},t,{treeMap:m(n,t.decorator),directionMap:i.getDirectionMap(n)});return new s(new f(r))},s.fromJS=function(t){return new s(new f(e({},t,{directionMap:null!=t.directionMap?d(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?l(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?r.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?c(t.redoStack.map(function(e){return r.fromJS(e)})):t.redoStack,selection:null!=t.selection?new o(t.selection):t.selection,treeMap:null!=t.treeMap?d(t.treeMap).map(function(e){return u(e).map(function(e){return n.fromJS(e)})}):t.treeMap,undoStack:null!=t.undoStack?c(t.undoStack.map(function(e){return r.fromJS(e)})):t.undoStack,currentContent:r.fromJS(t.currentContent)})))},s.set=function(e,t){var r=e.getImmutable().withMutations(function(r){var i=r.get("decorator"),o=i;null===t.decorator?o=null:t.decorator&&(o=t.decorator);var a=t.currentContent||e.getCurrentContent();if(o!==i){var l,s=r.get("treeMap");return l=o&&i?function(e,t,r,i,o){return r.merge(t.toSeq().filter(function(t){return i.getDecorations(t,e)!==o.getDecorations(t,e)}).map(function(t){return n.generate(e,t,i)}))}(a,a.getBlockMap(),s,o,i):m(a,o),void r.merge({decorator:o,treeMap:l,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&r.set("treeMap",function(e,t,r,i){var o=e.getCurrentContent().set("entityMap",r),a=o.getBlockMap(),l=e.getImmutable().get("treeMap");return l.merge(t.toSeq().filter(function(e,t){return e!==a.get(t)}).map(function(e){return n.generate(o,e,i)}))}(e,a.getBlockMap(),a.getEntityMap(),o)),r.merge(t)});return new s(r)};var a=s.prototype;function s(e){t(this,"_immutable",void 0),this._immutable=e}return a.toJS=function(){return this.getImmutable().toJS()},a.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},a.getCurrentContent=function(){return this.getImmutable().get("currentContent")},a.getUndoStack=function(){return this.getImmutable().get("undoStack")},a.getRedoStack=function(){return this.getImmutable().get("redoStack")},a.getSelection=function(){return this.getImmutable().get("selection")},a.getDecorator=function(){return this.getImmutable().get("decorator")},a.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},a.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},a.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},a.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},a.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},s.setInlineStyleOverride=function(e,t){return s.set(e,{inlineStyleOverride:t})},a.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);if(r>0)return i.getInlineStyleAt(r-1);if(i.getLength())return i.getInlineStyleAt(0);return C(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);if(r<i.getLength())return i.getInlineStyleAt(r);if(r>0)return i.getInlineStyleAt(r-1);return C(e,n)}(t,n)},a.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},a.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},a.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},a.getDirectionMap=function(){return this.getImmutable().get("directionMap")},s.acceptSelection=function(e,t){return p(e,t,!1)},s.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),p(e,t,!0)},s.moveSelectionToEnd=function(e){var t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength();return s.acceptSelection(e,new o({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}))},s.moveFocusToEnd=function(e){var t=s.moveSelectionToEnd(e);return s.forceSelection(t,t.getSelection())},s.push=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===t)return e;var o=i.getDirectionMap(t,e.getDirectionMap());if(!e.getAllowUndo())return s.set(e,{currentContent:t,directionMap:o,lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),d=e.getUndoStack(),u=t;a!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,n)?(d=d.push(l),u=u.set("selectionBefore",a)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(u=u.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(f=null);var h={currentContent:u,directionMap:o,undoStack:d,redoStack:c(),lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:f};return s.set(e,h)},s.undo=function(e){if(!e.getAllowUndo())return e;var t=e.getUndoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),o=i.getDirectionMap(n,e.getDirectionMap());return s.set(e,{currentContent:n,directionMap:o,undoStack:t.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},s.redo=function(e){if(!e.getAllowUndo())return e;var t=e.getRedoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),o=i.getDirectionMap(n,e.getDirectionMap());return s.set(e,{currentContent:n,directionMap:o,undoStack:e.getUndoStack().push(r),redoStack:t.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},a.getImmutable=function(){return this._immutable},s}();function p(e,t,n){return h.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(e,t){return e.getBlockMap().map(function(r){return n.generate(e,r,t)}).toOrderedMap()}function C(e,t){var n=e.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}return MN=h}function gT(){if(HN)return LN;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}HN=1;var n=jN(),r=RN(),i=PN(),o=FN(),a=rT(),l=CT(),s=QN(),c=cT(),d=ZN(),u=function(){if(kN)return xN;kN=1;var e=FN(),t=eT(),n=ZN(),r=qN(),i=n.OrderedMap,o=n.List,a=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t,n,r,i){if(!i)return e;var l="after"===r,s=t.getKey(),c=n.getKey(),d=t.getParentKey(),u=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),h=n.getParentKey(),p=l?n.getNextSiblingKey():c,m=l?c:n.getPrevSiblingKey();return e.withMutations(function(e){a(d,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(s))})}),a(f,e,function(e){return e.merge({nextSibling:u})}),a(u,e,function(e){return e.merge({prevSibling:f})}),a(p,e,function(e){return e.merge({prevSibling:s})}),a(m,e,function(e){return e.merge({nextSibling:s})}),a(h,e,function(e){var t=e.getChildKeys(),n=t.indexOf(c),r=l?n+1:0!==n?n-1:0,i=t.toArray();return i.splice(r,0,s),e.merge({children:o(i)})}),a(s,e,function(e){return e.merge({nextSibling:p,prevSibling:m,parent:h})})})};return xN=function(n,o,a,s){"replace"===s&&("production"!==process.env.NODE_ENV?r(!1,"Replacing blocks is not supported."):r(!1));var c=a.getKey(),d=o.getKey();d===c&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1));var u=n.getBlockMap(),f=o instanceof e,h=[o],p=u.delete(d);f&&(h=[],p=u.withMutations(function(e){var n=o.getNextSiblingKey(),r=t(o,e);e.toSeq().skipUntil(function(e){return e.getKey()===d}).takeWhile(function(e){var t=e.getKey(),i=t===d,o=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(i||o||a)}).forEach(function(t){h.push(t),e.delete(t.getKey())})}));var m=p.toSeq().takeUntil(function(e){return e===a}),C=p.toSeq().skipUntil(function(e){return e===a}).skip(1),g=h.map(function(e){return[e.getKey(),e]}),v=i();if("before"===s){var y=n.getBlockBefore(c);y&&y.getKey()===o.getKey()&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),v=m.concat([].concat(g,[[c,a]]),C).toOrderedMap()}else if("after"===s){var w=n.getBlockAfter(c);w&&w.getKey()===d&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),v=m.concat([[c,a]].concat(g),C).toOrderedMap()}return n.merge({blockMap:l(v,o,a,s,f),selectionBefore:n.getSelectionAfter(),selectionAfter:n.getSelectionAfter().merge({anchorKey:d,focusKey:d})})},xN}(),f=c("draft_tree_data_support"),h=f?o:i,p=d.List,m=d.Repeat;return LN={insertAtomicBlock:function(t,i,o){var c=t.getCurrentContent(),d=t.getSelection(),u=a.removeRange(c,d,"backward"),C=u.getSelectionAfter(),g=a.splitBlock(u,C),v=g.getSelectionAfter(),y=a.setBlockType(g,v,"atomic"),w=r.create({entity:i}),b={key:s(),type:"atomic",text:o,characterList:p(m(w,o.length))},E={key:s(),type:"unstyled"};f&&(b=e({},b,{nextSibling:E.key}),E=e({},E,{prevSibling:b.key}));var M=[new h(b),new h(E)],A=n.createFromArray(M),x=a.replaceWithFragment(y,v,A),k=x.merge({selectionBefore:d,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return l.push(t,k,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var i,o=e.getCurrentContent(),s=e.getSelection();if("before"===r||"after"===r){var c=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());i=u(o,t,c,r)}else{var d=a.removeRange(o,n,"backward"),f=d.getSelectionAfter(),h=d.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())i=u(d,t,h,"before");else if(f.getEndOffset()===h.getLength())i=u(d,t,h,"after");else{var p=a.splitBlock(d,f),m=p.getSelectionAfter(),C=p.getBlockForKey(m.getFocusKey());i=u(p,t,C,"before")}}var g=i.merge({selectionBefore:s,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return l.push(e,g,"move-block")}}}function vT(){if(_N)return SN;_N=1;var e=ZN().List,t=function(){function t(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var n=t.prototype;return n.getDecorations=function(t,n){var r=Array(t.getText().length).fill(null);return this._decorators.forEach(function(e,i){var o=0;(0,e.strategy)(t,function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(r,e,t)&&(!function(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}(r,e,t,i+"."+o),o++)},n)}),e(r)},n.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},n.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},t}();return SN=t}function yT(){if(ON)return VN;function e(e){return e.replace(/\//g,"-")}return ON=1,VN=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")},VN}function wT(){if(NN)return zN;NN=1;var e=i,t=yT(),n=(0,ZN().Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:e.createElement("ul",{className:t("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:e.createElement("ol",{className:t("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:e.createElement("pre",{className:t("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});return zN=n}function bT(){return IN?TN:(IN=1,TN={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}})}var ET,MT,AT,xT,kT,LT,HT,ST,_T,VT,OT,zT,NT,TT,IT,DT,ZT,jT,RT,BT,PT,FT,UT,qT,WT,QT,GT,KT,YT,XT,JT,$T,eI,tI,nI,rI,iI,oI,aI,lI,sI,cI,dI,uI,fI,hI,pI,mI,CI,gI,vI,yI,wI,bI,EI,MI,AI,xI,kI,LI,HI,SI,_I,VI,OI,zI,NI,TI,II,DI,ZI,jI,RI,BI,PI,FI,UI,qI,WI,QI,GI,KI,YI,XI,JI,$I,eD,tD,nD,rD,iD,oD,aD,lD,sD,cD,dD,uD,fD,hD,pD,mD,CD,gD,vD,yD,wD,bD,ED,MD,AD,xD,kD,LD,HD,SD,_D,VD,OD,zD={exports:{}},ND=zD.exports;function TD(){return ET||(ET=1,function(e,t){!function(n,r){var i="function",o="undefined",a="object",l="string",s="major",c="model",d="name",u="type",f="vendor",h="version",p="architecture",m="console",C="mobile",g="tablet",v="smarttv",y="wearable",w="embedded",b="Amazon",E="Apple",M="ASUS",A="BlackBerry",x="Browser",k="Chrome",L="Firefox",H="Google",S="Honor",_="Huawei",V="LG",O="Microsoft",z="Motorola",N="Nvidia",T="OnePlus",I="Opera",D="OPPO",Z="Samsung",j="Sharp",R="Sony",B="Xiaomi",P="Zebra",F="Facebook",U="Chromium OS",q="Mac OS",W=" Browser",Q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},G=function(e,t){return typeof e===l&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},X=function(e,t){for(var n,o,l,s,c,d,u=0;u<t.length&&!c;){var f=t[u],h=t[u+1];for(n=o=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(l=0;l<h.length;l++)d=c[++o],typeof(s=h[l])===a&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,d):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=d?d.replace(s[1],s[2]):r:this[s[0]]=d?s[1].call(this,d,s[2]):r:4===s.length&&(this[s[0]]=d?s[3].call(this,d.replace(s[1],s[2])):r):this[s]=d||r;u+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(G(t[n][i],e))return"?"===n?r:n}else if(G(t[n],e))return"?"===n?r:n;return t.hasOwnProperty("*")?t["*"]:e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ee={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,h],[/opios[\/ ]+([\w\.]+)/i],[h,[d,I+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[d,I+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[d,I]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[h,[d,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[d,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[d,"Smart Lenovo "+x]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+x],h],[/\bfocus\/([\w\.]+)/i],[h,[d,L+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI"+W]],[/fxios\/([\w\.-]+)/i],[h,[d,L]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+W],h],[/samsungbrowser\/([\w\.]+)/i],[h,[d,Z+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[h,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[h,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,F],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[d,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,k+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[h,J,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],h],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[d,L+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[d,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[h,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[p,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[p,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[p,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[p,/ower/,"",K]],[/ sun4\w[;\)]/i],[[p,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[p,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,Z],[u,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,Z],[u,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,E],[u,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,E],[u,g]],[/(macintosh);/i],[c,[f,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,j],[u,C]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[f,S],[u,g]],[/honor([-\w ]+)[;\)]/i],[c,[f,S],[u,C]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[c,[f,_],[u,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,_],[u,C]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[f,B],[u,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[c,/_/g," "],[f,B],[u,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,D],[u,C]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[f,J,{OnePlus:["304","403","203"],"*":D}],[u,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[u,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[u,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,z],[u,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,z],[u,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,V],[u,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,V],[u,C]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[c,[f,"Lenovo"],[u,g]],[/(nokia) (t[12][01])/i],[f,c,[u,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[u,C],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,H],[u,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,H],[u,C]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,R],[u,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,R],[u,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,T],[u,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,b],[u,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,b],[u,C]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[u,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,A],[u,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,M],[u,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,M],[u,C]],[/(nexus 9)/i],[c,[f,"HTC"],[u,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[u,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[f,"TCL"],[u,g]],[/(itel) ((\w+))/i],[[f,K],c,[u,J,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[u,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[u,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[u,C]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[u,C]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[u,C]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[u,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[u,C]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[f,"Archos"],[u,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[f,"Archos"],[u,C]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,c,[u,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[u,C]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[u,g]],[/(surface duo)/i],[c,[f,O],[u,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[u,C]],[/(u304aa)/i],[c,[f,"AT&T"],[u,C]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[u,C]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[u,g]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[u,g]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[u,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[u,g]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[u,g]],[/\b(k88) b/i],[c,[f,"ZTE"],[u,g]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[u,C]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[u,C]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[u,g]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[u,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[u,g]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[u,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[u,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[u,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[u,C]],[/\b(ph-1) /i],[c,[f,"Essential"],[u,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[u,g]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[u,g]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[u,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[f,N],[u,g]],[/(sprint) (\w+)/i],[f,c,[u,C]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,O],[u,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,P],[u,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,P],[u,C]],[/smart-tv.+(samsung)/i],[f,[u,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,Z],[u,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,V],[u,v]],[/(apple) ?tv/i],[f,[c,E+" TV"],[u,v]],[/crkey/i],[[c,k+"cast"],[f,H],[u,v]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,b],[u,v]],[/(shield \w+ tv)/i],[c,[f,N],[u,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,j],[u,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,R],[u,v]],[/(mi(tv|box)-?\w+) bui/i],[c,[f,B],[u,v]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[u,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,Y],[c,Y],[u,v]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[u,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[u,m]],[/droid.+; (shield)( bui|\))/i],[c,[f,N],[u,m]],[/(playstation \w+)/i],[c,[f,R],[u,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,O],[u,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[f,Z],[u,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,c,[u,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[f,D],[u,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,E],[u,y]],[/(opwwe\d{3})/i],[c,[f,T],[u,y]],[/(moto 360)/i],[c,[f,z],[u,y]],[/(smartwatch 3)/i],[c,[f,R],[u,y]],[/(g watch r)/i],[c,[f,V],[u,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,P],[u,y]],[/droid.+; (glass) \d/i],[c,[f,H],[u,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,c,[u,y]],[/; (quest( \d| pro)?)/i],[c,[f,F],[u,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[u,w]],[/(aeobc)\b/i],[c,[f,b],[u,w]],[/(homepod).+mac os/i],[c,[f,E],[u,w]],[/windows iot/i],[[u,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[u,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[u,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,C]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[d,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[d,h],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,h],[/ladybird\//i],[[d,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,h],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[d,[h,J,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,J,$],[d,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,q],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,d],[/(ubuntu) ([\w\.]+) like android/i],[[d,/(.+)/,"$1 Touch"],h],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[d,h],[/\(bb(10);/i],[h,[d,A]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,L+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[d,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,U],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,h],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,h]]},te=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof te))return new te(e,t).getResult();var m=typeof n!==o&&n.navigator?n.navigator:r,v=e||(m&&m.userAgent?m.userAgent:""),y=m&&m.userAgentData?m.userAgentData:r,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(ee,t):ee,b=m&&m.userAgent==v;return this.getBrowser=function(){var e={};return e[d]=r,e[h]=r,X.call(e,v,w.browser),e[s]=function(e){return typeof e===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r}(e[h]),b&&m&&m.brave&&typeof m.brave.isBrave==i&&(e[d]="Brave"),e},this.getCPU=function(){var e={};return e[p]=r,X.call(e,v,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[u]=r,X.call(e,v,w.device),b&&!e[u]&&y&&y.mobile&&(e[u]=C),b&&"Macintosh"==e[c]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[c]="iPad",e[u]=g),e},this.getEngine=function(){var e={};return e[d]=r,e[h]=r,X.call(e,v,w.engine),e},this.getOS=function(){var e={};return e[d]=r,e[h]=r,X.call(e,v,w.os),b&&!e[d]&&y&&y.platform&&"Unknown"!=y.platform&&(e[d]=y.platform.replace(/chrome os/i,U).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(e){return v=typeof e===l&&e.length>500?Y(e,500):e,this},this.setUA(v),this};te.VERSION="0.7.41",te.BROWSER=Q([d,h,s]),te.CPU=Q([p]),te.DEVICE=Q([c,f,u,m,C,v,g,y,w]),te.ENGINE=te.OS=Q([d,h]),e.exports&&(t=e.exports=te),t.UAParser=te;var ne=typeof n!==o&&(n.jQuery||n.Zepto);if(ne&&!ne.ua){var re=new te;ne.ua=re.getResult(),ne.ua.get=function(){return re.getUA()},ne.ua.set=function(e){re.setUA(e);var t=re.getResult();for(var n in t)ne.ua[n]=t[n]}}}("object"==typeof window?window:ND)}(zD,zD.exports)),zD.exports}function ID(){if(AT)return MT;AT=1;var e=TD(),t="Unknown",n={"Mac OS":"Mac OS X"};var r,i=(new e).getResult(),o=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),a={browserArchitecture:i.cpu.architecture||t,browserFullVersion:i.browser.version||t,browserMinorVersion:o.minor||t,browserName:i.browser.name||t,browserVersion:i.browser.major||t,deviceName:i.device.model||t,engineName:i.engine.name||t,engineVersion:i.engine.version||t,platformArchitecture:i.cpu.architecture||t,platformName:(r=i.os.name,n[r]||r||t),platformVersion:i.os.version||t,platformFullVersion:i.os.version||t};return MT=a}function DD(){if(kT)return xT;kT=1;var e=qN(),t=/\./,n=/\|\|/,r=/\s+\-\s+/,i=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,o=/^(\d*)(.*)/;function a(t,i){var o=t.split(n);return o.length>1?o.some(function(e){return g.contains(e,i)}):function(t,n){var i=t.split(r);if(i.length>0&&i.length<=2||("production"!==process.env.NODE_ENV?e(!1,'the "-" operator expects exactly 2 operands'):e(!1)),1===i.length)return l(i[0],n);var o=i[0],a=i[1];return f(o)&&f(a)||("production"!==process.env.NODE_ENV?e(!1,'operands to the "-" operator must be simple (no modifiers)'):e(!1)),l(">="+o,n)&&l("<="+a,n)}(t=o[0].trim(),i)}function l(e,n){if(""===(e=e.trim()))return!0;var r=n.split(t),i=d(e),o=i.modifier,a=i.rangeComponents;switch(o){case"<":return s(r,a);case"<=":return function(e,t){var n=C(e,t);return-1===n||0===n}(r,a);case">=":return c(r,a);case">":return 1===C(r,a);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,o=parseInt(r[i],10);u(o)&&(r[i]=o+1+"");return c(e,n)&&s(e,r)}(r,a);default:return function(e,t){return 0===C(e,t)}(r,a)}}function s(e,t){return-1===C(e,t)}function c(e,t){var n=C(e,t);return 1===n||0===n}function d(n){var r=n.split(t),o=r[0].match(i);return o||("production"!==process.env.NODE_ENV?e(!1,"expected regex to match but it did not"):e(!1)),{modifier:o[1],rangeComponents:[o[2]].concat(r.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function f(e){return!d(e).modifier}function h(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function p(e,t){var n=e.match(o)[1],r=t.match(o)[1],i=parseInt(n,10),a=parseInt(r,10);return u(i)&&u(a)&&i!==a?m(i,a):m(e,t)}function m(t,n){return typeof t!=typeof n&&("production"!==process.env.NODE_ENV?e(!1,'"a" and "b" must be of the same type'):e(!1)),t>n?1:t<n?-1:0}function C(e,t){for(var n=function(e,t){h(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var i=n;i<e.length;i++)e[i]="0"}return h(t,e.length),[e,t]}(e,t),r=n[0],i=n[1],o=0;o<i.length;o++){var a=p(r[o],i[o]);if(a)return a}return 0}var g={contains:function(e,t){return a(e.trim(),t.trim())}};return xT=g}function ZD(){if(OT)return VT;OT=1;var e=ID(),t=DD(),n=function(){if(HT)return LT;HT=1;var e=Object.prototype.hasOwnProperty;return LT=function(t,n,r){if(!t)return null;var i={};for(var o in t)e.call(t,o)&&(i[o]=n.call(r,t[o],o,t));return i},LT}(),r=_T?ST:(_T=1,ST=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}});function i(e,n,r,i){if(e===r)return!0;if(!r.startsWith(e))return!1;var o=r.slice(e.length);return!!n&&(o=i?i(o):o,t.contains(o,n))}function o(t){return"Windows"===e.platformName?t.replace(/^\s*NT/,""):t}return VT=n({isBrowser:function(t){return i(e.browserName,e.browserFullVersion,t)},isBrowserArchitecture:function(t){return i(e.browserArchitecture,null,t)},isDevice:function(t){return i(e.deviceName,null,t)},isEngine:function(t){return i(e.engineName,e.engineVersion,t)},isPlatform:function(t){return i(e.platformName,e.platformFullVersion,t,o)},isPlatformArchitecture:function(t){return i(e.platformArchitecture,null,t)}},r)}function jD(){if(NT)return zT;return NT=1,zT=function(e){return e&&e.ownerDocument?e.ownerDocument:document}}function RD(){if(IT)return TT;return IT=1,TT=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}}function BD(){if(ZT)return DT;ZT=1;var e=RD();return DT=function t(n){if(e(n)){var r=n,i=r.getAttribute("data-offset-key");if(i)return i;for(var o=0;o<r.childNodes.length;o++){var a=t(r.childNodes[o]);if(a)return a}}return null},DT}function PD(){if(RT)return jT;RT=1;var e=jD(),t=BD();return jT=function(n){for(var r=n;r&&r!==e(n).documentElement;){var i=t(r);if(null!=i)return i;r=r.parentNode}return null},jT}function FD(){if(PT)return BT;return PT=1,BT=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}}function UD(){if(WT)return qT;WT=1;var e="-";return qT={encode:function(t,n,r){return t+e+n+e+r},decode:function(t){var n=t.split(e).reverse(),r=n[0],i=n[1];return{blockKey:n.slice(2).reverse().join(e),decoratorKey:parseInt(i,10),leafKey:parseInt(r,10)}}}}function qD(){return GT?QT:(GT=1,QT={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105})}function WD(){return YT?KT:(YT=1,KT={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}})}function QD(){if(JT)return XT;return JT=1,XT=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}}function GD(){if(eI)return $T;eI=1;var e=qN(),t=QD();return $T=function(n){var r=n.editorContainer;return r||("production"!==process.env.NODE_ENV?e(!1,"Missing editorNode"):e(!1)),t(r.firstChild)||("production"!==process.env.NODE_ENV?e(!1,"editorNode.firstChild is not an HTMLElement"):e(!1)),r.firstChild}}function KD(){if(nI)return tI;nI=1;var e=UD(),t=pT();return tI=function(n,r,i,o,a){var l=t(n.getSelection());if(!r||!o)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var s=e.decode(r),c=s.blockKey,d=n.getBlockTree(c),u=d&&d.getIn([s.decoratorKey,"leaves",s.leafKey]),f=e.decode(o),h=f.blockKey,p=n.getBlockTree(h),m=p&&p.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!u||!m)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var C=u.get("start"),g=m.get("start"),v=u?C+i:null,y=m?g+a:null;if(l.getAnchorKey()===c&&l.getAnchorOffset()===v&&l.getFocusKey()===h&&l.getFocusOffset()===y)return l;var w=!1;if(c===h){var b=u.get("end"),E=m.get("end");w=g===C&&E===b?a<i:g<C}else{var M=n.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===c||e===h}).first();w=M===h}return l.merge({anchorKey:c,anchorOffset:v,focusKey:h,focusOffset:y,isBackward:w})},tI}function YD(){if(iI)return rI;iI=1;var e=PD(),t=BD(),n=KD(),r=qN(),i=RD(),o=pT();function a(n,a,s){var c=a,d=e(c);(null!=d||n&&(n===c||n.firstChild===c)||("production"!==process.env.NODE_ENV?r(!1,"Unknown node in selection range."):r(!1)),n===c)&&(c=c.firstChild,i(c)||("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents node."):r(!1)),"true"!==(c=c).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents structure."):r(!1)),s>0&&(s=c.childNodes.length));if(0===s){var u=null;if(null!=d)u=d;else{var f=function(e){for(;e.firstChild&&(i(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||t(e.firstChild));)e=e.firstChild;return e}(c);u=o(t(f))}return{key:u,offset:0}}var h=c.childNodes[s-1],p=null,m=null;if(t(h)){var C=function(e){for(;e.lastChild&&(i(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||t(e.lastChild));)e=e.lastChild;return e}(h);p=o(t(C)),m=l(C)}else p=o(d),m=l(h);return{key:p,offset:m}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}return rI=function(t,r,i,l,s,c){var d=i.nodeType===Node.TEXT_NODE,u=s.nodeType===Node.TEXT_NODE;if(d&&u)return{selectionState:n(t,o(e(i)),l,o(e(s)),c),needsRecovery:!1};var f=null,h=null,p=!0;return d?(f={key:o(e(i)),offset:l},h=a(r,s,c)):u?(h={key:o(e(s)),offset:c},f=a(r,i,l)):(f=a(r,i,l),h=a(r,s,c),i===s&&l===c&&(p=!!i.firstChild&&"BR"!==i.firstChild.nodeName)),{selectionState:n(t,f.key,f.offset,h.key,h.offset),needsRecovery:p}}}function XD(){if(aI)return oI;aI=1;var e=YD();return oI=function(t,n){var r=n.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.anchorOffset,a=r.focusNode,l=r.focusOffset;return 0===r.rangeCount||null==i||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:e(t,n,i,o,a,l)}}function JD(){if(sI)return lI;sI=1;var e=WD(),t=CT(),n=GD(),r=XD();return lI=function(i){if(i._blockSelectEvents||i._latestEditorState!==i.props.editorState){if(i._blockSelectEvents){var o=i.props.editorState.getSelection();e.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(o.toJS())})}}else{var a=i.props.editorState,l=r(a,n(i)),s=l.selectionState;s!==a.getSelection()&&(a=l.needsRecovery?t.forceSelection(a,s):t.acceptSelection(a,s),i.update(a))}}}function $D(){if(dI)return cI;return dI=1,cI={notEmptyKey:function(e){return null!=e&&""!=e}},cI}function eZ(){if(fI)return uI;fI=1;var e=$D().notEmptyKey;function t(t,n){return e(n)&&"MUTABLE"===t.__get(n).getMutability()?n:null}return uI=function(e,n){var r;if(n.isCollapsed()){var i=n.getAnchorKey(),o=n.getAnchorOffset();return o>0?(r=e.getBlockForKey(i).getEntityAt(o-1))!==e.getBlockForKey(i).getEntityAt(o)?null:t(e.getEntityMap(),r):null}var a=n.getStartKey(),l=n.getStartOffset(),s=e.getBlockForKey(a);return r=l===s.getLength()?null:s.getEntityAt(l),t(e.getEntityMap(),r)},uI}function tZ(){if(pI)return hI;pI=1;var e=function(){if(UT)return FT;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}UT=1;var t=ZD(),n=PD(),r=FD(),i=ZN(),o=qN(),a=pT(),l=i.Map,s={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},c=t.isBrowser("IE <= 11"),d=function(){function t(t){var n=this;e(this,"observer",void 0),e(this,"container",void 0),e(this,"mutations",void 0),e(this,"onCharData",void 0),this.container=t,this.mutations=l();var i=r(t);i.MutationObserver&&!c?this.observer=new i.MutationObserver(function(e){return n.registerMutations(e)}):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?o(!1,"Expected target to be an instance of Node"):o(!1)),n.registerMutation({type:"characterData",target:e.target})}}var i=t.prototype;return i.start=function(){this.observer?this.observer.observe(this.container,s):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},i.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=l(),t},i.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},i.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return c?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},i.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var r=a(n(e.target));this.mutations=this.mutations.set(r,t)}},t}();return FT=d}(),t=rT(),n=UD(),r=CT(),i=qD(),o=ZD(),a=JD(),l=GD(),s=XD(),c=eZ(),d=pT(),u=o.isBrowser("IE"),f=!1,h=!1,p=null;var m={onCompositionStart:function(t){h=!0,function(t){p||(p=new e(l(t))).start()}(t)},onCompositionEnd:function(e){f=!1,h=!1,setTimeout(function(){f||m.resolveComposition(e)},20)},onSelect:a,onKeyDown:function(e,t){if(!h)return m.resolveComposition(e),void e._onKeyDown(t);t.which!==i.RIGHT&&t.which!==i.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===i.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!h){var i=d(p).stopAndFlushMutations();p=null,f=!0;var o=r.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),i.size){var a=o.getCurrentContent();i.forEach(function(e,i){var l=n.decode(i),s=l.blockKey,d=l.decoratorKey,u=l.leafKey,f=o.getBlockTree(s).getIn([d,"leaves",u]),h=f.start,p=f.end,m=o.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:h,focusOffset:p,isBackward:!1}),C=c(a,m),g=a.getBlockForKey(s).getInlineStyleAt(h);a=t.replaceText(a,m,e,g,C),o=r.set(o,{currentContent:a})});var m=s(o,l(e)).selectionState;e.restoreEditorDOM();var C=u?r.forceSelection(o,m):r.acceptSelection(o,m);e.update(r.push(C,a,"insert-characters"))}else e.update(o)}}};return hI=m}function nZ(){if(CI)return mI;CI=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=UD(),r=i,o=hT(),a=fT(),l=function(e){var i,l;function s(){return e.apply(this,arguments)||this}return l=e,(i=s).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l,s.prototype.render=function(){var e=this.props,i=e.block,l=e.children,s=e.contentState,c=e.decorator,d=e.decoratorKey,u=e.direction,f=e.leafSet,h=e.text,p=i.getKey(),m=f.get("leaves"),C=c.getComponentForKey(d),g=c.getPropsForKey(d),v=n.encode(p,parseInt(d,10),0),y=h.slice(m.first().get("start"),m.last().get("end")),w=a.getHTMLDirIfDifferent(o.getDirection(y),u);return r.createElement(C,t({},g,{contentState:s,decoratedText:y,dir:w,key:v,entityKey:i.getEntityAt(f.get("start")),offsetKey:v}),l)},s}(r.Component);return mI=l}function rZ(){if(vI)return gI;function e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}vI=1;var n=i,r=ZD(),o=qN(),a=RD(),l=r.isBrowser("IE <= 11");var s=function(r){var i,s;function c(n){var i;return t(e(i=r.call(this,n)||this),"_forceFlag",void 0),t(e(i),"_node",void 0),i._forceFlag=!1,i}s=r,(i=c).prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__proto__=s;var d=c.prototype;return d.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;a(t)||("production"!==process.env.NODE_ENV?o(!1,"node is not an Element"):o(!1));var r=t;return n?!function(e){return l?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},d.componentDidMount=function(){this._forceFlag=!this._forceFlag},d.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},d.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},l?n.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):n.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return l?n.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):n.createElement("br",{key:"B","data-text":"true",ref:e})}(function(e){return t._node=e}):n.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},c}(n.Component);return gI=s}function iZ(){if(wI)return yI;wI=1;var e=RD();return yI=function(t){return!(!t||!t.ownerDocument)&&(e(t)&&"BR"===t.nodeName)}}function oZ(){return EI?bI:(EI=1,bI={initODS:function(){},handleExtensionCausedError:function(){}})}function aZ(){if(kI)return xI;kI=1;var e=AI?MI:(AI=1,MI=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))});return xI=function(t){return e(t)&&3==t.nodeType}}function lZ(){if(HI)return LI;HI=1;var e=aZ();return LI=function t(n,r){return!(!n||!r)&&(n===r||!e(n)&&(e(r)?t(n,r.parentNode):"contains"in n?n.contains(r):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(r))))},LI}function sZ(){if(_I)return SI;return _I=1,SI=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}}function cZ(){if(OI)return VI;OI=1;var e=oZ(),t=WD(),n=ZD(),r=lZ(),i=sZ(),o=jD(),a=qN(),l=RD(),s=n.isBrowser("IE");function c(e,t){if(!e)return"[empty]";var n=d(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||("production"!==process.env.NODE_ENV?a(!1,"Node must be an Element if it is not a text node."):a(!1)),n.outerHTML)}function d(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return o(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&n.length&&i.setAttribute("data-labels",n.join(", "));for(var a=e.childNodes,l=0;l<a.length;l++)i.appendChild(d(a[l],t));return i}function u(e,t){for(var n=e,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return c(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function f(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function h(e,n,o,a){var l=i();if(e.extend&&null!=n&&r(l,n)){o>f(n)&&t.logSelectionStateFailure({anonymizedDom:u(n),extraParams:JSON.stringify({offset:o}),selectionState:JSON.stringify(a.toJS())});var s=n===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(n,o)}catch(r){throw t.logSelectionStateFailure({anonymizedDom:u(n,function(t){var n=[];return t===l&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:l?l.nodeName:null,nodeIsFocus:n===e.focusNode,nodeWasFocus:s,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:r?""+r:null,offset:o},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),r}}else if(n&&e.rangeCount>0){var c=e.getRangeAt(0);c.setEnd(n,o),e.addRange(c.cloneRange())}}function p(n,r,i,a){var l=o(r).createRange();if(i>f(r)&&(t.logSelectionStateFailure({anonymizedDom:u(r),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(a.toJS())}),e.handleExtensionCausedError()),l.setStart(r,i),s)try{n.addRange(l)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else n.addRange(l)}return VI={setDraftEditorSelection:function(e,t,n,i,a){var l=o(t);if(r(l.documentElement,t)){var s=l.defaultView.getSelection(),c=e.getAnchorKey(),d=e.getAnchorOffset(),u=e.getFocusKey(),f=e.getFocusOffset(),m=e.getIsBackward();if(!s.extend&&m){var C=c,g=d;c=u,d=f,u=C,f=g,m=!1}var v=c===n&&i<=d&&a>=d,y=u===n&&i<=f&&a>=f;if(v&&y)return s.removeAllRanges(),p(s,t,d-i,e),void h(s,t,f-i,e);if(m){if(y&&(s.removeAllRanges(),p(s,t,f-i,e)),v){var w=s.focusNode,b=s.focusOffset;s.removeAllRanges(),p(s,t,d-i,e),h(s,w,b,e)}}else v&&(s.removeAllRanges(),p(s,t,d-i,e)),y&&h(s,t,f-i,e)}},addFocusToSelection:h}}function dZ(){if(NI)return zI;NI=1;var e=jh();var t=rZ(),n=i,r=qN(),o=iZ(),a=cZ().setDraftEditorSelection,l=function(i){var l,s;function c(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e=i.call.apply(i,[this].concat(n))||this),"leaf",void 0),e}s=i,(l=c).prototype=Object.create(s.prototype),l.prototype.constructor=l,l.__proto__=s;var d=c.prototype;return d._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,i=t.start,l=t.text,s=n.getKey(),c=i+l.length;if(e.hasEdgeWithin(s,i,c)){var d=this.leaf;d||("production"!==process.env.NODE_ENV?r(!1,"Missing node"):r(!1));var u,f=d.firstChild;f||("production"!==process.env.NODE_ENV?r(!1,"Missing child"):r(!1)),f.nodeType===Node.TEXT_NODE?u=f:o(f)?u=d:(u=f.firstChild)||("production"!==process.env.NODE_ENV?r(!1,"Missing targetNode"):r(!1)),a(e,u,s,i,c)}}},d.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?r(!1,"Missing leafNode"):r(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},d.componentDidUpdate=function(){this._setSelection()},d.componentDidMount=function(){this._setSelection()},d.render=function(){var r=this,i=this.props.block,o=this.props.text;o.endsWith("\n")&&this.props.isLast&&(o+="\n");var a=this.props,l=a.customStyleMap,s=a.customStyleFn,c=a.offsetKey,d=a.styleSet,u=d.reduce(function(t,n){var r={},i=l[n];return void 0!==i&&t.textDecoration!==i.textDecoration&&(r.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim()),e(t,i,r)},{});if(s){var f=s(d,i);u=e(u,f)}return n.createElement("span",{"data-offset-key":c,ref:function(e){return r.leaf=e},style:u},n.createElement(t,null,o))},c}(n.Component);return zI=l}function uZ(){if(II)return TI;II=1;var e=nZ(),t=dZ(),n=UD(),r=ZN(),o=i,a=yT();r.List;var l=function(r){var i,l;function s(){return r.apply(this,arguments)||this}return l=r,(i=s).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l,s.prototype.render=function(){var r=this.props,i=r.block,l=r.contentState,s=r.customStyleFn,c=r.customStyleMap,d=r.decorator,u=r.direction,f=r.forceSelection,h=r.hasSelection,p=r.selection,m=r.tree,C=i.getKey(),g=i.getText(),v=m.size-1,y=this.props.children||m.map(function(r,a){var m=r.get("decoratorKey"),y=r.get("leaves"),w=y.size-1,b=y.map(function(e,r){var l=n.encode(C,a,r),d=e.get("start"),u=e.get("end");return o.createElement(t,{key:l,offsetKey:l,block:i,start:d,selection:h?p:null,forceSelection:f,text:g.slice(d,u),styleSet:i.getInlineStyleAt(d),customStyleMap:c,customStyleFn:s,isLast:m===v&&r===w})}).toArray();return m&&d?o.createElement(e,{block:i,children:b,contentState:l,decorator:d,decoratorKey:m,direction:u,leafSet:r,text:g,key:a}):b}).toArray();return o.createElement("div",{"data-offset-key":n.encode(C,0,0),className:a({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===u,"public/DraftStyleDefault/rtl":"RTL"===u})},y)},s}(o.Component);return TI=l}function fZ(){if(ZI)return DI;function e(e,t){return!!t&&(e===t.documentElement||e===t.body)}return ZI=1,DI={getTop:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}}}function hZ(){if(UI)return FI;UI=1;var e=function(){if(RI)return jI;RI=1;var e=/-(.)/g;return jI=function(t){return t.replace(e,function(e,t){return t.toUpperCase()})}}(),t=function(){if(PI)return BI;PI=1;var e=/([A-Z])/g;return BI=function(t){return t.replace(e,"-$1").toLowerCase()}}();function n(e){return null==e?e:String(e)}return FI=function(r,i){var o;if(window.getComputedStyle&&(o=window.getComputedStyle(r,null)))return n(o.getPropertyValue(t(i)));if(document.defaultView&&document.defaultView.getComputedStyle){if(o=document.defaultView.getComputedStyle(r,null))return n(o.getPropertyValue(t(i)));if("display"===i)return"none"}return r.currentStyle?n("float"===i?r.currentStyle.cssFloat||r.currentStyle.styleFloat:r.currentStyle[e(i)]):n(r.style&&r.style[e(i)])}}function pZ(){if(WI)return qI;function e(e,n){var r=t.get(e,n);return"auto"===r||"scroll"===r}WI=1;var t={get:hZ(),getScrollParent:function(t){if(!t)return null;for(var n=t.ownerDocument;t&&t!==n.body;){if(e(t,"overflow")||e(t,"overflowY")||e(t,"overflowX"))return t;t=t.parentNode}return n.defaultView||n.parentWindow}};return qI=t}function mZ(){if(YI)return KI;YI=1;var e=function(){if(GI)return QI;GI=1;var e=lZ();return QI=function(t){var n=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!e(n,t))return{left:0,right:0,top:0,bottom:0};var r=t.getBoundingClientRect();return{left:Math.round(r.left)-n.clientLeft,right:Math.round(r.right)-n.clientLeft,top:Math.round(r.top)-n.clientTop,bottom:Math.round(r.bottom)-n.clientTop}}}();return KI=function(t){var n=e(t);return{x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top}}}function CZ(){if(nD)return tD;nD=1;var e=function(){if(JI)return XI;JI=1;var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;return XI=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}}(),t=eD?$I:(eD=1,$I=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}});return tD=function(n){var r=e(n.ownerDocument||n.document);n.Window&&n instanceof n.Window&&(n=r);var i=t(n),o=n===r?n.ownerDocument.documentElement:n,a=n.scrollWidth-o.clientWidth,l=n.scrollHeight-o.clientHeight;return i.x=Math.max(0,Math.min(i.x,a)),i.y=Math.max(0,Math.min(i.y,l)),i}}function gZ(){if(iD)return rD;function e(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function t(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function n(){return{width:window.innerWidth||e(),height:window.innerHeight||t()}}return iD=1,n.withoutScrollbars=function(){return{width:e(),height:t()}},rD=n}function vZ(){if(aD)return oD;aD=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=uZ(),a=UD(),l=i,s=fZ(),c=pZ(),d=mZ(),u=CZ(),f=gZ(),h=ZN(),p=qN(),m=QD();h.List;var C=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},g=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},y=function(e,t,r,i,o,a){var l={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:a},s=i(e);return s&&(l.className=s),void 0!==o.customEditable&&(l=n({},l,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),l},w=function(e){var i,h;function w(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",l.createRef()),t}h=e,(i=w).prototype=Object.create(h.prototype),i.prototype.constructor=i,i.__proto__=h;var b=w.prototype;return b.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,i=t.tree,o=!n.getChildKeys().isEmpty(),a=n!==e.block||i!==e.tree||r!==e.direction||C(e.selection,e.block.getKey())&&e.forceSelection;return o||a},b.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,i=c.getScrollParent(n),o=u(i);if(i===window){var a=d(n);(r=a.y+a.height-f().height)>0&&window.scrollTo(o.x,o.y+r+10)}else{m(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var l=n;(r=l.offsetHeight+l.offsetTop-(i.offsetHeight+o.y))>0&&s.setTop(i,s.getTop(i)+r+10)}}}},b.render=function(){var e=this,r=this.props,i=r.block,s=r.blockRenderMap,c=r.blockRendererFn,d=r.blockStyleFn,u=r.contentState,f=r.decorator,h=r.editorKey,p=r.editorState,m=r.customStyleFn,b=r.customStyleMap,E=r.direction,M=r.forceSelection,A=r.selection,x=r.tree,k=null;i.children.size&&(k=i.children.reduce(function(t,r){var i=a.encode(r,0,0),o=u.getBlockForKey(r),f=v(o,c),m=f.CustomComponent||w,C=g(o,s),b=C.Element,E=C.wrapperTemplate,M=y(o,h,i,d,f,null),A=n({},e.props,{tree:p.getBlockTree(r),blockProps:f.customProps,offsetKey:i,block:o});return t.push(l.createElement(b,M,l.createElement(m,A))),!E||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(o,u)||function(e,t,n){var r=[],i=!0,o=!1,s=void 0;try{for(var c,d=n.reverse()[Symbol.iterator]();!(i=(c=d.next()).done);i=!0){var u=c.value;if(u.type!==t)break;r.push(u)}}catch(e){o=!0,s=e}finally{try{i||null==d.return||d.return()}finally{if(o)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),h=f[0].key;n.push(l.cloneElement(e,{key:"".concat(h,"-wrap"),"data-offset-key":a.encode(h,0,0)},f))}(E,b,t),t},[]));var L=i.getKey(),H=a.encode(L,0,0),S=v(i,c),_=S.CustomComponent,V=null!=_?l.createElement(_,t({},this.props,{tree:p.getBlockTree(L),blockProps:S.customProps,offsetKey:H,block:i})):l.createElement(o,{block:i,children:k,contentState:u,customStyleFn:m,customStyleMap:b,decorator:f,direction:E,forceSelection:M,hasSelection:C(A,L),selection:A,tree:x});if(i.getParentKey())return V;var O=g(i,s).Element,z=y(i,h,H,d,S,this.wrapperRef);return l.createElement(O,z,V)},w}(l.Component);return oD=w}function yZ(){if(sD)return lD;sD=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=vZ(),r=UD(),o=i,a=pT(),l=function(e){var i,l;function s(){return e.apply(this,arguments)||this}l=e,(i=s).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l;var c=s.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return i!==o||a!==l||s!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,i=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,c=e.customStyleMap,d=e.customStyleFn,u=e.editorState,f=e.editorKey,h=e.textDirectionality,p=u.getCurrentContent(),m=u.getSelection(),C=u.mustForceSelection(),g=u.getDecorator(),v=a(u.getDirectionMap()),y=[],w=p.getBlocksAsArray()[0];w;){var b=w.getKey(),E={blockRenderMap:i,blockRendererFn:l,blockStyleFn:s,contentState:p,customStyleFn:d,customStyleMap:c,decorator:g,editorKey:f,editorState:u,forceSelection:C,selection:m,block:w,direction:h||v.get(b),tree:u.getBlockTree(b)},M=(i.get(w.getType())||i.get("unstyled")).wrapper;y.push({block:o.createElement(n,t({key:b},E)),wrapperTemplate:M,key:b,offsetKey:r.encode(b,0,0)});var A=w.getNextSiblingKey();w=A?p.getBlockForKey(A):null}for(var x=[],k=0;k<y.length;){var L=y[k];if(L.wrapperTemplate){var H=[];do{H.push(y[k].block),k++}while(k<y.length&&y[k].wrapperTemplate===L.wrapperTemplate);var S=o.cloneElement(L.wrapperTemplate,{key:L.key+"-wrap","data-offset-key":L.offsetKey},H);x.push(S)}else x.push(L.block),k++}return o.createElement("div",{"data-contents":"true"},x)},s}(o.Component);return lD=l}function wZ(){if(dD)return cD;dD=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=dZ(),r=UD(),o=i,a=fZ(),l=pZ(),s=hT(),c=fT(),d=yT(),u=mZ(),f=CZ(),h=gZ(),p=qN(),m=QD(),C=pT(),g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e){var i,v;function y(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}v=e,(i=y).prototype=Object.create(v.prototype),i.prototype.constructor=i,i.__proto__=v;var w=y.prototype;return w.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection},w.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,i=l.getScrollParent(n),o=f(i);if(i===window){var s=u(n);(r=s.y+s.height-h().height)>0&&window.scrollTo(o.x,o.y+r+10)}else{m(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1)),(r=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&a.setTop(i,a.getTop(i)+r+10)}}}}},w._renderChildren=function(){var e=this,i=this.props.block,a=i.getKey(),l=i.getText(),d=this.props.tree.size-1,u=g(this.props.selection,a);return this.props.tree.map(function(f,h){var p=f.get("leaves");if(0===p.size)return null;var m=p.size-1,g=p.map(function(t,s){var c=r.encode(a,h,s),f=t.get("start"),p=t.get("end");return o.createElement(n,{key:c,offsetKey:c,block:i,start:f,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:l.slice(f,p),styleSet:i.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===d&&s===m})}).toArray(),v=f.get("decoratorKey");if(null==v)return g;if(!e.props.decorator)return g;var y=C(e.props.decorator),w=y.getComponentForKey(v);if(!w)return g;var b=y.getPropsForKey(v),E=r.encode(a,h,0),M=p.first().get("start"),A=p.last().get("end"),x=l.slice(M,A),k=i.getEntityAt(f.get("start")),L=c.getHTMLDirIfDifferent(s.getDirection(x),e.props.direction),H={contentState:e.props.contentState,decoratedText:x,dir:L,start:M,end:A,blockKey:a,entityKey:k,offsetKey:E};return o.createElement(w,t({},b,H,{key:E}),g)}).toArray()},w.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,i=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return o.createElement("div",{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},y}(o.Component);return cD=v}function bZ(){if(pD)return hD;pD=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=wZ(),a=UD(),l=i,s=yT(),c=(fD||(fD=1,uD=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var i=arguments[r];i&&(t=(t?t+" ":"")+i)}return t}),uD),d=pT(),u=function(e,t,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=function(e){var r,i;function s(){return e.apply(this,arguments)||this}i=e,(r=s).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var f=s.prototype;return f.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return i!==o||a!==l||s!==c||n.mustForceSelection()},f.render=function(){for(var e=this.props,r=e.blockRenderMap,i=e.blockRendererFn,s=e.blockStyleFn,f=e.customStyleMap,h=e.customStyleFn,p=e.editorState,m=e.editorKey,C=e.preventScroll,g=e.textDirectionality,v=p.getCurrentContent(),y=p.getSelection(),w=p.mustForceSelection(),b=p.getDecorator(),E=d(p.getDirectionMap()),M=v.getBlocksAsArray(),A=[],x=null,k=null,L=0;L<M.length;L++){var H=M[L],S=H.getKey(),_=H.getType(),V=i(H),O=void 0,z=void 0,N=void 0;V&&(O=V.component,z=V.props,N=V.editable);var T=g||E.get(S),I=a.encode(S,0,0),D={contentState:v,block:H,blockProps:z,blockStyleFn:s,customStyleMap:f,customStyleFn:h,decorator:b,direction:T,forceSelection:w,offsetKey:I,preventScroll:C,selection:y,tree:p.getBlockTree(S)},Z=r.get(_)||r.get("unstyled"),j=Z.wrapper,R=Z.element||r.get("unstyled").element,B=H.getDepth(),P="";if(s&&(P=s(H)),"li"===R)P=c(P,u(_,B,k!==j||null===x||B>x,T));var F=O||o,U={className:P,"data-block":!0,"data-editor":m,"data-offset-key":I,key:S};void 0!==N&&(U=n({},U,{contentEditable:N,suppressContentEditableWarning:!0}));var q=l.createElement(R,U,l.createElement(F,t({},D,{key:S})));A.push({block:q,wrapperTemplate:j,key:S,offsetKey:I}),x=j?H.getDepth():null,k=j}for(var W=[],Q=0;Q<A.length;){var G=A[Q];if(G.wrapperTemplate){var K=[];do{K.push(A[Q].block),Q++}while(Q<A.length&&A[Q].wrapperTemplate===G.wrapperTemplate);var Y=l.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},K);W.push(Y)}else W.push(G.block),Q++}return l.createElement("div",{"data-contents":"true"},W)},s}(l.Component);return hD=f}function EZ(){if(wD)return yD;wD=1;var e=qN();return yD=function(t){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(t)?Array.isArray(t)?t.slice():function(t){var n=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&("production"!==process.env.NODE_ENV?e(!1,"toArray: Array-like object expected"):e(!1)),"number"!=typeof n&&("production"!==process.env.NODE_ENV?e(!1,"toArray: Object needs a length property"):e(!1)),0===n||n-1 in t||("production"!==process.env.NODE_ENV?e(!1,"toArray: Object should have keys for indices"):e(!1)),"function"==typeof t.callee&&("production"!==process.env.NODE_ENV?e(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):e(!1)),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(e){}for(var r=Array(n),i=0;i<n;i++)r[i]=t[i];return r}(t):[t]}}function MZ(){if(ED)return bD;function e(e){return function(){return e}}ED=1;var t=function(){};return t.thatReturns=e,t.thatReturnsFalse=e(!1),t.thatReturnsTrue=e(!0),t.thatReturnsNull=e(null),t.thatReturnsThis=function(){return this},t.thatReturnsArgument=function(e){return e},bD=t}function AZ(){if(AD)return MD;AD=1;var e=function(){if(vD)return gD;vD=1;var e={isImage:function(e){return"image"===t(e)[0]},isJpeg:function(n){var r=t(n);return e.isImage(n)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function t(e){return e.split("/")}return gD=e}(),t=EZ(),n=MZ(),r=new RegExp("\r\n","g"),i={"text/rtf":1,"text/html":1};function o(e){if("file"==e.kind)return e.getAsFile()}return MD=function(){function a(e){this.data=e,this.types=e.types?t(e.types):[]}var l=a.prototype;return l.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return i[e]})},l.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(r,"\n"):null},l.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},l.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},l.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},l.isImage=function(){var t=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(t)return!0;for(var n=this.getFiles(),r=0;r<n.length;r++){var i=n[r].type;if(!e.isImage(i))return!1}return!0},l.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},l.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(o).filter(n.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},l.hasFiles=function(){return this.getFiles().length>0},a}()}function xZ(){if(kD)return xD;kD=1;var e=qN(),t=/\.textClipping$/,n={"text/plain":!0,"text/html":!0,"text/rtf":!0};return xD=function(r,i){var o=0,a=[];r.forEach(function(l){!function(r,i){if(!L.FileReader||r.type&&!(r.type in n))return void i("");if(""===r.type){var o="";return t.test(r.name)&&(o=r.name.replace(t,"")),void i(o)}var a=new FileReader;a.onload=function(){var t=a.result;"string"!=typeof t&&("production"!==process.env.NODE_ENV?e(!1,'We should be calling "FileReader.readAsText" which returns a string'):e(!1)),i(t)},a.onerror=function(){i("")},a.readAsText(r)}(l,function(e){o++,e&&a.push(e.slice(0,5e3)),o==r.length&&i(a.join("\r"))})})},xD}function kZ(){if(HD)return LD;return HD=1,LD=function(e){return"handled"===e||!0===e}}function LZ(){if(_D)return SD;_D=1;var e=AZ(),t=rT(),n=CT(),r=PD(),i=jD(),o=xZ(),a=KD(),l=FD(),s=kZ(),c=pT();var d={onDragEnd:function(e){e.exitCurrentMode(),u(e)},onDrop:function(l,d){var h=new e(d.nativeEvent.dataTransfer),p=l._latestEditorState,m=function(e,t){var n=null,o=null,l=i(e.currentTarget);if("function"==typeof l.caretRangeFromPoint){var s=l.caretRangeFromPoint(e.x,e.y);n=s.startContainer,o=s.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,o=e.rangeOffset}n=c(n),o=c(o);var d=c(r(n));return a(t,d,o,d,o)}(d.nativeEvent,p);if(d.preventDefault(),l._dragCount=0,l.exitCurrentMode(),null!=m){var C=h.getFiles();if(C.length>0){if(l.props.handleDroppedFiles&&s(l.props.handleDroppedFiles(m,C)))return;o(C,function(e){e&&l.update(f(p,m,e))})}else{var g=l._internalDrag?"internal":"external";l.props.handleDrop&&s(l.props.handleDrop(m,h,g))||(l._internalDrag?l.update(function(e,r){var i=t.moveText(e.getCurrentContent(),e.getSelection(),r);return n.push(e,i,"insert-fragment")}(p,m)):l.update(f(p,m,h.getText()))),u(l)}}}};function u(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function f(e,r,i){var o=t.insertText(e.getCurrentContent(),r,i,e.getCurrentInlineStyle());return n.push(e,o,"insert-fragment")}return SD=d}var HZ,SZ,_Z,VZ,OZ,zZ,NZ,TZ,IZ,DZ,ZZ,jZ,RZ,BZ,PZ,FZ,UZ,qZ,WZ,QZ,GZ,KZ,YZ,XZ,JZ,$Z,ej,tj,nj,rj,ij,oj,aj,lj,sj,cj,dj,uj,fj,hj,pj,mj,Cj,gj,vj,yj,wj,bj,Ej,Mj,Aj,xj,kj,Lj,Hj,Sj,_j,Vj,Oj,zj,Nj,Tj,Ij,Dj,Zj,jj,Rj,Bj,Pj,Fj,Uj,qj,Wj,Qj,Gj,Kj,Yj,Xj,Jj,$j,eR,tR,nR,rR,iR,oR,aR,lR,sR,cR,dR,uR,fR,hR,pR,mR,CR,gR,vR,yR,wR,bR={};function ER(){return _Z?SZ:(_Z=1,HZ||(HZ=1,function(e){if(!e.setImmediate){var t,n,r,i,o=1,a={},l=!1,s=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick(function(){u(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(r="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&u(+t.data.slice(r.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(r+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){u(e.data)},t=function(e){n.port2.postMessage(e)}):s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;t=function(t){var n=s.createElement("script");n.onreadystatechange=function(){u(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():t=function(e){setTimeout(u,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var i={callback:e,args:n};return a[o]=i,t(o),o++},c.clearImmediate=d}function d(e){delete a[e]}function u(e){if(l)setTimeout(u,0,e);else{var t=a[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===L?bR:L:self)),SZ=L.setImmediate)}function MR(){if(OZ)return VZ;OZ=1;var e=rT(),t=CT(),n=ZD(),r=eZ(),i=kZ(),o=OD?VD:(OD=1,VD=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):i<e.get("end")&&e.get("leaves").some(function(e){var t=e.get("start");return i===t&&(o=!0,!0)})}),o}),a=pT(),l=ER(),s=n.isBrowser("Firefox");function c(n,r,i,o,a){var l=e.replaceText(n.getCurrentContent(),n.getSelection(),r,i,o);return t.push(n,l,"insert-characters",a)}return VZ=function(e,n){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var d=e._latestEditorState,u=n.data;if(u)if(e.props.handleBeforeInput&&i(e.props.handleBeforeInput(u,d,n.timeStamp)))n.preventDefault();else{var f=d.getSelection(),h=f.getStartOffset(),p=f.getAnchorKey();if(!f.isCollapsed())return n.preventDefault(),void e.update(c(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!0));var m,C=c(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!1),g=!1;if(g||(g=o(e._latestCommittedEditorState)),!g){var v=d.getBlockTree(p),y=C.getBlockTree(p);g=v.size!==y.size||v.zip(y).some(function(e){var t=e[0],n=e[1],r=t.get("start"),i=r+(r>=h?u.length:0),o=t.get("end"),a=o+(o>=h?u.length:0),l=n.get("start"),s=n.get("end"),c=n.get("decoratorKey");return t.get("decoratorKey")!==c||t.get("leaves").size!==n.get("leaves").size||i!==l||a!==s||null!=c&&s-l!==o-r})}if(g||(m=u,g=s&&("'"==m||"/"==m)),g||(g=a(C.getDirectionMap()).get(p)!==a(d.getDirectionMap()).get(p)),g)return n.preventDefault(),C=t.set(C,{forceSelection:!0}),void e.update(C);C=t.set(C,{nativelyRenderedContent:C.getCurrentContent()}),e._pendingStateFromBeforeInput=C,l(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}},VZ}function AR(){if(ZZ)return DZ;ZZ=1;var e=YN();return DZ=function(t){var n=t.getSelection();return n.isCollapsed()?null:e(t.getCurrentContent(),n)}}function xR(){if(UZ)return FZ;UZ=1;var e=rT(),t=CT(),n=pZ(),r=AR(),i=CZ(),o=PZ?BZ:(PZ=1,BZ=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1});return FZ=function(a,l){var s,c=a._latestEditorState,d=c.getSelection(),u=l.target;if(d.isCollapsed())l.preventDefault();else{if(o(u)){var f=u;s=i(n.getScrollParent(f))}var h=r(c);a.setClipboard(h),a.setMode("cut"),setTimeout(function(){a.restoreEditorDOM(s),a.exitCurrentMode(),a.update(function(n){var r=e.removeRange(n.getCurrentContent(),n.getSelection(),"forward");return t.push(n,r,"remove-range")}(c))},0)}},FZ}function kR(){if(JZ)return XZ;JZ=1;var e=qN(),t=/[\uD800-\uDFFF]/;function n(e){return 55296<=e&&e<=57343}function r(e){return t.test(e)}function i(e,t){return 1+n(e.charCodeAt(t))}function o(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!r(e))return e.substr(t,n);var o=e.length;if(o<=0||t>o||n<=0)return"";var a=0;if(t>0){for(;t>0&&a<o;t--)a+=i(e,a);if(a>=o)return""}else if(t<0){for(a=o;t<0&&0<a;t++)a-=i(e,a-1);a<0&&(a=0)}var l=o;if(n<o)for(l=a;n>0&&l<o;n--)l+=i(e,l);return e.substring(a,l)}var a={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=i(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:i,hasSurrogateUnit:r,isCodeUnitInSurrogateRange:n,isSurrogatePair:function(t,n){if(0<=n&&n<t.length||("production"!==process.env.NODE_ENV?e(!1,"isSurrogatePair: Invalid index %s for string length %s.",n,t.length):e(!1)),n+1===t.length)return!1;var r=t.charCodeAt(n),i=t.charCodeAt(n+1);return 55296<=r&&r<=56319&&56320<=i&&i<=57343},strlen:function(e){if(!r(e))return e.length;for(var t=0,n=0;n<e.length;n+=i(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return o(e,t=t<n?t:n,r)},substr:o};return XZ=a}function LR(){if(ej)return $Z;ej=1;var e=MZ();function t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}}var n="production"!==process.env.NODE_ENV?function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];t.apply(void 0,[n].concat(i))}}:e;return $Z=n}function HR(){if(nj)return tj;nj=1;var e=LR();return tj=function(t,n){var r=t.getSelection();"production"!==process.env.NODE_ENV&&e(r.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var i=t.getCurrentContent(),o=r.getStartKey(),a=r.getStartOffset(),l=o,s=0;if(n>a){var c=i.getKeyBefore(o);if(null==c)l=o;else l=c,s=i.getBlockForKey(c).getText().length}else s=a-n;return r.merge({focusKey:l,focusOffset:s,isBackward:!0})},tj}function SR(){if(ij)return rj;ij=1;var e=rT(),t=cT()("draft_tree_data_support");return rj=function(n,r,i){var o=n.getSelection(),a=n.getCurrentContent(),l=o,s=o.getAnchorKey(),c=o.getFocusKey(),d=a.getBlockForKey(s);if(t&&"forward"===i&&s!==c)return a;if(o.isCollapsed()){if("forward"===i){if(n.isSelectionAtEndOfContent())return a;if(t)if(o.getAnchorOffset()===a.getBlockForKey(s).getLength()){var u=a.getBlockForKey(d.nextSibling);if(!u||0===u.getLength())return a}}else if(n.isSelectionAtStartOfContent())return a;if((l=r(n))===o)return a}return e.removeRange(a,l,i)}}function _R(){if(aj)return oj;aj=1;var e=CT(),t=kR(),n=HR(),r=SR();return oj=function(i){var o=r(i,function(e){var r=e.getSelection(),i=e.getCurrentContent(),o=r.getAnchorKey(),a=r.getAnchorOffset(),l=i.getBlockForKey(o).getText()[a-1];return n(e,l?t.getUTF16Length(l,0):1)},"backward");if(o===i.getCurrentContent())return i;var a=i.getSelection();return e.push(i,o.set("selectionBefore",a),a.isCollapsed()?"backspace-character":"remove-range")},oj}function VR(){if(sj)return lj;sj=1;var e=rT(),t=UD(),n=CT(),r=ZD(),i=$D().notEmptyKey,o=PD(),a=_R(),l=pT(),s=r.isEngine("Gecko");return lj=function(r,c){void 0!==r._pendingStateFromBeforeInput&&(r.update(r._pendingStateFromBeforeInput),r._pendingStateFromBeforeInput=void 0);var d=r.editor.ownerDocument.defaultView.getSelection(),u=d.anchorNode,f=d.isCollapsed,h=(null==u?void 0:u.nodeType)!==Node.TEXT_NODE&&(null==u?void 0:u.nodeType)!==Node.ELEMENT_NODE;if(null!=u&&!h){if(u.nodeType===Node.TEXT_NODE&&(null!==u.previousSibling||null!==u.nextSibling)){var p=u.parentNode;if(null==p)return;u.nodeValue=p.textContent;for(var m=p.firstChild;null!=m;m=m.nextSibling)m!==u&&p.removeChild(m)}var C=u.textContent,g=r._latestEditorState,v=l(o(u)),y=t.decode(v),w=y.blockKey,b=y.decoratorKey,E=y.leafKey,M=g.getBlockTree(w).getIn([b,"leaves",E]),A=M.start,x=M.end,k=g.getCurrentContent(),L=k.getBlockForKey(w),H=L.getText().slice(A,x);if(C.endsWith("\n\n")&&(C=C.slice(0,-1)),C!==H){var S,_,V,O,z=g.getSelection(),N=z.merge({anchorOffset:A,focusOffset:x,isBackward:!1}),T=L.getEntityAt(A),I=i(T)?k.getEntity(T):null,D="MUTABLE"===(null!=I?I.getMutability():null),Z=D?"spellcheck-change":"apply-entity",j=e.replaceText(k,N,C,L.getInlineStyleAt(A),D?L.getEntityAt(A):null);if(s)S=d.anchorOffset,_=d.focusOffset,O=(V=A+Math.min(S,_))+Math.abs(S-_),S=V,_=O;else{var R=C.length-H.length;V=z.getStartOffset(),O=z.getEndOffset(),S=f?O+R:V,_=O+R}var B=j.merge({selectionBefore:k.getSelectionAfter(),selectionAfter:z.merge({anchorOffset:S,focusOffset:_})});r.update(n.push(g,B,Z))}else{var P=c.nativeEvent.inputType;if(P){var F=function(e,t){return"deleteContentBackward"===e?a(t):t}(P,g);if(F!==g)return r.restoreEditorDOM(),void r.update(F)}}}},lj}function OR(){if(fj)return uj;fj=1;var e=ZD(),t=function(){if(dj)return cj;dj=1;var e=qD();return cj=function(t){return t.which===e.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))},cj}(),n=e.isPlatform("Mac OS X"),r={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return n&&e.altKey},usesMacOSHeuristics:function(){return n},hasCommandModifier:function(e){return n?!!e.metaKey&&!e.altKey:r.isCtrlKeyCommand(e)},isSoftNewlineEvent:t};return uj=r}function zR(){if(Cj)return mj;Cj=1;var e=ZD(),t=qN();var n=e.isBrowser("Chrome")?function(e){for(var n=e.cloneRange(),r=[],i=e.endContainer;null!=i;i=i.parentNode){var o=i===e.commonAncestorContainer;o?n.setStart(e.startContainer,e.startOffset):n.setStart(n.endContainer,0);var a,l=Array.from(n.getClientRects());if(r.push(l),o)return r.reverse(),(a=[]).concat.apply(a,r);n.setEndBefore(i)}"production"!==process.env.NODE_ENV?t(!1,"Found an unexpected detached subtree when getting range client rects."):t(!1)}:function(e){return Array.from(e.getClientRects())};return mj=n}function NR(){if(vj)return gj;vj=1;var e=kR(),t=jD(),n=zR(),r=qN();function i(e,t){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a<e.length;a++){var l=e[a];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),i=Math.max(i,l.top),o=Math.max(o,l.bottom))}return i<=r&&i-n<t&&o-r<t}function o(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}return gj=function(a){a.collapsed||("production"!==process.env.NODE_ENV?r(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):r(!1));var l=(a=a.cloneRange()).startContainer;1!==l.nodeType&&(l=l.parentNode);var s=function(e){var n=getComputedStyle(e),i=t(e),o=i.createElement("div");o.style.fontFamily=n.fontFamily,o.style.fontSize=n.fontSize,o.style.fontStyle=n.fontStyle,o.style.fontWeight=n.fontWeight,o.style.lineHeight=n.lineHeight,o.style.position="absolute",o.textContent="M";var a=i.body;a||("production"!==process.env.NODE_ENV?r(!1,"Missing document.body"):r(!1)),a.appendChild(o);var l=o.getBoundingClientRect();return a.removeChild(o),l.height}(l),c=a.endContainer,d=a.endOffset;for(a.setStart(a.startContainer,0);i(n(a),s)&&(c=a.startContainer,d=a.startOffset,c.parentNode||("production"!==process.env.NODE_ENV?r(!1,"Found unexpected detached subtree when traversing."):r(!1)),a.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var u=c,f=d-1;;){for(var h=u.nodeValue,p=f;p>=0;p--)if(!(null!=h&&p>0&&e.isSurrogatePair(h,p-1))){if(a.setStart(u,p),!i(n(a),s))break;c=u,d=p}if(-1===p||0===u.childNodes.length)break;f=o(u=u.childNodes[p])}return a.setStart(c,d),a},gj}function TR(){if(Ej)return bj;Ej=1;return bj={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}}function IR(){if(Aj)return Mj;Aj=1;var e="['‘’]",t="\\s|(?![_])"+TR().getPunctuation(),n=new RegExp("^(?:"+t+")*(?:"+e+"|(?!"+t+").)*(?:(?!"+t+").)"),r=new RegExp("(?:(?!"+t+").)(?:"+e+"|(?!"+t+").)*(?:"+t+")*$");function i(e,t){var i=t?r.exec(e):n.exec(e);return i?i[0]:e}return Mj={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}}}function DR(){if(Hj)return Lj;Hj=1;var e=LR();return Lj=function(t,n){var r=t.getSelection();"production"!==process.env.NODE_ENV&&e(r.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var i,o=r.getStartKey(),a=r.getStartOffset(),l=t.getCurrentContent(),s=o;return n>l.getBlockForKey(o).getText().length-a?(s=l.getKeyAfter(o),i=0):i=a+n,r.merge({focusKey:s,focusOffset:i})},Lj}function ZR(){if(Uj)return Fj;Uj=1;var e=rT(),t=CT(),n=OR(),r=qD(),i=function(){if(pj)return hj;pj=1;var e=rT(),t=CT(),n=YN(),r=pT(),i=null;return hj={cut:function(o){var a=o.getCurrentContent(),l=o.getSelection(),s=null;if(l.isCollapsed()){var c=l.getAnchorKey(),d=a.getBlockForKey(c).getLength();if(d===l.getAnchorOffset()){var u=a.getKeyAfter(c);if(null==u)return o;s=l.set("focusKey",u).set("focusOffset",0)}else s=l.set("focusOffset",d)}else s=l;s=r(s),i=n(a,s);var f=e.removeRange(a,s,"forward");return f===a?o:t.push(o,f,"remove-range")},paste:function(n){if(!i)return n;var r=e.replaceWithFragment(n.getCurrentContent(),n.getSelection(),i);return t.push(n,r,"insert-fragment")}}}(),o=ZD(),a=kZ(),l=function(){if(wj)return yj;wj=1;var e=CT(),t=NR(),n=YD(),r=HR(),i=SR();return yj=function(o,a){var l=i(o,function(e){var i=e.getSelection();if(i.isCollapsed()&&0===i.getAnchorOffset())return r(e,1);var o=a.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return o=t(o),n(e,null,o.endContainer,o.endOffset,o.startContainer,o.startOffset).selectionState},"backward");return l===o.getCurrentContent()?o:e.push(o,l,"remove-range")},yj}(),s=function(){if(kj)return xj;kj=1;var e=IR(),t=CT(),n=HR(),r=SR();return xj=function(i){var o=r(i,function(t){var r=t.getSelection(),i=r.getStartOffset();if(0===i)return n(t,1);var o=r.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(0,i),l=e.getBackward(a);return n(t,l.length||1)},"backward");return o===i.getCurrentContent()?i:t.push(i,o,"remove-range")},xj}(),c=function(){if(_j)return Sj;_j=1;var e=IR(),t=CT(),n=DR(),r=SR();return Sj=function(i){var o=r(i,function(t){var r=t.getSelection(),i=r.getStartOffset(),o=r.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(i),l=e.getForward(a);return n(t,l.length||1)},"forward");return o===i.getCurrentContent()?i:t.push(i,o,"remove-range")},Sj}(),d=function(){if(Oj)return Vj;Oj=1;var e=rT(),t=CT();return Vj=function(n){var r=e.splitBlock(n.getCurrentContent(),n.getSelection());return t.push(n,r,"split-block")}}(),u=function(){if(Nj)return zj;Nj=1;var e=CT();return zj=function(t){var n=t.getSelection(),r=n.getEndKey(),i=t.getCurrentContent().getBlockForKey(r).getLength();return e.set(t,{selection:n.merge({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}),forceSelection:!0})}}(),f=function(){if(Ij)return Tj;Ij=1;var e=CT();return Tj=function(t){var n=t.getSelection(),r=n.getStartKey();return e.set(t,{selection:n.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}}(),h=_R(),p=function(){if(Zj)return Dj;Zj=1;var e=CT(),t=kR(),n=DR(),r=SR();return Dj=function(i){var o=r(i,function(e){var r=e.getSelection(),i=e.getCurrentContent(),o=r.getAnchorKey(),a=r.getAnchorOffset(),l=i.getBlockForKey(o).getText()[a];return n(e,l?t.getUTF16Length(l,0):1)},"forward");if(o===i.getCurrentContent())return i;var a=i.getSelection();return e.push(i,o.set("selectionBefore",a),a.isCollapsed()?"delete-character":"remove-range")},Dj}(),m=function(){if(Rj)return jj;Rj=1;var e=rT(),t=CT(),n=YN();return jj=function(r){var i=r.getSelection();if(!i.isCollapsed())return r;var o=i.getAnchorOffset();if(0===o)return r;var a,l,s=i.getAnchorKey(),c=r.getCurrentContent(),d=c.getBlockForKey(s).getLength();if(d<=1)return r;o===d?(a=i.set("anchorOffset",o-1),l=i):l=(a=i.set("focusOffset",o+1)).set("anchorOffset",o+1);var u=n(c,a),f=e.removeRange(c,a,"backward"),h=f.getSelectionAfter(),p=h.getAnchorOffset()-1,m=h.merge({anchorOffset:p,focusOffset:p}),C=e.replaceWithFragment(f,m,u),g=t.push(r,C,"insert-fragment");return t.acceptSelection(g,l)}}(),C=function(){if(Pj)return Bj;Pj=1;var e=CT();return Bj=function(t,n,r){var i=e.undo(n);if("spellcheck-change"!==n.getLastChangeType())t.preventDefault(),n.getNativelyRenderedContent()?(r(e.set(n,{nativelyRenderedContent:null})),setTimeout(function(){r(i)},0)):r(i);else{var o=i.getCurrentContent();r(e.set(i,{nativelyRenderedContent:o}))}},Bj}(),g=n.isOptionKeyCommand,v=o.isBrowser("Chrome");return Fj=function(n,o){var y=o.which,w=n._latestEditorState;function b(e){var t=n.props[e];return!!t&&(t(o),!0)}switch(y){case r.RETURN:if(o.preventDefault(),n.props.handleReturn&&a(n.props.handleReturn(o,w)))return;break;case r.ESC:if(o.preventDefault(),b("onEscape"))return;break;case r.TAB:if(b("onTab"))return;break;case r.UP:if(b("onUpArrow"))return;break;case r.RIGHT:if(b("onRightArrow"))return;break;case r.DOWN:if(b("onDownArrow"))return;break;case r.LEFT:if(b("onLeftArrow"))return;break;case r.SPACE:v&&g(o)&&o.preventDefault()}var E=n.props.keyBindingFn(o);if(null!=E&&""!==E)if("undo"!==E){if(o.preventDefault(),!n.props.handleKeyCommand||!a(n.props.handleKeyCommand(E,w,o.timeStamp))){var M=function(e,n,r){switch(e){case"redo":return t.redo(n);case"delete":return p(n);case"delete-word":return c(n);case"backspace":return h(n);case"backspace-word":return s(n);case"backspace-to-start-of-line":return l(n,r);case"split-block":return d(n);case"transpose-characters":return m(n);case"move-selection-to-start-of-block":return f(n);case"move-selection-to-end-of-block":return u(n);case"secondary-cut":return i.cut(n);case"secondary-paste":return i.paste(n);default:return n}}(E,w,o);M!==w&&n.update(M)}}else C(o,w,n.update);else if(y===r.SPACE&&v&&g(o)){var A=e.replaceText(w.getCurrentContent(),w.getSelection()," ");n.update(t.push(w,A,"insert-characters"))}},Fj}function jR(){if(Wj)return qj;Wj=1;var e=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}();return qj=e}function RR(){if(Gj)return Qj;Gj=1;var e=ZD(),t=qN(),n=e.isBrowser("IE <= 9");return Qj=function(e){var r,i=null;return!n&&document.implementation&&document.implementation.createHTMLDocument&&((r=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?t(!1,"Missing doc.documentElement"):t(!1)),r.documentElement.innerHTML=e,i=r.getElementsByTagName("body")[0]),i},Qj}function BR(){if(eR)return $j;var e;function t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}eR=1;var r=RN(),i=PN(),o=FN(),a=wT(),l=lT(),s=jR(),c=yT(),d=QN(),u=RR(),f=cT(),h=ZN(),p=h.List,m=h.Map,C=h.OrderedSet,g=function(){if(Yj)return Kj;Yj=1;var e=RD();return Kj=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"A"===t.nodeName}}(),v=iZ(),y=QD(),w=function(){if(Jj)return Xj;Jj=1;var e=RD();return Xj=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"IMG"===t.nodeName}}(),b=f("draft_tree_data_support"),E=new RegExp("\r","g"),M=new RegExp("\n","g"),A=new RegExp("^\n","g"),x=new RegExp("&nbsp;","g"),k=new RegExp("&#13;?","g"),L=new RegExp("&#8203;?","g"),H=["bold","bolder","500","600","700","800","900"],S=["light","lighter","normal","100","200","300","400"],_=["className","href","rel","target","title"],V=["alt","className","height","src","width"],O=(n(e={},c("public/DraftStyleDefault/depth0"),0),n(e,c("public/DraftStyleDefault/depth1"),1),n(e,c("public/DraftStyleDefault/depth2"),2),n(e,c("public/DraftStyleDefault/depth3"),3),n(e,c("public/DraftStyleDefault/depth4"),4),e),z=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),N=function(e){if(y(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(O).some(function(n){e.classList.contains(n)&&(t=O[n])}),t},I=function(e){if(!g(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new s(t.href);return!0}catch(e){return!1}},D=function(e){if(!w(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},Z=function(e,t){if(!y(e))return t;var n=e,r=n.style.fontWeight,i=n.style.fontStyle,o=n.style.textDecoration;return t.withMutations(function(e){H.indexOf(r)>=0?e.add("BOLD"):S.indexOf(r)>=0&&e.remove("BOLD"),"italic"===i?e.add("ITALIC"):"normal"===i&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})},j=function(e){return"ul"===e||"ol"===e},R=function(){function e(e,t){n(this,"characterList",p()),n(this,"currentBlockType","unstyled"),n(this,"currentDepth",0),n(this,"currentEntity",null),n(this,"currentText",""),n(this,"wrapper",null),n(this,"blockConfigs",[]),n(this,"contentBlocks",[]),n(this,"entityMap",l),n(this,"blockTypeMap",void 0),n(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var a=e.prototype;return a.clear=function(){this.characterList=p(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},a.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],C())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},a.getContentBlocks=function(){return 0===this.contentBlocks.length&&(b?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},a._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:p(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=p(),this.currentBlockType="unstyled",this.currentText="",n},a._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=i.nodeName.toLowerCase();if("body"===o||j(o)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;j(o)&&(this.wrapper=o,j(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),t)),this.currentDepth=a,this.wrapper=l}else{var s=this.blockTypeMap.get(o);if(void 0===s)if("#text"!==o)if("br"!==o)if(D(i))this._addImgNode(i,t);else if(I(i))this._addAnchorNode(i,n,t);else{var c=t;z.has(o)&&(c=c.add(z.get(o))),c=Z(i,c);var u=N(i);null!=u&&(c=c.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),c))}else this._addBreakNode(i,t);else this._addTextNode(i,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,h=this.wrapper;if(this.wrapper="pre"===o?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(o,this.wrapper)||s[0]||"unstyled"),!b&&y(i)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=i;this.currentDepth=T(p,this.currentDepth)}var m=d(),C=this._toBlockConfigs(Array.from(i.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:m,childConfigs:C,type:s})),this.currentDepth=f,this.wrapper=h}}}return n},a._appendText=function(e,t){var n;this.currentText+=e;var i=r.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(i))},a._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry(function(e){return null!==e.getEntity()});(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry(function(e){return null!==e.getEntity()}))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=p()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},a._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(A,"")).replace(M," ")),this._appendText(n,t)},a._addBreakNode=function(e,t){v(e)&&this._appendText("\n",t)},a._addImgNode=function(e,t){if(w(e)){var n=e,r={};V.forEach(function(e){var t=n.getAttribute(e);t&&(r[e]=t)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),f("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},a._addAnchorNode=function(e,t,n){if(g(e)){var r=e,i={};_.forEach(function(e){var t=r.getAttribute(e);t&&(i[e]=t)}),i.url=new s(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},a._toContentBlocks=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.length-1,i=0;i<=r;i++){var a=e[i];a.parent=n,a.prevSibling=i>0?e[i-1].key:null,a.nextSibling=i<r?e[i+1].key:null,a.children=p(a.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new o(t({},a))),this._toContentBlocks(a.childConfigs,a.key)}},a._hoistContainersInBlockConfigs=function(e){var t=this;return p(e).flatMap(function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},a._toFlatContentBlocks=function(e){var n=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var r=n._extractTextFromBlockConfigs(e.childConfigs),o=r.text,a=r.characterList;n.contentBlocks.push(new i(t({},e,{text:e.text+o,characterList:e.characterList.concat(a)})))})},a._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=p(),i=0;i<=t;i++){var o=e[i];n+=o.text,r=r.concat(o.characterList),""!==n&&"unstyled"!==o.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(o.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}();return $j=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:u)(e=e.trim().replace(E,"").replace(x," ").replace(k,"").replace(L,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys(function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach(function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)})}),m(t)}(t);return new R(r,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()},$j}function PR(){if(nR)return tR;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nR=1;var t=PN(),n=FN(),r=BR(),i=QN(),o=RR(),a=cT(),l=ZN(),s=dT(),c=l.List,d=l.Repeat,u=a("draft_tree_data_support"),f=u?n:t,h={processHTML:function(e,t){return r(e,o,t)},processText:function(t,n,r){return t.reduce(function(t,o,a){o=s(o);var l=i(),h={key:l,type:r,text:o,characterList:c(d(n,o.length))};if(u&&0!==a){var p=a-1;h=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){e(t,n,r[n])})}return t}({},h,{prevSibling:(t[p]=t[p].merge({nextSibling:l})).getKey()})}return t.push(new f(h)),t},[])}};return tR=h}function FR(){if(aR)return oR;aR=1;var e=rT(),t=CT(),n=(iR||(iR=1,rR=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),l=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(l),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}),rR),r=pT(),i={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return i.toggleInlineStyle(e,"BOLD");case"italic":return i.toggleInlineStyle(e,"ITALIC");case"underline":return i.toggleInlineStyle(e,"UNDERLINE");case"code":return i.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return i.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return i.onDelete(e);default:return null}},insertSoftNewline:function(n){var r=e.insertText(n.getCurrentContent(),n.getSelection(),"\n",n.getCurrentInlineStyle(),null),i=t.push(n,r,"insert-characters");return t.forceSelection(i,r.getSelectionAfter())},onBackspace:function(e){var n=e.getSelection();if(!n.isCollapsed()||n.getAnchorOffset()||n.getFocusOffset())return null;var r=e.getCurrentContent(),o=n.getStartKey(),a=r.getBlockBefore(o);if(a&&"atomic"===a.getType()){var l=r.getBlockMap().delete(a.getKey()),s=r.merge({blockMap:l,selectionAfter:n});if(s!==r)return t.push(e,s,"remove-range")}var c=i.tryToRemoveBlockStyle(e);return c?t.push(e,c,"change-block-type"):null},onDelete:function(n){var r=n.getSelection();if(!r.isCollapsed())return null;var i=n.getCurrentContent(),o=r.getStartKey(),a=i.getBlockForKey(o).getLength();if(r.getStartOffset()<a)return null;var l=i.getBlockAfter(o);if(!l||"atomic"!==l.getType())return null;var s=r.merge({focusKey:l.getKey(),focusOffset:l.getLength()}),c=e.removeRange(i,s,"forward");return c!==i?t.push(n,c,"remove-range"):null},onTab:function(e,r,i){var o=r.getSelection(),a=o.getAnchorKey();if(a!==o.getFocusKey())return r;var l=r.getCurrentContent(),s=l.getBlockForKey(a),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return r;e.preventDefault();var d=s.getDepth();if(!e.shiftKey&&d===i)return r;var u=n(l,o,e.shiftKey?-1:1,i);return t.push(r,u,"adjust-depth")},toggleBlockType:function(n,i){var o=n.getSelection(),a=o.getStartKey(),l=o.getEndKey(),s=n.getCurrentContent(),c=o;if(a!==l&&0===o.getEndOffset()){var d=r(s.getBlockBefore(l));l=d.getKey(),c=c.merge({anchorKey:a,anchorOffset:o.getStartOffset(),focusKey:l,focusOffset:d.getLength(),isBackward:!1})}var u=s.getBlockMap().skipWhile(function(e,t){return t!==a}).reverse().skipWhile(function(e,t){return t!==l}).some(function(e){return"atomic"===e.getType()});if(u)return n;var f=s.getBlockForKey(a).getType()===i?"unstyled":i;return t.push(n,e.setBlockType(s,c,f),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?i.toggleBlockType(e,"code-block"):i.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(n,r){var i=n.getSelection(),o=n.getCurrentInlineStyle();if(i.isCollapsed())return t.setInlineStyleOverride(n,o.has(r)?o.remove(r):o.add(r));var a,l=n.getCurrentContent();return a=o.has(r)?e.removeInlineStyle(l,i,r):e.applyInlineStyle(l,i,r),t.push(n,a,"change-inline-style")},toggleLink:function(n,r,i){var o=e.applyEntity(n.getCurrentContent(),r,i);return t.push(n,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var n=t.getSelection(),r=n.getAnchorOffset();if(n.isCollapsed()&&0===r){var i=n.getAnchorKey(),o=t.getCurrentContent(),a=o.getBlockForKey(i).getType(),l=o.getBlockBefore(i);if("code-block"===a&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==a)return e.setBlockType(o,n,"unstyled")}return null}};return oR=i}function UR(){if(dR)return cR;dR=1;var e=jN(),t=RN(),n=AZ(),r=rT(),i=PR(),o=CT(),a=FR(),l=eZ(),s=xZ(),c=kZ(),d=function(){if(sR)return lR;sR=1;var e=/\r\n?|\n/g;return lR=function(t){return t.split(e)}}();function u(e,t,n){var i=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return o.push(e,i.set("entityMap",n),"insert-fragment")}return cR=function(f,h){h.preventDefault();var p=new n(h.clipboardData);if(!p.isRichText()){var m=p.getFiles(),C=p.getText();if(m.length>0){if(f.props.handlePastedFiles&&c(f.props.handlePastedFiles(m)))return;return void s(m,function(n){if(n=n||C){var s=f._latestEditorState,c=d(n),u=t.create({style:s.getCurrentInlineStyle(),entity:l(s.getCurrentContent(),s.getSelection())}),h=a.getCurrentBlockType(s),p=i.processText(c,u,h),m=e.createFromArray(p),g=r.replaceWithFragment(s.getCurrentContent(),s.getSelection(),m);f.update(o.push(s,g,"insert-fragment"))}})}}var g=[],v=p.getText(),y=p.getHTML(),w=f._latestEditorState;if(f.props.formatPastedText){var b=f.props.formatPastedText(v,y);v=b.text,y=b.html}if(!f.props.handlePastedText||!c(f.props.handlePastedText(v,y,w))){if(v&&(g=d(v)),!f.props.stripPastedStyles){var E,M=f.getClipboard();if(!f.props.formatPastedText&&p.isRichText()&&M){if(-1!==(null===(E=y)||void 0===E?void 0:E.indexOf(f.getEditorKey()))||1===g.length&&1===M.size&&M.first().getText()===v)return void f.update(u(f._latestEditorState,M))}else if(M&&p.types.includes("com.apple.webarchive")&&!p.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(g,M))return void f.update(u(f._latestEditorState,M));if(y){var A=i.processHTML(y,f.props.blockRenderMap);if(A){var x=A.contentBlocks,k=A.entityMap;if(x){var L=e.createFromArray(x);return void f.update(u(f._latestEditorState,L,k))}}}f.setClipboard(null)}if(g.length){var H=t.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),S=a.getCurrentBlockType(w),_=i.processText(g,H,S),V=e.createFromArray(_);f.update(u(f._latestEditorState,V))}}},cR}function qR(){if(fR)return uR;fR=1;var e=ZD(),t=MR(),n=function(){if(NZ)return zZ;NZ=1;var e=CT(),t=lZ(),n=sZ();return zZ=function(r,i){var o=i.currentTarget.ownerDocument;if(!Boolean(r.props.preserveSelectionOnBlur)&&n(o)===o.body){var a=o.defaultView.getSelection(),l=r.editor;1===a.rangeCount&&t(l,a.anchorNode)&&t(l,a.focusNode)&&a.removeAllRanges()}var s=r._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var d=c.set("hasFocus",!1);r.props.onBlur&&r.props.onBlur(i),r.update(e.acceptSelection(s,d))}},zZ}(),r=function(){if(IZ)return TZ;IZ=1;var e=CT();return TZ=function(t,n){t.setMode("composite"),t.update(e.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(n)},TZ}(),i=function(){if(RZ)return jZ;RZ=1;var e=AR();return jZ=function(t,n){t._latestEditorState.getSelection().isCollapsed()?n.preventDefault():t.setClipboard(e(t._latestEditorState))},jZ}(),o=xR(),a=(WZ||(WZ=1,qZ=function(e,t){e.setMode("drag"),t.preventDefault()}),qZ),l=GZ?QZ:(GZ=1,QZ=function(e){e._internalDrag=!0,e.setMode("drag")}),s=function(){if(YZ)return KZ;YZ=1;var e=CT(),t=ZD();return KZ=function(n,r){var i=n._latestEditorState,o=i.getSelection();if(!o.getHasFocus()){var a=o.set("hasFocus",!0);n.props.onFocus&&n.props.onFocus(r),t.isBrowser("Chrome < 60.0.3081.0")?n.update(e.forceSelection(i,a)):n.update(e.acceptSelection(i,a))}},KZ}(),c=VR(),d=ZR(),u=UR(),f=JD(),h=e.isBrowser("Chrome"),p=e.isBrowser("Firefox"),m=h||p?f:function(e){};return uR={onBeforeInput:t,onBlur:n,onCompositionStart:r,onCopy:i,onCut:o,onDragOver:a,onDragStart:l,onFocus:s,onInput:c,onKeyDown:d,onPaste:u,onSelect:f,onMouseUp:m,onKeyUp:m}}function WR(){if(CR)return mR;CR=1;var e=i,t=yT(),n=function(n){var r,i;function o(){return n.apply(this,arguments)||this}i=n,(r=o).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var a=o.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var n=this.props.editorState.getSelection().getHasFocus(),r=t({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":n});return e.createElement("div",{className:r},e.createElement("div",{className:t("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},o}(e.Component);return mR=n}function QR(){if(vR)return gR;vR=1;var e=OR(),t=qD(),n=ZD(),r=n.isPlatform("Mac OS X"),i=r&&n.isBrowser("Firefox < 29"),o=e.hasCommandModifier,a=e.isCtrlKeyCommand;function l(e){return r&&e.altKey||a(e)}return gR=function(e){switch(e.keyCode){case 66:return o(e)?"bold":null;case 68:return a(e)?"delete":null;case 72:return a(e)?"backspace":null;case 73:return o(e)?"italic":null;case 74:return o(e)?"code":null;case 75:return r&&a(e)?"secondary-cut":null;case 77:case 79:return a(e)?"split-block":null;case 84:return r&&a(e)?"transpose-characters":null;case 85:return o(e)?"underline":null;case 87:return r&&a(e)?"backspace-word":null;case 89:return a(e)?r?"secondary-paste":"redo":null;case 90:return function(e){return o(e)?e.shiftKey?"redo":"undo":null}(e)||null;case t.RETURN:return"split-block";case t.DELETE:return function(e){return!r&&e.shiftKey?null:l(e)?"delete-word":"delete"}(e);case t.BACKSPACE:return function(e){return o(e)&&r?"backspace-to-start-of-line":l(e)?"backspace-word":"backspace"}(e);case t.LEFT:return i&&o(e)?"move-selection-to-start-of-block":null;case t.RIGHT:return i&&o(e)?"move-selection-to-end-of-block":null;default:return null}},gR}function GR(){if(wR)return yR;wR=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var l=wT(),s=bT(),c=tZ(),d=function(){if(CD)return mD;CD=1;var e=cT()("draft_tree_data_support");return mD=e?yZ():bZ()}(),u=LZ(),f=qR(),h=function(){if(pR)return hR;pR=1;var e=M.unstable_flushControlled;return hR=e}(),p=WR(),m=oZ(),C=CT(),g=i,v=fZ(),y=pZ(),w=ZD(),b=yT(),E=QN(),A=QR(),x=CZ(),k=cT(),H=qN(),S=QD(),_=pT(),V=w.isBrowser("IE"),O=!V,z={edit:f,composite:c,drag:u,cut:null,render:null},N=!1,T=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(g.Component),I=function(e){function i(t){var i;return o(r(i=e.call(this,t)||this),"_blockSelectEvents",void 0),o(r(i),"_clipboard",void 0),o(r(i),"_handler",void 0),o(r(i),"_dragCount",void 0),o(r(i),"_internalDrag",void 0),o(r(i),"_editorKey",void 0),o(r(i),"_placeholderAccessibilityID",void 0),o(r(i),"_latestEditorState",void 0),o(r(i),"_latestCommittedEditorState",void 0),o(r(i),"_pendingStateFromBeforeInput",void 0),o(r(i),"_onBeforeInput",void 0),o(r(i),"_onBlur",void 0),o(r(i),"_onCharacterData",void 0),o(r(i),"_onCompositionEnd",void 0),o(r(i),"_onCompositionStart",void 0),o(r(i),"_onCopy",void 0),o(r(i),"_onCut",void 0),o(r(i),"_onDragEnd",void 0),o(r(i),"_onDragOver",void 0),o(r(i),"_onDragStart",void 0),o(r(i),"_onDrop",void 0),o(r(i),"_onInput",void 0),o(r(i),"_onFocus",void 0),o(r(i),"_onKeyDown",void 0),o(r(i),"_onKeyPress",void 0),o(r(i),"_onKeyUp",void 0),o(r(i),"_onMouseDown",void 0),o(r(i),"_onMouseUp",void 0),o(r(i),"_onPaste",void 0),o(r(i),"_onSelect",void 0),o(r(i),"editor",void 0),o(r(i),"editorContainer",void 0),o(r(i),"focus",void 0),o(r(i),"blur",void 0),o(r(i),"setMode",void 0),o(r(i),"exitCurrentMode",void 0),o(r(i),"restoreEditorDOM",void 0),o(r(i),"setClipboard",void 0),o(r(i),"getClipboard",void 0),o(r(i),"getEditorKey",void 0),o(r(i),"update",void 0),o(r(i),"onDragEnter",void 0),o(r(i),"onDragLeave",void 0),o(r(i),"_handleEditorContainerRef",function(e){i.editorContainer=e,i.editor=null!==e?e.firstChild:null}),o(r(i),"focus",function(e){var t=i.props.editorState,n=t.getSelection().getHasFocus(),r=i.editor;if(r){var o=y.getScrollParent(r),a=e||x(o),l=a.x,s=a.y;S(r)||("production"!==process.env.NODE_ENV?H(!1,"editorNode is not an HTMLElement"):H(!1)),r.focus(),o===window?window.scrollTo(l,s):v.setTop(o,s),n||i.update(C.forceSelection(t,t.getSelection()))}}),o(r(i),"blur",function(){var e=i.editor;e&&(S(e)||("production"!==process.env.NODE_ENV?H(!1,"editorNode is not an HTMLElement"):H(!1)),e.blur())}),o(r(i),"setMode",function(e){var t=i.props,r=t.onPaste,o=t.onCut,a=t.onCopy,l=n({},z.edit);r&&(l.onPaste=r),o&&(l.onCut=o),a&&(l.onCopy=a);var s=n({},z,{edit:l});i._handler=s[e]}),o(r(i),"exitCurrentMode",function(){i.setMode("edit")}),o(r(i),"restoreEditorDOM",function(e){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(e)})}),o(r(i),"setClipboard",function(e){i._clipboard=e}),o(r(i),"getClipboard",function(){return i._clipboard}),o(r(i),"update",function(e){i._latestEditorState=e,i.props.onChange(e)}),o(r(i),"onDragEnter",function(){i._dragCount++}),o(r(i),"onDragLeave",function(){i._dragCount--,0===i._dragCount&&i.exitCurrentMode()}),i._blockSelectEvents=!1,i._clipboard=null,i._handler=null,i._dragCount=0,i._editorKey=t.editorKey||E(),i._placeholderAccessibilityID="placeholder-"+i._editorKey,i._latestEditorState=t.editorState,i._latestCommittedEditorState=t.editorState,i._onBeforeInput=i._buildHandler("onBeforeInput"),i._onBlur=i._buildHandler("onBlur"),i._onCharacterData=i._buildHandler("onCharacterData"),i._onCompositionEnd=i._buildHandler("onCompositionEnd"),i._onCompositionStart=i._buildHandler("onCompositionStart"),i._onCopy=i._buildHandler("onCopy"),i._onCut=i._buildHandler("onCut"),i._onDragEnd=i._buildHandler("onDragEnd"),i._onDragOver=i._buildHandler("onDragOver"),i._onDragStart=i._buildHandler("onDragStart"),i._onDrop=i._buildHandler("onDrop"),i._onInput=i._buildHandler("onInput"),i._onFocus=i._buildHandler("onFocus"),i._onKeyDown=i._buildHandler("onKeyDown"),i._onKeyPress=i._buildHandler("onKeyPress"),i._onKeyUp=i._buildHandler("onKeyUp"),i._onMouseDown=i._buildHandler("onMouseDown"),i._onMouseUp=i._buildHandler("onMouseUp"),i._onPaste=i._buildHandler("onPaste"),i._onSelect=i._buildHandler("onSelect"),i.getEditorKey=function(){return i._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach(function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")}),i.state={contentsKey:0},i}a(i,e);var l=i.prototype;return l._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(h?h(function(){return r(t,n)}):r(t,n))}}},l._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},l._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:_(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return g.createElement(p,e)}return null},l._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},l.render=function(){var e=this.props,r=e.blockRenderMap,i=e.blockRendererFn,o=e.blockStyleFn,a=e.customStyleFn,l=e.customStyleMap,c=e.editorState,u=e.preventScroll,f=e.readOnly,h=e.textAlignment,p=e.textDirectionality,m=b({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),C=this.props.role||"textbox",v="combobox"===C?!!this.props.ariaExpanded:null,y={blockRenderMap:r,blockRendererFn:i,blockStyleFn:o,customStyleMap:n({},s,l),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:p};return g.createElement("div",{className:m},this._renderPlaceholder(),g.createElement("div",{className:b("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},g.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:b({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:f?null:C,spellCheck:O&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},g.createElement(T,{editor:this,editorState:c}),g.createElement(d,t({},y,{key:"contents"+this.state.contentsKey})))))},l.componentDidMount=function(){this._blockSelectEvents=!1,!N&&k("draft_ods_enabled")&&(N=!0,m.initODS()),this.setMode("edit"),V&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):L.execCommand("AutoUrlDetect",!1,!1))},l.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},i}(g.Component);return o(I,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:l,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:A,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),yR=I}var KR,YR,XR,JR,$R,eB,tB,nB,rB,iB,oB,aB,lB,sB,cB,dB,uB,fB,hB,pB,mB,CB,gB,vB,yB,wB,bB,EB={};function MB(){return KR||(KR=1),EB}function AB(){if(XR)return YR;XR=1;var e={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};return YR=e}function xB(){if(tB)return eB;tB=1;var e=kR(),t=BN(),n=function(e,t){return e===t},r=function(e){return!!e},i=[];return eB=function(o){var a=o.getCharacterList().map(function(e){return e.getStyle()}).toList(),l=a.flatten().toSet().map(function(i){return function(i,o,a){var l=[],s=o.map(function(e){return e.has(a)}).toList();return t(s,n,r,function(t,n){var r=i.getText();l.push({offset:e.strlen(r.slice(0,t)),length:e.strlen(r.slice(t,n)),style:a})}),l}(o,a,i)});return Array.prototype.concat.apply(i,l.toJS())}}function kB(){if(rB)return nB;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rB=1;var t=PN(),n=FN(),r=AB(),i=function(){if($R)return JR;$R=1;var e=AB(),t=kR().strlen;return JR=function(n,r){var i=[];return n.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var l=n.getText(),s=n.getEntityAt(o);i.push({offset:t(l.slice(0,o)),length:t(l.slice(o,a)),key:Number(r[e.stringify(s)])})}),i},JR}(),o=xB(),a=qN(),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:o(e),entityRanges:i(e,t),data:e.getData().toObject()}},s=function(r,i,o,s){if(r instanceof t)o.push(l(r,i));else{r instanceof n||("production"!==process.env.NODE_ENV?a(!1,"block is not a BlockNode"):a(!1));var c=r.getParentKey(),d=s[r.getKey()]=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){e(t,n,r[n])})}return t}({},l(r,i),{children:[]});c?s[c].children.push(d):o.push(d)}};return nB=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,i=[],o={},a={},l=0;return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return null!==e.getEntity()},function(t){var i=e.getEntityAt(t),o=r.stringify(i);a[o]||(a[o]=i,n[o]="".concat(l),l++)}),s(e,n,i,o)}),{blocks:i,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,i=t.entityMap,o={};return Object.keys(i).forEach(function(t,n){var i=e.getEntity(r.unstringify(t));o[n]={type:i.getType(),mutability:i.getMutability(),data:i.getData()}}),{blocks:n,entityMap:o}}(e,t),t},nB}function LB(){if(oB)return iB;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}oB=1;var n=QN(),r=qN(),i=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},o={fromRawTreeStateToRawState:function(t){var n=t.blocks,o=[];return Array.isArray(n)||("production"!==process.env.NODE_ENV?r(!1,"Invalid raw state"):r(!1)),Array.isArray(n)&&n.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var i=n.pop();t(i);var o=i.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?r(!1,"Invalid tree raw block"):r(!1)),n=n.concat([].concat(o.reverse()))}}(n,function(t){var n=e({},t);i(t)&&(n.depth=n.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(n){return n.type===t.type?e({},n,{depth:(t.depth||0)+1}):n}))}(t),null!=t.children&&t.children.length>0)||(delete n.children,o.push(n))}),t.blocks=o,e({},t,{blocks:o})):t},fromRawStateToRawTreeState:function(t){var r=[],o=[];return t.blocks.forEach(function(t){var a=i(t),l=t.depth||0,s=e({},t,{children:[]});if(a){var c=o[0];if(null==c&&0===l)r.push(s);else if(null==c||c.depth<l-1){var d={key:n(),text:"",depth:l-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};o.unshift(d),1===l?r.push(d):null!=c&&c.children.push(d),d.children.push(s)}else if(c.depth===l-1)c.children.push(s);else{for(;null!=c&&c.depth>=l;)o.shift(),c=o[0];l>0?c.children.push(s):r.push(s)}}else r.push(s)}),e({},t,{blocks:r})}};return iB=o}function HB(){if(mB)return pB;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}mB=1;var n=PN(),r=FN(),i=uT(),o=lT(),a=LB(),l=function(){if(lB)return aB;lB=1;var e=LR(),t={isValidBlock:function(t,n){var r=t.getKey(),i=t.getParentKey();if(null!=i&&!n.get(i).getChildKeys().includes(r))return"production"!==process.env.NODE_ENV&&e(!0,"Tree is missing parent -> child pointer on %s",r),!1;var o=t.getChildKeys().map(function(e){return n.get(e)});if(!o.every(function(e){return e.getParentKey()===r}))return"production"!==process.env.NODE_ENV&&e(!0,"Tree is missing child -> parent pointer on %s",r),!1;var a=t.getPrevSiblingKey();if(null!=a&&n.get(a).getNextSiblingKey()!==r)return"production"!==process.env.NODE_ENV&&e(!0,"Tree is missing nextSibling pointer on %s's prevSibling",r),!1;var l=t.getNextSiblingKey();return null!=l&&n.get(l).getPrevSiblingKey()!==r?("production"!==process.env.NODE_ENV&&e(!0,"Tree is missing prevSibling pointer on %s's nextSibling",r),!1):null!==l&&null!==a&&a===l?("production"!==process.env.NODE_ENV&&e(!0,"Tree has a two-node cycle at %s",r),!1):!(""!=t.text&&t.getChildKeys().size>0&&("production"!==process.env.NODE_ENV&&e(!0,"Leaf node %s has children",r),1))},isConnectedTree:function(t){var n=t.toArray().filter(function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()});if(1!==n.length)return"production"!==process.env.NODE_ENV&&e(!0,"Tree is not connected. More or less than one first node"),!1;for(var r=0,i=n.shift().getKey(),o=[];null!=i;){var a=t.get(i),l=a.getChildKeys(),s=a.getNextSiblingKey();if(l.size>0){null!=s&&o.unshift(s);var c=l.map(function(e){return t.get(e)}),d=c.find(function(e){return null==e.getPrevSiblingKey()});if(null==d)return"production"!==process.env.NODE_ENV&&e(!0,"%s has no first child",i),!1;i=d.getKey()}else i=null!=a.getNextSiblingKey()?a.getNextSiblingKey():o.shift();r++}return r===t.size||("production"!==process.env.NODE_ENV&&e(!0,"Tree is not connected. %s nodes were seen instead of %s",r,t.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every(function(n){return t.isValidBlock(n,e)})&&this.isConnectedTree(e)}};return aB=t}(),s=sT(),c=function(){if(cB)return sB;cB=1;var e=RN(),t=ZN().List;return sB=function(n,r){var i=n.map(function(t,n){var i=r[n];return e.create({style:t,entity:i})});return t(i)}}(),d=function(){if(uB)return dB;uB=1;var e=kR().substr;return dB=function(t,n){var r=Array(t.length).fill(null);return n&&n.forEach(function(n){for(var i=e(t,0,n.offset).length,o=i+e(t,n.offset,n.length).length,a=i;a<o;a++)r[a]=n.key}),r},dB}(),u=function(){if(hB)return fB;hB=1;var e=kR(),t=ZN().OrderedSet,n=e.substr,r=t();return fB=function(e,t){var i=Array(e.length).fill(r);return t&&t.forEach(function(t){for(var r=n(e,0,t.offset).length,o=r+n(e,t.offset,t.length).length;r<o;)i[r]=i[r].add(t.style),r++}),i},fB}(),f=QN(),h=cT(),p=ZN(),m=qN(),C=h("draft_tree_data_support"),g=p.List,v=p.Map,y=p.OrderedMap,w=function(e,t){var n=e.key,r=e.type,i=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||f(),data:v(i),characterList:b(e,t)}},b=function(t,n){var r=t.text,i=t.entityRanges,o=t.inlineStyleRanges,a=i||[];return c(u(r,o||[]),d(r,a.filter(function(e){return n.hasOwnProperty(e.key)}).map(function(t){return e({},t,{key:n[t.key]})})))},E=function(t){return e({},t,{key:t.key||f()})},M=function(t,n,r){var i=n.map(function(t){return e({},t,{parentRef:r})});return t.concat(i.reverse())},A=function(t,i){var o=t.blocks.find(function(e){return Array.isArray(e.children)&&e.children.length>0}),s=C&&!o?a.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!C)return function(e,t){return y(e.map(function(e){var r=new n(w(e,t));return[r.getKey(),r]}))}(o?a.fromRawTreeStateToRawState(t).blocks:s,i);var c=function(t,n){return t.map(E).reduce(function(i,o,a){Array.isArray(o.children)||("production"!==process.env.NODE_ENV?m(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):m(!1));var l=o.children.map(E),s=new r(e({},w(o,n),{prevSibling:0===a?null:t[a-1].key,nextSibling:a===t.length-1?null:t[a+1].key,children:g(l.map(function(e){return e.key}))}));i=i.set(s.getKey(),s);for(var c=M([],l,s);c.length>0;){var d=c.pop(),u=d.parentRef,f=u.getChildKeys(),h=f.indexOf(d.key),p=Array.isArray(d.children);if(!p){p||("production"!==process.env.NODE_ENV?m(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):m(!1));break}var C=d.children.map(E),v=new r(e({},w(d,n),{parent:u.getKey(),children:g(C.map(function(e){return e.key})),prevSibling:0===h?null:f.get(h-1),nextSibling:h===f.size-1?null:f.get(h+1)}));i=i.set(v.getKey(),v),c=M(c,C,v)}return i},y())}(s,i);return"production"!==process.env.NODE_ENV&&(l.isValidTree(c)||("production"!==process.env.NODE_ENV?m(!1,"Should be a valid tree"):m(!1))),c};return pB=function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?m(!1,"invalid RawDraftContentState"):m(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach(function(e){var r=t[e],i=r.type,a=r.mutability,l=r.data;n[e]=o.__create(i,a,l||{})}),n}(e),n=A(e,t),r=n.isEmpty()?new s:s.createEmpty(n.first().getKey());return new i({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}}function SB(){if(yB)return vB;yB=1;var e=function(){if(gB)return CB;gB=1;var e=zR();return CB=function(t){var n=e(t),r=0,i=0,o=0,a=0;if(n.length){if(n.length>1&&0===n[0].width){var l=n[1];r=l.top,i=l.right,o=l.bottom,a=l.left}else{var s=n[0];r=s.top,i=s.right,o=s.bottom,a=s.left}for(var c=1;c<n.length;c++){var d=n[c];0!==d.height&&0!==d.width&&(r=Math.min(r,d.top),i=Math.max(i,d.right),o=Math.max(o,d.bottom),a=Math.min(a,d.left))}}return{top:r,right:i,bottom:o,left:a,width:i-a,height:o-r}},CB}();return vB=function(t){var n=t.getSelection();if(!n.rangeCount)return null;var r=n.getRangeAt(0),i=e(r),o=i.top,a=i.right,l=i.bottom,s=i.left;return 0===o&&0===a&&0===l&&0===s?null:i},vB}function _B(){if(bB)return wB;bB=1;var e=gT(),t=jN(),n=RN(),r=vT(),i=PN(),o=uT(),a=wT(),l=bT(),s=GR(),c=wZ(),d=lT(),u=rT(),f=aT(),h=CT(),p=OR(),m=MB(),C=FR(),g=sT(),v=kB(),y=HB(),w=QN(),b=QR(),E=SB(),M=BR();return wB={Editor:s,EditorBlock:c,EditorState:h,CompositeDecorator:r,Entity:d,EntityInstance:f,BlockMapBuilder:t,CharacterMetadata:n,ContentBlock:i,ContentState:o,RawDraftContentState:m,SelectionState:g,AtomicBlockUtils:e,KeyBindingUtil:p,Modifier:u,RichUtils:C,DefaultDraftBlockRenderMap:a,DefaultDraftInlineStyle:l,convertFromHTML:M,convertFromRaw:y,convertToRaw:v,genKey:w,getDefaultKeyBinding:b,getVisibleSelectionRect:E}}var VB=_B(),OB={exports:{}},zB="@@__IMMUTABLE_INDEXED__@@";function NB(e){return Boolean(e&&e[zB])}var TB="@@__IMMUTABLE_KEYED__@@";function IB(e){return Boolean(e&&e[TB])}function DB(e){return IB(e)||NB(e)}var ZB="@@__IMMUTABLE_ITERABLE__@@";function jB(e){return Boolean(e&&e[ZB])}var RB=function(e){return jB(e)?e:MP(e)},BB=function(e){function t(e){return IB(e)?e:AP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(RB),PB=function(e){function t(e){return NB(e)?e:xP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(RB),FB=function(e){function t(e){return jB(e)&&!DB(e)?e:kP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(RB);RB.Keyed=BB,RB.Indexed=PB,RB.Set=FB;var UB="function"==typeof Symbol&&Symbol.iterator,qB="@@iterator",WB=UB||qB,QB=function(e){this.next=e};function GB(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function KB(){return{value:void 0,done:!0}}function YB(e){return!!Array.isArray(e)||!!$B(e)}function XB(e){return!(!e||"function"!=typeof e.next)}function JB(e){var t=$B(e);return t&&t.call(e)}function $B(e){var t=e&&(UB&&e[UB]||e[qB]);if("function"==typeof t)return t}QB.prototype.toString=function(){return"[Iterator]"},QB.KEYS=0,QB.VALUES=1,QB.ENTRIES=2,QB.prototype.inspect=QB.prototype.toSource=function(){return this.toString()},QB.prototype[WB]=function(){return this};var eP="delete",tP=32,nP=31,rP={};function iP(e){e&&(e.value=!0)}function oP(){}function aP(e){return void 0===e.size&&(e.size=e.__iterate(sP)),e.size}function lP(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?aP(e)+t:t}function sP(){return!0}function cP(e,t,n){return(0===e&&!hP(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function dP(e,t){return fP(e,t,0)}function uP(e,t){return fP(e,t,t)}function fP(e,t,n){return void 0===e?n:hP(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function hP(e){return e<0||0===e&&1/e==-1/0}var pP="@@__IMMUTABLE_RECORD__@@";function mP(e){return Boolean(e&&e[pP])}function CP(e){return jB(e)||mP(e)}var gP="@@__IMMUTABLE_ORDERED__@@";function vP(e){return Boolean(e&&e[gP])}var yP="@@__IMMUTABLE_SEQ__@@";function wP(e){return Boolean(e&&e[yP])}var bP=Object.prototype.hasOwnProperty;function EP(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var MP=function(e){function t(e){return null==e?VP():CP(e)?e.toSeq():function(e){var t=NP(e);if(t)return(r=$B(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=$B(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new HP(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new QB(function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return GB(e,o[0],o[1])})}return this.__iteratorUncached(e,t)},t}(RB),AP=function(e){function t(e){return null==e?VP().toKeyedSeq():jB(e)?IB(e)?e.toSeq():e.fromEntrySeq():mP(e)?e.toSeq():OP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(MP),xP=function(e){function t(e){return null==e?VP():jB(e)?IB(e)?e.entrySeq():e.toIndexedSeq():mP(e)?e.toSeq().entrySeq():zP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(MP),kP=function(e){function t(e){return(jB(e)&&!DB(e)?e:xP(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(MP);MP.isSeq=wP,MP.Keyed=AP,MP.Set=kP,MP.Indexed=xP,MP.prototype[yP]=!0;var LP=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[lP(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new QB(function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return GB(e,o,n[o])})},t}(xP),HP=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return bP.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new QB(function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return GB(e,a,n[a])})},t}(AP);HP.prototype[gP]=!0;var SP,_P=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=JB(this._collection),r=0;if(XB(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=JB(this._collection);if(!XB(n))return new QB(KB);var r=0;return new QB(function(){var t=n.next();return t.done?t:GB(e,r++,t.value)})},t}(xP);function VP(){return SP||(SP=new LP([]))}function OP(e){var t=NP(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new HP(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function zP(e){var t=NP(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function NP(e){return EP(e)?new LP(e):YB(e)?new _P(e):void 0}function TP(){return this.__ensureOwner()}function IP(){return this.__ownerID?this:this.__ensureOwner(new oP)}var DP="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ZP(e){return e>>>1&1073741824|3221225471&e}var jP=Object.prototype.valueOf;function RP(e){if(null==e)return BP(e);if("function"==typeof e.hashCode)return ZP(e.hashCode(e));var t,n=(t=e).valueOf!==jP&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return BP(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return ZP(t)}(n);case"string":return n.length>XP?function(e){var t=eF[e];void 0===t&&(t=PP(e),$P===JP&&($P=0,eF={}),$P++,eF[e]=t);return t}(n):PP(n);case"object":case"function":return function(e){var t;if(QP&&void 0!==(t=WP.get(e)))return t;if(t=e[YP],void 0!==t)return t;if(!UP){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[YP]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=qP(),QP)WP.set(e,t);else{if(void 0!==FP&&!1===FP(e))throw new Error("Non-extensible objects are not allowed as keys.");if(UP)Object.defineProperty(e,YP,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[YP]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[YP]=t}}return t}(n);case"symbol":return function(e){var t=GP[e];if(void 0!==t)return t;return t=qP(),GP[e]=t,t}(n);default:if("function"==typeof n.toString)return PP(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function BP(e){return null===e?1108378658:1108378659}function PP(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ZP(t)}var FP=Object.isExtensible,UP=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function qP(){var e=++KP;return 1073741824&KP&&(KP=0),e}var WP,QP="function"==typeof WeakMap;QP&&(WP=new WeakMap);var GP=Object.create(null),KP=0,YP="__immutablehash__";"function"==typeof Symbol&&(YP=Symbol(YP));var XP=16,JP=255,$P=0,eF={},tF=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=lF(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=aF(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(AP);tF.prototype[gP]=!0;var nF=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&aP(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),i=0;return t&&aP(this),new QB(function(){var o=r.next();return o.done?o:GB(e,t?n.size-++i:i++,o.value,o)})},t}(xP),rF=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new QB(function(){var t=n.next();return t.done?t:GB(e,t.value,t.value,t)})},t}(kP),iF=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){vF(t);var r=jB(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new QB(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){vF(r);var i=jB(r);return GB(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(AP);function oF(e){var t=wF(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=bF,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new QB(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(1===t?0:1,n)},t}function aF(e,t,n){var r=wF(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,rP);return o===rP?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new QB(function(){var i=o.next();if(i.done)return i;var a=i.value,l=a[0];return GB(r,l,t.call(n,a[1],l,e),i)})},r}function lF(e,t){var n=this,r=wF(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=oF(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=bF,r.__iterate=function(n,r){var i=this,o=0;return r&&aP(e),e.__iterate(function(e,a){return n(e,t?a:r?i.size-++o:o++,i)},!r)},r.__iterator=function(r,i){var o=0;i&&aP(e);var a=e.__iterator(2,!i);return new QB(function(){var e=a.next();if(e.done)return e;var l=e.value;return GB(r,t?l[0]:i?n.size-++o:o++,l[1],e)})},r}function sF(e,t,n,r){var i=wF(e);return r&&(i.has=function(r){var i=e.get(r,rP);return i!==rP&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,rP);return o!==rP&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,l=0;return e.__iterate(function(e,o,s){if(t.call(n,e,o,s))return l++,i(e,r?o:l-1,a)},o),l},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),l=0;return new QB(function(){for(;;){var o=a.next();if(o.done)return o;var s=o.value,c=s[0],d=s[1];if(t.call(n,d,c,e))return GB(i,r?c:l++,d,o)}})},i}function cF(e,t,n,r){var i=e.size;if(cP(t,n,i))return e;if(void 0===i&&(t<0||n<0))return cF(e.toSeq().cacheResult(),t,n,r);var o,a=dP(t,i),l=uP(n,i)-a;l==l&&(o=l<0?0:l);var s=wF(e);return s.size=0===o?o:e.size&&o||void 0,!r&&wP(e)&&o>=0&&(s.get=function(t,n){return(t=lP(this,t))>=0&&t<o?e.get(t+a,n):n}),s.__iterateUncached=function(t,n){var i=this;if(0===o)return 0;if(n)return this.cacheResult().__iterate(t,n);var l=0,s=!0,c=0;return e.__iterate(function(e,n){if(!s||!(s=l++<a))return c++,!1!==t(e,r?n:c-1,i)&&c!==o}),c},s.__iteratorUncached=function(t,n){if(0!==o&&n)return this.cacheResult().__iterator(t,n);if(0===o)return new QB(KB);var i=e.__iterator(t,n),l=0,s=0;return new QB(function(){for(;l++<a;)i.next();if(++s>o)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:GB(t,s-1,0===t?void 0:e.value[1],e)})},s}function dF(e,t,n,r){var i=wF(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var l=!0,s=0;return e.__iterate(function(e,o,c){if(!l||!(l=t.call(n,e,o,c)))return s++,i(e,r?o:s-1,a)}),s},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var l=e.__iterator(2,o),s=!0,c=0;return new QB(function(){var e,o,d;do{if((e=l.next()).done)return r||1===i?e:GB(i,c++,0===i?void 0:e.value[1],e);var u=e.value;o=u[0],d=u[1],s&&(s=t.call(n,d,o,a))}while(s);return 2===i?e:GB(i,o,d,e)})},i}nF.prototype.cacheResult=tF.prototype.cacheResult=rF.prototype.cacheResult=iF.prototype.cacheResult=bF;var uF=function(e){function t(e){this._wrappedIterables=e.flatMap(function(e){return e._wrappedIterables?e._wrappedIterables:[e]}),this.size=this._wrappedIterables.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),this[TB]=this._wrappedIterables[0][TB],this[zB]=this._wrappedIterables[0][zB],this[gP]=this._wrappedIterables[0][gP]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(0!==this._wrappedIterables.length){if(t)return this.cacheResult().__iterate(e,t);for(var n=0,r=IB(this),i=r?2:1,o=this._wrappedIterables[n].__iterator(i,t),a=!0,l=0;a;){for(var s=o.next();s.done;){if(++n===this._wrappedIterables.length)return l;s=(o=this._wrappedIterables[n].__iterator(i,t)).next()}a=!1!==(r?e(s.value[1],s.value[0],this):e(s.value,l,this)),l++}return l}},t.prototype.__iteratorUncached=function(e,t){var n=this;if(0===this._wrappedIterables.length)return new QB(KB);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new QB(function(){for(var o=i.next();o.done;){if(++r===n._wrappedIterables.length)return o;o=(i=n._wrappedIterables[r].__iterator(e,t)).next()}return o})},t}(MP);function fF(e,t,n){var r=wF(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,l=!1;return function e(s,c){s.__iterate(function(o,s){return(!t||c<t)&&jB(o)?e(o,c+1):(a++,!1===i(o,n?s:a-1,r)&&(l=!0)),!l},o)}(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],l=0;return new QB(function(){for(;o;){var e=o.next();if(!1===e.done){var s=e.value;if(2===r&&(s=s[1]),t&&!(a.length<t)||!jB(s))return n?e:GB(r,l++,s,e);a.push(o),o=s.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}})},r}function hF(e,t,n){t||(t=EF);var r=IB(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?AP(o):NB(e)?xP(o):kP(o)}function pF(e,t,n){if(t||(t=EF),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return mF(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return mF(t,e,n)?n:e})}function mF(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function CF(e,t,n,r){var i=wF(e),o=new LP(n).map(function(e){return e.size});return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map(function(e){return e=RB(e),JB(i?e.reverse():e)}),a=0,l=!1;return new QB(function(){var n;return l||(n=o.map(function(e){return e.next()}),l=r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),l?{value:void 0,done:!0}:GB(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function gF(e,t){return e===t?e:wP(e)?t:e.constructor(t)}function vF(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function yF(e){return IB(e)?BB:NB(e)?PB:FB}function wF(e){return Object.create((IB(e)?AP:NB(e)?xP:kP).prototype)}function bF(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):MP.prototype.cacheResult.call(this)}function EF(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function MF(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function AF(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(MF(e)&&MF(t)&&e.equals(t))}function xF(e,t,n,r){return AU(e,[t],n,r)}function kF(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return HF(this,e)}function LF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return HF(this,t,e)}function HF(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=BB(t[i]);0!==o.size&&r.push(o)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var t=n?function(t,r){xF(e,r,rP,function(e){return e===rP?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)}):mP(e)?e:e.constructor(r[0])}var SF=Object.prototype.toString;function _F(e){if(!e||"object"!=typeof e||"[object Object]"!==SF.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function VF(e){return"object"==typeof e&&(CP(e)||Array.isArray(e)||_F(e))}function OF(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function zF(e){if(Array.isArray(e))return OF(e);var t={};for(var n in e)bP.call(e,n)&&(t[n]=e[n]);return t}function NF(e,t,n){return TF(e,t,function(e){function t(n,r,i){return VF(n)&&VF(r)&&(o=r,a=MP(n),l=MP(o),NB(a)===NB(l)&&IB(a)===IB(l))?TF(n,[r],t):e?e(n,r,i):r;var o,a,l}return t}(n))}function TF(e,t,n){if(!VF(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(CP(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?PB:BB,a=r?function(t){i===e&&(i=zF(i)),i.push(t)}:function(t,r){var o=bP.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=zF(i)),i[r]=a)},l=0;l<t.length;l++)o(t[l]).forEach(a);return i}function IF(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return NF(this,e)}function DF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return NF(this,t,e)}function ZF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return AU(this,e,sU(),function(e){return NF(e,t)})}function jF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return AU(this,e,sU(),function(e){return TF(e,t)})}function RF(e,t,n){return AU(e,t,rP,function(){return n})}function BF(e,t){return RF(this,e,t)}function PF(e,t,n){return 1===arguments.length?e(this):xF(this,e,t,n)}function FF(e,t,n){return AU(this,e,t,n)}function UF(){return this.__altered}function qF(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}var WF="@@__IMMUTABLE_MAP__@@";function QF(e){return Boolean(e&&e[WF])}function GF(e,t){if(!e)throw new Error(t)}function KF(e){GF(e!==1/0,"Cannot perform this action with an infinite size.")}var YF=function(e){function t(t){return null==t?sU():QF(t)&&!vP(t)?t:sU().withMutations(function(n){var r=e(t);KF(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return cU(this,e,t)},t.prototype.remove=function(e){return cU(this,e,rP)},t.prototype.deleteAll=function(e){var t=RB(e);return 0===t.size?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):sU()},t.prototype.sort=function(e){return UU(hF(this,e))},t.prototype.sortBy=function(e,t){return UU(hF(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,o){r.set(o,e.call(t,i,o,n))})})},t.prototype.__iterator=function(e,t){return new iU(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?lU(this.size,this._root,e,this.__hash):0===this.size?sU():(this.__ownerID=e,this.__altered=!1,this)},t}(BB);YF.isMap=QF;var XF=YF.prototype;XF[WF]=!0,XF[eP]=XF.remove,XF.removeAll=XF.deleteAll,XF.setIn=BF,XF.removeIn=XF.deleteIn=LU,XF.update=PF,XF.updateIn=FF,XF.merge=XF.concat=kF,XF.mergeWith=LF,XF.mergeDeep=IF,XF.mergeDeepWith=DF,XF.mergeIn=jF,XF.mergeDeepIn=ZF,XF.withMutations=qF,XF.wasAltered=UF,XF.asImmutable=TP,XF["@@transducer/init"]=XF.asMutable=IP,XF["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},XF["@@transducer/result"]=function(e){return e.asImmutable()};var JF=function(e,t){this.ownerID=e,this.entries=t};JF.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(AF(n,i[o][0]))return i[o][1];return r},JF.prototype.update=function(e,t,n,r,i,o,a){for(var l=i===rP,s=this.entries,c=0,d=s.length;c<d&&!AF(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(iP(a),(l||!u)&&iP(o),!l||1!==s.length){if(!u&&!l&&s.length>=mU)return function(e,t,n,r){e||(e=new oP);for(var i=new nU(e,RP(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,s,r,i);var f=e&&e===this.ownerID,h=f?s:OF(s);return u?l?c===d-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new JF(e,h)}};var $F=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};$F.prototype.get=function(e,t,n,r){void 0===t&&(t=RP(n));var i=1<<((0===e?t:t>>>e)&nP),o=this.bitmap;return 0===(o&i)?r:this.nodes[hU(o&i-1)].get(e+5,t,n,r)},$F.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=RP(r));var l=(0===t?n:n>>>t)&nP,s=1<<l,c=this.bitmap,d=0!==(c&s);if(!d&&i===rP)return this;var u=hU(c&s-1),f=this.nodes,h=d?f[u]:void 0,p=dU(h,e,t+5,n,r,i,o,a);if(p===h)return this;if(!d&&p&&f.length>=CU)return function(e,t,n,r,i){for(var o=0,a=new Array(tP),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[o++]:void 0;return a[r]=i,new eU(e,o+1,a)}(e,f,c,l,p);if(d&&!p&&2===f.length&&uU(f[1^u]))return f[1^u];if(d&&p&&1===f.length&&uU(p))return p;var m=e&&e===this.ownerID,C=d?p?c:c^s:c|s,g=d?p?pU(f,u,p,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(f,u,m):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,l=0;l<i;l++)l===t?(o[l]=n,a=-1):o[l]=e[l+a];return o}(f,u,p,m);return m?(this.bitmap=C,this.nodes=g,this):new $F(e,C,g)};var eU=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};eU.prototype.get=function(e,t,n,r){void 0===t&&(t=RP(n));var i=(0===e?t:t>>>e)&nP,o=this.nodes[i];return o?o.get(e+5,t,n,r):r},eU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=RP(r));var l=(0===t?n:n>>>t)&nP,s=i===rP,c=this.nodes,d=c[l];if(s&&!d)return this;var u=dU(d,e,t+5,n,r,i,o,a);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<gU)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),l=0,s=1,c=t.length;l<c;l++,s<<=1){var d=t[l];void 0!==d&&l!==r&&(i|=s,a[o++]=d)}return new $F(e,i,a)}(e,c,f,l)}else f++;var h=e&&e===this.ownerID,p=pU(c,l,u,h);return h?(this.count=f,this.nodes=p,this):new eU(e,f,p)};var tU=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};tU.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(AF(n,i[o][0]))return i[o][1];return r},tU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=RP(r));var l=i===rP;if(n!==this.keyHash)return l?this:(iP(a),iP(o),fU(this,e,t,n,[r,i]));for(var s=this.entries,c=0,d=s.length;c<d&&!AF(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(iP(a),(l||!u)&&iP(o),l&&2===d)return new nU(e,this.keyHash,s[1^c]);var f=e&&e===this.ownerID,h=f?s:OF(s);return u?l?c===d-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new tU(e,this.keyHash,h)};var nU=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};nU.prototype.get=function(e,t,n,r){return AF(n,this.entry[0])?this.entry[1]:r},nU.prototype.update=function(e,t,n,r,i,o,a){var l=i===rP,s=AF(r,this.entry[0]);return(s?i===this.entry[1]:l)?this:(iP(a),l?void iP(o):s?e&&e===this.ownerID?(this.entry[1]=i,this):new nU(e,this.keyHash,[r,i]):(iP(o),fU(this,e,t,RP(r),[r,i])))},JF.prototype.iterate=tU.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},$F.prototype.iterate=eU.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},nU.prototype.iterate=function(e,t){return e(this.entry)};var rU,iU=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&aU(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return oU(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return oU(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return oU(e,o.entry);t=this._stack=aU(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(QB);function oU(e,t){return GB(e,t[0],t[1])}function aU(e,t){return{node:e,index:0,__prev:t}}function lU(e,t,n,r){var i=Object.create(XF);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function sU(){return rU||(rU=lU(0))}function cU(e,t,n){var r,i;if(e._root){var o={value:!1},a={value:!1};if(r=dU(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===rP?-1:1:0)}else{if(n===rP)return e;i=1,r=new JF(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?lU(i,r):sU()}function dU(e,t,n,r,i,o,a,l){return e?e.update(t,n,r,i,o,a,l):o===rP?e:(iP(l),iP(a),new nU(t,r,[i,o]))}function uU(e){return e.constructor===nU||e.constructor===tU}function fU(e,t,n,r,i){if(e.keyHash===r)return new tU(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&nP,l=(0===n?r:r>>>n)&nP,s=a===l?[fU(e,t,n+5,r,i)]:(o=new nU(t,r,i),a<l?[e,o]:[o,e]);return new $F(t,1<<a|1<<l,s)}function hU(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function pU(e,t,n,r){var i=r?e:OF(e);return i[t]=n,i}var mU=8,CU=16,gU=8;function vU(e){if(EP(e)&&"string"!=typeof e)return e;if(vP(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function yU(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function wU(e,t){return CP(e)?e.has(t):VF(e)&&bP.call(e,t)}function bU(e,t,n){return CP(e)?e.get(t,n):wU(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function EU(e,t){if(!VF(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(CP(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!bP.call(e,t))return e;var n=zF(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function MU(e,t,n){if(!VF(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(CP(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(bP.call(e,t)&&n===e[t])return e;var r=zF(e);return r[t]=n,r}function AU(e,t,n,r){r||(r=n,n=void 0);var i=xU(CP(e),e,vU(t),0,n,r);return i===rP?n:i}function xU(e,t,n,r,i,o){var a=t===rP;if(r===n.length){var l=a?i:t,s=o(l);return s===l?t:s}if(!a&&!VF(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(n).slice(0,r).map(yU)+"]: "+t);var c=n[r],d=a?rP:bU(t,c,rP),u=xU(d===rP?e:CP(d),d,n,r+1,i,o);return u===d?t:u===rP?EU(t,c):MU(a?e?sU():{}:t,c,u)}function kU(e,t){return AU(e,t,function(){return rP})}function LU(e){return kU(this,e)}var HU="@@__IMMUTABLE_LIST__@@";function SU(e){return Boolean(e&&e[HU])}var _U=function(e){function t(t){var n=IU();if(null==t)return n;if(SU(t))return t;var r=e(t),i=r.size;return 0===i?n:(KF(i),i>0&&i<tP?TU(0,i,5,null,new OU(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=lP(this,e))>=0&&e<this.size){var n=jU(this,e+=this._origin);return n&&n.array[e&nP]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=lP(e,t),t!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?RU(e,t).set(0,n):RU(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o={value:!1};t>=BU(e._capacity)?r=DU(r,e.__ownerID,0,t,n,o):i=DU(i,e.__ownerID,e._level,t,n,o);if(!o.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return TU(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):IU()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){RU(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return RU(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){RU(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return RU(this,1)},t.prototype.shuffle=function(e){return void 0===e&&(e=Math.random),this.withMutations(function(t){for(var n,r,i=t.size;i;)n=Math.floor(e()*i--),r=t.get(n),t.set(n,t.get(i)),t.set(i,r)})},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!=typeof i&&YB(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})}):this.constructor(n[0])},t.prototype.setSize=function(e){return RU(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))})},t.prototype.slice=function(e,t){var n=this.size;return cP(e,t,n)?this:RU(this,dP(e,n),uP(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=NU(this,t);return new QB(function(){var i=r();return i===zU?{value:void 0,done:!0}:GB(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=NU(this,t);(n=i())!==zU&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?TU(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?IU():(this.__ownerID=e,this.__altered=!1,this)},t}(PB);_U.isList=SU;var VU=_U.prototype;VU[HU]=!0,VU[eP]=VU.remove,VU.merge=VU.concat,VU.setIn=BF,VU.deleteIn=VU.removeIn=LU,VU.update=PF,VU.updateIn=FF,VU.mergeIn=jF,VU.mergeDeepIn=ZF,VU.withMutations=qF,VU.wasAltered=UF,VU.asImmutable=TP,VU["@@transducer/init"]=VU.asMutable=IP,VU["@@transducer/step"]=function(e,t){return e.push(t)},VU["@@transducer/result"]=function(e){return e.asImmutable()};var OU=function(e,t){this.array=e,this.ownerID=t};OU.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+5)-1)||0===this.array.length)return this;var r=n>>>t&nP;if(r>=this.array.length)return new OU([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&o)return this}if(o&&!i)return this;var l=ZU(this,e);if(!o)for(var s=0;s<r;s++)l.array[s]=void 0;return i&&(l.array[r]=i),l},OU.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+5:tP)||0===this.array.length)return this;var r,i=n-1>>>t&nP;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-5,n))===o&&i===this.array.length-1)return this}var a=ZU(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var zU={};function NU(e,t){var n=e._origin,r=e._capacity,i=BU(r),o=e._tail;return a(e._root,e._level,0);function a(e,l,s){return 0===l?function(e,a){var l=a===i?o&&o.array:e&&e.array,s=a>n?0:n-a,c=r-a;c>tP&&(c=tP);return function(){if(s===c)return zU;var e=t?--c:s++;return l&&l[e]}}(e,s):function(e,i,o){var l,s=e&&e.array,c=o>n?0:n-o>>i,d=1+(r-o>>i);d>tP&&(d=tP);return function(){for(;;){if(l){var e=l();if(e!==zU)return e;l=null}if(c===d)return zU;var n=t?--d:c++;l=a(s&&s[n],i-5,o+(n<<i))}}}(e,l,s)}}function TU(e,t,n,r,i,o,a){var l=Object.create(VU);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=i,l.__ownerID=o,l.__hash=a,l.__altered=!1,l}function IU(){return TU(0,0,5)}function DU(e,t,n,r,i,o){var a,l=r>>>n&nP,s=e&&l<e.array.length;if(!s&&void 0===i)return e;if(n>0){var c=e&&e.array[l],d=DU(c,t,n-5,r,i,o);return d===c?e:((a=ZU(e,t)).array[l]=d,a)}return s&&e.array[l]===i?e:(o&&iP(o),a=ZU(e,t),void 0===i&&l===a.array.length-1?a.array.pop():a.array[l]=i,a)}function ZU(e,t){return t&&e&&t===e.ownerID?e:new OU(e?e.array.slice():[],t)}function jU(e,t){if(t>=BU(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&nP],r-=5;return n}}function RU(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new oP,i=e._origin,o=e._capacity,a=i+t,l=void 0===n?o:n<0?o+n:i+n;if(a===i&&l===o)return e;if(a>=l)return e.clear();for(var s=e._level,c=e._root,d=0;a+d<0;)c=new OU(c&&c.array.length?[void 0,c]:[],r),d+=1<<(s+=5);d&&(a+=d,i+=d,l+=d,o+=d);for(var u=BU(o),f=BU(l);f>=1<<s+5;)c=new OU(c&&c.array.length?[c]:[],r),s+=5;var h=e._tail,p=f<u?jU(e,l-1):f>u?new OU([],r):h;if(h&&f>u&&a<o&&h.array.length){for(var m=c=ZU(c,r),C=s;C>5;C-=5){var g=u>>>C&nP;m=m.array[g]=ZU(m.array[g],r)}m.array[u>>>5&nP]=h}if(l<o&&(p=p&&p.removeAfter(r,0,l)),a>=f)a-=f,l-=f,s=5,c=null,p=p&&p.removeBefore(r,0,a);else if(a>i||f<u){for(d=0;c;){var v=a>>>s&nP;if(v!==f>>>s&nP)break;v&&(d+=(1<<s)*v),s-=5,c=c.array[v]}c&&a>i&&(c=c.removeBefore(r,s,a-d)),c&&f<u&&(c=c.removeAfter(r,s,f-d)),d&&(a-=d,l-=d)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=c,e._tail=p,e.__hash=void 0,e.__altered=!0,e):TU(a,l,s,c,p)}function BU(e){return e<tP?0:e-1>>>5<<5}function PU(e){return QF(e)&&vP(e)}var FU,UU=function(e){function t(e){return null==e?WU():PU(e)?e:WU().withMutations(function(t){var n=BB(e);KF(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):WU()},t.prototype.set=function(e,t){return QU(this,e,t)},t.prototype.remove=function(e){return QU(this,e,rP)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?qU(t,n,e,this.__hash):0===this.size?WU():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(YF);function qU(e,t,n,r){var i=Object.create(UU.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function WU(){return FU||(FU=qU(sU(),IU()))}function QU(e,t,n){var r,i,o=e._map,a=e._list,l=o.get(t),s=void 0!==l;if(n===rP){if(!s)return e;a.size>=tP&&a.size>=2*o.size?(r=(i=a.filter(function(e,t){return void 0!==e&&l!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=o,i=a.set(l,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):qU(r,i)}UU.isOrderedMap=PU,UU.prototype[gP]=!0,UU.prototype[eP]=UU.prototype.remove;var GU="@@__IMMUTABLE_STACK__@@";function KU(e){return Boolean(e&&e[GU])}var YU=function(e){function t(e){return null==e?eq():KU(e)?e:eq().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=lP(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):$U(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&KU(t))return t;KF(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):$U(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):eq()},t.prototype.slice=function(t,n){if(cP(t,n,this.size))return this;var r=dP(t,this.size);if(uP(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):$U(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?$U(this.size,this._head,e,this.__hash):0===this.size?eq():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new LP(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new LP(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new QB(function(){if(r){var t=r.value;return r=r.next,GB(e,n++,t)}return{value:void 0,done:!0}})},t}(PB);YU.isStack=KU;var XU,JU=YU.prototype;function $U(e,t,n,r){var i=Object.create(JU);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function eq(){return XU||(XU=$U(0))}function tq(e,t,n,r,i,o){return KF(e.size),e.__iterate(function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)},o),n}function nq(e,t){return t}function rq(e,t){return[t,e]}function iq(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function oq(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function aq(e,t){return e<t?1:e>t?-1:0}function lq(e,t){if(e===t)return!0;if(!jB(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||IB(e)!==IB(t)||NB(e)!==NB(t)||vP(e)!==vP(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!DB(e);if(vP(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&AF(i[1],e)&&(n||AF(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var a=!0,l=t.__iterate(function(t,r){if(n?!e.has(t):i?!AF(t,e.get(r,rP)):!AF(e.get(r,rP),t))return a=!1,!1});return a&&e.size===l}JU[GU]=!0,JU.shift=JU.pop,JU.unshift=JU.push,JU.unshiftAll=JU.pushAll,JU.withMutations=qF,JU.wasAltered=UF,JU.asImmutable=TP,JU["@@transducer/init"]=JU.asMutable=IP,JU["@@transducer/step"]=function(e,t){return e.unshift(t)},JU["@@transducer/result"]=function(e){return e.asImmutable()};var sq,cq=function(e){function t(e,n,r){if(void 0===r&&(r=1),!(this instanceof t))return new t(e,n,r);if(GF(0!==r,"Cannot step a Range by 0"),GF(void 0!==e,"You must define a start value when using Range"),GF(void 0!==n,"You must define an end value when using Range"),r=Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(sq)return sq;sq=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+lP(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return cP(e,n,this.size)?this:(e=dP(e,this.size),(n=uP(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new QB(function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,GB(e,t?n-++o:o++,a)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:lq(this,e)},t}(xP),dq="@@__IMMUTABLE_SET__@@";function uq(e){return Boolean(e&&e[dq])}var fq=function(e){function t(t){return null==t?gq():uq(t)&&!vP(t)?t:gq().withMutations(function(n){var r=e(t);KF(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(BB(e).keySeq())},t.intersect=function(e){return(e=RB(e).toArray()).length?pq.intersect.apply(t(e.pop()),e):gq()},t.union=function(e){return(e=RB(e).toArray()).length?pq.union.apply(t(e.pop()),e):gq()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return mq(this,this._map.set(e,e))},t.prototype.remove=function(e){return mq(this,this._map.remove(e))},t.prototype.clear=function(){return mq(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=mq(this,this._map.mapEntries(function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t=t.filter(function(e){return 0!==e.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach(function(e){return n.add(e)})}):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return Oq(hF(this,e))},t.prototype.sortBy=function(e,t){return Oq(hF(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(FB);fq.isSet=uq;var hq,pq=fq.prototype;function mq(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Cq(e,t){var n=Object.create(pq);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function gq(){return hq||(hq=Cq(sU()))}function vq(e,t,n){for(var r=vU(t),i=0;i!==r.length;)if((e=bU(e,r[i++],rP))===rP)return n;return e}function yq(e,t){return vq(this,e,t)}function wq(e,t){return vq(e,t,rP)!==rP}function bq(){KF(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}function Eq(e){if(!e||"object"!=typeof e)return e;if(!jB(e)){if(!VF(e))return e;e=MP(e)}if(IB(e)){var t={};return e.__iterate(function(e,n){t[n]=Eq(e)}),t}var n=[];return e.__iterate(function(e){n.push(Eq(e))}),n}function Mq(e){if(e.size===1/0)return 0;var t=vP(e),n=IB(e),r=t?1:0;return e.__iterate(n?t?function(e,t){r=31*r+Aq(RP(e),RP(t))|0}:function(e,t){r=r+Aq(RP(e),RP(t))|0}:t?function(e){r=31*r+RP(e)|0}:function(e){r=r+RP(e)|0}),function(e,t){return t=DP(t,3432918353),t=DP(t<<15|t>>>-15,461845907),t=DP(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=DP(t^t>>>16,2246822507),t=DP(t^t>>>13,3266489909),t=ZP(t^t>>>16),t}(e.size,r)}function Aq(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function xq(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}pq[dq]=!0,pq[eP]=pq.remove,pq.merge=pq.concat=pq.union,pq.withMutations=qF,pq.asImmutable=TP,pq["@@transducer/init"]=pq.asMutable=IP,pq["@@transducer/step"]=function(e,t){return e.add(t)},pq["@@transducer/result"]=function(e){return e.asImmutable()},pq.__empty=gq,pq.__make=Cq,RB.Iterator=QB,xq(RB,{toArray:function(){KF(this.size);var e=new Array(this.size||0),t=IB(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new nF(this)},toJS:function(){return Eq(this)},toKeyedSeq:function(){return new tF(this,!0)},toMap:function(){return YF(this.toKeyedSeq())},toObject:bq,toOrderedMap:function(){return UU(this.toKeyedSeq())},toOrderedSet:function(){return Oq(IB(this)?this.valueSeq():this)},toSet:function(){return fq(IB(this)?this.valueSeq():this)},toSetSeq:function(){return new rF(this)},toSeq:function(){return NB(this)?this.toIndexedSeq():IB(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return YU(IB(this)?this.valueSeq():this)},toList:function(){return _U(IB(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return gF(this,function(e,t){var n=IB(e),r=[e].concat(t).map(function(e){return jB(e)?n&&(e=BB(e)):e=n?OP(e):zP(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&IB(i)||NB(e)&&NB(i))return i}return new uF(r)}(this,e))},includes:function(e){return this.some(function(t){return AF(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){KF(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return gF(this,sF(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=IB(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)});var o=yF(e);return i.map(function(t){return gF(e,o(t))})}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return KF(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){KF(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(0)},map:function(e,t){return gF(this,aF(this,e,t))},reduce:function(e,t,n){return tq(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return tq(this,e,t,n,arguments.length<2,!0)},reverse:function(){return gF(this,lF(this,!0))},slice:function(e,t){return gF(this,cF(this,e,t,!0))},some:function(e,t){KF(this.size);var n=!1;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=!0,!1}),n},sort:function(e){return gF(this,hF(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return aP(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=YF().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return lq(this,e)},entrySeq:function(){var e=this;if(e._cache)return new LP(e._cache);var t=e.toSeq().map(rq).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(iq(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(sP,null,e)},flatMap:function(e,t){return gF(this,function(e,t,n){var r=yF(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return gF(this,fF(this,e,!0))},fromEntrySeq:function(){return new iF(this)},get:function(e,t){return this.find(function(t,n){return AF(n,e)},void 0,t)},getIn:yq,groupBy:function(e,t){return function(e,t,n){var r=IB(e),i=(vP(e)?UU():YF()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=yF(e);return i.map(function(t){return gF(e,o(t))}).asImmutable()}(this,e,t)},has:function(e){return this.get(e,rP)!==rP},hasIn:function(e){return wq(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:RB(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:RB(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return AF(t,e)})},keySeq:function(){return this.toSeq().map(nq).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return pF(this,e)},maxBy:function(e,t){return pF(this,t,e)},min:function(e){return pF(this,e?oq(e):aq)},minBy:function(e,t){return pF(this,t?oq(t):aq,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return gF(this,dF(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(iq(e),t)},sortBy:function(e,t){return gF(this,hF(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return gF(this,function(e,t,n){var r=wF(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,l){return t.call(n,e,i,l)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),l=!0;return new QB(function(){if(!l)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,s=i[0],c=i[1];return t.call(n,c,s,o)?2===r?e:GB(r,s,c,e):(l=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(iq(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Mq(this))}});var kq=RB.prototype;kq[ZB]=!0,kq[WB]=kq.values,kq.toJSON=kq.toArray,kq.__toStringMapper=yU,kq.inspect=kq.toSource=function(){return this.toString()},kq.chain=kq.flatMap,kq.contains=kq.includes,xq(BB,{flip:function(){return gF(this,oF(this))},mapEntries:function(e,t){var n=this,r=0;return gF(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gF(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Lq=BB.prototype;Lq[TB]=!0,Lq[WB]=kq.entries,Lq.toJSON=bq,Lq.__toStringMapper=function(e,t){return yU(t)+": "+yU(e)},xq(PB,{toKeyedSeq:function(){return new tF(this,!1)},filter:function(e,t){return gF(this,sF(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return gF(this,lF(this,!1))},slice:function(e,t){return gF(this,cF(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=dP(e,e<0?this.count():this.size);var r=this.slice(0,e);return gF(this,1===n?r:r.concat(OF(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return gF(this,fF(this,e,!1))},get:function(e,t){return(e=lP(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=lP(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gF(this,function(e,t){var n=wF(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),a=0;return new QB(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?GB(n,a++,t):GB(n,a++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(OF(arguments)),t=CF(this.toSeq(),xP.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gF(this,n)},keySeq:function(){return cq(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return gF(this,dF(this,e,t,!1))},zip:function(){return gF(this,CF(this,_q,[this].concat(OF(arguments))))},zipAll:function(){return gF(this,CF(this,_q,[this].concat(OF(arguments)),!0))},zipWith:function(e){var t=OF(arguments);return t[0]=this,gF(this,CF(this,e,t))}});var Hq=PB.prototype;Hq[zB]=!0,Hq[gP]=!0,xq(FB,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Sq=FB.prototype;function _q(){return OF(arguments)}function Vq(e){return uq(e)&&vP(e)}Sq.has=kq.includes,Sq.contains=Sq.includes,Sq.keys=Sq.values,xq(AP,Lq),xq(xP,Hq),xq(kP,Sq);var Oq=function(e){function t(e){return null==e?Iq():Vq(e)?e:Iq().withMutations(function(t){var n=FB(e);KF(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(BB(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(fq);Oq.isOrderedSet=Vq;var zq,Nq=Oq.prototype;function Tq(e,t){var n=Object.create(Nq);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Iq(){return zq||(zq=Tq(WU()))}Nq[gP]=!0,Nq.zip=Hq.zip,Nq.zipWith=Hq.zipWith,Nq.zipAll=Hq.zipAll,Nq.__empty=Iq,Nq.__make=Tq;var Dq=function(e,t){var n;!function(e){if(mP(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(CP(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var l=Object.keys(e),s=i._indices={};i._name=t,i._keys=l,i._defaultValues=e;for(var c=0;c<l.length;c++){var d=l[c];s[d]=c,i[d]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+Rq(this)+' with property "'+d+'" since that property name is part of the Record API.'):Pq(i,d)}}return this.__ownerID=void 0,this._values=_U().withMutations(function(e){e.setSize(a._keys.length),BB(o).forEach(function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(Zq);return i.constructor=r,t&&(r.displayName=t),r};Dq.prototype.toString=function(){for(var e,t=Rq(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+yU(this.get(e));return t+" }"},Dq.prototype.equals=function(e){return this===e||mP(e)&&Bq(this).equals(Bq(e))},Dq.prototype.hashCode=function(){return Bq(this).hashCode()},Dq.prototype.has=function(e){return this._indices.hasOwnProperty(e)},Dq.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},Dq.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return jq(this,n)}return this},Dq.prototype.remove=function(e){return this.set(e)},Dq.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:jq(this,e)},Dq.prototype.wasAltered=function(){return this._values.wasAltered()},Dq.prototype.toSeq=function(){return Bq(this)},Dq.prototype.toJS=function(){return Eq(this)},Dq.prototype.entries=function(){return this.__iterator(2)},Dq.prototype.__iterator=function(e,t){return Bq(this).__iterator(e,t)},Dq.prototype.__iterate=function(e,t){return Bq(this).__iterate(e,t)},Dq.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?jq(this,t,e):(this.__ownerID=e,this._values=t,this)},Dq.isRecord=mP,Dq.getDescriptiveName=Rq;var Zq=Dq.prototype;function jq(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function Rq(e){return e.constructor.displayName||e.constructor.name||"Record"}function Bq(e){return OP(e._keys.map(function(t){return[t,e.get(t)]}))}function Pq(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){GF(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}Zq[pP]=!0,Zq[eP]=Zq.remove,Zq.deleteIn=Zq.removeIn=LU,Zq.getIn=yq,Zq.hasIn=kq.hasIn,Zq.merge=kF,Zq.mergeWith=LF,Zq.mergeIn=jF,Zq.mergeDeep=IF,Zq.mergeDeepWith=DF,Zq.mergeDeepIn=ZF,Zq.setIn=BF,Zq.update=PF,Zq.updateIn=FF,Zq.withMutations=qF,Zq.asMutable=IP,Zq.asImmutable=TP,Zq[WB]=Zq.entries,Zq.toJSON=Zq.toObject=kq.toObject,Zq.inspect=Zq.toSource=function(){return this.toString()};var Fq,Uq=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(Fq)return Fq;Fq=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return AF(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return cP(e,n,r)?this:new t(this._value,uP(n,r)-dP(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return AF(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return AF(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new QB(function(){return i===r?{value:void 0,done:!0}:GB(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?AF(this._value,e._value):lq(this,e)},t}(xP);function qq(e,t,n,r,i,o){if("string"!=typeof n&&!CP(n)&&(EP(n)||YB(n)||_F(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var a=t.call(o,r,MP(n).map(function(r,o){return qq(e,t,r,o,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function Wq(e,t){return NB(t)?t.toList():IB(t)?t.toMap():t.toSet()}var Qq,Gq=RB,Kq=S(Object.freeze({__proto__:null,Collection:RB,Iterable:Gq,List:_U,Map:YF,OrderedMap:UU,OrderedSet:Oq,PairSorting:{LeftThenRight:-1,RightThenLeft:1},Range:cq,Record:Dq,Repeat:Uq,Seq:MP,Set:fq,Stack:YU,fromJS:function(e,t){return qq([],t||Wq,e,"",t&&t.length>2?[]:void 0,{"":e})},get:bU,getIn:vq,has:wU,hasIn:wq,hash:RP,is:AF,isAssociative:DB,isCollection:jB,isImmutable:CP,isIndexed:NB,isKeyed:IB,isList:SU,isMap:QF,isOrdered:vP,isOrderedMap:PU,isOrderedSet:Vq,isPlainObject:_F,isRecord:mP,isSeq:wP,isSet:uq,isStack:KU,isValueObject:MF,merge:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return TF(e,t)},mergeDeep:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return NF(e,t)},mergeDeepWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return NF(t,n,e)},mergeWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return TF(t,n,e)},remove:EU,removeIn:kU,set:MU,setIn:RF,update:xF,updateIn:AU,version:"5.1.4"}));var Yq=(Qq||(Qq=1,window,OB.exports=function(e,t,n){return o={},r.m=i=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;
43
+ let r=n?.map(e=>({...e,stepId:gp()}));return e.map(e=>e.stepId===t&&["Group","PRE","POST","Script"].includes(e.type)?{...e,data:[...r||[]]}:e.data?{...e,data:_O(e.data,t,r)}:e)},VO=(e,t,n,r)=>e.map(e=>e.title===t?{...e,data:_O(e.data,n,r)}:e),OO=e=>{let t;if(e.includes("T"))t=new Date(e);else{const[n,r]=e.split(" ");if(!n||!r)throw new Error("Invalid input format. Expected 'DD-MM-YYYY HH:mm'");const[i,o,a]=n.split("-"),[l,s]=r.split(":");t=new Date(parseInt(a||"",10),parseInt(o||"",10)-1,parseInt(i||"",10),parseInt(l||"",10),parseInt(s||"",10))}const n=`${t.getFullYear()}-${("0"+(t.getMonth()+1)).slice(-2)}-${("0"+t.getDate()).slice(-2)}`,r=`${("0"+t.getHours()).slice(-2)}:${("0"+t.getMinutes()).slice(-2)}:00`;return new Date(`${n}T${r}`)},zO=e=>{const t=new Date;return new Intl.DateTimeFormat("en-US",{timeZone:e,weekday:"long",year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}).format(t)},NO=({data:r,level:i=0,columnCount:o=1,viewModeId:a,ViewComponent:l,handleClick:s,handleStepGroupExpand:c,isStepGroupExpanded:d})=>{const u=0===i?26:i+8,h=p(e=>["PRE","POST","Group"].includes(e)?"6px 8px":"7px 8px",[]);return e(t,{children:r?.map(t=>{const r=a===t.stepId,i=d?.(t.stepId),p=h(t.type);return n(f,{children:[e("tr",r?{className:"pre-edit-row",id:"getInFocus",children:e("td",{colSpan:o,children:e("div",{style:{marginLeft:u},children:l&&e(l,{})})})}:{children:e("td",{colSpan:o,style:{padding:p},children:n("div",{style:{marginLeft:u,display:"flex",alignItems:"center"},children:[e(K,{title:t?.name,children:n(F,{as:"div",color:"var(--brand-color)",lineHeight:"18px",onClick:()=>s?.(t),children:[t.displayOrder,".",ie(t.name,40)]})}),["PRE","POST","Group"].includes(t.type)&&e("div",{className:"pre-accordion-arrow "+(i?"expanded":""),children:e(P,{name:"arrow_right",className:"pre-arrow-svg",color:i?"var(--brand-color)":"var(--default-color)",width:12,height:12,onClick:()=>c?.(t)})})]})})}),i&&e(NO,{data:t.data,level:u,columnCount:o,viewModeId:a,handleClick:s,ViewComponent:l,handleStepGroupExpand:c,isStepGroupExpanded:d})]},t.stepId)})})};var TO=g(({row:r,columns:i,tableBodyRowClass:o,handleOnclick:a,tableDataTextColor:l,withCheckbox:s,onSelectClick:c,draggable:d,indexNumber:u=0,dataLength:f=0,viewModeId:p,ViewComponent:m,handleClick:C,handleStepGroupExpand:g,isStepGroupExpanded:v,scriptType:y})=>{const w=r?.isDisabled,b=r?._id||r?.stepId,E=!!y&&"cascaded"===r.cascaded,M=w||f<=1||E;let A=(u+1).toString();const{attributes:x,listeners:k,setNodeRef:L,transform:H,transition:S}=va({id:b,disabled:M}),_=h(()=>({transform:qr.Transform.toString(H),transition:S}),[H,S]),V=v?.(r.stepId);return n(t,{children:[e("tr",{ref:L,style:_,className:z(o,{"disabled-row":w}),children:i.map((t,i)=>{const o=0===i;return e("td",{style:{paddingLeft:o&&d?"0px":"8px"},onClick:()=>a(t,r,i),className:z(t.className,{"clickable-cell":t.onClick}),children:n(F,{as:"div",color:l,className:"ff-data-checkbox-container",children:[o&&s&&e("span",{className:"ff-table-pre-post-checkbox",children:e(te,{onChange:e=>c(e,r),checked:r.checked,disabled:!!w})}),o&&d&&e("div",{className:w?"ff-table-drag":"ff-table-drag-icon",...k,...x,children:e(P,{name:"drag",className:M?"drag-icon-disabled":"drag-icon"})}),yr(r,t,u),o&&["PRE","POST","Group"].includes(r.type)&&e("div",{className:"pre-accordion-arrow "+(V?"expanded":""),children:e(P,{name:"arrow_right",color:V?"var(--brand-color)":"var(--default-color)",width:12,height:12,className:"pre-arrow-svg",onClick:()=>{g?.({...r,serialNumber:A})}})}),t.extraInfo&&t.extraInfo({row:r,indexNumber:u})]})},`${t.accessor}${i}`)})},b),V&&e(NO,{data:r.data,columnCount:i.length,viewModeId:p,ViewComponent:m,handleClick:C,handleStepGroupExpand:g,isStepGroupExpanded:v})]})});const IO=(e,t)=>{const{action:n,sourceIndex:r,nlpName:i,id:o}=t;if(!n)return e;const a=[...e];let l={stepId:"stepId-9745-9745",isNew:!0,disabled:!1,...i&&{name:i},...o&&{id:o}};switch(n){case"addBelow":void 0!==r&&a.splice(r+1,0,l);break;case"replaceNlp":void 0!==r&&a.splice(r,0,l);break;case"EditNlp":void 0!==r&&(a.splice(r,1),a.splice(r,0,l));break;case"addLast":a.push(l)}return a},DO=(e,t="nearest",n=5)=>{if(!e)return;const r=document.getElementById(e);r?r.scrollIntoView({behavior:"smooth",block:t}):n>0?setTimeout(()=>{DO(e,t,n-1)},300):console.warn(`Element with id - "${e}" not found after multiple retries.`)},ZO=o(({data:t=[],columns:r=[],headerType:i,withCheckbox:o=!1,onSelect:s,allSelected:d,partialSelected:u=!1,withFixedHeader:f=!0,borderWithRadius:h=!1,headerCheckboxDisabled:p=!1,noDataContent:m,height:C="100%",className:g="",tableHeadClass:v="",tableBodyRowClass:E="",headerTextColor:M,tableDataTextColor:A,draggable:x=!1,onDragEnd:k,loadMore:L=()=>{},editMode:H="",editComponent:S,NlpComponent:_,AddNlp:V,handleDragStart:O,handleViewComponent:N,handleAccordion:T,loading:I,scriptType:D=!1},Z)=>{const j=a(null),[R,B]=c(null),[P,U]=c(null),q=e=>{U(t=>t===e?.stepId?null:e?.stepId)},W=e=>{q(e);const t=N?.(e,q);t?B(()=>t):q(null)},[Q,K]=c(new Map),Y=e=>Q.has(e),X=e=>{Y(e?.stepId)||(P&&q(null),T?.(e)),I||K(t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n})};l(()=>{const e=document.getElementById("ff-table-scroll-container"),n=document.getElementById("ff-table-first-node"),r=document.getElementById("ff-table-last-node");if(e&&n&&r&&t?.length)return j.current=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";L(t)}})},{root:e,rootMargin:"8px",threshold:.1}),j.current.observe(n),j.current.observe(r),()=>{j.current?.disconnect()}},[t,L]);const J=(e,t,n)=>{let{onClick:r,accessor:i}=e;r&&hr(r)&&r(i,t,n)},$=(e,t)=>{s&&s(e,t)};return l(()=>{DO("getInFocus")},[V,P]),Z&&b(Z,()=>({resetStepGroupAccordion:()=>{K(new Map)}})),e(Io,{collisionDetection:hi,onDragStart:()=>{O?.(),Q.clear()},onDragEnd:e=>{const{active:n,over:r}=e;if(!r||n.id===r.id)return;const i=t.findIndex(e=>e._id===n.id||e.stepId===n.id),o=t.findIndex(e=>e._id===r.id||e.stepId===r.id);-1!==i&&-1!==o&&k&&k(i,o)},modifiers:[eh],children:e(ua,{disabled:!x,items:t?.map(e=>e.stepId||e._id),strategy:sa,children:n("div",{style:{height:C},id:"ff-table-scroll-container",className:z(g,{"pre-fixed-header-table":f,"pre-border-borderRadius":h}),children:[n("table",{className:z("ff-table-pre-post"),cellSpacing:0,children:[e("thead",{className:z({"pre-table-thead":f},v),children:e("tr",{children:r.map((t,r)=>e("th",{className:z(`${i&&`${i}-bg`}`,`${M&&`${M}-color`}`),style:{width:t?.width},children:n(F,{as:"div",fontWeight:"semi-bold",className:"ff-label-checkbox-container",lineHeight:"18px",color:"var(--drawer-title-color)",children:[0===r&&o&&e("span",{className:"ff-table-pre-post-checkbox",children:e(te,{onChange:e=>{$(e,{allSelected:e.target.checked})},checked:void 0!==d&&d,partial:!!u,disabled:p})}),t.header]})},t.header))})}),n("tbody",{className:"pre-table-tbody",children:[e("tr",{id:"ff-table-first-node"}),IO(t,V??{})?.map((i,a)=>{const l=H===i.stepId;return l||i.isNew?n("tr",{id:"getInFocus",className:"pre-edit-row",children:[l&&w(S)&&e("td",{colSpan:r.length,children:y(S,{rowData:i,rowIndex:a+1})}),i.isNew&&!l&&w(_)&&e("td",{colSpan:r.length,children:y(_,{rowIndex:a,rowData:i})})]},i.stepId||a):e(TO,{row:i,indexNumber:a,columns:r,tableBodyRowClass:E,handleOnclick:J,tableDataTextColor:A,withCheckbox:o,onSelectClick:$,draggable:x,dataLength:t?.length,viewModeId:P,ViewComponent:R,handleClick:W,handleStepGroupExpand:X,isStepGroupExpanded:Y,scriptType:D})}),e("tr",{id:"ff-table-last-node"})]})]}),G(t)&&G(V)&&e("div",{className:"ff-no-data-content",style:{height:`calc(${C} - 50px)`},children:m})]})})})}),jO=g(({data:r=[],level:o=0,columnCount:s=1,viewModeId:c,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:p,isViewPrivilegeMode:m,columns:C=[],parentIndex:g,updateRowHeight:v})=>{const y=a([]),w=new Set(["Group","PRE","POST","Script"]),b=o+8,E=(e,t,n,r)=>{const i=e[t.accessor];if(t.cell){const o=e._id||e.id;return t.cell({value:i,row:e,column:t.accessor,index:n,tableType:r,...o&&{refId:o}})}return t.accessor||i&&"object"!=typeof i?i:"--"};return l(()=>{if(!v)return;const e=new ResizeObserver(()=>{let e=0;y.current.forEach(t=>{t&&(e+=t.getBoundingClientRect().height)}),e>0&&v(g??0,e)});return y.current.forEach(t=>{t&&e.observe(t)}),()=>e.disconnect()},[r,v,g,p]),e(t,{children:r?.map((t,r)=>{const o=g??0+r+1;return n(i.Fragment,{children:[e("tr",c===t?.stepId?{ref:e=>y.current[r]=e,className:"steps-edit-row",id:"getInFocus",children:e("td",{colSpan:s,children:e("div",{style:{marginLeft:`${b}px`},children:d&&e(d,{})})})}:{ref:e=>y.current[r]=e,children:C.map((r,i)=>{return e("td",{style:{maxWidth:r.width,padding:(o=t.type,w.has(o)?"6px 8px":"7px 8px")},children:n(F,{as:"div",className:"ff-data-checkbox-container",children:[n("div",{className:"ff-data-checkbox-container-content",style:{marginLeft:0===i?`${b}px`:0},onClick:()=>{0===i&&!t?.displayName?.includes("End")&&!t?.isDisabled&&u?.({...t,tableType:f})},children:[!m&&0===i&&e("div",{style:{padding:"4px 18px"}}),E({...t,marginLeft:b},r)]}),0===i&&["Group","PRE","POST","Script"].includes(t.type)&&e("div",{className:"ff-accordion-arrow "+(p?.(t.stepId)?"expanded":""),children:e(P,{name:"arrow_right",color:p?.(t.stepId)?"var(--brand-color)":"var(--default-color)",className:"steps-arrow-svg",width:12,height:12,onClick:()=>h?.({...t,tableType:f})})})]})},`${t.stepId}-${i}`);var o})}),p?.(t.stepId)&&e(jO,{data:t.data,level:b,columnCount:s,viewModeId:c,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:p,isViewPrivilegeMode:m,columns:C,parentIndex:o,updateRowHeight:v})]},t.stepId)})})});jO.displayName="StepGroupAccordions";const RO=g(({row:r,columns:i,tableBodyRowClass:o,handleOnclick:s,tableDataTextColor:c,withCheckbox:d,onSelectClick:u,draggable:f,indexNumber:p=0,tableType:m="",viewModeId:C,ViewComponent:g,handleClick:v,selectedRows:y,handleStepGroupExpand:w,isStepGroupExpanded:b,dataLength:E,stepPartialSelect:M,isViewPrivilegeMode:A,isClientSide:x,updateRowHeight:k,rowId:L,onRowHover:H,onRowHoverOut:S})=>{const _=a(null),V=h(()=>r?.isDisabled||(E??0)<=1||r.isSpecialNlp,[r,E]),O=(p+1).toString(),{attributes:N,listeners:T,setNodeRef:I,transform:D,transition:Z}=va({id:r?._id||r?.stepId,disabled:V}),j=h(()=>({transform:qr.Transform.toString(D),transition:Z}),[D,Z]),R=r?._id||r?.stepId;l(()=>{if(_.current&&k){const e=_.current.getBoundingClientRect().height;k(p,e)}},[r,k,p,b?.(r?.stepId)]);const B=e=>A||x?["Group","PRE","POST","Script"].includes(r.type)&&0===e?"4px 8px":"7px 8px":0!==e?"Steps"===m?"4px 8px":"7px 8px":"Steps"===m&&f?"4px 8px 4px 0px":"4px 8px 4px 24px";return n(t,{children:[e("tr",{"data-rowid":L,ref:e=>{_.current=e,I(e)},style:j,className:z(o,"sortable-item",{"disabled-inner-row":V}),id:R,onMouseEnter:()=>{H?.(L||""),console.log("Mouse entered row:",L)},onMouseLeave:()=>{S?.(L||""),console.log("Mouse left row:",null)},children:i?.map((i,o)=>e(t,{children:e("td",{style:{padding:B(o),maxWidth:i.width},onClick:()=>s(i,r,p),children:n(F,{as:"div",color:c,className:"ff-data-checkbox-container",children:[0===o&&!x&&f&&e("div",{className:V?"ff-table-drag":"ff-table-drag-icon",...T,...N,children:e(P,{name:"drag",className:V?"drag-icon-disabled":"drag-icon"})}),0===o&&!x&&d&&e("span",{className:m&&y[m]?.has(r.stepId)||M?.has(r.stepId)?"ff-step-table-select-checkbox":"ff-table-checkbox-step",children:e(te,{onChange:e=>u(m,r,e.target.checked),checked:!!y[m]?.has(r.stepId),partial:M?.has(r.stepId),disabled:r?.isSpecialNlp&&r?.name?.includes("End")})}),n("div",{className:"ff-margin-container",style:{marginLeft:0===o?r.marginLeft:0},children:[yr(r,i,p,m),["Group","PRE","POST","Script"].includes(r.type)&&0===o&&!x&&e("div",{className:"ff-accordion-arrow "+(b?.(r?.stepId)?"expanded":""),children:e(P,{name:"arrow_right",className:"steps-arrow-svg",color:b?.(r?.stepId)?"var(--brand-color)":"var(--default-color)",width:12,height:12,onClick:()=>w?.({...r,tableType:m,serialNumber:O})})}),i.extraInfo?.({row:r,indexNumber:p,tableType:m})]})]})},`${i.accessor}-${gp()}`)}))},R),b?.(r?.stepId)&&e(jO,{data:r.data||r?.stepResults,columnCount:i.length,viewModeId:C,ViewComponent:g,handleClick:v,tableType:m,handleStepGroupExpand:w,isStepGroupExpanded:b,level:r?.marginLeft,isViewPrivilegeMode:A,columns:i,parentIndex:p,updateRowHeight:k})]})});RO.displayName="StepTableMainRow";const BO=({data:t=[],columns:r=[],headerType:i,withCheckbox:o=!1,onSelect:s,withFixedHeader:d=!0,borderWithRadius:u=!1,noDataContent:f,height:m="100%",className:C="",tableBodyRowClass:g="",headerTextColor:v,tableDataTextColor:b,draggable:E=!1,onDragEnd:M,loadMore:A=()=>{},editMode:x="",editComponent:k,NlpComponent:L,AddNlp:H,handleDragStart:S,tableType:_,viewModeId:V,ViewComponent:O,handleClick:N,selectedRows:T,handleStepGroupExpand:I,isStepGroupExpanded:D,stepPartialSelect:Z,isViewPrivilegeMode:j,isClientSide:R,highlightKey:B,onHighlightComplete:P,handleRowHover:F,handleRowHoverOut:U})=>{const q=a(null),W=a(null),[Q,K]=c(0),[Y,X]=c(0),[J,$]=c([]),[ee,te]=c(null),ne=50,re=a(0);l(()=>{W.current&&X(W.current.clientHeight);const e=IO(t,H??{});$(t=>{const n=[...t];for(;n.length<e.length;)n.push(ne);return n.length>e.length&&(n.length=e.length),n})},[t,H]),l(()=>{re.current>0&&W.current&&(W.current.scrollTop=re.current,re.current=0)},[J]),l(()=>{if(G(B))if(x)te(x);else if(H&&Object.keys(H).length>0){const e=IO(t,H).find(e=>e.isNew);e&&te(e.stepId||"new-row")}else te(null);else te(B)},[x,H,t,B]),l(()=>{if(ee&&W.current){const e=setTimeout(()=>{const e=W.current?.querySelector(`[data-rowid="${ee}"]`);e&&(e.scrollIntoView({behavior:"smooth",block:"nearest"}),setTimeout(()=>{G(B)||P?.()},300))},100);return()=>clearTimeout(e)}},[ee,J,B,P]);const ie=p(e=>{const t=e.currentTarget.scrollTop;K(t)},[]),oe=p((e,t)=>{$(n=>{const r=[...n];return e<r.length&&r[e]!==t?(r[e]=t,r):n})},[]),ae=h(()=>IO(t,H??{}),[t,H]),le=ae.length,{startIndex:se,paddingTop:ce,paddingBottom:de,visibleRows:ue}=h(()=>{let e=0,t=le-1,n=0,r=0;if(J.length===le&&Y>0){let i=0;for(let t=0;t<le;t++)i<=Q&&(e=t),i+=J[t]??0;i=0;for(let e=0;e<le;e++)if(i+=J[e]??0,i>=Q+Y&&t===le-1){t=e;break}if(e=Math.max(0,e-5),t=Math.min(le-1,t+5),ee){const n=ae.findIndex(e=>e.stepId===ee||e.isNew&&"new-row"===ee);n>=0&&(n<e?e=n:n>t&&(t=n))}n=J.slice(0,e).reduce((e,t)=>e+t,0),r=J.slice(t+1).reduce((e,t)=>e+t,0)}else{if(e=Math.max(0,Math.floor(Q/ne)-5),t=Math.min(le-1,e+Math.ceil(Y/ne)+5),ee){const n=ae.findIndex(e=>e.stepId===ee||e.isNew&&"new-row"===ee);n>=0&&(n<e?e=n:n>t&&(t=n))}n=e*ne,r=(le-t-1)*ne}return{startIndex:e,endIndex:t,paddingTop:n,paddingBottom:r,visibleRows:ae.slice(e,t+1)}},[ae,le,J,Y,Q,5,ee,ne]);l(()=>{const e=W.current,n=document.getElementById("ff-table-first-node"),r=document.getElementById("ff-table-last-node");if(e&&n&&r&&t?.length)return q.current=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";A(t)}})},{root:e,rootMargin:"8px",threshold:.1}),q.current.observe(n),q.current.observe(r),()=>{q.current?.disconnect()}},[t?.length,A]);const fe=(e,t,n)=>{const{onClick:r,accessor:i}=e;r&&hr(r)&&r(i,t,n)},he=(e,t,n)=>{s&&s(e,t,n)};return e(Io,{collisionDetection:hi,onDragStart:S,onDragEnd:e=>{const{active:n,over:r}=e;if(!r||n.id===r.id)return;const i=t.findIndex(e=>e._id===n.id||e.stepId===n.id),o=t.findIndex(e=>e._id===r.id||e.stepId===r.id);-1!==i&&-1!==o&&M&&M(i,o)},modifiers:[eh],children:e(ua,{disabled:!E,items:t?.map(e=>e._id||e.stepId),strategy:sa,children:n("div",{ref:W,style:{height:m,position:"relative",overflowY:m?.includes("vh")?"auto":void 0},id:"ff-table-scroll-container",className:z(C,{"ff-fixed-header-steps-table":d,"steps-border-borderRadius":u}),onScroll:ie,children:[n("table",{className:z("ff-table-steps"),cellSpacing:0,children:[e("thead",{className:"steps-inner-thead",children:e("tr",{children:r?.map(t=>e("th",{className:z(`${i&&`${i}-bg`}`,`${v&&`${v}-color`}`),style:{width:t?.width}},`${t.header}-${gp()}`))})}),n("tbody",{className:"ff-steps-tbody",children:[e("tr",{id:"ff-table-first-node",style:{display:"none"}}),ce>0&&e("tr",{children:e("td",{style:{height:ce,padding:0},colSpan:r.length})}),ue.map((i,a)=>{const l=se+a,s=x===i.stepId,c=s||i.isNew,d=s&&i.stepId===ee||i.isNew&&"new-row"===ee;return c?n("tr",{className:"steps-edit-row",id:d?"getInFocus":void 0,"data-rowid":i.stepId||"new-row",children:[s&&w(k)&&e("td",{colSpan:r.length,children:y(k,{rowData:i,rowIndex:l+1})}),i.isNew&&!s&&w(L)&&e("td",{colSpan:r.length,children:y(L,{rowIndex:l,rowData:i})})]},i.stepId||l):e(RO,{rowId:i.stepId,row:i,onRowHover:F,onRowHoverOut:U,indexNumber:l,columns:r,tableBodyRowClass:g,handleOnclick:fe,tableDataTextColor:b,withCheckbox:o,onSelectClick:he,draggable:E,tableType:_,viewModeId:V,ViewComponent:O,handleClick:N,selectedRows:T,handleStepGroupExpand:I,isStepGroupExpanded:D,dataLength:t?.length,stepPartialSelect:Z,isViewPrivilegeMode:j,isClientSide:R,updateRowHeight:oe})}),de>0&&e("tr",{children:e("td",{style:{height:de,padding:0},colSpan:r.length})}),e("tr",{id:"ff-table-last-node",style:{display:"none"}})]})]}),t?.length<=0&&e("div",{className:"steps-no-data-content",style:{height:`calc(${m} - 50px)`},children:f})]})})})},PO=e=>["ElseIfCondition","ElseCondition"].includes(e?.nlpName);let FO=null,UO=null;const qO=e=>{if(UO===e&&FO)return FO;const t=((e,t="Steps")=>{const n=e.find(e=>e?.title===t);return n?.data??[]})(e),n=new Map,r=(e,n,r)=>{const i=t,o=i.findIndex(t=>t.stepId===e?.stepId),a=i.findIndex(e=>e.stepId===n?.stepId);return r?i.slice(o+1,a).map(e=>e.stepId):i.slice(o,a+1).map(e=>e.stepId)};return t?.forEach(e=>{const i=(e=>e.specialNlpId??e.conditionSearchKey??null)(e);if(!i)return;const o=n.get(i)||{start:null,end:null,childIds:[],allIds:[]};if(e?.isSpecialNlp&&e.name?.startsWith("Start")){o.start=e;const n=(e=>{const n=(e=>({IfCondition:"EndIfCondition",StartForLoop:"EndForLoop",StartIteration:"EndIteration",ElseIfCondition:"EndElseIfCondition",ElseCondition:"EndElseCondition"}[e.nlpName]||e.nlpName))(e),r=t;if(void 0!==e?.conditionId&&void 0!==e?.conditionSearchKey&&!e.specialNlpId){const t=e.conditionId===e.conditionSearchKey?e.conditionId:e.conditionSearchKey;return r.find(e=>e.conditionSearchKey===t&&e.nlpName===n)||null}return e.specialNlpId&&r.find(t=>t.specialNlpId===e.specialNlpId&&t.nlpName===n)||null})(e);n&&(o.end=n,o.childIds=r(e,n,!0),o.allIds=r(e,n,!1))}n.set(i,o)}),FO=n,UO=e,n},WO=e=>e.includes("/")?e.split("/").slice(0,-1).join("/"):e;const QO=e=>{if(!e)return!1;for(const t of Object.values(e))if(t&&t.size>0)return!0;return!1},GO=e=>{switch(e){case"PASS":return"var(--status-button-text-passed)";case"FAIL":return"var(--status-button-text-failed)";case"SKIP":return"var(--status-button-text-skipped)";case"WARNING":return"var(--status-warning-text-color)";default:return"var(--status-button-text-notExecuted)"}},KO=e=>{switch(e){case"PASS":return"Passed";case"FAIL":return"Failed";case"SKIP":return"Skipped";case"WARNING":return"Warning";default:return e}},YO=e=>{switch(e){case"PASS":return"passed";case"FAIL":return"failed";case"SKIP":return"skipped";case"WARNING":return"warning";case"Running":return"running";case"Partially Executed":return"partially-executed";case"Aborted":return"aborted";case"Terminated":return"terminated";default:return"default"}},XO=({metaData:t,width:r=0,displayIcon:i=!1})=>{const o=t?.total||0,a=[{name:"Passed",count:t?.totalPassed,color:"var(--status-approved-text-color)"},{name:"Failed",count:t?.totalFailed,color:"var(--status-rejected-text-color)"},{name:"Warning",count:t?.totalWarning,color:"var(--status-warning-text-color)"},{name:"Skipped",count:t?.totalSkipped,color:"var(--status-skipped-text-color)"},{name:"Terminated",count:t?.totalTerminated,color:"var(--status-skipped-text-color)"},{name:"Aborted",count:t?.totalAborted,color:"var(--status-skipped-text-color)"}],l=a.filter(e=>e.count>0),s=l.map(({count:e,name:t})=>`${e}/${o} ${t}`).join(" "),c=r?ie(s,r,"pixel"):s,d={Passed:t?.totalPassed||0,Failed:t?.totalFailed||0,Warning:t?.totalWarning||0,Skipped:t?.totalSkipped||0},u=Object.values(d).reduce((e,t)=>e+t,0),f=[["Passed","Failed"],["Warning","Skipped"]].map(e=>a.filter(({name:t,count:n})=>e.includes(t)&&n>0)).filter(Boolean),h=(e,t)=>"Skipped"===e?"var(--status-skipped-bg-color)":t,p=n("div",{className:"ff-status-tooltip",children:[f.map((t,r)=>e("div",{className:"ff-status-tooltip-row",children:t.map(({name:t,count:r,color:i})=>n("div",{className:"ff-status-item",children:[e("span",{className:"ff-status-dot",style:{backgroundColor:h(t,i)}}),n(F,{as:"span",fontWeight:"medium",fontSize:10,className:"ff-status-text",color:"var(--tooltip-text-color)",children:[t,": ",r]})]},t))},r)),e("div",{className:"ff-status-tooltip-divider"}),n(F,{as:"span",fontWeight:"medium",fontSize:10,className:"ff-status-tooltip-total",children:["Total Steps - ",u]})]});if(i)return e(K,{title:p,children:e(P,{name:"status_icon"})});const m=[];let C=0;for(const{count:e,name:t,color:n}of l){const r=`${e}/${o} ${t}`;if(!(C+r.length<=c.length)){const e=c.slice(C).trim();e&&m.push({text:e,color:n});break}m.push({text:r,color:n}),C+=r.length+1}return e("div",{className:"ff-stepResultStats",children:e(K,{title:s,children:e(F,{as:"div",className:"status-inline-text",fontWeight:"semi-bold",children:m.map(({text:t,color:n},r)=>e(F,{as:"span",fontWeight:"semi-bold",style:{color:n,whiteSpace:"nowrap"},children:t+" "},r))})})})},JO=({isHeaderRequired:r,isViewPrivilegeMode:i,onAccordionClick:o,isBulkEnable:a,showActionCell:l,handleMainCheckbox:s,isAllSelected:c,isPartialSelected:d,tableMeta:u=[],title:f,totalRows:h,expanded:p,actionCell:m,row:C,metaData:g,isClientSide:v,isMaximize:y})=>{const w=u?.map(e=>e.width),b=e=>{const t=w[e]??0;switch(e){case 0:return t+110;case 1:return t+(t>300?60:70);case 2:return t+20;default:return 0}};return n("article",{className:"step-title-article",style:{...!r&&!v&&{backgroundColor:"var(--hover-color)"}},children:[e("div",{style:{width:`${b(0)}px`},children:n("div",{className:"accordion-header",style:{paddingLeft:i||v?"8px":"24px"},children:[!i&&!v&&e(te,{onChange:e=>s(f,e.target.checked),checked:c(f,h),partial:d(f,h),disabled:0===h}),e("div",{className:"header-title",children:e(F,{as:"div",fontWeight:"semi-bold",color:v?"var(--brand-color)":"var(--nlp-option-color)",cursor:"default",lineHeight:"18px",children:f})}),e("div",v?{style:{padding:"12px"}}:{className:"accordion-arrow "+(p?"expanded":""),onClick:()=>o(f),children:e(P,{name:"arrow_right",color:p?"var(--brand-color)":"var(--default-color)",width:16,height:16,className:"steps-arrow-svg"})}),n("div",{className:"ff_action_container",children:[g&&e(XO,{metaData:g,width:y?100-(C?.marginLeft??0):250-(C?.marginLeft??0)}),l&&!a&&e(t,{children:m(C)})]})]})}),g?.message&&e("div",{className:"step-result",style:{width:`${b(1)}px`},children:e(K,{title:g?.message,placement:"bottom-start",children:e(F,{lineHeight:"18px",as:"div",className:"step-result-text",color:GO(g?.status),children:g?.message})})}),g?.status&&e("div",{className:"step-result",style:{width:`${b(2)}px`},children:e(cr,{label:KO(g?.status),status:YO(g?.status),children:g?.status})})]})},$O=i.memo(i.forwardRef(({tableMeta:t=[],tableData:r=[],noDataContent:i,height:o="100%",withFixedHeader:a=!1,headerType:s,handleDragStart:d,onDragEnd:u,editMode:f,editComponent:m,NlpComponent:C,AddNlp:g,handleAccordion:v,handleViewComponent:y,onSelectClick:w,loading:E=!1,isViewPrivilegeMode:M=!1,defaultExpanded:A="Steps",isHeaderRequired:x=!0,isClientSide:k=!1,highlightKey:L,onHighlightComplete:H,isDraggable:S=!0,isMaximize:_=!1,handleParentRowHover:V,handleParentRowHoverOut:O},N)=>{const[T,I]=c(null),[D,Z]=c(null),[j,R]=c({}),[B,P]=c(new Map),[U,q]=c(!1),W=p((e,t)=>{const n=r.find(t=>t.title===e);n&&n.data&&0!==n.data.length&&R(n=>({...n,[e]:"open"===t||!n[e]}))},[r]),Q=h(()=>e=>j[e]??!1,[j]),K=p(e=>{Z(t=>t===e?.stepId?null:e?.stepId)},[]),Y=p(e=>{K(e);const t=y?.(e,K);t?I(()=>t):K(null)},[y,K]),[X,J]=c(Object.fromEntries(r.map(e=>[e.title,new Set]))),[$,ee]=c(new Set);l(()=>{if(J(e=>function(e,t){const n={};return e.forEach(e=>{const r=e.data.map(e=>e.stepId),i=t[e.title]||new Set,o=new Set([...i].filter(e=>r.includes(e)));n[e.title]=o}),n}(r,e)),ee(e=>function(e,t){const n=e.reduce((e,t)=>(t.data.forEach(t=>e.add(t.stepId)),e),new Set);return new Set([...t].filter(e=>n.has(e)))}(r,e)),R(e=>function(e,t,n){const r={Steps:"Steps",Depends:"Depends on Scripts",PRE:"Pre Conditions",POST:"Post Conditions"},i={};return e.forEach(e=>{const o=e.title,a=o in t,l="All"===n?Object.values(r).includes(o):o===r[n];i[o]=a?t[o]??!1:l}),i}(r,e,A)),X&&!QO(X))return;const{updateSelectRow:e,updateStepPartialSelect:t}=((e,t,n)=>{const r=qO(e),i=new Set(t.Steps),o=new Set(n);return r?.forEach(e=>{const t=e?.childIds;if(0===t?.length)return;const n=t.every(e=>i.has(e)),a=t.some(e=>i.has(e));if(n?(i.add(e.start.stepId),i.add(e.end.stepId)):(i.delete(e.start.stepId),i.delete(e.end.stepId)),PO(e?.start)&&(a||n)){const t=e?.start?.conditionSearchKey,n=WO(t),a=r?.get(n)?.allIds;if(0===a?.length)return;a?.forEach(e=>{i.add(e),o.delete(e)})}a&&!n?(o.add(e.start.stepId),o.add(e.end.stepId)):(o.delete(e.start.stepId),o.delete(e.end.stepId))}),{updateSelectRow:{...t,Steps:i},updateStepPartialSelect:o}})(r,X,$);t&&ee(t),e&&J(e)},[r]),l(()=>{if(QO(X)){const e={...X,partialSelected:$};w?.(e)}else w?.(X)},[X]);const te=p((e,t)=>{const n=r.find(t=>t.title===e)?.data.map(e=>e.stepId);n&&(J(r=>({...r,[e]:t?new Set(n):new Set})),t||ee(new Set))},[r]),ne=p((e,t,n,r)=>{const{updateSelectRow:i,updateStepPartialSelect:o}=((e,t,n,r,i,o="Steps")=>{const a=new Set(r[o]);if("Steps"===o&&(t?.isSpecialNlp||t?.conditionId||t?.parentSpecialNlpId)){const{updateStepPartialSelect:l}=function(r){const o=new Set(i),l=qO(e),s=e=>{const t=e?.conditionSearchKey,n=WO(t),r=l.get(n);r&&"IfCondition"===r.start.nlpName&&0===r?.start?.marginLeft&&c(r.start),!r?.start?.conditionSearchKey?.includes("/")||"IfCondition"===r?.start.nlpName&&0===r?.start?.marginLeft||s(r.start)},c=e=>{if(e?.isSpecialNlp){const t=e?.specialNlpId||e?.conditionSearchKey,r=t&&l.get(t);r&&Array.isArray(r.allIds)&&r.allIds.forEach(e=>{o.delete(e),n?a.add(e):a.delete(e)})}else n?a.add(e?.stepId):a.delete(e?.stepId)},d=e=>{let c=!0;const d=e=>{const t=e?.childIds;if(PO(e?.start)){const t=(e=>e.includes("/")&&e.split("/")[0]||e)(e?.start?.conditionSearchKey),o=l.get(t),a=o?.start?.stepId,c=i.has(a);n&&!c&&s(r)}if(0===t?.length)return;const u=t.every(e=>a.has(e)),f=t.some(e=>a.has(e));if(u?(a.add(e.start?.stepId),a.add(e.end?.stepId)):(a.delete(e.start?.stepId),a.delete(e.end?.stepId)),f&&!u?(o.add(e.start?.stepId),o.add(e.end?.stepId)):(o.delete(e.start?.stepId),o.delete(e.end?.stepId)),e?.start?.parentSpecialNlpId){const t=l.get(e.start.parentSpecialNlpId);t&&d(t)}if(e?.start?.conditionSearchKey){const t=WO(e?.start?.conditionSearchKey),n=e?.start?.conditionSearchKey,r=e?.start?.conditionId;if(n===r&&c){c=!1;const e=l.get(t);return void(e&&d(e))}if(n===r)return;const i=l.get(t);return void(i&&d(i))}};if(e?.conditionSearchKey===e?.conditionId&&!e?.parentSpecialNlpId&&e?.specialNlpId){const t=l.get(e?.conditionSearchKey);return void(t&&d(t))}if(e?.conditionSearchKey||e?.conditionId||!e?.specialNlpId||e?.parentSpecialNlpId){if(e?.conditionSearchKey&&e?.conditionSearchKey===e?.conditionId&&e?.conditionId&&e?.specialNlpId){const t=l.get(e?.conditionSearchKey);t&&d(t)}if(e?.parentSpecialNlpId){const t=l.get(e?.parentSpecialNlpId);t&&d(t)}if(e?.conditionSearchKey){const r=l.get(e?.conditionSearchKey).childIds;let i=0;r.forEach(e=>{a.has(e)&&i++});const s=i>0&&i<r.length,u=0===i,f=e?.conditionSearchKey;if(!f.includes("/")&&f&&!n&&!s&&u){const t=e?.conditionId;let n=[];if(l&&t)for(const[e,r]of l.entries())e.includes(t)&&e.includes("/")&&n.push(r);n.forEach(e=>{["ElseIfCondition","ElseCondition"].includes(e.start?.nlpName)&&(e.childIds?.forEach(e=>{a.delete(e),o.delete(e)}),a.delete(e.start.stepId),a.delete(e.end.stepId),o.delete(e.start.stepId),o.delete(e.end.stepId))})}const h=!t?.isSpecialNlp||PO(e)||t?.specialNlpId?e.conditionSearchKey:WO(e.conditionSearchKey);c=!0;const p=l.get(h);p&&d(p)}}};return c(r),d(r),{updateStepPartialSelect:o}}(t);return{updateSelectRow:{...r,[o]:a},updateStepPartialSelect:l}}return n?a.add(t.stepId):a.delete(t.stepId),{updateSelectRow:{...r,[o]:a}}})(e,t,n,X,$,r);o&&ee(o),i&&J(i)},[X,$]),re=p((e,t,n)=>{ne(r,t,n,e)},[r,ne]),ie=p((e,t)=>{const n=t>0&&X[e]?.size===t;return e.includes("Script")&&q(n),n},[X]),oe=p((e,t)=>{const n=X[e]?.size||0;return n>0&&n<t},[X]),ae=p(e=>B.has(e),[B]),le=p(e=>{ae(e?.stepId)||(D&&K(null),v?.(e)),E||P(t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n})},[ae,D,K,v,E]),se=p(n=>"Steps"!==n.title||M?e(BO,{onHighlightComplete:H,highlightKey:L,draggable:!1,editMode:f,withCheckbox:!M,editComponent:m,columns:t,data:n.data,headerType:s,noDataContent:i,tableType:n.title,onSelect:re,selectedRows:X,viewModeId:D,ViewComponent:T,handleClick:Y,handleStepGroupExpand:le,isStepGroupExpanded:ae,isViewPrivilegeMode:M,height:n?.data?.length<=15?"auto":o,isClientSide:k}):e(BO,{onHighlightComplete:H,highlightKey:L,draggable:S,columns:t,onDragEnd:u,data:n.data,headerType:s,withCheckbox:!0,editMode:f,editComponent:m,noDataContent:i,NlpComponent:C,AddNlp:g,tableType:n.title,handleDragStart:()=>{B.clear(),d?.()},onSelect:re,selectedRows:X,viewModeId:D,ViewComponent:T,handleClick:Y,handleStepGroupExpand:le,isStepGroupExpanded:ae,stepPartialSelect:$,height:0===n?.data?.length?"300px":n?.data?.length<=12?"auto":o,isClientSide:k,handleRowHover:V,handleRowHoverOut:O}),[M,H,L,S,t,u,s,f,m,i,C,g,B,d,re,X,D,T,Y,le,ae,$,r.length,o,k]);return b(N,()=>({resetSelection:()=>{J(Object.fromEntries(r.map(e=>[e.title,new Set]))),ee(new Set)},handleUpdateCheckbox:(e,t)=>{const n=e?.parentSpecialNlpId,i=e?.conditionSearchKey;(n||i)&&ne(t||r,e,!1)},deleteRow:e=>{J(t=>Object.fromEntries(Object.entries(t)?.map(([t,n])=>[t,new Set([...n].filter(t=>t!==e?.stepId))])))},resetStepGroupAccordion:()=>{P(new Map)}}),[r,ne]),l(()=>{G(g)||(I(()=>null),Z(null),"addLast"===g?.action&&W("Steps","open"))},[g]),n("div",{className:z("ff-accordion-table-container-steps",{"ff-accordion-fixed-header-table":a}),children:[x&&!k&&e("table",{cellSpacing:0,className:z("ff-accordion-table",{"ff-accordion-fixed-header":a}),children:e("thead",{className:"table-thead",children:e("tr",{className:"ff-table-row",children:t.map((t,n)=>e("th",{style:{width:t?.width},className:z("ff-table-header",s&&`ff-accordion-table--${s}-bg`),children:e(F,{as:"div",fontWeight:"semi-bold",lineHeight:"18px",color:"var(--drawer-title-color)",children:t.header})},`${t.header}-${n}`))})})}),e("div",{className:"ff-accordion-table-body",style:{height:o,overflowY:"auto"},children:r?.map(r=>{const{title:i,data:o,actionCell:a,metaData:l}=r,s=o.length,c=Q(i),d=X[i]?.size??0;return n("div",{className:"column-table-accordion",children:[e(JO,{isViewPrivilegeMode:M,onAccordionClick:W,showActionCell:d>0&&s>0&&a,handleMainCheckbox:te,isAllSelected:ie,isPartialSelected:oe,title:i,totalRows:s,expanded:c,metaData:l,actionCell:a,row:r,tableMeta:t,isHeaderRequired:x,isBulkEnable:U,isClientSide:k,isMaximize:_}),c&&se(r)]},i)})})]})}));$O.displayName="StepLandingTable";var ez,tz,nz,rz,iz,oz,az,lz,sz,cz,dz,uz,fz,hz,pz,mz,Cz,gz,vz,yz,wz,bz,Ez,Mz,Az,xz,kz,Lz,Hz,Sz,_z,Vz,Oz,zz,Nz,Tz,Iz,Dz,Zz,jz,Rz,Bz,Pz,Fz,Uz,qz,Wz,Qz,Gz,Kz,Yz,Xz,Jz,$z,eN,tN,nN,rN,iN,oN,aN,lN,sN,cN,dN,uN,fN,hN,pN,mN,CN,gN,vN,yN,wN,bN,EN,MN,AN,xN,kN,LN,HN,SN,_N,VN,ON,zN,NN,TN,IN,DN={exports:{}};function ZN(){return ez||(ez=1,DN.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:Q(e)}function r(e){return l(e)?e:G(e)}function i(e){return s(e)?e:K(e)}function o(e){return a(e)&&!c(e)?e:Y(e)}function a(e){return!(!e||!e[u])}function l(e){return!(!e||!e[f])}function s(e){return!(!e||!e[h])}function c(e){return l(e)||s(e)}function d(e){return!(!e||!e[p])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=l,n.isIndexed=s,n.isAssociative=c,n.isOrdered=d,n.Keyed=r,n.Indexed=i,n.Set=o;var u="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",m="delete",C=5,g=1<<C,v=g-1,y={},w={value:!1},b={value:!1};function E(e){return e.value=!1,e}function M(e){e&&(e.value=!0)}function A(){}function x(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(H)),e.size}function L(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function H(){return!0}function S(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function _(e,t){return O(e,t,0)}function V(e,t){return O(e,t,t)}function O(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var z=0,N=1,T=2,I="function"==typeof Symbol&&Symbol.iterator,D="@@iterator",Z=I||D;function j(e){this.next=e}function R(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function B(){return{value:void 0,done:!0}}function P(e){return!!q(e)}function F(e){return e&&"function"==typeof e.next}function U(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(I&&e[I]||e[D]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function Q(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function K(e){return null==e?ae():a(e)?l(e)?e.entrySeq():e.toIndexedSeq():se(e)}function Y(e){return(null==e?ae():a(e)?l(e)?e.entrySeq():e:se(e)).toSetSeq()}j.prototype.toString=function(){return"[Iterator]"},j.KEYS=z,j.VALUES=N,j.ENTRIES=T,j.prototype.inspect=j.prototype.toSource=function(){return this.toString()},j.prototype[Z]=function(){return this},t(Q,n),Q.of=function(){return Q(arguments)},Q.prototype.toSeq=function(){return this},Q.prototype.toString=function(){return this.__toString("Seq {","}")},Q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Q.prototype.__iterate=function(e,t){return ue(this,e,t,!0)},Q.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(G,Q),G.prototype.toKeyedSeq=function(){return this},t(K,Q),K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(e,t){return ue(this,e,t,!1)},K.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Y,Q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Q.isSeq=oe,Q.Keyed=G,Q.Set=Y,Q.Indexed=K;var X,J,$,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ie(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():F(e)?new ie(e).fromEntrySeq():P(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=de(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=de(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function de(e){return W(e)?new te(e):F(e)?new ie(e):P(e)?new re(e):void 0}function ue(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var l=i[n?o-a:a];if(!1===t(l[1],r?l[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new j(function(){var e=i[n?o-a:a];return a++>o?B():R(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function he(e,t){return t?pe(t,e,"",{"":e}):me(e)}function pe(e,t,n,r){return Array.isArray(t)?e.call(r,n,K(t).map(function(n,r){return pe(e,n,r,t)})):Ce(t)?e.call(r,n,G(t).map(function(n,r){return pe(e,n,r,t)})):t}function me(e){return Array.isArray(e)?K(e).map(me).toList():Ce(e)?G(e).map(me).toMap():e}function Ce(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ge(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ve(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||s(e)!==s(t)||d(e)!==d(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(d(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&ge(i[1],e)&&(n||ge(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var u=!0,f=t.__iterate(function(t,r){if(n?!e.has(t):i?!ge(t,e.get(r,y)):!ge(e.get(r,y),t))return u=!1,!1});return u&&e.size===f}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function be(e,t,n){if(!(this instanceof be))return new be(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if($)return $;$=this}}function Ee(){throw TypeError("Abstract")}function Me(){}function Ae(){}function xe(){}Q.prototype[ee]=!0,t(te,K),te.prototype.get=function(e,t){return this.has(e)?this._array[L(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new j(function(){return i>r?B():R(e,i,n[t?r-i++:i++])})},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new j(function(){var a=r[t?i-o:o];return o++>i?B():R(e,a,n[a])})},ne.prototype[p]=!0,t(re,K),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=U(this._iterable),r=0;if(F(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=U(this._iterable);if(!F(n))return new j(B);var r=0;return new j(function(){var t=n.next();return t.done?t:R(e,r++,t.value)})},t(ie,K),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(n=r.next()).done;){var a=n.value;if(i[o]=a,!1===e(a,o++,this))break}return o},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new j(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return R(e,i,r[i++])})},t(ye,K),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return ge(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:new ye(this._value,V(t,n)-_(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return ge(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return ge(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new j(function(){return r<n.size?R(e,r++,n._value):B()})},ye.prototype.equals=function(e){return e instanceof ye?ge(this._value,e._value):ve(e)},t(be,K),be.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},be.prototype.get=function(e,t){return this.has(e)?this._start+L(this,e)*this._step:t},be.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},be.prototype.slice=function(e,t){return S(e,t,this.size)?this:(e=_(e,this.size),(t=V(t,this.size))<=e?new be(0,0):new be(this.get(e,this._end),this.get(t,this._end),this._step))},be.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},be.prototype.lastIndexOf=function(e){return this.indexOf(e)},be.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(i,o,this))return o+1;i+=t?-r:r}return o},be.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new j(function(){var a=i;return i+=t?-r:r,o>n?B():R(e,o++,a)})},be.prototype.equals=function(e){return e instanceof be?this._start===e._start&&this._end===e._end&&this._step===e._step:ve(this,e)},t(Ee,n),t(Me,Ee),t(Ae,Ee),t(xe,Ee),Ee.Keyed=Me,Ee.Indexed=Ae,Ee.Set=xe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Le(e){return e>>>1&1073741824|3221225471&e}function He(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Le(n)}if("string"===t)return e.length>je?Se(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Ve(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Se(e){var t=Pe[e];return void 0===t&&(t=_e(e),Be===Re&&(Be=0,Pe={}),Be++,Pe[e]=t),t}function _e(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Le(t)}function Ve(e){var t;if(Ie&&void 0!==(t=Te.get(e)))return t;if(void 0!==(t=e[Ze]))return t;if(!ze){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ze]))return t;if(void 0!==(t=Ne(e)))return t}if(t=++De,1073741824&De&&(De=0),Ie)Te.set(e,t);else{if(void 0!==Oe&&!1===Oe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ze)Object.defineProperty(e,Ze,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ze]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ze]=t}}return t}var Oe=Object.isExtensible,ze=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Ne(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Te,Ie="function"==typeof WeakMap;Ie&&(Te=new WeakMap);var De=0,Ze="__immutablehash__";"function"==typeof Symbol&&(Ze=Symbol(Ze));var je=16,Re=255,Be=0,Pe={};function Fe(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ue(e){return null==e?it():qe(e)&&!d(e)?e:it().withMutations(function(t){var n=r(e);Fe(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function qe(e){return!(!e||!e[Qe])}t(Ue,Me),Ue.prototype.toString=function(){return this.__toString("Map {","}")},Ue.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ue.prototype.set=function(e,t){return ot(this,e,t)},Ue.prototype.setIn=function(e,t){return this.updateIn(e,y,function(){return t})},Ue.prototype.remove=function(e){return ot(this,e,y)},Ue.prototype.deleteIn=function(e){return this.updateIn(e,function(){return y})},Ue.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ue.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Ct(this,En(e),t,n);return r===y?void 0:r},Ue.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):it()},Ue.prototype.merge=function(){return ft(this,void 0,arguments)},Ue.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},Ue.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,it(),function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]})},Ue.prototype.mergeDeep=function(){return ft(this,ht,arguments)},Ue.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,pt(t),n)},Ue.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,it(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]})},Ue.prototype.sort=function(e){return Pt(un(this,e))},Ue.prototype.sortBy=function(e,t){return Pt(un(this,t,e))},Ue.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ue.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new A)},Ue.prototype.asImmutable=function(){return this.__ensureOwner()},Ue.prototype.wasAltered=function(){return this.__altered},Ue.prototype.__iterator=function(e,t){return new et(this,e,t)},Ue.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},Ue.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ue.isMap=qe;var We,Qe="@@__IMMUTABLE_MAP__@@",Ge=Ue.prototype;function Ke(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return R(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var i=Object.create(Ge);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function it(){return We||(We=rt(0))}function ot(e,t,n){var r,i;if(e._root){var o=E(w),a=E(b);if(r=at(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===y?-1:1:0)}else{if(n===y)return e;i=1,r=new Ke(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(i,r):it()}function at(e,t,n,r,i,o,a,l){return e?e.update(t,n,r,i,o,a,l):o===y?e:(M(l),M(a),new $e(t,r,[i,o]))}function lt(e){return e.constructor===$e||e.constructor===Je}function st(e,t,n,r,i){if(e.keyHash===r)return new Je(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&v,l=(0===n?r:r>>>n)&v;return new Ye(t,1<<a|1<<l,a===l?[st(e,t,n+C,r,i)]:(o=new $e(t,r,i),a<l?[e,o]:[o,e]))}function ct(e,t,n,r){e||(e=new A);for(var i=new $e(e,He(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}function dt(e,t,n,r){for(var i=0,o=0,a=new Array(n),l=0,s=1,c=t.length;l<c;l++,s<<=1){var d=t[l];void 0!==d&&l!==r&&(i|=s,a[o++]=d)}return new Ye(e,i,a)}function ut(e,t,n,r,i){for(var o=0,a=new Array(g),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[o++]:void 0;return a[r]=i,new Xe(e,o+1,a)}function ft(e,t,n){for(var i=[],o=0;o<n.length;o++){var l=n[o],s=r(l);a(l)||(s=s.map(function(e){return he(e)})),i.push(s)}return mt(e,t,i)}function ht(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ge(e,t)?e:t}function pt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return ge(t,i)?t:i}}function mt(e,t,n){return n=n.filter(function(e){return 0!==e.size}),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,y,function(e){return e===y?n:t(e,n,r)})}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)}):e.constructor(n[0])}function Ct(e,t,n,r){var i=e===y,o=t.next();if(o.done){var a=i?n:e,l=r(a);return l===a?e:l}we(i||e&&e.set,"invalid keyPath");var s=o.value,c=i?y:e.get(s,y),d=Ct(c,t,n,r);return d===c?e:d===y?e.remove(s):(i?it():e).set(s,d)}function gt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function vt(e,t,n,r){var i=r?e:x(e);return i[t]=n,i}function yt(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,l=0;l<i;l++)l===t?(o[l]=n,a=-1):o[l]=e[l+a];return o}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}Ge[Qe]=!0,Ge[m]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ke.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ge(n,i[o][0]))return i[o][1];return r},Ke.prototype.update=function(e,t,n,r,i,o,a){for(var l=i===y,s=this.entries,c=0,d=s.length;c<d&&!ge(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(M(a),(l||!u)&&M(o),!l||1!==s.length){if(!u&&!l&&s.length>=bt)return ct(e,s,r,i);var f=e&&e===this.ownerID,h=f?s:x(s);return u?l?c===d-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new Ke(e,h)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=He(n));var i=1<<((0===e?t:t>>>e)&v),o=this.bitmap;return 0===(o&i)?r:this.nodes[gt(o&i-1)].get(e+C,t,n,r)},Ye.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=He(r));var l=(0===t?n:n>>>t)&v,s=1<<l,c=this.bitmap,d=0!==(c&s);if(!d&&i===y)return this;var u=gt(c&s-1),f=this.nodes,h=d?f[u]:void 0,p=at(h,e,t+C,n,r,i,o,a);if(p===h)return this;if(!d&&p&&f.length>=Et)return ut(e,f,c,l,p);if(d&&!p&&2===f.length&&lt(f[1^u]))return f[1^u];if(d&&p&&1===f.length&&lt(p))return p;var m=e&&e===this.ownerID,g=d?p?c:c^s:c|s,w=d?p?vt(f,u,p,m):wt(f,u,m):yt(f,u,p,m);return m?(this.bitmap=g,this.nodes=w,this):new Ye(e,g,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=He(n));var i=(0===e?t:t>>>e)&v,o=this.nodes[i];return o?o.get(e+C,t,n,r):r},Xe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=He(r));var l=(0===t?n:n>>>t)&v,s=i===y,c=this.nodes,d=c[l];if(s&&!d)return this;var u=at(d,e,t+C,n,r,i,o,a);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<Mt)return dt(e,c,f,l)}else f++;var h=e&&e===this.ownerID,p=vt(c,l,u,h);return h?(this.count=f,this.nodes=p,this):new Xe(e,f,p)},Je.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ge(n,i[o][0]))return i[o][1];return r},Je.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=He(r));var l=i===y;if(n!==this.keyHash)return l?this:(M(a),M(o),st(this,e,t,n,[r,i]));for(var s=this.entries,c=0,d=s.length;c<d&&!ge(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(M(a),(l||!u)&&M(o),l&&2===d)return new $e(e,this.keyHash,s[1^c]);var f=e&&e===this.ownerID,h=f?s:x(s);return u?l?c===d-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new Je(e,this.keyHash,h)},$e.prototype.get=function(e,t,n,r){return ge(n,this.entry[0])?this.entry[1]:r},$e.prototype.update=function(e,t,n,r,i,o,a){var l=i===y,s=ge(r,this.entry[0]);return(s?i===this.entry[1]:l)?this:(M(a),l?void M(o):s?e&&e===this.ownerID?(this.entry[1]=i,this):new $e(e,this.keyHash,[r,i]):(M(o),st(this,e,t,He(r),[r,i])))},Ke.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},$e.prototype.iterate=function(e,t){return e(this.entry)},t(et,j),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return tt(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return tt(e,o.entry);t=this._stack=nt(o,t)}continue}t=this._stack=this._stack.__prev}return B()};var bt=g/4,Et=g/2,Mt=g/4;function At(e){var t=Nt();if(null==e)return t;if(xt(e))return e;var n=i(e),r=n.size;return 0===r?t:(Fe(r),r>0&&r<g?zt(0,r,C,null,new Ht(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}function xt(e){return!(!e||!e[kt])}t(At,Ae),At.of=function(){return this(arguments)},At.prototype.toString=function(){return this.__toString("List [","]")},At.prototype.get=function(e,t){if((e=L(this,e))>=0&&e<this.size){var n=Zt(this,e+=this._origin);return n&&n.array[e&v]}return t},At.prototype.set=function(e,t){return Tt(this,e,t)},At.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},At.prototype.insert=function(e,t){return this.splice(e,0,t)},At.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=C,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Nt()},At.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){jt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},At.prototype.pop=function(){return jt(this,0,-1)},At.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){jt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},At.prototype.shift=function(){return jt(this,1)},At.prototype.merge=function(){return Rt(this,void 0,arguments)},At.prototype.mergeWith=function(t){return Rt(this,t,e.call(arguments,1))},At.prototype.mergeDeep=function(){return Rt(this,ht,arguments)},At.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Rt(this,pt(t),n)},At.prototype.setSize=function(e){return jt(this,0,e)},At.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:jt(this,_(e,n),V(t,n))},At.prototype.__iterator=function(e,t){var n=0,r=Ot(this,t);return new j(function(){var t=r();return t===Vt?B():R(e,n++,t)})},At.prototype.__iterate=function(e,t){for(var n,r=0,i=Ot(this,t);(n=i())!==Vt&&!1!==e(n,r++,this););return r},At.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?zt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},At.isList=xt;var kt="@@__IMMUTABLE_LIST__@@",Lt=At.prototype;function Ht(e,t){this.array=e,this.ownerID=t}Lt[kt]=!0,Lt[m]=Lt.remove,Lt.setIn=Ge.setIn,Lt.deleteIn=Lt.removeIn=Ge.removeIn,Lt.update=Ge.update,Lt.updateIn=Ge.updateIn,Lt.mergeIn=Ge.mergeIn,Lt.mergeDeepIn=Ge.mergeDeepIn,Lt.withMutations=Ge.withMutations,Lt.asMutable=Ge.asMutable,Lt.asImmutable=Ge.asImmutable,Lt.wasAltered=Ge.wasAltered,Ht.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&v;if(r>=this.array.length)return new Ht([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-C,n))===a&&o)return this}if(o&&!i)return this;var l=Dt(this,e);if(!o)for(var s=0;s<r;s++)l.array[s]=void 0;return i&&(l.array[r]=i),l},Ht.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&v;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-C,n))===o&&i===this.array.length-1)return this}var a=Dt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var St,_t,Vt={};function Ot(e,t){var n=e._origin,r=e._capacity,i=Bt(r),o=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?l(e,n):s(e,t,n)}function l(e,a){var l=a===i?o&&o.array:e&&e.array,s=a>n?0:n-a,c=r-a;return c>g&&(c=g),function(){if(s===c)return Vt;var e=t?--c:s++;return l&&l[e]}}function s(e,i,o){var l,s=e&&e.array,c=o>n?0:n-o>>i,d=1+(r-o>>i);return d>g&&(d=g),function(){for(;;){if(l){var e=l();if(e!==Vt)return e;l=null}if(c===d)return Vt;var n=t?--d:c++;l=a(s&&s[n],i-C,o+(n<<i))}}}}function zt(e,t,n,r,i,o,a){var l=Object.create(Lt);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=i,l.__ownerID=o,l.__hash=a,l.__altered=!1,l}function Nt(){return St||(St=zt(0,0,C))}function Tt(e,t,n){if((t=L(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?jt(e,t).set(0,n):jt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=E(b);return t>=Bt(e._capacity)?r=It(r,e.__ownerID,0,t,n,o):i=It(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):zt(e._origin,e._capacity,e._level,i,r):e}function It(e,t,n,r,i,o){var a,l=r>>>n&v,s=e&&l<e.array.length;if(!s&&void 0===i)return e;if(n>0){var c=e&&e.array[l],d=It(c,t,n-C,r,i,o);return d===c?e:((a=Dt(e,t)).array[l]=d,a)}return s&&e.array[l]===i?e:(M(o),a=Dt(e,t),void 0===i&&l===a.array.length-1?a.array.pop():a.array[l]=i,a)}function Dt(e,t){return t&&e&&t===e.ownerID?e:new Ht(e?e.array.slice():[],t)}function Zt(e,t){if(t>=Bt(e._capacity))return e._tail;if(t<1<<e._level+C){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=C;return n}}function jt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new A,i=e._origin,o=e._capacity,a=i+t,l=void 0===n?o:n<0?o+n:i+n;if(a===i&&l===o)return e;if(a>=l)return e.clear();for(var s=e._level,c=e._root,d=0;a+d<0;)c=new Ht(c&&c.array.length?[void 0,c]:[],r),d+=1<<(s+=C);d&&(a+=d,i+=d,l+=d,o+=d);for(var u=Bt(o),f=Bt(l);f>=1<<s+C;)c=new Ht(c&&c.array.length?[c]:[],r),s+=C;var h=e._tail,p=f<u?Zt(e,l-1):f>u?new Ht([],r):h;if(h&&f>u&&a<o&&h.array.length){for(var m=c=Dt(c,r),g=s;g>C;g-=C){var y=u>>>g&v;m=m.array[y]=Dt(m.array[y],r)}m.array[u>>>C&v]=h}if(l<o&&(p=p&&p.removeAfter(r,0,l)),a>=f)a-=f,l-=f,s=C,c=null,p=p&&p.removeBefore(r,0,a);else if(a>i||f<u){for(d=0;c;){var w=a>>>s&v;if(w!==f>>>s&v)break;w&&(d+=(1<<s)*w),s-=C,c=c.array[w]}c&&a>i&&(c=c.removeBefore(r,s,a-d)),c&&f<u&&(c=c.removeAfter(r,s,f-d)),d&&(a-=d,l-=d)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=c,e._tail=p,e.__hash=void 0,e.__altered=!0,e):zt(a,l,s,c,p)}function Rt(e,t,n){for(var r=[],o=0,l=0;l<n.length;l++){var s=n[l],c=i(s);c.size>o&&(o=c.size),a(s)||(c=c.map(function(e){return he(e)})),r.push(c)}return o>e.size&&(e=e.setSize(o)),mt(e,t,r)}function Bt(e){return e<g?0:e-1>>>C<<C}function Pt(e){return null==e?qt():Ft(e)?e:qt().withMutations(function(t){var n=r(e);Fe(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Ft(e){return qe(e)&&d(e)}function Ut(e,t,n,r){var i=Object.create(Pt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function qt(){return _t||(_t=Ut(it(),Nt()))}function Wt(e,t,n){var r,i,o=e._map,a=e._list,l=o.get(t),s=void 0!==l;if(n===y){if(!s)return e;a.size>=g&&a.size>=2*o.size?(r=(i=a.filter(function(e,t){return void 0!==e&&l!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=o,i=a.set(l,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Ut(r,i)}function Qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=yn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===T){var r=e.__iterator(t,n);return new j(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===N?z:N,n)},t}function Jt(e,t,n){var r=yn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,y);return o===y?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(T,i);return new j(function(){var i=o.next();if(i.done)return i;var a=i.value,l=a[0];return R(r,l,t.call(n,a[1],l,e),i)})},r}function $t(e,t){var n=yn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var i=yn(e);return r&&(i.has=function(r){var i=e.get(r,y);return i!==y&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,y);return o!==y&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,l=0;return e.__iterate(function(e,o,s){if(t.call(n,e,o,s))return l++,i(e,r?o:l-1,a)},o),l},i.__iteratorUncached=function(i,o){var a=e.__iterator(T,o),l=0;return new j(function(){for(;;){var o=a.next();if(o.done)return o;var s=o.value,c=s[0],d=s[1];if(t.call(n,d,c,e))return R(i,r?c:l++,d,o)}})},i}function tn(e,t,n){var r=Ue().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function nn(e,t,n){var r=l(e),i=(d(e)?Pt():Ue()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=vn(e);return i.map(function(t){return mn(e,o(t))})}function rn(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),S(t,n,i))return e;var o=_(t,i),a=V(n,i);if(o!=o||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var l,s=a-o;s==s&&(l=s<0?0:s);var c=yn(e);return c.size=0===l?l:e.size&&l||void 0,!r&&oe(e)&&l>=0&&(c.get=function(t,n){return(t=L(this,t))>=0&&t<l?e.get(t+o,n):n}),c.__iterateUncached=function(t,n){var i=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,c=0;return e.__iterate(function(e,n){if(!s||!(s=a++<o))return c++,!1!==t(e,r?n:c-1,i)&&c!==l}),c},c.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var i=0!==l&&e.__iterator(t,n),a=0,s=0;return new j(function(){for(;a++<o;)i.next();if(++s>l)return B();var e=i.next();return r||t===N?e:R(t,s-1,t===z?void 0:e.value[1],e)})},c}function on(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,l){return t.call(n,e,i,l)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(T,i),l=!0;return new j(function(){if(!l)return B();var e=a.next();if(e.done)return e;var i=e.value,s=i[0],c=i[1];return t.call(n,c,s,o)?r===T?e:R(r,s,c,e):(l=!1,B())})},r}function an(e,t,n,r){var i=yn(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var l=!0,s=0;return e.__iterate(function(e,o,c){if(!l||!(l=t.call(n,e,o,c)))return s++,i(e,r?o:s-1,a)}),s},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var l=e.__iterator(T,o),s=!0,c=0;return new j(function(){var e,o,d;do{if((e=l.next()).done)return r||i===N?e:R(i,c++,i===z?void 0:e.value[1],e);var u=e.value;o=u[0],d=u[1],s&&(s=t.call(n,d,o,a))}while(s);return i===T?e:R(i,o,d,e)})},i}function ln(e,t){var n=l(e),i=[e].concat(t).map(function(e){return a(e)?n&&(e=r(e)):e=n?le(e):se(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&l(o)||s(e)&&s(o))return o}var c=new te(i);return n?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}function sn(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,i){var o=0,l=!1;function s(e,c){var d=this;e.__iterate(function(e,i){return(!t||c<t)&&a(e)?s(e,c+1):!1===r(e,n?i:o++,d)&&(l=!0),!l},i)}return s(e,0),o},r.__iteratorUncached=function(r,i){var o=e.__iterator(r,i),l=[],s=0;return new j(function(){for(;o;){var e=o.next();if(!1===e.done){var c=e.value;if(r===T&&(c=c[1]),t&&!(l.length<t)||!a(c))return n?e:R(r,s++,c,e);l.push(o),o=c.__iterator(r,i)}else o=l.pop()}return B()})},r}function cn(e,t,n){var r=vn(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}function dn(e,t){var n=yn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e,r){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(N,r),a=0;return new j(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?R(n,a++,t):R(n,a++,i.value,i)})},n}function un(e,t,n){t||(t=bn);var r=l(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?G(o):s(e)?K(o):Y(o)}function fn(e,t,n){if(t||(t=bn),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return hn(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return hn(t,e,n)?n:e})}function hn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function pn(e,t,r){var i=yn(e);return i.size=new te(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(N,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=n(e),U(i?e.reverse():e)}),a=0,l=!1;return new j(function(){var n;return l||(n=o.map(function(e){return e.next()}),l=n.some(function(e){return e.done})),l?B():R(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function mn(e,t){return oe(e)?t:e.constructor(t)}function Cn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function gn(e){return Fe(e.size),k(e)}function vn(e){return l(e)?r:s(e)?i:o}function yn(e){return Object.create((l(e)?G:s(e)?K:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function bn(e,t){return e>t?1:e<t?-1:0}function En(e){var t=U(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(n(e))}return t}function Mn(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);Ln(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Ue(o)},i=r.prototype=Object.create(An);return i.constructor=r,r}t(Pt,Ue),Pt.of=function(){return this(arguments)},Pt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Pt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qt()},Pt.prototype.set=function(e,t){return Wt(this,e,t)},Pt.prototype.remove=function(e){return Wt(this,e,y)},Pt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Pt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Pt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ut(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Pt.isOrderedMap=Ft,Pt.prototype[p]=!0,Pt.prototype[m]=Pt.prototype.remove,t(Qt,G),Qt.prototype.get=function(e,t){return this._iter.get(e,t)},Qt.prototype.has=function(e){return this._iter.has(e)},Qt.prototype.valueSeq=function(){return this._iter.valueSeq()},Qt.prototype.reverse=function(){var e=this,t=$t(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?gn(this):0,function(i){return e(i,t?--n:n++,r)}),t)},Qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(N,t),r=t?gn(this):0;return new j(function(){var i=n.next();return i.done?i:R(e,t?--r:r++,i.value,i)})},Qt.prototype[p]=!0,t(Gt,K),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t),r=0;return new j(function(){var t=n.next();return t.done?t:R(e,r++,t.value,t)})},t(Kt,Y),Kt.prototype.has=function(e){return this._iter.includes(e)},Kt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t);return new j(function(){var t=n.next();return t.done?t:R(e,t.value,t.value,t)})},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Cn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t);return new j(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Cn(r);var i=a(r);return R(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},Gt.prototype.cacheResult=Qt.prototype.cacheResult=Kt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Mn,Me),Mn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Mn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Mn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Mn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=xn(this,it()))},Mn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:xn(this,n)},Mn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:xn(this,t)},Mn.prototype.wasAltered=function(){return this._map.wasAltered()},Mn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},Mn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},Mn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?xn(this,t,e):(this.__ownerID=e,this._map=t,this)};var An=Mn.prototype;function xn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function Ln(e,t){try{t.forEach(Hn.bind(void 0,e))}catch(e){}}function Hn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Sn(e){return null==e?In():_n(e)&&!d(e)?e:In().withMutations(function(t){var n=o(e);Fe(n.size),n.forEach(function(e){return t.add(e)})})}function _n(e){return!(!e||!e[On])}An[m]=An.remove,An.deleteIn=An.removeIn=Ge.removeIn,An.merge=Ge.merge,An.mergeWith=Ge.mergeWith,An.mergeIn=Ge.mergeIn,An.mergeDeep=Ge.mergeDeep,An.mergeDeepWith=Ge.mergeDeepWith,An.mergeDeepIn=Ge.mergeDeepIn,An.setIn=Ge.setIn,An.update=Ge.update,An.updateIn=Ge.updateIn,An.withMutations=Ge.withMutations,An.asMutable=Ge.asMutable,An.asImmutable=Ge.asImmutable,t(Sn,xe),Sn.of=function(){return this(arguments)},Sn.fromKeys=function(e){return this(r(e).keySeq())},Sn.prototype.toString=function(){return this.__toString("Set {","}")},Sn.prototype.has=function(e){return this._map.has(e)},Sn.prototype.add=function(e){return Nn(this,this._map.set(e,!0))},Sn.prototype.remove=function(e){return Nn(this,this._map.remove(e))},Sn.prototype.clear=function(){return Nn(this,this._map.clear())},Sn.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter(function(e){return 0!==e.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)o(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Sn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return o(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.every(function(e){return e.includes(n)})||e.remove(n)})})},Sn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return o(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.some(function(e){return e.includes(n)})&&e.remove(n)})})},Sn.prototype.merge=function(){return this.union.apply(this,arguments)},Sn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Sn.prototype.sort=function(e){return Dn(un(this,e))},Sn.prototype.sortBy=function(e,t){return Dn(un(this,t,e))},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},Sn.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Sn.isSet=_n;var Vn,On="@@__IMMUTABLE_SET__@@",zn=Sn.prototype;function Nn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Tn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Vn||(Vn=Tn(it()))}function Dn(e){return null==e?Pn():Zn(e)?e:Pn().withMutations(function(t){var n=o(e);Fe(n.size),n.forEach(function(e){return t.add(e)})})}function Zn(e){return _n(e)&&d(e)}zn[On]=!0,zn[m]=zn.remove,zn.mergeDeep=zn.merge,zn.mergeDeepWith=zn.mergeWith,zn.withMutations=Ge.withMutations,zn.asMutable=Ge.asMutable,zn.asImmutable=Ge.asImmutable,zn.__empty=In,zn.__make=Tn,t(Dn,Sn),Dn.of=function(){return this(arguments)},Dn.fromKeys=function(e){return this(r(e).keySeq())},Dn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Dn.isOrderedSet=Zn;var jn,Rn=Dn.prototype;function Bn(e,t){var n=Object.create(Rn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Pn(){return jn||(jn=Bn(qt()))}function Fn(e){return null==e?Kn():Un(e)?e:Kn().unshiftAll(e)}function Un(e){return!(!e||!e[Wn])}Rn[p]=!0,Rn.__empty=Pn,Rn.__make=Bn,t(Fn,Ae),Fn.of=function(){return this(arguments)},Fn.prototype.toString=function(){return this.__toString("Stack [","]")},Fn.prototype.get=function(e,t){var n=this._head;for(e=L(this,e);n&&e--;)n=n.next;return n?n.value:t},Fn.prototype.peek=function(){return this._head&&this._head.value},Fn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Fn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Fe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Fn.prototype.pop=function(){return this.slice(1)},Fn.prototype.unshift=function(){return this.push.apply(this,arguments)},Fn.prototype.unshiftAll=function(e){return this.pushAll(e)},Fn.prototype.shift=function(){return this.pop.apply(this,arguments)},Fn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Kn()},Fn.prototype.slice=function(e,t){if(S(e,t,this.size))return this;var n=_(e,this.size);if(V(t,this.size)!==this.size)return Ae.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Gn(r,i)},Fn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Fn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Fn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new j(function(){if(r){var t=r.value;return r=r.next,R(e,n++,t)}return B()})},Fn.isStack=Un;var qn,Wn="@@__IMMUTABLE_STACK__@@",Qn=Fn.prototype;function Gn(e,t,n,r){var i=Object.create(Qn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Kn(){return qn||(qn=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Qn[Wn]=!0,Qn.withMutations=Ge.withMutations,Qn.asMutable=Ge.asMutable,Qn.asImmutable=Ge.asImmutable,Qn.wasAltered=Ge.wasAltered,n.Iterator=j,Yn(n,{toArray:function(){Fe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Qt(this,!0)},toMap:function(){return Ue(this.toKeyedSeq())},toObject:function(){Fe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Pt(this.toKeyedSeq())},toOrderedSet:function(){return Dn(l(this)?this.valueSeq():this)},toSet:function(){return Sn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Kt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Fn(l(this)?this.valueSeq():this)},toList:function(){return At(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return mn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return ge(t,e)})},entries:function(){return this.__iterator(T)},every:function(e,t){Fe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return mn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Fe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Fe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(z)},map:function(e,t){return mn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,i;return Fe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return mn(this,$t(this,!0))},slice:function(e,t){return mn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return mn(this,un(this,e))},values:function(){return this.__iterator(N)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ve(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(H)},flatMap:function(e,t){return mn(this,cn(this,e,t))},flatten:function(e){return mn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find(function(t,n){return ge(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=En(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,y):y)===y)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fn(this,e)},maxBy:function(e,t){return fn(this,t,e)},min:function(e){return fn(this,e?nr(e):or)},minBy:function(e,t){return fn(this,t?nr(t):or,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return mn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return mn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return mn(this,un(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return mn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return mn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[u]=!0,Xn[Z]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return mn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return ge(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return ge(t,e)})},mapEntries:function(e,t){var n=this,r=0;return mn(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return mn(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Jn=r.prototype;function $n(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function ir(){return x(arguments)}function or(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=d(e),n=l(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+sr(He(e),He(t))|0}:function(e,t){r=r+sr(He(e),He(t))|0}:t?function(e){r=31*r+He(e)|0}:function(e){r=r+He(e)|0});return lr(i,r)}function lr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Le((t=ke(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[f]=!0,Jn[Z]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(i,{toKeyedSeq:function(){return new Qt(this,!1)},filter:function(e,t){return mn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return mn(this,$t(this,!1))},slice:function(e,t){return mn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=_(e,e<0?this.count():this.size);var r=this.slice(0,e);return mn(this,1===n?r:r.concat(x(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return mn(this,sn(this,e,!1))},get:function(e,t){return(e=L(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=L(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return mn(this,dn(this,e))},interleave:function(){var e=[this].concat(x(arguments)),t=pn(this.toSeq(),K.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),mn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return mn(this,an(this,e,t,!1))},zip:function(){return mn(this,pn(this,ir,[this].concat(x(arguments))))},zipWith:function(e){var t=x(arguments);return t[0]=this,mn(this,pn(this,e,t))}}),i.prototype[h]=!0,i.prototype[p]=!0,Yn(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(K,i.prototype),Yn(Y,o.prototype),Yn(Me,r.prototype),Yn(Ae,i.prototype),Yn(xe,o.prototype);var cr={Iterable:n,Seq:Q,Collection:Ee,Map:Ue,OrderedMap:Pt,List:At,Stack:Fn,Set:Sn,OrderedSet:Dn,Record:Mn,Range:be,Repeat:ye,is:ge,fromJS:he};return cr}()),DN.exports}function jN(){if(nz)return tz;nz=1;var e=ZN().OrderedMap;return tz={createFromArray:function(t){return e(t.map(function(e){return[e.getKey(),e]}))}}}function RN(){if(iz)return rz;iz=1;var e=ZN(),t=e.Map,n=e.OrderedSet,r=e.Record,i=n(),o={style:i,entity:null},a=function(e){var r,o;function a(){return e.apply(this,arguments)||this}o=e,(r=a).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var c=a.prototype;return c.getStyle=function(){return this.get("style")},c.getEntity=function(){return this.get("entity")},c.hasStyle=function(e){return this.getStyle().includes(e)},a.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return a.create(n)},a.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return a.create(n)},a.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return a.create(n)},a.create=function(e){if(!e)return l;var n=t({style:i,entity:null}).merge(e),r=s.get(n);if(r)return r;var o=new a(n);return s=s.set(n,o),o},a.fromJS=function(e){var t=e.style,r=e.entity;return new a({style:Array.isArray(t)?n(t):t,entity:Array.isArray(r)?n(r):r})},a}(r(o)),l=new a,s=t([[t(o),l]]);return a.EMPTY=l,rz=a}function BN(){if(az)return oz;return az=1,oz=function(e,t,n,r){if(e.size){var i=0;e.reduce(function(e,o,a){return t(e,o)||(n(e)&&r(i,a),i=a),o}),n(e.last())&&r(i,e.count())}}}function PN(){if(sz)return lz;sz=1;var e=RN(),t=BN(),n=ZN(),r=n.List,i=n.Map,o=n.OrderedSet,a=n.Record,l=n.Repeat,s=o(),c=a({key:"",type:"unstyled",text:"",characterList:r(),depth:0,data:i()}),d=function(n){var i,o;function a(t){return n.call(this,function(t){if(!t)return t;var n=t.characterList,i=t.text;return i&&!n&&(t.characterList=r(l(e.EMPTY,i.length))),t}(t))||this}o=n,(i=a).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var c=a.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():s},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.findStyleRanges=function(e,n){t(this.getCharacterList(),u,e,n)},c.findEntityRanges=function(e,n){t(this.getCharacterList(),f,e,n)},a}(c);function u(e,t){return e.getStyle()===t.getStyle()}function f(e,t){return e.getEntity()===t.getEntity()}return lz=d}function FN(){if(dz)return cz;dz=1;var e=RN(),t=BN(),n=ZN(),r=n.List,i=n.Map,o=n.OrderedSet,a=n.Record,l=n.Repeat,s=o(),c={parent:null,characterList:r(),data:i(),depth:0,key:"",text:"",type:"unstyled",children:r(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},u=function(e,t){return e.getEntity()===t.getEntity()},f=function(n){var i,o;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return n.call(this,function(t){if(!t)return t;var n=t.characterList,i=t.text;return i&&!n&&(t.characterList=r(l(e.EMPTY,i.length))),t}(t))||this}o=n,(i=a).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var f=a.prototype;return f.getKey=function(){return this.get("key")},f.getType=function(){return this.get("type")},f.getText=function(){return this.get("text")},f.getCharacterList=function(){return this.get("characterList")},f.getLength=function(){return this.getText().length},f.getDepth=function(){return this.get("depth")},f.getData=function(){return this.get("data")},f.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():s},f.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},f.getChildKeys=function(){return this.get("children")},f.getParentKey=function(){return this.get("parent")},f.getPrevSiblingKey=function(){return this.get("prevSibling")},f.getNextSiblingKey=function(){return this.get("nextSibling")},f.findStyleRanges=function(e,n){t(this.getCharacterList(),d,e,n)},f.findEntityRanges=function(e,n){t(this.getCharacterList(),u,e,n)},a}(a(c));return cz=f}function UN(){if(Cz)return mz;Cz=1;var e=function(){if(pz)return hz;pz=1;var e=RN();return hz=function(t,n,r,i){for(var o=n,a=t.getCharacterList();o<r;)a=a.set(o,e.applyEntity(a.get(o),i)),o++;return t.set("characterList",a)}}(),t=ZN();return mz=function(n,r,i){var o=n.getBlockMap(),a=r.getStartKey(),l=r.getStartOffset(),s=r.getEndKey(),c=r.getEndOffset(),d=o.skipUntil(function(e,t){return t===a}).takeUntil(function(e,t){return t===s}).toOrderedMap().merge(t.OrderedMap([[s,o.get(s)]])).map(function(t,n){var r=n===a?l:0,o=n===s?c:t.getLength();return e(t,r,o,i)});return n.merge({blockMap:o.merge(d),selectionBefore:r,selectionAfter:r})},mz}function qN(){if(wz)return yz;wz=1;var e="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};return yz=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(e(n),!t){var a;if(void 0===n)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;(a=new Error(n.replace(/%s/g,function(){return String(i[l++])}))).name="Invariant Violation"}throw a.framesToPop=1,a}},yz}function WN(){if(Az)return Mz;Az=1;var e=vz?gz:(vz=1,gz={getRemovalRange:function(e,t,n,r,i){var o=n.split(" ");o=o.map(function(e,t){if("forward"===i){if(t>0)return" "+e}else if(t<o.length-1)return e+" ";return e});for(var a,l=r,s=null,c=null,d=0;d<o.length;d++){if(e<(a=l+o[d].length)&&l<t)null!==s||(s=l),c=a;else if(null!==s)break;l=a}var u=r+n.length,f=s===r,h=c===u;return(!f&&h||f&&!h)&&("forward"===i?c!==u&&c++:s!==r&&s--),{start:s,end:c}}}),t=function(){if(Ez)return bz;Ez=1;var e=qN();return bz=function(t,n){var r=[];return t.findEntityRanges(function(e){return e.getEntity()===n},function(e,t){r.push({start:e,end:t})}),r.length||("production"!==process.env.NODE_ENV?e(!1,"Entity key not found in this range."):e(!1)),r},bz}(),n=qN();function r(r,i,o,a,l,s,c){var d=o.getStartOffset(),u=o.getEndOffset(),f=r.__get(l).getMutability(),h=c?d:u;if("MUTABLE"===f)return o;var p=t(i,l).filter(function(e){return h<=e.end&&h>=e.start});1!=p.length&&("production"!==process.env.NODE_ENV?n(!1,"There should only be one entity range within this removal range."):n(!1));var m=p[0];if("IMMUTABLE"===f)return o.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});s||(c?u=m.end:d=m.start);var C=e.getRemovalRange(d,u,i.getText().slice(m.start,m.end),m.start,a);return o.merge({anchorOffset:C.start,focusOffset:C.end,isBackward:!1})}return Mz=function(e,t,n,i,o){var a=i.getStartOffset(),l=i.getEndOffset(),s=t.getEntityAt(a),c=n.getEntityAt(l-1);if(!s&&!c)return i;var d=i;if(s&&s===c)d=r(e,t,d,o,s,!0,!0);else if(s&&c){var u=r(e,t,d,o,s,!1,!0),f=r(e,n,d,o,c,!1,!1);d=d.merge({anchorOffset:u.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var h=r(e,t,d,o,s,!1,!0);d=d.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(c){var p=r(e,n,d,o,c,!1,!1);d=d.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return d}}function QN(){if(kz)return xz;kz=1;var e={},t=Math.pow(2,24);return xz=function(){for(var n;void 0===n||e.hasOwnProperty(n)||!isNaN(+n);)n=Math.floor(Math.random()*t).toString(32);return e[n]=!0,n},xz}function GN(){if(Hz)return Lz;Hz=1;var e=FN(),t=QN(),n=ZN().OrderedMap;return Lz=function(r){return r.first()instanceof e?function(e){var r,i={};return n(e.withMutations(function(e){e.forEach(function(n,o){var a=n.getKey(),l=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),d=n.getParentKey(),u=t();if(i[a]=u,l&&(e.get(l)?e.setIn([l,"prevSibling"],u):e.setIn([a,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],u):e.setIn([a,"prevSibling"],null)),d&&e.get(d)){var f=e.get(d).getChildKeys();e.setIn([d,"children"],f.set(f.indexOf(n.getKey()),u))}else e.setIn([a,"parent"],null),r&&(e.setIn([r.getKey(),"nextSibling"],u),e.setIn([a,"prevSibling"],i[r.getKey()])),r=e.get(a);c.forEach(function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([a,"children"],n.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[i[e.getKey()],e.set("key",i[e.getKey()])]}))}(r):function(e){return n(e.toArray().map(function(e){var n=t();return[n,e.set("key",n)]}))}(r)},Lz}function KN(){if(_z)return Sz;_z=1;var e=RN(),t=BN(),n=qN();function r(r,i,o){var a=i.getCharacterList(),l=o>0?a.get(o-1):void 0,s=o<a.count()?a.get(o):void 0,c=l?l.getEntity():void 0,d=s?s.getEntity():void 0;if(d&&d===c&&"MUTABLE"!==r.__get(d).getMutability()){for(var u,f=function(e,r,i){var o;return t(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===r},function(e,t){e<=i&&t>=i&&(o={start:e,end:t})}),"object"!=typeof o&&("production"!==process.env.NODE_ENV?n(!1,"Removal range must exist within character list."):n(!1)),o}(a,d,o),h=f.start,p=f.end;h<p;)u=a.get(h),a=a.set(h,e.applyEntity(u,null)),h++;return i.set("characterList",a)}return i}return Sz=function(e,t){var n=e.getBlockMap(),i=e.getEntityMap(),o={},a=t.getStartKey(),l=t.getStartOffset(),s=n.get(a),c=r(i,s,l);c!==s&&(o[a]=c);var d=t.getEndKey(),u=t.getEndOffset(),f=n.get(d);a===d&&(f=c);var h=r(i,f,u);return h!==f&&(o[d]=h),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}}function YN(){if(Oz)return Vz;Oz=1;var e=GN(),t=KN();return Vz=function(n,r){var i=r.getStartKey(),o=r.getStartOffset(),a=r.getEndKey(),l=r.getEndOffset(),s=t(n,r).getBlockMap(),c=s.keySeq(),d=c.indexOf(i),u=c.indexOf(a)+1;return e(s.slice(d,u).map(function(e,t){var n=e.getText(),r=e.getCharacterList();return i===a?e.merge({text:n.slice(o,l),characterList:r.slice(o,l)}):t===i?e.merge({text:n.slice(o),characterList:r.slice(o)}):t===a?e.merge({text:n.slice(0,l),characterList:r.slice(0,l)}):e}))}}function XN(){if(Nz)return zz;return Nz=1,zz=function(e,t,n){var r=e;if(n===r.count())t.forEach(function(e){r=r.push(e)});else if(0===n)t.reverse().forEach(function(e){r=r.unshift(e)});else{var i=r.slice(0,n),o=r.slice(n);r=i.concat(t,o).toList()}return r}}function JN(){if(Iz)return Tz;Iz=1;var e=jN(),t=FN(),n=ZN(),r=XN(),i=qN(),o=GN(),a=n.List,l=function(n,r,i,o,l,s){var c=i.first()instanceof t,d=[],u=o.size,f=i.get(l),h=o.first(),p=o.last(),m=p.getLength(),C=p.getKey(),g=c&&(!f.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());i.forEach(function(e,t){t===l?(g?d.push(e):d.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.slice(0,t),a=i.slice(0,t),l=n.first();return e.merge({text:o+l.getText(),characterList:a.concat(l.getCharacterList()),type:o?e.getType():l.getType(),data:l.getData()})}(e,s,o)),o.slice(g?0:1,u-1).forEach(function(e){return d.push(e)}),d.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.length,a=r.slice(t,o),l=i.slice(t,o),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(l),data:s.getData()})}(e,s,o))):d.push(e)});var v=e.createFromArray(d);return c&&(v=function(e,t,n,r){return e.withMutations(function(t){var i=n.getKey(),o=r.getKey(),l=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,i=[];for(t.get(n)&&i.push(n);r&&r.getNextSiblingKey();){var o=r.getNextSiblingKey();if(!o)break;i.push(o),r=t.get(o)}return i}(r,e),d=c[c.length-1];if(t.get(o)?(t.setIn([i,"nextSibling"],o),t.setIn([o,"prevSibling"],i)):(t.setIn([i,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],i)),t.setIn([d,"nextSibling"],l),l&&t.setIn([l,"prevSibling"],d),c.forEach(function(e){return t.setIn([e,"parent"],s)}),s){var u=e.get(s).getChildKeys(),f=u.indexOf(i)+1,h=u.toArray();h.splice.apply(h,[f,0].concat(c)),t.setIn([s,"children"],a(h))}})}(v,0,f,h)),n.merge({blockMap:v,selectionBefore:r,selectionAfter:r.merge({anchorKey:C,anchorOffset:m,focusKey:C,focusOffset:m,isBackward:!1})})};return Tz=function(e,n,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||("production"!==process.env.NODE_ENV?i(!1,"`insertFragment` should only be called with a collapsed selection state."):i(!1));var c=e.getBlockMap(),d=o(a),u=n.getStartKey(),f=n.getStartOffset(),h=c.get(u);return h instanceof t&&(h.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?i(!1,"`insertFragment` should not be called when a container node is selected."):i(!1))),1===d.size?function(e,t,n,i,o,a){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),d=s.getCharacterList(),u=o,f=a+i.getText().length,h=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":h=i.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":h=i.getData()}var p=s.getType();c&&"unstyled"===p&&(p=i.getType());var m=s.merge({text:c.slice(0,a)+i.getText()+c.slice(a),characterList:r(d,i.getCharacterList(),a),type:p,data:h});return e.merge({blockMap:n.set(o,m),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:f,focusKey:u,focusOffset:f,isBackward:!1})})}(e,n,c,d.first(),u,f,s):l(e,n,c,d,u,f)},Tz}function $N(){if(Rz)return jz;Rz=1;var e=ZN().Map;return jz=function(t,n,r){var i=n.getStartKey(),o=n.getEndKey(),a=t.getBlockMap(),l=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat(e([[o,a.get(o)]])).map(r);return t.merge({blockMap:a.merge(l),selectionBefore:n,selectionAfter:n})},jz}function eT(){if(Pz)return Bz;Pz=1;var e=FN();return Bz=function(t,n){if(!(t instanceof e))return null;var r=t.getNextSiblingKey();if(r)return r;var i=t.getParentKey();if(!i)return null;for(var o=n.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?n.get(a):null}return o?o.getNextSiblingKey():null}}function tT(){if(Uz)return Fz;Uz=1;var e=FN(),t=eT(),n=ZN();n.List;var r=n.Map,i=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},o=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var i=r.getParentKey();i&&n.push(i),r=i?t.get(i):null}return n},a=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},s=function(e,n,r,s){return e.withMutations(function(c){if(i(n.getKey(),c,function(e){return e.merge({nextSibling:a(e,c,s),prevSibling:l(e,c,s)})}),i(r.getKey(),c,function(e){return e.merge({nextSibling:a(e,c,s),prevSibling:l(e,c,s)})}),o(n.getKey(),s).forEach(function(e){return i(e,c,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return c.get(e)}),nextSibling:a(e,c,s),prevSibling:l(e,c,s)})})}),i(n.getNextSiblingKey(),c,function(e){return e.merge({prevSibling:n.getPrevSiblingKey()})}),i(n.getPrevSiblingKey(),c,function(e){return e.merge({nextSibling:a(e,c,s)})}),i(r.getNextSiblingKey(),c,function(e){return e.merge({prevSibling:l(e,c,s)})}),i(r.getPrevSiblingKey(),c,function(e){return e.merge({nextSibling:r.getNextSiblingKey()})}),o(r.getKey(),s).forEach(function(e){i(e,c,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return c.get(e)}),nextSibling:a(e,c,s),prevSibling:l(e,c,s)})})}),function(e,n){var r=[];if(!e)return r;for(var i=t(e,n);i&&n.get(i);){var o=n.get(i);r.push(i),i=o.getParentKey()?t(o,n):null}return r}(r,s).forEach(function(e){return i(e,c,function(e){return e.merge({nextSibling:a(e,c,s),prevSibling:l(e,c,s)})})}),null==e.get(n.getKey())&&null!=e.get(r.getKey())&&r.getParentKey()===n.getKey()&&null==r.getPrevSiblingKey()){var d=n.getPrevSiblingKey();i(r.getKey(),c,function(e){return e.merge({prevSibling:d})}),i(d,c,function(e){return e.merge({nextSibling:r.getKey()})});var u=d?e.get(d):null,f=u?u.getParentKey():null;if(n.getChildKeys().forEach(function(e){i(e,c,function(e){return e.merge({parent:f})})}),null!=f){var h=e.get(f);i(f,c,function(e){return e.merge({children:h.getChildKeys().concat(n.getChildKeys())})})}i(n.getChildKeys().find(function(t){return null===e.get(t).getNextSiblingKey()}),c,function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})}})},c=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e};return Fz=function(n,i){if(i.isCollapsed())return n;var a,l=n.getBlockMap(),d=i.getStartKey(),u=i.getStartOffset(),f=i.getEndKey(),h=i.getEndOffset(),p=l.get(d),m=l.get(f),C=p instanceof e,g=[];if(C){var v=m.getChildKeys(),y=o(f,l);m.getNextSiblingKey()&&(g=g.concat(y)),v.isEmpty()||(g=g.concat(y.concat([f]))),g=g.concat(o(t(m,l),l))}a=p===m?c(p.getCharacterList(),u,h):p.getCharacterList().slice(0,u).concat(m.getCharacterList().slice(h));var w=p.merge({text:p.getText().slice(0,u)+m.getText().slice(h),characterList:a}),b=C&&0===u&&0===h&&m.getParentKey()===d&&null==m.getPrevSiblingKey()?r([[d,null]]):l.toSeq().skipUntil(function(e,t){return t===d}).takeUntil(function(e,t){return t===f}).filter(function(e,t){return-1===g.indexOf(t)}).concat(r([[f,null]])).map(function(e,t){return t===d?w:null}),E=l.merge(b).filter(function(e){return!!e});return C&&p!==m&&(E=s(E,p,m,l)),n.merge({blockMap:E,selectionBefore:i,selectionAfter:i.merge({anchorKey:d,anchorOffset:u,focusKey:d,focusOffset:u,isBackward:!1})})},Fz}function nT(){if(Wz)return qz;Wz=1;var e=FN(),t=QN(),n=ZN(),r=qN(),i=$N(),o=n.List,a=n.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};return qz=function(n,s){s.isCollapsed()||("production"!==process.env.NODE_ENV?r(!1,"Selection range must be collapsed."):r(!1));var c=s.getAnchorKey(),d=n.getBlockMap(),u=d.get(c),f=u.getText();if(!f){var h=u.getType();if("unordered-list-item"===h||"ordered-list-item"===h)return i(n,s,function(e){return e.merge({type:"unstyled",depth:0})})}var p=s.getAnchorOffset(),m=u.getCharacterList(),C=t(),g=u instanceof e,v=u.merge({text:f.slice(0,p),characterList:m.slice(0,p)}),y=v.merge({key:C,text:f.slice(p),characterList:m.slice(p),data:a()}),w=d.toSeq().takeUntil(function(e){return e===u}),b=d.toSeq().skipUntil(function(e){return e===u}).rest(),E=w.concat([[c,v],[C,y]],b).toOrderedMap();return g&&(u.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?r(!1,"ContentBlockNode must not have children"):r(!1)),E=function(e,t,n){return e.withMutations(function(e){var r=t.getKey(),i=n.getKey();l(t.getParentKey(),e,function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,a=t.toArray();return a.splice(n,0,i),e.merge({children:o(a)})}),l(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:i})}),l(r,e,function(e){return e.merge({nextSibling:i})}),l(i,e,function(e){return e.merge({prevSibling:r})})})}(E,v,y)),n.merge({blockMap:E,selectionBefore:s,selectionAfter:s.merge({anchorKey:C,anchorOffset:0,focusKey:C,focusOffset:0,isBackward:!1})})},qz}function rT(){if(Gz)return Qz;Gz=1;var e=RN(),t=function(){if(fz)return uz;fz=1;var e=RN(),t=ZN().Map;function n(n,r,i,o){var a=n.getBlockMap(),l=r.getStartKey(),s=r.getStartOffset(),c=r.getEndKey(),d=r.getEndOffset(),u=a.skipUntil(function(e,t){return t===l}).takeUntil(function(e,t){return t===c}).concat(t([[c,a.get(c)]])).map(function(t,n){var r,a;l===c?(r=s,a=d):(r=n===l?s:0,a=n===c?d:t.getLength());for(var u,f=t.getCharacterList();r<a;)u=f.get(r),f=f.set(r,o?e.applyStyle(u,i):e.removeStyle(u,i)),r++;return t.set("characterList",f)});return n.merge({blockMap:a.merge(u),selectionBefore:r,selectionAfter:r})}return uz={add:function(e,t,r){return n(e,t,r,!0)},remove:function(e,t,r){return n(e,t,r,!1)}}}(),n=UN(),r=WN(),i=YN(),o=ZN(),a=JN(),l=function(){if(Zz)return Dz;Zz=1;var e=ZN(),t=XN(),n=qN(),r=e.Repeat;return Dz=function(e,i,o,a){i.isCollapsed()||("production"!==process.env.NODE_ENV?n(!1,"`insertText` should only be called with a collapsed range."):n(!1));var l=null;if(null!=o&&(l=o.length),null==l||0===l)return e;var s=e.getBlockMap(),c=i.getStartKey(),d=i.getStartOffset(),u=s.get(c),f=u.getText(),h=u.merge({text:f.slice(0,d)+o+f.slice(d,u.getLength()),characterList:t(u.getCharacterList(),r(a,l).toList(),d)}),p=d+l;return e.merge({blockMap:s.set(c,h),selectionAfter:i.merge({anchorOffset:p,focusOffset:p})})},Dz}(),s=qN(),c=$N(),d=KN(),u=tT(),f=nT(),h=o.OrderedSet,p={replaceText:function(t,n,r,i,o){var a=d(t,n),s=u(a,n),c=e.create({style:i||h(),entity:o||null});return l(s,s.getSelectionAfter(),r,c)},insertText:function(e,t,n,r,i){return t.isCollapsed()||("production"!==process.env.NODE_ENV?s(!1,"Target range must be collapsed for `insertText`."):s(!1)),p.replaceText(e,t,n,r,i)},moveText:function(e,t,n){var r=i(e,t),o=p.removeRange(e,t,"backward");return p.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=d(e,t),o=u(i,t);return a(o,o.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var i,o,a,l;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(i),l=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),f=a.getEntityAt(s),h=l.getEntityAt(c-1);if(i===o&&f&&f===h){var p=r(e.getEntityMap(),a,l,t,n);return u(e,p)}var m=d(e,t);return u(m,t)},splitBlock:function(e,t){var n=d(e,t),r=u(n,t);return f(r,r.getSelectionAfter())},applyInlineStyle:function(e,n,r){return t.add(e,n,r)},removeInlineStyle:function(e,n,r){return t.remove(e,n,r)},setBlockType:function(e,t,n){return c(e,t,function(e){return e.merge({type:n,depth:0})})},setBlockData:function(e,t,n){return c(e,t,function(e){return e.merge({data:n})})},mergeBlockData:function(e,t,n){return c(e,t,function(e){return e.merge({data:e.getData().merge(n)})})},applyEntity:function(e,t,r){var i=d(e,t);return n(i,t,r)}};return Qz=p}function iT(){if(Yz)return Kz;return Yz=1,Kz=function(e){return Object.keys(e).map(function(t){return e[t]})},Kz}function oT(){if(Jz)return Xz;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Jz=1;var t=BN(),n=iT(),r=ZN(),i=r.List,o=r.Repeat,a=r.Record,l=function(){return!0},s=a({start:null,end:null}),c=a({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,n,r){var a=n.getLength();if(!a)return i.of(new c({start:0,end:0,decoratorKey:null,leaves:i.of(new s({start:0,end:0}))}));var d=[],h=r?r.getDecorations(n,e):i(o(null,a)),p=n.getCharacterList();return t(h,f,l,function(e,t){d.push(new c({start:e,end:t,decoratorKey:h.get(e),leaves:u(p.slice(e,t).toList(),e)}))}),i(d)},fromJS:function(t){var r=t.leaves,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["leaves"]);return new c(function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){e(t,n,r[n])})}return t}({},o,{leaves:null!=r?i(Array.isArray(r)?r:n(r)).map(function(e){return s(e)}):null}))}};function u(e,n){var r=[],o=e.map(function(e){return e.getStyle()}).toList();return t(o,f,l,function(e,t){r.push(new s({start:e+n,end:t+n}))}),i(r)}function f(e,t){return e===t}return Xz=d}function aT(){if(eN)return $z;eN=1;var e=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getType=function(){return this.get("type")},i.getMutability=function(){return this.get("mutability")},i.getData=function(){return this.get("data")},r}((0,ZN().Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));return $z=e}function lT(){if(iN)return rN;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}iN=1;var t=aT(),n=ZN(),r=qN(),i=(nN||(nN=1,tN=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}),tN),o=(0,n.Map)(),a=i();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var s={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),s.__getLastCreatedEntityKey()},create:function(e,t,n){return l("DraftEntity.create","contentState.createEntity"),s.__create(e,t,n)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),s.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),s.__get(e)},__getAll:function(){return o},__loadWithEntities:function(e){o=e,a=i()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),s.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),s.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return a},__create:function(e,n,r){return s.__add(new t({type:e,mutability:n,data:r||{}}))},__add:function(e){return a=i(),o=o.set(a,e),a},__get:function(e){var t=o.get(e);return t||("production"!==process.env.NODE_ENV?r(!1,"Unknown DraftEntity key: %s.",e):r(!1)),t},__mergeData:function(t,n){var r=s.__get(t),i=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){e(t,n,r[n])})}return t}({},r.getData(),n),a=r.set("data",i);return o=o.set(t,a),a},__replaceData:function(e,t){var n=s.__get(e).set("data",t);return o=o.set(e,n),n}};return rN=s}function sT(){if(aN)return oN;aN=1;var e=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},i.getAnchorKey=function(){return this.get("anchorKey")},i.getAnchorOffset=function(){return this.get("anchorOffset")},i.getFocusKey=function(){return this.get("focusKey")},i.getFocusOffset=function(){return this.get("focusOffset")},i.getIsBackward=function(){return this.get("isBackward")},i.getHasFocus=function(){return this.get("hasFocus")},i.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset(),a=this.getEndOffset();return t<=o&&o<=n||t<=a&&a<=n}if(e!==r&&e!==i)return!1;var l=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=l&&n>=l},i.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},i.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},i.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},i.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},i.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,ZN().Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));return oN=e}function cT(){return sN?lN:(sN=1,lN=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]})}function dT(){if(dN)return cN;dN=1;var e=new RegExp("\r","g");return cN=function(t){return t.replace(e,"")}}function uT(){if(fN)return uN;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}fN=1;var n=jN(),r=RN(),i=PN(),o=FN(),a=lT(),l=sT(),s=QN(),c=iT(),d=cT(),u=ZN(),f=dT(),h=u.List,p=u.Record,m=u.Repeat,C=u.Map,g=u.OrderedMap,v=p({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),y=d("draft_tree_data_support")?o:i,w=function(t){var i,o;function d(){return t.apply(this,arguments)||this}o=t,(i=d).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var u=d.prototype;return u.getEntityMap=function(){return a},u.getBlockMap=function(){return this.get("blockMap")},u.getSelectionBefore=function(){return this.get("selectionBefore")},u.getSelectionAfter=function(){return this.get("selectionAfter")},u.getBlockForKey=function(e){return this.getBlockMap().get(e)},u.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},u.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},u.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},u.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},u.getBlocksAsArray=function(){return this.getBlockMap().toArray()},u.getFirstBlock=function(){return this.getBlockMap().first()},u.getLastBlock=function(){return this.getBlockMap().last()},u.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},u.getLastCreatedEntityKey=function(){return a.__getLastCreatedEntityKey()},u.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},u.createEntity=function(e,t,n){return a.__create(e,t,n),this},u.mergeEntityData=function(e,t){return a.__mergeData(e,t),this},u.replaceEntityData=function(e,t){return a.__replaceData(e,t),this},u.addEntity=function(e){return a.__add(e),this},u.getEntity=function(e){return a.__get(e)},u.getAllEntities=function(){return a.__getAll()},u.loadWithEntities=function(e){return a.__loadWithEntities(e)},d.createFromBlockArray=function(e,t){var r=Array.isArray(e)?e:e.contentBlocks,i=n.createFromArray(r),o=i.isEmpty()?new l:l.createEmpty(i.first().getKey());return new d({blockMap:i,entityMap:t||a,selectionBefore:o,selectionAfter:o})},d.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map(function(e){return e=f(e),new y({key:s(),text:e,type:"unstyled",characterList:h(m(r.EMPTY,e.length))})});return d.createFromBlockArray(n)},d.fromJS=function(t){return new d(e({},t,{blockMap:g(t.blockMap).map(d.createContentBlockFromJS),selectionBefore:new l(t.selectionBefore),selectionAfter:new l(t.selectionAfter)}))},d.createContentBlockFromJS=function(t){var n=t.characterList;return new y(e({},t,{data:C(t.data),characterList:null!=n?h((Array.isArray(n)?n:c(n)).map(function(e){return r.fromJS(e)})):void 0}))},d}(v);return uN=w}function fT(){if(pN)return hN;pN=1;var e=qN(),t="LTR",n=null;function r(e){return e===t||"RTL"===e}function i(n){return r(n)||("production"!==process.env.NODE_ENV?e(!1,"`dir` must be a strong direction to be converted to HTML Direction"):e(!1)),n===t?"ltr":"rtl"}function o(e){n=e}return hN={NEUTRAL:"NEUTRAL",LTR:t,RTL:"RTL",isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(t,n){return r(t)||("production"!==process.env.NODE_ENV?e(!1,"`dir` must be a strong direction to be converted to HTML Direction"):e(!1)),r(n)||("production"!==process.env.NODE_ENV?e(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):e(!1)),t===n?null:i(t)},setGlobalDir:o,initGlobalDir:function(){o(t)},getGlobalDir:function(){return n||this.initGlobalDir(),n||("production"!==process.env.NODE_ENV?e(!1,"Global direction not set."):e(!1)),n}}}function hT(){if(CN)return mN;CN=1;var e=fT(),t=qN(),n="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",r="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",i=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+n+r+"]"),o=new RegExp("["+n+r+"]");function a(e){var t=i.exec(e);return null==t?null:t[0]}function l(t){var n=a(t);return null==n?e.NEUTRAL:o.exec(n)?e.RTL:e.LTR}function s(t,n){if(n=n||e.NEUTRAL,!t.length)return n;var r=l(t);return r===e.NEUTRAL?n:r}function c(n,r){return r||(r=e.getGlobalDir()),e.isStrong(r)||("production"!==process.env.NODE_ENV?t(!1,"Fallback direction must be a strong direction"):t(!1)),s(n,r)}return mN={firstStrongChar:a,firstStrongCharDir:l,resolveBlockDir:s,getDirection:c,isDirectionLTR:function(t,n){return c(t,n)===e.LTR},isDirectionRTL:function(t,n){return c(t,n)===e.RTL}}}function pT(){if(wN)return yN;wN=1;return yN=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},yN}function mT(){if(EN)return bN;EN=1;var e,t=function(){if(vN)return gN;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}vN=1;var t=hT(),n=fT(),r=qN();return gN=function(){function i(t){e(this,"_defaultDir",void 0),e(this,"_lastDir",void 0),t?n.isStrong(t)||("production"!==process.env.NODE_ENV?r(!1,"Default direction must be a strong direction (LTR or RTL)"):r(!1)):t=n.getGlobalDir(),this._defaultDir=t,this.reset()}var o=i.prototype;return o.reset=function(){this._lastDir=this._defaultDir},o.getDirection=function(e){return this._lastDir=t.getDirection(e,this._lastDir),this._lastDir},i}()}(),n=ZN(),r=pT(),i=n.OrderedMap;return bN={getDirectionMap:function(o,a){e?e.reset():e=new t;var l=o.getBlockMap(),s=l.valueSeq().map(function(t){return r(e).getDirection(t.getText())}),c=i(l.keySeq().zip(s));return null!=a&&n.is(a,c)?a:c}}}function CT(){if(AN)return MN;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}AN=1;var n=oT(),r=uT(),i=mT(),o=sT(),a=ZN(),l=a.OrderedSet,s=a.Record,c=a.Stack,d=a.OrderedMap,u=a.List,f=s({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:c(),selection:null,treeMap:null,undoStack:c()}),h=function(){s.createEmpty=function(e){return this.createWithText("",e)},s.createWithText=function(e,t){return s.createWithContent(r.createFromText(e),t)},s.createWithContent=function(e,t){if(0===e.getBlockMap().count())return s.createEmpty(t);var n=e.getBlockMap().first().getKey();return s.create({currentContent:e,undoStack:c(),redoStack:c(),decorator:t||null,selection:o.createEmpty(n)})},s.create=function(t){var n=t.currentContent,r=e({},t,{treeMap:m(n,t.decorator),directionMap:i.getDirectionMap(n)});return new s(new f(r))},s.fromJS=function(t){return new s(new f(e({},t,{directionMap:null!=t.directionMap?d(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?l(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?r.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?c(t.redoStack.map(function(e){return r.fromJS(e)})):t.redoStack,selection:null!=t.selection?new o(t.selection):t.selection,treeMap:null!=t.treeMap?d(t.treeMap).map(function(e){return u(e).map(function(e){return n.fromJS(e)})}):t.treeMap,undoStack:null!=t.undoStack?c(t.undoStack.map(function(e){return r.fromJS(e)})):t.undoStack,currentContent:r.fromJS(t.currentContent)})))},s.set=function(e,t){var r=e.getImmutable().withMutations(function(r){var i=r.get("decorator"),o=i;null===t.decorator?o=null:t.decorator&&(o=t.decorator);var a=t.currentContent||e.getCurrentContent();if(o!==i){var l,s=r.get("treeMap");return l=o&&i?function(e,t,r,i,o){return r.merge(t.toSeq().filter(function(t){return i.getDecorations(t,e)!==o.getDecorations(t,e)}).map(function(t){return n.generate(e,t,i)}))}(a,a.getBlockMap(),s,o,i):m(a,o),void r.merge({decorator:o,treeMap:l,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&r.set("treeMap",function(e,t,r,i){var o=e.getCurrentContent().set("entityMap",r),a=o.getBlockMap(),l=e.getImmutable().get("treeMap");return l.merge(t.toSeq().filter(function(e,t){return e!==a.get(t)}).map(function(e){return n.generate(o,e,i)}))}(e,a.getBlockMap(),a.getEntityMap(),o)),r.merge(t)});return new s(r)};var a=s.prototype;function s(e){t(this,"_immutable",void 0),this._immutable=e}return a.toJS=function(){return this.getImmutable().toJS()},a.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},a.getCurrentContent=function(){return this.getImmutable().get("currentContent")},a.getUndoStack=function(){return this.getImmutable().get("undoStack")},a.getRedoStack=function(){return this.getImmutable().get("redoStack")},a.getSelection=function(){return this.getImmutable().get("selection")},a.getDecorator=function(){return this.getImmutable().get("decorator")},a.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},a.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},a.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},a.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},a.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},s.setInlineStyleOverride=function(e,t){return s.set(e,{inlineStyleOverride:t})},a.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);if(r>0)return i.getInlineStyleAt(r-1);if(i.getLength())return i.getInlineStyleAt(0);return C(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);if(r<i.getLength())return i.getInlineStyleAt(r);if(r>0)return i.getInlineStyleAt(r-1);return C(e,n)}(t,n)},a.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},a.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},a.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},a.getDirectionMap=function(){return this.getImmutable().get("directionMap")},s.acceptSelection=function(e,t){return p(e,t,!1)},s.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),p(e,t,!0)},s.moveSelectionToEnd=function(e){var t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength();return s.acceptSelection(e,new o({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}))},s.moveFocusToEnd=function(e){var t=s.moveSelectionToEnd(e);return s.forceSelection(t,t.getSelection())},s.push=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===t)return e;var o=i.getDirectionMap(t,e.getDirectionMap());if(!e.getAllowUndo())return s.set(e,{currentContent:t,directionMap:o,lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),d=e.getUndoStack(),u=t;a!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,n)?(d=d.push(l),u=u.set("selectionBefore",a)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(u=u.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(f=null);var h={currentContent:u,directionMap:o,undoStack:d,redoStack:c(),lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:f};return s.set(e,h)},s.undo=function(e){if(!e.getAllowUndo())return e;var t=e.getUndoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),o=i.getDirectionMap(n,e.getDirectionMap());return s.set(e,{currentContent:n,directionMap:o,undoStack:t.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},s.redo=function(e){if(!e.getAllowUndo())return e;var t=e.getRedoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),o=i.getDirectionMap(n,e.getDirectionMap());return s.set(e,{currentContent:n,directionMap:o,undoStack:e.getUndoStack().push(r),redoStack:t.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},a.getImmutable=function(){return this._immutable},s}();function p(e,t,n){return h.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(e,t){return e.getBlockMap().map(function(r){return n.generate(e,r,t)}).toOrderedMap()}function C(e,t){var n=e.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}return MN=h}function gT(){if(HN)return LN;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}HN=1;var n=jN(),r=RN(),i=PN(),o=FN(),a=rT(),l=CT(),s=QN(),c=cT(),d=ZN(),u=function(){if(kN)return xN;kN=1;var e=FN(),t=eT(),n=ZN(),r=qN(),i=n.OrderedMap,o=n.List,a=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t,n,r,i){if(!i)return e;var l="after"===r,s=t.getKey(),c=n.getKey(),d=t.getParentKey(),u=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),h=n.getParentKey(),p=l?n.getNextSiblingKey():c,m=l?c:n.getPrevSiblingKey();return e.withMutations(function(e){a(d,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(s))})}),a(f,e,function(e){return e.merge({nextSibling:u})}),a(u,e,function(e){return e.merge({prevSibling:f})}),a(p,e,function(e){return e.merge({prevSibling:s})}),a(m,e,function(e){return e.merge({nextSibling:s})}),a(h,e,function(e){var t=e.getChildKeys(),n=t.indexOf(c),r=l?n+1:0!==n?n-1:0,i=t.toArray();return i.splice(r,0,s),e.merge({children:o(i)})}),a(s,e,function(e){return e.merge({nextSibling:p,prevSibling:m,parent:h})})})};return xN=function(n,o,a,s){"replace"===s&&("production"!==process.env.NODE_ENV?r(!1,"Replacing blocks is not supported."):r(!1));var c=a.getKey(),d=o.getKey();d===c&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1));var u=n.getBlockMap(),f=o instanceof e,h=[o],p=u.delete(d);f&&(h=[],p=u.withMutations(function(e){var n=o.getNextSiblingKey(),r=t(o,e);e.toSeq().skipUntil(function(e){return e.getKey()===d}).takeWhile(function(e){var t=e.getKey(),i=t===d,o=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(i||o||a)}).forEach(function(t){h.push(t),e.delete(t.getKey())})}));var m=p.toSeq().takeUntil(function(e){return e===a}),C=p.toSeq().skipUntil(function(e){return e===a}).skip(1),g=h.map(function(e){return[e.getKey(),e]}),v=i();if("before"===s){var y=n.getBlockBefore(c);y&&y.getKey()===o.getKey()&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),v=m.concat([].concat(g,[[c,a]]),C).toOrderedMap()}else if("after"===s){var w=n.getBlockAfter(c);w&&w.getKey()===d&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),v=m.concat([[c,a]].concat(g),C).toOrderedMap()}return n.merge({blockMap:l(v,o,a,s,f),selectionBefore:n.getSelectionAfter(),selectionAfter:n.getSelectionAfter().merge({anchorKey:d,focusKey:d})})},xN}(),f=c("draft_tree_data_support"),h=f?o:i,p=d.List,m=d.Repeat;return LN={insertAtomicBlock:function(t,i,o){var c=t.getCurrentContent(),d=t.getSelection(),u=a.removeRange(c,d,"backward"),C=u.getSelectionAfter(),g=a.splitBlock(u,C),v=g.getSelectionAfter(),y=a.setBlockType(g,v,"atomic"),w=r.create({entity:i}),b={key:s(),type:"atomic",text:o,characterList:p(m(w,o.length))},E={key:s(),type:"unstyled"};f&&(b=e({},b,{nextSibling:E.key}),E=e({},E,{prevSibling:b.key}));var M=[new h(b),new h(E)],A=n.createFromArray(M),x=a.replaceWithFragment(y,v,A),k=x.merge({selectionBefore:d,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return l.push(t,k,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var i,o=e.getCurrentContent(),s=e.getSelection();if("before"===r||"after"===r){var c=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());i=u(o,t,c,r)}else{var d=a.removeRange(o,n,"backward"),f=d.getSelectionAfter(),h=d.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())i=u(d,t,h,"before");else if(f.getEndOffset()===h.getLength())i=u(d,t,h,"after");else{var p=a.splitBlock(d,f),m=p.getSelectionAfter(),C=p.getBlockForKey(m.getFocusKey());i=u(p,t,C,"before")}}var g=i.merge({selectionBefore:s,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return l.push(e,g,"move-block")}}}function vT(){if(_N)return SN;_N=1;var e=ZN().List,t=function(){function t(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var n=t.prototype;return n.getDecorations=function(t,n){var r=Array(t.getText().length).fill(null);return this._decorators.forEach(function(e,i){var o=0;(0,e.strategy)(t,function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(r,e,t)&&(!function(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}(r,e,t,i+"."+o),o++)},n)}),e(r)},n.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},n.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},t}();return SN=t}function yT(){if(ON)return VN;function e(e){return e.replace(/\//g,"-")}return ON=1,VN=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")},VN}function wT(){if(NN)return zN;NN=1;var e=i,t=yT(),n=(0,ZN().Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:e.createElement("ul",{className:t("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:e.createElement("ol",{className:t("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:e.createElement("pre",{className:t("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});return zN=n}function bT(){return IN?TN:(IN=1,TN={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}})}var ET,MT,AT,xT,kT,LT,HT,ST,_T,VT,OT,zT,NT,TT,IT,DT,ZT,jT,RT,BT,PT,FT,UT,qT,WT,QT,GT,KT,YT,XT,JT,$T,eI,tI,nI,rI,iI,oI,aI,lI,sI,cI,dI,uI,fI,hI,pI,mI,CI,gI,vI,yI,wI,bI,EI,MI,AI,xI,kI,LI,HI,SI,_I,VI,OI,zI,NI,TI,II,DI,ZI,jI,RI,BI,PI,FI,UI,qI,WI,QI,GI,KI,YI,XI,JI,$I,eD,tD,nD,rD,iD,oD,aD,lD,sD,cD,dD,uD,fD,hD,pD,mD,CD,gD,vD,yD,wD,bD,ED,MD,AD,xD,kD,LD,HD,SD,_D,VD,OD,zD={exports:{}},ND=zD.exports;function TD(){return ET||(ET=1,function(e,t){!function(n,r){var i="function",o="undefined",a="object",l="string",s="major",c="model",d="name",u="type",f="vendor",h="version",p="architecture",m="console",C="mobile",g="tablet",v="smarttv",y="wearable",w="embedded",b="Amazon",E="Apple",M="ASUS",A="BlackBerry",x="Browser",k="Chrome",L="Firefox",H="Google",S="Honor",_="Huawei",V="LG",O="Microsoft",z="Motorola",N="Nvidia",T="OnePlus",I="Opera",D="OPPO",Z="Samsung",j="Sharp",R="Sony",B="Xiaomi",P="Zebra",F="Facebook",U="Chromium OS",q="Mac OS",W=" Browser",Q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},G=function(e,t){return typeof e===l&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},X=function(e,t){for(var n,o,l,s,c,d,u=0;u<t.length&&!c;){var f=t[u],h=t[u+1];for(n=o=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(l=0;l<h.length;l++)d=c[++o],typeof(s=h[l])===a&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,d):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=d?d.replace(s[1],s[2]):r:this[s[0]]=d?s[1].call(this,d,s[2]):r:4===s.length&&(this[s[0]]=d?s[3].call(this,d.replace(s[1],s[2])):r):this[s]=d||r;u+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(G(t[n][i],e))return"?"===n?r:n}else if(G(t[n],e))return"?"===n?r:n;return t.hasOwnProperty("*")?t["*"]:e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ee={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,h],[/opios[\/ ]+([\w\.]+)/i],[h,[d,I+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[d,I+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[d,I]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[h,[d,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[d,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[d,"Smart Lenovo "+x]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+x],h],[/\bfocus\/([\w\.]+)/i],[h,[d,L+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI"+W]],[/fxios\/([\w\.-]+)/i],[h,[d,L]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+W],h],[/samsungbrowser\/([\w\.]+)/i],[h,[d,Z+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[h,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[h,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,F],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[d,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,k+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[h,J,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],h],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[d,L+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[d,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[h,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[p,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[p,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[p,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[p,/ower/,"",K]],[/ sun4\w[;\)]/i],[[p,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[p,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,Z],[u,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,Z],[u,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,E],[u,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,E],[u,g]],[/(macintosh);/i],[c,[f,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,j],[u,C]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[f,S],[u,g]],[/honor([-\w ]+)[;\)]/i],[c,[f,S],[u,C]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[c,[f,_],[u,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,_],[u,C]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[f,B],[u,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[c,/_/g," "],[f,B],[u,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,D],[u,C]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[f,J,{OnePlus:["304","403","203"],"*":D}],[u,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[u,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[u,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,z],[u,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,z],[u,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,V],[u,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,V],[u,C]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[c,[f,"Lenovo"],[u,g]],[/(nokia) (t[12][01])/i],[f,c,[u,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[u,C],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,H],[u,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,H],[u,C]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,R],[u,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,R],[u,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,T],[u,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,b],[u,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,b],[u,C]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[u,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,A],[u,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,M],[u,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,M],[u,C]],[/(nexus 9)/i],[c,[f,"HTC"],[u,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[u,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[f,"TCL"],[u,g]],[/(itel) ((\w+))/i],[[f,K],c,[u,J,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[u,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[u,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[u,C]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[u,C]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[u,C]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[u,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[u,C]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[f,"Archos"],[u,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[f,"Archos"],[u,C]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,c,[u,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[u,C]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[u,g]],[/(surface duo)/i],[c,[f,O],[u,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[u,C]],[/(u304aa)/i],[c,[f,"AT&T"],[u,C]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[u,C]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[u,g]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[u,g]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[u,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[u,g]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[u,g]],[/\b(k88) b/i],[c,[f,"ZTE"],[u,g]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[u,C]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[u,C]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[u,g]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[u,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[u,g]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[u,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[u,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[u,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[u,C]],[/\b(ph-1) /i],[c,[f,"Essential"],[u,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[u,g]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[u,g]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[u,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[f,N],[u,g]],[/(sprint) (\w+)/i],[f,c,[u,C]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,O],[u,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,P],[u,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,P],[u,C]],[/smart-tv.+(samsung)/i],[f,[u,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,Z],[u,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,V],[u,v]],[/(apple) ?tv/i],[f,[c,E+" TV"],[u,v]],[/crkey/i],[[c,k+"cast"],[f,H],[u,v]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,b],[u,v]],[/(shield \w+ tv)/i],[c,[f,N],[u,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,j],[u,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,R],[u,v]],[/(mi(tv|box)-?\w+) bui/i],[c,[f,B],[u,v]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[u,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,Y],[c,Y],[u,v]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[u,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[u,m]],[/droid.+; (shield)( bui|\))/i],[c,[f,N],[u,m]],[/(playstation \w+)/i],[c,[f,R],[u,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,O],[u,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[f,Z],[u,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,c,[u,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[f,D],[u,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,E],[u,y]],[/(opwwe\d{3})/i],[c,[f,T],[u,y]],[/(moto 360)/i],[c,[f,z],[u,y]],[/(smartwatch 3)/i],[c,[f,R],[u,y]],[/(g watch r)/i],[c,[f,V],[u,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,P],[u,y]],[/droid.+; (glass) \d/i],[c,[f,H],[u,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,c,[u,y]],[/; (quest( \d| pro)?)/i],[c,[f,F],[u,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[u,w]],[/(aeobc)\b/i],[c,[f,b],[u,w]],[/(homepod).+mac os/i],[c,[f,E],[u,w]],[/windows iot/i],[[u,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[u,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[u,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,C]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[d,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[d,h],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,h],[/ladybird\//i],[[d,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,h],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[d,[h,J,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,J,$],[d,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,q],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,d],[/(ubuntu) ([\w\.]+) like android/i],[[d,/(.+)/,"$1 Touch"],h],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[d,h],[/\(bb(10);/i],[h,[d,A]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,L+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[d,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,U],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,h],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,h]]},te=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof te))return new te(e,t).getResult();var m=typeof n!==o&&n.navigator?n.navigator:r,v=e||(m&&m.userAgent?m.userAgent:""),y=m&&m.userAgentData?m.userAgentData:r,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(ee,t):ee,b=m&&m.userAgent==v;return this.getBrowser=function(){var e={};return e[d]=r,e[h]=r,X.call(e,v,w.browser),e[s]=function(e){return typeof e===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r}(e[h]),b&&m&&m.brave&&typeof m.brave.isBrave==i&&(e[d]="Brave"),e},this.getCPU=function(){var e={};return e[p]=r,X.call(e,v,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[u]=r,X.call(e,v,w.device),b&&!e[u]&&y&&y.mobile&&(e[u]=C),b&&"Macintosh"==e[c]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[c]="iPad",e[u]=g),e},this.getEngine=function(){var e={};return e[d]=r,e[h]=r,X.call(e,v,w.engine),e},this.getOS=function(){var e={};return e[d]=r,e[h]=r,X.call(e,v,w.os),b&&!e[d]&&y&&y.platform&&"Unknown"!=y.platform&&(e[d]=y.platform.replace(/chrome os/i,U).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(e){return v=typeof e===l&&e.length>500?Y(e,500):e,this},this.setUA(v),this};te.VERSION="0.7.41",te.BROWSER=Q([d,h,s]),te.CPU=Q([p]),te.DEVICE=Q([c,f,u,m,C,v,g,y,w]),te.ENGINE=te.OS=Q([d,h]),e.exports&&(t=e.exports=te),t.UAParser=te;var ne=typeof n!==o&&(n.jQuery||n.Zepto);if(ne&&!ne.ua){var re=new te;ne.ua=re.getResult(),ne.ua.get=function(){return re.getUA()},ne.ua.set=function(e){re.setUA(e);var t=re.getResult();for(var n in t)ne.ua[n]=t[n]}}}("object"==typeof window?window:ND)}(zD,zD.exports)),zD.exports}function ID(){if(AT)return MT;AT=1;var e=TD(),t="Unknown",n={"Mac OS":"Mac OS X"};var r,i=(new e).getResult(),o=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),a={browserArchitecture:i.cpu.architecture||t,browserFullVersion:i.browser.version||t,browserMinorVersion:o.minor||t,browserName:i.browser.name||t,browserVersion:i.browser.major||t,deviceName:i.device.model||t,engineName:i.engine.name||t,engineVersion:i.engine.version||t,platformArchitecture:i.cpu.architecture||t,platformName:(r=i.os.name,n[r]||r||t),platformVersion:i.os.version||t,platformFullVersion:i.os.version||t};return MT=a}function DD(){if(kT)return xT;kT=1;var e=qN(),t=/\./,n=/\|\|/,r=/\s+\-\s+/,i=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,o=/^(\d*)(.*)/;function a(t,i){var o=t.split(n);return o.length>1?o.some(function(e){return g.contains(e,i)}):function(t,n){var i=t.split(r);if(i.length>0&&i.length<=2||("production"!==process.env.NODE_ENV?e(!1,'the "-" operator expects exactly 2 operands'):e(!1)),1===i.length)return l(i[0],n);var o=i[0],a=i[1];return f(o)&&f(a)||("production"!==process.env.NODE_ENV?e(!1,'operands to the "-" operator must be simple (no modifiers)'):e(!1)),l(">="+o,n)&&l("<="+a,n)}(t=o[0].trim(),i)}function l(e,n){if(""===(e=e.trim()))return!0;var r=n.split(t),i=d(e),o=i.modifier,a=i.rangeComponents;switch(o){case"<":return s(r,a);case"<=":return function(e,t){var n=C(e,t);return-1===n||0===n}(r,a);case">=":return c(r,a);case">":return 1===C(r,a);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,o=parseInt(r[i],10);u(o)&&(r[i]=o+1+"");return c(e,n)&&s(e,r)}(r,a);default:return function(e,t){return 0===C(e,t)}(r,a)}}function s(e,t){return-1===C(e,t)}function c(e,t){var n=C(e,t);return 1===n||0===n}function d(n){var r=n.split(t),o=r[0].match(i);return o||("production"!==process.env.NODE_ENV?e(!1,"expected regex to match but it did not"):e(!1)),{modifier:o[1],rangeComponents:[o[2]].concat(r.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function f(e){return!d(e).modifier}function h(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function p(e,t){var n=e.match(o)[1],r=t.match(o)[1],i=parseInt(n,10),a=parseInt(r,10);return u(i)&&u(a)&&i!==a?m(i,a):m(e,t)}function m(t,n){return typeof t!=typeof n&&("production"!==process.env.NODE_ENV?e(!1,'"a" and "b" must be of the same type'):e(!1)),t>n?1:t<n?-1:0}function C(e,t){for(var n=function(e,t){h(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var i=n;i<e.length;i++)e[i]="0"}return h(t,e.length),[e,t]}(e,t),r=n[0],i=n[1],o=0;o<i.length;o++){var a=p(r[o],i[o]);if(a)return a}return 0}var g={contains:function(e,t){return a(e.trim(),t.trim())}};return xT=g}function ZD(){if(OT)return VT;OT=1;var e=ID(),t=DD(),n=function(){if(HT)return LT;HT=1;var e=Object.prototype.hasOwnProperty;return LT=function(t,n,r){if(!t)return null;var i={};for(var o in t)e.call(t,o)&&(i[o]=n.call(r,t[o],o,t));return i},LT}(),r=_T?ST:(_T=1,ST=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}});function i(e,n,r,i){if(e===r)return!0;if(!r.startsWith(e))return!1;var o=r.slice(e.length);return!!n&&(o=i?i(o):o,t.contains(o,n))}function o(t){return"Windows"===e.platformName?t.replace(/^\s*NT/,""):t}return VT=n({isBrowser:function(t){return i(e.browserName,e.browserFullVersion,t)},isBrowserArchitecture:function(t){return i(e.browserArchitecture,null,t)},isDevice:function(t){return i(e.deviceName,null,t)},isEngine:function(t){return i(e.engineName,e.engineVersion,t)},isPlatform:function(t){return i(e.platformName,e.platformFullVersion,t,o)},isPlatformArchitecture:function(t){return i(e.platformArchitecture,null,t)}},r)}function jD(){if(NT)return zT;return NT=1,zT=function(e){return e&&e.ownerDocument?e.ownerDocument:document}}function RD(){if(IT)return TT;return IT=1,TT=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}}function BD(){if(ZT)return DT;ZT=1;var e=RD();return DT=function t(n){if(e(n)){var r=n,i=r.getAttribute("data-offset-key");if(i)return i;for(var o=0;o<r.childNodes.length;o++){var a=t(r.childNodes[o]);if(a)return a}}return null},DT}function PD(){if(RT)return jT;RT=1;var e=jD(),t=BD();return jT=function(n){for(var r=n;r&&r!==e(n).documentElement;){var i=t(r);if(null!=i)return i;r=r.parentNode}return null},jT}function FD(){if(PT)return BT;return PT=1,BT=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}}function UD(){if(WT)return qT;WT=1;var e="-";return qT={encode:function(t,n,r){return t+e+n+e+r},decode:function(t){var n=t.split(e).reverse(),r=n[0],i=n[1];return{blockKey:n.slice(2).reverse().join(e),decoratorKey:parseInt(i,10),leafKey:parseInt(r,10)}}}}function qD(){return GT?QT:(GT=1,QT={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105})}function WD(){return YT?KT:(YT=1,KT={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}})}function QD(){if(JT)return XT;return JT=1,XT=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}}function GD(){if(eI)return $T;eI=1;var e=qN(),t=QD();return $T=function(n){var r=n.editorContainer;return r||("production"!==process.env.NODE_ENV?e(!1,"Missing editorNode"):e(!1)),t(r.firstChild)||("production"!==process.env.NODE_ENV?e(!1,"editorNode.firstChild is not an HTMLElement"):e(!1)),r.firstChild}}function KD(){if(nI)return tI;nI=1;var e=UD(),t=pT();return tI=function(n,r,i,o,a){var l=t(n.getSelection());if(!r||!o)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var s=e.decode(r),c=s.blockKey,d=n.getBlockTree(c),u=d&&d.getIn([s.decoratorKey,"leaves",s.leafKey]),f=e.decode(o),h=f.blockKey,p=n.getBlockTree(h),m=p&&p.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!u||!m)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var C=u.get("start"),g=m.get("start"),v=u?C+i:null,y=m?g+a:null;if(l.getAnchorKey()===c&&l.getAnchorOffset()===v&&l.getFocusKey()===h&&l.getFocusOffset()===y)return l;var w=!1;if(c===h){var b=u.get("end"),E=m.get("end");w=g===C&&E===b?a<i:g<C}else{var M=n.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===c||e===h}).first();w=M===h}return l.merge({anchorKey:c,anchorOffset:v,focusKey:h,focusOffset:y,isBackward:w})},tI}function YD(){if(iI)return rI;iI=1;var e=PD(),t=BD(),n=KD(),r=qN(),i=RD(),o=pT();function a(n,a,s){var c=a,d=e(c);(null!=d||n&&(n===c||n.firstChild===c)||("production"!==process.env.NODE_ENV?r(!1,"Unknown node in selection range."):r(!1)),n===c)&&(c=c.firstChild,i(c)||("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents node."):r(!1)),"true"!==(c=c).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents structure."):r(!1)),s>0&&(s=c.childNodes.length));if(0===s){var u=null;if(null!=d)u=d;else{var f=function(e){for(;e.firstChild&&(i(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||t(e.firstChild));)e=e.firstChild;return e}(c);u=o(t(f))}return{key:u,offset:0}}var h=c.childNodes[s-1],p=null,m=null;if(t(h)){var C=function(e){for(;e.lastChild&&(i(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||t(e.lastChild));)e=e.lastChild;return e}(h);p=o(t(C)),m=l(C)}else p=o(d),m=l(h);return{key:p,offset:m}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}return rI=function(t,r,i,l,s,c){var d=i.nodeType===Node.TEXT_NODE,u=s.nodeType===Node.TEXT_NODE;if(d&&u)return{selectionState:n(t,o(e(i)),l,o(e(s)),c),needsRecovery:!1};var f=null,h=null,p=!0;return d?(f={key:o(e(i)),offset:l},h=a(r,s,c)):u?(h={key:o(e(s)),offset:c},f=a(r,i,l)):(f=a(r,i,l),h=a(r,s,c),i===s&&l===c&&(p=!!i.firstChild&&"BR"!==i.firstChild.nodeName)),{selectionState:n(t,f.key,f.offset,h.key,h.offset),needsRecovery:p}}}function XD(){if(aI)return oI;aI=1;var e=YD();return oI=function(t,n){var r=n.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.anchorOffset,a=r.focusNode,l=r.focusOffset;return 0===r.rangeCount||null==i||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:e(t,n,i,o,a,l)}}function JD(){if(sI)return lI;sI=1;var e=WD(),t=CT(),n=GD(),r=XD();return lI=function(i){if(i._blockSelectEvents||i._latestEditorState!==i.props.editorState){if(i._blockSelectEvents){var o=i.props.editorState.getSelection();e.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(o.toJS())})}}else{var a=i.props.editorState,l=r(a,n(i)),s=l.selectionState;s!==a.getSelection()&&(a=l.needsRecovery?t.forceSelection(a,s):t.acceptSelection(a,s),i.update(a))}}}function $D(){if(dI)return cI;return dI=1,cI={notEmptyKey:function(e){return null!=e&&""!=e}},cI}function eZ(){if(fI)return uI;fI=1;var e=$D().notEmptyKey;function t(t,n){return e(n)&&"MUTABLE"===t.__get(n).getMutability()?n:null}return uI=function(e,n){var r;if(n.isCollapsed()){var i=n.getAnchorKey(),o=n.getAnchorOffset();return o>0?(r=e.getBlockForKey(i).getEntityAt(o-1))!==e.getBlockForKey(i).getEntityAt(o)?null:t(e.getEntityMap(),r):null}var a=n.getStartKey(),l=n.getStartOffset(),s=e.getBlockForKey(a);return r=l===s.getLength()?null:s.getEntityAt(l),t(e.getEntityMap(),r)},uI}function tZ(){if(pI)return hI;pI=1;var e=function(){if(UT)return FT;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}UT=1;var t=ZD(),n=PD(),r=FD(),i=ZN(),o=qN(),a=pT(),l=i.Map,s={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},c=t.isBrowser("IE <= 11"),d=function(){function t(t){var n=this;e(this,"observer",void 0),e(this,"container",void 0),e(this,"mutations",void 0),e(this,"onCharData",void 0),this.container=t,this.mutations=l();var i=r(t);i.MutationObserver&&!c?this.observer=new i.MutationObserver(function(e){return n.registerMutations(e)}):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?o(!1,"Expected target to be an instance of Node"):o(!1)),n.registerMutation({type:"characterData",target:e.target})}}var i=t.prototype;return i.start=function(){this.observer?this.observer.observe(this.container,s):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},i.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=l(),t},i.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},i.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return c?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},i.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var r=a(n(e.target));this.mutations=this.mutations.set(r,t)}},t}();return FT=d}(),t=rT(),n=UD(),r=CT(),i=qD(),o=ZD(),a=JD(),l=GD(),s=XD(),c=eZ(),d=pT(),u=o.isBrowser("IE"),f=!1,h=!1,p=null;var m={onCompositionStart:function(t){h=!0,function(t){p||(p=new e(l(t))).start()}(t)},onCompositionEnd:function(e){f=!1,h=!1,setTimeout(function(){f||m.resolveComposition(e)},20)},onSelect:a,onKeyDown:function(e,t){if(!h)return m.resolveComposition(e),void e._onKeyDown(t);t.which!==i.RIGHT&&t.which!==i.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===i.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!h){var i=d(p).stopAndFlushMutations();p=null,f=!0;var o=r.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),i.size){var a=o.getCurrentContent();i.forEach(function(e,i){var l=n.decode(i),s=l.blockKey,d=l.decoratorKey,u=l.leafKey,f=o.getBlockTree(s).getIn([d,"leaves",u]),h=f.start,p=f.end,m=o.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:h,focusOffset:p,isBackward:!1}),C=c(a,m),g=a.getBlockForKey(s).getInlineStyleAt(h);a=t.replaceText(a,m,e,g,C),o=r.set(o,{currentContent:a})});var m=s(o,l(e)).selectionState;e.restoreEditorDOM();var C=u?r.forceSelection(o,m):r.acceptSelection(o,m);e.update(r.push(C,a,"insert-characters"))}else e.update(o)}}};return hI=m}function nZ(){if(CI)return mI;CI=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=UD(),r=i,o=hT(),a=fT(),l=function(e){var i,l;function s(){return e.apply(this,arguments)||this}return l=e,(i=s).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l,s.prototype.render=function(){var e=this.props,i=e.block,l=e.children,s=e.contentState,c=e.decorator,d=e.decoratorKey,u=e.direction,f=e.leafSet,h=e.text,p=i.getKey(),m=f.get("leaves"),C=c.getComponentForKey(d),g=c.getPropsForKey(d),v=n.encode(p,parseInt(d,10),0),y=h.slice(m.first().get("start"),m.last().get("end")),w=a.getHTMLDirIfDifferent(o.getDirection(y),u);return r.createElement(C,t({},g,{contentState:s,decoratedText:y,dir:w,key:v,entityKey:i.getEntityAt(f.get("start")),offsetKey:v}),l)},s}(r.Component);return mI=l}function rZ(){if(vI)return gI;function e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}vI=1;var n=i,r=ZD(),o=qN(),a=RD(),l=r.isBrowser("IE <= 11");var s=function(r){var i,s;function c(n){var i;return t(e(i=r.call(this,n)||this),"_forceFlag",void 0),t(e(i),"_node",void 0),i._forceFlag=!1,i}s=r,(i=c).prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__proto__=s;var d=c.prototype;return d.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;a(t)||("production"!==process.env.NODE_ENV?o(!1,"node is not an Element"):o(!1));var r=t;return n?!function(e){return l?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},d.componentDidMount=function(){this._forceFlag=!this._forceFlag},d.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},d.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},l?n.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):n.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return l?n.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):n.createElement("br",{key:"B","data-text":"true",ref:e})}(function(e){return t._node=e}):n.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},c}(n.Component);return gI=s}function iZ(){if(wI)return yI;wI=1;var e=RD();return yI=function(t){return!(!t||!t.ownerDocument)&&(e(t)&&"BR"===t.nodeName)}}function oZ(){return EI?bI:(EI=1,bI={initODS:function(){},handleExtensionCausedError:function(){}})}function aZ(){if(kI)return xI;kI=1;var e=AI?MI:(AI=1,MI=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))});return xI=function(t){return e(t)&&3==t.nodeType}}function lZ(){if(HI)return LI;HI=1;var e=aZ();return LI=function t(n,r){return!(!n||!r)&&(n===r||!e(n)&&(e(r)?t(n,r.parentNode):"contains"in n?n.contains(r):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(r))))},LI}function sZ(){if(_I)return SI;return _I=1,SI=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}}function cZ(){if(OI)return VI;OI=1;var e=oZ(),t=WD(),n=ZD(),r=lZ(),i=sZ(),o=jD(),a=qN(),l=RD(),s=n.isBrowser("IE");function c(e,t){if(!e)return"[empty]";var n=d(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||("production"!==process.env.NODE_ENV?a(!1,"Node must be an Element if it is not a text node."):a(!1)),n.outerHTML)}function d(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return o(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&n.length&&i.setAttribute("data-labels",n.join(", "));for(var a=e.childNodes,l=0;l<a.length;l++)i.appendChild(d(a[l],t));return i}function u(e,t){for(var n=e,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return c(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function f(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function h(e,n,o,a){var l=i();if(e.extend&&null!=n&&r(l,n)){o>f(n)&&t.logSelectionStateFailure({anonymizedDom:u(n),extraParams:JSON.stringify({offset:o}),selectionState:JSON.stringify(a.toJS())});var s=n===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(n,o)}catch(r){throw t.logSelectionStateFailure({anonymizedDom:u(n,function(t){var n=[];return t===l&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:l?l.nodeName:null,nodeIsFocus:n===e.focusNode,nodeWasFocus:s,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:r?""+r:null,offset:o},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),r}}else if(n&&e.rangeCount>0){var c=e.getRangeAt(0);c.setEnd(n,o),e.addRange(c.cloneRange())}}function p(n,r,i,a){var l=o(r).createRange();if(i>f(r)&&(t.logSelectionStateFailure({anonymizedDom:u(r),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(a.toJS())}),e.handleExtensionCausedError()),l.setStart(r,i),s)try{n.addRange(l)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else n.addRange(l)}return VI={setDraftEditorSelection:function(e,t,n,i,a){var l=o(t);if(r(l.documentElement,t)){var s=l.defaultView.getSelection(),c=e.getAnchorKey(),d=e.getAnchorOffset(),u=e.getFocusKey(),f=e.getFocusOffset(),m=e.getIsBackward();if(!s.extend&&m){var C=c,g=d;c=u,d=f,u=C,f=g,m=!1}var v=c===n&&i<=d&&a>=d,y=u===n&&i<=f&&a>=f;if(v&&y)return s.removeAllRanges(),p(s,t,d-i,e),void h(s,t,f-i,e);if(m){if(y&&(s.removeAllRanges(),p(s,t,f-i,e)),v){var w=s.focusNode,b=s.focusOffset;s.removeAllRanges(),p(s,t,d-i,e),h(s,w,b,e)}}else v&&(s.removeAllRanges(),p(s,t,d-i,e)),y&&h(s,t,f-i,e)}},addFocusToSelection:h}}function dZ(){if(NI)return zI;NI=1;var e=jh();var t=rZ(),n=i,r=qN(),o=iZ(),a=cZ().setDraftEditorSelection,l=function(i){var l,s;function c(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e=i.call.apply(i,[this].concat(n))||this),"leaf",void 0),e}s=i,(l=c).prototype=Object.create(s.prototype),l.prototype.constructor=l,l.__proto__=s;var d=c.prototype;return d._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,i=t.start,l=t.text,s=n.getKey(),c=i+l.length;if(e.hasEdgeWithin(s,i,c)){var d=this.leaf;d||("production"!==process.env.NODE_ENV?r(!1,"Missing node"):r(!1));var u,f=d.firstChild;f||("production"!==process.env.NODE_ENV?r(!1,"Missing child"):r(!1)),f.nodeType===Node.TEXT_NODE?u=f:o(f)?u=d:(u=f.firstChild)||("production"!==process.env.NODE_ENV?r(!1,"Missing targetNode"):r(!1)),a(e,u,s,i,c)}}},d.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?r(!1,"Missing leafNode"):r(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},d.componentDidUpdate=function(){this._setSelection()},d.componentDidMount=function(){this._setSelection()},d.render=function(){var r=this,i=this.props.block,o=this.props.text;o.endsWith("\n")&&this.props.isLast&&(o+="\n");var a=this.props,l=a.customStyleMap,s=a.customStyleFn,c=a.offsetKey,d=a.styleSet,u=d.reduce(function(t,n){var r={},i=l[n];return void 0!==i&&t.textDecoration!==i.textDecoration&&(r.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim()),e(t,i,r)},{});if(s){var f=s(d,i);u=e(u,f)}return n.createElement("span",{"data-offset-key":c,ref:function(e){return r.leaf=e},style:u},n.createElement(t,null,o))},c}(n.Component);return zI=l}function uZ(){if(II)return TI;II=1;var e=nZ(),t=dZ(),n=UD(),r=ZN(),o=i,a=yT();r.List;var l=function(r){var i,l;function s(){return r.apply(this,arguments)||this}return l=r,(i=s).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l,s.prototype.render=function(){var r=this.props,i=r.block,l=r.contentState,s=r.customStyleFn,c=r.customStyleMap,d=r.decorator,u=r.direction,f=r.forceSelection,h=r.hasSelection,p=r.selection,m=r.tree,C=i.getKey(),g=i.getText(),v=m.size-1,y=this.props.children||m.map(function(r,a){var m=r.get("decoratorKey"),y=r.get("leaves"),w=y.size-1,b=y.map(function(e,r){var l=n.encode(C,a,r),d=e.get("start"),u=e.get("end");return o.createElement(t,{key:l,offsetKey:l,block:i,start:d,selection:h?p:null,forceSelection:f,text:g.slice(d,u),styleSet:i.getInlineStyleAt(d),customStyleMap:c,customStyleFn:s,isLast:m===v&&r===w})}).toArray();return m&&d?o.createElement(e,{block:i,children:b,contentState:l,decorator:d,decoratorKey:m,direction:u,leafSet:r,text:g,key:a}):b}).toArray();return o.createElement("div",{"data-offset-key":n.encode(C,0,0),className:a({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===u,"public/DraftStyleDefault/rtl":"RTL"===u})},y)},s}(o.Component);return TI=l}function fZ(){if(ZI)return DI;function e(e,t){return!!t&&(e===t.documentElement||e===t.body)}return ZI=1,DI={getTop:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}}}function hZ(){if(UI)return FI;UI=1;var e=function(){if(RI)return jI;RI=1;var e=/-(.)/g;return jI=function(t){return t.replace(e,function(e,t){return t.toUpperCase()})}}(),t=function(){if(PI)return BI;PI=1;var e=/([A-Z])/g;return BI=function(t){return t.replace(e,"-$1").toLowerCase()}}();function n(e){return null==e?e:String(e)}return FI=function(r,i){var o;if(window.getComputedStyle&&(o=window.getComputedStyle(r,null)))return n(o.getPropertyValue(t(i)));if(document.defaultView&&document.defaultView.getComputedStyle){if(o=document.defaultView.getComputedStyle(r,null))return n(o.getPropertyValue(t(i)));if("display"===i)return"none"}return r.currentStyle?n("float"===i?r.currentStyle.cssFloat||r.currentStyle.styleFloat:r.currentStyle[e(i)]):n(r.style&&r.style[e(i)])}}function pZ(){if(WI)return qI;function e(e,n){var r=t.get(e,n);return"auto"===r||"scroll"===r}WI=1;var t={get:hZ(),getScrollParent:function(t){if(!t)return null;for(var n=t.ownerDocument;t&&t!==n.body;){if(e(t,"overflow")||e(t,"overflowY")||e(t,"overflowX"))return t;t=t.parentNode}return n.defaultView||n.parentWindow}};return qI=t}function mZ(){if(YI)return KI;YI=1;var e=function(){if(GI)return QI;GI=1;var e=lZ();return QI=function(t){var n=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!e(n,t))return{left:0,right:0,top:0,bottom:0};var r=t.getBoundingClientRect();return{left:Math.round(r.left)-n.clientLeft,right:Math.round(r.right)-n.clientLeft,top:Math.round(r.top)-n.clientTop,bottom:Math.round(r.bottom)-n.clientTop}}}();return KI=function(t){var n=e(t);return{x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top}}}function CZ(){if(nD)return tD;nD=1;var e=function(){if(JI)return XI;JI=1;var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;return XI=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}}(),t=eD?$I:(eD=1,$I=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}});return tD=function(n){var r=e(n.ownerDocument||n.document);n.Window&&n instanceof n.Window&&(n=r);var i=t(n),o=n===r?n.ownerDocument.documentElement:n,a=n.scrollWidth-o.clientWidth,l=n.scrollHeight-o.clientHeight;return i.x=Math.max(0,Math.min(i.x,a)),i.y=Math.max(0,Math.min(i.y,l)),i}}function gZ(){if(iD)return rD;function e(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function t(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function n(){return{width:window.innerWidth||e(),height:window.innerHeight||t()}}return iD=1,n.withoutScrollbars=function(){return{width:e(),height:t()}},rD=n}function vZ(){if(aD)return oD;aD=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=uZ(),a=UD(),l=i,s=fZ(),c=pZ(),d=mZ(),u=CZ(),f=gZ(),h=ZN(),p=qN(),m=QD();h.List;var C=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},g=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},y=function(e,t,r,i,o,a){var l={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:a},s=i(e);return s&&(l.className=s),void 0!==o.customEditable&&(l=n({},l,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),l},w=function(e){var i,h;function w(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",l.createRef()),t}h=e,(i=w).prototype=Object.create(h.prototype),i.prototype.constructor=i,i.__proto__=h;var b=w.prototype;return b.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,i=t.tree,o=!n.getChildKeys().isEmpty(),a=n!==e.block||i!==e.tree||r!==e.direction||C(e.selection,e.block.getKey())&&e.forceSelection;return o||a},b.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,i=c.getScrollParent(n),o=u(i);if(i===window){var a=d(n);(r=a.y+a.height-f().height)>0&&window.scrollTo(o.x,o.y+r+10)}else{m(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var l=n;(r=l.offsetHeight+l.offsetTop-(i.offsetHeight+o.y))>0&&s.setTop(i,s.getTop(i)+r+10)}}}},b.render=function(){var e=this,r=this.props,i=r.block,s=r.blockRenderMap,c=r.blockRendererFn,d=r.blockStyleFn,u=r.contentState,f=r.decorator,h=r.editorKey,p=r.editorState,m=r.customStyleFn,b=r.customStyleMap,E=r.direction,M=r.forceSelection,A=r.selection,x=r.tree,k=null;i.children.size&&(k=i.children.reduce(function(t,r){var i=a.encode(r,0,0),o=u.getBlockForKey(r),f=v(o,c),m=f.CustomComponent||w,C=g(o,s),b=C.Element,E=C.wrapperTemplate,M=y(o,h,i,d,f,null),A=n({},e.props,{tree:p.getBlockTree(r),blockProps:f.customProps,offsetKey:i,block:o});return t.push(l.createElement(b,M,l.createElement(m,A))),!E||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(o,u)||function(e,t,n){var r=[],i=!0,o=!1,s=void 0;try{for(var c,d=n.reverse()[Symbol.iterator]();!(i=(c=d.next()).done);i=!0){var u=c.value;if(u.type!==t)break;r.push(u)}}catch(e){o=!0,s=e}finally{try{i||null==d.return||d.return()}finally{if(o)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),h=f[0].key;n.push(l.cloneElement(e,{key:"".concat(h,"-wrap"),"data-offset-key":a.encode(h,0,0)},f))}(E,b,t),t},[]));var L=i.getKey(),H=a.encode(L,0,0),S=v(i,c),_=S.CustomComponent,V=null!=_?l.createElement(_,t({},this.props,{tree:p.getBlockTree(L),blockProps:S.customProps,offsetKey:H,block:i})):l.createElement(o,{block:i,children:k,contentState:u,customStyleFn:m,customStyleMap:b,decorator:f,direction:E,forceSelection:M,hasSelection:C(A,L),selection:A,tree:x});if(i.getParentKey())return V;var O=g(i,s).Element,z=y(i,h,H,d,S,this.wrapperRef);return l.createElement(O,z,V)},w}(l.Component);return oD=w}function yZ(){if(sD)return lD;sD=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=vZ(),r=UD(),o=i,a=pT(),l=function(e){var i,l;function s(){return e.apply(this,arguments)||this}l=e,(i=s).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l;var c=s.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return i!==o||a!==l||s!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,i=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,c=e.customStyleMap,d=e.customStyleFn,u=e.editorState,f=e.editorKey,h=e.textDirectionality,p=u.getCurrentContent(),m=u.getSelection(),C=u.mustForceSelection(),g=u.getDecorator(),v=a(u.getDirectionMap()),y=[],w=p.getBlocksAsArray()[0];w;){var b=w.getKey(),E={blockRenderMap:i,blockRendererFn:l,blockStyleFn:s,contentState:p,customStyleFn:d,customStyleMap:c,decorator:g,editorKey:f,editorState:u,forceSelection:C,selection:m,block:w,direction:h||v.get(b),tree:u.getBlockTree(b)},M=(i.get(w.getType())||i.get("unstyled")).wrapper;y.push({block:o.createElement(n,t({key:b},E)),wrapperTemplate:M,key:b,offsetKey:r.encode(b,0,0)});var A=w.getNextSiblingKey();w=A?p.getBlockForKey(A):null}for(var x=[],k=0;k<y.length;){var L=y[k];if(L.wrapperTemplate){var H=[];do{H.push(y[k].block),k++}while(k<y.length&&y[k].wrapperTemplate===L.wrapperTemplate);var S=o.cloneElement(L.wrapperTemplate,{key:L.key+"-wrap","data-offset-key":L.offsetKey},H);x.push(S)}else x.push(L.block),k++}return o.createElement("div",{"data-contents":"true"},x)},s}(o.Component);return lD=l}function wZ(){if(dD)return cD;dD=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=dZ(),r=UD(),o=i,a=fZ(),l=pZ(),s=hT(),c=fT(),d=yT(),u=mZ(),f=CZ(),h=gZ(),p=qN(),m=QD(),C=pT(),g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e){var i,v;function y(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}v=e,(i=y).prototype=Object.create(v.prototype),i.prototype.constructor=i,i.__proto__=v;var w=y.prototype;return w.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection},w.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,i=l.getScrollParent(n),o=f(i);if(i===window){var s=u(n);(r=s.y+s.height-h().height)>0&&window.scrollTo(o.x,o.y+r+10)}else{m(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1)),(r=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&a.setTop(i,a.getTop(i)+r+10)}}}}},w._renderChildren=function(){var e=this,i=this.props.block,a=i.getKey(),l=i.getText(),d=this.props.tree.size-1,u=g(this.props.selection,a);return this.props.tree.map(function(f,h){var p=f.get("leaves");if(0===p.size)return null;var m=p.size-1,g=p.map(function(t,s){var c=r.encode(a,h,s),f=t.get("start"),p=t.get("end");return o.createElement(n,{key:c,offsetKey:c,block:i,start:f,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:l.slice(f,p),styleSet:i.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===d&&s===m})}).toArray(),v=f.get("decoratorKey");if(null==v)return g;if(!e.props.decorator)return g;var y=C(e.props.decorator),w=y.getComponentForKey(v);if(!w)return g;var b=y.getPropsForKey(v),E=r.encode(a,h,0),M=p.first().get("start"),A=p.last().get("end"),x=l.slice(M,A),k=i.getEntityAt(f.get("start")),L=c.getHTMLDirIfDifferent(s.getDirection(x),e.props.direction),H={contentState:e.props.contentState,decoratedText:x,dir:L,start:M,end:A,blockKey:a,entityKey:k,offsetKey:E};return o.createElement(w,t({},b,H,{key:E}),g)}).toArray()},w.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,i=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return o.createElement("div",{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},y}(o.Component);return cD=v}function bZ(){if(pD)return hD;pD=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=wZ(),a=UD(),l=i,s=yT(),c=(fD||(fD=1,uD=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var i=arguments[r];i&&(t=(t?t+" ":"")+i)}return t}),uD),d=pT(),u=function(e,t,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=function(e){var r,i;function s(){return e.apply(this,arguments)||this}i=e,(r=s).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var f=s.prototype;return f.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return i!==o||a!==l||s!==c||n.mustForceSelection()},f.render=function(){for(var e=this.props,r=e.blockRenderMap,i=e.blockRendererFn,s=e.blockStyleFn,f=e.customStyleMap,h=e.customStyleFn,p=e.editorState,m=e.editorKey,C=e.preventScroll,g=e.textDirectionality,v=p.getCurrentContent(),y=p.getSelection(),w=p.mustForceSelection(),b=p.getDecorator(),E=d(p.getDirectionMap()),M=v.getBlocksAsArray(),A=[],x=null,k=null,L=0;L<M.length;L++){var H=M[L],S=H.getKey(),_=H.getType(),V=i(H),O=void 0,z=void 0,N=void 0;V&&(O=V.component,z=V.props,N=V.editable);var T=g||E.get(S),I=a.encode(S,0,0),D={contentState:v,block:H,blockProps:z,blockStyleFn:s,customStyleMap:f,customStyleFn:h,decorator:b,direction:T,forceSelection:w,offsetKey:I,preventScroll:C,selection:y,tree:p.getBlockTree(S)},Z=r.get(_)||r.get("unstyled"),j=Z.wrapper,R=Z.element||r.get("unstyled").element,B=H.getDepth(),P="";if(s&&(P=s(H)),"li"===R)P=c(P,u(_,B,k!==j||null===x||B>x,T));var F=O||o,U={className:P,"data-block":!0,"data-editor":m,"data-offset-key":I,key:S};void 0!==N&&(U=n({},U,{contentEditable:N,suppressContentEditableWarning:!0}));var q=l.createElement(R,U,l.createElement(F,t({},D,{key:S})));A.push({block:q,wrapperTemplate:j,key:S,offsetKey:I}),x=j?H.getDepth():null,k=j}for(var W=[],Q=0;Q<A.length;){var G=A[Q];if(G.wrapperTemplate){var K=[];do{K.push(A[Q].block),Q++}while(Q<A.length&&A[Q].wrapperTemplate===G.wrapperTemplate);var Y=l.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},K);W.push(Y)}else W.push(G.block),Q++}return l.createElement("div",{"data-contents":"true"},W)},s}(l.Component);return hD=f}function EZ(){if(wD)return yD;wD=1;var e=qN();return yD=function(t){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(t)?Array.isArray(t)?t.slice():function(t){var n=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&("production"!==process.env.NODE_ENV?e(!1,"toArray: Array-like object expected"):e(!1)),"number"!=typeof n&&("production"!==process.env.NODE_ENV?e(!1,"toArray: Object needs a length property"):e(!1)),0===n||n-1 in t||("production"!==process.env.NODE_ENV?e(!1,"toArray: Object should have keys for indices"):e(!1)),"function"==typeof t.callee&&("production"!==process.env.NODE_ENV?e(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):e(!1)),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(e){}for(var r=Array(n),i=0;i<n;i++)r[i]=t[i];return r}(t):[t]}}function MZ(){if(ED)return bD;function e(e){return function(){return e}}ED=1;var t=function(){};return t.thatReturns=e,t.thatReturnsFalse=e(!1),t.thatReturnsTrue=e(!0),t.thatReturnsNull=e(null),t.thatReturnsThis=function(){return this},t.thatReturnsArgument=function(e){return e},bD=t}function AZ(){if(AD)return MD;AD=1;var e=function(){if(vD)return gD;vD=1;var e={isImage:function(e){return"image"===t(e)[0]},isJpeg:function(n){var r=t(n);return e.isImage(n)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function t(e){return e.split("/")}return gD=e}(),t=EZ(),n=MZ(),r=new RegExp("\r\n","g"),i={"text/rtf":1,"text/html":1};function o(e){if("file"==e.kind)return e.getAsFile()}return MD=function(){function a(e){this.data=e,this.types=e.types?t(e.types):[]}var l=a.prototype;return l.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return i[e]})},l.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(r,"\n"):null},l.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},l.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},l.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},l.isImage=function(){var t=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(t)return!0;for(var n=this.getFiles(),r=0;r<n.length;r++){var i=n[r].type;if(!e.isImage(i))return!1}return!0},l.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},l.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(o).filter(n.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},l.hasFiles=function(){return this.getFiles().length>0},a}()}function xZ(){if(kD)return xD;kD=1;var e=qN(),t=/\.textClipping$/,n={"text/plain":!0,"text/html":!0,"text/rtf":!0};return xD=function(r,i){var o=0,a=[];r.forEach(function(l){!function(r,i){if(!L.FileReader||r.type&&!(r.type in n))return void i("");if(""===r.type){var o="";return t.test(r.name)&&(o=r.name.replace(t,"")),void i(o)}var a=new FileReader;a.onload=function(){var t=a.result;"string"!=typeof t&&("production"!==process.env.NODE_ENV?e(!1,'We should be calling "FileReader.readAsText" which returns a string'):e(!1)),i(t)},a.onerror=function(){i("")},a.readAsText(r)}(l,function(e){o++,e&&a.push(e.slice(0,5e3)),o==r.length&&i(a.join("\r"))})})},xD}function kZ(){if(HD)return LD;return HD=1,LD=function(e){return"handled"===e||!0===e}}function LZ(){if(_D)return SD;_D=1;var e=AZ(),t=rT(),n=CT(),r=PD(),i=jD(),o=xZ(),a=KD(),l=FD(),s=kZ(),c=pT();var d={onDragEnd:function(e){e.exitCurrentMode(),u(e)},onDrop:function(l,d){var h=new e(d.nativeEvent.dataTransfer),p=l._latestEditorState,m=function(e,t){var n=null,o=null,l=i(e.currentTarget);if("function"==typeof l.caretRangeFromPoint){var s=l.caretRangeFromPoint(e.x,e.y);n=s.startContainer,o=s.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,o=e.rangeOffset}n=c(n),o=c(o);var d=c(r(n));return a(t,d,o,d,o)}(d.nativeEvent,p);if(d.preventDefault(),l._dragCount=0,l.exitCurrentMode(),null!=m){var C=h.getFiles();if(C.length>0){if(l.props.handleDroppedFiles&&s(l.props.handleDroppedFiles(m,C)))return;o(C,function(e){e&&l.update(f(p,m,e))})}else{var g=l._internalDrag?"internal":"external";l.props.handleDrop&&s(l.props.handleDrop(m,h,g))||(l._internalDrag?l.update(function(e,r){var i=t.moveText(e.getCurrentContent(),e.getSelection(),r);return n.push(e,i,"insert-fragment")}(p,m)):l.update(f(p,m,h.getText()))),u(l)}}}};function u(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function f(e,r,i){var o=t.insertText(e.getCurrentContent(),r,i,e.getCurrentInlineStyle());return n.push(e,o,"insert-fragment")}return SD=d}var HZ,SZ,_Z,VZ,OZ,zZ,NZ,TZ,IZ,DZ,ZZ,jZ,RZ,BZ,PZ,FZ,UZ,qZ,WZ,QZ,GZ,KZ,YZ,XZ,JZ,$Z,ej,tj,nj,rj,ij,oj,aj,lj,sj,cj,dj,uj,fj,hj,pj,mj,Cj,gj,vj,yj,wj,bj,Ej,Mj,Aj,xj,kj,Lj,Hj,Sj,_j,Vj,Oj,zj,Nj,Tj,Ij,Dj,Zj,jj,Rj,Bj,Pj,Fj,Uj,qj,Wj,Qj,Gj,Kj,Yj,Xj,Jj,$j,eR,tR,nR,rR,iR,oR,aR,lR,sR,cR,dR,uR,fR,hR,pR,mR,CR,gR,vR,yR,wR,bR={};function ER(){return _Z?SZ:(_Z=1,HZ||(HZ=1,function(e){if(!e.setImmediate){var t,n,r,i,o=1,a={},l=!1,s=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick(function(){u(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(r="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&u(+t.data.slice(r.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(r+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){u(e.data)},t=function(e){n.port2.postMessage(e)}):s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;t=function(t){var n=s.createElement("script");n.onreadystatechange=function(){u(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():t=function(e){setTimeout(u,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var i={callback:e,args:n};return a[o]=i,t(o),o++},c.clearImmediate=d}function d(e){delete a[e]}function u(e){if(l)setTimeout(u,0,e);else{var t=a[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===L?bR:L:self)),SZ=L.setImmediate)}function MR(){if(OZ)return VZ;OZ=1;var e=rT(),t=CT(),n=ZD(),r=eZ(),i=kZ(),o=OD?VD:(OD=1,VD=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):i<e.get("end")&&e.get("leaves").some(function(e){var t=e.get("start");return i===t&&(o=!0,!0)})}),o}),a=pT(),l=ER(),s=n.isBrowser("Firefox");function c(n,r,i,o,a){var l=e.replaceText(n.getCurrentContent(),n.getSelection(),r,i,o);return t.push(n,l,"insert-characters",a)}return VZ=function(e,n){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var d=e._latestEditorState,u=n.data;if(u)if(e.props.handleBeforeInput&&i(e.props.handleBeforeInput(u,d,n.timeStamp)))n.preventDefault();else{var f=d.getSelection(),h=f.getStartOffset(),p=f.getAnchorKey();if(!f.isCollapsed())return n.preventDefault(),void e.update(c(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!0));var m,C=c(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!1),g=!1;if(g||(g=o(e._latestCommittedEditorState)),!g){var v=d.getBlockTree(p),y=C.getBlockTree(p);g=v.size!==y.size||v.zip(y).some(function(e){var t=e[0],n=e[1],r=t.get("start"),i=r+(r>=h?u.length:0),o=t.get("end"),a=o+(o>=h?u.length:0),l=n.get("start"),s=n.get("end"),c=n.get("decoratorKey");return t.get("decoratorKey")!==c||t.get("leaves").size!==n.get("leaves").size||i!==l||a!==s||null!=c&&s-l!==o-r})}if(g||(m=u,g=s&&("'"==m||"/"==m)),g||(g=a(C.getDirectionMap()).get(p)!==a(d.getDirectionMap()).get(p)),g)return n.preventDefault(),C=t.set(C,{forceSelection:!0}),void e.update(C);C=t.set(C,{nativelyRenderedContent:C.getCurrentContent()}),e._pendingStateFromBeforeInput=C,l(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}},VZ}function AR(){if(ZZ)return DZ;ZZ=1;var e=YN();return DZ=function(t){var n=t.getSelection();return n.isCollapsed()?null:e(t.getCurrentContent(),n)}}function xR(){if(UZ)return FZ;UZ=1;var e=rT(),t=CT(),n=pZ(),r=AR(),i=CZ(),o=PZ?BZ:(PZ=1,BZ=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1});return FZ=function(a,l){var s,c=a._latestEditorState,d=c.getSelection(),u=l.target;if(d.isCollapsed())l.preventDefault();else{if(o(u)){var f=u;s=i(n.getScrollParent(f))}var h=r(c);a.setClipboard(h),a.setMode("cut"),setTimeout(function(){a.restoreEditorDOM(s),a.exitCurrentMode(),a.update(function(n){var r=e.removeRange(n.getCurrentContent(),n.getSelection(),"forward");return t.push(n,r,"remove-range")}(c))},0)}},FZ}function kR(){if(JZ)return XZ;JZ=1;var e=qN(),t=/[\uD800-\uDFFF]/;function n(e){return 55296<=e&&e<=57343}function r(e){return t.test(e)}function i(e,t){return 1+n(e.charCodeAt(t))}function o(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!r(e))return e.substr(t,n);var o=e.length;if(o<=0||t>o||n<=0)return"";var a=0;if(t>0){for(;t>0&&a<o;t--)a+=i(e,a);if(a>=o)return""}else if(t<0){for(a=o;t<0&&0<a;t++)a-=i(e,a-1);a<0&&(a=0)}var l=o;if(n<o)for(l=a;n>0&&l<o;n--)l+=i(e,l);return e.substring(a,l)}var a={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=i(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:i,hasSurrogateUnit:r,isCodeUnitInSurrogateRange:n,isSurrogatePair:function(t,n){if(0<=n&&n<t.length||("production"!==process.env.NODE_ENV?e(!1,"isSurrogatePair: Invalid index %s for string length %s.",n,t.length):e(!1)),n+1===t.length)return!1;var r=t.charCodeAt(n),i=t.charCodeAt(n+1);return 55296<=r&&r<=56319&&56320<=i&&i<=57343},strlen:function(e){if(!r(e))return e.length;for(var t=0,n=0;n<e.length;n+=i(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return o(e,t=t<n?t:n,r)},substr:o};return XZ=a}function LR(){if(ej)return $Z;ej=1;var e=MZ();function t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}}var n="production"!==process.env.NODE_ENV?function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];t.apply(void 0,[n].concat(i))}}:e;return $Z=n}function HR(){if(nj)return tj;nj=1;var e=LR();return tj=function(t,n){var r=t.getSelection();"production"!==process.env.NODE_ENV&&e(r.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var i=t.getCurrentContent(),o=r.getStartKey(),a=r.getStartOffset(),l=o,s=0;if(n>a){var c=i.getKeyBefore(o);if(null==c)l=o;else l=c,s=i.getBlockForKey(c).getText().length}else s=a-n;return r.merge({focusKey:l,focusOffset:s,isBackward:!0})},tj}function SR(){if(ij)return rj;ij=1;var e=rT(),t=cT()("draft_tree_data_support");return rj=function(n,r,i){var o=n.getSelection(),a=n.getCurrentContent(),l=o,s=o.getAnchorKey(),c=o.getFocusKey(),d=a.getBlockForKey(s);if(t&&"forward"===i&&s!==c)return a;if(o.isCollapsed()){if("forward"===i){if(n.isSelectionAtEndOfContent())return a;if(t)if(o.getAnchorOffset()===a.getBlockForKey(s).getLength()){var u=a.getBlockForKey(d.nextSibling);if(!u||0===u.getLength())return a}}else if(n.isSelectionAtStartOfContent())return a;if((l=r(n))===o)return a}return e.removeRange(a,l,i)}}function _R(){if(aj)return oj;aj=1;var e=CT(),t=kR(),n=HR(),r=SR();return oj=function(i){var o=r(i,function(e){var r=e.getSelection(),i=e.getCurrentContent(),o=r.getAnchorKey(),a=r.getAnchorOffset(),l=i.getBlockForKey(o).getText()[a-1];return n(e,l?t.getUTF16Length(l,0):1)},"backward");if(o===i.getCurrentContent())return i;var a=i.getSelection();return e.push(i,o.set("selectionBefore",a),a.isCollapsed()?"backspace-character":"remove-range")},oj}function VR(){if(sj)return lj;sj=1;var e=rT(),t=UD(),n=CT(),r=ZD(),i=$D().notEmptyKey,o=PD(),a=_R(),l=pT(),s=r.isEngine("Gecko");return lj=function(r,c){void 0!==r._pendingStateFromBeforeInput&&(r.update(r._pendingStateFromBeforeInput),r._pendingStateFromBeforeInput=void 0);var d=r.editor.ownerDocument.defaultView.getSelection(),u=d.anchorNode,f=d.isCollapsed,h=(null==u?void 0:u.nodeType)!==Node.TEXT_NODE&&(null==u?void 0:u.nodeType)!==Node.ELEMENT_NODE;if(null!=u&&!h){if(u.nodeType===Node.TEXT_NODE&&(null!==u.previousSibling||null!==u.nextSibling)){var p=u.parentNode;if(null==p)return;u.nodeValue=p.textContent;for(var m=p.firstChild;null!=m;m=m.nextSibling)m!==u&&p.removeChild(m)}var C=u.textContent,g=r._latestEditorState,v=l(o(u)),y=t.decode(v),w=y.blockKey,b=y.decoratorKey,E=y.leafKey,M=g.getBlockTree(w).getIn([b,"leaves",E]),A=M.start,x=M.end,k=g.getCurrentContent(),L=k.getBlockForKey(w),H=L.getText().slice(A,x);if(C.endsWith("\n\n")&&(C=C.slice(0,-1)),C!==H){var S,_,V,O,z=g.getSelection(),N=z.merge({anchorOffset:A,focusOffset:x,isBackward:!1}),T=L.getEntityAt(A),I=i(T)?k.getEntity(T):null,D="MUTABLE"===(null!=I?I.getMutability():null),Z=D?"spellcheck-change":"apply-entity",j=e.replaceText(k,N,C,L.getInlineStyleAt(A),D?L.getEntityAt(A):null);if(s)S=d.anchorOffset,_=d.focusOffset,O=(V=A+Math.min(S,_))+Math.abs(S-_),S=V,_=O;else{var R=C.length-H.length;V=z.getStartOffset(),O=z.getEndOffset(),S=f?O+R:V,_=O+R}var B=j.merge({selectionBefore:k.getSelectionAfter(),selectionAfter:z.merge({anchorOffset:S,focusOffset:_})});r.update(n.push(g,B,Z))}else{var P=c.nativeEvent.inputType;if(P){var F=function(e,t){return"deleteContentBackward"===e?a(t):t}(P,g);if(F!==g)return r.restoreEditorDOM(),void r.update(F)}}}},lj}function OR(){if(fj)return uj;fj=1;var e=ZD(),t=function(){if(dj)return cj;dj=1;var e=qD();return cj=function(t){return t.which===e.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))},cj}(),n=e.isPlatform("Mac OS X"),r={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return n&&e.altKey},usesMacOSHeuristics:function(){return n},hasCommandModifier:function(e){return n?!!e.metaKey&&!e.altKey:r.isCtrlKeyCommand(e)},isSoftNewlineEvent:t};return uj=r}function zR(){if(Cj)return mj;Cj=1;var e=ZD(),t=qN();var n=e.isBrowser("Chrome")?function(e){for(var n=e.cloneRange(),r=[],i=e.endContainer;null!=i;i=i.parentNode){var o=i===e.commonAncestorContainer;o?n.setStart(e.startContainer,e.startOffset):n.setStart(n.endContainer,0);var a,l=Array.from(n.getClientRects());if(r.push(l),o)return r.reverse(),(a=[]).concat.apply(a,r);n.setEndBefore(i)}"production"!==process.env.NODE_ENV?t(!1,"Found an unexpected detached subtree when getting range client rects."):t(!1)}:function(e){return Array.from(e.getClientRects())};return mj=n}function NR(){if(vj)return gj;vj=1;var e=kR(),t=jD(),n=zR(),r=qN();function i(e,t){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a<e.length;a++){var l=e[a];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),i=Math.max(i,l.top),o=Math.max(o,l.bottom))}return i<=r&&i-n<t&&o-r<t}function o(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}return gj=function(a){a.collapsed||("production"!==process.env.NODE_ENV?r(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):r(!1));var l=(a=a.cloneRange()).startContainer;1!==l.nodeType&&(l=l.parentNode);var s=function(e){var n=getComputedStyle(e),i=t(e),o=i.createElement("div");o.style.fontFamily=n.fontFamily,o.style.fontSize=n.fontSize,o.style.fontStyle=n.fontStyle,o.style.fontWeight=n.fontWeight,o.style.lineHeight=n.lineHeight,o.style.position="absolute",o.textContent="M";var a=i.body;a||("production"!==process.env.NODE_ENV?r(!1,"Missing document.body"):r(!1)),a.appendChild(o);var l=o.getBoundingClientRect();return a.removeChild(o),l.height}(l),c=a.endContainer,d=a.endOffset;for(a.setStart(a.startContainer,0);i(n(a),s)&&(c=a.startContainer,d=a.startOffset,c.parentNode||("production"!==process.env.NODE_ENV?r(!1,"Found unexpected detached subtree when traversing."):r(!1)),a.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var u=c,f=d-1;;){for(var h=u.nodeValue,p=f;p>=0;p--)if(!(null!=h&&p>0&&e.isSurrogatePair(h,p-1))){if(a.setStart(u,p),!i(n(a),s))break;c=u,d=p}if(-1===p||0===u.childNodes.length)break;f=o(u=u.childNodes[p])}return a.setStart(c,d),a},gj}function TR(){if(Ej)return bj;Ej=1;return bj={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}}function IR(){if(Aj)return Mj;Aj=1;var e="['‘’]",t="\\s|(?![_])"+TR().getPunctuation(),n=new RegExp("^(?:"+t+")*(?:"+e+"|(?!"+t+").)*(?:(?!"+t+").)"),r=new RegExp("(?:(?!"+t+").)(?:"+e+"|(?!"+t+").)*(?:"+t+")*$");function i(e,t){var i=t?r.exec(e):n.exec(e);return i?i[0]:e}return Mj={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}}}function DR(){if(Hj)return Lj;Hj=1;var e=LR();return Lj=function(t,n){var r=t.getSelection();"production"!==process.env.NODE_ENV&&e(r.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var i,o=r.getStartKey(),a=r.getStartOffset(),l=t.getCurrentContent(),s=o;return n>l.getBlockForKey(o).getText().length-a?(s=l.getKeyAfter(o),i=0):i=a+n,r.merge({focusKey:s,focusOffset:i})},Lj}function ZR(){if(Uj)return Fj;Uj=1;var e=rT(),t=CT(),n=OR(),r=qD(),i=function(){if(pj)return hj;pj=1;var e=rT(),t=CT(),n=YN(),r=pT(),i=null;return hj={cut:function(o){var a=o.getCurrentContent(),l=o.getSelection(),s=null;if(l.isCollapsed()){var c=l.getAnchorKey(),d=a.getBlockForKey(c).getLength();if(d===l.getAnchorOffset()){var u=a.getKeyAfter(c);if(null==u)return o;s=l.set("focusKey",u).set("focusOffset",0)}else s=l.set("focusOffset",d)}else s=l;s=r(s),i=n(a,s);var f=e.removeRange(a,s,"forward");return f===a?o:t.push(o,f,"remove-range")},paste:function(n){if(!i)return n;var r=e.replaceWithFragment(n.getCurrentContent(),n.getSelection(),i);return t.push(n,r,"insert-fragment")}}}(),o=ZD(),a=kZ(),l=function(){if(wj)return yj;wj=1;var e=CT(),t=NR(),n=YD(),r=HR(),i=SR();return yj=function(o,a){var l=i(o,function(e){var i=e.getSelection();if(i.isCollapsed()&&0===i.getAnchorOffset())return r(e,1);var o=a.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return o=t(o),n(e,null,o.endContainer,o.endOffset,o.startContainer,o.startOffset).selectionState},"backward");return l===o.getCurrentContent()?o:e.push(o,l,"remove-range")},yj}(),s=function(){if(kj)return xj;kj=1;var e=IR(),t=CT(),n=HR(),r=SR();return xj=function(i){var o=r(i,function(t){var r=t.getSelection(),i=r.getStartOffset();if(0===i)return n(t,1);var o=r.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(0,i),l=e.getBackward(a);return n(t,l.length||1)},"backward");return o===i.getCurrentContent()?i:t.push(i,o,"remove-range")},xj}(),c=function(){if(_j)return Sj;_j=1;var e=IR(),t=CT(),n=DR(),r=SR();return Sj=function(i){var o=r(i,function(t){var r=t.getSelection(),i=r.getStartOffset(),o=r.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(i),l=e.getForward(a);return n(t,l.length||1)},"forward");return o===i.getCurrentContent()?i:t.push(i,o,"remove-range")},Sj}(),d=function(){if(Oj)return Vj;Oj=1;var e=rT(),t=CT();return Vj=function(n){var r=e.splitBlock(n.getCurrentContent(),n.getSelection());return t.push(n,r,"split-block")}}(),u=function(){if(Nj)return zj;Nj=1;var e=CT();return zj=function(t){var n=t.getSelection(),r=n.getEndKey(),i=t.getCurrentContent().getBlockForKey(r).getLength();return e.set(t,{selection:n.merge({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}),forceSelection:!0})}}(),f=function(){if(Ij)return Tj;Ij=1;var e=CT();return Tj=function(t){var n=t.getSelection(),r=n.getStartKey();return e.set(t,{selection:n.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}}(),h=_R(),p=function(){if(Zj)return Dj;Zj=1;var e=CT(),t=kR(),n=DR(),r=SR();return Dj=function(i){var o=r(i,function(e){var r=e.getSelection(),i=e.getCurrentContent(),o=r.getAnchorKey(),a=r.getAnchorOffset(),l=i.getBlockForKey(o).getText()[a];return n(e,l?t.getUTF16Length(l,0):1)},"forward");if(o===i.getCurrentContent())return i;var a=i.getSelection();return e.push(i,o.set("selectionBefore",a),a.isCollapsed()?"delete-character":"remove-range")},Dj}(),m=function(){if(Rj)return jj;Rj=1;var e=rT(),t=CT(),n=YN();return jj=function(r){var i=r.getSelection();if(!i.isCollapsed())return r;var o=i.getAnchorOffset();if(0===o)return r;var a,l,s=i.getAnchorKey(),c=r.getCurrentContent(),d=c.getBlockForKey(s).getLength();if(d<=1)return r;o===d?(a=i.set("anchorOffset",o-1),l=i):l=(a=i.set("focusOffset",o+1)).set("anchorOffset",o+1);var u=n(c,a),f=e.removeRange(c,a,"backward"),h=f.getSelectionAfter(),p=h.getAnchorOffset()-1,m=h.merge({anchorOffset:p,focusOffset:p}),C=e.replaceWithFragment(f,m,u),g=t.push(r,C,"insert-fragment");return t.acceptSelection(g,l)}}(),C=function(){if(Pj)return Bj;Pj=1;var e=CT();return Bj=function(t,n,r){var i=e.undo(n);if("spellcheck-change"!==n.getLastChangeType())t.preventDefault(),n.getNativelyRenderedContent()?(r(e.set(n,{nativelyRenderedContent:null})),setTimeout(function(){r(i)},0)):r(i);else{var o=i.getCurrentContent();r(e.set(i,{nativelyRenderedContent:o}))}},Bj}(),g=n.isOptionKeyCommand,v=o.isBrowser("Chrome");return Fj=function(n,o){var y=o.which,w=n._latestEditorState;function b(e){var t=n.props[e];return!!t&&(t(o),!0)}switch(y){case r.RETURN:if(o.preventDefault(),n.props.handleReturn&&a(n.props.handleReturn(o,w)))return;break;case r.ESC:if(o.preventDefault(),b("onEscape"))return;break;case r.TAB:if(b("onTab"))return;break;case r.UP:if(b("onUpArrow"))return;break;case r.RIGHT:if(b("onRightArrow"))return;break;case r.DOWN:if(b("onDownArrow"))return;break;case r.LEFT:if(b("onLeftArrow"))return;break;case r.SPACE:v&&g(o)&&o.preventDefault()}var E=n.props.keyBindingFn(o);if(null!=E&&""!==E)if("undo"!==E){if(o.preventDefault(),!n.props.handleKeyCommand||!a(n.props.handleKeyCommand(E,w,o.timeStamp))){var M=function(e,n,r){switch(e){case"redo":return t.redo(n);case"delete":return p(n);case"delete-word":return c(n);case"backspace":return h(n);case"backspace-word":return s(n);case"backspace-to-start-of-line":return l(n,r);case"split-block":return d(n);case"transpose-characters":return m(n);case"move-selection-to-start-of-block":return f(n);case"move-selection-to-end-of-block":return u(n);case"secondary-cut":return i.cut(n);case"secondary-paste":return i.paste(n);default:return n}}(E,w,o);M!==w&&n.update(M)}}else C(o,w,n.update);else if(y===r.SPACE&&v&&g(o)){var A=e.replaceText(w.getCurrentContent(),w.getSelection()," ");n.update(t.push(w,A,"insert-characters"))}},Fj}function jR(){if(Wj)return qj;Wj=1;var e=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}();return qj=e}function RR(){if(Gj)return Qj;Gj=1;var e=ZD(),t=qN(),n=e.isBrowser("IE <= 9");return Qj=function(e){var r,i=null;return!n&&document.implementation&&document.implementation.createHTMLDocument&&((r=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?t(!1,"Missing doc.documentElement"):t(!1)),r.documentElement.innerHTML=e,i=r.getElementsByTagName("body")[0]),i},Qj}function BR(){if(eR)return $j;var e;function t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}eR=1;var r=RN(),i=PN(),o=FN(),a=wT(),l=lT(),s=jR(),c=yT(),d=QN(),u=RR(),f=cT(),h=ZN(),p=h.List,m=h.Map,C=h.OrderedSet,g=function(){if(Yj)return Kj;Yj=1;var e=RD();return Kj=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"A"===t.nodeName}}(),v=iZ(),y=QD(),w=function(){if(Jj)return Xj;Jj=1;var e=RD();return Xj=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"IMG"===t.nodeName}}(),b=f("draft_tree_data_support"),E=new RegExp("\r","g"),M=new RegExp("\n","g"),A=new RegExp("^\n","g"),x=new RegExp("&nbsp;","g"),k=new RegExp("&#13;?","g"),L=new RegExp("&#8203;?","g"),H=["bold","bolder","500","600","700","800","900"],S=["light","lighter","normal","100","200","300","400"],_=["className","href","rel","target","title"],V=["alt","className","height","src","width"],O=(n(e={},c("public/DraftStyleDefault/depth0"),0),n(e,c("public/DraftStyleDefault/depth1"),1),n(e,c("public/DraftStyleDefault/depth2"),2),n(e,c("public/DraftStyleDefault/depth3"),3),n(e,c("public/DraftStyleDefault/depth4"),4),e),z=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),N=function(e){if(y(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(O).some(function(n){e.classList.contains(n)&&(t=O[n])}),t},I=function(e){if(!g(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new s(t.href);return!0}catch(e){return!1}},D=function(e){if(!w(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},Z=function(e,t){if(!y(e))return t;var n=e,r=n.style.fontWeight,i=n.style.fontStyle,o=n.style.textDecoration;return t.withMutations(function(e){H.indexOf(r)>=0?e.add("BOLD"):S.indexOf(r)>=0&&e.remove("BOLD"),"italic"===i?e.add("ITALIC"):"normal"===i&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})},j=function(e){return"ul"===e||"ol"===e},R=function(){function e(e,t){n(this,"characterList",p()),n(this,"currentBlockType","unstyled"),n(this,"currentDepth",0),n(this,"currentEntity",null),n(this,"currentText",""),n(this,"wrapper",null),n(this,"blockConfigs",[]),n(this,"contentBlocks",[]),n(this,"entityMap",l),n(this,"blockTypeMap",void 0),n(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var a=e.prototype;return a.clear=function(){this.characterList=p(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},a.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],C())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},a.getContentBlocks=function(){return 0===this.contentBlocks.length&&(b?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},a._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:p(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=p(),this.currentBlockType="unstyled",this.currentText="",n},a._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=i.nodeName.toLowerCase();if("body"===o||j(o)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;j(o)&&(this.wrapper=o,j(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),t)),this.currentDepth=a,this.wrapper=l}else{var s=this.blockTypeMap.get(o);if(void 0===s)if("#text"!==o)if("br"!==o)if(D(i))this._addImgNode(i,t);else if(I(i))this._addAnchorNode(i,n,t);else{var c=t;z.has(o)&&(c=c.add(z.get(o))),c=Z(i,c);var u=N(i);null!=u&&(c=c.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),c))}else this._addBreakNode(i,t);else this._addTextNode(i,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,h=this.wrapper;if(this.wrapper="pre"===o?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(o,this.wrapper)||s[0]||"unstyled"),!b&&y(i)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=i;this.currentDepth=T(p,this.currentDepth)}var m=d(),C=this._toBlockConfigs(Array.from(i.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:m,childConfigs:C,type:s})),this.currentDepth=f,this.wrapper=h}}}return n},a._appendText=function(e,t){var n;this.currentText+=e;var i=r.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(i))},a._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry(function(e){return null!==e.getEntity()});(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry(function(e){return null!==e.getEntity()}))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=p()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},a._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(A,"")).replace(M," ")),this._appendText(n,t)},a._addBreakNode=function(e,t){v(e)&&this._appendText("\n",t)},a._addImgNode=function(e,t){if(w(e)){var n=e,r={};V.forEach(function(e){var t=n.getAttribute(e);t&&(r[e]=t)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),f("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},a._addAnchorNode=function(e,t,n){if(g(e)){var r=e,i={};_.forEach(function(e){var t=r.getAttribute(e);t&&(i[e]=t)}),i.url=new s(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},a._toContentBlocks=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.length-1,i=0;i<=r;i++){var a=e[i];a.parent=n,a.prevSibling=i>0?e[i-1].key:null,a.nextSibling=i<r?e[i+1].key:null,a.children=p(a.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new o(t({},a))),this._toContentBlocks(a.childConfigs,a.key)}},a._hoistContainersInBlockConfigs=function(e){var t=this;return p(e).flatMap(function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},a._toFlatContentBlocks=function(e){var n=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var r=n._extractTextFromBlockConfigs(e.childConfigs),o=r.text,a=r.characterList;n.contentBlocks.push(new i(t({},e,{text:e.text+o,characterList:e.characterList.concat(a)})))})},a._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=p(),i=0;i<=t;i++){var o=e[i];n+=o.text,r=r.concat(o.characterList),""!==n&&"unstyled"!==o.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(o.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}();return $j=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:u)(e=e.trim().replace(E,"").replace(x," ").replace(k,"").replace(L,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys(function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach(function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)})}),m(t)}(t);return new R(r,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()},$j}function PR(){if(nR)return tR;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nR=1;var t=PN(),n=FN(),r=BR(),i=QN(),o=RR(),a=cT(),l=ZN(),s=dT(),c=l.List,d=l.Repeat,u=a("draft_tree_data_support"),f=u?n:t,h={processHTML:function(e,t){return r(e,o,t)},processText:function(t,n,r){return t.reduce(function(t,o,a){o=s(o);var l=i(),h={key:l,type:r,text:o,characterList:c(d(n,o.length))};if(u&&0!==a){var p=a-1;h=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){e(t,n,r[n])})}return t}({},h,{prevSibling:(t[p]=t[p].merge({nextSibling:l})).getKey()})}return t.push(new f(h)),t},[])}};return tR=h}function FR(){if(aR)return oR;aR=1;var e=rT(),t=CT(),n=(iR||(iR=1,rR=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),l=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(l),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}),rR),r=pT(),i={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return i.toggleInlineStyle(e,"BOLD");case"italic":return i.toggleInlineStyle(e,"ITALIC");case"underline":return i.toggleInlineStyle(e,"UNDERLINE");case"code":return i.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return i.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return i.onDelete(e);default:return null}},insertSoftNewline:function(n){var r=e.insertText(n.getCurrentContent(),n.getSelection(),"\n",n.getCurrentInlineStyle(),null),i=t.push(n,r,"insert-characters");return t.forceSelection(i,r.getSelectionAfter())},onBackspace:function(e){var n=e.getSelection();if(!n.isCollapsed()||n.getAnchorOffset()||n.getFocusOffset())return null;var r=e.getCurrentContent(),o=n.getStartKey(),a=r.getBlockBefore(o);if(a&&"atomic"===a.getType()){var l=r.getBlockMap().delete(a.getKey()),s=r.merge({blockMap:l,selectionAfter:n});if(s!==r)return t.push(e,s,"remove-range")}var c=i.tryToRemoveBlockStyle(e);return c?t.push(e,c,"change-block-type"):null},onDelete:function(n){var r=n.getSelection();if(!r.isCollapsed())return null;var i=n.getCurrentContent(),o=r.getStartKey(),a=i.getBlockForKey(o).getLength();if(r.getStartOffset()<a)return null;var l=i.getBlockAfter(o);if(!l||"atomic"!==l.getType())return null;var s=r.merge({focusKey:l.getKey(),focusOffset:l.getLength()}),c=e.removeRange(i,s,"forward");return c!==i?t.push(n,c,"remove-range"):null},onTab:function(e,r,i){var o=r.getSelection(),a=o.getAnchorKey();if(a!==o.getFocusKey())return r;var l=r.getCurrentContent(),s=l.getBlockForKey(a),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return r;e.preventDefault();var d=s.getDepth();if(!e.shiftKey&&d===i)return r;var u=n(l,o,e.shiftKey?-1:1,i);return t.push(r,u,"adjust-depth")},toggleBlockType:function(n,i){var o=n.getSelection(),a=o.getStartKey(),l=o.getEndKey(),s=n.getCurrentContent(),c=o;if(a!==l&&0===o.getEndOffset()){var d=r(s.getBlockBefore(l));l=d.getKey(),c=c.merge({anchorKey:a,anchorOffset:o.getStartOffset(),focusKey:l,focusOffset:d.getLength(),isBackward:!1})}var u=s.getBlockMap().skipWhile(function(e,t){return t!==a}).reverse().skipWhile(function(e,t){return t!==l}).some(function(e){return"atomic"===e.getType()});if(u)return n;var f=s.getBlockForKey(a).getType()===i?"unstyled":i;return t.push(n,e.setBlockType(s,c,f),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?i.toggleBlockType(e,"code-block"):i.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(n,r){var i=n.getSelection(),o=n.getCurrentInlineStyle();if(i.isCollapsed())return t.setInlineStyleOverride(n,o.has(r)?o.remove(r):o.add(r));var a,l=n.getCurrentContent();return a=o.has(r)?e.removeInlineStyle(l,i,r):e.applyInlineStyle(l,i,r),t.push(n,a,"change-inline-style")},toggleLink:function(n,r,i){var o=e.applyEntity(n.getCurrentContent(),r,i);return t.push(n,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var n=t.getSelection(),r=n.getAnchorOffset();if(n.isCollapsed()&&0===r){var i=n.getAnchorKey(),o=t.getCurrentContent(),a=o.getBlockForKey(i).getType(),l=o.getBlockBefore(i);if("code-block"===a&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==a)return e.setBlockType(o,n,"unstyled")}return null}};return oR=i}function UR(){if(dR)return cR;dR=1;var e=jN(),t=RN(),n=AZ(),r=rT(),i=PR(),o=CT(),a=FR(),l=eZ(),s=xZ(),c=kZ(),d=function(){if(sR)return lR;sR=1;var e=/\r\n?|\n/g;return lR=function(t){return t.split(e)}}();function u(e,t,n){var i=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return o.push(e,i.set("entityMap",n),"insert-fragment")}return cR=function(f,h){h.preventDefault();var p=new n(h.clipboardData);if(!p.isRichText()){var m=p.getFiles(),C=p.getText();if(m.length>0){if(f.props.handlePastedFiles&&c(f.props.handlePastedFiles(m)))return;return void s(m,function(n){if(n=n||C){var s=f._latestEditorState,c=d(n),u=t.create({style:s.getCurrentInlineStyle(),entity:l(s.getCurrentContent(),s.getSelection())}),h=a.getCurrentBlockType(s),p=i.processText(c,u,h),m=e.createFromArray(p),g=r.replaceWithFragment(s.getCurrentContent(),s.getSelection(),m);f.update(o.push(s,g,"insert-fragment"))}})}}var g=[],v=p.getText(),y=p.getHTML(),w=f._latestEditorState;if(f.props.formatPastedText){var b=f.props.formatPastedText(v,y);v=b.text,y=b.html}if(!f.props.handlePastedText||!c(f.props.handlePastedText(v,y,w))){if(v&&(g=d(v)),!f.props.stripPastedStyles){var E,M=f.getClipboard();if(!f.props.formatPastedText&&p.isRichText()&&M){if(-1!==(null===(E=y)||void 0===E?void 0:E.indexOf(f.getEditorKey()))||1===g.length&&1===M.size&&M.first().getText()===v)return void f.update(u(f._latestEditorState,M))}else if(M&&p.types.includes("com.apple.webarchive")&&!p.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(g,M))return void f.update(u(f._latestEditorState,M));if(y){var A=i.processHTML(y,f.props.blockRenderMap);if(A){var x=A.contentBlocks,k=A.entityMap;if(x){var L=e.createFromArray(x);return void f.update(u(f._latestEditorState,L,k))}}}f.setClipboard(null)}if(g.length){var H=t.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),S=a.getCurrentBlockType(w),_=i.processText(g,H,S),V=e.createFromArray(_);f.update(u(f._latestEditorState,V))}}},cR}function qR(){if(fR)return uR;fR=1;var e=ZD(),t=MR(),n=function(){if(NZ)return zZ;NZ=1;var e=CT(),t=lZ(),n=sZ();return zZ=function(r,i){var o=i.currentTarget.ownerDocument;if(!Boolean(r.props.preserveSelectionOnBlur)&&n(o)===o.body){var a=o.defaultView.getSelection(),l=r.editor;1===a.rangeCount&&t(l,a.anchorNode)&&t(l,a.focusNode)&&a.removeAllRanges()}var s=r._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var d=c.set("hasFocus",!1);r.props.onBlur&&r.props.onBlur(i),r.update(e.acceptSelection(s,d))}},zZ}(),r=function(){if(IZ)return TZ;IZ=1;var e=CT();return TZ=function(t,n){t.setMode("composite"),t.update(e.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(n)},TZ}(),i=function(){if(RZ)return jZ;RZ=1;var e=AR();return jZ=function(t,n){t._latestEditorState.getSelection().isCollapsed()?n.preventDefault():t.setClipboard(e(t._latestEditorState))},jZ}(),o=xR(),a=(WZ||(WZ=1,qZ=function(e,t){e.setMode("drag"),t.preventDefault()}),qZ),l=GZ?QZ:(GZ=1,QZ=function(e){e._internalDrag=!0,e.setMode("drag")}),s=function(){if(YZ)return KZ;YZ=1;var e=CT(),t=ZD();return KZ=function(n,r){var i=n._latestEditorState,o=i.getSelection();if(!o.getHasFocus()){var a=o.set("hasFocus",!0);n.props.onFocus&&n.props.onFocus(r),t.isBrowser("Chrome < 60.0.3081.0")?n.update(e.forceSelection(i,a)):n.update(e.acceptSelection(i,a))}},KZ}(),c=VR(),d=ZR(),u=UR(),f=JD(),h=e.isBrowser("Chrome"),p=e.isBrowser("Firefox"),m=h||p?f:function(e){};return uR={onBeforeInput:t,onBlur:n,onCompositionStart:r,onCopy:i,onCut:o,onDragOver:a,onDragStart:l,onFocus:s,onInput:c,onKeyDown:d,onPaste:u,onSelect:f,onMouseUp:m,onKeyUp:m}}function WR(){if(CR)return mR;CR=1;var e=i,t=yT(),n=function(n){var r,i;function o(){return n.apply(this,arguments)||this}i=n,(r=o).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var a=o.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var n=this.props.editorState.getSelection().getHasFocus(),r=t({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":n});return e.createElement("div",{className:r},e.createElement("div",{className:t("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},o}(e.Component);return mR=n}function QR(){if(vR)return gR;vR=1;var e=OR(),t=qD(),n=ZD(),r=n.isPlatform("Mac OS X"),i=r&&n.isBrowser("Firefox < 29"),o=e.hasCommandModifier,a=e.isCtrlKeyCommand;function l(e){return r&&e.altKey||a(e)}return gR=function(e){switch(e.keyCode){case 66:return o(e)?"bold":null;case 68:return a(e)?"delete":null;case 72:return a(e)?"backspace":null;case 73:return o(e)?"italic":null;case 74:return o(e)?"code":null;case 75:return r&&a(e)?"secondary-cut":null;case 77:case 79:return a(e)?"split-block":null;case 84:return r&&a(e)?"transpose-characters":null;case 85:return o(e)?"underline":null;case 87:return r&&a(e)?"backspace-word":null;case 89:return a(e)?r?"secondary-paste":"redo":null;case 90:return function(e){return o(e)?e.shiftKey?"redo":"undo":null}(e)||null;case t.RETURN:return"split-block";case t.DELETE:return function(e){return!r&&e.shiftKey?null:l(e)?"delete-word":"delete"}(e);case t.BACKSPACE:return function(e){return o(e)&&r?"backspace-to-start-of-line":l(e)?"backspace-word":"backspace"}(e);case t.LEFT:return i&&o(e)?"move-selection-to-start-of-block":null;case t.RIGHT:return i&&o(e)?"move-selection-to-end-of-block":null;default:return null}},gR}function GR(){if(wR)return yR;wR=1;var e=jh();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var l=wT(),s=bT(),c=tZ(),d=function(){if(CD)return mD;CD=1;var e=cT()("draft_tree_data_support");return mD=e?yZ():bZ()}(),u=LZ(),f=qR(),h=function(){if(pR)return hR;pR=1;var e=M.unstable_flushControlled;return hR=e}(),p=WR(),m=oZ(),C=CT(),g=i,v=fZ(),y=pZ(),w=ZD(),b=yT(),E=QN(),A=QR(),x=CZ(),k=cT(),H=qN(),S=QD(),_=pT(),V=w.isBrowser("IE"),O=!V,z={edit:f,composite:c,drag:u,cut:null,render:null},N=!1,T=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(g.Component),I=function(e){function i(t){var i;return o(r(i=e.call(this,t)||this),"_blockSelectEvents",void 0),o(r(i),"_clipboard",void 0),o(r(i),"_handler",void 0),o(r(i),"_dragCount",void 0),o(r(i),"_internalDrag",void 0),o(r(i),"_editorKey",void 0),o(r(i),"_placeholderAccessibilityID",void 0),o(r(i),"_latestEditorState",void 0),o(r(i),"_latestCommittedEditorState",void 0),o(r(i),"_pendingStateFromBeforeInput",void 0),o(r(i),"_onBeforeInput",void 0),o(r(i),"_onBlur",void 0),o(r(i),"_onCharacterData",void 0),o(r(i),"_onCompositionEnd",void 0),o(r(i),"_onCompositionStart",void 0),o(r(i),"_onCopy",void 0),o(r(i),"_onCut",void 0),o(r(i),"_onDragEnd",void 0),o(r(i),"_onDragOver",void 0),o(r(i),"_onDragStart",void 0),o(r(i),"_onDrop",void 0),o(r(i),"_onInput",void 0),o(r(i),"_onFocus",void 0),o(r(i),"_onKeyDown",void 0),o(r(i),"_onKeyPress",void 0),o(r(i),"_onKeyUp",void 0),o(r(i),"_onMouseDown",void 0),o(r(i),"_onMouseUp",void 0),o(r(i),"_onPaste",void 0),o(r(i),"_onSelect",void 0),o(r(i),"editor",void 0),o(r(i),"editorContainer",void 0),o(r(i),"focus",void 0),o(r(i),"blur",void 0),o(r(i),"setMode",void 0),o(r(i),"exitCurrentMode",void 0),o(r(i),"restoreEditorDOM",void 0),o(r(i),"setClipboard",void 0),o(r(i),"getClipboard",void 0),o(r(i),"getEditorKey",void 0),o(r(i),"update",void 0),o(r(i),"onDragEnter",void 0),o(r(i),"onDragLeave",void 0),o(r(i),"_handleEditorContainerRef",function(e){i.editorContainer=e,i.editor=null!==e?e.firstChild:null}),o(r(i),"focus",function(e){var t=i.props.editorState,n=t.getSelection().getHasFocus(),r=i.editor;if(r){var o=y.getScrollParent(r),a=e||x(o),l=a.x,s=a.y;S(r)||("production"!==process.env.NODE_ENV?H(!1,"editorNode is not an HTMLElement"):H(!1)),r.focus(),o===window?window.scrollTo(l,s):v.setTop(o,s),n||i.update(C.forceSelection(t,t.getSelection()))}}),o(r(i),"blur",function(){var e=i.editor;e&&(S(e)||("production"!==process.env.NODE_ENV?H(!1,"editorNode is not an HTMLElement"):H(!1)),e.blur())}),o(r(i),"setMode",function(e){var t=i.props,r=t.onPaste,o=t.onCut,a=t.onCopy,l=n({},z.edit);r&&(l.onPaste=r),o&&(l.onCut=o),a&&(l.onCopy=a);var s=n({},z,{edit:l});i._handler=s[e]}),o(r(i),"exitCurrentMode",function(){i.setMode("edit")}),o(r(i),"restoreEditorDOM",function(e){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(e)})}),o(r(i),"setClipboard",function(e){i._clipboard=e}),o(r(i),"getClipboard",function(){return i._clipboard}),o(r(i),"update",function(e){i._latestEditorState=e,i.props.onChange(e)}),o(r(i),"onDragEnter",function(){i._dragCount++}),o(r(i),"onDragLeave",function(){i._dragCount--,0===i._dragCount&&i.exitCurrentMode()}),i._blockSelectEvents=!1,i._clipboard=null,i._handler=null,i._dragCount=0,i._editorKey=t.editorKey||E(),i._placeholderAccessibilityID="placeholder-"+i._editorKey,i._latestEditorState=t.editorState,i._latestCommittedEditorState=t.editorState,i._onBeforeInput=i._buildHandler("onBeforeInput"),i._onBlur=i._buildHandler("onBlur"),i._onCharacterData=i._buildHandler("onCharacterData"),i._onCompositionEnd=i._buildHandler("onCompositionEnd"),i._onCompositionStart=i._buildHandler("onCompositionStart"),i._onCopy=i._buildHandler("onCopy"),i._onCut=i._buildHandler("onCut"),i._onDragEnd=i._buildHandler("onDragEnd"),i._onDragOver=i._buildHandler("onDragOver"),i._onDragStart=i._buildHandler("onDragStart"),i._onDrop=i._buildHandler("onDrop"),i._onInput=i._buildHandler("onInput"),i._onFocus=i._buildHandler("onFocus"),i._onKeyDown=i._buildHandler("onKeyDown"),i._onKeyPress=i._buildHandler("onKeyPress"),i._onKeyUp=i._buildHandler("onKeyUp"),i._onMouseDown=i._buildHandler("onMouseDown"),i._onMouseUp=i._buildHandler("onMouseUp"),i._onPaste=i._buildHandler("onPaste"),i._onSelect=i._buildHandler("onSelect"),i.getEditorKey=function(){return i._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach(function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")}),i.state={contentsKey:0},i}a(i,e);var l=i.prototype;return l._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(h?h(function(){return r(t,n)}):r(t,n))}}},l._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},l._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:_(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return g.createElement(p,e)}return null},l._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},l.render=function(){var e=this.props,r=e.blockRenderMap,i=e.blockRendererFn,o=e.blockStyleFn,a=e.customStyleFn,l=e.customStyleMap,c=e.editorState,u=e.preventScroll,f=e.readOnly,h=e.textAlignment,p=e.textDirectionality,m=b({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),C=this.props.role||"textbox",v="combobox"===C?!!this.props.ariaExpanded:null,y={blockRenderMap:r,blockRendererFn:i,blockStyleFn:o,customStyleMap:n({},s,l),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:p};return g.createElement("div",{className:m},this._renderPlaceholder(),g.createElement("div",{className:b("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},g.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:b({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:f?null:C,spellCheck:O&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},g.createElement(T,{editor:this,editorState:c}),g.createElement(d,t({},y,{key:"contents"+this.state.contentsKey})))))},l.componentDidMount=function(){this._blockSelectEvents=!1,!N&&k("draft_ods_enabled")&&(N=!0,m.initODS()),this.setMode("edit"),V&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):L.execCommand("AutoUrlDetect",!1,!1))},l.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},i}(g.Component);return o(I,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:l,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:A,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),yR=I}var KR,YR,XR,JR,$R,eB,tB,nB,rB,iB,oB,aB,lB,sB,cB,dB,uB,fB,hB,pB,mB,CB,gB,vB,yB,wB,bB,EB={};function MB(){return KR||(KR=1),EB}function AB(){if(XR)return YR;XR=1;var e={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};return YR=e}function xB(){if(tB)return eB;tB=1;var e=kR(),t=BN(),n=function(e,t){return e===t},r=function(e){return!!e},i=[];return eB=function(o){var a=o.getCharacterList().map(function(e){return e.getStyle()}).toList(),l=a.flatten().toSet().map(function(i){return function(i,o,a){var l=[],s=o.map(function(e){return e.has(a)}).toList();return t(s,n,r,function(t,n){var r=i.getText();l.push({offset:e.strlen(r.slice(0,t)),length:e.strlen(r.slice(t,n)),style:a})}),l}(o,a,i)});return Array.prototype.concat.apply(i,l.toJS())}}function kB(){if(rB)return nB;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rB=1;var t=PN(),n=FN(),r=AB(),i=function(){if($R)return JR;$R=1;var e=AB(),t=kR().strlen;return JR=function(n,r){var i=[];return n.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var l=n.getText(),s=n.getEntityAt(o);i.push({offset:t(l.slice(0,o)),length:t(l.slice(o,a)),key:Number(r[e.stringify(s)])})}),i},JR}(),o=xB(),a=qN(),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:o(e),entityRanges:i(e,t),data:e.getData().toObject()}},s=function(r,i,o,s){if(r instanceof t)o.push(l(r,i));else{r instanceof n||("production"!==process.env.NODE_ENV?a(!1,"block is not a BlockNode"):a(!1));var c=r.getParentKey(),d=s[r.getKey()]=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){e(t,n,r[n])})}return t}({},l(r,i),{children:[]});c?s[c].children.push(d):o.push(d)}};return nB=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,i=[],o={},a={},l=0;return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return null!==e.getEntity()},function(t){var i=e.getEntityAt(t),o=r.stringify(i);a[o]||(a[o]=i,n[o]="".concat(l),l++)}),s(e,n,i,o)}),{blocks:i,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,i=t.entityMap,o={};return Object.keys(i).forEach(function(t,n){var i=e.getEntity(r.unstringify(t));o[n]={type:i.getType(),mutability:i.getMutability(),data:i.getData()}}),{blocks:n,entityMap:o}}(e,t),t},nB}function LB(){if(oB)return iB;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}oB=1;var n=QN(),r=qN(),i=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},o={fromRawTreeStateToRawState:function(t){var n=t.blocks,o=[];return Array.isArray(n)||("production"!==process.env.NODE_ENV?r(!1,"Invalid raw state"):r(!1)),Array.isArray(n)&&n.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var i=n.pop();t(i);var o=i.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?r(!1,"Invalid tree raw block"):r(!1)),n=n.concat([].concat(o.reverse()))}}(n,function(t){var n=e({},t);i(t)&&(n.depth=n.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(n){return n.type===t.type?e({},n,{depth:(t.depth||0)+1}):n}))}(t),null!=t.children&&t.children.length>0)||(delete n.children,o.push(n))}),t.blocks=o,e({},t,{blocks:o})):t},fromRawStateToRawTreeState:function(t){var r=[],o=[];return t.blocks.forEach(function(t){var a=i(t),l=t.depth||0,s=e({},t,{children:[]});if(a){var c=o[0];if(null==c&&0===l)r.push(s);else if(null==c||c.depth<l-1){var d={key:n(),text:"",depth:l-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};o.unshift(d),1===l?r.push(d):null!=c&&c.children.push(d),d.children.push(s)}else if(c.depth===l-1)c.children.push(s);else{for(;null!=c&&c.depth>=l;)o.shift(),c=o[0];l>0?c.children.push(s):r.push(s)}}else r.push(s)}),e({},t,{blocks:r})}};return iB=o}function HB(){if(mB)return pB;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(n){t(e,n,r[n])})}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}mB=1;var n=PN(),r=FN(),i=uT(),o=lT(),a=LB(),l=function(){if(lB)return aB;lB=1;var e=LR(),t={isValidBlock:function(t,n){var r=t.getKey(),i=t.getParentKey();if(null!=i&&!n.get(i).getChildKeys().includes(r))return"production"!==process.env.NODE_ENV&&e(!0,"Tree is missing parent -> child pointer on %s",r),!1;var o=t.getChildKeys().map(function(e){return n.get(e)});if(!o.every(function(e){return e.getParentKey()===r}))return"production"!==process.env.NODE_ENV&&e(!0,"Tree is missing child -> parent pointer on %s",r),!1;var a=t.getPrevSiblingKey();if(null!=a&&n.get(a).getNextSiblingKey()!==r)return"production"!==process.env.NODE_ENV&&e(!0,"Tree is missing nextSibling pointer on %s's prevSibling",r),!1;var l=t.getNextSiblingKey();return null!=l&&n.get(l).getPrevSiblingKey()!==r?("production"!==process.env.NODE_ENV&&e(!0,"Tree is missing prevSibling pointer on %s's nextSibling",r),!1):null!==l&&null!==a&&a===l?("production"!==process.env.NODE_ENV&&e(!0,"Tree has a two-node cycle at %s",r),!1):!(""!=t.text&&t.getChildKeys().size>0&&("production"!==process.env.NODE_ENV&&e(!0,"Leaf node %s has children",r),1))},isConnectedTree:function(t){var n=t.toArray().filter(function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()});if(1!==n.length)return"production"!==process.env.NODE_ENV&&e(!0,"Tree is not connected. More or less than one first node"),!1;for(var r=0,i=n.shift().getKey(),o=[];null!=i;){var a=t.get(i),l=a.getChildKeys(),s=a.getNextSiblingKey();if(l.size>0){null!=s&&o.unshift(s);var c=l.map(function(e){return t.get(e)}),d=c.find(function(e){return null==e.getPrevSiblingKey()});if(null==d)return"production"!==process.env.NODE_ENV&&e(!0,"%s has no first child",i),!1;i=d.getKey()}else i=null!=a.getNextSiblingKey()?a.getNextSiblingKey():o.shift();r++}return r===t.size||("production"!==process.env.NODE_ENV&&e(!0,"Tree is not connected. %s nodes were seen instead of %s",r,t.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every(function(n){return t.isValidBlock(n,e)})&&this.isConnectedTree(e)}};return aB=t}(),s=sT(),c=function(){if(cB)return sB;cB=1;var e=RN(),t=ZN().List;return sB=function(n,r){var i=n.map(function(t,n){var i=r[n];return e.create({style:t,entity:i})});return t(i)}}(),d=function(){if(uB)return dB;uB=1;var e=kR().substr;return dB=function(t,n){var r=Array(t.length).fill(null);return n&&n.forEach(function(n){for(var i=e(t,0,n.offset).length,o=i+e(t,n.offset,n.length).length,a=i;a<o;a++)r[a]=n.key}),r},dB}(),u=function(){if(hB)return fB;hB=1;var e=kR(),t=ZN().OrderedSet,n=e.substr,r=t();return fB=function(e,t){var i=Array(e.length).fill(r);return t&&t.forEach(function(t){for(var r=n(e,0,t.offset).length,o=r+n(e,t.offset,t.length).length;r<o;)i[r]=i[r].add(t.style),r++}),i},fB}(),f=QN(),h=cT(),p=ZN(),m=qN(),C=h("draft_tree_data_support"),g=p.List,v=p.Map,y=p.OrderedMap,w=function(e,t){var n=e.key,r=e.type,i=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||f(),data:v(i),characterList:b(e,t)}},b=function(t,n){var r=t.text,i=t.entityRanges,o=t.inlineStyleRanges,a=i||[];return c(u(r,o||[]),d(r,a.filter(function(e){return n.hasOwnProperty(e.key)}).map(function(t){return e({},t,{key:n[t.key]})})))},E=function(t){return e({},t,{key:t.key||f()})},M=function(t,n,r){var i=n.map(function(t){return e({},t,{parentRef:r})});return t.concat(i.reverse())},A=function(t,i){var o=t.blocks.find(function(e){return Array.isArray(e.children)&&e.children.length>0}),s=C&&!o?a.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!C)return function(e,t){return y(e.map(function(e){var r=new n(w(e,t));return[r.getKey(),r]}))}(o?a.fromRawTreeStateToRawState(t).blocks:s,i);var c=function(t,n){return t.map(E).reduce(function(i,o,a){Array.isArray(o.children)||("production"!==process.env.NODE_ENV?m(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):m(!1));var l=o.children.map(E),s=new r(e({},w(o,n),{prevSibling:0===a?null:t[a-1].key,nextSibling:a===t.length-1?null:t[a+1].key,children:g(l.map(function(e){return e.key}))}));i=i.set(s.getKey(),s);for(var c=M([],l,s);c.length>0;){var d=c.pop(),u=d.parentRef,f=u.getChildKeys(),h=f.indexOf(d.key),p=Array.isArray(d.children);if(!p){p||("production"!==process.env.NODE_ENV?m(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):m(!1));break}var C=d.children.map(E),v=new r(e({},w(d,n),{parent:u.getKey(),children:g(C.map(function(e){return e.key})),prevSibling:0===h?null:f.get(h-1),nextSibling:h===f.size-1?null:f.get(h+1)}));i=i.set(v.getKey(),v),c=M(c,C,v)}return i},y())}(s,i);return"production"!==process.env.NODE_ENV&&(l.isValidTree(c)||("production"!==process.env.NODE_ENV?m(!1,"Should be a valid tree"):m(!1))),c};return pB=function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?m(!1,"invalid RawDraftContentState"):m(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach(function(e){var r=t[e],i=r.type,a=r.mutability,l=r.data;n[e]=o.__create(i,a,l||{})}),n}(e),n=A(e,t),r=n.isEmpty()?new s:s.createEmpty(n.first().getKey());return new i({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}}function SB(){if(yB)return vB;yB=1;var e=function(){if(gB)return CB;gB=1;var e=zR();return CB=function(t){var n=e(t),r=0,i=0,o=0,a=0;if(n.length){if(n.length>1&&0===n[0].width){var l=n[1];r=l.top,i=l.right,o=l.bottom,a=l.left}else{var s=n[0];r=s.top,i=s.right,o=s.bottom,a=s.left}for(var c=1;c<n.length;c++){var d=n[c];0!==d.height&&0!==d.width&&(r=Math.min(r,d.top),i=Math.max(i,d.right),o=Math.max(o,d.bottom),a=Math.min(a,d.left))}}return{top:r,right:i,bottom:o,left:a,width:i-a,height:o-r}},CB}();return vB=function(t){var n=t.getSelection();if(!n.rangeCount)return null;var r=n.getRangeAt(0),i=e(r),o=i.top,a=i.right,l=i.bottom,s=i.left;return 0===o&&0===a&&0===l&&0===s?null:i},vB}function _B(){if(bB)return wB;bB=1;var e=gT(),t=jN(),n=RN(),r=vT(),i=PN(),o=uT(),a=wT(),l=bT(),s=GR(),c=wZ(),d=lT(),u=rT(),f=aT(),h=CT(),p=OR(),m=MB(),C=FR(),g=sT(),v=kB(),y=HB(),w=QN(),b=QR(),E=SB(),M=BR();return wB={Editor:s,EditorBlock:c,EditorState:h,CompositeDecorator:r,Entity:d,EntityInstance:f,BlockMapBuilder:t,CharacterMetadata:n,ContentBlock:i,ContentState:o,RawDraftContentState:m,SelectionState:g,AtomicBlockUtils:e,KeyBindingUtil:p,Modifier:u,RichUtils:C,DefaultDraftBlockRenderMap:a,DefaultDraftInlineStyle:l,convertFromHTML:M,convertFromRaw:y,convertToRaw:v,genKey:w,getDefaultKeyBinding:b,getVisibleSelectionRect:E}}var VB=_B(),OB={exports:{}},zB="@@__IMMUTABLE_INDEXED__@@";function NB(e){return Boolean(e&&e[zB])}var TB="@@__IMMUTABLE_KEYED__@@";function IB(e){return Boolean(e&&e[TB])}function DB(e){return IB(e)||NB(e)}var ZB="@@__IMMUTABLE_ITERABLE__@@";function jB(e){return Boolean(e&&e[ZB])}var RB=function(e){return jB(e)?e:MP(e)},BB=function(e){function t(e){return IB(e)?e:AP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(RB),PB=function(e){function t(e){return NB(e)?e:xP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(RB),FB=function(e){function t(e){return jB(e)&&!DB(e)?e:kP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(RB);RB.Keyed=BB,RB.Indexed=PB,RB.Set=FB;var UB="function"==typeof Symbol&&Symbol.iterator,qB="@@iterator",WB=UB||qB,QB=function(e){this.next=e};function GB(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function KB(){return{value:void 0,done:!0}}function YB(e){return!!Array.isArray(e)||!!$B(e)}function XB(e){return!(!e||"function"!=typeof e.next)}function JB(e){var t=$B(e);return t&&t.call(e)}function $B(e){var t=e&&(UB&&e[UB]||e[qB]);if("function"==typeof t)return t}QB.prototype.toString=function(){return"[Iterator]"},QB.KEYS=0,QB.VALUES=1,QB.ENTRIES=2,QB.prototype.inspect=QB.prototype.toSource=function(){return this.toString()},QB.prototype[WB]=function(){return this};var eP="delete",tP=32,nP=31,rP={};function iP(e){e&&(e.value=!0)}function oP(){}function aP(e){return void 0===e.size&&(e.size=e.__iterate(sP)),e.size}function lP(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?aP(e)+t:t}function sP(){return!0}function cP(e,t,n){return(0===e&&!hP(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function dP(e,t){return fP(e,t,0)}function uP(e,t){return fP(e,t,t)}function fP(e,t,n){return void 0===e?n:hP(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function hP(e){return e<0||0===e&&1/e==-1/0}var pP="@@__IMMUTABLE_RECORD__@@";function mP(e){return Boolean(e&&e[pP])}function CP(e){return jB(e)||mP(e)}var gP="@@__IMMUTABLE_ORDERED__@@";function vP(e){return Boolean(e&&e[gP])}var yP="@@__IMMUTABLE_SEQ__@@";function wP(e){return Boolean(e&&e[yP])}var bP=Object.prototype.hasOwnProperty;function EP(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var MP=function(e){function t(e){return null==e?VP():CP(e)?e.toSeq():function(e){var t=NP(e);if(t)return(r=$B(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=$B(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new HP(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new QB(function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return GB(e,o[0],o[1])})}return this.__iteratorUncached(e,t)},t}(RB),AP=function(e){function t(e){return null==e?VP().toKeyedSeq():jB(e)?IB(e)?e.toSeq():e.fromEntrySeq():mP(e)?e.toSeq():OP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(MP),xP=function(e){function t(e){return null==e?VP():jB(e)?IB(e)?e.entrySeq():e.toIndexedSeq():mP(e)?e.toSeq().entrySeq():zP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(MP),kP=function(e){function t(e){return(jB(e)&&!DB(e)?e:xP(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(MP);MP.isSeq=wP,MP.Keyed=AP,MP.Set=kP,MP.Indexed=xP,MP.prototype[yP]=!0;var LP=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[lP(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new QB(function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return GB(e,o,n[o])})},t}(xP),HP=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return bP.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new QB(function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return GB(e,a,n[a])})},t}(AP);HP.prototype[gP]=!0;var SP,_P=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=JB(this._collection),r=0;if(XB(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=JB(this._collection);if(!XB(n))return new QB(KB);var r=0;return new QB(function(){var t=n.next();return t.done?t:GB(e,r++,t.value)})},t}(xP);function VP(){return SP||(SP=new LP([]))}function OP(e){var t=NP(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new HP(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function zP(e){var t=NP(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function NP(e){return EP(e)?new LP(e):YB(e)?new _P(e):void 0}function TP(){return this.__ensureOwner()}function IP(){return this.__ownerID?this:this.__ensureOwner(new oP)}var DP="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ZP(e){return e>>>1&1073741824|3221225471&e}var jP=Object.prototype.valueOf;function RP(e){if(null==e)return BP(e);if("function"==typeof e.hashCode)return ZP(e.hashCode(e));var t,n=(t=e).valueOf!==jP&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return BP(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return ZP(t)}(n);case"string":return n.length>XP?function(e){var t=eF[e];void 0===t&&(t=PP(e),$P===JP&&($P=0,eF={}),$P++,eF[e]=t);return t}(n):PP(n);case"object":case"function":return function(e){var t;if(QP&&void 0!==(t=WP.get(e)))return t;if(t=e[YP],void 0!==t)return t;if(!UP){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[YP]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=qP(),QP)WP.set(e,t);else{if(void 0!==FP&&!1===FP(e))throw new Error("Non-extensible objects are not allowed as keys.");if(UP)Object.defineProperty(e,YP,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[YP]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[YP]=t}}return t}(n);case"symbol":return function(e){var t=GP[e];if(void 0!==t)return t;return t=qP(),GP[e]=t,t}(n);default:if("function"==typeof n.toString)return PP(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function BP(e){return null===e?1108378658:1108378659}function PP(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ZP(t)}var FP=Object.isExtensible,UP=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function qP(){var e=++KP;return 1073741824&KP&&(KP=0),e}var WP,QP="function"==typeof WeakMap;QP&&(WP=new WeakMap);var GP=Object.create(null),KP=0,YP="__immutablehash__";"function"==typeof Symbol&&(YP=Symbol(YP));var XP=16,JP=255,$P=0,eF={},tF=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=lF(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=aF(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(AP);tF.prototype[gP]=!0;var nF=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&aP(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),i=0;return t&&aP(this),new QB(function(){var o=r.next();return o.done?o:GB(e,t?n.size-++i:i++,o.value,o)})},t}(xP),rF=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new QB(function(){var t=n.next();return t.done?t:GB(e,t.value,t.value,t)})},t}(kP),iF=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){vF(t);var r=jB(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new QB(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){vF(r);var i=jB(r);return GB(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(AP);function oF(e){var t=wF(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=bF,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new QB(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(1===t?0:1,n)},t}function aF(e,t,n){var r=wF(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,rP);return o===rP?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new QB(function(){var i=o.next();if(i.done)return i;var a=i.value,l=a[0];return GB(r,l,t.call(n,a[1],l,e),i)})},r}function lF(e,t){var n=this,r=wF(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=oF(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=bF,r.__iterate=function(n,r){var i=this,o=0;return r&&aP(e),e.__iterate(function(e,a){return n(e,t?a:r?i.size-++o:o++,i)},!r)},r.__iterator=function(r,i){var o=0;i&&aP(e);var a=e.__iterator(2,!i);return new QB(function(){var e=a.next();if(e.done)return e;var l=e.value;return GB(r,t?l[0]:i?n.size-++o:o++,l[1],e)})},r}function sF(e,t,n,r){var i=wF(e);return r&&(i.has=function(r){var i=e.get(r,rP);return i!==rP&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,rP);return o!==rP&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,l=0;return e.__iterate(function(e,o,s){if(t.call(n,e,o,s))return l++,i(e,r?o:l-1,a)},o),l},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),l=0;return new QB(function(){for(;;){var o=a.next();if(o.done)return o;var s=o.value,c=s[0],d=s[1];if(t.call(n,d,c,e))return GB(i,r?c:l++,d,o)}})},i}function cF(e,t,n,r){var i=e.size;if(cP(t,n,i))return e;if(void 0===i&&(t<0||n<0))return cF(e.toSeq().cacheResult(),t,n,r);var o,a=dP(t,i),l=uP(n,i)-a;l==l&&(o=l<0?0:l);var s=wF(e);return s.size=0===o?o:e.size&&o||void 0,!r&&wP(e)&&o>=0&&(s.get=function(t,n){return(t=lP(this,t))>=0&&t<o?e.get(t+a,n):n}),s.__iterateUncached=function(t,n){var i=this;if(0===o)return 0;if(n)return this.cacheResult().__iterate(t,n);var l=0,s=!0,c=0;return e.__iterate(function(e,n){if(!s||!(s=l++<a))return c++,!1!==t(e,r?n:c-1,i)&&c!==o}),c},s.__iteratorUncached=function(t,n){if(0!==o&&n)return this.cacheResult().__iterator(t,n);if(0===o)return new QB(KB);var i=e.__iterator(t,n),l=0,s=0;return new QB(function(){for(;l++<a;)i.next();if(++s>o)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:GB(t,s-1,0===t?void 0:e.value[1],e)})},s}function dF(e,t,n,r){var i=wF(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var l=!0,s=0;return e.__iterate(function(e,o,c){if(!l||!(l=t.call(n,e,o,c)))return s++,i(e,r?o:s-1,a)}),s},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var l=e.__iterator(2,o),s=!0,c=0;return new QB(function(){var e,o,d;do{if((e=l.next()).done)return r||1===i?e:GB(i,c++,0===i?void 0:e.value[1],e);var u=e.value;o=u[0],d=u[1],s&&(s=t.call(n,d,o,a))}while(s);return 2===i?e:GB(i,o,d,e)})},i}nF.prototype.cacheResult=tF.prototype.cacheResult=rF.prototype.cacheResult=iF.prototype.cacheResult=bF;var uF=function(e){function t(e){this._wrappedIterables=e.flatMap(function(e){return e._wrappedIterables?e._wrappedIterables:[e]}),this.size=this._wrappedIterables.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),this[TB]=this._wrappedIterables[0][TB],this[zB]=this._wrappedIterables[0][zB],this[gP]=this._wrappedIterables[0][gP]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(0!==this._wrappedIterables.length){if(t)return this.cacheResult().__iterate(e,t);for(var n=0,r=IB(this),i=r?2:1,o=this._wrappedIterables[n].__iterator(i,t),a=!0,l=0;a;){for(var s=o.next();s.done;){if(++n===this._wrappedIterables.length)return l;s=(o=this._wrappedIterables[n].__iterator(i,t)).next()}a=!1!==(r?e(s.value[1],s.value[0],this):e(s.value,l,this)),l++}return l}},t.prototype.__iteratorUncached=function(e,t){var n=this;if(0===this._wrappedIterables.length)return new QB(KB);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new QB(function(){for(var o=i.next();o.done;){if(++r===n._wrappedIterables.length)return o;o=(i=n._wrappedIterables[r].__iterator(e,t)).next()}return o})},t}(MP);function fF(e,t,n){var r=wF(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,l=!1;return function e(s,c){s.__iterate(function(o,s){return(!t||c<t)&&jB(o)?e(o,c+1):(a++,!1===i(o,n?s:a-1,r)&&(l=!0)),!l},o)}(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],l=0;return new QB(function(){for(;o;){var e=o.next();if(!1===e.done){var s=e.value;if(2===r&&(s=s[1]),t&&!(a.length<t)||!jB(s))return n?e:GB(r,l++,s,e);a.push(o),o=s.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}})},r}function hF(e,t,n){t||(t=EF);var r=IB(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?AP(o):NB(e)?xP(o):kP(o)}function pF(e,t,n){if(t||(t=EF),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return mF(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return mF(t,e,n)?n:e})}function mF(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function CF(e,t,n,r){var i=wF(e),o=new LP(n).map(function(e){return e.size});return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map(function(e){return e=RB(e),JB(i?e.reverse():e)}),a=0,l=!1;return new QB(function(){var n;return l||(n=o.map(function(e){return e.next()}),l=r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),l?{value:void 0,done:!0}:GB(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function gF(e,t){return e===t?e:wP(e)?t:e.constructor(t)}function vF(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function yF(e){return IB(e)?BB:NB(e)?PB:FB}function wF(e){return Object.create((IB(e)?AP:NB(e)?xP:kP).prototype)}function bF(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):MP.prototype.cacheResult.call(this)}function EF(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function MF(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function AF(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(MF(e)&&MF(t)&&e.equals(t))}function xF(e,t,n,r){return AU(e,[t],n,r)}function kF(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return HF(this,e)}function LF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return HF(this,t,e)}function HF(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=BB(t[i]);0!==o.size&&r.push(o)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var t=n?function(t,r){xF(e,r,rP,function(e){return e===rP?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)}):mP(e)?e:e.constructor(r[0])}var SF=Object.prototype.toString;function _F(e){if(!e||"object"!=typeof e||"[object Object]"!==SF.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function VF(e){return"object"==typeof e&&(CP(e)||Array.isArray(e)||_F(e))}function OF(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function zF(e){if(Array.isArray(e))return OF(e);var t={};for(var n in e)bP.call(e,n)&&(t[n]=e[n]);return t}function NF(e,t,n){return TF(e,t,function(e){function t(n,r,i){return VF(n)&&VF(r)&&(o=r,a=MP(n),l=MP(o),NB(a)===NB(l)&&IB(a)===IB(l))?TF(n,[r],t):e?e(n,r,i):r;var o,a,l}return t}(n))}function TF(e,t,n){if(!VF(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(CP(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?PB:BB,a=r?function(t){i===e&&(i=zF(i)),i.push(t)}:function(t,r){var o=bP.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=zF(i)),i[r]=a)},l=0;l<t.length;l++)o(t[l]).forEach(a);return i}function IF(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return NF(this,e)}function DF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return NF(this,t,e)}function ZF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return AU(this,e,sU(),function(e){return NF(e,t)})}function jF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return AU(this,e,sU(),function(e){return TF(e,t)})}function RF(e,t,n){return AU(e,t,rP,function(){return n})}function BF(e,t){return RF(this,e,t)}function PF(e,t,n){return 1===arguments.length?e(this):xF(this,e,t,n)}function FF(e,t,n){return AU(this,e,t,n)}function UF(){return this.__altered}function qF(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}var WF="@@__IMMUTABLE_MAP__@@";function QF(e){return Boolean(e&&e[WF])}function GF(e,t){if(!e)throw new Error(t)}function KF(e){GF(e!==1/0,"Cannot perform this action with an infinite size.")}var YF=function(e){function t(t){return null==t?sU():QF(t)&&!vP(t)?t:sU().withMutations(function(n){var r=e(t);KF(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return cU(this,e,t)},t.prototype.remove=function(e){return cU(this,e,rP)},t.prototype.deleteAll=function(e){var t=RB(e);return 0===t.size?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):sU()},t.prototype.sort=function(e){return UU(hF(this,e))},t.prototype.sortBy=function(e,t){return UU(hF(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,o){r.set(o,e.call(t,i,o,n))})})},t.prototype.__iterator=function(e,t){return new iU(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?lU(this.size,this._root,e,this.__hash):0===this.size?sU():(this.__ownerID=e,this.__altered=!1,this)},t}(BB);YF.isMap=QF;var XF=YF.prototype;XF[WF]=!0,XF[eP]=XF.remove,XF.removeAll=XF.deleteAll,XF.setIn=BF,XF.removeIn=XF.deleteIn=LU,XF.update=PF,XF.updateIn=FF,XF.merge=XF.concat=kF,XF.mergeWith=LF,XF.mergeDeep=IF,XF.mergeDeepWith=DF,XF.mergeIn=jF,XF.mergeDeepIn=ZF,XF.withMutations=qF,XF.wasAltered=UF,XF.asImmutable=TP,XF["@@transducer/init"]=XF.asMutable=IP,XF["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},XF["@@transducer/result"]=function(e){return e.asImmutable()};var JF=function(e,t){this.ownerID=e,this.entries=t};JF.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(AF(n,i[o][0]))return i[o][1];return r},JF.prototype.update=function(e,t,n,r,i,o,a){for(var l=i===rP,s=this.entries,c=0,d=s.length;c<d&&!AF(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(iP(a),(l||!u)&&iP(o),!l||1!==s.length){if(!u&&!l&&s.length>=mU)return function(e,t,n,r){e||(e=new oP);for(var i=new nU(e,RP(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,s,r,i);var f=e&&e===this.ownerID,h=f?s:OF(s);return u?l?c===d-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new JF(e,h)}};var $F=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};$F.prototype.get=function(e,t,n,r){void 0===t&&(t=RP(n));var i=1<<((0===e?t:t>>>e)&nP),o=this.bitmap;return 0===(o&i)?r:this.nodes[hU(o&i-1)].get(e+5,t,n,r)},$F.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=RP(r));var l=(0===t?n:n>>>t)&nP,s=1<<l,c=this.bitmap,d=0!==(c&s);if(!d&&i===rP)return this;var u=hU(c&s-1),f=this.nodes,h=d?f[u]:void 0,p=dU(h,e,t+5,n,r,i,o,a);if(p===h)return this;if(!d&&p&&f.length>=CU)return function(e,t,n,r,i){for(var o=0,a=new Array(tP),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[o++]:void 0;return a[r]=i,new eU(e,o+1,a)}(e,f,c,l,p);if(d&&!p&&2===f.length&&uU(f[1^u]))return f[1^u];if(d&&p&&1===f.length&&uU(p))return p;var m=e&&e===this.ownerID,C=d?p?c:c^s:c|s,g=d?p?pU(f,u,p,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(f,u,m):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,l=0;l<i;l++)l===t?(o[l]=n,a=-1):o[l]=e[l+a];return o}(f,u,p,m);return m?(this.bitmap=C,this.nodes=g,this):new $F(e,C,g)};var eU=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};eU.prototype.get=function(e,t,n,r){void 0===t&&(t=RP(n));var i=(0===e?t:t>>>e)&nP,o=this.nodes[i];return o?o.get(e+5,t,n,r):r},eU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=RP(r));var l=(0===t?n:n>>>t)&nP,s=i===rP,c=this.nodes,d=c[l];if(s&&!d)return this;var u=dU(d,e,t+5,n,r,i,o,a);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<gU)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),l=0,s=1,c=t.length;l<c;l++,s<<=1){var d=t[l];void 0!==d&&l!==r&&(i|=s,a[o++]=d)}return new $F(e,i,a)}(e,c,f,l)}else f++;var h=e&&e===this.ownerID,p=pU(c,l,u,h);return h?(this.count=f,this.nodes=p,this):new eU(e,f,p)};var tU=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};tU.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(AF(n,i[o][0]))return i[o][1];return r},tU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=RP(r));var l=i===rP;if(n!==this.keyHash)return l?this:(iP(a),iP(o),fU(this,e,t,n,[r,i]));for(var s=this.entries,c=0,d=s.length;c<d&&!AF(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(iP(a),(l||!u)&&iP(o),l&&2===d)return new nU(e,this.keyHash,s[1^c]);var f=e&&e===this.ownerID,h=f?s:OF(s);return u?l?c===d-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new tU(e,this.keyHash,h)};var nU=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};nU.prototype.get=function(e,t,n,r){return AF(n,this.entry[0])?this.entry[1]:r},nU.prototype.update=function(e,t,n,r,i,o,a){var l=i===rP,s=AF(r,this.entry[0]);return(s?i===this.entry[1]:l)?this:(iP(a),l?void iP(o):s?e&&e===this.ownerID?(this.entry[1]=i,this):new nU(e,this.keyHash,[r,i]):(iP(o),fU(this,e,t,RP(r),[r,i])))},JF.prototype.iterate=tU.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},$F.prototype.iterate=eU.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},nU.prototype.iterate=function(e,t){return e(this.entry)};var rU,iU=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&aU(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return oU(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return oU(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return oU(e,o.entry);t=this._stack=aU(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(QB);function oU(e,t){return GB(e,t[0],t[1])}function aU(e,t){return{node:e,index:0,__prev:t}}function lU(e,t,n,r){var i=Object.create(XF);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function sU(){return rU||(rU=lU(0))}function cU(e,t,n){var r,i;if(e._root){var o={value:!1},a={value:!1};if(r=dU(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===rP?-1:1:0)}else{if(n===rP)return e;i=1,r=new JF(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?lU(i,r):sU()}function dU(e,t,n,r,i,o,a,l){return e?e.update(t,n,r,i,o,a,l):o===rP?e:(iP(l),iP(a),new nU(t,r,[i,o]))}function uU(e){return e.constructor===nU||e.constructor===tU}function fU(e,t,n,r,i){if(e.keyHash===r)return new tU(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&nP,l=(0===n?r:r>>>n)&nP,s=a===l?[fU(e,t,n+5,r,i)]:(o=new nU(t,r,i),a<l?[e,o]:[o,e]);return new $F(t,1<<a|1<<l,s)}function hU(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function pU(e,t,n,r){var i=r?e:OF(e);return i[t]=n,i}var mU=8,CU=16,gU=8;function vU(e){if(EP(e)&&"string"!=typeof e)return e;if(vP(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function yU(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function wU(e,t){return CP(e)?e.has(t):VF(e)&&bP.call(e,t)}function bU(e,t,n){return CP(e)?e.get(t,n):wU(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function EU(e,t){if(!VF(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(CP(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!bP.call(e,t))return e;var n=zF(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function MU(e,t,n){if(!VF(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(CP(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(bP.call(e,t)&&n===e[t])return e;var r=zF(e);return r[t]=n,r}function AU(e,t,n,r){r||(r=n,n=void 0);var i=xU(CP(e),e,vU(t),0,n,r);return i===rP?n:i}function xU(e,t,n,r,i,o){var a=t===rP;if(r===n.length){var l=a?i:t,s=o(l);return s===l?t:s}if(!a&&!VF(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(n).slice(0,r).map(yU)+"]: "+t);var c=n[r],d=a?rP:bU(t,c,rP),u=xU(d===rP?e:CP(d),d,n,r+1,i,o);return u===d?t:u===rP?EU(t,c):MU(a?e?sU():{}:t,c,u)}function kU(e,t){return AU(e,t,function(){return rP})}function LU(e){return kU(this,e)}var HU="@@__IMMUTABLE_LIST__@@";function SU(e){return Boolean(e&&e[HU])}var _U=function(e){function t(t){var n=IU();if(null==t)return n;if(SU(t))return t;var r=e(t),i=r.size;return 0===i?n:(KF(i),i>0&&i<tP?TU(0,i,5,null,new OU(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=lP(this,e))>=0&&e<this.size){var n=jU(this,e+=this._origin);return n&&n.array[e&nP]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=lP(e,t),t!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?RU(e,t).set(0,n):RU(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o={value:!1};t>=BU(e._capacity)?r=DU(r,e.__ownerID,0,t,n,o):i=DU(i,e.__ownerID,e._level,t,n,o);if(!o.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return TU(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):IU()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){RU(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return RU(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){RU(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return RU(this,1)},t.prototype.shuffle=function(e){return void 0===e&&(e=Math.random),this.withMutations(function(t){for(var n,r,i=t.size;i;)n=Math.floor(e()*i--),r=t.get(n),t.set(n,t.get(i)),t.set(i,r)})},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!=typeof i&&YB(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})}):this.constructor(n[0])},t.prototype.setSize=function(e){return RU(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))})},t.prototype.slice=function(e,t){var n=this.size;return cP(e,t,n)?this:RU(this,dP(e,n),uP(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=NU(this,t);return new QB(function(){var i=r();return i===zU?{value:void 0,done:!0}:GB(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=NU(this,t);(n=i())!==zU&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?TU(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?IU():(this.__ownerID=e,this.__altered=!1,this)},t}(PB);_U.isList=SU;var VU=_U.prototype;VU[HU]=!0,VU[eP]=VU.remove,VU.merge=VU.concat,VU.setIn=BF,VU.deleteIn=VU.removeIn=LU,VU.update=PF,VU.updateIn=FF,VU.mergeIn=jF,VU.mergeDeepIn=ZF,VU.withMutations=qF,VU.wasAltered=UF,VU.asImmutable=TP,VU["@@transducer/init"]=VU.asMutable=IP,VU["@@transducer/step"]=function(e,t){return e.push(t)},VU["@@transducer/result"]=function(e){return e.asImmutable()};var OU=function(e,t){this.array=e,this.ownerID=t};OU.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+5)-1)||0===this.array.length)return this;var r=n>>>t&nP;if(r>=this.array.length)return new OU([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&o)return this}if(o&&!i)return this;var l=ZU(this,e);if(!o)for(var s=0;s<r;s++)l.array[s]=void 0;return i&&(l.array[r]=i),l},OU.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+5:tP)||0===this.array.length)return this;var r,i=n-1>>>t&nP;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-5,n))===o&&i===this.array.length-1)return this}var a=ZU(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var zU={};function NU(e,t){var n=e._origin,r=e._capacity,i=BU(r),o=e._tail;return a(e._root,e._level,0);function a(e,l,s){return 0===l?function(e,a){var l=a===i?o&&o.array:e&&e.array,s=a>n?0:n-a,c=r-a;c>tP&&(c=tP);return function(){if(s===c)return zU;var e=t?--c:s++;return l&&l[e]}}(e,s):function(e,i,o){var l,s=e&&e.array,c=o>n?0:n-o>>i,d=1+(r-o>>i);d>tP&&(d=tP);return function(){for(;;){if(l){var e=l();if(e!==zU)return e;l=null}if(c===d)return zU;var n=t?--d:c++;l=a(s&&s[n],i-5,o+(n<<i))}}}(e,l,s)}}function TU(e,t,n,r,i,o,a){var l=Object.create(VU);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=i,l.__ownerID=o,l.__hash=a,l.__altered=!1,l}function IU(){return TU(0,0,5)}function DU(e,t,n,r,i,o){var a,l=r>>>n&nP,s=e&&l<e.array.length;if(!s&&void 0===i)return e;if(n>0){var c=e&&e.array[l],d=DU(c,t,n-5,r,i,o);return d===c?e:((a=ZU(e,t)).array[l]=d,a)}return s&&e.array[l]===i?e:(o&&iP(o),a=ZU(e,t),void 0===i&&l===a.array.length-1?a.array.pop():a.array[l]=i,a)}function ZU(e,t){return t&&e&&t===e.ownerID?e:new OU(e?e.array.slice():[],t)}function jU(e,t){if(t>=BU(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&nP],r-=5;return n}}function RU(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new oP,i=e._origin,o=e._capacity,a=i+t,l=void 0===n?o:n<0?o+n:i+n;if(a===i&&l===o)return e;if(a>=l)return e.clear();for(var s=e._level,c=e._root,d=0;a+d<0;)c=new OU(c&&c.array.length?[void 0,c]:[],r),d+=1<<(s+=5);d&&(a+=d,i+=d,l+=d,o+=d);for(var u=BU(o),f=BU(l);f>=1<<s+5;)c=new OU(c&&c.array.length?[c]:[],r),s+=5;var h=e._tail,p=f<u?jU(e,l-1):f>u?new OU([],r):h;if(h&&f>u&&a<o&&h.array.length){for(var m=c=ZU(c,r),C=s;C>5;C-=5){var g=u>>>C&nP;m=m.array[g]=ZU(m.array[g],r)}m.array[u>>>5&nP]=h}if(l<o&&(p=p&&p.removeAfter(r,0,l)),a>=f)a-=f,l-=f,s=5,c=null,p=p&&p.removeBefore(r,0,a);else if(a>i||f<u){for(d=0;c;){var v=a>>>s&nP;if(v!==f>>>s&nP)break;v&&(d+=(1<<s)*v),s-=5,c=c.array[v]}c&&a>i&&(c=c.removeBefore(r,s,a-d)),c&&f<u&&(c=c.removeAfter(r,s,f-d)),d&&(a-=d,l-=d)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=c,e._tail=p,e.__hash=void 0,e.__altered=!0,e):TU(a,l,s,c,p)}function BU(e){return e<tP?0:e-1>>>5<<5}function PU(e){return QF(e)&&vP(e)}var FU,UU=function(e){function t(e){return null==e?WU():PU(e)?e:WU().withMutations(function(t){var n=BB(e);KF(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):WU()},t.prototype.set=function(e,t){return QU(this,e,t)},t.prototype.remove=function(e){return QU(this,e,rP)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?qU(t,n,e,this.__hash):0===this.size?WU():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(YF);function qU(e,t,n,r){var i=Object.create(UU.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function WU(){return FU||(FU=qU(sU(),IU()))}function QU(e,t,n){var r,i,o=e._map,a=e._list,l=o.get(t),s=void 0!==l;if(n===rP){if(!s)return e;a.size>=tP&&a.size>=2*o.size?(r=(i=a.filter(function(e,t){return void 0!==e&&l!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=o,i=a.set(l,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):qU(r,i)}UU.isOrderedMap=PU,UU.prototype[gP]=!0,UU.prototype[eP]=UU.prototype.remove;var GU="@@__IMMUTABLE_STACK__@@";function KU(e){return Boolean(e&&e[GU])}var YU=function(e){function t(e){return null==e?eq():KU(e)?e:eq().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=lP(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):$U(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&KU(t))return t;KF(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):$U(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):eq()},t.prototype.slice=function(t,n){if(cP(t,n,this.size))return this;var r=dP(t,this.size);if(uP(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):$U(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?$U(this.size,this._head,e,this.__hash):0===this.size?eq():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new LP(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new LP(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new QB(function(){if(r){var t=r.value;return r=r.next,GB(e,n++,t)}return{value:void 0,done:!0}})},t}(PB);YU.isStack=KU;var XU,JU=YU.prototype;function $U(e,t,n,r){var i=Object.create(JU);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function eq(){return XU||(XU=$U(0))}function tq(e,t,n,r,i,o){return KF(e.size),e.__iterate(function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)},o),n}function nq(e,t){return t}function rq(e,t){return[t,e]}function iq(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function oq(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function aq(e,t){return e<t?1:e>t?-1:0}function lq(e,t){if(e===t)return!0;if(!jB(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||IB(e)!==IB(t)||NB(e)!==NB(t)||vP(e)!==vP(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!DB(e);if(vP(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&AF(i[1],e)&&(n||AF(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var a=!0,l=t.__iterate(function(t,r){if(n?!e.has(t):i?!AF(t,e.get(r,rP)):!AF(e.get(r,rP),t))return a=!1,!1});return a&&e.size===l}JU[GU]=!0,JU.shift=JU.pop,JU.unshift=JU.push,JU.unshiftAll=JU.pushAll,JU.withMutations=qF,JU.wasAltered=UF,JU.asImmutable=TP,JU["@@transducer/init"]=JU.asMutable=IP,JU["@@transducer/step"]=function(e,t){return e.unshift(t)},JU["@@transducer/result"]=function(e){return e.asImmutable()};var sq,cq=function(e){function t(e,n,r){if(void 0===r&&(r=1),!(this instanceof t))return new t(e,n,r);if(GF(0!==r,"Cannot step a Range by 0"),GF(void 0!==e,"You must define a start value when using Range"),GF(void 0!==n,"You must define an end value when using Range"),r=Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(sq)return sq;sq=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+lP(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return cP(e,n,this.size)?this:(e=dP(e,this.size),(n=uP(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new QB(function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,GB(e,t?n-++o:o++,a)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:lq(this,e)},t}(xP),dq="@@__IMMUTABLE_SET__@@";function uq(e){return Boolean(e&&e[dq])}var fq=function(e){function t(t){return null==t?gq():uq(t)&&!vP(t)?t:gq().withMutations(function(n){var r=e(t);KF(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(BB(e).keySeq())},t.intersect=function(e){return(e=RB(e).toArray()).length?pq.intersect.apply(t(e.pop()),e):gq()},t.union=function(e){return(e=RB(e).toArray()).length?pq.union.apply(t(e.pop()),e):gq()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return mq(this,this._map.set(e,e))},t.prototype.remove=function(e){return mq(this,this._map.remove(e))},t.prototype.clear=function(){return mq(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=mq(this,this._map.mapEntries(function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t=t.filter(function(e){return 0!==e.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach(function(e){return n.add(e)})}):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return Oq(hF(this,e))},t.prototype.sortBy=function(e,t){return Oq(hF(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(FB);fq.isSet=uq;var hq,pq=fq.prototype;function mq(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Cq(e,t){var n=Object.create(pq);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function gq(){return hq||(hq=Cq(sU()))}function vq(e,t,n){for(var r=vU(t),i=0;i!==r.length;)if((e=bU(e,r[i++],rP))===rP)return n;return e}function yq(e,t){return vq(this,e,t)}function wq(e,t){return vq(e,t,rP)!==rP}function bq(){KF(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}function Eq(e){if(!e||"object"!=typeof e)return e;if(!jB(e)){if(!VF(e))return e;e=MP(e)}if(IB(e)){var t={};return e.__iterate(function(e,n){t[n]=Eq(e)}),t}var n=[];return e.__iterate(function(e){n.push(Eq(e))}),n}function Mq(e){if(e.size===1/0)return 0;var t=vP(e),n=IB(e),r=t?1:0;return e.__iterate(n?t?function(e,t){r=31*r+Aq(RP(e),RP(t))|0}:function(e,t){r=r+Aq(RP(e),RP(t))|0}:t?function(e){r=31*r+RP(e)|0}:function(e){r=r+RP(e)|0}),function(e,t){return t=DP(t,3432918353),t=DP(t<<15|t>>>-15,461845907),t=DP(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=DP(t^t>>>16,2246822507),t=DP(t^t>>>13,3266489909),t=ZP(t^t>>>16),t}(e.size,r)}function Aq(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function xq(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}pq[dq]=!0,pq[eP]=pq.remove,pq.merge=pq.concat=pq.union,pq.withMutations=qF,pq.asImmutable=TP,pq["@@transducer/init"]=pq.asMutable=IP,pq["@@transducer/step"]=function(e,t){return e.add(t)},pq["@@transducer/result"]=function(e){return e.asImmutable()},pq.__empty=gq,pq.__make=Cq,RB.Iterator=QB,xq(RB,{toArray:function(){KF(this.size);var e=new Array(this.size||0),t=IB(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new nF(this)},toJS:function(){return Eq(this)},toKeyedSeq:function(){return new tF(this,!0)},toMap:function(){return YF(this.toKeyedSeq())},toObject:bq,toOrderedMap:function(){return UU(this.toKeyedSeq())},toOrderedSet:function(){return Oq(IB(this)?this.valueSeq():this)},toSet:function(){return fq(IB(this)?this.valueSeq():this)},toSetSeq:function(){return new rF(this)},toSeq:function(){return NB(this)?this.toIndexedSeq():IB(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return YU(IB(this)?this.valueSeq():this)},toList:function(){return _U(IB(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return gF(this,function(e,t){var n=IB(e),r=[e].concat(t).map(function(e){return jB(e)?n&&(e=BB(e)):e=n?OP(e):zP(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&IB(i)||NB(e)&&NB(i))return i}return new uF(r)}(this,e))},includes:function(e){return this.some(function(t){return AF(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){KF(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return gF(this,sF(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=IB(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)});var o=yF(e);return i.map(function(t){return gF(e,o(t))})}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return KF(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){KF(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(0)},map:function(e,t){return gF(this,aF(this,e,t))},reduce:function(e,t,n){return tq(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return tq(this,e,t,n,arguments.length<2,!0)},reverse:function(){return gF(this,lF(this,!0))},slice:function(e,t){return gF(this,cF(this,e,t,!0))},some:function(e,t){KF(this.size);var n=!1;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=!0,!1}),n},sort:function(e){return gF(this,hF(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return aP(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=YF().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return lq(this,e)},entrySeq:function(){var e=this;if(e._cache)return new LP(e._cache);var t=e.toSeq().map(rq).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(iq(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(sP,null,e)},flatMap:function(e,t){return gF(this,function(e,t,n){var r=yF(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return gF(this,fF(this,e,!0))},fromEntrySeq:function(){return new iF(this)},get:function(e,t){return this.find(function(t,n){return AF(n,e)},void 0,t)},getIn:yq,groupBy:function(e,t){return function(e,t,n){var r=IB(e),i=(vP(e)?UU():YF()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=yF(e);return i.map(function(t){return gF(e,o(t))}).asImmutable()}(this,e,t)},has:function(e){return this.get(e,rP)!==rP},hasIn:function(e){return wq(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:RB(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:RB(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return AF(t,e)})},keySeq:function(){return this.toSeq().map(nq).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return pF(this,e)},maxBy:function(e,t){return pF(this,t,e)},min:function(e){return pF(this,e?oq(e):aq)},minBy:function(e,t){return pF(this,t?oq(t):aq,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return gF(this,dF(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(iq(e),t)},sortBy:function(e,t){return gF(this,hF(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return gF(this,function(e,t,n){var r=wF(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,l){return t.call(n,e,i,l)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),l=!0;return new QB(function(){if(!l)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,s=i[0],c=i[1];return t.call(n,c,s,o)?2===r?e:GB(r,s,c,e):(l=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(iq(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Mq(this))}});var kq=RB.prototype;kq[ZB]=!0,kq[WB]=kq.values,kq.toJSON=kq.toArray,kq.__toStringMapper=yU,kq.inspect=kq.toSource=function(){return this.toString()},kq.chain=kq.flatMap,kq.contains=kq.includes,xq(BB,{flip:function(){return gF(this,oF(this))},mapEntries:function(e,t){var n=this,r=0;return gF(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gF(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Lq=BB.prototype;Lq[TB]=!0,Lq[WB]=kq.entries,Lq.toJSON=bq,Lq.__toStringMapper=function(e,t){return yU(t)+": "+yU(e)},xq(PB,{toKeyedSeq:function(){return new tF(this,!1)},filter:function(e,t){return gF(this,sF(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return gF(this,lF(this,!1))},slice:function(e,t){return gF(this,cF(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=dP(e,e<0?this.count():this.size);var r=this.slice(0,e);return gF(this,1===n?r:r.concat(OF(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return gF(this,fF(this,e,!1))},get:function(e,t){return(e=lP(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=lP(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gF(this,function(e,t){var n=wF(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),a=0;return new QB(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?GB(n,a++,t):GB(n,a++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(OF(arguments)),t=CF(this.toSeq(),xP.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gF(this,n)},keySeq:function(){return cq(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return gF(this,dF(this,e,t,!1))},zip:function(){return gF(this,CF(this,_q,[this].concat(OF(arguments))))},zipAll:function(){return gF(this,CF(this,_q,[this].concat(OF(arguments)),!0))},zipWith:function(e){var t=OF(arguments);return t[0]=this,gF(this,CF(this,e,t))}});var Hq=PB.prototype;Hq[zB]=!0,Hq[gP]=!0,xq(FB,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Sq=FB.prototype;function _q(){return OF(arguments)}function Vq(e){return uq(e)&&vP(e)}Sq.has=kq.includes,Sq.contains=Sq.includes,Sq.keys=Sq.values,xq(AP,Lq),xq(xP,Hq),xq(kP,Sq);var Oq=function(e){function t(e){return null==e?Iq():Vq(e)?e:Iq().withMutations(function(t){var n=FB(e);KF(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(BB(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(fq);Oq.isOrderedSet=Vq;var zq,Nq=Oq.prototype;function Tq(e,t){var n=Object.create(Nq);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Iq(){return zq||(zq=Tq(WU()))}Nq[gP]=!0,Nq.zip=Hq.zip,Nq.zipWith=Hq.zipWith,Nq.zipAll=Hq.zipAll,Nq.__empty=Iq,Nq.__make=Tq;var Dq=function(e,t){var n;!function(e){if(mP(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(CP(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var l=Object.keys(e),s=i._indices={};i._name=t,i._keys=l,i._defaultValues=e;for(var c=0;c<l.length;c++){var d=l[c];s[d]=c,i[d]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+Rq(this)+' with property "'+d+'" since that property name is part of the Record API.'):Pq(i,d)}}return this.__ownerID=void 0,this._values=_U().withMutations(function(e){e.setSize(a._keys.length),BB(o).forEach(function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(Zq);return i.constructor=r,t&&(r.displayName=t),r};Dq.prototype.toString=function(){for(var e,t=Rq(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+yU(this.get(e));return t+" }"},Dq.prototype.equals=function(e){return this===e||mP(e)&&Bq(this).equals(Bq(e))},Dq.prototype.hashCode=function(){return Bq(this).hashCode()},Dq.prototype.has=function(e){return this._indices.hasOwnProperty(e)},Dq.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},Dq.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return jq(this,n)}return this},Dq.prototype.remove=function(e){return this.set(e)},Dq.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:jq(this,e)},Dq.prototype.wasAltered=function(){return this._values.wasAltered()},Dq.prototype.toSeq=function(){return Bq(this)},Dq.prototype.toJS=function(){return Eq(this)},Dq.prototype.entries=function(){return this.__iterator(2)},Dq.prototype.__iterator=function(e,t){return Bq(this).__iterator(e,t)},Dq.prototype.__iterate=function(e,t){return Bq(this).__iterate(e,t)},Dq.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?jq(this,t,e):(this.__ownerID=e,this._values=t,this)},Dq.isRecord=mP,Dq.getDescriptiveName=Rq;var Zq=Dq.prototype;function jq(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function Rq(e){return e.constructor.displayName||e.constructor.name||"Record"}function Bq(e){return OP(e._keys.map(function(t){return[t,e.get(t)]}))}function Pq(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){GF(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}Zq[pP]=!0,Zq[eP]=Zq.remove,Zq.deleteIn=Zq.removeIn=LU,Zq.getIn=yq,Zq.hasIn=kq.hasIn,Zq.merge=kF,Zq.mergeWith=LF,Zq.mergeIn=jF,Zq.mergeDeep=IF,Zq.mergeDeepWith=DF,Zq.mergeDeepIn=ZF,Zq.setIn=BF,Zq.update=PF,Zq.updateIn=FF,Zq.withMutations=qF,Zq.asMutable=IP,Zq.asImmutable=TP,Zq[WB]=Zq.entries,Zq.toJSON=Zq.toObject=kq.toObject,Zq.inspect=Zq.toSource=function(){return this.toString()};var Fq,Uq=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(Fq)return Fq;Fq=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return AF(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return cP(e,n,r)?this:new t(this._value,uP(n,r)-dP(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return AF(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return AF(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new QB(function(){return i===r?{value:void 0,done:!0}:GB(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?AF(this._value,e._value):lq(this,e)},t}(xP);function qq(e,t,n,r,i,o){if("string"!=typeof n&&!CP(n)&&(EP(n)||YB(n)||_F(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var a=t.call(o,r,MP(n).map(function(r,o){return qq(e,t,r,o,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function Wq(e,t){return NB(t)?t.toList():IB(t)?t.toMap():t.toSet()}var Qq,Gq=RB,Kq=S(Object.freeze({__proto__:null,Collection:RB,Iterable:Gq,List:_U,Map:YF,OrderedMap:UU,OrderedSet:Oq,PairSorting:{LeftThenRight:-1,RightThenLeft:1},Range:cq,Record:Dq,Repeat:Uq,Seq:MP,Set:fq,Stack:YU,fromJS:function(e,t){return qq([],t||Wq,e,"",t&&t.length>2?[]:void 0,{"":e})},get:bU,getIn:vq,has:wU,hasIn:wq,hash:RP,is:AF,isAssociative:DB,isCollection:jB,isImmutable:CP,isIndexed:NB,isKeyed:IB,isList:SU,isMap:QF,isOrdered:vP,isOrderedMap:PU,isOrderedSet:Vq,isPlainObject:_F,isRecord:mP,isSeq:wP,isSet:uq,isStack:KU,isValueObject:MF,merge:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return TF(e,t)},mergeDeep:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return NF(e,t)},mergeDeepWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return NF(t,n,e)},mergeWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return TF(t,n,e)},remove:EU,removeIn:kU,set:MU,setIn:RF,update:xF,updateIn:AU,version:"5.1.4"}));var Yq=(Qq||(Qq=1,window,OB.exports=function(e,t,n){return o={},r.m=i=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;
44
44
  /*!
45
45
  Copyright (c) 2017 Jed Watson.
46
46
  Licensed under the MIT License (MIT), see