pixel-react 1.16.1 → 1.16.3

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(m(e))return h?h.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function C(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(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(m(e))return NaN;if(C(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=C(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,C=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=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!(!k(e)||(t=e,u&&u in t))&&(function(e){var t=k(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)?C: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 L(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(L.Cache||b),n}function k(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():m.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},L.Cache=b,e.exports=L}).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 C(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,m=!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||m&&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 m?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(m)return l=setTimeout(w,t),v(s)}return void 0===l&&(l=setTimeout(w,t)),a}return t=C(t)||0,p(n)&&(d=!!n.leading,o=(m="maxWait"in n)?u(C(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 C="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,g=C||m||Function("return this")(),v=t&&!t.nodeType&&t,y=v&&"object"==typeof n&&n&&!n.nodeType&&n,w=y&&y.exports===v&&C.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 L(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function k(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 Ce(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 me(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&&!L(e),C=h==o&&!L(t),m=f==h;if(m&&!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=k;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=C&&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!!m&&(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]],C=t[d];if(r)var m=a?r(C,p,d,t,e,o):r(p,C,d,e,t,o);if(!(void 0===m?p===C||n(p,C,r,i,o):m)){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:ke(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 C=a?r(p,h,d,t,e,o):r(h,p,d,e,t,o);if(void 0!==C){if(C)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)||L(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 Le(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 ke=_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)?Le(He(e),t):function(n){var r=function(e,t){var n=null==e?void 0:Ce(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,me)}(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]?Le(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 Ce(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),C=n.n(p),m=n(5),g=n.n(m),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 L(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 k=[["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,C,m){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(k)),g),y=O(JSON.parse(JSON.stringify(H)),g),w=L(_(v,t,p,C,m),2),b=w[0],E=w[1];if(n){var M=L(_(y,t,p,C,m),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 C=t.replace(/\D/g,"");(!n.state.freezeSelection||h&&h.dialCode.length>C.length)&&(l=n.props.disableCountryGuess?h:n.guessSelectedCountry(C.substring(0,6),d,f,p)||h,s=!1),a=n.formatNumber(C,l),l=l.dialCode?l:h}var m=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):m<v.length&&n.numberInputRef.setSelectionRange(m,m),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,m=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 C.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}:{}),C.a.createElement("div",{className:a}),C.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),C.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):c+e.dialCode))}),w=C.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 C.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&&C.a.createElement("li",{className:x()(r({search:!0},p,p))},!h&&C.a.createElement("span",{className:x()(r({"search-emoji":!0},"".concat(p,"-emoji"),p)),role:"img","aria-label":"Magnifying glass"},"🔎"),C.a.createElement("input",{className:x()(r({"search-box":!0},"".concat(p,"-box"),p)),style:m,type:"search",placeholder:g,autoFocus:!0,autoComplete:v?"on":"off",value:a,onChange:n.handleSearchChange})),y.length>0?y:C.a.createElement("li",{className:"no-entries-message"},C.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,m=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 L=p.findIndex(function(e){return e==c});return n.state={showDropdown:e.showDropdown,formattedNumber:E,onlyCountries:p,preferredCountries:m,hiddenAreaCodes:v,selectedCountry:c,highlightCountryIndex:L,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,m=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=m):(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 C.a.createElement("div",{className:"".concat(y," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},g&&C.a.createElement("div",{className:"special-label"},g),n&&C.a.createElement("div",{className:"invalid-number-message"},n),C.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)}})),C.a.createElement("div",{className:M,style:this.props.buttonStyle,ref:function(e){return i.dropdownContainerRef=e}},h?C.a.createElement("div",{className:E},h):C.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},C.a.createElement("div",{className:A},!f&&C.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}(C.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}])),ok),sk=H(lk),ck={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 dk(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 uk(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 uk(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 uk(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 fk(e,t){for(var n,r=0,i=dk(t.split(""));!(n=i()).done;){n.value===e&&r++}return r}function hk(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 pk(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 pk(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 pk(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 Ck(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=fk(t,e);return function(i){if(!i)return{text:"",template:e};for(var o,a=0,l="",s=hk(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=fk("(",e)-fk(")",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 mk=8,gk=46;function vk(e,t){void 0!==t&&(!function(){if("undefined"!=typeof navigator)return yk.test(navigator.userAgent)}()?e.setSelectionRange(t,t):setTimeout(function(){return e.setSelectionRange(t,t)},0))}var yk=/Android/i;function wk(e,t,n,r,i){if(!t.hasAttribute("readonly")){var o=function(e){switch(e.keyCode){case mk:return"Backspace";case gk: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,vk(e,t.start)}(t,a),bk(t,n,r,void 0,i)):bk(t,n,r,o,i)}}}function bk(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=Ck(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,vk(e,l),i&&i(a)}var Ek=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function Mk(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 Ak(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mk(Object(n),!0).forEach(function(t){xk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lk(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 kk(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=Lk(e,Ek),f=a(),h=p(function(e){f.current=e,t&&("function"==typeof t?t(e):t.current=e)},[t]),C=p(function(e){bk(f.current,n,r,void 0,c)},[f,n,r,c]),m=p(function(e){if(d&&d(e),!e.defaultPrevented)return wk(e,f.current,n,r,c)},[f,n,r,c,d]),g=Ak(Ak({},u),{},{ref:h,onChange:C,onKeyDown:m});return Ak(Ak({},g),{},s?{value:r(Hk(i)?"":i).text}:{defaultValue:r(Hk(o)?"":o).text})}function Hk(e){return null==e}var Sk=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function _k(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 Vk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ok(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 zk(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=kk(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_k(Object(n),!0).forEach(function(t){Vk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_k(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},Ok(e,Sk)));return i.createElement(r,h)}function Nk(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}(zk=i.forwardRef(zk)).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 Tk={}.constructor;function Ik(e){return null!=e&&e.constructor===Tk}function Dk(e){return Dk="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},Dk(e)}function Zk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jk(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,Rk(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rk(e){var t=function(e,t){if("object"!=Dk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Dk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Dk(t)?t:t+""}var Bk=" ext. ",Pk=/^\d+$/,Fk=function(){return jk(function e(t){Zk(this,e),Kk(t),this.metadata=t,$k.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&&Pk.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new Uk(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new Uk(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}}])}(),Uk=function(){return jk(function e(t,n){Zk(this,e),this.globalMetadataObject=n,this.metadata=t,$k.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 qk(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()&&Gk(this.types(),e))return new Qk(Gk(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?Bk:this.metadata[13]||Bk}}])}(),qk=function(){return jk(function e(t,n){Zk(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()||Wk.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),Wk=/^\(?\$1\)?$/,Qk=function(){return jk(function e(t,n){Zk(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 Gk(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 Kk(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Ik(e)||!Ik(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(Ik(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Yk(e)+": "+e,"."))}var Yk=function(e){return Dk(e)};function Xk(e,t){if((t=new Fk(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Jk(e,t){return t.countries.hasOwnProperty(e)}function $k(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===Nk(t,"1.2.0")?this.v2=!0:-1===Nk(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function eH(e,t,n){return function(e,t,n,r){t&&(r=new Fk(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 tH(e,t,n){return"IS_POSSIBLE"===eH(e,t,n)}function nH(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function rH(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 iH(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)?iH(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 iH(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 oH=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function aH(e,t,n){if(t=t||{},e.country||e.countryCallingCode){(n=new Fk(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(nH(r,n.nationalNumberPattern())){if(lH(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?lH(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var i,o=rH(oH);!(i=o()).done;){var a=i.value;if(lH(r,a,n))return a}}}}function lH(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&nH(e,t.pattern()))}function sH(e,t,n){var r=new Fk(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return function(e,t,n){var r=new Fk(n);if(r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,n)}):[]}var cH="0-90-9٠-٩۰-۹",dH="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),uH=new RegExp("(["+cH+"])");function fH(e,t,n,r){if(t){var i=new Fk(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(uH);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}function hH(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 pH(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 CH(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)?CH(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 CH(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 Fk(r);for(var i,o=pH(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(aH({phone:e,country:a},void 0,r.metadata))return a}}function gH(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 vH(e,t,n){var r=hH(e,n),i=r.carrierCode,o=r.nationalNumber;if(o!==e){if(!function(e,t,n){if(nH(e,n.nationalNumberPattern())&&!nH(t,n.nationalNumberPattern()))return!1;return!0}(e,o,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=gH(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!function(e,t,n){switch(eH(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 yH(e,t,n,r,i){var o=t||n?Xk(t||n,i):r;if(0===e.indexOf(o)){(i=new Fk(i)).selectNumberingPlan(t||n,o);var a=e.slice(o.length),l=vH(a,t,i).nationalNumber,s=vH(e,t,i).nationalNumber;if(!nH(s,i.nationalNumberPattern())&&nH(l,i.nationalNumberPattern())||"TOO_LONG"===eH(s,t,i))return{countryCallingCode:o,number:a}}return{number:e}}function wH(e,t,n,r,i){if(!e)return{};var o;if("+"!==e[0]){var a=fH(e,t||n,r,i);if(!a||a===e){if(t||n||r){var l=yH(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 Fk(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 bH(e){return e.replace(new RegExp("[".concat(dH,"]+"),"g")," ").trim()}var EH=/(\$\d)/;function MH(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(EH,t.nationalPrefixFormattingRule()):t.format());return r?bH(o):o}var AH=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var xH=function(e){return"([".concat(cH,"]{1,").concat(e,"})")};function LH(e){var t="[  \\t,]*",n="[:\\..]?[  \\t,-]*",r="#?",i="[  \\t]*";return";ext="+xH("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+xH("20")+r)+"|"+(t+"(?:[xx##~~]|int|int)"+n+xH("9")+r)+"|"+("[- ]+"+xH("6")+"#")+"|"+(i+"(?:,{2}|;)"+n+xH("15")+r)+"|"+(i+"(?:,)+"+n+xH("9")+r)}var kH="["+cH+"]{2}",HH="[++]{0,1}(?:["+dH+"]*["+cH+"]){3,}["+dH+cH+"]*",SH=new RegExp("^[++]{0,1}(?:["+dH+"]*["+cH+"]){1,2}$","i"),_H=HH+"(?:"+LH()+")?",VH=new RegExp("^"+kH+"$|^"+_H+"$","i");var OH={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function zH(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]}({},OH,n):OH,r=new Fk(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?TH(i=NH(a,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return a?(i=NH(a,null,"INTERNATIONAL",r,n),TH(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=Xk(r,i.metadata);if(o===n){var a=NH(e,t,"NATIONAL",i);return"1"===n?n+" "+a:a}var l=function(e,t,n){var r=new Fk(n);return r.selectNumberingPlan(e,t),r.defaultIDDPrefix()?r.defaultIDDPrefix():AH.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,void 0,i.metadata);if(l)return"".concat(l," ").concat(n," ").concat(NH(e,null,"INTERNATIONAL",i))}(a,e.carrierCode,o,n.fromCountry,r);return TH(l,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function NH(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 nH(a,e.pattern())}));return l?MH(e,l,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!l.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:t,metadata:r}):e}function TH(e,t,n,r){return t?r(e,t,n):e}function IH(e){return IH="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},IH(e)}function DH(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 ZH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DH(Object(n),!0).forEach(function(t){jH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jH(e,t,n){return(t=BH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RH(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,BH(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BH(e){var t=function(e,t){if("object"!=IH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=IH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==IH(t)?t:t+""}var PH=function(){return RH(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(Ik(n)&&Ik(n.countries)){r=n;var i=t;if(!UH.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=wH(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");Kk(r);var a=function(e,t){var n,r,i=new Fk(t);FH(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]:sH(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new Fk(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 tH(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 Fk(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==aH(e,t,n.metadata):nH(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new Fk(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return aH(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return zH(this,e,t?ZH(ZH({},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)}}])}(),FH=function(e){return/^[A-Z]{2}$/.test(e)};var UH=/^\+\d+$/;function qH(e){return qH="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},qH(e)}function WH(e,t,n){return t=YH(t),function(e,t){if(t&&("object"==qH(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,GH()?Reflect.construct(t,n||[],YH(e).constructor):t.apply(e,n))}function QH(e){var t="function"==typeof Map?new Map:void 0;return QH=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(GH())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&KH(i,n.prototype),i}(e,arguments,YH(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),KH(n,e)},QH(e)}function GH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(GH=function(){return!!e})()}function KH(e,t){return KH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KH(e,t)}function YH(e){return YH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YH(e)}var XH=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=WH(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&&KH(e,t)}(e,QH(Error)),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),JH=new RegExp("(?:"+LH()+")$","i");function $H(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 eS(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)?eS(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 eS(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 tS={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 nS(e){return tS[e]}function rS(e){for(var t,n="",r=$H(e.split(""));!(t=r()).done;){var i=nS(t.value);i&&(n+=i)}return n}function iS(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 oS(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)?oS(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 oS(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 aS(e){for(var t,n="",r=iS(e.split(""));!(t=r()).done;){n+=lS(t.value,n)||""}return n}function lS(e,t,n){return"+"===e?t?void("function"==typeof n&&n("end")):"+":nS(e)}var sS="(["+cH+"]|[\\-\\.\\(\\)]?)",cS=new RegExp("^\\+"+sS+"*["+cH+"]"+sS+"*$","g"),dS=new RegExp("^("+("["+cH+"]+((\\-)*["+cH+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+cH+"])*")+"\\.?$","g"),uS="tel:",fS=";phone-context=";function hS(e,t){var n,r=t.extractFormattedPhoneNumber,i=function(e){var t=e.indexOf(fS);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&&(cS.test(e)||dS.test(e))}(i))throw new XH("NOT_A_NUMBER");if(null===i)n=r(e)||"";else{n="","+"===i.charAt(0)&&(n+=i);var o,a=e.indexOf(uS);o=a>=0?a+4:0;var l=e.indexOf(fS);n+=e.substring(o,l)}var s=n.indexOf(";isub=");if(s>0&&(n=n.substring(0,s)),""!==n)return n}var pS=new RegExp("[++"+cH+"]"),CS=new RegExp("[^"+cH+"#]+$");function mS(e,t,n){if(t=t||{},n=new Fk(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new XH("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){var r=hS(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>250){if(n)throw new XH("TOO_LONG");return}if(!1===t)return e;var r=e.search(pS);if(r<0)return;return e.slice(r).replace(CS,"")}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=2&&VH.test(e)}(r))return function(e){return SH.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(JH);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(JH),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 XH("TOO_SHORT");throw new XH("NOT_A_NUMBER")}return{}}var l=function(e,t,n,r){var i,o=wH(aS(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||Xk(t,r.metadata)}if(!s)return{countryCallingCodeSource:a,countryCallingCode:l};var c=vH(aS(s),i,r),d=c.nationalNumber,u=c.carrierCode,f=gH(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 XH("INVALID_COUNTRY");return{}}if(!c||c.length<2){if(t.v2)throw new XH("TOO_SHORT");return{}}if(c.length>17){if(t.v2)throw new XH("TOO_LONG");return{}}if(t.v2){var h=new PH(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)&&nH(c,n.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:d,carrierCode:f,valid:p,possible:!!p||!(!0!==t.extended||!n.possibleLengths()||!tH(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 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 vS(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 yS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vS(Object(n),!0).forEach(function(t){wS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wS(e,t,n){return(t=function(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"===t?String:Number)(e)}(e,"string");return"symbol"==gS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bS(e){return bS="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},bS(e)}function ES(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 MS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=bS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=bS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AS(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 xS(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)?xS(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 xS(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 LS(e){var t,n,r,i=AS(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(!Ik(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?ES(Object(n),!0).forEach(function(t){MS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ES(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 HS(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 SS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HS(Object(n),!0).forEach(function(t){_S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _S(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 VS(e,t,n){t&&t.defaultCountry&&!Jk(t.defaultCountry,n)&&(t=SS(SS({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return mS(e,yS(yS({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof XH))throw e}}function OS(e){return OS="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},OS(e)}function zS(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 NS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zS(Object(n),!0).forEach(function(t){TS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=OS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=OS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==OS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IS(){var e=LS(arguments),t=e.text,n=e.options,r=e.metadata,i=VS(t,n=NS(NS({},n),{},{extract:!1}),r);return i&&i.isValid()||!1}function DS(e){return DS="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},DS(e)}function ZS(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,jS(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jS(e){var t=function(e,t){if("object"!=DS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=DS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==DS(t)?t:t+""}var RS=function(){return ZS(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 BS(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 PS(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)?PS(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 PS(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 FS="x",US=new RegExp(FS);function qS(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function WS(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 QS(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=GS(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:o,metadata:r});if(a)return a}return GS(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:o,metadata:r})}(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:o})}function GS(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix,a=MH(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 rS(e)===t.getNationalDigits()}(a,e))return a}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 YS(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,XS(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XS(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(e)}(e,"string");return"symbol"==KS(t)?t:t+""}var JS=function(){return YS(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([n_(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(t_);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(n_(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(n_(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:$S(r)});break;default:throw new Error("Unknown operator: ".concat(n))}i&&this.parsePattern(i)}else{if(e_.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}])}();function $S(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 e_=/[\(\)\[\]\?\:\|]/,t_=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function n_(e){return 1===e.length?e[0]:e}function r_(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 i_(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)?i_(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 i_(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 o_(e){return o_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o_(e)}function a_(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,l_(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l_(e){var t=function(e,t){if("object"!=o_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=o_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==o_(t)?t:t+""}var s_=function(){return a_(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 JS).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=c_(e.split(""),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!n||!n.overflow||t)return n}}])}();function c_(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=c_(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=r_(t.args);!(s=c()).done;){var d=c_(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=r_(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 d_(e){return d_="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},d_(e)}function u_(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 f_(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)?f_(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 f_(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 h_(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,p_(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p_(e){var t=function(e,t){if("object"!=d_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=d_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==d_(t)?t:t+""}var C_=qS("9",15),m_=/[- ]/,g_=new RegExp("["+dH+"]*\\$1["+dH+"]*(\\$\\d["+dH+"]*)*$"),v_=function(){return h_(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"===eH(e,t,n)}(t.nationalSignificantNumber,t.country,this.metadata))for(var r,i=u_(this.matchingFormats);!(r=i()).done;){var o=r.value,a=QS(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,FS),t),this.populatedNationalNumberTemplate=a,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(FS),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 s_(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:g_.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=u_(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(FS,t+1),n++;return WS(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,FS)+qS(FS,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=C_.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(EH,e.nationalPrefixFormattingRule());if(rS(e.nationalPrefixFormattingRule())===(i||"")+rS("$1")&&(u=f,d=!0,i))for(var h=i.length;h>0;)u=u.replace(/\d/,FS),h--}var p=l.replace(new RegExp(a),u).replace(new RegExp("9","g"),FS);return d||(o?p=qS(FS,o.length)+" "+p:i&&(p=qS(FS,i.length)+this.getSeparatorAfterNationalPrefix(e)+p)),r&&(p=bH(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,n){for(var r,i=BS(n.split(""));!(r=i()).done;){var o=r.value;if(e.slice(t+1).search(US)<0)return;t=e.search(US),e=e.replace(US,o)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],WS(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 y_(e){return y_="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},y_(e)}function w_(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 b_(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)?b_(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 b_(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 E_(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,M_(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M_(e){var t=function(e,t){if("object"!=y_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=y_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==y_(t)?t:t+""}var A_=new RegExp("^"+("["+dH+cH+"]+")+"$","i"),x_="(?:[++]["+dH+cH+"]*|["+dH+cH+"]+)",L_=new RegExp("[^"+dH+cH+"]+.*$"),k_=/[^\d\[\]]/,H_=function(){return E_(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(x_);if(n<0)return;e=e.slice(n),"+"===e[0]&&(t=!0,e=e.slice(1));e=e.replace(L_,""),t&&(e="+"+e);return e}(e)||"";if("+"===t[0])return[t.slice(1),!0];return[t]}(e),n=w_(t,2),r=n[0],i=n[1];A_.test(r)||(r="");return[r,i]}(e),i=w_(r,2),o=i[0],a=i[1],l=rS(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=wH("+"+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=hH(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=hH(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=fH(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=yH(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 S_(e){return S_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S_(e)}function __(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 V_(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)?V_(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 V_(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 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,z_(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function z_(e){var t=function(e,t){if("object"!=S_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=S_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==S_(t)?t:t+""}var N_=function(){return O_(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 Fk(n);var r=__(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&&(Ik(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 RS({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 v_({state:this.state,metadata:this.metadata}),this.parser=new H_({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,FS)}},{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(gH(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 Fk(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 PH(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 T_(e){return new Fk(e).getCountries()}function I_(e){var t=e.inputFormat,n=e.country,r=e.metadata;return"NATIONAL_PART_OF_INTERNATIONAL"===t?"+".concat(Xk(n,r)):""}function D_(e,t){return t&&" "===(e=e.slice(t.length))[0]&&(e=e.slice(1)),e}function Z_(e,t,n){if(!n||!n.ignoreRest){return lS(e,t,function(e){if(n&&"end"===e)n.ignoreRest=!0})}}function j_(e){var t=e.onKeyDown,n=e.inputFormat;return p(function(e){e.keyCode===R_&&"INTERNATIONAL"===n&&e.target instanceof HTMLInputElement&&e.target.selectionStart===B_.length?e.preventDefault():t&&t(e)},[t,n])}var R_=8,B_="+",P_=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function F_(){return F_=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},F_.apply(this,arguments)}function U_(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 q_=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=U_(t,P_),d=p(function(e){var t=new N_(o,s),n=I_({inputFormat:a,country:o,metadata:s}),r=t.input(n+e),i=t.getTemplate();return n&&(r=D_(r,n),i&&(i=D_(i,n))),{text:r,template:i}},[o,s]),u=j_({onKeyDown:r,inputFormat:a});return i.createElement(zk,F_({},c,{ref:n,parse:Z_,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}(),W_=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function Q_(){return Q_=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},Q_.apply(this,arguments)}function G_(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 K_=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=G_(t,W_),C=I_({inputFormat:s,country:l,metadata:d}),m=p(function(e){var t=aS(e.target.value);t===r&&(0===Y_(C,t,l,d).indexOf(e.target.value)&&(t=t.slice(0,-1)));o(t)},[C,r,o,l,d]),g=j_({onKeyDown:a,inputFormat:s});return i.createElement(f,Q_({},h,{ref:n,value:Y_(C,r,l,d),onChange:m,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 Y_(e,t,n,r){return D_(function(e,t,n){return n||(n=t,t=void 0),new N_(t,n).input(e)}(e+t,n,r),e)}function X_(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var J_=["value","onChange","options","disabled","readOnly"],$_=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];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 tV(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 tV(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 tV(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 nV(){return nV=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},nV.apply(this,arguments)}function rV(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 iV(e){var t=e.value,n=e.onChange,r=e.options,o=e.disabled,a=e.readOnly,l=rV(e,J_),s=p(function(e){var t=e.target.value;n("ZZ"===t?void 0:t)},[n]);return h(function(){return sV(r,t)},[r,t]),i.createElement("select",nV({},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?oV:void 0},n)}))}iV.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 oV={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function aV(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?lV:l,c=e.unicodeFlags,d=rV(e,$_),u=h(function(){return sV(n,t)},[n,t]);return i.createElement("div",{className:"PhoneInputCountry"},i.createElement(iV,nV({},d,{value:t,options:n,className:z("PhoneInputCountrySelect",r)})),u&&(c&&t?i.createElement("div",{className:"PhoneInputCountryIconUnicode"},X_((a=t)[0])+X_(a[1])):i.createElement(o,{"aria-hidden":!0,country:t,label:u.label,aspectRatio:c?1:void 0})),i.createElement(s,null))}function lV(){return i.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function sV(e,t){for(var n,r=eV(e);!(n=r()).done;){var i=n.value;if(!i.divider&&cV(i.value,t))return i}}function cV(e,t){return null==e?null==t:e===t}aV.propTypes={iconComponent:Wh.elementType,arrowComponent:Wh.elementType,unicodeFlags:Wh.bool};var dV=["country","countryName","flags","flagUrl"];function uV(){return uV=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},uV.apply(this,arguments)}function fV(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 hV(e){var t=e.country,n=e.countryName,r=e.flags,o=e.flagUrl,a=fV(e,dV);return r&&r[t]?r[t]({title:n}):i.createElement("img",uV({},a,{alt:n,role:n?void 0:"presentation",src:o.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}hV.propTypes={country:Wh.string.isRequired,countryName:Wh.string.isRequired,flags:Wh.objectOf(Wh.elementType),flagUrl:Wh.string.isRequired};var pV=["aspectRatio"],CV=["title"],mV=["title"];function gV(){return gV=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},gV.apply(this,arguments)}function vV(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 yV(e){var t=e.aspectRatio,n=vV(e,pV);return 1===t?i.createElement(bV,n):i.createElement(wV,n)}function wV(e){var t=e.title,n=vV(e,CV);return i.createElement("svg",gV({},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 bV(e){var t=e.title,n=vV(e,mV);return i.createElement("svg",gV({},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 EV(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 MV(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 AV(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 AV(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 AV(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 xV(e,t){return!!Jk(e,t)||(console.error("Country not found: ".concat(e)),!1)}function LV(e,t){return e&&0===(e=e.filter(function(e){return xV(e,t)})).length&&(e=void 0),e}yV.propTypes={title:Wh.string.isRequired,aspectRatio:Wh.number},wV.propTypes={title:Wh.string.isRequired},bV.propTypes={title:Wh.string.isRequired};var kV=["country","label","aspectRatio"];function HV(){return HV=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},HV.apply(this,arguments)}function SV(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 _V(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=SV(e,kV),d=o===yV?s:void 0;return i.createElement("div",HV({},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 VV(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 OV(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 OV(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 OV(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 zV(e,t){"function"==typeof e?e(t):e.current=t}_V({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:hV,internationalIcon:yV});var NV=Wh.shape({country_calling_codes:Wh.object.isRequired,countries:Wh.object.isRequired}),TV=Wh.objectOf(Wh.string);function IV(e,t){return"+"+Xk(e,t)}function DV(e,t){return function(){var e=LS(arguments);return VS(e.text,e.options,e.metadata)}(e||"",t)}function ZV(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?IV(r,i):"";if(r){if("+"===e[0]){if(o)return 0===e.indexOf("+"+Xk(r,i))?function(e,t,n){if(t){var r="+"+Xk(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=IV(r,i);return 0===e.indexOf(a)?e:a}var l=IV(r,i);return 0===e.indexOf(l)?e:l}}else if("+"!==e[0])return jV(e,n,i)||"";return e}function jV(e,t,n){if(e){if("+"===e[0]){if("+"===e)return;var r=new N_(t,n);return r.input(e),r.getNumberValue()}if(t){var i=UV(e,t,n);return"+".concat(Xk(t,n)).concat(i||"")}}}function RV(e,t,n){var r=UV(e,t,n);if(r){var i=r.length-function(e,t){return t=new Fk(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 BV(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 N_(null,t);return n.input(e),n.getCountry()}(e,l);if(s)return!r||r.indexOf(s)>=0?s:void 0;if(n)if(qV(e,n,l)){if(o&&qV(e,o,l))return o;if(i&&qV(e,i,l))return i;if(!a)return}else if(!a)return;return n}function PV(e,t,n){if(0===e.indexOf(IV(t,n))){var r=new N_(t,n);r.input(e);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}return e.replace(/\D/g,"")}function FV(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function UV(e,t,n){var r=new N_(t,n);r.input(e);var i=r.getNumber();return i&&i.nationalNumber}function qV(e,t,n){for(var r=IV(t,n),i=0;i<e.length&&i<r.length;){if(e[i]!==r[i])return!1;i++}return!0}function WV(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?IV(r,a):t}function QV(e){return QV="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},QV(e)}function GV(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 KV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GV(Object(n),!0).forEach(function(t){YV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=QV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=QV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QV(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XV(e,t){return null===e&&(e=void 0),null===t&&(t=void 0),e===t}var JV=["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 $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 eO(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 tO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eO(Object(n),!0).forEach(function(t){cO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nO(){return nO=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},nO.apply(this,arguments)}function rO(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 iO(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,dO(r.key),r)}}function oO(e,t,n){return t=lO(t),function(e,t){if(t&&("object"===$V(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,aO()?Reflect.construct(t,n||[],lO(e).constructor):t.apply(e,n))}function aO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aO=function(){return!!e})()}function lO(e){return lO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lO(e)}function sO(e,t){return sO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sO(e,t)}function cO(e,t,n){return(t=dO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dO(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"===t?String:Number)(e)}(e,"string");return"symbol"==$V(t)?t:t+""}var uO=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),cO(n=oO(this,e,[t]),"setInputRef",function(e){!function(e,t){for(var n,r=VV(e);!(n=r()).done;){var i=n.value;i&&zV(i,t)}}([n.props.inputRef,n.inputRef],e)}),cO(n,"isCountrySupportedWithError",function(e){return xV(e,n.props.metadata)}),cO(n,"onCountryChange",function(e){var t=n.props,r=t.international,i=t.metadata,o=t.onChange,a=t.focusInputOnCountrySelection,l=n.state,s=ZV(l.phoneDigits,{prevCountry:l.country,newCountry:e,metadata:i,useNationalFormat:!r}),c=jV(s,e,i);a&&n.inputRef.current.focus(),n.setState({country:e,latestCountrySelectedByUser:e,hasUserSelectedACountry:!0,phoneDigits:s,value:c},function(){o(c)})}),cO(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,C=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,C=IV(i,h);if(0!==e.indexOf(C))return e&&"+"!==e[0]?p=jV(e=C+e,i,h):e=C,{phoneDigits:e,value:p,country:i}}return!1===d&&i&&e&&"+"===e[0]&&(e=PV(e,i,h)),e&&i&&u&&(e=RV(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===IV(i,h).indexOf(e))?void 0:jV(e,i,h)),n&&(i=BV(n,{country:i,countries:c,defaultCountry:o,latestCountrySelectedByUser:a,required:!1,metadata:h}),!1===d&&i&&e&&"+"===e[0]&&(n=jV(e=PV(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}),m=C.phoneDigits,g=C.country,v=C.value,y={phoneDigits:m,value:v,country:g};p&&v&&!qV(v,p,c)&&(y.latestCountrySelectedByUser=void 0),!1===s&&(v||m!==n.state.phoneDigits||(y.forceRerender={})),n.setState(y,function(){return i(v)})}),cO(n,"_onFocus",function(){return n.setState({isFocused:!0})}),cO(n,"_onBlur",function(){return n.setState({isFocused:!1})}),cO(n,"onFocus",function(e){n._onFocus();var t=n.props.onFocus;t&&t(e)}),cO(n,"onBlur",function(e){var t=n.props.onBlur;n._onBlur(),t&&t(e)}),cO(n,"onCountryFocus",function(e){n._onFocus();var t=n.props.countrySelectProps;if(t){var r=t.onFocus;r&&r(e)}}),cO(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&&EV(o),h=LV(h,d);var p=DV(o,d);n.CountryIcon=_V(n.props);var C=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&&!qV(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||T_(d),getAnyCountry:function(){return n.getFirstSupportedCountry({countries:h})},metadata:d});return n.state={props:n.props,country:C,countries:h,phoneDigits:WV({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&&sO(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=MV(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=FV);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||T_(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 xV(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 C=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 m=e.metadata,g=e.international;e.locales;var v=rO(e,JV),y=this.state,w=y.country,b=y.countries,E=y.phoneDigits,M=y.isFocused,A=d?q_:K_,x=this.getCountrySelectOptions({countries:b});return i.createElement(h,nO({style:a,className:z(l,"PhoneInput",{"PhoneInput--focus":M,"PhoneInput--disabled":n,"PhoneInput--readOnly":r})},p),i.createElement(u,nO({name:t?"".concat(t,"Country"):void 0,"aria-label":C.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,nO({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:m,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 tO({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,C=n.hasUserSelectedACountry,m=n.latestCountrySelectedByUser,g=function(e){return WV(KV(KV({},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||xV(o,r),y=!p||s&&p===g({value:void 0,defaultCountry:u});if(!C&&v&&!a&&y)return{country:o,phoneDigits:g({value:void 0,defaultCountry:o}),value:void 0}}if(!XV(a,f)&&!XV(a,p)){var w,b,E;if(a){a&&EV(a),w=DV(a,r);var M=LV(i,r);w&&w.country?(!M||M.indexOf(w.country)>=0)&&(b=w.country):(b=BV(a,{country:void 0,countries:M,metadata:r}))||o&&0===a.indexOf(IV(o,r))&&(b=o)}return a?m&&((b?m===b:qV(a,m,r))?b||(b=m):E={latestCountrySelectedByUser:void 0}):E={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0},KV(KV({},E),{},{phoneDigits:g({phoneNumber:w,value:a,defaultCountry:o}),value:a,country:a?b:o})}}(e,t.props,t))}}],n&&iO(t.prototype,n),r&&iO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),fO=i.forwardRef(function(e,t){return i.createElement(uO,nO({},function(e){for(var t in e=tO({},e),hO)void 0===e[t]&&(e[t]=hO[t]);return e}(e),{inputRef:t}))});fO.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:TV,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:NV,onCountryChange:Wh.func,focusInputOnCountrySelection:Wh.bool};var hO={autoComplete:"tel",countrySelectComponent:aV,flagComponent:hV,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:yV,inputComponent:"input",containerComponent:"div",reset:Wh.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};var pO={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"},CO=["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 gO(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 vO(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?pO:a,s=gO(t,CO);return i.createElement(fO,mO({},s,{ref:n,metadata:o,labels:l}))});return t.propTypes={metadata:NV,labels:TV},t}function yO(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(ck),e.apply(this,n)}(IS,arguments)}vO(),vO(ck);const wO=({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:C=!0,isVerified:m=!1,isVerifyDisplay:g=!1,onVerifyClick:v=()=>{},onValidationChange:y=()=>{}})=>{const[w,b]=c(r),[E,M]=c(!1),[A,x]=c(C),[L,k]=c(t);l(()=>{if(r){let e=r;e.startsWith("+")||(e=`+${e}`),b(e)}},[r]);const H=e=>{const t=yO(e),n=!!e&&e.replace(/[^\d]/g,"").length<=3,r=t||n;x(r),y(r)};return n("div",{id:u,children:[e(sk,{specialLabel:"",countryCodeEditable:!1,country:t,value:w,onChange:(e,t)=>{const n=t?.countryCode?.toLowerCase(),r=e.replace(/[^0-9+]/g,"");if(L?.toLowerCase()!==n)return b(t?.dialCode),i(t?.dialCode),k(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"}),m?e(F,{color:"var(--phone-number-verified-color)",children:"Verified"}):yO(w)&&g&&!m&&e(F,{color:"var(--brand-color)",className:"cursor_pointer",onClick:v,children:"Verify"})]})},bO=(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},EO=(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}`}},MO=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},AO=(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}},xO=(e,t)=>{const n=t.searchKey?.split("/")||[];return G(n)||e.map(e=>(n.includes(e.key)&&(e.state=t.state),e)),e},LO=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 HO(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 SO=(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)}},_O=e=>`${e.getDate().toString().padStart(2,"0")}/${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getFullYear()}`,VO=(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:VO(e.data,t,r)}:e)},OO=(e,t,n,r)=>e.map(e=>e.title===t?{...e,data:VO(e.data,n,r)}:e),zO=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}`)},NO=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)},TO=({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(TO,{data:t.data,level:u,columnCount:o,viewModeId:a,handleClick:s,ViewComponent:l,handleStepGroupExpand:c,isStepGroupExpanded:d})]},t.stepId)})})};var IO=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:C,handleClick:m,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:L,setNodeRef:k,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:k,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",...L,...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(TO,{data:r.data,columnCount:i.length,viewModeId:p,ViewComponent:C,handleClick:m,handleStepGroupExpand:g,isStepGroupExpanded:v})]})});const DO=(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},ZO=(e,t="nearest",n=5)=>{if(!e)return;const r=document.getElementById(e);r?r.scrollIntoView({behavior:"smooth",block:t}):n>0?setTimeout(()=>{ZO(e,t,n-1)},300):console.warn(`Element with id - "${e}" not found after multiple retries.`)},jO=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:C,height:m="100%",className:g="",tableHeadClass:v="",tableBodyRowClass:E="",headerTextColor:M,tableDataTextColor:A,draggable:x=!1,onDragEnd:L,loadMore:k=()=>{},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";k(t)}})},{root:e,rootMargin:"8px",threshold:.1}),j.current.observe(n),j.current.observe(r),()=>{j.current?.disconnect()}},[t,k]);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(()=>{ZO("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&&L&&L(i,o)},modifiers:[eh],children:e(ua,{disabled:!x,items:t?.map(e=>e.stepId||e._id),strategy:sa,children:n("div",{style:{height:m},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"}),DO(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(IO,{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(${m} - 50px)`},children:C})]})})})}),RO=g(({data:r=[],level:o=0,columnCount:s=1,viewModeId:c,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:p,isViewPrivilegeMode:C,columns:m=[],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:m.map((r,i)=>{return e("td",{style:{maxWidth:r.width,padding:(o=t?.type||t?.entityType,w.has(o?.toLowerCase())?"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:[!C&&0===i&&e("div",{style:{padding:"4px 18px"}}),E({...t,marginLeft:b},r)]}),0===i&&["group","pre","post","script"].includes((t?.type||t?.entityType)?.toLowerCase())&&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(RO,{data:t.data,level:b,columnCount:s,viewModeId:c,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:p,isViewPrivilegeMode:C,columns:m,parentIndex:o,updateRowHeight:v})]},t.stepId)})})});RO.displayName="StepGroupAccordions";const BO=g(({row:r,columns:i,tableBodyRowClass:o,handleOnclick:s,tableDataTextColor:c,withCheckbox:d,onSelectClick:u,draggable:f,indexNumber:p=0,tableType:C="",viewModeId:m,ViewComponent:g,handleClick:v,selectedRows:y,handleStepGroupExpand:w,isStepGroupExpanded:b,dataLength:E,stepPartialSelect:M,isViewPrivilegeMode:A,isClientSide:x,updateRowHeight:L,rowId:k,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&&L){const e=_.current.getBoundingClientRect().height;L(p,e)}},[r,L,p,b?.(r?.stepId)]);const B=e=>A||x?["group","pre","post","script"].includes((r?.type||r?.entityType)?.toLowerCase())&&0===e?"4px 8px":"7px 8px":0!==e?"Steps"===C?"4px 8px":"7px 8px":"Steps"===C&&f?"4px 8px 4px 0px":"4px 8px 4px 24px";return n(t,{children:[e("tr",{"data-rowid":k,ref:e=>{_.current=e,I(e)},style:j,className:z(o,"sortable-item",{"disabled-inner-row":V}),id:R,onMouseEnter:()=>{H?.(k||"")},onMouseLeave:()=>{S?.(k||"")},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:C&&y[C]?.has(r.stepId)||M?.has(r.stepId)?"ff-step-table-select-checkbox":"ff-table-checkbox-step",children:e(te,{onChange:e=>u(C,r,e.target.checked),checked:!!y[C]?.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,C),["group","pre","post","script"].includes((r?.type||r?.entityType)?.toLowerCase())&&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:C,serialNumber:O})})}),i.extraInfo?.({row:r,indexNumber:p,tableType:C})]})]})},`${i.accessor}-${gp()}`)}))},R),b?.(r?.stepId)&&e(RO,{data:r.data||r?.stepResults,columnCount:i.length,viewModeId:m,ViewComponent:g,handleClick:v,tableType:C,handleStepGroupExpand:w,isStepGroupExpanded:b,level:r?.marginLeft,isViewPrivilegeMode:A,columns:i,parentIndex:p,updateRowHeight:L})]})});BO.displayName="StepTableMainRow";const PO=({data:t=[],columns:r=[],headerType:i,withCheckbox:o=!1,onSelect:s,withFixedHeader:d=!0,borderWithRadius:u=!1,noDataContent:f,height:C="100%",className:m="",tableBodyRowClass:g="",headerTextColor:v,tableDataTextColor:b,draggable:E=!1,onDragEnd:M,loadMore:A=()=>{},editMode:x="",editComponent:L,NlpComponent:k,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=DO(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=DO(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(()=>DO(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:C,position:"relative",overflowY:C?.includes("vh")?"auto":void 0},id:"ff-table-scroll-container",className:z(m,{"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(L)&&e("td",{colSpan:r.length,children:y(L,{rowData:i,rowIndex:l+1})}),i.isNew&&!s&&w(k)&&e("td",{colSpan:r.length,children:y(k,{rowIndex:l,rowData:i})})]},i.stepId||l):e(BO,{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(${C} - 50px)`},children:f})]})})})},FO=e=>["ElseIfCondition","ElseCondition"].includes(e?.nlpName);let UO=null,qO=null;const WO=e=>{if(qO===e&&UO)return UO;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)}),UO=n,qO=e,n},QO=e=>e.includes("/")?e.split("/").slice(0,-1).join("/"):e;const GO=e=>{if(!e)return!1;for(const t of Object.values(e))if(t&&t.size>0)return!0;return!1},KO=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)"}},YO=e=>{switch(e){case"PASS":return"Passed";case"FAIL":return"Failed";case"SKIP":return"Skipped";case"WARNING":return"Warning";default:return e}},XO=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"}},JO=({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=a.map(e=>({...e,count:e.count??0})),u=d.reduce((e,{count:t})=>e+t,0),f=d.some(({count:e})=>e>0),p=i?d:a,C=[["Passed","Failed"],["Warning","Skipped"]].map(e=>p.filter(({name:t})=>e.includes(t))),m=(e,t)=>"Skipped"===e?"var(--status-skipped-bg-color)":t,g=h(()=>n("div",{className:"ff-status-tooltip",children:[C.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:m(t,i)}}),n(F,{as:"span",fontWeight:"medium",fontSize:10,className:"ff-status-result-tooltip-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]})]}),[C,u]);if(i)return f?e(K,{title:g,children:e("span",{className:"ff-status-icon-wrapper",children:e(P,{name:"status_icon"})})}):null;const v=[];let y=0;for(const{count:e,name:t,color:n}of l){const r=`${e}/${o} ${t}`;if(!(y+r.length<=c.length)){const e=c.slice(y).trim();e&&v.push({text:e,color:n});break}v.push({text:r,color:n}),y+=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:v.map(({text:t,color:n},r)=>e(F,{as:"span",fontWeight:"semi-bold",style:{color:n,whiteSpace:"nowrap"},children:t+" "},r))})})})},$O=({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:C,row:m,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(JO,{metaData:g,width:(()=>{const e=m?.marginLeft??0;if((c?.(f,h)||d?.(f,h))&&"Steps"===f)return 200-e;return(y?350:{"Depends on Scripts":240,"Post Conditions":230,"Pre Conditions":260,Steps:310}[f]??250)-e})()}),l&&!a&&e(t,{children:C(m)})]})]})}),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:KO(g?.status),children:g?.message})})}),g?.status&&e("div",{className:"step-result",style:{width:`${b(2)}px`},children:e(cr,{label:YO(g?.status),status:XO(g?.status),children:g?.status})})]})},ez=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:C,NlpComponent:m,AddNlp:g,handleAccordion:v,handleViewComponent:y,onSelectClick:w,loading:E=!1,isViewPrivilegeMode:M=!1,defaultExpanded:A="Steps",isHeaderRequired:x=!0,isClientSide:L=!1,highlightKey:k,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&&!GO(X))return;const{updateSelectRow:e,updateStepPartialSelect:t}=((e,t,n)=>{const r=WO(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)),FO(e?.start)&&(a||n)){const t=e?.start?.conditionSearchKey,n=QO(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(GO(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=WO(e),s=e=>{const t=e?.conditionSearchKey,n=QO(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(FO(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=QO(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||FO(e)||t?.specialNlpId?e.conditionSearchKey:QO(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(PO,{onHighlightComplete:H,highlightKey:k,draggable:!1,editMode:f,withCheckbox:!M,editComponent:C,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:L}):e(PO,{onHighlightComplete:H,highlightKey:k,draggable:S,columns:t,onDragEnd:u,data:n.data,headerType:s,withCheckbox:!0,editMode:f,editComponent:C,noDataContent:i,NlpComponent:m,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:L,handleRowHover:V,handleRowHoverOut:O}),[M,H,k,S,t,u,s,f,C,i,m,g,B,d,re,X,D,T,Y,le,ae,$,r.length,o,L]);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&&!L&&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($O,{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:L,isMaximize:_}),c&&se(r)]},i)})})]})}));ez.displayName="StepLandingTable";var tz,nz,rz,iz,oz,az,lz,sz,cz,dz,uz,fz,hz,pz,Cz,mz,gz,vz,yz,wz,bz,Ez,Mz,Az,xz,Lz,kz,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,CN,mN,gN,vN,yN,wN,bN,EN,MN,AN,xN,LN,kN,HN,SN,_N,VN,ON,zN,NN,TN,IN,DN,ZN={exports:{}};function jN(){return tz||(tz=1,ZN.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__@@",C="delete",m=5,g=1<<m,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 L(e){return void 0===e.size&&(e.size=e.__iterate(H)),e.size}function k(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?L(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}):Ce(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)})):me(t)?e.call(r,n,G(t).map(function(n,r){return pe(e,n,r,t)})):t}function Ce(e){return Array.isArray(e)?K(e).map(Ce).toList():me(e)?G(e).map(Ce).toMap():e}function me(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[k(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+k(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 Le="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 ke(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 ke(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 ke(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=mt(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+m,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 Ct(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 Ct(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 mt(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=mt(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[C]=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+m,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+m,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 C=e&&e===this.ownerID,g=d?p?c:c^s:c|s,w=d?p?vt(f,u,p,C):wt(f,u,C):yt(f,u,p,C);return C?(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+m,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+m,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,m,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[Lt])}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=k(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=m,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 Lt="@@__IMMUTABLE_LIST__@@",kt=At.prototype;function Ht(e,t){this.array=e,this.ownerID=t}kt[Lt]=!0,kt[C]=kt.remove,kt.setIn=Ge.setIn,kt.deleteIn=kt.removeIn=Ge.removeIn,kt.update=Ge.update,kt.updateIn=Ge.updateIn,kt.mergeIn=Ge.mergeIn,kt.mergeDeepIn=Ge.mergeDeepIn,kt.withMutations=Ge.withMutations,kt.asMutable=Ge.asMutable,kt.asImmutable=Ge.asImmutable,kt.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-m,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-m,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-m,o+(n<<i))}}}}function zt(e,t,n,r,i,o,a){var l=Object.create(kt);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,m))}function Tt(e,t,n){if((t=k(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-m,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+m){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=m;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+=m);d&&(a+=d,i+=d,l+=d,o+=d);for(var u=Bt(o),f=Bt(l);f>=1<<s+m;)c=new Ht(c&&c.array.length?[c]:[],r),s+=m;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 C=c=Dt(c,r),g=s;g>m;g-=m){var y=u>>>g&v;C=C.array[y]=Dt(C.array[y],r)}C.array[u>>>m&v]=h}if(l<o&&(p=p&&p.removeAfter(r,0,l)),a>=f)a-=f,l-=f,s=m,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-=m,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)),Ct(e,t,r)}function Bt(e){return e<g?0:e-1>>>m<<m}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 Cn(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=k(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 Cn(e,t){return oe(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function gn(e){return Fe(e.size),L(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);kn(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[C]=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){mn(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){mn(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(Ln(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 '+Ln(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 Ln(e){return e._name||e.constructor.name||"Record"}function kn(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[C]=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[C]=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=k(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 Cn(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 Cn(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 Cn(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 Cn(this,$t(this,!0))},slice:function(e,t){return Cn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return Cn(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 L(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 Cn(this,cn(this,e,t))},flatten:function(e){return Cn(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 Cn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Cn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return Cn(this,un(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Cn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Cn(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 Cn(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 Cn(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Cn(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=Le(t,3432918353),t=Le(t<<15|t>>>-15,461845907),t=Le(t<<13|t>>>-13,5),t=Le((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ke((t=Le(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 Cn(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 Cn(this,$t(this,!1))},slice:function(e,t){return Cn(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 Cn(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 Cn(this,sn(this,e,!1))},get:function(e,t){return(e=k(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=k(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Cn(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),Cn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Cn(this,an(this,e,t,!1))},zip:function(){return Cn(this,pn(this,ir,[this].concat(x(arguments))))},zipWith:function(e){var t=x(arguments);return t[0]=this,Cn(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}()),ZN.exports}function RN(){if(rz)return nz;rz=1;var e=jN().OrderedMap;return nz={createFromArray:function(t){return e(t.map(function(e){return[e.getKey(),e]}))}}}function BN(){if(oz)return iz;oz=1;var e=jN(),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,iz=a}function PN(){if(lz)return az;return lz=1,az=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 FN(){if(cz)return sz;cz=1;var e=BN(),t=PN(),n=jN(),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 sz=d}function UN(){if(uz)return dz;uz=1;var e=BN(),t=PN(),n=jN(),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 dz=f}function qN(){if(gz)return mz;gz=1;var e=function(){if(Cz)return pz;Cz=1;var e=BN();return pz=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=jN();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 WN(){if(bz)return wz;bz=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 wz=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}},wz}function QN(){if(xz)return Az;xz=1;var e=yz?vz:(yz=1,vz={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(Mz)return Ez;Mz=1;var e=WN();return Ez=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},Ez}(),n=WN();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 C=p[0];if("IMMUTABLE"===f)return o.merge({anchorOffset:C.start,focusOffset:C.end,isBackward:!1});s||(c?u=C.end:d=C.start);var m=e.getRemovalRange(d,u,i.getText().slice(C.start,C.end),C.start,a);return o.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}return Az=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 GN(){if(kz)return Lz;kz=1;var e={},t=Math.pow(2,24);return Lz=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},Lz}function KN(){if(Sz)return Hz;Sz=1;var e=UN(),t=GN(),n=jN().OrderedMap;return Hz=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)},Hz}function YN(){if(Vz)return _z;Vz=1;var e=BN(),t=PN(),n=WN();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 _z=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 XN(){if(zz)return Oz;zz=1;var e=KN(),t=YN();return Oz=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 JN(){if(Tz)return Nz;return Tz=1,Nz=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 $N(){if(Dz)return Iz;Dz=1;var e=RN(),t=UN(),n=jN(),r=JN(),i=WN(),o=KN(),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(),C=p.getLength(),m=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:m,anchorOffset:C,focusKey:m,focusOffset:C,isBackward:!1})})};return Iz=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 C=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,C),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)},Iz}function eT(){if(Bz)return Rz;Bz=1;var e=jN().Map;return Rz=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})},Rz}function tT(){if(Fz)return Pz;Fz=1;var e=UN();return Pz=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 nT(){if(qz)return Uz;qz=1;var e=UN(),t=tT(),n=jN();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 Uz=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),C=l.get(f),m=p instanceof e,g=[];if(m){var v=C.getChildKeys(),y=o(f,l);C.getNextSiblingKey()&&(g=g.concat(y)),v.isEmpty()||(g=g.concat(y.concat([f]))),g=g.concat(o(t(C,l),l))}a=p===C?c(p.getCharacterList(),u,h):p.getCharacterList().slice(0,u).concat(C.getCharacterList().slice(h));var w=p.merge({text:p.getText().slice(0,u)+C.getText().slice(h),characterList:a}),b=m&&0===u&&0===h&&C.getParentKey()===d&&null==C.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 m&&p!==C&&(E=s(E,p,C,l)),n.merge({blockMap:E,selectionBefore:i,selectionAfter:i.merge({anchorKey:d,anchorOffset:u,focusKey:d,focusOffset:u,isBackward:!1})})},Uz}function rT(){if(Qz)return Wz;Qz=1;var e=UN(),t=GN(),n=jN(),r=WN(),i=eT(),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 Wz=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(),C=u.getCharacterList(),m=t(),g=u instanceof e,v=u.merge({text:f.slice(0,p),characterList:C.slice(0,p)}),y=v.merge({key:m,text:f.slice(p),characterList:C.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],[m,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:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})},Wz}function iT(){if(Kz)return Gz;Kz=1;var e=BN(),t=function(){if(hz)return fz;hz=1;var e=BN(),t=jN().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 fz={add:function(e,t,r){return n(e,t,r,!0)},remove:function(e,t,r){return n(e,t,r,!1)}}}(),n=qN(),r=QN(),i=XN(),o=jN(),a=$N(),l=function(){if(jz)return Zz;jz=1;var e=jN(),t=JN(),n=WN(),r=e.Repeat;return Zz=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})})},Zz}(),s=WN(),c=eT(),d=YN(),u=nT(),f=rT(),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 C=d(e,t);return u(C,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 Gz=p}function oT(){if(Xz)return Yz;return Xz=1,Yz=function(e){return Object.keys(e).map(function(t){return e[t]})},Yz}function aT(){if($z)return Jz;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}$z=1;var t=PN(),n=oT(),r=jN(),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 Jz=d}function lT(){if(tN)return eN;tN=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,jN().Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));return eN=e}function sT(){if(oN)return iN;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}oN=1;var t=lT(),n=jN(),r=WN(),i=(rN||(rN=1,nN=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)})}),nN),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 iN=s}function cT(){if(lN)return aN;lN=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,jN().Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));return aN=e}function dT(){return cN?sN:(cN=1,sN=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]})}function uT(){if(uN)return dN;uN=1;var e=new RegExp("\r","g");return dN=function(t){return t.replace(e,"")}}function fT(){if(hN)return fN;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=RN(),r=BN(),i=FN(),o=UN(),a=sT(),l=cT(),s=GN(),c=oT(),d=dT(),u=jN(),f=uT(),h=u.List,p=u.Record,C=u.Repeat,m=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(C(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:m(t.data),characterList:null!=n?h((Array.isArray(n)?n:c(n)).map(function(e){return r.fromJS(e)})):void 0}))},d}(v);return fN=w}function hT(){if(CN)return pN;CN=1;var e=WN(),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 pN={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 pT(){if(gN)return mN;gN=1;var e=hT(),t=WN(),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 CT(){if(bN)return wN;bN=1;return wN=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},wN}function mT(){if(MN)return EN;MN=1;var e,t=function(){if(yN)return vN;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}yN=1;var t=pT(),n=hT(),r=WN();return vN=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=jN(),r=CT(),i=n.OrderedMap;return EN={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 gT(){if(xN)return AN;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}xN=1;var n=aT(),r=fT(),i=mT(),o=cT(),a=jN(),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:C(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):C(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 m(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 m(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 C(e,t){return e.getBlockMap().map(function(r){return n.generate(e,r,t)}).toOrderedMap()}function m(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 AN=h}function vT(){if(SN)return HN;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}SN=1;var n=RN(),r=BN(),i=FN(),o=UN(),a=iT(),l=gT(),s=GN(),c=dT(),d=jN(),u=function(){if(kN)return LN;kN=1;var e=UN(),t=tT(),n=jN(),r=WN(),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,C=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(C,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:C,parent:h})})})};return LN=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 C=p.toSeq().takeUntil(function(e){return e===a}),m=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=C.concat([].concat(g,[[c,a]]),m).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=C.concat([[c,a]].concat(g),m).toOrderedMap()}return n.merge({blockMap:l(v,o,a,s,f),selectionBefore:n.getSelectionAfter(),selectionAfter:n.getSelectionAfter().merge({anchorKey:d,focusKey:d})})},LN}(),f=c("draft_tree_data_support"),h=f?o:i,p=d.List,C=d.Repeat;return HN={insertAtomicBlock:function(t,i,o){var c=t.getCurrentContent(),d=t.getSelection(),u=a.removeRange(c,d,"backward"),m=u.getSelectionAfter(),g=a.splitBlock(u,m),v=g.getSelectionAfter(),y=a.setBlockType(g,v,"atomic"),w=r.create({entity:i}),b={key:s(),type:"atomic",text:o,characterList:p(C(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),L=x.merge({selectionBefore:d,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return l.push(t,L,"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),C=p.getSelectionAfter(),m=p.getBlockForKey(C.getFocusKey());i=u(p,t,m,"before")}}var g=i.merge({selectionBefore:s,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return l.push(e,g,"move-block")}}}function yT(){if(VN)return _N;VN=1;var e=jN().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 _N=t}function wT(){if(zN)return ON;function e(e){return e.replace(/\//g,"-")}return zN=1,ON=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(" ")},ON}function bT(){if(TN)return NN;TN=1;var e=i,t=wT(),n=(0,jN().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 NN=n}function ET(){return DN?IN:(DN=1,IN={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}})}var MT,AT,xT,LT,kT,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,CI,mI,gI,vI,yI,wI,bI,EI,MI,AI,xI,LI,kI,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,CD,mD,gD,vD,yD,wD,bD,ED,MD,AD,xD,LD,kD,HD,SD,_D,VD,OD,zD,ND={exports:{}},TD=ND.exports;function ID(){return MT||(MT=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",C="console",m="mobile",g="tablet",v="smarttv",y="wearable",w="embedded",b="Amazon",E="Apple",M="ASUS",A="BlackBerry",x="Browser",L="Chrome",k="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,k+" 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,k]],[/\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,L+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,L+" 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,k+" 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,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,E],[u,m]],[/\((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,m]],[/\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,m]],[/\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,m]],[/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,m]],[/; (\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,m]],[/\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,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[u,m]],[/\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,m]],[/\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,m]],[/(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,m],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,H],[u,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,H],[u,m]],[/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,m]],[/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,m]],[/(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,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[u,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,A],[u,m]],[/(?:\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,m]],[/(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,m]],[/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,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[u,m]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[u,m]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[u,m]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[u,m]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[u,m]],[/; (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,m]],[/(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,m]],[/(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,m]],[/(u304aa)/i],[c,[f,"AT&T"],[u,m]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[u,m]],[/\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,m]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[u,m]],[/\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,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[u,m]],[/\b(ph-1) /i],[c,[f,"Essential"],[u,m]],[/\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,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,O],[u,m]],[/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,m]],[/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,L+"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,C]],[/droid.+; (shield)( bui|\))/i],[c,[f,N],[u,C]],[/(playstation \w+)/i],[c,[f,R],[u,C]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,O],[u,C]],[/\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,m]],[/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,m]],[/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,k+" 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,L+"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 C=typeof n!==o&&n.navigator?n.navigator:r,v=e||(C&&C.userAgent?C.userAgent:""),y=C&&C.userAgentData?C.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=C&&C.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&&C&&C.brave&&typeof C.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]=m),b&&"Macintosh"==e[c]&&C&&typeof C.standalone!==o&&C.maxTouchPoints&&C.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,C,m,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:TD)}(ND,ND.exports)),ND.exports}function DD(){if(xT)return AT;xT=1;var e=ID(),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 AT=a}function ZD(){if(kT)return LT;kT=1;var e=WN(),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=m(e,t);return-1===n||0===n}(r,a);case">=":return c(r,a);case">":return 1===m(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===m(e,t)}(r,a)}}function s(e,t){return-1===m(e,t)}function c(e,t){var n=m(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?C(i,a):C(e,t)}function C(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 m(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 LT=g}function jD(){if(zT)return OT;zT=1;var e=DD(),t=ZD(),n=function(){if(ST)return HT;ST=1;var e=Object.prototype.hasOwnProperty;return HT=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},HT}(),r=VT?_T:(VT=1,_T=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 OT=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 RD(){if(TT)return NT;return TT=1,NT=function(e){return e&&e.ownerDocument?e.ownerDocument:document}}function BD(){if(DT)return IT;return DT=1,IT=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}}function PD(){if(jT)return ZT;jT=1;var e=BD();return ZT=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},ZT}function FD(){if(BT)return RT;BT=1;var e=RD(),t=PD();return RT=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},RT}function UD(){if(FT)return PT;return FT=1,PT=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}}function qD(){if(QT)return WT;QT=1;var e="-";return WT={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 WD(){return KT?GT:(KT=1,GT={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 QD(){return XT?YT:(XT=1,YT={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}})}function GD(){if($T)return JT;return $T=1,JT=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}}function KD(){if(tI)return eI;tI=1;var e=WN(),t=GD();return eI=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 YD(){if(rI)return nI;rI=1;var e=qD(),t=CT();return nI=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),C=p&&p.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!u||!C)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var m=u.get("start"),g=C.get("start"),v=u?m+i:null,y=C?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=C.get("end");w=g===m&&E===b?a<i:g<m}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})},nI}function XD(){if(oI)return iI;oI=1;var e=FD(),t=PD(),n=YD(),r=WN(),i=BD(),o=CT();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,C=null;if(t(h)){var m=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(m)),C=l(m)}else p=o(d),C=l(h);return{key:p,offset:C}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}return iI=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 JD(){if(lI)return aI;lI=1;var e=XD();return aI=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 $D(){if(cI)return sI;cI=1;var e=QD(),t=gT(),n=KD(),r=JD();return sI=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 eZ(){if(uI)return dI;return uI=1,dI={notEmptyKey:function(e){return null!=e&&""!=e}},dI}function tZ(){if(hI)return fI;hI=1;var e=eZ().notEmptyKey;function t(t,n){return e(n)&&"MUTABLE"===t.__get(n).getMutability()?n:null}return fI=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)},fI}function nZ(){if(CI)return pI;CI=1;var e=function(){if(qT)return UT;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}qT=1;var t=jD(),n=FD(),r=UD(),i=jN(),o=WN(),a=CT(),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 UT=d}(),t=iT(),n=qD(),r=gT(),i=WD(),o=jD(),a=$D(),l=KD(),s=JD(),c=tZ(),d=CT(),u=o.isBrowser("IE"),f=!1,h=!1,p=null;var C={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||C.resolveComposition(e)},20)},onSelect:a,onKeyDown:function(e,t){if(!h)return C.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,C=o.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:h,focusOffset:p,isBackward:!1}),m=c(a,C),g=a.getBlockForKey(s).getInlineStyleAt(h);a=t.replaceText(a,C,e,g,m),o=r.set(o,{currentContent:a})});var C=s(o,l(e)).selectionState;e.restoreEditorDOM();var m=u?r.forceSelection(o,C):r.acceptSelection(o,C);e.update(r.push(m,a,"insert-characters"))}else e.update(o)}}};return pI=C}function rZ(){if(gI)return mI;gI=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=qD(),r=i,o=pT(),a=hT(),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(),C=f.get("leaves"),m=c.getComponentForKey(d),g=c.getPropsForKey(d),v=n.encode(p,parseInt(d,10),0),y=h.slice(C.first().get("start"),C.last().get("end")),w=a.getHTMLDirIfDifferent(o.getDirection(y),u);return r.createElement(m,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 iZ(){if(yI)return vI;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}yI=1;var n=i,r=jD(),o=WN(),a=BD(),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 vI=s}function oZ(){if(bI)return wI;bI=1;var e=BD();return wI=function(t){return!(!t||!t.ownerDocument)&&(e(t)&&"BR"===t.nodeName)}}function aZ(){return MI?EI:(MI=1,EI={initODS:function(){},handleExtensionCausedError:function(){}})}function lZ(){if(kI)return LI;kI=1;var e=xI?AI:(xI=1,AI=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 LI=function(t){return e(t)&&3==t.nodeType}}function sZ(){if(SI)return HI;SI=1;var e=lZ();return HI=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))))},HI}function cZ(){if(VI)return _I;return VI=1,_I=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 dZ(){if(zI)return OI;zI=1;var e=aZ(),t=QD(),n=jD(),r=sZ(),i=cZ(),o=RD(),a=WN(),l=BD(),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 OI={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(),C=e.getIsBackward();if(!s.extend&&C){var m=c,g=d;c=u,d=f,u=m,f=g,C=!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(C){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 uZ(){if(TI)return NI;TI=1;var e=jh();var t=iZ(),n=i,r=WN(),o=oZ(),a=dZ().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 NI=l}function fZ(){if(DI)return II;DI=1;var e=rZ(),t=uZ(),n=qD(),r=jN(),o=i,a=wT();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,C=r.tree,m=i.getKey(),g=i.getText(),v=C.size-1,y=this.props.children||C.map(function(r,a){var C=r.get("decoratorKey"),y=r.get("leaves"),w=y.size-1,b=y.map(function(e,r){var l=n.encode(m,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:C===v&&r===w})}).toArray();return C&&d?o.createElement(e,{block:i,children:b,contentState:l,decorator:d,decoratorKey:C,direction:u,leafSet:r,text:g,key:a}):b}).toArray();return o.createElement("div",{"data-offset-key":n.encode(m,0,0),className:a({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===u,"public/DraftStyleDefault/rtl":"RTL"===u})},y)},s}(o.Component);return II=l}function hZ(){if(jI)return ZI;function e(e,t){return!!t&&(e===t.documentElement||e===t.body)}return jI=1,ZI={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 pZ(){if(qI)return UI;qI=1;var e=function(){if(BI)return RI;BI=1;var e=/-(.)/g;return RI=function(t){return t.replace(e,function(e,t){return t.toUpperCase()})}}(),t=function(){if(FI)return PI;FI=1;var e=/([A-Z])/g;return PI=function(t){return t.replace(e,"-$1").toLowerCase()}}();function n(e){return null==e?e:String(e)}return UI=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 CZ(){if(QI)return WI;function e(e,n){var r=t.get(e,n);return"auto"===r||"scroll"===r}QI=1;var t={get:pZ(),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 WI=t}function mZ(){if(XI)return YI;XI=1;var e=function(){if(KI)return GI;KI=1;var e=sZ();return GI=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 YI=function(t){var n=e(t);return{x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top}}}function gZ(){if(rD)return nD;rD=1;var e=function(){if($I)return JI;$I=1;var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;return JI=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}}(),t=tD?eD:(tD=1,eD=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 nD=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 vZ(){if(oD)return iD;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 oD=1,n.withoutScrollbars=function(){return{width:e(),height:t()}},iD=n}function yZ(){if(lD)return aD;lD=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=fZ(),a=qD(),l=i,s=hZ(),c=CZ(),d=mZ(),u=gZ(),f=vZ(),h=jN(),p=WN(),C=GD();h.List;var m=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||m(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{C(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,C=r.customStyleFn,b=r.customStyleMap,E=r.direction,M=r.forceSelection,A=r.selection,x=r.tree,L=null;i.children.size&&(L=i.children.reduce(function(t,r){var i=a.encode(r,0,0),o=u.getBlockForKey(r),f=v(o,c),C=f.CustomComponent||w,m=g(o,s),b=m.Element,E=m.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(C,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 k=i.getKey(),H=a.encode(k,0,0),S=v(i,c),_=S.CustomComponent,V=null!=_?l.createElement(_,t({},this.props,{tree:p.getBlockTree(k),blockProps:S.customProps,offsetKey:H,block:i})):l.createElement(o,{block:i,children:L,contentState:u,customStyleFn:C,customStyleMap:b,decorator:f,direction:E,forceSelection:M,hasSelection:m(A,k),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 aD=w}function wZ(){if(cD)return sD;cD=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=yZ(),r=qD(),o=i,a=CT(),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(),C=u.getSelection(),m=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:m,selection:C,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=[],L=0;L<y.length;){var k=y[L];if(k.wrapperTemplate){var H=[];do{H.push(y[L].block),L++}while(L<y.length&&y[L].wrapperTemplate===k.wrapperTemplate);var S=o.cloneElement(k.wrapperTemplate,{key:k.key+"-wrap","data-offset-key":k.offsetKey},H);x.push(S)}else x.push(k.block),L++}return o.createElement("div",{"data-contents":"true"},x)},s}(o.Component);return sD=l}function bZ(){if(uD)return dD;uD=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=uZ(),r=qD(),o=i,a=hZ(),l=CZ(),s=pT(),c=hT(),d=wT(),u=mZ(),f=gZ(),h=vZ(),p=WN(),C=GD(),m=CT(),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{C(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 C=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===C})}).toArray(),v=f.get("decoratorKey");if(null==v)return g;if(!e.props.decorator)return g;var y=m(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),L=i.getEntityAt(f.get("start")),k=c.getHTMLDirIfDifferent(s.getDirection(x),e.props.direction),H={contentState:e.props.contentState,decoratedText:x,dir:k,start:M,end:A,blockKey:a,entityKey:L,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 dD=v}function EZ(){if(CD)return pD;CD=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=bZ(),a=qD(),l=i,s=wT(),c=(hD||(hD=1,fD=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}),fD),d=CT(),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,C=e.editorKey,m=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,L=null,k=0;k<M.length;k++){var H=M[k],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:m,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,L!==j||null===x||B>x,T));var F=O||o,U={className:P,"data-block":!0,"data-editor":C,"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,L=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 pD=f}function MZ(){if(bD)return wD;bD=1;var e=WN();return wD=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 AZ(){if(MD)return ED;function e(e){return function(){return e}}MD=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},ED=t}function xZ(){if(xD)return AD;xD=1;var e=function(){if(yD)return vD;yD=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 vD=e}(),t=MZ(),n=AZ(),r=new RegExp("\r\n","g"),i={"text/rtf":1,"text/html":1};function o(e){if("file"==e.kind)return e.getAsFile()}return AD=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 LZ(){if(kD)return LD;kD=1;var e=WN(),t=/\.textClipping$/,n={"text/plain":!0,"text/html":!0,"text/rtf":!0};return LD=function(r,i){var o=0,a=[];r.forEach(function(l){!function(r,i){if(!k.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"))})})},LD}function kZ(){if(SD)return HD;return SD=1,HD=function(e){return"handled"===e||!0===e}}function HZ(){if(VD)return _D;VD=1;var e=xZ(),t=iT(),n=gT(),r=FD(),i=RD(),o=LZ(),a=YD(),l=UD(),s=kZ(),c=CT();var d={onDragEnd:function(e){e.exitCurrentMode(),u(e)},onDrop:function(l,d){var h=new e(d.nativeEvent.dataTransfer),p=l._latestEditorState,C=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!=C){var m=h.getFiles();if(m.length>0){if(l.props.handleDroppedFiles&&s(l.props.handleDroppedFiles(C,m)))return;o(m,function(e){e&&l.update(f(p,C,e))})}else{var g=l._internalDrag?"internal":"external";l.props.handleDrop&&s(l.props.handleDrop(C,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,C)):l.update(f(p,C,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 _D=d}var 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,Cj,mj,gj,vj,yj,wj,bj,Ej,Mj,Aj,xj,Lj,kj,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,CR,mR,gR,vR,yR,wR,bR,ER={};function MR(){return VZ?_Z:(VZ=1,SZ||(SZ=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===k?ER:k:self)),_Z=k.setImmediate)}function AR(){if(zZ)return OZ;zZ=1;var e=iT(),t=gT(),n=jD(),r=tZ(),i=kZ(),o=zD?OD:(zD=1,OD=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=CT(),l=MR(),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 OZ=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 C,m=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=m.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||(C=u,g=s&&("'"==C||"/"==C)),g||(g=a(m.getDirectionMap()).get(p)!==a(d.getDirectionMap()).get(p)),g)return n.preventDefault(),m=t.set(m,{forceSelection:!0}),void e.update(m);m=t.set(m,{nativelyRenderedContent:m.getCurrentContent()}),e._pendingStateFromBeforeInput=m,l(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}},OZ}function xR(){if(jZ)return ZZ;jZ=1;var e=XN();return ZZ=function(t){var n=t.getSelection();return n.isCollapsed()?null:e(t.getCurrentContent(),n)}}function LR(){if(qZ)return UZ;qZ=1;var e=iT(),t=gT(),n=CZ(),r=xR(),i=gZ(),o=FZ?PZ:(FZ=1,PZ=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 UZ=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)}},UZ}function kR(){if($Z)return JZ;$Z=1;var e=WN(),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 JZ=a}function HR(){if(tj)return ej;tj=1;var e=AZ();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 ej=n}function SR(){if(rj)return nj;rj=1;var e=HR();return nj=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})},nj}function _R(){if(oj)return ij;oj=1;var e=iT(),t=dT()("draft_tree_data_support");return ij=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 VR(){if(lj)return aj;lj=1;var e=gT(),t=kR(),n=SR(),r=_R();return aj=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")},aj}function OR(){if(cj)return sj;cj=1;var e=iT(),t=qD(),n=gT(),r=jD(),i=eZ().notEmptyKey,o=FD(),a=VR(),l=CT(),s=r.isEngine("Gecko");return sj=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 C=p.firstChild;null!=C;C=C.nextSibling)C!==u&&p.removeChild(C)}var m=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,L=g.getCurrentContent(),k=L.getBlockForKey(w),H=k.getText().slice(A,x);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==H){var S,_,V,O,z=g.getSelection(),N=z.merge({anchorOffset:A,focusOffset:x,isBackward:!1}),T=k.getEntityAt(A),I=i(T)?L.getEntity(T):null,D="MUTABLE"===(null!=I?I.getMutability():null),Z=D?"spellcheck-change":"apply-entity",j=e.replaceText(L,N,m,k.getInlineStyleAt(A),D?k.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=m.length-H.length;V=z.getStartOffset(),O=z.getEndOffset(),S=f?O+R:V,_=O+R}var B=j.merge({selectionBefore:L.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)}}}},sj}function zR(){if(hj)return fj;hj=1;var e=jD(),t=function(){if(uj)return dj;uj=1;var e=WD();return dj=function(t){return t.which===e.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))},dj}(),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 fj=r}function NR(){if(gj)return mj;gj=1;var e=jD(),t=WN();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 TR(){if(yj)return vj;yj=1;var e=kR(),t=RD(),n=NR(),r=WN();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 vj=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},vj}function IR(){if(Mj)return Ej;Mj=1;return Ej={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}}function DR(){if(xj)return Aj;xj=1;var e="['‘’]",t="\\s|(?![_])"+IR().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 Aj={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}}}function ZR(){if(Sj)return Hj;Sj=1;var e=HR();return Hj=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})},Hj}function jR(){if(qj)return Uj;qj=1;var e=iT(),t=gT(),n=zR(),r=WD(),i=function(){if(Cj)return pj;Cj=1;var e=iT(),t=gT(),n=XN(),r=CT(),i=null;return pj={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=jD(),a=kZ(),l=function(){if(bj)return wj;bj=1;var e=gT(),t=TR(),n=XD(),r=SR(),i=_R();return wj=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")},wj}(),s=function(){if(kj)return Lj;kj=1;var e=DR(),t=gT(),n=SR(),r=_R();return Lj=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")},Lj}(),c=function(){if(Vj)return _j;Vj=1;var e=DR(),t=gT(),n=ZR(),r=_R();return _j=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")},_j}(),d=function(){if(zj)return Oj;zj=1;var e=iT(),t=gT();return Oj=function(n){var r=e.splitBlock(n.getCurrentContent(),n.getSelection());return t.push(n,r,"split-block")}}(),u=function(){if(Tj)return Nj;Tj=1;var e=gT();return Nj=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(Dj)return Ij;Dj=1;var e=gT();return Ij=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=VR(),p=function(){if(jj)return Zj;jj=1;var e=gT(),t=kR(),n=ZR(),r=_R();return Zj=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")},Zj}(),C=function(){if(Bj)return Rj;Bj=1;var e=iT(),t=gT(),n=XN();return Rj=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,C=h.merge({anchorOffset:p,focusOffset:p}),m=e.replaceWithFragment(f,C,u),g=t.push(r,m,"insert-fragment");return t.acceptSelection(g,l)}}(),m=function(){if(Fj)return Pj;Fj=1;var e=gT();return Pj=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}))}},Pj}(),g=n.isOptionKeyCommand,v=o.isBrowser("Chrome");return Uj=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 C(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 m(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"))}},Uj}function RR(){if(Qj)return Wj;Qj=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 Wj=e}function BR(){if(Kj)return Gj;Kj=1;var e=jD(),t=WN(),n=e.isBrowser("IE <= 9");return Gj=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},Gj}function PR(){if(tR)return eR;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}tR=1;var r=BN(),i=FN(),o=UN(),a=bT(),l=sT(),s=RR(),c=wT(),d=GN(),u=BR(),f=dT(),h=jN(),p=h.List,C=h.Map,m=h.OrderedSet,g=function(){if(Xj)return Yj;Xj=1;var e=BD();return Yj=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"A"===t.nodeName}}(),v=oZ(),y=GD(),w=function(){if($j)return Jj;$j=1;var e=BD();return Jj=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"),L=new RegExp("&#13;?","g"),k=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=C({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],m())),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 C=d(),m=this._toBlockConfigs(Array.from(i.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:C,childConfigs:m,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 eR=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(L,"").replace(k,""));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)})}),C(t)}(t);return new R(r,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()},eR}function FR(){if(rR)return nR;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}rR=1;var t=FN(),n=UN(),r=PR(),i=GN(),o=BR(),a=dT(),l=jN(),s=uT(),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 nR=h}function UR(){if(lR)return aR;lR=1;var e=iT(),t=gT(),n=(oR||(oR=1,iR=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})}),iR),r=CT(),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 aR=i}function qR(){if(uR)return dR;uR=1;var e=RN(),t=BN(),n=xZ(),r=iT(),i=FR(),o=gT(),a=UR(),l=tZ(),s=LZ(),c=kZ(),d=function(){if(cR)return sR;cR=1;var e=/\r\n?|\n/g;return sR=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 dR=function(f,h){h.preventDefault();var p=new n(h.clipboardData);if(!p.isRichText()){var C=p.getFiles(),m=p.getText();if(C.length>0){if(f.props.handlePastedFiles&&c(f.props.handlePastedFiles(C)))return;return void s(C,function(n){if(n=n||m){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),C=e.createFromArray(p),g=r.replaceWithFragment(s.getCurrentContent(),s.getSelection(),C);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,L=A.entityMap;if(x){var k=e.createFromArray(x);return void f.update(u(f._latestEditorState,k,L))}}}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))}}},dR}function WR(){if(hR)return fR;hR=1;var e=jD(),t=AR(),n=function(){if(TZ)return NZ;TZ=1;var e=gT(),t=sZ(),n=cZ();return NZ=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))}},NZ}(),r=function(){if(DZ)return IZ;DZ=1;var e=gT();return IZ=function(t,n){t.setMode("composite"),t.update(e.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(n)},IZ}(),i=function(){if(BZ)return RZ;BZ=1;var e=xR();return RZ=function(t,n){t._latestEditorState.getSelection().isCollapsed()?n.preventDefault():t.setClipboard(e(t._latestEditorState))},RZ}(),o=LR(),a=(QZ||(QZ=1,WZ=function(e,t){e.setMode("drag"),t.preventDefault()}),WZ),l=KZ?GZ:(KZ=1,GZ=function(e){e._internalDrag=!0,e.setMode("drag")}),s=function(){if(XZ)return YZ;XZ=1;var e=gT(),t=jD();return YZ=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))}},YZ}(),c=OR(),d=jR(),u=qR(),f=$D(),h=e.isBrowser("Chrome"),p=e.isBrowser("Firefox"),C=h||p?f:function(e){};return fR={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:C,onKeyUp:C}}function QR(){if(gR)return mR;gR=1;var e=i,t=wT(),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 GR(){if(yR)return vR;yR=1;var e=zR(),t=WD(),n=jD(),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 vR=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}},vR}function KR(){if(bR)return wR;bR=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=bT(),s=ET(),c=nZ(),d=function(){if(gD)return mD;gD=1;var e=dT()("draft_tree_data_support");return mD=e?wZ():EZ()}(),u=HZ(),f=WR(),h=function(){if(CR)return pR;CR=1;var e=M.unstable_flushControlled;return pR=e}(),p=QR(),C=aZ(),m=gT(),g=i,v=hZ(),y=CZ(),w=jD(),b=wT(),E=GN(),A=GR(),x=gZ(),L=dT(),H=WN(),S=GD(),_=CT(),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(m.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,C=b({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),m=this.props.role||"textbox",v="combobox"===m?!!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:C},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:m,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&&L("draft_ods_enabled")&&(N=!0,C.initODS()),this.setMode("edit"),V&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):k.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}),wR=I}var YR,XR,JR,$R,eB,tB,nB,rB,iB,oB,aB,lB,sB,cB,dB,uB,fB,hB,pB,CB,mB,gB,vB,yB,wB,bB,EB,MB={};function AB(){return YR||(YR=1),MB}function xB(){if(JR)return XR;JR=1;var e={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};return XR=e}function LB(){if(nB)return tB;nB=1;var e=kR(),t=PN(),n=function(e,t){return e===t},r=function(e){return!!e},i=[];return tB=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(iB)return rB;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}iB=1;var t=FN(),n=UN(),r=xB(),i=function(){if(eB)return $R;eB=1;var e=xB(),t=kR().strlen;return $R=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},$R}(),o=LB(),a=WN(),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 rB=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},rB}function HB(){if(aB)return oB;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}aB=1;var n=GN(),r=WN(),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 oB=o}function SB(){if(mB)return CB;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=FN(),r=UN(),i=fT(),o=sT(),a=HB(),l=function(){if(sB)return lB;sB=1;var e=HR(),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 lB=t}(),s=cT(),c=function(){if(dB)return cB;dB=1;var e=BN(),t=jN().List;return cB=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(fB)return uB;fB=1;var e=kR().substr;return uB=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},uB}(),u=function(){if(pB)return hB;pB=1;var e=kR(),t=jN().OrderedSet,n=e.substr,r=t();return hB=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},hB}(),f=GN(),h=dT(),p=jN(),C=WN(),m=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=m&&!o?a.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!m)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?C(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):C(!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?C(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):C(!1));break}var m=d.children.map(E),v=new r(e({},w(d,n),{parent:u.getKey(),children:g(m.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,m,v)}return i},y())}(s,i);return"production"!==process.env.NODE_ENV&&(l.isValidTree(c)||("production"!==process.env.NODE_ENV?C(!1,"Should be a valid tree"):C(!1))),c};return CB=function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?C(!1,"invalid RawDraftContentState"):C(!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 _B(){if(wB)return yB;wB=1;var e=function(){if(vB)return gB;vB=1;var e=NR();return gB=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}},gB}();return yB=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},yB}function VB(){if(EB)return bB;EB=1;var e=vT(),t=RN(),n=BN(),r=yT(),i=FN(),o=fT(),a=bT(),l=ET(),s=KR(),c=bZ(),d=sT(),u=iT(),f=lT(),h=gT(),p=zR(),C=AB(),m=UR(),g=cT(),v=kB(),y=SB(),w=GN(),b=GR(),E=_B(),M=PR();return bB={Editor:s,EditorBlock:c,EditorState:h,CompositeDecorator:r,Entity:d,EntityInstance:f,BlockMapBuilder:t,CharacterMetadata:n,ContentBlock:i,ContentState:o,RawDraftContentState:C,SelectionState:g,AtomicBlockUtils:e,KeyBindingUtil:p,Modifier:u,RichUtils:m,DefaultDraftBlockRenderMap:a,DefaultDraftInlineStyle:l,convertFromHTML:M,convertFromRaw:y,convertToRaw:v,genKey:w,getDefaultKeyBinding:b,getVisibleSelectionRect:E}}var OB=VB(),zB={exports:{}},NB="@@__IMMUTABLE_INDEXED__@@";function TB(e){return Boolean(e&&e[NB])}var IB="@@__IMMUTABLE_KEYED__@@";function DB(e){return Boolean(e&&e[IB])}function ZB(e){return DB(e)||TB(e)}var jB="@@__IMMUTABLE_ITERABLE__@@";function RB(e){return Boolean(e&&e[jB])}var BB=function(e){return RB(e)?e:AP(e)},PB=function(e){function t(e){return DB(e)?e:xP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(BB),FB=function(e){function t(e){return TB(e)?e:LP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(BB),UB=function(e){function t(e){return RB(e)&&!ZB(e)?e:kP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(BB);BB.Keyed=PB,BB.Indexed=FB,BB.Set=UB;var qB="function"==typeof Symbol&&Symbol.iterator,WB="@@iterator",QB=qB||WB,GB=function(e){this.next=e};function KB(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 YB(){return{value:void 0,done:!0}}function XB(e){return!!Array.isArray(e)||!!eP(e)}function JB(e){return!(!e||"function"!=typeof e.next)}function $B(e){var t=eP(e);return t&&t.call(e)}function eP(e){var t=e&&(qB&&e[qB]||e[WB]);if("function"==typeof t)return t}GB.prototype.toString=function(){return"[Iterator]"},GB.KEYS=0,GB.VALUES=1,GB.ENTRIES=2,GB.prototype.inspect=GB.prototype.toSource=function(){return this.toString()},GB.prototype[QB]=function(){return this};var tP="delete",nP=32,rP=31,iP={};function oP(e){e&&(e.value=!0)}function aP(){}function lP(e){return void 0===e.size&&(e.size=e.__iterate(cP)),e.size}function sP(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?lP(e)+t:t}function cP(){return!0}function dP(e,t,n){return(0===e&&!pP(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function uP(e,t){return hP(e,t,0)}function fP(e,t){return hP(e,t,t)}function hP(e,t,n){return void 0===e?n:pP(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function pP(e){return e<0||0===e&&1/e==-1/0}var CP="@@__IMMUTABLE_RECORD__@@";function mP(e){return Boolean(e&&e[CP])}function gP(e){return RB(e)||mP(e)}var vP="@@__IMMUTABLE_ORDERED__@@";function yP(e){return Boolean(e&&e[vP])}var wP="@@__IMMUTABLE_SEQ__@@";function bP(e){return Boolean(e&&e[wP])}var EP=Object.prototype.hasOwnProperty;function MP(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 AP=function(e){function t(e){return null==e?OP():gP(e)?e.toSeq():function(e){var t=TP(e);if(t)return(r=eP(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=eP(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new SP(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 GB(function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return KB(e,o[0],o[1])})}return this.__iteratorUncached(e,t)},t}(BB),xP=function(e){function t(e){return null==e?OP().toKeyedSeq():RB(e)?DB(e)?e.toSeq():e.fromEntrySeq():mP(e)?e.toSeq():zP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(AP),LP=function(e){function t(e){return null==e?OP():RB(e)?DB(e)?e.entrySeq():e.toIndexedSeq():mP(e)?e.toSeq().entrySeq():NP(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}(AP),kP=function(e){function t(e){return(RB(e)&&!ZB(e)?e:LP(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}(AP);AP.isSeq=bP,AP.Keyed=xP,AP.Set=kP,AP.Indexed=LP,AP.prototype[wP]=!0;var HP=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[sP(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 GB(function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return KB(e,o,n[o])})},t}(LP),SP=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 EP.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 GB(function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return KB(e,a,n[a])})},t}(xP);SP.prototype[vP]=!0;var _P,VP=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=$B(this._collection),r=0;if(JB(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=$B(this._collection);if(!JB(n))return new GB(YB);var r=0;return new GB(function(){var t=n.next();return t.done?t:KB(e,r++,t.value)})},t}(LP);function OP(){return _P||(_P=new HP([]))}function zP(e){var t=TP(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new SP(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function NP(e){var t=TP(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function TP(e){return MP(e)?new HP(e):XB(e)?new VP(e):void 0}function IP(){return this.__ensureOwner()}function DP(){return this.__ownerID?this:this.__ensureOwner(new aP)}var ZP="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 jP(e){return e>>>1&1073741824|3221225471&e}var RP=Object.prototype.valueOf;function BP(e){if(null==e)return PP(e);if("function"==typeof e.hashCode)return jP(e.hashCode(e));var t,n=(t=e).valueOf!==RP&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return PP(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 jP(t)}(n);case"string":return n.length>JP?function(e){var t=tF[e];void 0===t&&(t=FP(e),eF===$P&&(eF=0,tF={}),eF++,tF[e]=t);return t}(n):FP(n);case"object":case"function":return function(e){var t;if(GP&&void 0!==(t=QP.get(e)))return t;if(t=e[XP],void 0!==t)return t;if(!qP){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[XP]))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=WP(),GP)QP.set(e,t);else{if(void 0!==UP&&!1===UP(e))throw new Error("Non-extensible objects are not allowed as keys.");if(qP)Object.defineProperty(e,XP,{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[XP]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[XP]=t}}return t}(n);case"symbol":return function(e){var t=KP[e];if(void 0!==t)return t;return t=WP(),KP[e]=t,t}(n);default:if("function"==typeof n.toString)return FP(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function PP(e){return null===e?1108378658:1108378659}function FP(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return jP(t)}var UP=Object.isExtensible,qP=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function WP(){var e=++YP;return 1073741824&YP&&(YP=0),e}var QP,GP="function"==typeof WeakMap;GP&&(QP=new WeakMap);var KP=Object.create(null),YP=0,XP="__immutablehash__";"function"==typeof Symbol&&(XP=Symbol(XP));var JP=16,$P=255,eF=0,tF={},nF=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=sF(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=lF(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}(xP);nF.prototype[vP]=!0;var 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.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&lP(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&&lP(this),new GB(function(){var o=r.next();return o.done?o:KB(e,t?n.size-++i:i++,o.value,o)})},t}(LP),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.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 GB(function(){var t=n.next();return t.done?t:KB(e,t.value,t.value,t)})},t}(kP),oF=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){yF(t);var r=RB(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 GB(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yF(r);var i=RB(r);return KB(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(xP);function aF(e){var t=bF(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=EF,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 GB(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 lF(e,t,n){var r=bF(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,iP);return o===iP?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 GB(function(){var i=o.next();if(i.done)return i;var a=i.value,l=a[0];return KB(r,l,t.call(n,a[1],l,e),i)})},r}function sF(e,t){var n=this,r=bF(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=aF(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=EF,r.__iterate=function(n,r){var i=this,o=0;return r&&lP(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&&lP(e);var a=e.__iterator(2,!i);return new GB(function(){var e=a.next();if(e.done)return e;var l=e.value;return KB(r,t?l[0]:i?n.size-++o:o++,l[1],e)})},r}function cF(e,t,n,r){var i=bF(e);return r&&(i.has=function(r){var i=e.get(r,iP);return i!==iP&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,iP);return o!==iP&&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 GB(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 KB(i,r?c:l++,d,o)}})},i}function dF(e,t,n,r){var i=e.size;if(dP(t,n,i))return e;if(void 0===i&&(t<0||n<0))return dF(e.toSeq().cacheResult(),t,n,r);var o,a=uP(t,i),l=fP(n,i)-a;l==l&&(o=l<0?0:l);var s=bF(e);return s.size=0===o?o:e.size&&o||void 0,!r&&bP(e)&&o>=0&&(s.get=function(t,n){return(t=sP(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 GB(YB);var i=e.__iterator(t,n),l=0,s=0;return new GB(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:KB(t,s-1,0===t?void 0:e.value[1],e)})},s}function uF(e,t,n,r){var i=bF(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 GB(function(){var e,o,d;do{if((e=l.next()).done)return r||1===i?e:KB(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:KB(i,o,d,e)})},i}rF.prototype.cacheResult=nF.prototype.cacheResult=iF.prototype.cacheResult=oF.prototype.cacheResult=EF;var fF=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[IB]=this._wrappedIterables[0][IB],this[NB]=this._wrappedIterables[0][NB],this[vP]=this._wrappedIterables[0][vP]}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=DB(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 GB(YB);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new GB(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}(AP);function hF(e,t,n){var r=bF(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)&&RB(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 GB(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)||!RB(s))return n?e:KB(r,l++,s,e);a.push(o),o=s.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}})},r}function pF(e,t,n){t||(t=MF);var r=DB(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?xP(o):TB(e)?LP(o):kP(o)}function CF(e,t,n){if(t||(t=MF),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 gF(e,t,n,r){var i=bF(e),o=new HP(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=BB(e),$B(i?e.reverse():e)}),a=0,l=!1;return new GB(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}:KB(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function vF(e,t){return e===t?e:bP(e)?t:e.constructor(t)}function yF(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function wF(e){return DB(e)?PB:TB(e)?FB:UB}function bF(e){return Object.create((DB(e)?xP:TB(e)?LP:kP).prototype)}function EF(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):AP.prototype.cacheResult.call(this)}function MF(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 AF(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function xF(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!!(AF(e)&&AF(t)&&e.equals(t))}function LF(e,t,n,r){return xU(e,[t],n,r)}function kF(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return SF(this,e)}function HF(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 SF(this,t,e)}function SF(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=PB(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){LF(e,r,iP,function(e){return e===iP?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 _F=Object.prototype.toString;function VF(e){if(!e||"object"!=typeof e||"[object Object]"!==_F.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 OF(e){return"object"==typeof e&&(gP(e)||Array.isArray(e)||VF(e))}function zF(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 NF(e){if(Array.isArray(e))return zF(e);var t={};for(var n in e)EP.call(e,n)&&(t[n]=e[n]);return t}function TF(e,t,n){return IF(e,t,function(e){function t(n,r,i){return OF(n)&&OF(r)&&(o=r,a=AP(n),l=AP(o),TB(a)===TB(l)&&DB(a)===DB(l))?IF(n,[r],t):e?e(n,r,i):r;var o,a,l}return t}(n))}function IF(e,t,n){if(!OF(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(gP(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?FB:PB,a=r?function(t){i===e&&(i=NF(i)),i.push(t)}:function(t,r){var o=EP.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=NF(i)),i[r]=a)},l=0;l<t.length;l++)o(t[l]).forEach(a);return i}function DF(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return TF(this,e)}function ZF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return TF(this,t,e)}function jF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xU(this,e,cU(),function(e){return TF(e,t)})}function RF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xU(this,e,cU(),function(e){return IF(e,t)})}function BF(e,t,n){return xU(e,t,iP,function(){return n})}function PF(e,t){return BF(this,e,t)}function FF(e,t,n){return 1===arguments.length?e(this):LF(this,e,t,n)}function UF(e,t,n){return xU(this,e,t,n)}function qF(){return this.__altered}function WF(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}var QF="@@__IMMUTABLE_MAP__@@";function GF(e){return Boolean(e&&e[QF])}function KF(e,t){if(!e)throw new Error(t)}function YF(e){KF(e!==1/0,"Cannot perform this action with an infinite size.")}var XF=function(e){function t(t){return null==t?cU():GF(t)&&!yP(t)?t:cU().withMutations(function(n){var r=e(t);YF(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 dU(this,e,t)},t.prototype.remove=function(e){return dU(this,e,iP)},t.prototype.deleteAll=function(e){var t=BB(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):cU()},t.prototype.sort=function(e){return qU(pF(this,e))},t.prototype.sortBy=function(e,t){return qU(pF(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 oU(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?sU(this.size,this._root,e,this.__hash):0===this.size?cU():(this.__ownerID=e,this.__altered=!1,this)},t}(PB);XF.isMap=GF;var JF=XF.prototype;JF[QF]=!0,JF[tP]=JF.remove,JF.removeAll=JF.deleteAll,JF.setIn=PF,JF.removeIn=JF.deleteIn=HU,JF.update=FF,JF.updateIn=UF,JF.merge=JF.concat=kF,JF.mergeWith=HF,JF.mergeDeep=DF,JF.mergeDeepWith=ZF,JF.mergeIn=RF,JF.mergeDeepIn=jF,JF.withMutations=WF,JF.wasAltered=qF,JF.asImmutable=IP,JF["@@transducer/init"]=JF.asMutable=DP,JF["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},JF["@@transducer/result"]=function(e){return e.asImmutable()};var $F=function(e,t){this.ownerID=e,this.entries=t};$F.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(xF(n,i[o][0]))return i[o][1];return r},$F.prototype.update=function(e,t,n,r,i,o,a){for(var l=i===iP,s=this.entries,c=0,d=s.length;c<d&&!xF(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(oP(a),(l||!u)&&oP(o),!l||1!==s.length){if(!u&&!l&&s.length>=mU)return function(e,t,n,r){e||(e=new aP);for(var i=new rU(e,BP(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:zF(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 $F(e,h)}};var eU=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};eU.prototype.get=function(e,t,n,r){void 0===t&&(t=BP(n));var i=1<<((0===e?t:t>>>e)&rP),o=this.bitmap;return 0===(o&i)?r:this.nodes[pU(o&i-1)].get(e+5,t,n,r)},eU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=BP(r));var l=(0===t?n:n>>>t)&rP,s=1<<l,c=this.bitmap,d=0!==(c&s);if(!d&&i===iP)return this;var u=pU(c&s-1),f=this.nodes,h=d?f[u]:void 0,p=uU(h,e,t+5,n,r,i,o,a);if(p===h)return this;if(!d&&p&&f.length>=gU)return function(e,t,n,r,i){for(var o=0,a=new Array(nP),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[o++]:void 0;return a[r]=i,new tU(e,o+1,a)}(e,f,c,l,p);if(d&&!p&&2===f.length&&fU(f[1^u]))return f[1^u];if(d&&p&&1===f.length&&fU(p))return p;var C=e&&e===this.ownerID,m=d?p?c:c^s:c|s,g=d?p?CU(f,u,p,C):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,C):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,C);return C?(this.bitmap=m,this.nodes=g,this):new eU(e,m,g)};var tU=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};tU.prototype.get=function(e,t,n,r){void 0===t&&(t=BP(n));var i=(0===e?t:t>>>e)&rP,o=this.nodes[i];return o?o.get(e+5,t,n,r):r},tU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=BP(r));var l=(0===t?n:n>>>t)&rP,s=i===iP,c=this.nodes,d=c[l];if(s&&!d)return this;var u=uU(d,e,t+5,n,r,i,o,a);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<vU)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 eU(e,i,a)}(e,c,f,l)}else f++;var h=e&&e===this.ownerID,p=CU(c,l,u,h);return h?(this.count=f,this.nodes=p,this):new tU(e,f,p)};var nU=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};nU.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(xF(n,i[o][0]))return i[o][1];return r},nU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=BP(r));var l=i===iP;if(n!==this.keyHash)return l?this:(oP(a),oP(o),hU(this,e,t,n,[r,i]));for(var s=this.entries,c=0,d=s.length;c<d&&!xF(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(oP(a),(l||!u)&&oP(o),l&&2===d)return new rU(e,this.keyHash,s[1^c]);var f=e&&e===this.ownerID,h=f?s:zF(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 nU(e,this.keyHash,h)};var rU=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};rU.prototype.get=function(e,t,n,r){return xF(n,this.entry[0])?this.entry[1]:r},rU.prototype.update=function(e,t,n,r,i,o,a){var l=i===iP,s=xF(r,this.entry[0]);return(s?i===this.entry[1]:l)?this:(oP(a),l?void oP(o):s?e&&e===this.ownerID?(this.entry[1]=i,this):new rU(e,this.keyHash,[r,i]):(oP(o),hU(this,e,t,BP(r),[r,i])))},$F.prototype.iterate=nU.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},eU.prototype.iterate=tU.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}},rU.prototype.iterate=function(e,t){return e(this.entry)};var iU,oU=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&lU(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 aU(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return aU(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 aU(e,o.entry);t=this._stack=lU(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(GB);function aU(e,t){return KB(e,t[0],t[1])}function lU(e,t){return{node:e,index:0,__prev:t}}function sU(e,t,n,r){var i=Object.create(JF);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function cU(){return iU||(iU=sU(0))}function dU(e,t,n){var r,i;if(e._root){var o={value:!1},a={value:!1};if(r=uU(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===iP?-1:1:0)}else{if(n===iP)return e;i=1,r=new $F(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?sU(i,r):cU()}function uU(e,t,n,r,i,o,a,l){return e?e.update(t,n,r,i,o,a,l):o===iP?e:(oP(l),oP(a),new rU(t,r,[i,o]))}function fU(e){return e.constructor===rU||e.constructor===nU}function hU(e,t,n,r,i){if(e.keyHash===r)return new nU(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&rP,l=(0===n?r:r>>>n)&rP,s=a===l?[hU(e,t,n+5,r,i)]:(o=new rU(t,r,i),a<l?[e,o]:[o,e]);return new eU(t,1<<a|1<<l,s)}function pU(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function CU(e,t,n,r){var i=r?e:zF(e);return i[t]=n,i}var mU=8,gU=16,vU=8;function yU(e){if(MP(e)&&"string"!=typeof e)return e;if(yP(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function wU(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function bU(e,t){return gP(e)?e.has(t):OF(e)&&EP.call(e,t)}function EU(e,t,n){return gP(e)?e.get(t,n):bU(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function MU(e,t){if(!OF(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(gP(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!EP.call(e,t))return e;var n=NF(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function AU(e,t,n){if(!OF(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(gP(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(EP.call(e,t)&&n===e[t])return e;var r=NF(e);return r[t]=n,r}function xU(e,t,n,r){r||(r=n,n=void 0);var i=LU(gP(e),e,yU(t),0,n,r);return i===iP?n:i}function LU(e,t,n,r,i,o){var a=t===iP;if(r===n.length){var l=a?i:t,s=o(l);return s===l?t:s}if(!a&&!OF(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(n).slice(0,r).map(wU)+"]: "+t);var c=n[r],d=a?iP:EU(t,c,iP),u=LU(d===iP?e:gP(d),d,n,r+1,i,o);return u===d?t:u===iP?MU(t,c):AU(a?e?cU():{}:t,c,u)}function kU(e,t){return xU(e,t,function(){return iP})}function HU(e){return kU(this,e)}var SU="@@__IMMUTABLE_LIST__@@";function _U(e){return Boolean(e&&e[SU])}var VU=function(e){function t(t){var n=DU();if(null==t)return n;if(_U(t))return t;var r=e(t),i=r.size;return 0===i?n:(YF(i),i>0&&i<nP?IU(0,i,5,null,new zU(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=sP(this,e))>=0&&e<this.size){var n=RU(this,e+=this._origin);return n&&n.array[e&rP]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=sP(e,t),t!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?BU(e,t).set(0,n):BU(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o={value:!1};t>=PU(e._capacity)?r=ZU(r,e.__ownerID,0,t,n,o):i=ZU(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 IU(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):DU()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){BU(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return BU(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){BU(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return BU(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&&XB(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 BU(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 dP(e,t,n)?this:BU(this,uP(e,n),fP(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=TU(this,t);return new GB(function(){var i=r();return i===NU?{value:void 0,done:!0}:KB(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=TU(this,t);(n=i())!==NU&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?IU(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?DU():(this.__ownerID=e,this.__altered=!1,this)},t}(FB);VU.isList=_U;var OU=VU.prototype;OU[SU]=!0,OU[tP]=OU.remove,OU.merge=OU.concat,OU.setIn=PF,OU.deleteIn=OU.removeIn=HU,OU.update=FF,OU.updateIn=UF,OU.mergeIn=RF,OU.mergeDeepIn=jF,OU.withMutations=WF,OU.wasAltered=qF,OU.asImmutable=IP,OU["@@transducer/init"]=OU.asMutable=DP,OU["@@transducer/step"]=function(e,t){return e.push(t)},OU["@@transducer/result"]=function(e){return e.asImmutable()};var zU=function(e,t){this.array=e,this.ownerID=t};zU.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+5)-1)||0===this.array.length)return this;var r=n>>>t&rP;if(r>=this.array.length)return new zU([],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=jU(this,e);if(!o)for(var s=0;s<r;s++)l.array[s]=void 0;return i&&(l.array[r]=i),l},zU.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+5:nP)||0===this.array.length)return this;var r,i=n-1>>>t&rP;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=jU(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var NU={};function TU(e,t){var n=e._origin,r=e._capacity,i=PU(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>nP&&(c=nP);return function(){if(s===c)return NU;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>nP&&(d=nP);return function(){for(;;){if(l){var e=l();if(e!==NU)return e;l=null}if(c===d)return NU;var n=t?--d:c++;l=a(s&&s[n],i-5,o+(n<<i))}}}(e,l,s)}}function IU(e,t,n,r,i,o,a){var l=Object.create(OU);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 DU(){return IU(0,0,5)}function ZU(e,t,n,r,i,o){var a,l=r>>>n&rP,s=e&&l<e.array.length;if(!s&&void 0===i)return e;if(n>0){var c=e&&e.array[l],d=ZU(c,t,n-5,r,i,o);return d===c?e:((a=jU(e,t)).array[l]=d,a)}return s&&e.array[l]===i?e:(o&&oP(o),a=jU(e,t),void 0===i&&l===a.array.length-1?a.array.pop():a.array[l]=i,a)}function jU(e,t){return t&&e&&t===e.ownerID?e:new zU(e?e.array.slice():[],t)}function RU(e,t){if(t>=PU(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&rP],r-=5;return n}}function BU(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new aP,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 zU(c&&c.array.length?[void 0,c]:[],r),d+=1<<(s+=5);d&&(a+=d,i+=d,l+=d,o+=d);for(var u=PU(o),f=PU(l);f>=1<<s+5;)c=new zU(c&&c.array.length?[c]:[],r),s+=5;var h=e._tail,p=f<u?RU(e,l-1):f>u?new zU([],r):h;if(h&&f>u&&a<o&&h.array.length){for(var C=c=jU(c,r),m=s;m>5;m-=5){var g=u>>>m&rP;C=C.array[g]=jU(C.array[g],r)}C.array[u>>>5&rP]=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&rP;if(v!==f>>>s&rP)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):IU(a,l,s,c,p)}function PU(e){return e<nP?0:e-1>>>5<<5}function FU(e){return GF(e)&&yP(e)}var UU,qU=function(e){function t(e){return null==e?QU():FU(e)?e:QU().withMutations(function(t){var n=PB(e);YF(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):QU()},t.prototype.set=function(e,t){return GU(this,e,t)},t.prototype.remove=function(e){return GU(this,e,iP)},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?WU(t,n,e,this.__hash):0===this.size?QU():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(XF);function WU(e,t,n,r){var i=Object.create(qU.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 QU(){return UU||(UU=WU(cU(),DU()))}function GU(e,t,n){var r,i,o=e._map,a=e._list,l=o.get(t),s=void 0!==l;if(n===iP){if(!s)return e;a.size>=nP&&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):WU(r,i)}qU.isOrderedMap=FU,qU.prototype[vP]=!0,qU.prototype[tP]=qU.prototype.remove;var KU="@@__IMMUTABLE_STACK__@@";function YU(e){return Boolean(e&&e[KU])}var XU=function(e){function t(e){return null==e?tq():YU(e)?e:tq().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=sP(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):eq(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&YU(t))return t;YF(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):eq(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):tq()},t.prototype.slice=function(t,n){if(dP(t,n,this.size))return this;var r=uP(t,this.size);if(fP(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):eq(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?eq(this.size,this._head,e,this.__hash):0===this.size?tq():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new HP(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 HP(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new GB(function(){if(r){var t=r.value;return r=r.next,KB(e,n++,t)}return{value:void 0,done:!0}})},t}(FB);XU.isStack=YU;var JU,$U=XU.prototype;function eq(e,t,n,r){var i=Object.create($U);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function tq(){return JU||(JU=eq(0))}function nq(e,t,n,r,i,o){return YF(e.size),e.__iterate(function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)},o),n}function rq(e,t){return t}function iq(e,t){return[t,e]}function oq(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function aq(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function lq(e,t){return e<t?1:e>t?-1:0}function sq(e,t){if(e===t)return!0;if(!RB(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||DB(e)!==DB(t)||TB(e)!==TB(t)||yP(e)!==yP(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!ZB(e);if(yP(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&xF(i[1],e)&&(n||xF(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?!xF(t,e.get(r,iP)):!xF(e.get(r,iP),t))return a=!1,!1});return a&&e.size===l}$U[KU]=!0,$U.shift=$U.pop,$U.unshift=$U.push,$U.unshiftAll=$U.pushAll,$U.withMutations=WF,$U.wasAltered=qF,$U.asImmutable=IP,$U["@@transducer/init"]=$U.asMutable=DP,$U["@@transducer/step"]=function(e,t){return e.unshift(t)},$U["@@transducer/result"]=function(e){return e.asImmutable()};var cq,dq=function(e){function t(e,n,r){if(void 0===r&&(r=1),!(this instanceof t))return new t(e,n,r);if(KF(0!==r,"Cannot step a Range by 0"),KF(void 0!==e,"You must define a start value when using Range"),KF(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(cq)return cq;cq=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+sP(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 dP(e,n,this.size)?this:(e=uP(e,this.size),(n=fP(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 GB(function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,KB(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:sq(this,e)},t}(LP),uq="@@__IMMUTABLE_SET__@@";function fq(e){return Boolean(e&&e[uq])}var hq=function(e){function t(t){return null==t?vq():fq(t)&&!yP(t)?t:vq().withMutations(function(n){var r=e(t);YF(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(PB(e).keySeq())},t.intersect=function(e){return(e=BB(e).toArray()).length?Cq.intersect.apply(t(e.pop()),e):vq()},t.union=function(e){return(e=BB(e).toArray()).length?Cq.union.apply(t(e.pop()),e):vq()},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 zq(pF(this,e))},t.prototype.sortBy=function(e,t){return zq(pF(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}(UB);hq.isSet=fq;var pq,Cq=hq.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 gq(e,t){var n=Object.create(Cq);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function vq(){return pq||(pq=gq(cU()))}function yq(e,t,n){for(var r=yU(t),i=0;i!==r.length;)if((e=EU(e,r[i++],iP))===iP)return n;return e}function wq(e,t){return yq(this,e,t)}function bq(e,t){return yq(e,t,iP)!==iP}function Eq(){YF(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}function Mq(e){if(!e||"object"!=typeof e)return e;if(!RB(e)){if(!OF(e))return e;e=AP(e)}if(DB(e)){var t={};return e.__iterate(function(e,n){t[n]=Mq(e)}),t}var n=[];return e.__iterate(function(e){n.push(Mq(e))}),n}function Aq(e){if(e.size===1/0)return 0;var t=yP(e),n=DB(e),r=t?1:0;return e.__iterate(n?t?function(e,t){r=31*r+xq(BP(e),BP(t))|0}:function(e,t){r=r+xq(BP(e),BP(t))|0}:t?function(e){r=31*r+BP(e)|0}:function(e){r=r+BP(e)|0}),function(e,t){return t=ZP(t,3432918353),t=ZP(t<<15|t>>>-15,461845907),t=ZP(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=ZP(t^t>>>16,2246822507),t=ZP(t^t>>>13,3266489909),t=jP(t^t>>>16),t}(e.size,r)}function xq(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function Lq(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}Cq[uq]=!0,Cq[tP]=Cq.remove,Cq.merge=Cq.concat=Cq.union,Cq.withMutations=WF,Cq.asImmutable=IP,Cq["@@transducer/init"]=Cq.asMutable=DP,Cq["@@transducer/step"]=function(e,t){return e.add(t)},Cq["@@transducer/result"]=function(e){return e.asImmutable()},Cq.__empty=vq,Cq.__make=gq,BB.Iterator=GB,Lq(BB,{toArray:function(){YF(this.size);var e=new Array(this.size||0),t=DB(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new rF(this)},toJS:function(){return Mq(this)},toKeyedSeq:function(){return new nF(this,!0)},toMap:function(){return XF(this.toKeyedSeq())},toObject:Eq,toOrderedMap:function(){return qU(this.toKeyedSeq())},toOrderedSet:function(){return zq(DB(this)?this.valueSeq():this)},toSet:function(){return hq(DB(this)?this.valueSeq():this)},toSetSeq:function(){return new iF(this)},toSeq:function(){return TB(this)?this.toIndexedSeq():DB(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return XU(DB(this)?this.valueSeq():this)},toList:function(){return VU(DB(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 vF(this,function(e,t){var n=DB(e),r=[e].concat(t).map(function(e){return RB(e)?n&&(e=PB(e)):e=n?zP(e):NP(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&&DB(i)||TB(e)&&TB(i))return i}return new fF(r)}(this,e))},includes:function(e){return this.some(function(t){return xF(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){YF(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 vF(this,cF(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=DB(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)});var o=wF(e);return i.map(function(t){return vF(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 YF(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){YF(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 vF(this,lF(this,e,t))},reduce:function(e,t,n){return nq(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return nq(this,e,t,n,arguments.length<2,!0)},reverse:function(){return vF(this,sF(this,!0))},slice:function(e,t){return vF(this,dF(this,e,t,!0))},some:function(e,t){YF(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 vF(this,pF(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 lP(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=XF().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 sq(this,e)},entrySeq:function(){var e=this;if(e._cache)return new HP(e._cache);var t=e.toSeq().map(iq).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(oq(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(cP,null,e)},flatMap:function(e,t){return vF(this,function(e,t,n){var r=wF(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 vF(this,hF(this,e,!0))},fromEntrySeq:function(){return new oF(this)},get:function(e,t){return this.find(function(t,n){return xF(n,e)},void 0,t)},getIn:wq,groupBy:function(e,t){return function(e,t,n){var r=DB(e),i=(yP(e)?qU():XF()).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=wF(e);return i.map(function(t){return vF(e,o(t))}).asImmutable()}(this,e,t)},has:function(e){return this.get(e,iP)!==iP},hasIn:function(e){return bq(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:BB(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:BB(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return xF(t,e)})},keySeq:function(){return this.toSeq().map(rq).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return CF(this,e)},maxBy:function(e,t){return CF(this,t,e)},min:function(e){return CF(this,e?aq(e):lq)},minBy:function(e,t){return CF(this,t?aq(t):lq,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 vF(this,uF(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(oq(e),t)},sortBy:function(e,t){return vF(this,pF(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 vF(this,function(e,t,n){var r=bF(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 GB(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:KB(r,s,c,e):(l=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(oq(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Aq(this))}});var kq=BB.prototype;kq[jB]=!0,kq[QB]=kq.values,kq.toJSON=kq.toArray,kq.__toStringMapper=wU,kq.inspect=kq.toSource=function(){return this.toString()},kq.chain=kq.flatMap,kq.contains=kq.includes,Lq(PB,{flip:function(){return vF(this,aF(this))},mapEntries:function(e,t){var n=this,r=0;return vF(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return vF(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Hq=PB.prototype;Hq[IB]=!0,Hq[QB]=kq.entries,Hq.toJSON=Eq,Hq.__toStringMapper=function(e,t){return wU(t)+": "+wU(e)},Lq(FB,{toKeyedSeq:function(){return new nF(this,!1)},filter:function(e,t){return vF(this,cF(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 vF(this,sF(this,!1))},slice:function(e,t){return vF(this,dF(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=uP(e,e<0?this.count():this.size);var r=this.slice(0,e);return vF(this,1===n?r:r.concat(zF(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 vF(this,hF(this,e,!1))},get:function(e,t){return(e=sP(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=sP(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return vF(this,function(e,t){var n=bF(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 GB(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?KB(n,a++,t):KB(n,a++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(zF(arguments)),t=gF(this.toSeq(),LP.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),vF(this,n)},keySeq:function(){return dq(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return vF(this,uF(this,e,t,!1))},zip:function(){return vF(this,gF(this,Vq,[this].concat(zF(arguments))))},zipAll:function(){return vF(this,gF(this,Vq,[this].concat(zF(arguments)),!0))},zipWith:function(e){var t=zF(arguments);return t[0]=this,vF(this,gF(this,e,t))}});var Sq=FB.prototype;Sq[NB]=!0,Sq[vP]=!0,Lq(UB,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var _q=UB.prototype;function Vq(){return zF(arguments)}function Oq(e){return fq(e)&&yP(e)}_q.has=kq.includes,_q.contains=_q.includes,_q.keys=_q.values,Lq(xP,Hq),Lq(LP,Sq),Lq(kP,_q);var zq=function(e){function t(e){return null==e?Dq():Oq(e)?e:Dq().withMutations(function(t){var n=UB(e);YF(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(PB(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(hq);zq.isOrderedSet=Oq;var Nq,Tq=zq.prototype;function Iq(e,t){var n=Object.create(Tq);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Dq(){return Nq||(Nq=Iq(QU()))}Tq[vP]=!0,Tq.zip=Sq.zip,Tq.zipWith=Sq.zipWith,Tq.zipAll=Sq.zipAll,Tq.__empty=Dq,Tq.__make=Iq;var Zq=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(gP(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 "+Bq(this)+' with property "'+d+'" since that property name is part of the Record API.'):Fq(i,d)}}return this.__ownerID=void 0,this._values=VU().withMutations(function(e){e.setSize(a._keys.length),PB(o).forEach(function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(jq);return i.constructor=r,t&&(r.displayName=t),r};Zq.prototype.toString=function(){for(var e,t=Bq(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+wU(this.get(e));return t+" }"},Zq.prototype.equals=function(e){return this===e||mP(e)&&Pq(this).equals(Pq(e))},Zq.prototype.hashCode=function(){return Pq(this).hashCode()},Zq.prototype.has=function(e){return this._indices.hasOwnProperty(e)},Zq.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},Zq.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 Rq(this,n)}return this},Zq.prototype.remove=function(e){return this.set(e)},Zq.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Rq(this,e)},Zq.prototype.wasAltered=function(){return this._values.wasAltered()},Zq.prototype.toSeq=function(){return Pq(this)},Zq.prototype.toJS=function(){return Mq(this)},Zq.prototype.entries=function(){return this.__iterator(2)},Zq.prototype.__iterator=function(e,t){return Pq(this).__iterator(e,t)},Zq.prototype.__iterate=function(e,t){return Pq(this).__iterate(e,t)},Zq.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?Rq(this,t,e):(this.__ownerID=e,this._values=t,this)},Zq.isRecord=mP,Zq.getDescriptiveName=Bq;var jq=Zq.prototype;function Rq(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function Bq(e){return e.constructor.displayName||e.constructor.name||"Record"}function Pq(e){return zP(e._keys.map(function(t){return[t,e.get(t)]}))}function Fq(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){KF(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}jq[CP]=!0,jq[tP]=jq.remove,jq.deleteIn=jq.removeIn=HU,jq.getIn=wq,jq.hasIn=kq.hasIn,jq.merge=kF,jq.mergeWith=HF,jq.mergeIn=RF,jq.mergeDeep=DF,jq.mergeDeepWith=ZF,jq.mergeDeepIn=jF,jq.setIn=PF,jq.update=FF,jq.updateIn=UF,jq.withMutations=WF,jq.asMutable=DP,jq.asImmutable=IP,jq[QB]=jq.entries,jq.toJSON=jq.toObject=kq.toObject,jq.inspect=jq.toSource=function(){return this.toString()};var Uq,qq=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(Uq)return Uq;Uq=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 xF(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return dP(e,n,r)?this:new t(this._value,fP(n,r)-uP(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return xF(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return xF(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 GB(function(){return i===r?{value:void 0,done:!0}:KB(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?xF(this._value,e._value):sq(this,e)},t}(LP);function Wq(e,t,n,r,i,o){if("string"!=typeof n&&!gP(n)&&(MP(n)||XB(n)||VF(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,AP(n).map(function(r,o){return Wq(e,t,r,o,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function Qq(e,t){return TB(t)?t.toList():DB(t)?t.toMap():t.toSet()}var Gq,Kq=BB,Yq=S(Object.freeze({__proto__:null,Collection:BB,Iterable:Kq,List:VU,Map:XF,OrderedMap:qU,OrderedSet:zq,PairSorting:{LeftThenRight:-1,RightThenLeft:1},Range:dq,Record:Zq,Repeat:qq,Seq:AP,Set:hq,Stack:XU,fromJS:function(e,t){return Wq([],t||Qq,e,"",t&&t.length>2?[]:void 0,{"":e})},get:EU,getIn:yq,has:bU,hasIn:bq,hash:BP,is:xF,isAssociative:ZB,isCollection:RB,isImmutable:gP,isIndexed:TB,isKeyed:DB,isList:_U,isMap:GF,isOrdered:yP,isOrderedMap:FU,isOrderedSet:Oq,isPlainObject:VF,isRecord:mP,isSeq:bP,isSet:fq,isStack:YU,isValueObject:AF,merge:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return IF(e,t)},mergeDeep:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return TF(e,t)},mergeDeepWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return TF(t,n,e)},mergeWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return IF(t,n,e)},remove:MU,removeIn:kU,set:AU,setIn:BF,update:LF,updateIn:xU,version:"5.1.4"}));var Xq=(Gq||(Gq=1,window,zB.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()}));const i=new Set(["group","pre","post","script"]);return e.map(e=>{const n=i.has(e?.entityType?.toLowerCase())||i.has(e?.type?.toLowerCase());return e.stepId===t&&n?{...e,data:[...r||[]]}:e.data?{...e,data:VO(e.data,t,r)}:e})},OO=(e,t,n,r)=>e.map(e=>e.title===t?{...e,data:VO(e.data,n,r)}:e),zO=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}`)},NO=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)},TO=({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=new Set(["group","pre","post","script"]),C=p((e,t)=>h.has(e?.toLowerCase())||h.has(t?.toLowerCase())?"6px 8px":"7px 8px",[]);return e(t,{children:r?.map(t=>{const r=a===t.stepId,i=d?.(t.stepId),p=C(t.type,t?.entityType),m=h.has(t?.entityType?.toLowerCase())||h.has(t?.type?.toLowerCase());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)]})}),m&&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(TO,{data:t.data,level:u,columnCount:o,viewModeId:a,handleClick:s,ViewComponent:l,handleStepGroupExpand:c,isStepGroupExpanded:d})]},t.stepId)})})};var IO=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:C,handleClick:m,handleStepGroupExpand:g,isStepGroupExpanded:v,scriptType:y})=>{const w=new Set(["group","pre","post","script"]),b=w.has(r?.entityType?.toLowerCase())||w.has(r?.type?.toLowerCase()),E=r?.isDisabled,M=r?._id||r?.stepId,A=!!y&&"cascaded"===r.cascaded,x=E||f<=1||A;let L=(u+1).toString();const{attributes:k,listeners:H,setNodeRef:S,transform:_,transition:V}=va({id:M,disabled:x}),O=h(()=>({transform:qr.Transform.toString(_),transition:V}),[_,V]),N=v?.(r.stepId);return n(t,{children:[e("tr",{ref:S,style:O,className:z(o,{"disabled-row":E}),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:!!E})}),o&&d&&e("div",{className:E?"ff-table-drag":"ff-table-drag-icon",...H,...k,children:e(P,{name:"drag",className:x?"drag-icon-disabled":"drag-icon"})}),yr(r,t,u),o&&b&&e("div",{className:"pre-accordion-arrow "+(N?"expanded":""),children:e(P,{name:"arrow_right",color:N?"var(--brand-color)":"var(--default-color)",width:12,height:12,className:"pre-arrow-svg",onClick:()=>{g?.({...r,serialNumber:L})}})}),t.extraInfo&&t.extraInfo({row:r,indexNumber:u})]})},`${t.accessor}${i}`)})},M),N&&e(TO,{data:r.data,columnCount:i.length,viewModeId:p,ViewComponent:C,handleClick:m,handleStepGroupExpand:g,isStepGroupExpanded:v})]})});const DO=(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},ZO=(e,t="nearest",n=5)=>{if(!e)return;const r=document.getElementById(e);r?r.scrollIntoView({behavior:"smooth",block:t}):n>0?setTimeout(()=>{ZO(e,t,n-1)},300):console.warn(`Element with id - "${e}" not found after multiple retries.`)},jO=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:C,height:m="100%",className:g="",tableHeadClass:v="",tableBodyRowClass:E="",headerTextColor:M,tableDataTextColor:A,draggable:x=!1,onDragEnd:L,loadMore:k=()=>{},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";k(t)}})},{root:e,rootMargin:"8px",threshold:.1}),j.current.observe(n),j.current.observe(r),()=>{j.current?.disconnect()}},[t,k]);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(()=>{ZO("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&&L&&L(i,o)},modifiers:[eh],children:e(ua,{disabled:!x,items:t?.map(e=>e.stepId||e._id),strategy:sa,children:n("div",{style:{height:m},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"}),DO(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(IO,{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(${m} - 50px)`},children:C})]})})})}),RO=g(({data:r=[],level:o=0,columnCount:s=1,viewModeId:c,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:p,isViewPrivilegeMode:C,columns:m=[],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,a=w.has(t?.entityType?.toLowerCase())||w.has(t?.type?.toLowerCase());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:m.map((r,i)=>{return e("td",{style:{maxWidth:r.width,padding:(o=t?.type,l=t?.entityType,w.has(o?.toLowerCase())||w.has(l?.toLowerCase())?"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:[!C&&0===i&&e("div",{style:{padding:"4px 18px"}}),E({...t,marginLeft:b},r)]}),0===i&&a&&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,l})}),p?.(t.stepId)&&e(RO,{data:t.data,level:b,columnCount:s,viewModeId:c,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:p,isViewPrivilegeMode:C,columns:m,parentIndex:o,updateRowHeight:v})]},t.stepId)})})});RO.displayName="StepGroupAccordions";const BO=g(({row:r,columns:i,tableBodyRowClass:o,handleOnclick:s,tableDataTextColor:c,withCheckbox:d,onSelectClick:u,draggable:f,indexNumber:p=0,tableType:C="",viewModeId:m,ViewComponent:g,handleClick:v,selectedRows:y,handleStepGroupExpand:w,isStepGroupExpanded:b,dataLength:E,stepPartialSelect:M,isViewPrivilegeMode:A,isClientSide:x,updateRowHeight:L,rowId:k,onRowHover:H,onRowHoverOut:S})=>{const _=new Set(["group","pre","post","script"]),V=_.has(r?.entityType?.toLowerCase())||_.has(r?.type?.toLowerCase()),O=a(null),N=h(()=>r?.isDisabled||(E??0)<=1||r.isSpecialNlp,[r,E]),T=(p+1).toString(),{attributes:I,listeners:D,setNodeRef:Z,transform:j,transition:R}=va({id:r?._id||r?.stepId,disabled:N}),B=h(()=>({transform:qr.Transform.toString(j),transition:R}),[j,R]),U=r?._id||r?.stepId;l(()=>{if(O.current&&L){const e=O.current.getBoundingClientRect().height;L(p,e)}},[r,L,p,b?.(r?.stepId)]);const q=e=>A||x?V&&0===e?"4px 8px":"7px 8px":0!==e?"Steps"===C?"4px 8px":"7px 8px":"Steps"===C&&f?"4px 8px 4px 0px":"4px 8px 4px 24px";return n(t,{children:[e("tr",{"data-rowid":k,ref:e=>{O.current=e,Z(e)},style:B,className:z(o,"sortable-item",{"disabled-inner-row":N}),id:U,onMouseEnter:()=>{H?.(k||"")},onMouseLeave:()=>{S?.(k||"")},children:i?.map((i,o)=>e(t,{children:e("td",{style:{padding:q(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:N?"ff-table-drag":"ff-table-drag-icon",...D,...I,children:e(P,{name:"drag",className:N?"drag-icon-disabled":"drag-icon"})}),0===o&&!x&&d&&e("span",{className:C&&y[C]?.has(r.stepId)||M?.has(r.stepId)?"ff-step-table-select-checkbox":"ff-table-checkbox-step",children:e(te,{onChange:e=>u(C,r,e.target.checked),checked:!!y[C]?.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,C),V&&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:C,serialNumber:T})})}),i.extraInfo?.({row:r,indexNumber:p,tableType:C})]})]})},`${i.accessor}-${gp()}`)}))},U),b?.(r?.stepId)&&e(RO,{data:r.data||r?.stepResults,columnCount:i.length,viewModeId:m,ViewComponent:g,handleClick:v,tableType:C,handleStepGroupExpand:w,isStepGroupExpanded:b,level:r?.marginLeft,isViewPrivilegeMode:A,columns:i,parentIndex:p,updateRowHeight:L})]})});BO.displayName="StepTableMainRow";const PO=({data:t=[],columns:r=[],headerType:i,withCheckbox:o=!1,onSelect:s,withFixedHeader:d=!0,borderWithRadius:u=!1,noDataContent:f,height:C="100%",className:m="",tableBodyRowClass:g="",headerTextColor:v,tableDataTextColor:b,draggable:E=!1,onDragEnd:M,loadMore:A=()=>{},editMode:x="",editComponent:L,NlpComponent:k,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=DO(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=DO(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(()=>DO(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:C,position:"relative",overflowY:C?.includes("vh")?"auto":void 0},id:"ff-table-scroll-container",className:z(m,{"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(L)&&e("td",{colSpan:r.length,children:y(L,{rowData:i,rowIndex:l+1})}),i.isNew&&!s&&w(k)&&e("td",{colSpan:r.length,children:y(k,{rowIndex:l,rowData:i})})]},i.stepId||l):e(BO,{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(${C} - 50px)`},children:f})]})})})},FO=e=>["ElseIfCondition","ElseCondition"].includes(e?.nlpName);let UO=null,qO=null;const WO=e=>{if(qO===e&&UO)return UO;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)}),UO=n,qO=e,n},QO=e=>e.includes("/")?e.split("/").slice(0,-1).join("/"):e;const GO=e=>{if(!e)return!1;for(const t of Object.values(e))if(t&&t.size>0)return!0;return!1},KO=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)"}},YO=e=>{switch(e){case"PASS":return"Passed";case"FAIL":return"Failed";case"SKIP":return"Skipped";case"WARNING":return"Warning";default:return e}},XO=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"}},JO=({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=a.map(e=>({...e,count:e.count??0})),u=d.reduce((e,{count:t})=>e+t,0),f=d.some(({count:e})=>e>0),p=i?d:a,C=[["Passed","Failed"],["Warning","Skipped"]].map(e=>p.filter(({name:t})=>e.includes(t))),m=(e,t)=>"Skipped"===e?"var(--status-skipped-bg-color)":t,g=h(()=>n("div",{className:"ff-status-tooltip",children:[C.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:m(t,i)}}),n(F,{as:"span",fontWeight:"medium",fontSize:10,className:"ff-status-result-tooltip-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]})]}),[C,u]);if(i)return f?e(K,{title:g,children:e("span",{className:"ff-status-icon-wrapper",children:e(P,{name:"status_icon"})})}):null;const v=[];let y=0;for(const{count:e,name:t,color:n}of l){const r=`${e}/${o} ${t}`;if(!(y+r.length<=c.length)){const e=c.slice(y).trim();e&&v.push({text:e,color:n});break}v.push({text:r,color:n}),y+=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:v.map(({text:t,color:n},r)=>e(F,{as:"span",fontWeight:"semi-bold",style:{color:n,whiteSpace:"nowrap"},children:t+" "},r))})})})},$O=({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:C,row:m,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(JO,{metaData:g,width:(()=>{const e=m?.marginLeft??0;if((c?.(f,h)||d?.(f,h))&&"Steps"===f)return 200-e;return(y?350:{"Depends on Scripts":240,"Post Conditions":230,"Pre Conditions":260,Steps:310}[f]??250)-e})()}),l&&!a&&e(t,{children:C(m)})]})]})}),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:KO(g?.status),children:g?.message})})}),g?.status&&e("div",{className:"step-result",style:{width:`${b(2)}px`},children:e(cr,{label:YO(g?.status),status:XO(g?.status),children:g?.status})})]})},ez=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:C,NlpComponent:m,AddNlp:g,handleAccordion:v,handleViewComponent:y,onSelectClick:w,loading:E=!1,isViewPrivilegeMode:M=!1,defaultExpanded:A="Steps",isHeaderRequired:x=!0,isClientSide:L=!1,highlightKey:k,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&&!GO(X))return;const{updateSelectRow:e,updateStepPartialSelect:t}=((e,t,n)=>{const r=WO(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)),FO(e?.start)&&(a||n)){const t=e?.start?.conditionSearchKey,n=QO(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(GO(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=WO(e),s=e=>{const t=e?.conditionSearchKey,n=QO(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(FO(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=QO(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||FO(e)||t?.specialNlpId?e.conditionSearchKey:QO(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(PO,{onHighlightComplete:H,highlightKey:k,draggable:!1,editMode:f,withCheckbox:!M,editComponent:C,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:L}):e(PO,{onHighlightComplete:H,highlightKey:k,draggable:S,columns:t,onDragEnd:u,data:n.data,headerType:s,withCheckbox:!0,editMode:f,editComponent:C,noDataContent:i,NlpComponent:m,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:L,handleRowHover:V,handleRowHoverOut:O}),[M,H,k,S,t,u,s,f,C,i,m,g,B,d,re,X,D,T,Y,le,ae,$,r.length,o,L]);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&&!L&&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($O,{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:L,isMaximize:_}),c&&se(r)]},i)})})]})}));ez.displayName="StepLandingTable";var tz,nz,rz,iz,oz,az,lz,sz,cz,dz,uz,fz,hz,pz,Cz,mz,gz,vz,yz,wz,bz,Ez,Mz,Az,xz,Lz,kz,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,CN,mN,gN,vN,yN,wN,bN,EN,MN,AN,xN,LN,kN,HN,SN,_N,VN,ON,zN,NN,TN,IN,DN,ZN={exports:{}};function jN(){return tz||(tz=1,ZN.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__@@",C="delete",m=5,g=1<<m,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 L(e){return void 0===e.size&&(e.size=e.__iterate(H)),e.size}function k(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?L(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}):Ce(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)})):me(t)?e.call(r,n,G(t).map(function(n,r){return pe(e,n,r,t)})):t}function Ce(e){return Array.isArray(e)?K(e).map(Ce).toList():me(e)?G(e).map(Ce).toMap():e}function me(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[k(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+k(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 Le="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 ke(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 ke(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 ke(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=mt(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+m,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 Ct(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 Ct(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 mt(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=mt(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[C]=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+m,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+m,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 C=e&&e===this.ownerID,g=d?p?c:c^s:c|s,w=d?p?vt(f,u,p,C):wt(f,u,C):yt(f,u,p,C);return C?(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+m,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+m,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,m,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[Lt])}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=k(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=m,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 Lt="@@__IMMUTABLE_LIST__@@",kt=At.prototype;function Ht(e,t){this.array=e,this.ownerID=t}kt[Lt]=!0,kt[C]=kt.remove,kt.setIn=Ge.setIn,kt.deleteIn=kt.removeIn=Ge.removeIn,kt.update=Ge.update,kt.updateIn=Ge.updateIn,kt.mergeIn=Ge.mergeIn,kt.mergeDeepIn=Ge.mergeDeepIn,kt.withMutations=Ge.withMutations,kt.asMutable=Ge.asMutable,kt.asImmutable=Ge.asImmutable,kt.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-m,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-m,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-m,o+(n<<i))}}}}function zt(e,t,n,r,i,o,a){var l=Object.create(kt);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,m))}function Tt(e,t,n){if((t=k(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-m,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+m){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=m;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+=m);d&&(a+=d,i+=d,l+=d,o+=d);for(var u=Bt(o),f=Bt(l);f>=1<<s+m;)c=new Ht(c&&c.array.length?[c]:[],r),s+=m;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 C=c=Dt(c,r),g=s;g>m;g-=m){var y=u>>>g&v;C=C.array[y]=Dt(C.array[y],r)}C.array[u>>>m&v]=h}if(l<o&&(p=p&&p.removeAfter(r,0,l)),a>=f)a-=f,l-=f,s=m,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-=m,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)),Ct(e,t,r)}function Bt(e){return e<g?0:e-1>>>m<<m}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 Cn(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=k(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 Cn(e,t){return oe(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function gn(e){return Fe(e.size),L(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);kn(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[C]=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){mn(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){mn(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(Ln(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 '+Ln(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 Ln(e){return e._name||e.constructor.name||"Record"}function kn(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[C]=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[C]=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=k(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 Cn(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 Cn(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 Cn(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 Cn(this,$t(this,!0))},slice:function(e,t){return Cn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return Cn(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 L(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 Cn(this,cn(this,e,t))},flatten:function(e){return Cn(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 Cn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Cn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return Cn(this,un(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Cn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Cn(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 Cn(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 Cn(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Cn(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=Le(t,3432918353),t=Le(t<<15|t>>>-15,461845907),t=Le(t<<13|t>>>-13,5),t=Le((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ke((t=Le(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 Cn(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 Cn(this,$t(this,!1))},slice:function(e,t){return Cn(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 Cn(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 Cn(this,sn(this,e,!1))},get:function(e,t){return(e=k(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=k(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Cn(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),Cn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Cn(this,an(this,e,t,!1))},zip:function(){return Cn(this,pn(this,ir,[this].concat(x(arguments))))},zipWith:function(e){var t=x(arguments);return t[0]=this,Cn(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}()),ZN.exports}function RN(){if(rz)return nz;rz=1;var e=jN().OrderedMap;return nz={createFromArray:function(t){return e(t.map(function(e){return[e.getKey(),e]}))}}}function BN(){if(oz)return iz;oz=1;var e=jN(),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,iz=a}function PN(){if(lz)return az;return lz=1,az=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 FN(){if(cz)return sz;cz=1;var e=BN(),t=PN(),n=jN(),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 sz=d}function UN(){if(uz)return dz;uz=1;var e=BN(),t=PN(),n=jN(),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 dz=f}function qN(){if(gz)return mz;gz=1;var e=function(){if(Cz)return pz;Cz=1;var e=BN();return pz=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=jN();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 WN(){if(bz)return wz;bz=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 wz=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}},wz}function QN(){if(xz)return Az;xz=1;var e=yz?vz:(yz=1,vz={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(Mz)return Ez;Mz=1;var e=WN();return Ez=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},Ez}(),n=WN();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 C=p[0];if("IMMUTABLE"===f)return o.merge({anchorOffset:C.start,focusOffset:C.end,isBackward:!1});s||(c?u=C.end:d=C.start);var m=e.getRemovalRange(d,u,i.getText().slice(C.start,C.end),C.start,a);return o.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}return Az=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 GN(){if(kz)return Lz;kz=1;var e={},t=Math.pow(2,24);return Lz=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},Lz}function KN(){if(Sz)return Hz;Sz=1;var e=UN(),t=GN(),n=jN().OrderedMap;return Hz=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)},Hz}function YN(){if(Vz)return _z;Vz=1;var e=BN(),t=PN(),n=WN();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 _z=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 XN(){if(zz)return Oz;zz=1;var e=KN(),t=YN();return Oz=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 JN(){if(Tz)return Nz;return Tz=1,Nz=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 $N(){if(Dz)return Iz;Dz=1;var e=RN(),t=UN(),n=jN(),r=JN(),i=WN(),o=KN(),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(),C=p.getLength(),m=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:m,anchorOffset:C,focusKey:m,focusOffset:C,isBackward:!1})})};return Iz=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 C=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,C),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)},Iz}function eT(){if(Bz)return Rz;Bz=1;var e=jN().Map;return Rz=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})},Rz}function tT(){if(Fz)return Pz;Fz=1;var e=UN();return Pz=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 nT(){if(qz)return Uz;qz=1;var e=UN(),t=tT(),n=jN();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 Uz=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),C=l.get(f),m=p instanceof e,g=[];if(m){var v=C.getChildKeys(),y=o(f,l);C.getNextSiblingKey()&&(g=g.concat(y)),v.isEmpty()||(g=g.concat(y.concat([f]))),g=g.concat(o(t(C,l),l))}a=p===C?c(p.getCharacterList(),u,h):p.getCharacterList().slice(0,u).concat(C.getCharacterList().slice(h));var w=p.merge({text:p.getText().slice(0,u)+C.getText().slice(h),characterList:a}),b=m&&0===u&&0===h&&C.getParentKey()===d&&null==C.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 m&&p!==C&&(E=s(E,p,C,l)),n.merge({blockMap:E,selectionBefore:i,selectionAfter:i.merge({anchorKey:d,anchorOffset:u,focusKey:d,focusOffset:u,isBackward:!1})})},Uz}function rT(){if(Qz)return Wz;Qz=1;var e=UN(),t=GN(),n=jN(),r=WN(),i=eT(),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 Wz=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(),C=u.getCharacterList(),m=t(),g=u instanceof e,v=u.merge({text:f.slice(0,p),characterList:C.slice(0,p)}),y=v.merge({key:m,text:f.slice(p),characterList:C.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],[m,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:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})},Wz}function iT(){if(Kz)return Gz;Kz=1;var e=BN(),t=function(){if(hz)return fz;hz=1;var e=BN(),t=jN().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 fz={add:function(e,t,r){return n(e,t,r,!0)},remove:function(e,t,r){return n(e,t,r,!1)}}}(),n=qN(),r=QN(),i=XN(),o=jN(),a=$N(),l=function(){if(jz)return Zz;jz=1;var e=jN(),t=JN(),n=WN(),r=e.Repeat;return Zz=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})})},Zz}(),s=WN(),c=eT(),d=YN(),u=nT(),f=rT(),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 C=d(e,t);return u(C,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 Gz=p}function oT(){if(Xz)return Yz;return Xz=1,Yz=function(e){return Object.keys(e).map(function(t){return e[t]})},Yz}function aT(){if($z)return Jz;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}$z=1;var t=PN(),n=oT(),r=jN(),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 Jz=d}function lT(){if(tN)return eN;tN=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,jN().Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));return eN=e}function sT(){if(oN)return iN;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}oN=1;var t=lT(),n=jN(),r=WN(),i=(rN||(rN=1,nN=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)})}),nN),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 iN=s}function cT(){if(lN)return aN;lN=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,jN().Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));return aN=e}function dT(){return cN?sN:(cN=1,sN=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]})}function uT(){if(uN)return dN;uN=1;var e=new RegExp("\r","g");return dN=function(t){return t.replace(e,"")}}function fT(){if(hN)return fN;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=RN(),r=BN(),i=FN(),o=UN(),a=sT(),l=cT(),s=GN(),c=oT(),d=dT(),u=jN(),f=uT(),h=u.List,p=u.Record,C=u.Repeat,m=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(C(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:m(t.data),characterList:null!=n?h((Array.isArray(n)?n:c(n)).map(function(e){return r.fromJS(e)})):void 0}))},d}(v);return fN=w}function hT(){if(CN)return pN;CN=1;var e=WN(),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 pN={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 pT(){if(gN)return mN;gN=1;var e=hT(),t=WN(),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 CT(){if(bN)return wN;bN=1;return wN=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},wN}function mT(){if(MN)return EN;MN=1;var e,t=function(){if(yN)return vN;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}yN=1;var t=pT(),n=hT(),r=WN();return vN=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=jN(),r=CT(),i=n.OrderedMap;return EN={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 gT(){if(xN)return AN;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}xN=1;var n=aT(),r=fT(),i=mT(),o=cT(),a=jN(),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:C(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):C(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 m(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 m(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 C(e,t){return e.getBlockMap().map(function(r){return n.generate(e,r,t)}).toOrderedMap()}function m(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 AN=h}function vT(){if(SN)return HN;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}SN=1;var n=RN(),r=BN(),i=FN(),o=UN(),a=iT(),l=gT(),s=GN(),c=dT(),d=jN(),u=function(){if(kN)return LN;kN=1;var e=UN(),t=tT(),n=jN(),r=WN(),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,C=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(C,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:C,parent:h})})})};return LN=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 C=p.toSeq().takeUntil(function(e){return e===a}),m=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=C.concat([].concat(g,[[c,a]]),m).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=C.concat([[c,a]].concat(g),m).toOrderedMap()}return n.merge({blockMap:l(v,o,a,s,f),selectionBefore:n.getSelectionAfter(),selectionAfter:n.getSelectionAfter().merge({anchorKey:d,focusKey:d})})},LN}(),f=c("draft_tree_data_support"),h=f?o:i,p=d.List,C=d.Repeat;return HN={insertAtomicBlock:function(t,i,o){var c=t.getCurrentContent(),d=t.getSelection(),u=a.removeRange(c,d,"backward"),m=u.getSelectionAfter(),g=a.splitBlock(u,m),v=g.getSelectionAfter(),y=a.setBlockType(g,v,"atomic"),w=r.create({entity:i}),b={key:s(),type:"atomic",text:o,characterList:p(C(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),L=x.merge({selectionBefore:d,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return l.push(t,L,"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),C=p.getSelectionAfter(),m=p.getBlockForKey(C.getFocusKey());i=u(p,t,m,"before")}}var g=i.merge({selectionBefore:s,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return l.push(e,g,"move-block")}}}function yT(){if(VN)return _N;VN=1;var e=jN().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 _N=t}function wT(){if(zN)return ON;function e(e){return e.replace(/\//g,"-")}return zN=1,ON=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(" ")},ON}function bT(){if(TN)return NN;TN=1;var e=i,t=wT(),n=(0,jN().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 NN=n}function ET(){return DN?IN:(DN=1,IN={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}})}var MT,AT,xT,LT,kT,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,CI,mI,gI,vI,yI,wI,bI,EI,MI,AI,xI,LI,kI,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,CD,mD,gD,vD,yD,wD,bD,ED,MD,AD,xD,LD,kD,HD,SD,_D,VD,OD,zD,ND={exports:{}},TD=ND.exports;function ID(){return MT||(MT=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",C="console",m="mobile",g="tablet",v="smarttv",y="wearable",w="embedded",b="Amazon",E="Apple",M="ASUS",A="BlackBerry",x="Browser",L="Chrome",k="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,k+" 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,k]],[/\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,L+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,L+" 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,k+" 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,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,E],[u,m]],[/\((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,m]],[/\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,m]],[/\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,m]],[/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,m]],[/; (\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,m]],[/\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,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[u,m]],[/\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,m]],[/\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,m]],[/(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,m],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,H],[u,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,H],[u,m]],[/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,m]],[/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,m]],[/(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,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[u,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,A],[u,m]],[/(?:\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,m]],[/(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,m]],[/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,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[u,m]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[u,m]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[u,m]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[u,m]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[u,m]],[/; (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,m]],[/(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,m]],[/(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,m]],[/(u304aa)/i],[c,[f,"AT&T"],[u,m]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[u,m]],[/\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,m]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[u,m]],[/\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,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[u,m]],[/\b(ph-1) /i],[c,[f,"Essential"],[u,m]],[/\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,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,O],[u,m]],[/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,m]],[/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,L+"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,C]],[/droid.+; (shield)( bui|\))/i],[c,[f,N],[u,C]],[/(playstation \w+)/i],[c,[f,R],[u,C]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,O],[u,C]],[/\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,m]],[/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,m]],[/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,k+" 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,L+"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 C=typeof n!==o&&n.navigator?n.navigator:r,v=e||(C&&C.userAgent?C.userAgent:""),y=C&&C.userAgentData?C.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=C&&C.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&&C&&C.brave&&typeof C.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]=m),b&&"Macintosh"==e[c]&&C&&typeof C.standalone!==o&&C.maxTouchPoints&&C.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,C,m,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:TD)}(ND,ND.exports)),ND.exports}function DD(){if(xT)return AT;xT=1;var e=ID(),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 AT=a}function ZD(){if(kT)return LT;kT=1;var e=WN(),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=m(e,t);return-1===n||0===n}(r,a);case">=":return c(r,a);case">":return 1===m(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===m(e,t)}(r,a)}}function s(e,t){return-1===m(e,t)}function c(e,t){var n=m(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?C(i,a):C(e,t)}function C(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 m(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 LT=g}function jD(){if(zT)return OT;zT=1;var e=DD(),t=ZD(),n=function(){if(ST)return HT;ST=1;var e=Object.prototype.hasOwnProperty;return HT=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},HT}(),r=VT?_T:(VT=1,_T=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 OT=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 RD(){if(TT)return NT;return TT=1,NT=function(e){return e&&e.ownerDocument?e.ownerDocument:document}}function BD(){if(DT)return IT;return DT=1,IT=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}}function PD(){if(jT)return ZT;jT=1;var e=BD();return ZT=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},ZT}function FD(){if(BT)return RT;BT=1;var e=RD(),t=PD();return RT=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},RT}function UD(){if(FT)return PT;return FT=1,PT=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}}function qD(){if(QT)return WT;QT=1;var e="-";return WT={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 WD(){return KT?GT:(KT=1,GT={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 QD(){return XT?YT:(XT=1,YT={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}})}function GD(){if($T)return JT;return $T=1,JT=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}}function KD(){if(tI)return eI;tI=1;var e=WN(),t=GD();return eI=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 YD(){if(rI)return nI;rI=1;var e=qD(),t=CT();return nI=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),C=p&&p.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!u||!C)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var m=u.get("start"),g=C.get("start"),v=u?m+i:null,y=C?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=C.get("end");w=g===m&&E===b?a<i:g<m}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})},nI}function XD(){if(oI)return iI;oI=1;var e=FD(),t=PD(),n=YD(),r=WN(),i=BD(),o=CT();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,C=null;if(t(h)){var m=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(m)),C=l(m)}else p=o(d),C=l(h);return{key:p,offset:C}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}return iI=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 JD(){if(lI)return aI;lI=1;var e=XD();return aI=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 $D(){if(cI)return sI;cI=1;var e=QD(),t=gT(),n=KD(),r=JD();return sI=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 eZ(){if(uI)return dI;return uI=1,dI={notEmptyKey:function(e){return null!=e&&""!=e}},dI}function tZ(){if(hI)return fI;hI=1;var e=eZ().notEmptyKey;function t(t,n){return e(n)&&"MUTABLE"===t.__get(n).getMutability()?n:null}return fI=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)},fI}function nZ(){if(CI)return pI;CI=1;var e=function(){if(qT)return UT;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}qT=1;var t=jD(),n=FD(),r=UD(),i=jN(),o=WN(),a=CT(),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 UT=d}(),t=iT(),n=qD(),r=gT(),i=WD(),o=jD(),a=$D(),l=KD(),s=JD(),c=tZ(),d=CT(),u=o.isBrowser("IE"),f=!1,h=!1,p=null;var C={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||C.resolveComposition(e)},20)},onSelect:a,onKeyDown:function(e,t){if(!h)return C.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,C=o.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:h,focusOffset:p,isBackward:!1}),m=c(a,C),g=a.getBlockForKey(s).getInlineStyleAt(h);a=t.replaceText(a,C,e,g,m),o=r.set(o,{currentContent:a})});var C=s(o,l(e)).selectionState;e.restoreEditorDOM();var m=u?r.forceSelection(o,C):r.acceptSelection(o,C);e.update(r.push(m,a,"insert-characters"))}else e.update(o)}}};return pI=C}function rZ(){if(gI)return mI;gI=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=qD(),r=i,o=pT(),a=hT(),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(),C=f.get("leaves"),m=c.getComponentForKey(d),g=c.getPropsForKey(d),v=n.encode(p,parseInt(d,10),0),y=h.slice(C.first().get("start"),C.last().get("end")),w=a.getHTMLDirIfDifferent(o.getDirection(y),u);return r.createElement(m,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 iZ(){if(yI)return vI;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}yI=1;var n=i,r=jD(),o=WN(),a=BD(),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 vI=s}function oZ(){if(bI)return wI;bI=1;var e=BD();return wI=function(t){return!(!t||!t.ownerDocument)&&(e(t)&&"BR"===t.nodeName)}}function aZ(){return MI?EI:(MI=1,EI={initODS:function(){},handleExtensionCausedError:function(){}})}function lZ(){if(kI)return LI;kI=1;var e=xI?AI:(xI=1,AI=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 LI=function(t){return e(t)&&3==t.nodeType}}function sZ(){if(SI)return HI;SI=1;var e=lZ();return HI=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))))},HI}function cZ(){if(VI)return _I;return VI=1,_I=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 dZ(){if(zI)return OI;zI=1;var e=aZ(),t=QD(),n=jD(),r=sZ(),i=cZ(),o=RD(),a=WN(),l=BD(),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 OI={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(),C=e.getIsBackward();if(!s.extend&&C){var m=c,g=d;c=u,d=f,u=m,f=g,C=!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(C){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 uZ(){if(TI)return NI;TI=1;var e=jh();var t=iZ(),n=i,r=WN(),o=oZ(),a=dZ().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 NI=l}function fZ(){if(DI)return II;DI=1;var e=rZ(),t=uZ(),n=qD(),r=jN(),o=i,a=wT();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,C=r.tree,m=i.getKey(),g=i.getText(),v=C.size-1,y=this.props.children||C.map(function(r,a){var C=r.get("decoratorKey"),y=r.get("leaves"),w=y.size-1,b=y.map(function(e,r){var l=n.encode(m,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:C===v&&r===w})}).toArray();return C&&d?o.createElement(e,{block:i,children:b,contentState:l,decorator:d,decoratorKey:C,direction:u,leafSet:r,text:g,key:a}):b}).toArray();return o.createElement("div",{"data-offset-key":n.encode(m,0,0),className:a({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===u,"public/DraftStyleDefault/rtl":"RTL"===u})},y)},s}(o.Component);return II=l}function hZ(){if(jI)return ZI;function e(e,t){return!!t&&(e===t.documentElement||e===t.body)}return jI=1,ZI={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 pZ(){if(qI)return UI;qI=1;var e=function(){if(BI)return RI;BI=1;var e=/-(.)/g;return RI=function(t){return t.replace(e,function(e,t){return t.toUpperCase()})}}(),t=function(){if(FI)return PI;FI=1;var e=/([A-Z])/g;return PI=function(t){return t.replace(e,"-$1").toLowerCase()}}();function n(e){return null==e?e:String(e)}return UI=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 CZ(){if(QI)return WI;function e(e,n){var r=t.get(e,n);return"auto"===r||"scroll"===r}QI=1;var t={get:pZ(),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 WI=t}function mZ(){if(XI)return YI;XI=1;var e=function(){if(KI)return GI;KI=1;var e=sZ();return GI=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 YI=function(t){var n=e(t);return{x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top}}}function gZ(){if(rD)return nD;rD=1;var e=function(){if($I)return JI;$I=1;var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;return JI=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}}(),t=tD?eD:(tD=1,eD=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 nD=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 vZ(){if(oD)return iD;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 oD=1,n.withoutScrollbars=function(){return{width:e(),height:t()}},iD=n}function yZ(){if(lD)return aD;lD=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=fZ(),a=qD(),l=i,s=hZ(),c=CZ(),d=mZ(),u=gZ(),f=vZ(),h=jN(),p=WN(),C=GD();h.List;var m=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||m(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{C(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,C=r.customStyleFn,b=r.customStyleMap,E=r.direction,M=r.forceSelection,A=r.selection,x=r.tree,L=null;i.children.size&&(L=i.children.reduce(function(t,r){var i=a.encode(r,0,0),o=u.getBlockForKey(r),f=v(o,c),C=f.CustomComponent||w,m=g(o,s),b=m.Element,E=m.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(C,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 k=i.getKey(),H=a.encode(k,0,0),S=v(i,c),_=S.CustomComponent,V=null!=_?l.createElement(_,t({},this.props,{tree:p.getBlockTree(k),blockProps:S.customProps,offsetKey:H,block:i})):l.createElement(o,{block:i,children:L,contentState:u,customStyleFn:C,customStyleMap:b,decorator:f,direction:E,forceSelection:M,hasSelection:m(A,k),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 aD=w}function wZ(){if(cD)return sD;cD=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=yZ(),r=qD(),o=i,a=CT(),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(),C=u.getSelection(),m=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:m,selection:C,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=[],L=0;L<y.length;){var k=y[L];if(k.wrapperTemplate){var H=[];do{H.push(y[L].block),L++}while(L<y.length&&y[L].wrapperTemplate===k.wrapperTemplate);var S=o.cloneElement(k.wrapperTemplate,{key:k.key+"-wrap","data-offset-key":k.offsetKey},H);x.push(S)}else x.push(k.block),L++}return o.createElement("div",{"data-contents":"true"},x)},s}(o.Component);return sD=l}function bZ(){if(uD)return dD;uD=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=uZ(),r=qD(),o=i,a=hZ(),l=CZ(),s=pT(),c=hT(),d=wT(),u=mZ(),f=gZ(),h=vZ(),p=WN(),C=GD(),m=CT(),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{C(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 C=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===C})}).toArray(),v=f.get("decoratorKey");if(null==v)return g;if(!e.props.decorator)return g;var y=m(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),L=i.getEntityAt(f.get("start")),k=c.getHTMLDirIfDifferent(s.getDirection(x),e.props.direction),H={contentState:e.props.contentState,decoratedText:x,dir:k,start:M,end:A,blockKey:a,entityKey:L,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 dD=v}function EZ(){if(CD)return pD;CD=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=bZ(),a=qD(),l=i,s=wT(),c=(hD||(hD=1,fD=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}),fD),d=CT(),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,C=e.editorKey,m=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,L=null,k=0;k<M.length;k++){var H=M[k],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:m,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,L!==j||null===x||B>x,T));var F=O||o,U={className:P,"data-block":!0,"data-editor":C,"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,L=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 pD=f}function MZ(){if(bD)return wD;bD=1;var e=WN();return wD=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 AZ(){if(MD)return ED;function e(e){return function(){return e}}MD=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},ED=t}function xZ(){if(xD)return AD;xD=1;var e=function(){if(yD)return vD;yD=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 vD=e}(),t=MZ(),n=AZ(),r=new RegExp("\r\n","g"),i={"text/rtf":1,"text/html":1};function o(e){if("file"==e.kind)return e.getAsFile()}return AD=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 LZ(){if(kD)return LD;kD=1;var e=WN(),t=/\.textClipping$/,n={"text/plain":!0,"text/html":!0,"text/rtf":!0};return LD=function(r,i){var o=0,a=[];r.forEach(function(l){!function(r,i){if(!k.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"))})})},LD}function kZ(){if(SD)return HD;return SD=1,HD=function(e){return"handled"===e||!0===e}}function HZ(){if(VD)return _D;VD=1;var e=xZ(),t=iT(),n=gT(),r=FD(),i=RD(),o=LZ(),a=YD(),l=UD(),s=kZ(),c=CT();var d={onDragEnd:function(e){e.exitCurrentMode(),u(e)},onDrop:function(l,d){var h=new e(d.nativeEvent.dataTransfer),p=l._latestEditorState,C=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!=C){var m=h.getFiles();if(m.length>0){if(l.props.handleDroppedFiles&&s(l.props.handleDroppedFiles(C,m)))return;o(m,function(e){e&&l.update(f(p,C,e))})}else{var g=l._internalDrag?"internal":"external";l.props.handleDrop&&s(l.props.handleDrop(C,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,C)):l.update(f(p,C,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 _D=d}var 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,Cj,mj,gj,vj,yj,wj,bj,Ej,Mj,Aj,xj,Lj,kj,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,CR,mR,gR,vR,yR,wR,bR,ER={};function MR(){return VZ?_Z:(VZ=1,SZ||(SZ=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===k?ER:k:self)),_Z=k.setImmediate)}function AR(){if(zZ)return OZ;zZ=1;var e=iT(),t=gT(),n=jD(),r=tZ(),i=kZ(),o=zD?OD:(zD=1,OD=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=CT(),l=MR(),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 OZ=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 C,m=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=m.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||(C=u,g=s&&("'"==C||"/"==C)),g||(g=a(m.getDirectionMap()).get(p)!==a(d.getDirectionMap()).get(p)),g)return n.preventDefault(),m=t.set(m,{forceSelection:!0}),void e.update(m);m=t.set(m,{nativelyRenderedContent:m.getCurrentContent()}),e._pendingStateFromBeforeInput=m,l(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}},OZ}function xR(){if(jZ)return ZZ;jZ=1;var e=XN();return ZZ=function(t){var n=t.getSelection();return n.isCollapsed()?null:e(t.getCurrentContent(),n)}}function LR(){if(qZ)return UZ;qZ=1;var e=iT(),t=gT(),n=CZ(),r=xR(),i=gZ(),o=FZ?PZ:(FZ=1,PZ=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 UZ=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)}},UZ}function kR(){if($Z)return JZ;$Z=1;var e=WN(),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 JZ=a}function HR(){if(tj)return ej;tj=1;var e=AZ();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 ej=n}function SR(){if(rj)return nj;rj=1;var e=HR();return nj=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})},nj}function _R(){if(oj)return ij;oj=1;var e=iT(),t=dT()("draft_tree_data_support");return ij=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 VR(){if(lj)return aj;lj=1;var e=gT(),t=kR(),n=SR(),r=_R();return aj=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")},aj}function OR(){if(cj)return sj;cj=1;var e=iT(),t=qD(),n=gT(),r=jD(),i=eZ().notEmptyKey,o=FD(),a=VR(),l=CT(),s=r.isEngine("Gecko");return sj=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 C=p.firstChild;null!=C;C=C.nextSibling)C!==u&&p.removeChild(C)}var m=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,L=g.getCurrentContent(),k=L.getBlockForKey(w),H=k.getText().slice(A,x);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==H){var S,_,V,O,z=g.getSelection(),N=z.merge({anchorOffset:A,focusOffset:x,isBackward:!1}),T=k.getEntityAt(A),I=i(T)?L.getEntity(T):null,D="MUTABLE"===(null!=I?I.getMutability():null),Z=D?"spellcheck-change":"apply-entity",j=e.replaceText(L,N,m,k.getInlineStyleAt(A),D?k.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=m.length-H.length;V=z.getStartOffset(),O=z.getEndOffset(),S=f?O+R:V,_=O+R}var B=j.merge({selectionBefore:L.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)}}}},sj}function zR(){if(hj)return fj;hj=1;var e=jD(),t=function(){if(uj)return dj;uj=1;var e=WD();return dj=function(t){return t.which===e.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))},dj}(),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 fj=r}function NR(){if(gj)return mj;gj=1;var e=jD(),t=WN();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 TR(){if(yj)return vj;yj=1;var e=kR(),t=RD(),n=NR(),r=WN();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 vj=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},vj}function IR(){if(Mj)return Ej;Mj=1;return Ej={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}}function DR(){if(xj)return Aj;xj=1;var e="['‘’]",t="\\s|(?![_])"+IR().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 Aj={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}}}function ZR(){if(Sj)return Hj;Sj=1;var e=HR();return Hj=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})},Hj}function jR(){if(qj)return Uj;qj=1;var e=iT(),t=gT(),n=zR(),r=WD(),i=function(){if(Cj)return pj;Cj=1;var e=iT(),t=gT(),n=XN(),r=CT(),i=null;return pj={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=jD(),a=kZ(),l=function(){if(bj)return wj;bj=1;var e=gT(),t=TR(),n=XD(),r=SR(),i=_R();return wj=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")},wj}(),s=function(){if(kj)return Lj;kj=1;var e=DR(),t=gT(),n=SR(),r=_R();return Lj=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")},Lj}(),c=function(){if(Vj)return _j;Vj=1;var e=DR(),t=gT(),n=ZR(),r=_R();return _j=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")},_j}(),d=function(){if(zj)return Oj;zj=1;var e=iT(),t=gT();return Oj=function(n){var r=e.splitBlock(n.getCurrentContent(),n.getSelection());return t.push(n,r,"split-block")}}(),u=function(){if(Tj)return Nj;Tj=1;var e=gT();return Nj=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(Dj)return Ij;Dj=1;var e=gT();return Ij=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=VR(),p=function(){if(jj)return Zj;jj=1;var e=gT(),t=kR(),n=ZR(),r=_R();return Zj=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")},Zj}(),C=function(){if(Bj)return Rj;Bj=1;var e=iT(),t=gT(),n=XN();return Rj=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,C=h.merge({anchorOffset:p,focusOffset:p}),m=e.replaceWithFragment(f,C,u),g=t.push(r,m,"insert-fragment");return t.acceptSelection(g,l)}}(),m=function(){if(Fj)return Pj;Fj=1;var e=gT();return Pj=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}))}},Pj}(),g=n.isOptionKeyCommand,v=o.isBrowser("Chrome");return Uj=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 C(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 m(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"))}},Uj}function RR(){if(Qj)return Wj;Qj=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 Wj=e}function BR(){if(Kj)return Gj;Kj=1;var e=jD(),t=WN(),n=e.isBrowser("IE <= 9");return Gj=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},Gj}function PR(){if(tR)return eR;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}tR=1;var r=BN(),i=FN(),o=UN(),a=bT(),l=sT(),s=RR(),c=wT(),d=GN(),u=BR(),f=dT(),h=jN(),p=h.List,C=h.Map,m=h.OrderedSet,g=function(){if(Xj)return Yj;Xj=1;var e=BD();return Yj=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"A"===t.nodeName}}(),v=oZ(),y=GD(),w=function(){if($j)return Jj;$j=1;var e=BD();return Jj=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"),L=new RegExp("&#13;?","g"),k=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=C({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],m())),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 C=d(),m=this._toBlockConfigs(Array.from(i.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:C,childConfigs:m,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 eR=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(L,"").replace(k,""));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)})}),C(t)}(t);return new R(r,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()},eR}function FR(){if(rR)return nR;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}rR=1;var t=FN(),n=UN(),r=PR(),i=GN(),o=BR(),a=dT(),l=jN(),s=uT(),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 nR=h}function UR(){if(lR)return aR;lR=1;var e=iT(),t=gT(),n=(oR||(oR=1,iR=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})}),iR),r=CT(),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 aR=i}function qR(){if(uR)return dR;uR=1;var e=RN(),t=BN(),n=xZ(),r=iT(),i=FR(),o=gT(),a=UR(),l=tZ(),s=LZ(),c=kZ(),d=function(){if(cR)return sR;cR=1;var e=/\r\n?|\n/g;return sR=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 dR=function(f,h){h.preventDefault();var p=new n(h.clipboardData);if(!p.isRichText()){var C=p.getFiles(),m=p.getText();if(C.length>0){if(f.props.handlePastedFiles&&c(f.props.handlePastedFiles(C)))return;return void s(C,function(n){if(n=n||m){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),C=e.createFromArray(p),g=r.replaceWithFragment(s.getCurrentContent(),s.getSelection(),C);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,L=A.entityMap;if(x){var k=e.createFromArray(x);return void f.update(u(f._latestEditorState,k,L))}}}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))}}},dR}function WR(){if(hR)return fR;hR=1;var e=jD(),t=AR(),n=function(){if(TZ)return NZ;TZ=1;var e=gT(),t=sZ(),n=cZ();return NZ=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))}},NZ}(),r=function(){if(DZ)return IZ;DZ=1;var e=gT();return IZ=function(t,n){t.setMode("composite"),t.update(e.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(n)},IZ}(),i=function(){if(BZ)return RZ;BZ=1;var e=xR();return RZ=function(t,n){t._latestEditorState.getSelection().isCollapsed()?n.preventDefault():t.setClipboard(e(t._latestEditorState))},RZ}(),o=LR(),a=(QZ||(QZ=1,WZ=function(e,t){e.setMode("drag"),t.preventDefault()}),WZ),l=KZ?GZ:(KZ=1,GZ=function(e){e._internalDrag=!0,e.setMode("drag")}),s=function(){if(XZ)return YZ;XZ=1;var e=gT(),t=jD();return YZ=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))}},YZ}(),c=OR(),d=jR(),u=qR(),f=$D(),h=e.isBrowser("Chrome"),p=e.isBrowser("Firefox"),C=h||p?f:function(e){};return fR={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:C,onKeyUp:C}}function QR(){if(gR)return mR;gR=1;var e=i,t=wT(),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 GR(){if(yR)return vR;yR=1;var e=zR(),t=WD(),n=jD(),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 vR=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}},vR}function KR(){if(bR)return wR;bR=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=bT(),s=ET(),c=nZ(),d=function(){if(gD)return mD;gD=1;var e=dT()("draft_tree_data_support");return mD=e?wZ():EZ()}(),u=HZ(),f=WR(),h=function(){if(CR)return pR;CR=1;var e=M.unstable_flushControlled;return pR=e}(),p=QR(),C=aZ(),m=gT(),g=i,v=hZ(),y=CZ(),w=jD(),b=wT(),E=GN(),A=GR(),x=gZ(),L=dT(),H=WN(),S=GD(),_=CT(),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(m.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,C=b({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),m=this.props.role||"textbox",v="combobox"===m?!!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:C},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:m,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&&L("draft_ods_enabled")&&(N=!0,C.initODS()),this.setMode("edit"),V&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):k.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}),wR=I}var YR,XR,JR,$R,eB,tB,nB,rB,iB,oB,aB,lB,sB,cB,dB,uB,fB,hB,pB,CB,mB,gB,vB,yB,wB,bB,EB,MB={};function AB(){return YR||(YR=1),MB}function xB(){if(JR)return XR;JR=1;var e={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};return XR=e}function LB(){if(nB)return tB;nB=1;var e=kR(),t=PN(),n=function(e,t){return e===t},r=function(e){return!!e},i=[];return tB=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(iB)return rB;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}iB=1;var t=FN(),n=UN(),r=xB(),i=function(){if(eB)return $R;eB=1;var e=xB(),t=kR().strlen;return $R=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},$R}(),o=LB(),a=WN(),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 rB=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},rB}function HB(){if(aB)return oB;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}aB=1;var n=GN(),r=WN(),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 oB=o}function SB(){if(mB)return CB;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=FN(),r=UN(),i=fT(),o=sT(),a=HB(),l=function(){if(sB)return lB;sB=1;var e=HR(),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 lB=t}(),s=cT(),c=function(){if(dB)return cB;dB=1;var e=BN(),t=jN().List;return cB=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(fB)return uB;fB=1;var e=kR().substr;return uB=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},uB}(),u=function(){if(pB)return hB;pB=1;var e=kR(),t=jN().OrderedSet,n=e.substr,r=t();return hB=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},hB}(),f=GN(),h=dT(),p=jN(),C=WN(),m=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=m&&!o?a.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!m)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?C(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):C(!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?C(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):C(!1));break}var m=d.children.map(E),v=new r(e({},w(d,n),{parent:u.getKey(),children:g(m.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,m,v)}return i},y())}(s,i);return"production"!==process.env.NODE_ENV&&(l.isValidTree(c)||("production"!==process.env.NODE_ENV?C(!1,"Should be a valid tree"):C(!1))),c};return CB=function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?C(!1,"invalid RawDraftContentState"):C(!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 _B(){if(wB)return yB;wB=1;var e=function(){if(vB)return gB;vB=1;var e=NR();return gB=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}},gB}();return yB=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},yB}function VB(){if(EB)return bB;EB=1;var e=vT(),t=RN(),n=BN(),r=yT(),i=FN(),o=fT(),a=bT(),l=ET(),s=KR(),c=bZ(),d=sT(),u=iT(),f=lT(),h=gT(),p=zR(),C=AB(),m=UR(),g=cT(),v=kB(),y=SB(),w=GN(),b=GR(),E=_B(),M=PR();return bB={Editor:s,EditorBlock:c,EditorState:h,CompositeDecorator:r,Entity:d,EntityInstance:f,BlockMapBuilder:t,CharacterMetadata:n,ContentBlock:i,ContentState:o,RawDraftContentState:C,SelectionState:g,AtomicBlockUtils:e,KeyBindingUtil:p,Modifier:u,RichUtils:m,DefaultDraftBlockRenderMap:a,DefaultDraftInlineStyle:l,convertFromHTML:M,convertFromRaw:y,convertToRaw:v,genKey:w,getDefaultKeyBinding:b,getVisibleSelectionRect:E}}var OB=VB(),zB={exports:{}},NB="@@__IMMUTABLE_INDEXED__@@";function TB(e){return Boolean(e&&e[NB])}var IB="@@__IMMUTABLE_KEYED__@@";function DB(e){return Boolean(e&&e[IB])}function ZB(e){return DB(e)||TB(e)}var jB="@@__IMMUTABLE_ITERABLE__@@";function RB(e){return Boolean(e&&e[jB])}var BB=function(e){return RB(e)?e:AP(e)},PB=function(e){function t(e){return DB(e)?e:xP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(BB),FB=function(e){function t(e){return TB(e)?e:LP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(BB),UB=function(e){function t(e){return RB(e)&&!ZB(e)?e:kP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(BB);BB.Keyed=PB,BB.Indexed=FB,BB.Set=UB;var qB="function"==typeof Symbol&&Symbol.iterator,WB="@@iterator",QB=qB||WB,GB=function(e){this.next=e};function KB(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 YB(){return{value:void 0,done:!0}}function XB(e){return!!Array.isArray(e)||!!eP(e)}function JB(e){return!(!e||"function"!=typeof e.next)}function $B(e){var t=eP(e);return t&&t.call(e)}function eP(e){var t=e&&(qB&&e[qB]||e[WB]);if("function"==typeof t)return t}GB.prototype.toString=function(){return"[Iterator]"},GB.KEYS=0,GB.VALUES=1,GB.ENTRIES=2,GB.prototype.inspect=GB.prototype.toSource=function(){return this.toString()},GB.prototype[QB]=function(){return this};var tP="delete",nP=32,rP=31,iP={};function oP(e){e&&(e.value=!0)}function aP(){}function lP(e){return void 0===e.size&&(e.size=e.__iterate(cP)),e.size}function sP(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?lP(e)+t:t}function cP(){return!0}function dP(e,t,n){return(0===e&&!pP(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function uP(e,t){return hP(e,t,0)}function fP(e,t){return hP(e,t,t)}function hP(e,t,n){return void 0===e?n:pP(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function pP(e){return e<0||0===e&&1/e==-1/0}var CP="@@__IMMUTABLE_RECORD__@@";function mP(e){return Boolean(e&&e[CP])}function gP(e){return RB(e)||mP(e)}var vP="@@__IMMUTABLE_ORDERED__@@";function yP(e){return Boolean(e&&e[vP])}var wP="@@__IMMUTABLE_SEQ__@@";function bP(e){return Boolean(e&&e[wP])}var EP=Object.prototype.hasOwnProperty;function MP(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 AP=function(e){function t(e){return null==e?OP():gP(e)?e.toSeq():function(e){var t=TP(e);if(t)return(r=eP(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=eP(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new SP(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 GB(function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return KB(e,o[0],o[1])})}return this.__iteratorUncached(e,t)},t}(BB),xP=function(e){function t(e){return null==e?OP().toKeyedSeq():RB(e)?DB(e)?e.toSeq():e.fromEntrySeq():mP(e)?e.toSeq():zP(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(AP),LP=function(e){function t(e){return null==e?OP():RB(e)?DB(e)?e.entrySeq():e.toIndexedSeq():mP(e)?e.toSeq().entrySeq():NP(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}(AP),kP=function(e){function t(e){return(RB(e)&&!ZB(e)?e:LP(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}(AP);AP.isSeq=bP,AP.Keyed=xP,AP.Set=kP,AP.Indexed=LP,AP.prototype[wP]=!0;var HP=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[sP(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 GB(function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return KB(e,o,n[o])})},t}(LP),SP=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 EP.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 GB(function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return KB(e,a,n[a])})},t}(xP);SP.prototype[vP]=!0;var _P,VP=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=$B(this._collection),r=0;if(JB(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=$B(this._collection);if(!JB(n))return new GB(YB);var r=0;return new GB(function(){var t=n.next();return t.done?t:KB(e,r++,t.value)})},t}(LP);function OP(){return _P||(_P=new HP([]))}function zP(e){var t=TP(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new SP(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function NP(e){var t=TP(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function TP(e){return MP(e)?new HP(e):XB(e)?new VP(e):void 0}function IP(){return this.__ensureOwner()}function DP(){return this.__ownerID?this:this.__ensureOwner(new aP)}var ZP="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 jP(e){return e>>>1&1073741824|3221225471&e}var RP=Object.prototype.valueOf;function BP(e){if(null==e)return PP(e);if("function"==typeof e.hashCode)return jP(e.hashCode(e));var t,n=(t=e).valueOf!==RP&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return PP(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 jP(t)}(n);case"string":return n.length>JP?function(e){var t=tF[e];void 0===t&&(t=FP(e),eF===$P&&(eF=0,tF={}),eF++,tF[e]=t);return t}(n):FP(n);case"object":case"function":return function(e){var t;if(GP&&void 0!==(t=QP.get(e)))return t;if(t=e[XP],void 0!==t)return t;if(!qP){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[XP]))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=WP(),GP)QP.set(e,t);else{if(void 0!==UP&&!1===UP(e))throw new Error("Non-extensible objects are not allowed as keys.");if(qP)Object.defineProperty(e,XP,{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[XP]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[XP]=t}}return t}(n);case"symbol":return function(e){var t=KP[e];if(void 0!==t)return t;return t=WP(),KP[e]=t,t}(n);default:if("function"==typeof n.toString)return FP(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function PP(e){return null===e?1108378658:1108378659}function FP(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return jP(t)}var UP=Object.isExtensible,qP=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function WP(){var e=++YP;return 1073741824&YP&&(YP=0),e}var QP,GP="function"==typeof WeakMap;GP&&(QP=new WeakMap);var KP=Object.create(null),YP=0,XP="__immutablehash__";"function"==typeof Symbol&&(XP=Symbol(XP));var JP=16,$P=255,eF=0,tF={},nF=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=sF(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=lF(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}(xP);nF.prototype[vP]=!0;var 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.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&lP(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&&lP(this),new GB(function(){var o=r.next();return o.done?o:KB(e,t?n.size-++i:i++,o.value,o)})},t}(LP),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.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 GB(function(){var t=n.next();return t.done?t:KB(e,t.value,t.value,t)})},t}(kP),oF=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){yF(t);var r=RB(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 GB(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yF(r);var i=RB(r);return KB(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(xP);function aF(e){var t=bF(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=EF,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 GB(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 lF(e,t,n){var r=bF(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,iP);return o===iP?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 GB(function(){var i=o.next();if(i.done)return i;var a=i.value,l=a[0];return KB(r,l,t.call(n,a[1],l,e),i)})},r}function sF(e,t){var n=this,r=bF(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=aF(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=EF,r.__iterate=function(n,r){var i=this,o=0;return r&&lP(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&&lP(e);var a=e.__iterator(2,!i);return new GB(function(){var e=a.next();if(e.done)return e;var l=e.value;return KB(r,t?l[0]:i?n.size-++o:o++,l[1],e)})},r}function cF(e,t,n,r){var i=bF(e);return r&&(i.has=function(r){var i=e.get(r,iP);return i!==iP&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,iP);return o!==iP&&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 GB(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 KB(i,r?c:l++,d,o)}})},i}function dF(e,t,n,r){var i=e.size;if(dP(t,n,i))return e;if(void 0===i&&(t<0||n<0))return dF(e.toSeq().cacheResult(),t,n,r);var o,a=uP(t,i),l=fP(n,i)-a;l==l&&(o=l<0?0:l);var s=bF(e);return s.size=0===o?o:e.size&&o||void 0,!r&&bP(e)&&o>=0&&(s.get=function(t,n){return(t=sP(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 GB(YB);var i=e.__iterator(t,n),l=0,s=0;return new GB(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:KB(t,s-1,0===t?void 0:e.value[1],e)})},s}function uF(e,t,n,r){var i=bF(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 GB(function(){var e,o,d;do{if((e=l.next()).done)return r||1===i?e:KB(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:KB(i,o,d,e)})},i}rF.prototype.cacheResult=nF.prototype.cacheResult=iF.prototype.cacheResult=oF.prototype.cacheResult=EF;var fF=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[IB]=this._wrappedIterables[0][IB],this[NB]=this._wrappedIterables[0][NB],this[vP]=this._wrappedIterables[0][vP]}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=DB(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 GB(YB);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new GB(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}(AP);function hF(e,t,n){var r=bF(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)&&RB(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 GB(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)||!RB(s))return n?e:KB(r,l++,s,e);a.push(o),o=s.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}})},r}function pF(e,t,n){t||(t=MF);var r=DB(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?xP(o):TB(e)?LP(o):kP(o)}function CF(e,t,n){if(t||(t=MF),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 gF(e,t,n,r){var i=bF(e),o=new HP(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=BB(e),$B(i?e.reverse():e)}),a=0,l=!1;return new GB(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}:KB(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function vF(e,t){return e===t?e:bP(e)?t:e.constructor(t)}function yF(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function wF(e){return DB(e)?PB:TB(e)?FB:UB}function bF(e){return Object.create((DB(e)?xP:TB(e)?LP:kP).prototype)}function EF(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):AP.prototype.cacheResult.call(this)}function MF(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 AF(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function xF(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!!(AF(e)&&AF(t)&&e.equals(t))}function LF(e,t,n,r){return xU(e,[t],n,r)}function kF(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return SF(this,e)}function HF(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 SF(this,t,e)}function SF(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=PB(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){LF(e,r,iP,function(e){return e===iP?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 _F=Object.prototype.toString;function VF(e){if(!e||"object"!=typeof e||"[object Object]"!==_F.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 OF(e){return"object"==typeof e&&(gP(e)||Array.isArray(e)||VF(e))}function zF(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 NF(e){if(Array.isArray(e))return zF(e);var t={};for(var n in e)EP.call(e,n)&&(t[n]=e[n]);return t}function TF(e,t,n){return IF(e,t,function(e){function t(n,r,i){return OF(n)&&OF(r)&&(o=r,a=AP(n),l=AP(o),TB(a)===TB(l)&&DB(a)===DB(l))?IF(n,[r],t):e?e(n,r,i):r;var o,a,l}return t}(n))}function IF(e,t,n){if(!OF(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(gP(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?FB:PB,a=r?function(t){i===e&&(i=NF(i)),i.push(t)}:function(t,r){var o=EP.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=NF(i)),i[r]=a)},l=0;l<t.length;l++)o(t[l]).forEach(a);return i}function DF(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return TF(this,e)}function ZF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return TF(this,t,e)}function jF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xU(this,e,cU(),function(e){return TF(e,t)})}function RF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xU(this,e,cU(),function(e){return IF(e,t)})}function BF(e,t,n){return xU(e,t,iP,function(){return n})}function PF(e,t){return BF(this,e,t)}function FF(e,t,n){return 1===arguments.length?e(this):LF(this,e,t,n)}function UF(e,t,n){return xU(this,e,t,n)}function qF(){return this.__altered}function WF(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}var QF="@@__IMMUTABLE_MAP__@@";function GF(e){return Boolean(e&&e[QF])}function KF(e,t){if(!e)throw new Error(t)}function YF(e){KF(e!==1/0,"Cannot perform this action with an infinite size.")}var XF=function(e){function t(t){return null==t?cU():GF(t)&&!yP(t)?t:cU().withMutations(function(n){var r=e(t);YF(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 dU(this,e,t)},t.prototype.remove=function(e){return dU(this,e,iP)},t.prototype.deleteAll=function(e){var t=BB(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):cU()},t.prototype.sort=function(e){return qU(pF(this,e))},t.prototype.sortBy=function(e,t){return qU(pF(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 oU(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?sU(this.size,this._root,e,this.__hash):0===this.size?cU():(this.__ownerID=e,this.__altered=!1,this)},t}(PB);XF.isMap=GF;var JF=XF.prototype;JF[QF]=!0,JF[tP]=JF.remove,JF.removeAll=JF.deleteAll,JF.setIn=PF,JF.removeIn=JF.deleteIn=HU,JF.update=FF,JF.updateIn=UF,JF.merge=JF.concat=kF,JF.mergeWith=HF,JF.mergeDeep=DF,JF.mergeDeepWith=ZF,JF.mergeIn=RF,JF.mergeDeepIn=jF,JF.withMutations=WF,JF.wasAltered=qF,JF.asImmutable=IP,JF["@@transducer/init"]=JF.asMutable=DP,JF["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},JF["@@transducer/result"]=function(e){return e.asImmutable()};var $F=function(e,t){this.ownerID=e,this.entries=t};$F.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(xF(n,i[o][0]))return i[o][1];return r},$F.prototype.update=function(e,t,n,r,i,o,a){for(var l=i===iP,s=this.entries,c=0,d=s.length;c<d&&!xF(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(oP(a),(l||!u)&&oP(o),!l||1!==s.length){if(!u&&!l&&s.length>=mU)return function(e,t,n,r){e||(e=new aP);for(var i=new rU(e,BP(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:zF(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 $F(e,h)}};var eU=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};eU.prototype.get=function(e,t,n,r){void 0===t&&(t=BP(n));var i=1<<((0===e?t:t>>>e)&rP),o=this.bitmap;return 0===(o&i)?r:this.nodes[pU(o&i-1)].get(e+5,t,n,r)},eU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=BP(r));var l=(0===t?n:n>>>t)&rP,s=1<<l,c=this.bitmap,d=0!==(c&s);if(!d&&i===iP)return this;var u=pU(c&s-1),f=this.nodes,h=d?f[u]:void 0,p=uU(h,e,t+5,n,r,i,o,a);if(p===h)return this;if(!d&&p&&f.length>=gU)return function(e,t,n,r,i){for(var o=0,a=new Array(nP),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[o++]:void 0;return a[r]=i,new tU(e,o+1,a)}(e,f,c,l,p);if(d&&!p&&2===f.length&&fU(f[1^u]))return f[1^u];if(d&&p&&1===f.length&&fU(p))return p;var C=e&&e===this.ownerID,m=d?p?c:c^s:c|s,g=d?p?CU(f,u,p,C):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,C):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,C);return C?(this.bitmap=m,this.nodes=g,this):new eU(e,m,g)};var tU=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};tU.prototype.get=function(e,t,n,r){void 0===t&&(t=BP(n));var i=(0===e?t:t>>>e)&rP,o=this.nodes[i];return o?o.get(e+5,t,n,r):r},tU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=BP(r));var l=(0===t?n:n>>>t)&rP,s=i===iP,c=this.nodes,d=c[l];if(s&&!d)return this;var u=uU(d,e,t+5,n,r,i,o,a);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<vU)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 eU(e,i,a)}(e,c,f,l)}else f++;var h=e&&e===this.ownerID,p=CU(c,l,u,h);return h?(this.count=f,this.nodes=p,this):new tU(e,f,p)};var nU=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};nU.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(xF(n,i[o][0]))return i[o][1];return r},nU.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=BP(r));var l=i===iP;if(n!==this.keyHash)return l?this:(oP(a),oP(o),hU(this,e,t,n,[r,i]));for(var s=this.entries,c=0,d=s.length;c<d&&!xF(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===i:l)return this;if(oP(a),(l||!u)&&oP(o),l&&2===d)return new rU(e,this.keyHash,s[1^c]);var f=e&&e===this.ownerID,h=f?s:zF(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 nU(e,this.keyHash,h)};var rU=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};rU.prototype.get=function(e,t,n,r){return xF(n,this.entry[0])?this.entry[1]:r},rU.prototype.update=function(e,t,n,r,i,o,a){var l=i===iP,s=xF(r,this.entry[0]);return(s?i===this.entry[1]:l)?this:(oP(a),l?void oP(o):s?e&&e===this.ownerID?(this.entry[1]=i,this):new rU(e,this.keyHash,[r,i]):(oP(o),hU(this,e,t,BP(r),[r,i])))},$F.prototype.iterate=nU.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},eU.prototype.iterate=tU.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}},rU.prototype.iterate=function(e,t){return e(this.entry)};var iU,oU=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&lU(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 aU(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return aU(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 aU(e,o.entry);t=this._stack=lU(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(GB);function aU(e,t){return KB(e,t[0],t[1])}function lU(e,t){return{node:e,index:0,__prev:t}}function sU(e,t,n,r){var i=Object.create(JF);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function cU(){return iU||(iU=sU(0))}function dU(e,t,n){var r,i;if(e._root){var o={value:!1},a={value:!1};if(r=uU(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===iP?-1:1:0)}else{if(n===iP)return e;i=1,r=new $F(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?sU(i,r):cU()}function uU(e,t,n,r,i,o,a,l){return e?e.update(t,n,r,i,o,a,l):o===iP?e:(oP(l),oP(a),new rU(t,r,[i,o]))}function fU(e){return e.constructor===rU||e.constructor===nU}function hU(e,t,n,r,i){if(e.keyHash===r)return new nU(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&rP,l=(0===n?r:r>>>n)&rP,s=a===l?[hU(e,t,n+5,r,i)]:(o=new rU(t,r,i),a<l?[e,o]:[o,e]);return new eU(t,1<<a|1<<l,s)}function pU(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function CU(e,t,n,r){var i=r?e:zF(e);return i[t]=n,i}var mU=8,gU=16,vU=8;function yU(e){if(MP(e)&&"string"!=typeof e)return e;if(yP(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function wU(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function bU(e,t){return gP(e)?e.has(t):OF(e)&&EP.call(e,t)}function EU(e,t,n){return gP(e)?e.get(t,n):bU(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function MU(e,t){if(!OF(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(gP(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!EP.call(e,t))return e;var n=NF(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function AU(e,t,n){if(!OF(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(gP(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(EP.call(e,t)&&n===e[t])return e;var r=NF(e);return r[t]=n,r}function xU(e,t,n,r){r||(r=n,n=void 0);var i=LU(gP(e),e,yU(t),0,n,r);return i===iP?n:i}function LU(e,t,n,r,i,o){var a=t===iP;if(r===n.length){var l=a?i:t,s=o(l);return s===l?t:s}if(!a&&!OF(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(n).slice(0,r).map(wU)+"]: "+t);var c=n[r],d=a?iP:EU(t,c,iP),u=LU(d===iP?e:gP(d),d,n,r+1,i,o);return u===d?t:u===iP?MU(t,c):AU(a?e?cU():{}:t,c,u)}function kU(e,t){return xU(e,t,function(){return iP})}function HU(e){return kU(this,e)}var SU="@@__IMMUTABLE_LIST__@@";function _U(e){return Boolean(e&&e[SU])}var VU=function(e){function t(t){var n=DU();if(null==t)return n;if(_U(t))return t;var r=e(t),i=r.size;return 0===i?n:(YF(i),i>0&&i<nP?IU(0,i,5,null,new zU(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=sP(this,e))>=0&&e<this.size){var n=RU(this,e+=this._origin);return n&&n.array[e&rP]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=sP(e,t),t!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?BU(e,t).set(0,n):BU(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o={value:!1};t>=PU(e._capacity)?r=ZU(r,e.__ownerID,0,t,n,o):i=ZU(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 IU(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):DU()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){BU(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return BU(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){BU(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return BU(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&&XB(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 BU(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 dP(e,t,n)?this:BU(this,uP(e,n),fP(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=TU(this,t);return new GB(function(){var i=r();return i===NU?{value:void 0,done:!0}:KB(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=TU(this,t);(n=i())!==NU&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?IU(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?DU():(this.__ownerID=e,this.__altered=!1,this)},t}(FB);VU.isList=_U;var OU=VU.prototype;OU[SU]=!0,OU[tP]=OU.remove,OU.merge=OU.concat,OU.setIn=PF,OU.deleteIn=OU.removeIn=HU,OU.update=FF,OU.updateIn=UF,OU.mergeIn=RF,OU.mergeDeepIn=jF,OU.withMutations=WF,OU.wasAltered=qF,OU.asImmutable=IP,OU["@@transducer/init"]=OU.asMutable=DP,OU["@@transducer/step"]=function(e,t){return e.push(t)},OU["@@transducer/result"]=function(e){return e.asImmutable()};var zU=function(e,t){this.array=e,this.ownerID=t};zU.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+5)-1)||0===this.array.length)return this;var r=n>>>t&rP;if(r>=this.array.length)return new zU([],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=jU(this,e);if(!o)for(var s=0;s<r;s++)l.array[s]=void 0;return i&&(l.array[r]=i),l},zU.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+5:nP)||0===this.array.length)return this;var r,i=n-1>>>t&rP;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=jU(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var NU={};function TU(e,t){var n=e._origin,r=e._capacity,i=PU(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>nP&&(c=nP);return function(){if(s===c)return NU;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>nP&&(d=nP);return function(){for(;;){if(l){var e=l();if(e!==NU)return e;l=null}if(c===d)return NU;var n=t?--d:c++;l=a(s&&s[n],i-5,o+(n<<i))}}}(e,l,s)}}function IU(e,t,n,r,i,o,a){var l=Object.create(OU);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 DU(){return IU(0,0,5)}function ZU(e,t,n,r,i,o){var a,l=r>>>n&rP,s=e&&l<e.array.length;if(!s&&void 0===i)return e;if(n>0){var c=e&&e.array[l],d=ZU(c,t,n-5,r,i,o);return d===c?e:((a=jU(e,t)).array[l]=d,a)}return s&&e.array[l]===i?e:(o&&oP(o),a=jU(e,t),void 0===i&&l===a.array.length-1?a.array.pop():a.array[l]=i,a)}function jU(e,t){return t&&e&&t===e.ownerID?e:new zU(e?e.array.slice():[],t)}function RU(e,t){if(t>=PU(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&rP],r-=5;return n}}function BU(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new aP,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 zU(c&&c.array.length?[void 0,c]:[],r),d+=1<<(s+=5);d&&(a+=d,i+=d,l+=d,o+=d);for(var u=PU(o),f=PU(l);f>=1<<s+5;)c=new zU(c&&c.array.length?[c]:[],r),s+=5;var h=e._tail,p=f<u?RU(e,l-1):f>u?new zU([],r):h;if(h&&f>u&&a<o&&h.array.length){for(var C=c=jU(c,r),m=s;m>5;m-=5){var g=u>>>m&rP;C=C.array[g]=jU(C.array[g],r)}C.array[u>>>5&rP]=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&rP;if(v!==f>>>s&rP)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):IU(a,l,s,c,p)}function PU(e){return e<nP?0:e-1>>>5<<5}function FU(e){return GF(e)&&yP(e)}var UU,qU=function(e){function t(e){return null==e?QU():FU(e)?e:QU().withMutations(function(t){var n=PB(e);YF(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):QU()},t.prototype.set=function(e,t){return GU(this,e,t)},t.prototype.remove=function(e){return GU(this,e,iP)},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?WU(t,n,e,this.__hash):0===this.size?QU():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(XF);function WU(e,t,n,r){var i=Object.create(qU.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 QU(){return UU||(UU=WU(cU(),DU()))}function GU(e,t,n){var r,i,o=e._map,a=e._list,l=o.get(t),s=void 0!==l;if(n===iP){if(!s)return e;a.size>=nP&&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):WU(r,i)}qU.isOrderedMap=FU,qU.prototype[vP]=!0,qU.prototype[tP]=qU.prototype.remove;var KU="@@__IMMUTABLE_STACK__@@";function YU(e){return Boolean(e&&e[KU])}var XU=function(e){function t(e){return null==e?tq():YU(e)?e:tq().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=sP(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):eq(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&YU(t))return t;YF(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):eq(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):tq()},t.prototype.slice=function(t,n){if(dP(t,n,this.size))return this;var r=uP(t,this.size);if(fP(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):eq(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?eq(this.size,this._head,e,this.__hash):0===this.size?tq():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new HP(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 HP(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new GB(function(){if(r){var t=r.value;return r=r.next,KB(e,n++,t)}return{value:void 0,done:!0}})},t}(FB);XU.isStack=YU;var JU,$U=XU.prototype;function eq(e,t,n,r){var i=Object.create($U);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function tq(){return JU||(JU=eq(0))}function nq(e,t,n,r,i,o){return YF(e.size),e.__iterate(function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)},o),n}function rq(e,t){return t}function iq(e,t){return[t,e]}function oq(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function aq(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function lq(e,t){return e<t?1:e>t?-1:0}function sq(e,t){if(e===t)return!0;if(!RB(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||DB(e)!==DB(t)||TB(e)!==TB(t)||yP(e)!==yP(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!ZB(e);if(yP(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&xF(i[1],e)&&(n||xF(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?!xF(t,e.get(r,iP)):!xF(e.get(r,iP),t))return a=!1,!1});return a&&e.size===l}$U[KU]=!0,$U.shift=$U.pop,$U.unshift=$U.push,$U.unshiftAll=$U.pushAll,$U.withMutations=WF,$U.wasAltered=qF,$U.asImmutable=IP,$U["@@transducer/init"]=$U.asMutable=DP,$U["@@transducer/step"]=function(e,t){return e.unshift(t)},$U["@@transducer/result"]=function(e){return e.asImmutable()};var cq,dq=function(e){function t(e,n,r){if(void 0===r&&(r=1),!(this instanceof t))return new t(e,n,r);if(KF(0!==r,"Cannot step a Range by 0"),KF(void 0!==e,"You must define a start value when using Range"),KF(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(cq)return cq;cq=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+sP(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 dP(e,n,this.size)?this:(e=uP(e,this.size),(n=fP(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 GB(function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,KB(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:sq(this,e)},t}(LP),uq="@@__IMMUTABLE_SET__@@";function fq(e){return Boolean(e&&e[uq])}var hq=function(e){function t(t){return null==t?vq():fq(t)&&!yP(t)?t:vq().withMutations(function(n){var r=e(t);YF(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(PB(e).keySeq())},t.intersect=function(e){return(e=BB(e).toArray()).length?Cq.intersect.apply(t(e.pop()),e):vq()},t.union=function(e){return(e=BB(e).toArray()).length?Cq.union.apply(t(e.pop()),e):vq()},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 zq(pF(this,e))},t.prototype.sortBy=function(e,t){return zq(pF(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}(UB);hq.isSet=fq;var pq,Cq=hq.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 gq(e,t){var n=Object.create(Cq);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function vq(){return pq||(pq=gq(cU()))}function yq(e,t,n){for(var r=yU(t),i=0;i!==r.length;)if((e=EU(e,r[i++],iP))===iP)return n;return e}function wq(e,t){return yq(this,e,t)}function bq(e,t){return yq(e,t,iP)!==iP}function Eq(){YF(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}function Mq(e){if(!e||"object"!=typeof e)return e;if(!RB(e)){if(!OF(e))return e;e=AP(e)}if(DB(e)){var t={};return e.__iterate(function(e,n){t[n]=Mq(e)}),t}var n=[];return e.__iterate(function(e){n.push(Mq(e))}),n}function Aq(e){if(e.size===1/0)return 0;var t=yP(e),n=DB(e),r=t?1:0;return e.__iterate(n?t?function(e,t){r=31*r+xq(BP(e),BP(t))|0}:function(e,t){r=r+xq(BP(e),BP(t))|0}:t?function(e){r=31*r+BP(e)|0}:function(e){r=r+BP(e)|0}),function(e,t){return t=ZP(t,3432918353),t=ZP(t<<15|t>>>-15,461845907),t=ZP(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=ZP(t^t>>>16,2246822507),t=ZP(t^t>>>13,3266489909),t=jP(t^t>>>16),t}(e.size,r)}function xq(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function Lq(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}Cq[uq]=!0,Cq[tP]=Cq.remove,Cq.merge=Cq.concat=Cq.union,Cq.withMutations=WF,Cq.asImmutable=IP,Cq["@@transducer/init"]=Cq.asMutable=DP,Cq["@@transducer/step"]=function(e,t){return e.add(t)},Cq["@@transducer/result"]=function(e){return e.asImmutable()},Cq.__empty=vq,Cq.__make=gq,BB.Iterator=GB,Lq(BB,{toArray:function(){YF(this.size);var e=new Array(this.size||0),t=DB(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new rF(this)},toJS:function(){return Mq(this)},toKeyedSeq:function(){return new nF(this,!0)},toMap:function(){return XF(this.toKeyedSeq())},toObject:Eq,toOrderedMap:function(){return qU(this.toKeyedSeq())},toOrderedSet:function(){return zq(DB(this)?this.valueSeq():this)},toSet:function(){return hq(DB(this)?this.valueSeq():this)},toSetSeq:function(){return new iF(this)},toSeq:function(){return TB(this)?this.toIndexedSeq():DB(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return XU(DB(this)?this.valueSeq():this)},toList:function(){return VU(DB(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 vF(this,function(e,t){var n=DB(e),r=[e].concat(t).map(function(e){return RB(e)?n&&(e=PB(e)):e=n?zP(e):NP(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&&DB(i)||TB(e)&&TB(i))return i}return new fF(r)}(this,e))},includes:function(e){return this.some(function(t){return xF(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){YF(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 vF(this,cF(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=DB(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)});var o=wF(e);return i.map(function(t){return vF(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 YF(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){YF(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 vF(this,lF(this,e,t))},reduce:function(e,t,n){return nq(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return nq(this,e,t,n,arguments.length<2,!0)},reverse:function(){return vF(this,sF(this,!0))},slice:function(e,t){return vF(this,dF(this,e,t,!0))},some:function(e,t){YF(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 vF(this,pF(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 lP(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=XF().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 sq(this,e)},entrySeq:function(){var e=this;if(e._cache)return new HP(e._cache);var t=e.toSeq().map(iq).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(oq(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(cP,null,e)},flatMap:function(e,t){return vF(this,function(e,t,n){var r=wF(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 vF(this,hF(this,e,!0))},fromEntrySeq:function(){return new oF(this)},get:function(e,t){return this.find(function(t,n){return xF(n,e)},void 0,t)},getIn:wq,groupBy:function(e,t){return function(e,t,n){var r=DB(e),i=(yP(e)?qU():XF()).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=wF(e);return i.map(function(t){return vF(e,o(t))}).asImmutable()}(this,e,t)},has:function(e){return this.get(e,iP)!==iP},hasIn:function(e){return bq(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:BB(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:BB(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return xF(t,e)})},keySeq:function(){return this.toSeq().map(rq).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return CF(this,e)},maxBy:function(e,t){return CF(this,t,e)},min:function(e){return CF(this,e?aq(e):lq)},minBy:function(e,t){return CF(this,t?aq(t):lq,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 vF(this,uF(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(oq(e),t)},sortBy:function(e,t){return vF(this,pF(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 vF(this,function(e,t,n){var r=bF(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 GB(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:KB(r,s,c,e):(l=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(oq(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Aq(this))}});var kq=BB.prototype;kq[jB]=!0,kq[QB]=kq.values,kq.toJSON=kq.toArray,kq.__toStringMapper=wU,kq.inspect=kq.toSource=function(){return this.toString()},kq.chain=kq.flatMap,kq.contains=kq.includes,Lq(PB,{flip:function(){return vF(this,aF(this))},mapEntries:function(e,t){var n=this,r=0;return vF(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return vF(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Hq=PB.prototype;Hq[IB]=!0,Hq[QB]=kq.entries,Hq.toJSON=Eq,Hq.__toStringMapper=function(e,t){return wU(t)+": "+wU(e)},Lq(FB,{toKeyedSeq:function(){return new nF(this,!1)},filter:function(e,t){return vF(this,cF(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 vF(this,sF(this,!1))},slice:function(e,t){return vF(this,dF(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=uP(e,e<0?this.count():this.size);var r=this.slice(0,e);return vF(this,1===n?r:r.concat(zF(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 vF(this,hF(this,e,!1))},get:function(e,t){return(e=sP(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=sP(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return vF(this,function(e,t){var n=bF(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 GB(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?KB(n,a++,t):KB(n,a++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(zF(arguments)),t=gF(this.toSeq(),LP.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),vF(this,n)},keySeq:function(){return dq(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return vF(this,uF(this,e,t,!1))},zip:function(){return vF(this,gF(this,Vq,[this].concat(zF(arguments))))},zipAll:function(){return vF(this,gF(this,Vq,[this].concat(zF(arguments)),!0))},zipWith:function(e){var t=zF(arguments);return t[0]=this,vF(this,gF(this,e,t))}});var Sq=FB.prototype;Sq[NB]=!0,Sq[vP]=!0,Lq(UB,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var _q=UB.prototype;function Vq(){return zF(arguments)}function Oq(e){return fq(e)&&yP(e)}_q.has=kq.includes,_q.contains=_q.includes,_q.keys=_q.values,Lq(xP,Hq),Lq(LP,Sq),Lq(kP,_q);var zq=function(e){function t(e){return null==e?Dq():Oq(e)?e:Dq().withMutations(function(t){var n=UB(e);YF(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(PB(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(hq);zq.isOrderedSet=Oq;var Nq,Tq=zq.prototype;function Iq(e,t){var n=Object.create(Tq);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Dq(){return Nq||(Nq=Iq(QU()))}Tq[vP]=!0,Tq.zip=Sq.zip,Tq.zipWith=Sq.zipWith,Tq.zipAll=Sq.zipAll,Tq.__empty=Dq,Tq.__make=Iq;var Zq=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(gP(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 "+Bq(this)+' with property "'+d+'" since that property name is part of the Record API.'):Fq(i,d)}}return this.__ownerID=void 0,this._values=VU().withMutations(function(e){e.setSize(a._keys.length),PB(o).forEach(function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(jq);return i.constructor=r,t&&(r.displayName=t),r};Zq.prototype.toString=function(){for(var e,t=Bq(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+wU(this.get(e));return t+" }"},Zq.prototype.equals=function(e){return this===e||mP(e)&&Pq(this).equals(Pq(e))},Zq.prototype.hashCode=function(){return Pq(this).hashCode()},Zq.prototype.has=function(e){return this._indices.hasOwnProperty(e)},Zq.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},Zq.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 Rq(this,n)}return this},Zq.prototype.remove=function(e){return this.set(e)},Zq.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Rq(this,e)},Zq.prototype.wasAltered=function(){return this._values.wasAltered()},Zq.prototype.toSeq=function(){return Pq(this)},Zq.prototype.toJS=function(){return Mq(this)},Zq.prototype.entries=function(){return this.__iterator(2)},Zq.prototype.__iterator=function(e,t){return Pq(this).__iterator(e,t)},Zq.prototype.__iterate=function(e,t){return Pq(this).__iterate(e,t)},Zq.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?Rq(this,t,e):(this.__ownerID=e,this._values=t,this)},Zq.isRecord=mP,Zq.getDescriptiveName=Bq;var jq=Zq.prototype;function Rq(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function Bq(e){return e.constructor.displayName||e.constructor.name||"Record"}function Pq(e){return zP(e._keys.map(function(t){return[t,e.get(t)]}))}function Fq(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){KF(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}jq[CP]=!0,jq[tP]=jq.remove,jq.deleteIn=jq.removeIn=HU,jq.getIn=wq,jq.hasIn=kq.hasIn,jq.merge=kF,jq.mergeWith=HF,jq.mergeIn=RF,jq.mergeDeep=DF,jq.mergeDeepWith=ZF,jq.mergeDeepIn=jF,jq.setIn=PF,jq.update=FF,jq.updateIn=UF,jq.withMutations=WF,jq.asMutable=DP,jq.asImmutable=IP,jq[QB]=jq.entries,jq.toJSON=jq.toObject=kq.toObject,jq.inspect=jq.toSource=function(){return this.toString()};var Uq,qq=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(Uq)return Uq;Uq=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 xF(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return dP(e,n,r)?this:new t(this._value,fP(n,r)-uP(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return xF(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return xF(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 GB(function(){return i===r?{value:void 0,done:!0}:KB(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?xF(this._value,e._value):sq(this,e)},t}(LP);function Wq(e,t,n,r,i,o){if("string"!=typeof n&&!gP(n)&&(MP(n)||XB(n)||VF(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,AP(n).map(function(r,o){return Wq(e,t,r,o,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function Qq(e,t){return TB(t)?t.toList():DB(t)?t.toMap():t.toSet()}var Gq,Kq=BB,Yq=S(Object.freeze({__proto__:null,Collection:BB,Iterable:Kq,List:VU,Map:XF,OrderedMap:qU,OrderedSet:zq,PairSorting:{LeftThenRight:-1,RightThenLeft:1},Range:dq,Record:Zq,Repeat:qq,Seq:AP,Set:hq,Stack:XU,fromJS:function(e,t){return Wq([],t||Qq,e,"",t&&t.length>2?[]:void 0,{"":e})},get:EU,getIn:yq,has:bU,hasIn:bq,hash:BP,is:xF,isAssociative:ZB,isCollection:RB,isImmutable:gP,isIndexed:TB,isKeyed:DB,isList:_U,isMap:GF,isOrdered:yP,isOrderedMap:FU,isOrderedSet:Oq,isPlainObject:VF,isRecord:mP,isSeq:bP,isSet:fq,isStack:YU,isValueObject:AF,merge:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return IF(e,t)},mergeDeep:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return TF(e,t)},mergeDeepWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return TF(t,n,e)},mergeWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return IF(t,n,e)},remove:MU,removeIn:kU,set:AU,setIn:BF,update:LF,updateIn:xU,version:"5.1.4"}));var Xq=(Gq||(Gq=1,window,zB.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