pixel-react 1.22.6 → 1.22.7
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/components/InsightCard/index.d.ts +1 -1
- package/lib/components/InsightCard/index.js +1 -1
- package/lib/components/InsightCard/index.js.map +1 -1
- package/lib/components/MetricCard/MetricCard.d.ts +1 -0
- package/lib/components/MetricCard/MetricCard.js +1 -0
- package/lib/components/MetricCard/MetricCard.js.map +1 -1
- package/lib/components/MetricCard/index.d.ts +1 -1
- package/lib/components/MetricCard/index.js +1 -1
- package/lib/components/MetricCard/index.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepInnerTable.d.ts +1 -1
- package/lib/components/StepsLandingTable/Components/StepInnerTable.js +8 -5
- package/lib/components/StepsLandingTable/Components/StepInnerTable.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepTableMainRow.js +72 -5
- package/lib/components/StepsLandingTable/Components/StepTableMainRow.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/Types.d.ts +14 -0
- package/lib/components/StepsLandingTable/StepLandingTable.js +13 -10
- package/lib/components/StepsLandingTable/StepLandingTable.js.map +1 -1
- package/lib/components/StepsLandingTable/constant.d.ts +222 -44
- package/lib/components/StepsLandingTable/constant.js +171 -661
- package/lib/components/StepsLandingTable/constant.js.map +1 -1
- package/lib/components/StepsLandingTable/types.d.ts +7 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +1 -1
- package/lib/styles.css +1 -1
- package/package.json +1 -1
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 a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var o=i.apply(null,r);o&&e.push(o)}else if("object"===a)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,a=/^0o[0-7]+$/i,o=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,s=l||c||Function("return this")(),d=Object.prototype.toString,u=s.Symbol,f=u?u.prototype:void 0,h=f?f.toString:void 0;function C(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 p(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 A(e){return e?(e=function(e){if("number"==typeof e)return e;if(m(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||a.test(e)?o(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,a;return e=null==(r=e)?"":C(r),i=function(e){var t=A(e),n=t%1;return t==t?n?t-n:t:0}(n),a=e.length,i==i&&(void 0!==a&&(i=i<=a?i:a),i=i>=0?i:0),n=i,t=C(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,a="object"==typeof self&&self&&self.Object===Object&&self,o=i||a||Function("return this")(),l=Array.prototype,c=Function.prototype,s=Object.prototype,d=o["__core-js_shared__"],u=(n=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",f=c.toString,h=s.hasOwnProperty,C=s.toString,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=l.splice,A=L(o,"Map"),g=L(Object,"create");function v(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 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 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 b(e){return!(!x(e)||(t=e,u&&u in t))&&(function(e){var t=x(e)?C.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)?p:r).test(function(e){if(null!=e){try{return f.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function M(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 L(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return b(n)?n:void 0}function H(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],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(H.Cache||y),n}function x(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}v.prototype.clear=function(){this.__data__=g?g(null):{}},v.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},v.prototype.get=function(e){var t=this.__data__;if(g){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return h.call(t,e)?t[e]:void 0},v.prototype.has=function(e){var t=this.__data__;return g?void 0!==t[e]:h.call(t,e)},v.prototype.set=function(e,t){return this.__data__[e]=g&&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},y.prototype.clear=function(){this.__data__={hash:new v,map:new(A||w),string:new v}},y.prototype.delete=function(e){return M(this,e).delete(e)},y.prototype.get=function(e){return M(this,e).get(e)},y.prototype.has=function(e){return M(this,e).has(e)},y.prototype.set=function(e,t){return M(this,e).set(e,t),this},H.Cache=y,e.exports=H}).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,a=/^0o[0-7]+$/i,o=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,s=l||c||Function("return this")(),d=Object.prototype.toString,u=Math.max,f=Math.min,h=function(){return s.Date.now()};function C(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(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(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||a.test(e)?o(e.slice(2),l?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,a,o,l,c,s=0,d=!1,m=!1,A=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,a=i;return r=i=void 0,s=t,o=e.apply(a,n)}function v(e){var n=e-c;return void 0===c||n>=t||n<0||m&&e-s>=a}function w(){var e=h();if(v(e))return y(e);l=setTimeout(w,function(e){var n=t-(e-c);return m?f(n,a-(e-s)):n}(e))}function y(e){return l=void 0,A&&r?g(e):(r=i=void 0,o)}function E(){var e=h(),n=v(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return function(e){return s=e,l=setTimeout(w,t),d?g(e):o}(c);if(m)return l=setTimeout(w,t),g(c)}return void 0===l&&(l=setTimeout(w,t)),o}return t=p(t)||0,C(n)&&(d=!!n.leading,a=(m="maxWait"in n)?u(p(n.maxWait)||0,t):a,A="trailing"in n?!!n.trailing:A),E.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=c=i=l=void 0},E.flush=function(){return void 0===l?o:y(h())},E}}).call(this,n(3))},function(e,t,n){(function(e,n){var r="[object Arguments]",i="[object Map]",a="[object Object]",o="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,s=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[r]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object Boolean]"]=C["[object DataView]"]=C["[object Date]"]=C["[object Error]"]=C["[object Function]"]=C[i]=C["[object Number]"]=C[a]=C["[object RegExp]"]=C[o]=C["[object String]"]=C["[object WeakMap]"]=!1;var p="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,A=p||m||Function("return this")(),g=t&&!t.nodeType&&t,v=g&&"object"==typeof n&&n&&!n.nodeType&&n,w=v&&v.exports===g&&p.process,y=function(){try{return w&&w.binding("util")}catch(e){}}(),E=y&&y.isTypedArray;function b(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function M(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function L(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function x(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var k,S,Z,O=Array.prototype,z=Function.prototype,I=Object.prototype,N=A["__core-js_shared__"],D=(k=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",T=z.toString,F=I.hasOwnProperty,R=I.toString,B=RegExp("^"+T.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=A.Symbol,P=A.Uint8Array,U=I.propertyIsEnumerable,q=O.splice,W=(S=Object.keys,Z=Object,function(e){return S(Z(e))}),X=ye(A,"DataView"),Q=ye(A,"Map"),G=ye(A,"Promise"),K=ye(A,"Set"),Y=ye(A,"WeakMap"),_=ye(Object,"create"),J=ke(X),$=ke(Q),ee=ke(G),te=ke(K),ne=ke(Y),re=j?j.prototype:void 0,ie=re?re.valueOf:void 0,ae=re?re.toString:void 0;function oe(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 ce(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.__data__=new ce;++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(Ze(e[n][0],t))return n;return-1}oe.prototype.clear=function(){this.__data__=_?_(null):{}},oe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},oe.prototype.get=function(e){var t=this.__data__;if(_){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return F.call(t,e)?t[e]:void 0},oe.prototype.has=function(e){var t=this.__data__;return _?void 0!==t[e]:F.call(t,e)},oe.prototype.set=function(e,t){return this.__data__[e]=_&&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():q.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},ce.prototype.clear=function(){this.__data__={hash:new oe,map:new(Q||le),string:new oe}},ce.prototype.delete=function(e){return we(this,e).delete(e)},ce.prototype.get=function(e){return we(this,e).get(e)},ce.prototype.has=function(e){return we(this,e).has(e)},ce.prototype.set=function(e,t){return we(this,e).set(e,t),this},se.prototype.add=se.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},se.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 ce(r)}return n.set(e,t),this};var fe,he=(fe=function(e,t){return e&&Ce(e,t,je)},function(e,t){if(null==e)return e;if(!Ie(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}),Ce=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var l=a[++r];if(!1===t(i[l],l,i))break}return e};function pe(e,t){for(var n=0,r=(t=Me(t,e)?[t]:ge(t)).length;null!=e&&n<r;)e=e[Ve(t[n++])];return n&&n==r?e:void 0}function me(e,t){return null!=e&&t in Object(e)}function Ae(e,t,n,l,c){return e===t||(null==e||null==t||!Te(e)&&!Fe(t)?e!=e&&t!=t:function(e,t,n,l,c,s){var d=ze(e),u=ze(t),f="[object Array]",h="[object Array]";d||(f=(f=Ee(e))==r?a:f),u||(h=(h=Ee(t))==r?a:h);var C=f==a&&!H(e),p=h==a&&!H(t),m=f==h;if(m&&!C)return s||(s=new de),d||Be(e)?ve(e,t,n,l,c,s):function(e,t,n,r,a,l,c){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 Ze(+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 s=x;case o:var d=2&l;if(s||(s=V),e.size!=t.size&&!d)return!1;var u=c.get(e);if(u)return u==t;l|=1,c.set(e,t);var f=ve(s(e),s(t),r,a,l,c);return c.delete(e),f;case"[object Symbol]":if(ie)return ie.call(e)==ie.call(t)}return!1}(e,t,f,n,l,c,s);if(!(2&c)){var A=C&&F.call(e,"__wrapped__"),g=p&&F.call(t,"__wrapped__");if(A||g){var v=A?e.value():e,w=g?t.value():t;return s||(s=new de),n(v,w,l,c,s)}}return!!m&&(s||(s=new de),function(e,t,n,r,i,a){var o=2&i,l=je(e),c=l.length;if(c!=je(t).length&&!o)return!1;for(var s=c;s--;){var d=l[s];if(!(o?d in t:F.call(t,d)))return!1}var u=a.get(e);if(u&&a.get(t))return u==t;var f=!0;a.set(e,t),a.set(t,e);for(var h=o;++s<c;){var C=e[d=l[s]],p=t[d];if(r)var m=o?r(p,C,d,t,e,a):r(C,p,d,e,t,a);if(!(void 0===m?C===p||n(C,p,r,i,a):m)){f=!1;break}h||(h="constructor"==d)}if(f&&!h){var A=e.constructor,g=t.constructor;A==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof g&&g instanceof g||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,l,c,s))}(e,t,Ae,n,l,c))}function ge(e){return ze(e)?e:xe(e)}function ve(e,t,n,r,i,a){var o=2&i,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var d=-1,u=!0,f=1&i?new se:void 0;for(a.set(e,t),a.set(t,e);++d<l;){var h=e[d],C=t[d];if(r)var p=o?r(C,h,d,t,e,a):r(h,C,d,e,t,a);if(void 0!==p){if(p)continue;u=!1;break}if(f){if(!M(t,function(e,t){if(!f.has(t)&&(h===e||n(h,e,r,i,a)))return f.add(t)})){u=!1;break}}else if(h!==C&&!n(h,C,r,i,a)){u=!1;break}}return a.delete(e),a.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 ye(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Te(e)||function(e){return!!D&&D in e}(e))&&(Ne(e)||H(e)?B:f).test(ke(e))}(n)?n:void 0}var Ee=function(e){return R.call(e)};function be(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||h.test(e))&&e>-1&&e%1==0&&e<t}function Me(e,t){if(ze(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Re(e))||c.test(e)||!l.test(e)||null!=t&&e in Object(t)}function Le(e){return e==e&&!Te(e)}function He(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(X&&"[object DataView]"!=Ee(new X(new ArrayBuffer(1)))||Q&&Ee(new Q)!=i||G&&"[object Promise]"!=Ee(G.resolve())||K&&Ee(new K)!=o||Y&&"[object WeakMap]"!=Ee(new Y))&&(Ee=function(e){var t=R.call(e),n=t==a?e.constructor:void 0,r=n?ke(n):void 0;if(r)switch(r){case J:return"[object DataView]";case $:return i;case ee:return"[object Promise]";case te:return o;case ne:return"[object WeakMap]"}return t});var xe=Se(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Re(e))return ae?ae.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return s.test(e)&&n.push(""),e.replace(d,function(e,t,r,i){n.push(r?i.replace(u,"$1"):t||e)}),n});function Ve(e){if("string"==typeof e||Re(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ke(e){if(null!=e){try{return T.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Se(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],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Se.Cache||ce),n}function Ze(e,t){return e===t||e!=e&&t!=t}function Oe(e){return function(e){return Fe(e)&&Ie(e)}(e)&&F.call(e,"callee")&&(!U.call(e,"callee")||R.call(e)==r)}Se.Cache=ce;var ze=Array.isArray;function Ie(e){return null!=e&&De(e.length)&&!Ne(e)}function Ne(e){var t=Te(e)?R.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Te(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Fe(e){return!!e&&"object"==typeof e}function Re(e){return"symbol"==typeof e||Fe(e)&&"[object Symbol]"==R.call(e)}var Be=E?function(e){return function(t){return e(t)}}(E):function(e){return Fe(e)&&De(e.length)&&!!C[R.call(e)]};function je(e){return Ie(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)!F.call(e,i)||r&&("length"==i||be(i,n))||t.push(i);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||I))return W(e);var t,n,r=[];for(var i in Object(e))F.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)?b:L,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 Me(e)&&Le(t)?He(Ve(e),t):function(n){var r=function(e,t){var n=null==e?void 0:pe(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,a=(t=Me(t,e)?[t]:ge(t)).length;++i<a;){var o=Ve(t[i]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||!!(a=e?e.length:0)&&De(a)&&be(o,a)&&(ze(e)||Oe(e))}(e,t,me)}(n,e):Ae(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=je(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Le(i)]}return t}(e);return 1==t.length&&t[0][2]?He(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 a=n[r];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){var o=(a=n[r])[0],l=e[o],c=a[1];if(a[2]){if(void 0===l&&!(o in e))return!1}else if(!Ae(c,l,void 0,3,new de))return!1}return!0}(n,0,t)}}(e):Me(t=e)?(n=Ve(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return pe(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 a(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 o(e){if(Array.isArray(e))return e}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(e){return s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":s(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 C=n(0),p=n.n(C),m=n(5),A=n.n(m),g=n(4),v=n.n(g),w=n(6),y=n.n(w),E=n(2),b=n.n(E),M=n(1),L=n.n(M);function H(e,t){return o(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw a}}return n}(e,t)||l()}n(8);var x=[["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"]],V=[["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 k(e,t,n,r,i){return!n||i?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n}function S(e,t,n,i,o){var l,c,s=[];return c=!0===t,[(l=[]).concat.apply(l,a(e.map(function(e){var a={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:k(n,e[3],e[4],i,o),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}({},a);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,l.push(n)}),l.length>0?(a.mainCode=!0,c||"Array"===t.constructor.name&&t.includes(e[2])?(a.hasAreaCodes=!0,[a].concat(l)):(s=s.concat(l),[a])):[a]}))),s]}function Z(e,t,n,r){if(null!==n){var i=Object.keys(n),a=Object.values(n);i.forEach(function(n,i){if(r)return e.push([n,a[i]]);var o=e.findIndex(function(e){return e[0]===n});if(-1===o){var l=[n];l[t]=a[i],e.push(l)}else e[o][t]=a[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,o,l,s,d,u,f,h,C,p,m){c(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(a(e),a(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 A=function(e,t,n){var r=[];return Z(r,1,e,!0),Z(r,3,t),Z(r,2,n),r}(d,u,f),g=O(JSON.parse(JSON.stringify(x)),A),v=O(JSON.parse(JSON.stringify(V)),A),w=H(S(g,t,C,p,m),2),y=w[0],E=w[1];if(n){var b=H(S(v,t,C,p,m),2),M=b[0];b[1],y=this.sortTerritories(M,y)}r&&(y=this.filterRegions(r,y)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(i,y,s.includes("onlyCountries")),l),h,s.includes("onlyCountries")),this.preferredCountries=0===o.length?[]:this.localizeCountries(this.getFilteredCountryList(o,y,s.includes("preferredCountries")),h,s.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(i,E),l)},I=function(e){function t(e){var n;c(this,t),(n=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?u(e):t}(this,f(t).call(this,e))).getProbableCandidate=v()(function(e){return e&&0!==e.length?n.state.onlyCountries.filter(function(t){return b()(t.name.toLowerCase(),e.toLowerCase())},u(u(n)))[0]:null}),n.guessSelectedCountry=v()(function(e,t,r,i){var a;if(!1===n.props.enableAreaCodes&&(i.some(function(t){if(b()(e,t.dialCode))return r.some(function(e){if(t.iso2===e.iso2&&e.mainCode)return a=e,!0}),!0}),a))return a;var o=r.find(function(e){return e.iso2==t});if(""===e.trim())return o;var l=r.reduce(function(t,n){if(b()(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:o}),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,a=r.getBoundingClientRect().top+document.body.scrollTop,o=a+i,l=e,c=l.getBoundingClientRect(),s=l.offsetHeight,d=c.top+document.body.scrollTop,u=d+s,f=d-a+r.scrollTop,h=i/2-s/2;if(n.props.enableSearch?d<a+32:d<a)t&&(f-=h),r.scrollTop=f;else if(u>o){t&&(f+=h);var C=i-s;r.scrollTop=f-C}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var r,a=t.format,c=n.props,s=c.disableCountryCode,d=c.enableAreaCodeStretch,u=c.enableLongNumbers,f=c.autoFormat;if(s?((r=a.split(" ")).shift(),r=r.join(" ")):d&&t.isAreaCode?((r=a.split(" "))[1]=r[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),r=r.join(" ")):r=a,!e||0===e.length)return s?"":n.props.prefix;if(e&&e.length<2||!r||!f)return s?e:n.props.prefix+e;var h,C=y()(r,function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,r=o(n=e.remainingText)||i(n)||l(),a=r[0],c=r.slice(1);return{formattedText:e.formattedText+a,remainingText:c}},{formattedText:"",remainingText:e.split("")});return(h=u?C.formattedText+C.remainingText.join(""):C.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,a=t.selectedCountry,o=n.concatPreferredCountries(r,i).findIndex(function(e){return e.dialCode===a.dialCode&&e.iso2===a.iso2});n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:o},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,a=r.onChange,o=n.props.disableCountryCode?"":i,l=n.state.selectedCountry,c=n.state.freezeSelection;if(!n.props.countryCodeEditable){var s=i+(l.hasAreaCodes?n.state.onlyCountries.find(function(e){return e.iso2===l.iso2&&e.mainCode}).dialCode:l.dialCode);if(t.slice(0,s.length)!==s)return}if(t===i)return a&&a("",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,C=u.hiddenAreaCodes;if(a&&e.persist(),t.length>0){var p=t.replace(/\D/g,"");(!n.state.freezeSelection||h&&h.dialCode.length>p.length)&&(l=n.props.disableCountryGuess?h:n.guessSelectedCountry(p.substring(0,6),d,f,C)||h,c=!1),o=n.formatNumber(p,l),l=l.dialCode?l:h}var m=e.target.selectionStart,A=e.target.selectionStart,g=n.state.formattedNumber,v=o.length-g.length;n.setState({formattedNumber:o,freezeSelection:c,selectedCountry:l},function(){v>0&&(A-=v),")"==o.charAt(o.length-1)?n.numberInputRef.setSelectionRange(o.length-1,o.length-1):A>0&&g.length>=o.length?n.numberInputRef.setSelectionRange(A,A):m<g.length&&n.numberInputRef.setSelectionRange(m,m),a&&a(o.replace(/[^0-9]+/g,""),n.getCountryData(),e,o)})}},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 a=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),o=a.length>1?a.replace(r.dialCode,i.dialCode):i.dialCode,l=n.formatNumber(o.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(a(n.state.preferredCountries),a(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,a=t.onKeyDown;e.which===r.ENTER&&i&&i(e),a&&a(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,a=r.selectedCountry,o=0;if(""===t&&a){var l=n.state.onlyCountries;o=n.concatPreferredCountries(i,l).findIndex(function(e){return e==a}),setTimeout(function(){return n.scrollTo(n.getElement(o))},100)}n.setState({searchValue:t,highlightCountryIndex:o})},n.concatPreferredCountries=function(e,t){return e.length>0?a(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,o=n.props.enableSearch,l=n.concatPreferredCountries(t,r),c=i.trim().toLowerCase().replace("+","");if(o&&c){if(/^\d+$/.test(c))return l.filter(function(e){var t=e.dialCode;return["".concat(t)].some(function(e){return e.toLowerCase().includes(c)})});var s=l.filter(function(e){var t=e.iso2;return["".concat(t)].some(function(e){return e.toLowerCase().includes(c)})}),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(c)})});return n.scrollToTop(),a(new Set([].concat(s,d)))}return l},n.getCountryDropdownList=function(){var e=n.state,t=e.preferredCountries,i=e.highlightCountryIndex,a=e.showDropdown,o=e.searchValue,l=n.props,c=l.disableDropdown,s=l.prefix,d=n.props,u=d.enableSearch,f=d.searchNotFound,h=d.disableSearchIcon,C=d.searchClass,m=d.searchStyle,A=d.searchPlaceholder,g=d.autocompleteSearch,v=n.getSearchFilteredCountries().map(function(e,t){var r=i===t,a=L()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:r}),o="flag ".concat(e.iso2);return p.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:a,"data-dial-code":"1",tabIndex:c?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},r?{"aria-selected":!0}:{}),p.a.createElement("div",{className:o}),p.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),p.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):s+e.dialCode))}),w=p.a.createElement("li",{key:"dashes",className:"divider"});t.length>0&&(!u||u&&!o.trim())&&v.splice(t.length,0,w);var y=L()(r({"country-list":!0,hide:!a},n.props.dropdownClass,!0));return p.a.createElement("ul",{ref:function(e){return!u&&e&&e.focus(),n.dropdownRef=e},className:y,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},u&&p.a.createElement("li",{className:L()(r({search:!0},C,C))},!h&&p.a.createElement("span",{className:L()(r({"search-emoji":!0},"".concat(C,"-emoji"),C)),role:"img","aria-label":"Magnifying glass"},"🔎"),p.a.createElement("input",{className:L()(r({"search-box":!0},"".concat(C,"-box"),C)),style:m,type:"search",placeholder:A,autoFocus:!0,autoComplete:g?"on":"off",value:o,onChange:n.handleSearchChange})),v.length>0?v:p.a.createElement("li",{className:"no-entries-message"},p.a.createElement("span",null,f)))};var s,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),C=h.onlyCountries,m=h.preferredCountries,g=h.hiddenAreaCodes,w=e.value?e.value.replace(/\D/g,""):"";s=e.disableInitialCountryGuess?0:w.length>1?n.guessSelectedCountry(w.substring(0,6),e.country,C,g)||0:e.country&&C.find(function(t){return t.iso2==e.country})||0;var E,M=w.length<2&&s&&!b()(w,s.dialCode)?s.dialCode:"";E=""===w&&0===s?"":n.formatNumber((e.disableCountryCode?"":M)+w,s.name?s:void 0);var H=C.findIndex(function(e){return e==s});return n.state={showDropdown:e.showDropdown,formattedNumber:E,onlyCountries:C,preferredCountries:m,hiddenAreaCodes:g,selectedCountry:s,highlightCountryIndex:H,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:A()(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,a=this.props,o=a.country,l=a.prefix;if(""===e)return this.setState({selectedCountry:r,formattedNumber:""});var c,s,d=e.replace(/\D/g,"");if(r&&b()(e,l+r.dialCode))s=this.formatNumber(d,r),this.setState({formattedNumber:s});else{var u=(c=this.props.disableCountryGuess?r:this.guessSelectedCountry(d.substring(0,6),o,n,i)||r)&&b()(d,l+c.dialCode)?c.dialCode:"";s=this.formatNumber((this.props.disableCountryCode?"":u)+d,c||void 0),this.setState({selectedCountry:c,formattedNumber:s})}}},{key:"render",value:function(){var e,t,n,i=this,a=this.state,o=a.onlyCountries,l=a.selectedCountry,c=a.showDropdown,s=a.formattedNumber,d=a.hiddenAreaCodes,u=this.props,f=u.disableDropdown,h=u.renderStringAsFlag,C=u.isValid,m=u.defaultErrorMessage,A=u.specialLabel;if("boolean"==typeof C)t=C;else{var g=C(s.replace(/\D/g,""),l,o,d);"boolean"==typeof g?!1===(t=g)&&(n=m):(t=!1,n=g)}var v=L()((r(e={},this.props.containerClass,!0),r(e,"react-tel-input",!0),e)),w=L()({arrow:!0,up:c}),y=L()(r({"form-control":!0,"invalid-number":!t,open:c},this.props.inputClass,!0)),E=L()({"selected-flag":!0,open:c}),b=L()(r({"flag-dropdown":!0,"invalid-number":!t,open:c},this.props.buttonClass,!0)),M="flag ".concat(l&&l.iso2);return p.a.createElement("div",{className:"".concat(v," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},A&&p.a.createElement("div",{className:"special-label"},A),n&&p.a.createElement("div",{className:"invalid-number-message"},n),p.a.createElement("input",Object.assign({className:y,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:s,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)}})),p.a.createElement("div",{className:b,style:this.props.buttonStyle,ref:function(e){return i.dropdownContainerRef=e}},h?p.a.createElement("div",{className:E},h):p.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":!!c||void 0},p.a.createElement("div",{className:M},!f&&p.a.createElement("div",{className:w}))),c&&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}(p.a.Component);I.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=I}])),wk),bk=S(Ek),Mk={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|[2-467])\\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)|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","[024-7]\\d{7}",[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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],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)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\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]|[67]3)|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]|3[23]|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","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],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,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|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}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"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{2})(\\d{2})(\\d{2})","$1 $2 $3",["[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","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|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{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"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","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],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(?:05|[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-6]|80[2-46]","11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?: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)|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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"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",["20"]],["(\\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]"]],["(\\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",["20"]]],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{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],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",["11|2[16]"],"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","7091\\d{5}|(?:[56]9|[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{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-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-9]"]],["(\\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[02-46-9]"]],["(\\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",["30|(?: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","30|(?: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","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"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","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,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",["3[289]|4[246-8]|61|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,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?: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,"[3489]",0,"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(?:[0-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[013]|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{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\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|[3689]\\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-7]\\d{7}",[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$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{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?: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","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"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,[["983[2-57-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[02469]|8[13])|3(?:0[1-57-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[02589]|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-2478]|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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],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{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1357-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","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?: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","(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[23568]\\d{6}",[7,9,10],[["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"],"0$1"],["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["548"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[256]|39|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",["3"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"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|5[12]"]],["(\\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})|5(?:0\\d{3}|2[0-2]))\\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 Lk(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 Hk(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 Hk(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 Hk(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 xk(e,t){for(var n,r=0,i=Lk(t.split(""));!(n=i()).done;){n.value===e&&r++}return r}function Vk(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 kk(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 kk(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 kk(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 Sk(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=xk(t,e);return function(i){if(!i)return{text:"",template:e};for(var a,o=0,l="",c=Vk(e.split(""));!(a=c()).done;){var s=a.value;if(s===t){if(l+=i[o],++o===i.length&&i.length<r)break}else l+=s}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,a=xk("(",e)-xk(")",e);a>0&&i<t.length;)e+=t[i].replace(n,r),")"===t[i]&&a--,i++;return e}(l,e)),{text:l,template:e}}}var Zk=8,Ok=46;function zk(e,t){void 0!==t&&(!function(){if("undefined"!=typeof navigator)return Ik.test(navigator.userAgent)}()?e.setSelectionRange(t,t):setTimeout(function(){return e.setSelectionRange(t,t)},0))}var Ik=/Android/i;function Nk(e,t,n,r,i){if(!t.hasAttribute("readonly")){var a=function(e){switch(e.keyCode){case Zk:return"Backspace";case Ok:return"Delete"}}(e);switch(a){case"Delete":case"Backspace":e.preventDefault();var o=function(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}(t);return o?(function(e,t){var n=e.value;n=n.slice(0,t.start)+n.slice(t.end),e.value=n,zk(e,t.start)}(t,o),Dk(t,n,r,void 0,i)):Dk(t,n,r,a,i)}}}function Dk(e,t,n,r,i){var a=function(e,t,n){for(var r={},i="",a=0,o=0;o<e.length;){var l=n(e[o],i,r);void 0!==l&&(i+=l,void 0!==t&&(t===o?a=i.length-1:t>o&&(a=i.length))),o++}return void 0===t&&(a=i.length),{value:i,caret:a}}(e.value,e.selectionStart,t),o=a.value,l=a.caret;if(r){var c=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}}(o,l,r);o=c.value,l=c.caret}var s=function(e,t,n){"string"==typeof n&&(n=Sk(n));var r=n(e)||{},i=r.text,a=r.template;if(void 0===i&&(i=e),a)if(void 0===t)t=i.length;else{for(var o=0,l=!1,c=-1;o<i.length&&o<a.length;){if(i[o]!==a[o]){if(0===t){l=!0,t=o;break}c=o,t--}o++}l||(t=c+1)}return{text:i,caret:t}}(o,l,n),d=s.text;l=s.caret,e.value=d,zk(e,l),i&&i(o)}var Tk=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function Fk(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 Rk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fk(Object(n),!0).forEach(function(t){Bk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jk(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pk(e){var t=e.ref,n=e.parse,r=e.format,i=e.value,a=e.defaultValue,l=e.controlled,c=void 0===l||l,s=e.onChange,d=e.onKeyDown,u=jk(e,Tk),f=o(),h=A(function(e){f.current=e,t&&("function"==typeof t?t(e):t.current=e)},[t]),C=A(function(e){Dk(f.current,n,r,void 0,s)},[f,n,r,s]),p=A(function(e){if(d&&d(e),!e.defaultPrevented)return Nk(e,f.current,n,r,s)},[f,n,r,s,d]),m=Rk(Rk({},u),{},{ref:h,onChange:C,onKeyDown:p});return Rk(Rk({},m),{},c?{value:r(Uk(i)?"":i).text}:{defaultValue:r(Uk(a)?"":a).text})}function Uk(e){return null==e}var qk=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function Wk(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 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 Qk(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gk(e,t){var n=e.inputComponent,r=void 0===n?"input":n,a=e.parse,o=e.format,l=e.value,c=e.defaultValue,s=e.onChange,d=e.controlled,u=e.onKeyDown,f=e.type,h=Pk(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wk(Object(n),!0).forEach(function(t){Xk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t,parse:a,format:o,value:l,defaultValue:c,onChange:s,controlled:d,onKeyDown:u,type:void 0===f?"text":f},Qk(e,qk)));return i.createElement(r,h)}function Kk(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))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}(Gk=i.forwardRef(Gk)).propTypes={parse:Om.func.isRequired,format:Om.func.isRequired,inputComponent:Om.elementType,type:Om.string,value:Om.string,defaultValue:Om.string,onChange:Om.func,controlled:Om.bool,onKeyDown:Om.func,onCut:Om.func,onPaste:Om.func};var Yk={}.constructor;function _k(e){return null!=e&&e.constructor===Yk}var Jk=/^\d+$/;function $k(e){return $k="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},$k(e)}function eS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tS(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,nS(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nS(e){var t=function(e,t){if("object"!=$k(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=$k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==$k(t)?t:t+""}var rS=" ext. ",iS=function(){return tS(function e(t){eS(this,e),dS(t),this.metadata=t,CS.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){var n,r,i;if(e&&(i=e,Jk.test(i)?r=e:n=e),t&&(r=t),n&&"001"!==n){var a=this.getCountryMetadata(n);if(!a)throw new Error("Unknown country: ".concat(n));this.numberingPlan=new aS(a,this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new aS(this.getNumberingPlanMetadata(r),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}}])}(),aS=function(){return tS(function e(t,n){eS(this,e),this.globalMetadataObject=n,this.metadata=t,CS.call(this,n.metadata)},[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{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._getDefaultCountryMetadataForThisCallingCode())||[];return t.map(function(t){return new oS(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._getDefaultCountryMetadataForThisCallingCode())}},{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._getDefaultCountryMetadataForThisCallingCode())}},{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()&&sS(this.types(),e))return new cS(sS(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?rS:this.metadata[13]||rS}}])}(),oS=function(){return tS(function e(t,n){eS(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()||lS.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),lS=/^\(?\$1\)?$/,cS=function(){return tS(function e(t,n){eS(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 sS(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 dS(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!_k(e)||!_k(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(_k(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+uS(e)+": "+e,"."))}var uS=function(e){return $k(e)};function fS(e,t){var n=new iS(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function hS(e,t){return t.countries.hasOwnProperty(e)}function CS(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===Kk(t,"1.2.0")?this.v2=!0:-1===Kk(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function pS(e,t,n){return function(e,t,n,r){n&&(r=new iS(r.metadata)).selectNumberingPlan(n);var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var o=e.length,l=a[0];if(l===o)return"IS_POSSIBLE";if(l>o)return"TOO_SHORT";if(a[a.length-1]<o)return"TOO_LONG";return a.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,void 0,t,n)}function mS(e,t){return"IS_POSSIBLE"===pS(e,void 0,t)}function AS(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function gS(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 vS(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)?vS(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 vS(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 wS=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function yS(e,t,n){if(t=t||{},e.country||e.countryCallingCode){var r=new iS(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(AS(i,r.nationalNumberPattern())){if(ES(i,"FIXED_LINE",r))return r.type("MOBILE")&&""===r.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":r.type("MOBILE")?ES(i,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var a,o=gS(wS);!(a=o()).done;){var l=a.value;if(ES(i,l,r))return l}}}}function ES(e,t,n){var r=n.type(t);return!(!r||!r.pattern())&&(!(r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0)&&AS(e,r.pattern()))}var bS=/^[A-Z]{2}$/;function MS(e,t){var n,r,i,a=new iS(t);return i=e,bS.test(i)?(n=e,a.selectNumberingPlan(n),r=a.countryCallingCode()):r=e,{country:n,callingCode:r}}function LS(e,t,n){var r=new iS(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return function(e,t,n){var r=new iS(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}(t,e,n)}):[]}var HS="0-90-9٠-٩۰-۹",xS="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~"),VS=new RegExp("(["+HS+"])");function kS(e,t,n,r){if(t){var i=new iS(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(0===e.search(a)){var o=(e=e.slice(e.match(a)[0].length)).match(VS);if(!(o&&null!=o[1]&&o[1].length>0&&"0"===o[1]))return e}}}function SS(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,o,l=r.length-1,c=l>0&&r[l];if(t.nationalPrefixTransformRule()&&c)i=e.replace(n,t.nationalPrefixTransformRule()),l>1&&(a=r[1]);else{var s=r[0];i=e.slice(s.length),c&&(a=r[1])}if(c){var d=e.indexOf(r[1]);e.slice(0,d)===t.numberingPlan.nationalPrefix()&&(o=t.numberingPlan.nationalPrefix())}else o=r[0];return{nationalNumber:i,nationalPrefix:o,carrierCode:a}}}return{nationalNumber:e}}function ZS(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 zS(e,t,n){for(var r,i=new iS(n),a=ZS(t);!(r=a()).done;){var o=r.value;if(i.selectNumberingPlan(o),i.leadingDigits()){if(e&&0===e.search(i.leadingDigits()))return o}else if(yS({phone:e,country:o},void 0,i.metadata))return o}}function IS(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return 1===i.length?i[0]:zS(n,i,r.metadata)}function NS(e,t,n){var r=SS(e,n),i=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!function(e,t,n){if(AS(e,n.nationalNumberPattern())&&!AS(t,n.nationalNumberPattern()))return!1;return!0}(e,a,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=IS(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n})),!function(e,t,n){switch(pS(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(a,t,n)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function DS(e,t,n,r,i){if(!(t||n||r))return{number:e};var a=t||n?fS(t||n,i):r;if(0===e.indexOf(a)){var o=new iS(i);o.selectNumberingPlan(t||n||r);var l=e.slice(a.length),c=NS(l,void 0,o).nationalNumber,s=NS(e,void 0,o).nationalNumber;if(!AS(s,o.nationalNumberPattern())&&AS(c,o.nationalNumberPattern())||"TOO_LONG"===pS(s,void 0,o))return{countryCallingCode:a,number:l}}return{number:e}}function TS(e,t,n,r,i){if(!e)return{};var a;if("+"!==e[0]){var o=kS(e,t||n,r,i);if(!o||o===e){if(t||n||r){var l=DS(e,t,n,r,i),c=l.countryCallingCode,s=l.number;if(c)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:c,number:s}}return{number:e}}a=!0,e="+"+o}if("0"===e[1])return{};for(var d=new iS(i),u=2;u-1<=3&&u<=e.length;){var f=e.slice(1,u);if(d.hasCallingCode(f))return d.selectNumberingPlan(f),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(u)};u++}return{}}function FS(e){return e.replace(new RegExp("[".concat(xS,"]+"),"g")," ").trim()}var RS=/(\$\d)/;function BS(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(RS,t.nationalPrefixFormattingRule()):t.format());return r?FS(a):a}var jS=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var PS=function(e){return"([".concat(HS,"]{1,").concat(e,"})")};function US(e){var t="[ \\t,]*",n="[:\\..]?[ \\t,-]*",r="#?",i="[ \\t]*";return";ext="+PS("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+PS("20")+r)+"|"+(t+"(?:[xx##~~]|int|int)"+n+PS("9")+r)+"|"+("[- ]+"+PS("6")+"#")+"|"+(i+"(?:,{2}|;)"+n+PS("15")+r)+"|"+(i+"(?:,)+"+n+PS("9")+r)}var qS="["+HS+"]{2}",WS="[++]{0,1}(?:["+xS+"]*["+HS+"]){3,}["+xS+HS+"]*",XS=new RegExp("^[++]{0,1}(?:["+xS+"]*["+HS+"]){1,2}$","i"),QS=WS+"(?:"+US()+")?",GS=new RegExp("^"+qS+"$|^"+QS+"$","i");var KS={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function YS(e,t,n,r){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]}({},KS,n):KS;var i=new iS(r);if(e.country&&"001"!==e.country){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";i.selectNumberingPlan(e.countryCallingCode)}var a,o=i.countryCallingCode(),l=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return l?JS(a=_S(l,e.carrierCode,"NATIONAL",i,n),e.ext,i,n.formatExtension):"";case"INTERNATIONAL":return l?(a=_S(l,null,"INTERNATIONAL",i,n),JS(a="+".concat(o," ").concat(a),e.ext,i,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(l);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(l),ext:e.ext});case"IDD":if(!n.fromCountry)return;var c=function(e,t,n,r,i){var a=fS(r,i.metadata);if(a===n){var o=_S(e,t,"NATIONAL",i);return"1"===n?n+" "+o:o}var l=function(e,t,n){var r=new iS(n);return r.selectNumberingPlan(e||t),r.defaultIDDPrefix()?r.defaultIDDPrefix():jS.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,void 0,i.metadata);if(l)return"".concat(l," ").concat(n," ").concat(_S(e,null,"INTERNATIONAL",i))}(l,e.carrierCode,o,n.fromCountry,i);if(!c)return;return JS(c,e.ext,i,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function _S(e,t,n,r,i){var a,o,l=(a=r.formats(),o=e,function(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}(a,function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==o.search(t))return!1}return AS(o,e.pattern())}));return l?BS(e,l,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!l.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:t,metadata:r}):e}function JS(e,t,n,r){return t?r(e,t,n):e}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 eZ(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 tZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eZ(Object(n),!0).forEach(function(t){nZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nZ(e,t,n){return(t=iZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rZ(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,iZ(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iZ(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 aZ=function(){return rZ(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(_k(n)&&_k(n.countries)){r=n;var i=t;if(!oZ.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=TS(i,void 0,void 0,void 0,r);if(t=a.countryCallingCode,!(n=a.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");dS(r);var o=MS(t,r),l=o.country,c=o.callingCode;this.country=l,this.countryCallingCode=c,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]:LS(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){void 0===t&&(t={});var r=new iS(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return mS(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.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){t=t||{};var r=new iS(n);return r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes()?void 0!==yS(e,t,r.metadata):AS(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new iS(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return yS(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return YS(this,e,t?tZ(tZ({},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)}}])}(),oZ=/^\+\d+$/;function lZ(e){return lZ="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},lZ(e)}function cZ(e,t,n){return t=fZ(t),function(e,t){if(t&&("object"==lZ(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,dZ()?Reflect.construct(t,n||[],fZ(e).constructor):t.apply(e,n))}function sZ(e){var t="function"==typeof Map?new Map:void 0;return sZ=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(dZ())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&uZ(i,n.prototype),i}(e,arguments,fZ(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),uZ(n,e)},sZ(e)}function dZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dZ=function(){return!!e})()}function uZ(e,t){return uZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uZ(e,t)}function fZ(e){return fZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fZ(e)}var hZ=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=cZ(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&&uZ(e,t)}(e,sZ(Error)),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),CZ=new RegExp("(?:"+US()+")$","i");function pZ(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 mZ(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)?mZ(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 mZ(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 AZ={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 gZ(e){return AZ[e]}function vZ(e){for(var t,n="",r=pZ(e.split(""));!(t=r()).done;){var i=gZ(t.value);i&&(n+=i)}return n}function wZ(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 yZ(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)?yZ(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 yZ(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 EZ(e){for(var t,n="",r=wZ(e.split(""));!(t=r()).done;){n+=bZ(t.value,n)||""}return n}function bZ(e,t,n){return"+"===e?t?void("function"==typeof n&&n("end")):"+":gZ(e)}var MZ="(["+HS+"]|[\\-\\.\\(\\)]?)",LZ=new RegExp("^\\+"+MZ+"*["+HS+"]"+MZ+"*$","g"),HZ=new RegExp("^("+("["+HS+"]+((\\-)*["+HS+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+HS+"])*")+"\\.?$","g"),xZ="tel:",VZ=";phone-context=";function kZ(e,t){var n,r=t.extractFormattedPhoneNumber,i=function(e){var t=e.indexOf(VZ);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&&(LZ.test(e)||HZ.test(e))}(i))throw new hZ("NOT_A_NUMBER");if(null===i)n=r(e)||"";else{n="","+"===i.charAt(0)&&(n+=i);var a,o=e.indexOf(xZ);a=o>=0?o+4:0;var l=e.indexOf(VZ);n+=e.substring(a,l)}var c=n.indexOf(";isub=");if(c>0&&(n=n.substring(0,c)),""!==n)return n}var SZ=new RegExp("[++"+HS+"]"),ZZ=new RegExp("[^"+HS+"#]+$");function OZ(e,t,n){t=t||{};var r=new iS(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry)){if(t.v2)throw new hZ("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var i=function(e,t,n){var r=kZ(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>250){if(n)throw new hZ("TOO_LONG");return}if(!1===t)return e;var r=e.search(SZ);if(r<0)return;return e.slice(r).replace(ZZ,"")}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=2&&GS.test(e)}(r))return function(e){return XS.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(CZ);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(CZ),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),a=i.number,o=i.ext,l=i.error;if(!a){if(t.v2){if("TOO_SHORT"===l)throw new hZ("TOO_SHORT");throw new hZ("NOT_A_NUMBER")}return{}}var c=function(e,t,n,r){var i,a=TS(EZ(e),void 0,t,n,r.metadata),o=a.countryCallingCodeSource,l=a.countryCallingCode,c=a.number;if(l)r.selectNumberingPlan(l);else{if(!c||!t&&!n)return{};t?(i=t,r.selectNumberingPlan(t),l=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),l=n)}if(!c)return{countryCallingCodeSource:o,countryCallingCode:l};var s=NS(EZ(c),void 0,r),d=s.nationalNumber,u=s.carrierCode,f=IS(l,{nationalNumber:d,metadata:r});f&&(i=f,"001"===f||r.selectNumberingPlan(i));return{country:i,countryCallingCode:l,countryCallingCodeSource:o,nationalNumber:d,carrierCode:u}}(a,t.defaultCountry,t.defaultCallingCode,r),s=c.country,d=c.nationalNumber,u=c.countryCallingCode,f=c.countryCallingCodeSource,h=c.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new hZ("INVALID_COUNTRY");return{}}if(!d||d.length<2){if(t.v2)throw new hZ("TOO_SHORT");return{}}if(d.length>17){if(t.v2)throw new hZ("TOO_LONG");return{}}if(t.v2){var C=new aZ(u,d,r.metadata);return s&&(C.country=s),h&&(C.carrierCode=h),o&&(C.ext=o),C.__countryCallingCodeSource=f,C}var p=!!(t.extended?r.hasSelectedNumberingPlan():s)&&AS(d,r.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:u,carrierCode:h,valid:p,possible:!!p||!(!0!==t.extended||!r.possibleLengths()||!mS(d,r)),phone:d,ext:o}:p?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(s,d,o):{}}function zZ(e){return zZ="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},zZ(e)}function IZ(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 NZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IZ(Object(n),!0).forEach(function(t){DZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function DZ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=zZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=zZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zZ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e){return TZ="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},TZ(e)}function FZ(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 RZ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=TZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=TZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==TZ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BZ(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,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jZ(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)?jZ(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 jZ(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 PZ(e){var t,n,r,i=BZ(Array.prototype.slice.call(e),4),a=i[0],o=i[1],l=i[2],c=i[3];if("string"!=typeof a)throw new TypeError("A text for parsing must be a string.");if(t=a,o&&"string"!=typeof o){if(!_k(o))throw new Error("Invalid second argument: ".concat(o));l?(n=o,r=l):r=o}else c?(n=l,r=c):(n=void 0,r=l),o&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FZ(Object(n),!0).forEach(function(t){RZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({defaultCountry:o},n));return{text:t,options:n,metadata:r}}function UZ(e){return UZ="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},UZ(e)}function qZ(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 WZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qZ(Object(n),!0).forEach(function(t){XZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XZ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=UZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=UZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==UZ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QZ(e,t,n){t&&t.defaultCountry&&!hS(t.defaultCountry,n)&&(t=WZ(WZ({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return OZ(e,NZ(NZ({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof hZ))throw e}}function GZ(e){return GZ="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},GZ(e)}function KZ(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 YZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KZ(Object(n),!0).forEach(function(t){_Z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _Z(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=GZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=GZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==GZ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JZ(){var e=PZ(arguments),t=e.text,n=e.options,r=e.metadata,i=QZ(t,n=YZ(YZ({},n),{},{extract:!1}),r);return i&&i.isValid()||!1}function $Z(e){return $Z="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},$Z(e)}function eO(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,tO(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tO(e){var t=function(e,t){if("object"!=$Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=$Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==$Z(t)?t:t+""}var nO=function(){return eO(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 rO(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 iO(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)?iO(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 iO(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 aO="x",oO=new RegExp(aO);function lO(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function cO(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 a=0,o=t;a<o.length;a++){var l=o[a];i+=e.slice(r,l),r=l+1}return i}(e.slice(0,t))}function sO(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var o=dO(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(o)return o}return dO(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function dO(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,o=BS(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?o=e.nationalPrefix+a(t)+o:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(o=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+o)),function(e,t){return vZ(e)===t.getNationalDigits()}(o,e))return o}function uO(e){return uO="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},uO(e)}function fO(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,hO(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hO(e){var t=function(e,t){if("object"!=uO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=uO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==uO(t)?t:t+""}var CO=function(){return fO(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([gO(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(AO);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 a=this.getContext().branches;a.push(gO(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:a});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(gO(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:pO(r)});break;default:throw new Error("Unknown operator: ".concat(n))}i&&this.parsePattern(i)}else{if(mO.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}])}();function pO(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,a=r;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var mO=/[\(\)\[\]\?\:\|]/,AO=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function gO(e){return 1===e.length?e[0]:e}function vO(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 wO(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)?wO(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 wO(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 yO(e){return yO="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},yO(e)}function EO(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,bO(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bO(e){var t=function(e,t){if("object"!=yO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=yO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==yO(t)?t:t+""}var MO=function(){return EO(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 CO).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=LO(e.split(""),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!n||!n.overflow||t)return n}}])}();function LO(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(),a=0;a<t.length;){var o=LO(i,t[a],n&&a===t.length-1);if(!o)return;if(o.overflow)return o;if(!o.match){if(o.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(o,null,2)))}if(0===(i=i.slice(o.matchedChars.length)).length)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0};a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var l,c,s=vO(t.args);!(c=s()).done;){var d=LO(e,c.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=vO(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 HO(e){return HO="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},HO(e)}function xO(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 VO(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)?VO(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 VO(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 kO(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,SO(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SO(e){var t=function(e,t){if("object"!=HO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=HO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==HO(t)?t:t+""}var ZO=lO("9",15),OO=/[- ]/,zO=new RegExp("["+xS+"]*\\$1["+xS+"]*(\\$\\d["+xS+"]*)*$"),IO=function(){return kO(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){return"IS_POSSIBLE"===pS(e,void 0,t)}(t.nationalSignificantNumber,this.metadata))for(var r,i=xO(this.matchingFormats);!(r=i()).done;){var a=r.value,o=sO(t,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return n.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return n.getSeparatorAfterNationalPrefix(e)}});if(o)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(o.replace(/\d/g,aO),t),this.populatedNationalNumberTemplate=o,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(aO),o}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,a=n,o=a.length-3;o<0&&(o=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,i,r)&&t.formatMatches(e,a,o)}),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 MO(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:zO.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=xO(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()&&OO.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(aO,t+1),n++;return cO(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,aO)+lO(aO,t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var n=t.nationalSignificantNumber,r=t.international,i=t.nationalPrefix,a=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,o=e.pattern();o=o.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var l=ZO.match(o)[0];if(!(n.length>l.length)){var c=new RegExp("^"+o+"$"),s=n.replace(/\d/g,"9");c.test(s)&&(l=s);var d,u=this.getFormatFormat(e,r);if(this.shouldTryNationalPrefixFormattingRule(e,{international:r,nationalPrefix:i})){var f=u.replace(RS,e.nationalPrefixFormattingRule());if(vZ(e.nationalPrefixFormattingRule())===(i||"")+vZ("$1")&&(u=f,d=!0,i))for(var h=i.length;h>0;)u=u.replace(/\d/,aO),h--}var C=l.replace(new RegExp(o),u).replace(new RegExp("9","g"),aO);return d||(a?C=lO(aO,a.length)+" "+C:i&&(C=lO(aO,i.length)+this.getSeparatorAfterNationalPrefix(e)+C)),r&&(C=FS(C)),C}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,n){for(var r,i=rO(n.split(""));!(r=i()).done;){var a=r.value;if(e.slice(t+1).search(oO)<0)return;t=e.search(oO),e=e.replace(oO,a)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],cO(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 NO(e){return NO="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},NO(e)}function DO(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,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TO(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)?TO(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 TO(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 FO(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,RO(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RO(e){var t=function(e,t){if("object"!=NO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=NO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==NO(t)?t:t+""}var BO=new RegExp("^"+("["+xS+HS+"]+")+"$","i"),jO="(?:[++]["+xS+HS+"]*|["+xS+HS+"]+)",PO=new RegExp("[^"+xS+HS+"]+.*$"),UO=/[^\d\[\]]/,qO=function(){return FO(function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,a=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=a},[{key:"input",value:function(e,t){var n,r=function(e){var t=function(e){var t=function(e){var t,n=e.search(jO);if(n<0)return;e=e.slice(n),"+"===e[0]&&(t=!0,e=e.slice(1));e=e.replace(PO,""),t&&(e="+"+e);return e}(e)||"";if("+"===t[0])return[t.slice(1),!0];return[t]}(e),n=DO(t,2),r=n[0],i=n[1];BO.test(r)||(r="");return[r,i]}(e),i=DO(r,2),a=i[0],o=i[1],l=vZ(a);return o&&(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=TS("+"+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&&UO.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var n=SS(e,this.metadata),r=n.nationalPrefix,i=n.nationalNumber,a=n.carrierCode;if(i!==e)return this.onExtractedNationalNumber(r,a,i,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=SS(e,this.metadata),i=r.nationalPrefix,a=r.nationalNumber,o=r.carrierCode;if(a!==t)return this.onExtractedNationalNumber(i,o,a,e,n),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,n,r,i){var a,o=!1,l=r.lastIndexOf(n);if(l<0||l!==r.length-n.length)o=!0;else{var c=r.slice(0,l);c&&c!==e&&(a=c)}i({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:n,nationalSignificantNumberIsModified:o,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:a}),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=kS(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=DS(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 WO(e){return WO="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},WO(e)}function XO(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,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return QO(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)?QO(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 QO(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 GO(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,KO(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KO(e){var t=function(e,t){if("object"!=WO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=WO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==WO(t)?t:t+""}var YO=function(){return GO(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 iS(n);var r=XO(this.getCountryAndCallingCode(t),2),i=r[0],a=r[1];this.defaultCountry=i,this.defaultCallingCode=a,this.reset()},[{key:"getCountryAndCallingCode",value:function(e){var t,n;return e&&(_k(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 nO({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 IO({state:this.state,metadata:this.metadata}),this.parser=new qO({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,a=n||r;return a&&(i=a+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,aO)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){var e=IS(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});e!==this.state.country&&(this.state.setCountry(e),e&&this.metadata.selectNumberingPlan(e))}},{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;if(t){var i=this._getCountry();if(i||r){if(i&&i===this.defaultCountry){var a=function(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r.length>1)return zS(t,r,n.metadata)}(this.metadata.numberingPlan.callingCode(),t,this.metadata);a&&(i=a)}var o=new aZ(i||r,t,this.metadata.metadata);return n&&(o.carrierCode=n),o}}}},{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:"validateLength",value:function(){var e=this.state,t=e.digits,n=e.nationalSignificantNumber;if(!t)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!n)return"TOO_SHORT";var r=pS(n,void 0,this.metadata);return"IS_POSSIBLE"!==r?r:void 0}},{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 _O(e){return new iS(e).getCountries()}function JO(e){var t=e.inputFormat,n=e.country,r=e.metadata;return"NATIONAL_PART_OF_INTERNATIONAL"===t?"+".concat(fS(n,r)):""}function $O(e,t){return t&&" "===(e=e.slice(t.length))[0]&&(e=e.slice(1)),e}function ez(e,t,n){if(!n||!n.ignoreRest){return bZ(e,t,function(e){if(n&&"end"===e)n.ignoreRest=!0})}}function tz(e){var t=e.onKeyDown,n=e.inputFormat;return A(function(e){e.keyCode===nz&&"INTERNATIONAL"===n&&e.target instanceof HTMLInputElement&&e.target.selectionStart===rz.length?e.preventDefault():t&&t(e)},[t,n])}var nz=8,rz="+",iz=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function az(){return az=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},az.apply(this,arguments)}function oz(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var lz=function(e){function t(t,n){var r=t.onKeyDown,a=t.country,o=t.inputFormat,l=t.metadata,c=void 0===l?e:l;t.international,t.withCountryCallingCode;var s=oz(t,iz),d=A(function(e){var t=new YO(a,c),n=JO({inputFormat:o,country:a,metadata:c}),r=t.input(n+e),i=t.getTemplate();return n&&(r=$O(r,n),i&&(i=$O(i,n))),{text:r,template:i}},[a,c]),u=tz({onKeyDown:r,inputFormat:o});return i.createElement(Gk,az({},s,{ref:n,parse:ez,format:d,onKeyDown:u}))}return(t=i.forwardRef(t)).propTypes={value:Om.string.isRequired,onChange:Om.func.isRequired,onKeyDown:Om.func,country:Om.string,inputFormat:Om.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Om.object},t}(),cz=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function sz(){return sz=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},sz.apply(this,arguments)}function dz(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var uz=function(e){function t(t,n){var r=t.value,a=t.onChange,o=t.onKeyDown,l=t.country,c=t.inputFormat,s=t.metadata,d=void 0===s?e:s,u=t.inputComponent,f=void 0===u?"input":u;t.international,t.withCountryCallingCode;var h=dz(t,cz),C=JO({inputFormat:c,country:l,metadata:d}),p=A(function(e){var t=EZ(e.target.value);t===r&&(0===fz(C,t,l,d).indexOf(e.target.value)&&(t=t.slice(0,-1)));a(t)},[C,r,a,l,d]),m=tz({onKeyDown:o,inputFormat:c});return i.createElement(f,sz({},h,{ref:n,value:fz(C,r,l,d),onChange:p,onKeyDown:m}))}return(t=i.forwardRef(t)).propTypes={value:Om.string.isRequired,onChange:Om.func.isRequired,onKeyDown:Om.func,country:Om.string,inputFormat:Om.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Om.object,inputComponent:Om.elementType},t}();function fz(e,t,n,r){return $O(function(e,t,n){return n||(n=t,t=void 0),new YO(t,n).input(e)}(e+t,n,r),e)}function hz(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var Cz=["value","onChange","options","disabled","readOnly"],pz=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function mz(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 Az(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 Az(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 Az(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 gz(){return gz=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},gz.apply(this,arguments)}function vz(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wz(e){var t=e.value,n=e.onChange,r=e.options,a=e.disabled,o=e.readOnly,l=vz(e,Cz),c=A(function(e){var t=e.target.value;n("ZZ"===t?void 0:t)},[n]);return m(function(){return Mz(r,t)},[r,t]),i.createElement("select",gz({},l,{disabled:a||o,readOnly:o,value:t||"ZZ",onChange:c}),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?yz:void 0},n)}))}wz.propTypes={value:Om.string,onChange:Om.func.isRequired,options:Om.arrayOf(Om.shape({value:Om.string,label:Om.string,divider:Om.bool})).isRequired,disabled:Om.bool,readOnly:Om.bool};var yz={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function Ez(e){var t=e.value,n=e.options,r=e.className,a=e.iconComponent;e.getIconAspectRatio;var o,l=e.arrowComponent,c=void 0===l?bz:l,s=e.unicodeFlags,d=vz(e,pz),u=m(function(){return Mz(n,t)},[n,t]);return i.createElement("div",{className:"PhoneInputCountry"},i.createElement(wz,gz({},d,{value:t,options:n,className:N("PhoneInputCountrySelect",r)})),u&&(s&&t?i.createElement("div",{className:"PhoneInputCountryIconUnicode"},hz((o=t)[0])+hz(o[1])):i.createElement(a,{"aria-hidden":!0,country:t,label:u.label,aspectRatio:s?1:void 0})),i.createElement(c,null))}function bz(){return i.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function Mz(e,t){for(var n,r=mz(e);!(n=r()).done;){var i=n.value;if(!i.divider&&Lz(i.value,t))return i}}function Lz(e,t){return null==e?null==t:e===t}Ez.propTypes={iconComponent:Om.elementType,arrowComponent:Om.elementType,unicodeFlags:Om.bool};var Hz=["country","countryName","flags","flagUrl"];function xz(){return xz=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},xz.apply(this,arguments)}function Vz(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kz(e){var t=e.country,n=e.countryName,r=e.flags,a=e.flagUrl,o=Vz(e,Hz);return r&&r[t]?r[t]({title:n}):i.createElement("img",xz({},o,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}kz.propTypes={country:Om.string.isRequired,countryName:Om.string.isRequired,flags:Om.objectOf(Om.elementType),flagUrl:Om.string.isRequired};var Sz=["aspectRatio"],Zz=["title"],Oz=["title"];function zz(){return zz=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},zz.apply(this,arguments)}function Iz(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Nz(e){var t=e.aspectRatio,n=Iz(e,Sz);return 1===t?i.createElement(Tz,n):i.createElement(Dz,n)}function Dz(e){var t=e.title,n=Iz(e,Zz);return i.createElement("svg",zz({},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 Tz(e){var t=e.title,n=Iz(e,Oz);return i.createElement("svg",zz({},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 Fz(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 Rz(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 Bz(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 Bz(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 Bz(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 jz(e,t){return!!hS(e,t)||(console.error("Country not found: ".concat(e)),!1)}function Pz(e,t){return e&&0===(e=e.filter(function(e){return jz(e,t)})).length&&(e=void 0),e}Nz.propTypes={title:Om.string.isRequired,aspectRatio:Om.number},Dz.propTypes={title:Om.string.isRequired},Tz.propTypes={title:Om.string.isRequired};var Uz=["country","label","aspectRatio"];function qz(){return qz=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},qz.apply(this,arguments)}function Wz(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xz(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,a=e.internationalIcon;function o(e){var o=e.country,l=e.label,c=e.aspectRatio,s=Wz(e,Uz),d=a===Nz?c:void 0;return i.createElement("div",qz({},s,{className:N("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":1===d,"PhoneInputCountryIcon--border":o})}),o?i.createElement(r,{country:o,countryName:l,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):i.createElement(a,{title:l,aspectRatio:d,className:"PhoneInputCountryIconImg"}))}return o.propTypes={country:Om.string,label:Om.string.isRequired,aspectRatio:Om.number},o}function Qz(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 Gz(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 Gz(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 Gz(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 Kz(e,t){"function"==typeof e?e(t):e.current=t}Xz({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:kz,internationalIcon:Nz});var Yz=Om.shape({country_calling_codes:Om.object.isRequired,countries:Om.object.isRequired}),_z=Om.objectOf(Om.string);function Jz(e,t){return"+"+fS(e,t)}function $z(e,t){return function(){var e=PZ(arguments);return QZ(e.text,e.options,e.metadata)}(e||"",t)}function eI(e,t){var n=t.prevCountry,r=t.newCountry,i=t.metadata,a=t.useNationalFormat;if(n===r)return e;if(!e)return a?"":r?Jz(r,i):"";if(r){if("+"===e[0]){if(a)return 0===e.indexOf("+"+fS(r,i))?function(e,t,n){if(t){var r="+"+fS(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,a=Object.keys(n.country_calling_codes);i<a.length;i++){var o=a[i];if(1===e.indexOf(o))return e.slice(1+o.length)}return""}(e,r,i):"";if(n){var o=Jz(r,i);return 0===e.indexOf(o)?e:o}var l=Jz(r,i);return 0===e.indexOf(l)?e:l}}else if("+"!==e[0])return tI(e,n,i)||"";return e}function tI(e,t,n){if(e){if("+"===e[0]){if("+"===e)return;var r=new YO(t,n);return r.input(e),r.getNumberValue()}if(t){var i=oI(e,t,n);return"+".concat(fS(t,n)).concat(i||"")}}}function nI(e,t,n){var r=oI(e,t,n);if(r){var i=r.length-function(e,t){return t=new iS(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 rI(e,t){var n=t.country,r=t.countries,i=t.defaultCountry,a=t.latestCountrySelectedByUser,o=t.required,l=t.metadata;if("+"===e)return n;var c=function(e,t){var n=new YO(null,t);return n.input(e),n.getCountry()}(e,l);if(c)return!r||r.indexOf(c)>=0?c:void 0;if(n)if(lI(e,n,l)){if(a&&lI(e,a,l))return a;if(i&&lI(e,i,l))return i;if(!o)return}else if(!o)return;return n}function iI(e,t,n){if(0===e.indexOf(Jz(t,n))){var r=new YO(t,n);r.input(e);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}return e.replace(/\D/g,"")}function aI(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function oI(e,t,n){var r=new YO(t,n);r.input(e);var i=r.getNumber();return i&&i.nationalNumber}function lI(e,t,n){for(var r=Jz(t,n),i=0;i<e.length&&i<r.length;){if(e[i]!==r[i])return!1;i++}return!0}function cI(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,i=e.international,a=e.useNationalFormat,o=e.metadata;return(!1===i||a)&&n&&n.country?function(e){return e.formatNational().replace(/\D/g,"")}(n):!t&&i&&r?Jz(r,o):t}function sI(e){return sI="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},sI(e)}function dI(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 uI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dI(Object(n),!0).forEach(function(t){fI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fI(e,t,n){return t=function(e){var t=function(e,t){if("object"!=sI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=sI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sI(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hI(e,t){return null===e&&(e=void 0),null===t&&(t=void 0),e===t}var CI=["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 pI(e){return pI="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},pI(e)}function mI(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 AI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mI(Object(n),!0).forEach(function(t){LI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gI(){return gI=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},gI.apply(this,arguments)}function vI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wI(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,HI(r.key),r)}}function yI(e,t,n){return t=bI(t),function(e,t){if(t&&("object"===pI(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,EI()?Reflect.construct(t,n||[],bI(e).constructor):t.apply(e,n))}function EI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(EI=function(){return!!e})()}function bI(e){return bI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bI(e)}function MI(e,t){return MI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MI(e,t)}function LI(e,t,n){return(t=HI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HI(e){var t=function(e,t){if("object"!=pI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=pI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pI(t)?t:t+""}var xI=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),LI(n=yI(this,e,[t]),"setInputRef",function(e){!function(e,t){for(var n,r=Qz(e);!(n=r()).done;){var i=n.value;i&&Kz(i,t)}}([n.props.inputRef,n.inputRef],e)}),LI(n,"isCountrySupportedWithError",function(e){return jz(e,n.props.metadata)}),LI(n,"onCountryChange",function(e){var t=n.props,r=t.international,i=t.metadata,a=t.onChange,o=t.focusInputOnCountrySelection,l=n.state,c=eI(l.phoneDigits,{prevCountry:l.country,newCountry:e,metadata:i,useNationalFormat:!r}),s=tI(c,e,i);o&&n.inputRef.current.focus(),n.setState({country:e,latestCountrySelectedByUser:e,hasUserSelectedACountry:!0,phoneDigits:c,value:s},function(){a(s)})}),LI(n,"onChange",function(e){var t=n.props,r=t.defaultCountry,i=t.onChange,a=t.addInternationalOption,o=t.international,l=t.limitMaxLength,c=t.countryCallingCodeEditable,s=t.metadata,d=n.state,u=d.countries,f=d.phoneDigits,h=d.country,C=d.latestCountrySelectedByUser,p=function(e,t){var n,r=t.prevPhoneDigits,i=t.country,a=t.defaultCountry,o=t.latestCountrySelectedByUser,l=t.countryRequired,c=t.getAnyCountry,s=t.countries,d=t.international,u=t.limitMaxLength,f=t.countryCallingCodeEditable,h=t.metadata;if(d&&!1===f&&i){var C,p=Jz(i,h);if(0!==e.indexOf(p))return e&&"+"!==e[0]?C=tI(e=p+e,i,h):e=p,{phoneDigits:e,value:C,country:i}}return!1===d&&i&&e&&"+"===e[0]&&(e=iI(e,i,h)),e&&i&&u&&(e=nI(e,i,h)),!e||"+"===e[0]||i&&!d||(e="+"+e),!e&&r&&"+"===r[0]&&(i=d?void 0:a),"+"===e&&r&&"+"===r[0]&&r.length>1&&(i=void 0),e&&(n="+"===e[0]&&("+"===e||i&&0===Jz(i,h).indexOf(e))?void 0:tI(e,i,h)),n&&(i=rI(n,{country:i,countries:s,defaultCountry:a,latestCountrySelectedByUser:o,required:!1,metadata:h}),!1===d&&i&&e&&"+"===e[0]&&(n=tI(e=iI(e,i,h),i,h))),!i&&l&&(i=a||c()),{phoneDigits:e,country:i,value:n}}(e,{prevPhoneDigits:f,country:h,countryRequired:!a,defaultCountry:r,latestCountrySelectedByUser:C,getAnyCountry:function(){return n.getFirstSupportedCountry({countries:u})},countries:u,international:o,limitMaxLength:l,countryCallingCodeEditable:c,metadata:s}),m=p.phoneDigits,A=p.country,g=p.value,v={phoneDigits:m,value:g,country:A};C&&g&&!lI(g,C,s)&&(v.latestCountrySelectedByUser=void 0),!1===c&&(g||m!==n.state.phoneDigits||(v.forceRerender={})),n.setState(v,function(){return i(g)})}),LI(n,"_onFocus",function(){return n.setState({isFocused:!0})}),LI(n,"_onBlur",function(){return n.setState({isFocused:!1})}),LI(n,"onFocus",function(e){n._onFocus();var t=n.props.onFocus;t&&t(e)}),LI(n,"onBlur",function(e){var t=n.props.onBlur;n._onBlur(),t&&t(e)}),LI(n,"onCountryFocus",function(e){n._onFocus();var t=n.props.countrySelectProps;if(t){var r=t.onFocus;r&&r(e)}}),LI(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,a=r.value;r.labels;var o=r.international,l=r.addInternationalOption,c=r.displayInitialValueAsLocalNumber,s=r.initialValueFormat,d=r.metadata,u=n.props,f=u.defaultCountry,h=u.countries;f&&(n.isCountrySupportedWithError(f)||(f=void 0)),a&&Fz(a),h=Pz(h,d);var C=$z(a,d);n.CountryIcon=Xz(n.props);var p=function(e){var t,n=e.value,r=e.phoneNumber,i=e.defaultCountry,a=e.getAnyCountry,o=e.countries,l=e.required,c=e.metadata;return r&&r.country?t=r.country:i&&(n&&!lI(n,i,c)||(t=i)),o&&o.indexOf(t)<0&&(t=void 0),!t&&l&&o&&o.length>0&&(t=a()),t}({value:a,phoneNumber:C,defaultCountry:f,required:!l,countries:h||_O(d),getAnyCountry:function(){return n.getFirstSupportedCountry({countries:h})},metadata:d});return n.state={props:n.props,country:p,countries:h,phoneDigits:cI({value:a,phoneNumber:C,defaultCountry:f,international:o,useNationalFormat:c||"national"===s,metadata:d}),value:a},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&&MI(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,a=n.countryOptionsOrder,o=n.addInternationalOption,l=n.labels,c=n.locales,s=n.metadata;return this.useMemoCountrySelectOptions(function(){return function(e,t){if(!t)return e;for(var n,r=[],i=[],a=r,o=function(){var t=n.value;if("|"===t)a.push({divider:!0});else if("..."===t||"…"===t)a=i;else{var r;r="🌐"===t?void 0:t;var o=e.indexOf(e.filter(function(e){return e.value===r})[0]),l=e[o];e.splice(o,1),a.push(l)}},l=Rz(t);!(n=l()).done;)o();return r.concat(e).concat(i)}(function(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,i=e.compareStringsLocales,a=e.compareStrings;a||(a=aI);var o=t.map(function(e){return{value:e,label:n[e]||e}});return o.sort(function(e,t){return a(e.label,t.label,i)}),r&&o.unshift({label:n.ZZ}),o}({countries:t||_O(s),countryNames:l,addInternationalOption:(!r||!1!==i)&&o,compareStringsLocales:c}),function(e,t){if(e&&(e=e.filter(function(e){switch(e){case"🌐":case"|":case"...":case"…":return!0;default:return jz(e,t)}})).length>0)return e}(a,s))},[t,a,o,l,s])}},{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,a=e.autoComplete,o=e.style,l=e.className;e.inputRef;var c=e.inputComponent,s=e.numberInputProps,d=e.smartCaret,u=e.countrySelectComponent,f=e.countrySelectProps,h=e.containerComponent,C=e.containerComponentProps;e.defaultCountry,e.countries,e.countryOptionsOrder;var p=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,A=e.international;e.locales;var g=vI(e,CI),v=this.state,w=v.country,y=v.countries,E=v.phoneDigits,b=v.isFocused,M=d?lz:uz,L=this.getCountrySelectOptions({countries:y});return i.createElement(h,gI({style:o,className:N(l,"PhoneInput",{"PhoneInput--focus":b,"PhoneInput--disabled":n,"PhoneInput--readOnly":r})},C),i.createElement(u,gI({name:t?"".concat(t,"Country"):void 0,"aria-label":p.country},f,{value:w,options:L,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:n||f&&f.disabled,readOnly:r||f&&f.readOnly,iconComponent:this.CountryIcon})),i.createElement(M,gI({ref:this.setInputRef,type:"tel",autoComplete:a},s,g,{inputFormat:!0===A?"INTERNATIONAL":!1===A?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:!!A||void 0,withCountryCallingCode:!!A||void 0,name:t,metadata:m,country:w,value:E||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:n,readOnly:r,inputComponent:c,className:N("PhoneInputInput",s&&s.className,g.className)})))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return AI({props:e},function(e,t,n){var r=e.metadata,i=e.countries,a=e.defaultCountry,o=e.value,l=e.reset,c=e.international,s=e.displayInitialValueAsLocalNumber,d=e.initialValueFormat,u=t.defaultCountry,f=t.value,h=t.reset;n.country;var C=n.value,p=n.hasUserSelectedACountry,m=n.latestCountrySelectedByUser,A=function(e){return cI(uI(uI({},e),{},{international:c,useNationalFormat:s||"national"===d,metadata:r}))};if(l!==h)return{phoneDigits:A({value:void 0,defaultCountry:a}),value:void 0,country:a,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(a!==u){var g=!a||jz(a,r),v=!C||c&&C===A({value:void 0,defaultCountry:u});if(!p&&g&&!o&&v)return{country:a,phoneDigits:A({value:void 0,defaultCountry:a}),value:void 0}}if(!hI(o,f)&&!hI(o,C)){var w,y,E;if(o){o&&Fz(o),w=$z(o,r);var b=Pz(i,r);w&&w.country?(!b||b.indexOf(w.country)>=0)&&(y=w.country):(y=rI(o,{country:void 0,countries:b,metadata:r}))||a&&0===o.indexOf(Jz(a,r))&&(y=a)}return o?m&&((y?m===y:lI(o,m,r))?y||(y=m):E={latestCountrySelectedByUser:void 0}):E={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0},uI(uI({},E),{},{phoneDigits:A({phoneNumber:w,value:o,defaultCountry:a}),value:o,country:o?y:a})}}(e,t.props,t))}}],n&&wI(t.prototype,n),r&&wI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),VI=i.forwardRef(function(e,t){return i.createElement(xI,gI({},function(e){for(var t in e=AI({},e),kI)void 0===e[t]&&(e[t]=kI[t]);return e}(e),{inputRef:t}))});VI.propTypes={value:Om.string,onChange:Om.func.isRequired,onFocus:Om.func,onBlur:Om.func,disabled:Om.bool,readOnly:Om.bool,autoComplete:Om.string,initialValueFormat:Om.oneOf(["national"]),displayInitialValueAsLocalNumber:Om.bool,defaultCountry:Om.string,countries:Om.arrayOf(Om.string),labels:_z,locales:Om.oneOfType([Om.string,Om.arrayOf(Om.string)]),flagUrl:Om.string,flags:Om.objectOf(Om.elementType),flagComponent:Om.elementType,addInternationalOption:Om.bool,internationalIcon:Om.elementType,countryOptionsOrder:Om.arrayOf(Om.string),style:Om.object,className:Om.string,countrySelectComponent:Om.elementType,countrySelectProps:Om.object,inputComponent:Om.elementType,numberInputProps:Om.object,containerComponent:Om.elementType,containerComponentProps:Om.object,smartCaret:Om.bool,international:Om.bool,limitMaxLength:Om.bool,countryCallingCodeEditable:Om.bool,metadata:Yz,onCountryChange:Om.func,focusInputOnCountrySelection:Om.bool};var kI={autoComplete:"tel",countrySelectComponent:Ez,flagComponent:kz,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:Nz,inputComponent:"input",containerComponent:"div",reset:Om.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};var SI={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"},ZI=["metadata","labels"];function OI(){return OI=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},OI.apply(this,arguments)}function zI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function II(e){var t=i.forwardRef(function(t,n){var r=t.metadata,a=void 0===r?e:r,o=t.labels,l=void 0===o?SI:o,c=zI(t,ZI);return i.createElement(VI,OI({},c,{ref:n,metadata:a,labels:l}))});return t.propTypes={metadata:Yz,labels:_z},t}function NI(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(Mk),e.apply(this,n)}(JZ,arguments)}II(),II(Mk);const DI=({country:t,value:r,onChange:i,width:a="100%",placeholder:o="Enter phone number",onFocus:c,onBlur:d,id:u,dropdownStyle:f={},enableAreaCodeStretch:h=!1,disabled:C=!1,isValid:p=!0,isVerified:m=!1,isVerifyDisplay:A=!1,onVerifyClick:g=()=>{},onValidationChange:v=()=>{}})=>{const[w,y]=s(r),[E,b]=s(!1),[M,L]=s(p),[H,x]=s(t);l(()=>{if(r){let e=r;e.startsWith("+")||(e=`+${e}`),y(e)}},[r]);const V=e=>{const t=NI(e),n=!!e&&e.replace(/[^\d]/g,"").length<=3,r=t||n;L(r),v(r)};return n("section",{id:u,"aria-label":"Phone input field",children:[e(bk,{specialLabel:"",countryCodeEditable:!1,country:t,value:w,onChange:(e,t)=>{const n=t?.countryCode?.toLowerCase(),r=e.replace(/[^0-9+]/g,"");if(H?.toLowerCase()!==n)return y(t?.dialCode),i(t?.dialCode),x(n),void L(!0);let a=r;a.startsWith("+")||(a=`+${a}`),y(a),i(a),V(a)},inputStyle:{width:a,height:"32px",border:E?"1px solid var(--brand-color)":M?"1px solid var(--default-color)":"1px solid var(--error_light)",borderRadius:"4px",fontSize:"14px",transition:"border-color 0.3s ease"},enableSearch:!0,placeholder:o,onFocus:e=>{b(!0),c&&c(e)},onBlur:e=>{b(!1),d&&d(e),V(w)},dropdownStyle:f,enableAreaCodeStretch:h,disabled:C,inputProps:{"aria-label":o||"Phone number"}}),!M&&!E&&e(W,{color:"var(--error_light)",className:"error",fontSize:10,"aria-label":"Invalid phone number format",children:"Invalid phone number format"}),m?e(W,{color:"var(--phone-number-verified-color)","aria-label":"Phone number verified",children:"Verified"}):NI(w)&&A&&!m&&e(W,{color:"var(--brand-color)",className:"cursor_pointer",onClick:g,"aria-label":"Verify phone number",children:"Verify"})]})},TI=(e,t,n)=>{const r=[...e],i=r[t];let a;a=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 o={...i,executionOrder:a,...i._id?{id:i._id}:{}};return r.splice(t,1),r.splice(n,0,o),r},FI=(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()],a=n.getFullYear(),o=(n.getMonth()+1).toString().padStart(2,"0");switch(t){case"dd MMM yyyy":default:return`${r} ${i} ${a}`;case"MMM dd yyyy":return`${i} ${r} ${a}`;case"yyyy dd MM":return`${a} ${r} ${o}`}},RI=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},BI=(e,t,n,r,i)=>{let a,o=[];const l=()=>{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},c=[...n];switch(e){case"above":case"below":{const n=new Map(c.map(e=>[e.key,e])),r=new Set,i=t.map(e=>{if(e.key&&n.has(e.key)){r.add(e.key);return{...n.get(e.key)}}return e}),a=c.filter(e=>e.key&&!r.has(e.key));o="above"===e?[...a,...i].slice(0,100):[...i,...a].slice(-100);break}case"expand":case"expandAll":case"collapseAll":case"collapse":{const n=l();if(void 0===n)throw new Error("Both sourceId and index are required for 'expand' or 'collapse' actions.");0!==n||["above","below"].includes(e)||Y(c)||!c[0]||(c[0]={...c[0],lastResource:!0}),o=[...t.slice(0,n),...c];break}case"addAbove":{const e=l();if(void 0===e)throw new Error("Both sourceId and index are required for 'addAbove' action.");o=[...t.slice(0,e),...c,...t.slice(e)];break}case"addBelow":{const e=l();if(void 0===e)throw new Error("Both sourceId and index are required for 'addBelow' action.");o=[...t.slice(0,e+1),...c,...t.slice(e+1)];break}case"start":case"show":case"hide":case"clone":case"create":case"refresh":case"delete":if(Y(c))throw new Error("Tree data list is empty, cannot determine root.");a=c[0],o=c.filter(e=>e.key).filter(e=>0!==e.hierarchy);break;default:throw new Error(`Invalid action: ${e}`)}Y(o)&&!["start","delete","hide","refresh"].includes(e)&&console.warn("Tree data list is empty. Returning default state.");const s=o[0]||a,d=o[o.length-1]||{lastResource:!0,key:""};return{treeDataList:o,next:!d?.lastResource,previous:!s?.lastResource,startId:s?.key,endId:d?.key,root:a}},jI=(e,t)=>{const n=t.searchKey?.split("/")||[];return Y(n)?e:e.map(e=>n.includes(e.key)?{...e,state:t.state}:e)},PI=e=>{l(()=>{const t=t=>{e&&t.preventDefault()};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[e])},UI=(e,t,n,r)=>{if(!t)throw new Error("Key is required");const i=new Map,a=new Map,o=new Set;let l=[...e];n&&!Y(n)&&(l=[n,...e]),l.forEach(e=>{i.set(e.key,e),e.parentId&&(a.has(e.parentId)||a.set(e.parentId,[]),a.get(e.parentId).push(e))});const c=i.get(t);return c&&(c.selectedStatus=r?"completely":"none",function e(t,n){if(o.has(t))throw new Error(`Cycle detected at node: ${t}`);o.add(t),(a.get(t)||[]).forEach(t=>{t.selectedStatus=n,e(t.key,n)}),o.delete(t)}(t,c.selectedStatus),function e(t){if(o.has(t))throw new Error(`Cycle detected at node: ${t}`);o.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=a.get(e)||[];let o=0,l=!1;for(const e of r)"completely"===e.selectedStatus?o++:"partially"===e.selectedStatus&&(l=!0);return o===n?"completely":l||o>0?"partially":"none"}(t.key),e(t.key))}o.delete(t)}(t)),Y(n)?{data:l}:{rootNode:l[0],data:l.slice(1)}};function qI(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 WI=(e,t,n,r,i=!1)=>{if(!t)throw new Error("Key is required");const a=new Map,o=new Map,l=new Set;let c=[...e];n&&!Y(n)&&(c=[n,...e]),c.forEach(e=>{a.set(e.key,e),e.parentId&&(o.has(e.parentId)||o.set(e.parentId,[]),o.get(e.parentId).push(e))});const s=a.get(t);if(s)if(s.expanded=r,r){(o.get(t)||[]).forEach(e=>e.hide=!!i)}else s.expandedAll=!1,function e(t,n){if(l.has(t))throw new Error(`Cycle detected at node: ${t}`);l.add(t),(o.get(t)||[]).forEach(t=>{t.hide=n,t.expanded=!1,e(t.key,!0)}),l.delete(t)}(t,!0);return Y(n)?{data:c}:{rootNode:c[0],data:c.slice(1)}},XI=e=>`${e.getDate().toString().padStart(2,"0")}/${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getFullYear()}`,QI=(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:bi()}));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:QI(e.data,t,r)}:e})},GI=(e,t,n,r)=>e.map(e=>e.title===t?{...e,data:QI(e.data,n,r)}:e),KI=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,a,o]=n.split("-"),[l,c]=r.split(":");t=new Date(parseInt(o||"",10),parseInt(a||"",10)-1,parseInt(i||"",10),parseInt(l||"",10),parseInt(c||"",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}`)},YI=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)},_I=({data:r,level:i=0,columnCount:a=1,viewModeId:o,ViewComponent:l,handleClick:c,handleStepGroupExpand:s,isStepGroupExpanded:d})=>{const u=0===i?26:i+8,f=new Set(["group","pre","post","script"]),h=A((e,t)=>f.has(e?.toLowerCase())||f.has(t?.toLowerCase())?"6px 8px":"7px 8px",[]);return e(t,{children:r?.map(t=>{const r=o===t.stepId,i=d?.(t.stepId),p=h(t.type,t?.entityType),m=f.has(t?.entityType?.toLowerCase())||f.has(t?.type?.toLowerCase());return n(C,{children:[e("tr",r?{className:"pre-edit-row",id:"getInFocus",children:e("td",{colSpan:a,children:e("div",{style:{marginLeft:u},children:l&&e(l,{})})})}:{children:e("td",{colSpan:a,style:{padding:p},children:n("div",{style:{marginLeft:u,display:"flex",alignItems:"center"},children:[e(_,{title:t?.name,children:n(W,{as:"div",color:"var(--brand-color)",lineHeight:"18px",onClick:()=>c?.(t),children:[t.displayOrder,".",On(t.name,40)]})}),m&&e("div",{className:"pre-accordion-arrow "+(i?"expanded":""),children:e(q,{name:"arrow_right",className:"pre-arrow-svg",color:i?"var(--brand-color)":"var(--default-color)",width:12,height:12,onClick:()=>s?.(t)})})]})})}),i&&e(_I,{data:t.data,level:u,columnCount:a,viewModeId:o,handleClick:c,ViewComponent:l,handleStepGroupExpand:s,isStepGroupExpanded:d})]},t.stepId)})})};var JI=f(({row:r,columns:i,tableBodyRowClass:a,handleOnclick:o,tableDataTextColor:l,withCheckbox:c,onSelectClick:s,draggable:d,indexNumber:u=0,dataLength:f=0,viewModeId:h,ViewComponent:C,handleClick:p,handleStepGroupExpand:A,isStepGroupExpanded:g,scriptType:v})=>{const w=new Set(["group","pre","post","script"]),y=w.has(r?.entityType?.toLowerCase())||w.has(r?.type?.toLowerCase()),E=r?.isDisabled,b=r?._id||r?.stepId,M=!!v&&"cascaded"===r.cascaded,L=E||f<=1||M;let H=(u+1).toString();const{attributes:x,listeners:V,setNodeRef:k,transform:S,transition:Z}=Pc({id:b,disabled:L}),O=m(()=>({transform:mo.Transform.toString(S),transition:Z}),[S,Z]),z=g?.(r.stepId);return n(t,{children:[e("tr",{ref:k,style:O,className:N(a,{"disabled-row":E}),children:i.map((t,i)=>{const a=0===i;return e("td",{style:{paddingLeft:a&&d?"0px":"8px"},onClick:()=>o(t,r,i),className:N(t.className,{"clickable-cell":t.onClick}),children:n(W,{as:"div",color:l,className:"ff-data-checkbox-container",children:[a&&c&&e("span",{className:"ff-table-pre-post-checkbox",children:e(Vn,{onChange:e=>s(e,r),checked:r.checked,disabled:!!E})}),a&&d&&e("div",{className:E?"ff-table-drag":"ff-table-drag-icon",...V,...x,children:e(q,{name:"drag",className:L?"drag-icon-disabled":"drag-icon"})}),fu(r,t,u),a&&y&&e("div",{className:"pre-accordion-arrow "+(z?"expanded":""),children:e(q,{name:"arrow_right",color:z?"var(--brand-color)":"var(--default-color)",width:12,height:12,className:"pre-arrow-svg",onClick:()=>{A?.({...r,serialNumber:H})}})}),t.extraInfo&&t.extraInfo({row:r,indexNumber:u})]})},`${t.accessor}${i}`)})},b),z&&e(_I,{data:r.data,columnCount:i.length,viewModeId:h,ViewComponent:C,handleClick:p,handleStepGroupExpand:A,isStepGroupExpanded:g})]})});const $I=(e,t)=>{const{action:n,sourceIndex:r,nlpName:i,id:a}=t;if(!n)return e;const o=[...e];let l={stepId:"stepId-9745-9745",isNew:!0,disabled:!1,...i&&{name:i},...a&&{id:a}};switch(n){case"addBelow":void 0!==r&&o.splice(r+1,0,l);break;case"replaceNlp":void 0!==r&&o.splice(r,0,l);break;case"EditNlp":void 0!==r&&(o.splice(r,1),o.splice(r,0,l));break;case"addLast":o.push(l)}return o},eN=(e,t="nearest",n=5)=>{if(!e)return;const r=document.getElementById(e);r?r.scrollIntoView({behavior:"smooth",block:t}):n>0?setTimeout(()=>{eN(e,t,n-1)},300):console.warn(`Element with id - "${e}" not found after multiple retries.`)},tN=a(({data:t=[],columns:r=[],headerType:i,withCheckbox:a=!1,onSelect:c,allSelected:d,partialSelected:u=!1,withFixedHeader:f=!0,borderWithRadius:h=!1,headerCheckboxDisabled:C=!1,noDataContent:m,height:A="100%",className:g="",tableHeadClass:v="",tableBodyRowClass:w="",headerTextColor:b,tableDataTextColor:M,draggable:L=!1,onDragEnd:H,loadMore:x=()=>{},editMode:V="",editComponent:k,NlpComponent:S,AddNlp:Z,handleDragStart:O,handleViewComponent:z,handleAccordion:I,loading:D,scriptType:T=!1},F)=>{const R=o(null),[B,j]=s(null),[P,U]=s(null),q=e=>{U(t=>t===e?.stepId?null:e?.stepId)},X=e=>{q(e);const t=z?.(e,q);t?j(()=>t):q(null)},[Q,G]=s(new Map),K=e=>Q.has(e),_=e=>{K(e?.stepId)||(P&&q(null),I?.(e)),D||G(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 R.current=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";x(t)}})},{root:e,rootMargin:"8px",threshold:.1}),R.current.observe(n),R.current.observe(r),()=>{R.current?.disconnect()}},[t,x]);const J=(e,t,n)=>{let{onClick:r,accessor:i}=e;r&&Zp(r)&&r(i,t,n)},$=(e,t)=>{c&&c(e,t)};return l(()=>{eN("getInFocus")},[Z,P]),F&&E(F,()=>({resetStepGroupAccordion:()=>{G(new Map)}})),e(oc,{collisionDetection:Fo,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),a=t.findIndex(e=>e._id===r.id||e.stepId===r.id);-1!==i&&-1!==a&&H&&H(i,a)},modifiers:[Bp],children:e(Nc,{disabled:!L,items:t?.map(e=>e.stepId||e._id),strategy:Oc,children:n("section",{style:{height:A},id:"ff-table-scroll-container",className:N(g,{"pre-fixed-header-table":f,"pre-border-borderRadius":h}),"aria-label":"Pre and post table container",children:[n("table",{className:N("ff-table-pre-post"),cellSpacing:0,"aria-label":"Pre post table",children:[e("thead",{className:N({"pre-table-thead":f},v),"aria-label":"Table header",children:e("tr",{children:r.map((t,r)=>e("th",{className:N(`${i&&`${i}-bg`}`,`${b&&`${b}-color`}`),style:{width:t?.width},children:n(W,{as:"div",fontWeight:"semi-bold",className:"ff-label-checkbox-container",lineHeight:"18px",color:"var(--drawer-title-color)",children:[0===r&&a&&e("span",{className:"ff-table-pre-post-checkbox",children:e(Vn,{onChange:e=>{$(e,{allSelected:e.target.checked})},checked:void 0!==d&&d,partial:!!u,disabled:C})}),t.header]})},t.header))})}),n("tbody",{className:"pre-table-tbody","aria-label":"Table body",children:[e("tr",{id:"ff-table-first-node"}),$I(t,Z??{})?.map((i,o)=>{const l=V===i.stepId;return l||i.isNew?n("tr",{id:"getInFocus",className:"pre-edit-row",children:[l&&p(k)&&e("td",{colSpan:r.length,children:y(k,{rowData:i,rowIndex:o+1})}),i.isNew&&!l&&p(S)&&e("td",{colSpan:r.length,children:y(S,{rowIndex:o,rowData:i})})]},i.stepId||o):e(JI,{row:i,indexNumber:o,columns:r,tableBodyRowClass:w,handleOnclick:J,tableDataTextColor:M,withCheckbox:a,onSelectClick:$,draggable:L,dataLength:t?.length,viewModeId:P,ViewComponent:B,handleClick:X,handleStepGroupExpand:_,isStepGroupExpanded:K,scriptType:T})}),e("tr",{id:"ff-table-last-node"})]})]}),Y(t)&&Y(Z)&&e("section",{className:"ff-no-data-content",style:{height:`calc(${A} - 50px)`},"aria-label":"No data content",children:m})]})})})}),nN=f(({data:r=[],level:a=0,columnCount:c=1,viewModeId:s,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:C,isViewPrivilegeMode:p,columns:m=[],parentIndex:A,updateRowHeight:g})=>{const v=o([]),w=new Set(["group","pre","post","script"]),y=a+8,E=(e,t,n,r)=>{const i=e[t.accessor];if(t.cell){const a=e._id||e.id;return t.cell({value:i,row:e,column:t.accessor,index:n,tableType:r,...a&&{refId:a}})}return t.accessor||i&&"object"!=typeof i?i:"--"};return l(()=>{if(!g)return;const e=new ResizeObserver(()=>{let e=0;v.current.forEach(t=>{t&&(e+=t.getBoundingClientRect().height)}),e>0&&g(A??0,e)});return v.current.forEach(t=>{t&&e.observe(t)}),()=>e.disconnect()},[r,g,A,C]),e(t,{children:r?.map((t,r)=>{const a=A??0+r+1,o=w.has(t?.entityType?.toLowerCase())||w.has(t?.type?.toLowerCase());return n(i.Fragment,{children:[e("tr",s===t?.stepId?{ref:e=>v.current[r]=e,className:"steps-edit-row",id:"getInFocus",children:e("td",{colSpan:c,children:e("div",{style:{marginLeft:`${y}px`},children:d&&e(d,{})})})}:{ref:e=>v.current[r]=e,children:m.map((r,i)=>{return e("td",{style:{maxWidth:r.width,padding:(a=t?.type,l=t?.entityType,w.has(a?.toLowerCase())||w.has(l?.toLowerCase())?"6px 8px":"7px 8px")},children:n(W,{as:"div",className:"ff-data-checkbox-container",children:[n("div",{className:"ff-data-checkbox-container-content",style:{marginLeft:0===i?`${y}px`:0},onClick:()=>{0===i&&!t?.displayName?.includes("End")&&!t?.isDisabled&&u?.({...t,tableType:f})},children:[!p&&0===i&&e("div",{style:{padding:"4px 18px"}}),E({...t,marginLeft:y},r)]}),0===i&&o&&e("div",{className:"ff-accordion-arrow "+(C?.(t.stepId)?"expanded":""),children:e(q,{name:"arrow_right",color:C?.(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 a,l})}),C?.(t.stepId)&&e(nN,{data:t.data,level:y,columnCount:c,viewModeId:s,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:C,isViewPrivilegeMode:p,columns:m,parentIndex:a,updateRowHeight:g})]},t.stepId)})})});nN.displayName="StepGroupAccordions";const rN=f(({row:r,columns:i,tableBodyRowClass:a,handleOnclick:c,tableDataTextColor:s,withCheckbox:d,onSelectClick:u,draggable:f,indexNumber:h=0,tableType:C="",viewModeId:p,ViewComponent:A,handleClick:g,selectedRows:v,handleStepGroupExpand:w,isStepGroupExpanded:y,dataLength:E,stepPartialSelect:b,isViewPrivilegeMode:M,isClientSide:L,measureIndex:H=h,renderExpandedChildren:x=!0,updateRowHeight:V,rowId:k})=>{const S=new Set(["group","pre","post","script"]),Z=S.has(r?.entityType?.toLowerCase())||S.has(r?.type?.toLowerCase()),O=o(null),z=m(()=>r?.isDisabled||(E??0)<=1||r.isSpecialNlp,[r,E]),I=(h+1).toString(),{attributes:D,listeners:T,setNodeRef:F,transform:R,transition:B}=Pc({id:r?._id||r?.stepId,disabled:z}),j=m(()=>({transform:mo?.Transform?.toString(R),transition:B}),[R,B]),P=r?._id||r?.stepId;l(()=>{if(O.current&&V){const e=O.current.getBoundingClientRect().height;V(H,e)}},[r,V,H,y?.(r?.stepId)]);const U=e=>M||L?Z&&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,F(e)},style:j,className:N(a,"sortable-item",{"disabled-inner-row":z}),id:P,children:i?.map((i,a)=>e(t,{children:e("td",{style:{padding:U(a),maxWidth:i.width},onClick:()=>c(i,r,h),children:n(W,{as:"div",color:s,className:"ff-data-checkbox-container",children:[0===a&&!L&&f&&e("div",{className:z?"ff-table-drag":"ff-table-drag-icon",...T,...D,children:e(q,{name:"drag",className:z?"drag-icon-disabled":"drag-icon"})}),0===a&&!L&&d&&e("span",{className:C&&v[C]?.has(r.stepId)||b?.has(r.stepId)?"ff-step-table-select-checkbox":"ff-table-checkbox-step",children:e(Vn,{onChange:e=>u(C,r,e.target.checked),checked:!!v[C]?.has(r.stepId),partial:b?.has(r.stepId),disabled:r?.isSpecialNlp&&r?.name?.includes("End")})}),n("div",{className:"ff-margin-container",style:{marginLeft:0===a?r.marginLeft:0},children:[fu(r,i,h,C),Z&&0===a&&!L&&e("div",{className:"ff-accordion-arrow "+(y?.(r?.stepId)?"expanded":""),children:e(q,{name:"arrow_right",className:"steps-arrow-svg",color:y?.(r?.stepId)?"var(--brand-color)":"var(--default-color)",width:12,height:12,onClick:()=>w?.({...r,tableType:C,serialNumber:I})})}),i.extraInfo?.({row:r,indexNumber:h,tableType:C})]})]})},`${i.accessor}-${bi()}`)}))},P),x&&y?.(r?.stepId)&&e(nN,{data:r.data||r?.stepResults,columnCount:i.length,viewModeId:p,ViewComponent:A,handleClick:g,tableType:C,handleStepGroupExpand:w,isStepGroupExpanded:y,level:r?.marginLeft,isViewPrivilegeMode:M,columns:i,parentIndex:h,updateRowHeight:V})]})});rN.displayName="StepTableMainRow";const iN=new Set(["group","pre","post","script"]),aN=(e,t,n)=>`${t}-${e?._id||e?.stepId||e?.id||n}`,oN=e=>iN.has(e?.entityType?.toLowerCase())||iN.has(e?.type?.toLowerCase()),lN=e=>oN(e)?"6px 8px":"7px 8px",cN=({row:t,indent:r=0,columns:i,tableType:a,viewModeId:c,ViewComponent:s,handleClick:d,handleStepGroupExpand:u,isStepGroupExpanded:f,isViewPrivilegeMode:h,measureIndex:C,updateRowHeight:p})=>{const m=o(null),A=oN(t);return l(()=>{const e=m.current;if(!e||!p)return;const t=()=>{p(C,e.getBoundingClientRect().height)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[C,t,p,c]),e("tr",c===t?.stepId?{ref:m,className:"steps-edit-row",id:"getInFocus","data-rowid":t?.stepId,children:e("td",{colSpan:i.length,children:e("div",{style:{marginLeft:`${r}px`},children:s&&e(s,{})})})}:{ref:m,"data-rowid":t?.stepId,children:i.map((i,o)=>e("td",{style:{maxWidth:i.width,padding:lN(t)},children:n(W,{as:"div",className:"ff-data-checkbox-container",children:[n("div",{className:"ff-data-checkbox-container-content",style:{marginLeft:0===o?`${r}px`:0},onClick:()=>{0===o&&!t?.displayName?.includes("End")&&!t?.isDisabled&&d?.({...t,tableType:a})},children:[!h&&0===o&&e("div",{className:"ff-nested-row-spacer"}),XL({...t,marginLeft:r},i)]}),0===o&&A&&e("div",{className:"ff-accordion-arrow "+(f?.(t.stepId)?"expanded":""),children:e(q,{name:"arrow_right",color:f?.(t.stepId)?"var(--brand-color)":"var(--default-color)",className:"steps-arrow-svg",width:12,height:12,onClick:()=>u?.({...t,tableType:a})})})]})},`${t?.stepId||t?._id}-${o}`))})},sN=({row:t,columns:r,isEdit:i,editComponent:a,NlpComponent:c,displayIndex:s,isFocusRow:d,measureIndex:u,updateRowHeight:f})=>{const h=o(null);return l(()=>{const e=h.current;if(!e||!f)return;const t=()=>{f(u,e.getBoundingClientRect().height)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[u,t,f,i]),n("tr",{ref:h,className:"steps-edit-row",id:d?"getInFocus":void 0,"data-rowid":t.stepId||"new-row",children:[i&&p(a)&&e("td",{colSpan:r.length,children:y(a,{rowData:t,rowIndex:s+1})}),t.isNew&&!i&&p(c)&&e("td",{colSpan:r.length,children:y(c,{rowIndex:s,rowData:t})})]})},dN=({data:t=[],columns:r=[],headerType:i,withCheckbox:a=!1,onSelect:c,withFixedHeader:d=!0,borderWithRadius:u=!1,noDataContent:f,height:h="100%",className:C="",tableBodyRowClass:p="",headerTextColor:g,tableDataTextColor:v,draggable:w=!1,onDragEnd:y,loadMore:E=()=>{},editMode:b="",editComponent:M,NlpComponent:L,AddNlp:H,handleDragStart:x,tableType:V,viewModeId:k,ViewComponent:S,handleClick:Z,selectedRows:O,handleStepGroupExpand:z,isStepGroupExpanded:I,stepPartialSelect:D,isViewPrivilegeMode:T,isClientSide:F,highlightKey:R,onHighlightComplete:B})=>{const j=o(null),P=o(null),[U,q]=s(0),[W,X]=s(0),[Q,G]=s([]),[K,_]=s(null),J=34,$=o(0),ee=o(new Map),te=o([]),ne=o(null),[re,ie]=s(!1),ae="auto"!==h,oe=!!(b||k||H&&Object.keys(H).length>0),le=ae&&!oe,ce=m(()=>$I(t,H??{}),[t,H]),se=m(()=>{if(!le)return ce.map((e,t)=>({key:aN(e,"main",t),kind:"main",row:e,dataIndex:t}));const e=[],t=(n=[],r=0)=>{const i=r+8;n.forEach(n=>{const r=e.length;e.push({key:aN(n,"nested",r),kind:"nested",row:n,dataIndex:r,indent:i}),I?.(n?.stepId)&&t(n?.data||n?.stepResults||[],i)})};return ce.forEach((n,r)=>{e.push({key:aN(n,"main",r),kind:"main",row:n,dataIndex:r});!(b===n?.stepId||n?.isNew)&&I?.(n?.stepId)&&t(n?.data||n?.stepResults||[],n?.marginLeft)}),e},[b,ce,le,I]);l(()=>{G(e=>{const t=se.map(e=>ee.current.get(e.key)??J),n=e.length!==t.length||e.some((e,n)=>e!==t[n]);return n?t:e})},[se]),l(()=>{te.current=Q},[Q]);const de=se.length,ue=m(()=>{if(le)return Q.length!==de?de*J:Q.reduce((e,t)=>e+t,0)},[le,Q,de]);l(()=>{if(!le||!P.current||void 0===ue)return;const e=Math.max(0,ue-W);U>e&&(P.current.scrollTop=e,q(e))},[W,le,U,ue]),l(()=>{P.current&&X(P.current.clientHeight)},[t,H]),l(()=>{const e=P.current;if(!e)return;const t=()=>{X(e.clientHeight)};if(t(),"undefined"==typeof ResizeObserver)return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)};const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),l(()=>{if(Y(R))if(b)ne.current=null,ie(!1),_(b);else if(H&&Object.keys(H).length>0){ne.current=null,ie(!1);const e=$I(t,H).find(e=>e.isNew);e&&_(e.stepId||"new-row")}else ne.current=null,ie(!1),_(null);else ne.current!==R&&(ne.current=R,ie(!1)),re||_(R)},[b,H,t,R,re]),l(()=>{if(K&&P.current&&(Y(R)||!re)){const e=setTimeout(()=>{const e=P.current?.querySelector(`[data-rowid="${K}"]`);e&&(e.scrollIntoView({behavior:"smooth",block:"nearest"}),Y(R)||(ie(!0),setTimeout(()=>{B?.()},300)))},100);return()=>clearTimeout(e)}},[K,Q,R,B,re]);const fe=A((e,t)=>{const n=Math.ceil(t),r=te.current[e]??J;if(r===n)return;const i=se[e]?.key;i&&ee.current.set(i,n);const a=n-r;if(le&&e<$.current&&P.current){const e=Math.max(0,P.current.scrollTop+a);P.current.scrollTop=e,q(e)}G(t=>{const r=[...t];return e<r.length&&r[e]!==n?(r[e]=n,r):t})},[le,se]),he=A(e=>{const t=e.currentTarget.scrollTop;q(t),Ce(t)},[de]),Ce=A(e=>{if(!P.current)return;(e+P.current.clientHeight)/P.current.scrollHeight>.8&&E("below"),e<200&&E("above")},[E]),{startIndex:pe,firstVisibleIndex:me,paddingTop:Ae,paddingBottom:ge,visibleRows:ve}=m(()=>{if(!le)return{startIndex:0,firstVisibleIndex:0,endIndex:de-1,paddingTop:0,paddingBottom:0,visibleRows:se};let e=0,t=0,n=de-1,r=0,i=0;if(Q.length===de&&W>0){let a=0;for(let e=0;e<de;e++){const n=Q[e]??J;if(a+n>U){t=e;break}a+=n,e===de-1&&(t=de-1)}a=0;for(let e=0;e<de;e++)if(a+=Q[e]??0,a>=U+W&&n===de-1){n=e;break}if(e=Math.max(0,t-5),n=Math.min(de-1,n+5),K){const t=se.findIndex(({row:e})=>e?.stepId===K||e?.isNew&&"new-row"===K);t>=0&&(t<e?e=t:t>n&&(n=t))}r=Q.slice(0,e).reduce((e,t)=>e+t,0),i=Q.slice(n+1).reduce((e,t)=>e+t,0)}else{if(t=Math.max(0,Math.floor(U/J)),e=Math.max(0,t-5),n=Math.min(de-1,t+Math.ceil(W/J)+5),K){const t=se.findIndex(({row:e})=>e?.stepId===K||e?.isNew&&"new-row"===K);t>=0&&(t<e?e=t:t>n&&(n=t))}r=e*J,i=(de-n-1)*J}return{startIndex:e,firstVisibleIndex:t,endIndex:n,paddingTop:r,paddingBottom:i,visibleRows:se.slice(e,n+1)}},[le,de,se,Q,W,U,5,K,J]);l(()=>{$.current=me},[me]),l(()=>{const e=P.current,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";E(t)}})},{root:e,rootMargin:"8px",threshold:.1}),j.current.observe(n),j.current.observe(r),()=>{j.current?.disconnect()}},[t?.length,E]);const we=(e,t,n)=>{const{onClick:r,accessor:i}=e;r&&Zp(r)&&r(i,t,n)},ye=(e,t,n)=>{c&&c(e,t,n)};return e(oc,{collisionDetection:Fo,onDragStart:x,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),a=t.findIndex(e=>e._id===r.id||e.stepId===r.id);-1!==i&&-1!==a&&y&&y(i,a)},modifiers:[Bp],children:e(Nc,{disabled:!w,items:t?.map(e=>e._id||e.stepId),strategy:Oc,children:e("div",{ref:P,style:{height:h,position:"relative",overflowY:ae?"auto":void 0},id:"ff-table-scroll-container",className:N(C,{"ff-fixed-header-steps-table":d,"steps-border-borderRadius":u}),onScroll:he,children:n("div",{className:"ff-scroll-container-inner",style:{height:ue},children:[n("table",{className:N("ff-table-steps"),cellSpacing:0,children:[e("thead",{className:"steps-inner-thead",children:e("tr",{children:r?.map(t=>e("th",{className:N(`${i&&`${i}-bg`}`,`${g&&`${g}-color`}`),style:{width:t?.width}},`${t.header}-${bi()}`))})}),n("tbody",{className:"ff-steps-tbody",children:[e("tr",{id:"ff-table-first-node",className:"ff-hidden-sentinel"}),Ae>0&&e("tr",{"aria-hidden":"true",children:e("td",{className:"ff-padding-row",style:{height:Ae},colSpan:r.length})}),ve.map((n,i)=>{const o=pe+i,{row:l}=n;if("nested"===n.kind)return e(cN,{row:l,indent:n.indent,columns:r,tableType:V,viewModeId:k,ViewComponent:S,handleClick:Z,handleStepGroupExpand:z,isStepGroupExpanded:I,isViewPrivilegeMode:T,measureIndex:o,updateRowHeight:fe},n.key);const c=n.dataIndex,s=b===l.stepId,d=s||l.isNew,u=s&&l.stepId===K||l.isNew&&"new-row"===K;return d?e(sN,{row:l,columns:r,isEdit:s,editComponent:M,NlpComponent:L,displayIndex:c,isFocusRow:u,measureIndex:o,updateRowHeight:fe},n.key):e(rN,{rowId:l.stepId,row:l,indexNumber:c,columns:r,tableBodyRowClass:p,handleOnclick:we,tableDataTextColor:v,withCheckbox:a,onSelectClick:ye,draggable:w,tableType:V,viewModeId:k,ViewComponent:S,handleClick:Z,selectedRows:O,handleStepGroupExpand:z,isStepGroupExpanded:I,dataLength:t?.length,stepPartialSelect:D,isViewPrivilegeMode:T,isClientSide:F,measureIndex:o,renderExpandedChildren:!le,updateRowHeight:fe},n.key)}),ge>0&&e("tr",{"aria-hidden":"true",children:e("td",{className:"ff-padding-row",style:{height:ge},colSpan:r.length})}),e("tr",{id:"ff-table-last-node",className:"ff-hidden-sentinel"})]})]}),Y(t)&&e("div",{className:"steps-no-data-content",style:{height:ae?`calc(${h} - 50px)`:"auto"},children:f})]})})})})},uN=e=>["ElseIfCondition","ElseCondition"].includes(e?.nlpName);let fN=null,hN=null;const CN=e=>{if(hN===e&&fN)return fN;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,a=i.findIndex(t=>t.stepId===e?.stepId),o=i.findIndex(e=>e.stepId===n?.stepId);return r?i.slice(a+1,o).map(e=>e.stepId):i.slice(a,o+1).map(e=>e.stepId)};return t?.forEach(e=>{const i=(e=>e.specialNlpId??e.conditionSearchKey??null)(e);if(!i)return;const a=n.get(i)||{start:null,end:null,childIds:[],allIds:[]};if(e?.isSpecialNlp&&e.name?.startsWith("Start")){a.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&&(a.end=n,a.childIds=r(e,n,!0),a.allIds=r(e,n,!1))}n.set(i,a)}),fN=n,hN=e,n},pN=e=>e.includes("/")?e.split("/").slice(0,-1).join("/"):e;const mN=e=>{if(!e)return!1;for(const t of Object.values(e))if(t&&t.size>0)return!0;return!1},AN=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)"}},gN=e=>{switch(e){case"PASS":return"Passed";case"FAIL":return"Failed";case"SKIP":return"Skipped";case"WARNING":return"Warning";default:return e}},vN=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"}},wN=({metaData:t,width:r=0,displayIcon:i=!1})=>{const a=t?.total||0,o=[{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=o.filter(e=>e.count>0),c=l.map(({count:e,name:t})=>`${e}/${a} ${t}`).join(" "),s=r?On(c,r,"pixel"):c,d=o.map(e=>({...e,count:e.count??0})),u=d.reduce((e,{count:t})=>e+t,0),f=d.some(({count:e})=>e>0),h=i?d:o,C=[["Passed","Failed"],["Warning","Skipped"]].map(e=>h.filter(({name:t})=>e.includes(t))),p=(e,t)=>"Skipped"===e?"var(--status-skipped-bg-color)":t,A=m(()=>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:p(t,i)}}),n(W,{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(W,{as:"span",fontWeight:"medium",fontSize:10,className:"ff-status-tooltip-total",children:["Total Steps - ",u]})]}),[C,u]);if(i)return f?e(_,{title:A,children:e("span",{className:"ff-status-icon-wrapper",children:e(q,{name:"status_icon"})})}):null;const g=[];let v=0;for(const{count:e,name:t,color:n}of l){const r=`${e}/${a} ${t}`;if(!(v+r.length<=s.length)){const e=s.slice(v).trim();e&&g.push({text:e,color:n});break}g.push({text:r,color:n}),v+=r.length+1}return e("div",{className:"ff-stepResultStats",children:e(_,{title:c,children:e(W,{as:"div",className:"status-inline-text",fontWeight:"semi-bold",children:g.map(({text:t,color:n},r)=>e(W,{as:"span",fontWeight:"semi-bold",style:{color:n,whiteSpace:"nowrap"},children:t+" "},r))})})})},yN=({isHeaderRequired:r,isViewPrivilegeMode:i,onAccordionClick:a,isBulkEnable:o,showActionCell:l,handleMainCheckbox:c,isAllSelected:s,isPartialSelected:d,tableMeta:u=[],title:f,totalRows:h,expanded:C,actionCell:p,row:m,metaData:A,isClientSide:g,isMaximize:v})=>{const w=u?.map(e=>e.width),y=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&&!g&&{backgroundColor:"var(--hover-color)"}},children:[e("div",{style:{width:`${y(0)}px`},children:n("div",{className:"accordion-header",style:{paddingLeft:i||g?"8px":"24px"},children:[!i&&!g&&e(Vn,{onChange:e=>c(f,e.target.checked),checked:s(f,h),partial:d(f,h),disabled:0===h}),e("div",{className:"header-title",children:e(W,{as:"div",fontWeight:"semi-bold",color:g?"var(--brand-color)":"var(--nlp-option-color)",cursor:"default",lineHeight:"18px",children:f})}),e("div",g?{style:{padding:"12px"}}:{className:"accordion-arrow "+(C?"expanded":""),onClick:()=>a(f),children:e(q,{name:"arrow_right",color:C?"var(--brand-color)":"var(--default-color)",width:16,height:16,className:"steps-arrow-svg"})}),n("div",{className:"ff_action_container",children:[A&&e(wN,{metaData:A,width:(()=>{const e=m?.marginLeft??0;if((s?.(f,h)||d?.(f,h))&&"Steps"===f)return 200-e;return(v?350:{"Depends on Scripts":240,"Post Conditions":230,"Pre Conditions":260,Steps:310}[f]??250)-e})()}),l&&!o&&e(t,{children:p(m)})]})]})}),A?.message&&e("div",{className:"step-result",style:{width:`${y(1)}px`},children:e(_,{title:A?.message,placement:"bottom-start",children:e(W,{lineHeight:"18px",as:"div",className:"step-result-text",color:AN(A?.status),children:A?.message})})}),A?.status&&e("div",{className:"step-result",style:{width:`${y(2)}px`},children:e(Ba,{label:gN(A?.status),status:vN(A?.status),children:A?.status})})]})},EN=i.memo(i.forwardRef(({tableMeta:t=[],tableData:r=[],noDataContent:i,height:a="100%",withFixedHeader:o=!1,headerType:c,handleDragStart:d,onDragEnd:u,editMode:f,editComponent:h,NlpComponent:C,AddNlp:p,handleAccordion:g,handleViewComponent:v,onSelectClick:w,loading:y=!1,isViewPrivilegeMode:b=!1,defaultExpanded:M="Steps",isHeaderRequired:L=!0,isClientSide:H=!1,highlightKey:x,onHighlightComplete:V,isDraggable:k=!0,isMaximize:S=!1},Z)=>{const[O,z]=s(null),[I,D]=s(null),[T,F]=s({}),[R,B]=s(new Map),[j,P]=s(!1),U=A((e,t)=>{const n=r.find(t=>t.title===e);n&&n.data&&0!==n.data.length&&F(n=>({...n,[e]:"open"===t||!n[e]}))},[r]),q=m(()=>e=>T[e]??!1,[T]),X=A(e=>{D(t=>t===e?.stepId?null:e?.stepId)},[]),Q=A(e=>{X(e);const t=v?.(e,X);t?z(()=>t):X(null)},[v,X]),[G,K]=s(Object.fromEntries(r.map(e=>[e.title,new Set]))),[_,J]=s(new Set);l(()=>{if(K(e=>function(e,t){const n={};return e.forEach(e=>{const r=e.data.map(e=>e.stepId),i=t[e.title]||new Set,a=new Set([...i].filter(e=>r.includes(e)));n[e.title]=a}),n}(r,e)),J(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)),F(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 a=e.title,o=a in t,l="All"===n?Object.values(r).includes(a):a===r[n];i[a]=o?t[a]??!1:l}),i}(r,e,M)),G&&!mN(G))return;const{updateSelectRow:e,updateStepPartialSelect:t}=((e,t,n)=>{const r=CN(e),i=new Set(t.Steps),a=new Set(n);return r?.forEach(e=>{const t=e?.childIds;if(0===t?.length)return;const n=t.every(e=>i.has(e)),o=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)),uN(e?.start)&&(o||n)){const t=e?.start?.conditionSearchKey,n=pN(t),o=r?.get(n)?.allIds;if(0===o?.length)return;o?.forEach(e=>{i.add(e),a.delete(e)})}o&&!n?(a.add(e.start.stepId),a.add(e.end.stepId)):(a.delete(e.start.stepId),a.delete(e.end.stepId))}),{updateSelectRow:{...t,Steps:i},updateStepPartialSelect:a}})(r,G,_);t&&J(t),e&&K(e)},[r]),l(()=>{if(mN(G)){const e={...G,partialSelected:_};w?.(e)}else w?.(G)},[G]);const $=A((e,t)=>{const n=r.find(t=>t.title===e)?.data.map(e=>e.stepId);n&&(K(r=>({...r,[e]:t?new Set(n):new Set})),t||J(new Set))},[r]),ee=A((e,t,n,r)=>{const{updateSelectRow:i,updateStepPartialSelect:a}=((e,t,n,r,i,a="Steps")=>{const o=new Set(r[a]);if("Steps"===a&&(t?.isSpecialNlp||t?.conditionId||t?.parentSpecialNlpId)){const{updateStepPartialSelect:l}=function(r){const a=new Set(i),l=CN(e),c=e=>{const t=e?.conditionSearchKey,n=pN(t),r=l.get(n);r&&"IfCondition"===r.start.nlpName&&0===r?.start?.marginLeft&&s(r.start),!r?.start?.conditionSearchKey?.includes("/")||"IfCondition"===r?.start.nlpName&&0===r?.start?.marginLeft||c(r.start)},s=e=>{if(e?.isSpecialNlp){const t=e?.specialNlpId||e?.conditionSearchKey,r=t&&l.get(t);r&&Array.isArray(r.allIds)&&r.allIds.forEach(e=>{a.delete(e),n?o.add(e):o.delete(e)})}else n?o.add(e?.stepId):o.delete(e?.stepId)},d=e=>{let s=!0;const d=e=>{const t=e?.childIds;if(uN(e?.start)){const t=(e=>e.includes("/")&&e.split("/")[0]||e)(e?.start?.conditionSearchKey),a=l.get(t),o=a?.start?.stepId,s=i.has(o);n&&!s&&c(r)}if(0===t?.length)return;const u=t.every(e=>o.has(e)),f=t.some(e=>o.has(e));if(u?(o.add(e.start?.stepId),o.add(e.end?.stepId)):(o.delete(e.start?.stepId),o.delete(e.end?.stepId)),f&&!u?(a.add(e.start?.stepId),a.add(e.end?.stepId)):(a.delete(e.start?.stepId),a.delete(e.end?.stepId)),e?.start?.parentSpecialNlpId){const t=l.get(e.start.parentSpecialNlpId);t&&d(t)}if(e?.start?.conditionSearchKey){const t=pN(e?.start?.conditionSearchKey),n=e?.start?.conditionSearchKey,r=e?.start?.conditionId;if(n===r&&s){s=!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=>{o.has(e)&&i++});const c=i>0&&i<r.length,u=0===i,f=e?.conditionSearchKey;if(!f.includes("/")&&f&&!n&&!c&&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=>{o.delete(e),a.delete(e)}),o.delete(e.start.stepId),o.delete(e.end.stepId),a.delete(e.start.stepId),a.delete(e.end.stepId))})}const h=!t?.isSpecialNlp||uN(e)||t?.specialNlpId?e.conditionSearchKey:pN(e.conditionSearchKey);s=!0;const C=l.get(h);C&&d(C)}}};return s(r),d(r),{updateStepPartialSelect:a}}(t);return{updateSelectRow:{...r,[a]:o},updateStepPartialSelect:l}}return n?o.add(t.stepId):o.delete(t.stepId),{updateSelectRow:{...r,[a]:o}}})(e,t,n,G,_,r);a&&J(a),i&&K(i)},[G,_]),te=A((e,t,n)=>{ee(r,t,n,e)},[r,ee]),ne=A((e,t)=>{const n=t>0&&G[e]?.size===t;return e.includes("Script")&&P(n),n},[G]),re=A((e,t)=>{const n=G[e]?.size||0;return n>0&&n<t},[G]),ie=A(e=>R.has(e),[R]),ae=A(e=>"Steps"!==e||b?15:12,[b]),oe=A(e=>"auto"!==a&&(e?.data?.length??0)>ae(e?.title),[ae,a]),le=m(()=>{const e=r.filter(e=>q(e.title)),t=e.filter(oe),n=e.some(e=>!oe(e));return 1===t.length&&!n},[q,oe,r]),ce=A(e=>{const t=e?.data?.length??0;if(0===t)return"360px";if(t<=ae(e?.title))return"auto";if(!le)return a;const n=L&&!H?32:0,i=32*r.length;return`calc(${a} - ${n+i}px)`},[ae,a,H,L,le,r.length]),se=A(e=>{ie(e?.stepId)||(I&&X(null),g?.(e)),y||B(t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n})},[ie,I,X,g,y]),de=A(n=>"Steps"!==n.title||b?e(dN,{onHighlightComplete:V,highlightKey:x,draggable:!1,editMode:f,withCheckbox:!b,editComponent:h,columns:t,data:n.data,headerType:c,noDataContent:i,tableType:n.title,onSelect:te,selectedRows:G,viewModeId:I,ViewComponent:O,handleClick:Q,handleStepGroupExpand:se,isStepGroupExpanded:ie,isViewPrivilegeMode:b,height:ce(n),isClientSide:H}):e(dN,{onHighlightComplete:V,highlightKey:x,draggable:k,columns:t,onDragEnd:u,data:n.data,headerType:c,withCheckbox:!0,editMode:f,editComponent:h,noDataContent:i,NlpComponent:C,AddNlp:p,tableType:n.title,handleDragStart:()=>{R.clear(),d?.()},onSelect:te,selectedRows:G,viewModeId:I,ViewComponent:O,handleClick:Q,handleStepGroupExpand:se,isStepGroupExpanded:ie,stepPartialSelect:_,height:ce(n),isClientSide:H}),[b,V,x,k,t,u,c,f,h,i,C,p,R,d,te,G,I,O,Q,se,ie,_,r.length,ce,H]);return E(Z,()=>({resetSelection:()=>{K(Object.fromEntries(r.map(e=>[e.title,new Set]))),J(new Set)},handleUpdateCheckbox:(e,t)=>{const n=e?.parentSpecialNlpId,i=e?.conditionSearchKey;(n||i)&&ee(t||r,e,!1)},deleteRow:e=>{K(t=>Object.fromEntries(Object.entries(t)?.map(([t,n])=>[t,new Set([...n].filter(t=>t!==e?.stepId))])))},resetStepGroupAccordion:()=>{B(new Map)}}),[r,ee]),l(()=>{Y(p)||(z(()=>null),D(null),"addLast"===p?.action&&U("Steps","open"))},[p]),n("section",{style:{height:a},className:N("ff-accordion-table-container-steps",{"ff-accordion-fixed-header-table":o}),"aria-label":"Step landing table",children:[L&&!H&&e("table",{cellSpacing:0,className:N("ff-accordion-table",{"ff-accordion-fixed-header":o}),"aria-label":"Step table header",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:N("ff-table-header",c&&`ff-accordion-table--${c}-bg`),"aria-label":t.header,children:e(W,{as:"div",fontWeight:"semi-bold",lineHeight:"18px",color:"var(--drawer-title-color)",children:t.header})},`${t.header}-${n}`))})})}),e("section",{className:"ff-accordion-table-body",style:{overflowY:le?"hidden":"auto"},"aria-label":"Step table body",children:r?.map(r=>{const{title:i,data:a,actionCell:o,metaData:l}=r,c=a.length,s=q(i),d=G[i]?.size??0;return n("article",{className:"column-table-accordion","aria-label":`${i} section`,children:[e(yN,{isViewPrivilegeMode:b,onAccordionClick:U,showActionCell:d>0&&c>0&&o,handleMainCheckbox:$,isAllSelected:ne,isPartialSelected:re,title:i,totalRows:c,expanded:s,metaData:l,actionCell:o,row:r,tableMeta:t,isHeaderRequired:L,isBulkEnable:j,isClientSide:H,isMaximize:S}),s&&de(r)]},i)})})]})}));EN.displayName="StepLandingTable";var bN,MN,LN,HN,xN,VN,kN,SN,ZN,ON,zN,IN,NN,DN,TN,FN,RN,BN,jN,PN,UN,qN,WN,XN,QN,GN,KN,YN,_N,JN,$N,eD,tD,nD,rD,iD,aD,oD,lD,cD,sD,dD,uD,fD,hD,CD,pD,mD,AD,gD,vD,wD,yD,ED,bD,MD,LD,HD,xD,VD,kD,SD,ZD,OD,zD,ID,ND,DD,TD,FD,RD,BD,jD,PD,UD,qD,WD,XD,QD,GD,KD,YD,_D,JD,$D,eT,tT,nT,rT,iT,aT,oT={exports:{}};function lT(){return bN||(bN=1,oT.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 o(e)?e:Q(e)}function r(e){return l(e)?e:G(e)}function i(e){return c(e)?e:K(e)}function a(e){return o(e)&&!s(e)?e:Y(e)}function o(e){return!(!e||!e[u])}function l(e){return!(!e||!e[f])}function c(e){return!(!e||!e[h])}function s(e){return l(e)||c(e)}function d(e){return!(!e||!e[C])}t(r,n),t(i,n),t(a,n),n.isIterable=o,n.isKeyed=l,n.isIndexed=c,n.isAssociative=s,n.isOrdered=d,n.Keyed=r,n.Indexed=i,n.Set=a;var u="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",p="delete",m=5,A=1<<m,g=A-1,v={},w={value:!1},y={value:!1};function E(e){return e.value=!1,e}function b(e){e&&(e.value=!0)}function M(){}function L(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 H(e){return void 0===e.size&&(e.size=e.__iterate(V)),e.size}function x(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?H(e)+t:t}function V(){return!0}function k(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function S(e,t){return O(e,t,0)}function Z(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,I=1,N=2,D="function"==typeof Symbol&&Symbol.iterator,T="@@iterator",F=D||T;function R(e){this.next=e}function B(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 j(){return{value:void 0,done:!0}}function P(e){return!!W(e)}function U(e){return e&&"function"==typeof e.next}function q(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(D&&e[D]||e[T]);if("function"==typeof t)return t}function X(e){return e&&"number"==typeof e.length}function Q(e){return null==e?oe():o(e)?e.toSeq():se(e)}function G(e){return null==e?oe().toKeyedSeq():o(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function K(e){return null==e?oe():o(e)?l(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?oe():o(e)?l(e)?e.entrySeq():e:ce(e)).toSetSeq()}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=z,R.VALUES=I,R.ENTRIES=N,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[F]=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=ae,Q.Keyed=G,Q.Set=Y,Q.Indexed=K;var _,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 ae(e){return!(!e||!e[ee])}function oe(){return _||(_=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(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 ce(e){var t=de(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function se(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 X(e)?new te(e):U(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 a=i.length-1,o=0;o<=a;o++){var l=i[n?a-o:o];if(!1===t(l[1],r?l[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var i=e._cache;if(i){var a=i.length-1,o=0;return new R(function(){var e=i[n?a-o:o];return o++>a?j():B(t,r?e[0]:o-1,e[1])})}return e.__iteratorUncached(t,n)}function he(e,t){return t?Ce(t,e,"",{"":e}):pe(e)}function Ce(e,t,n,r){return Array.isArray(t)?e.call(r,n,K(t).map(function(n,r){return Ce(e,n,r,t)})):me(t)?e.call(r,n,G(t).map(function(n,r){return Ce(e,n,r,t)})):t}function pe(e){return Array.isArray(e)?K(e).map(pe).toList():me(e)?G(e).map(pe).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function Ae(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 ge(e,t){if(e===t)return!0;if(!o(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)||c(e)!==c(t)||d(e)!==d(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!s(e);if(d(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&Ae(i[1],e)&&(n||Ae(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 a=e;e=t,t=a}var u=!0,f=t.__iterate(function(t,r){if(n?!e.has(t):i?!Ae(t,e.get(r,v)):!Ae(e.get(r,v),t))return u=!1,!1});return u&&e.size===f}function ve(e,t){if(!(this instanceof ve))return new ve(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 ye(e,t,n){if(!(this instanceof ye))return new ye(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 be(){}function Me(){}function Le(){}Q.prototype[ee]=!0,t(te,K),te.prototype.get=function(e,t){return this.has(e)?this._array[x(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 R(function(){return i>r?j():B(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,a=0;a<=i;a++){var o=r[t?i-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,a=0;return new R(function(){var o=r[t?i-a:a];return a++>i?j():B(e,o,n[o])})},ne.prototype[C]=!0,t(re,K),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=q(this._iterable),r=0;if(U(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=q(this._iterable);if(!U(n))return new R(j);var r=0;return new R(function(){var t=n.next();return t.done?t:B(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,a=0;a<i.length;)if(!1===e(i[a],a++,this))return a;for(;!(n=r.next()).done;){var o=n.value;if(i[a]=o,!1===e(o,a++,this))break}return a},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 R(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return B(e,i,r[i++])})},t(ve,K),ve.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ve.prototype.get=function(e,t){return this.has(e)?this._value:t},ve.prototype.includes=function(e){return Ae(this._value,e)},ve.prototype.slice=function(e,t){var n=this.size;return k(e,t,n)?this:new ve(this._value,Z(t,n)-S(e,n))},ve.prototype.reverse=function(){return this},ve.prototype.indexOf=function(e){return Ae(this._value,e)?0:-1},ve.prototype.lastIndexOf=function(e){return Ae(this._value,e)?this.size:-1},ve.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},ve.prototype.__iterator=function(e,t){var n=this,r=0;return new R(function(){return r<n.size?B(e,r++,n._value):j()})},ve.prototype.equals=function(e){return e instanceof ve?Ae(this._value,e._value):ge(e)},t(ye,K),ye.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ye.prototype.get=function(e,t){return this.has(e)?this._start+x(this,e)*this._step:t},ye.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ye.prototype.slice=function(e,t){return k(e,t,this.size)?this:(e=S(e,this.size),(t=Z(t,this.size))<=e?new ye(0,0):new ye(this.get(e,this._end),this.get(t,this._end),this._step))},ye.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},ye.prototype.lastIndexOf=function(e){return this.indexOf(e)},ye.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;a<=n;a++){if(!1===e(i,a,this))return a+1;i+=t?-r:r}return a},ye.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;return new R(function(){var o=i;return i+=t?-r:r,a>n?j():B(e,a++,o)})},ye.prototype.equals=function(e){return e instanceof ye?this._start===e._start&&this._end===e._end&&this._step===e._step:ge(this,e)},t(Ee,n),t(be,Ee),t(Me,Ee),t(Le,Ee),Ee.Keyed=be,Ee.Indexed=Me,Ee.Set=Le;var He="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 xe(e){return e>>>1&1073741824|3221225471&e}function Ve(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 xe(n)}if("string"===t)return e.length>Re?ke(e):Se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Ze(e);if("function"==typeof e.toString)return Se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ke(e){var t=Pe[e];return void 0===t&&(t=Se(e),je===Be&&(je=0,Pe={}),je++,Pe[e]=t),t}function Se(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return xe(t)}function Ze(e){var t;if(De&&void 0!==(t=Ne.get(e)))return t;if(void 0!==(t=e[Fe]))return t;if(!ze){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Fe]))return t;if(void 0!==(t=Ie(e)))return t}if(t=++Te,1073741824&Te&&(Te=0),De)Ne.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,Fe,{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[Fe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Fe]=t}}return t}var Oe=Object.isExtensible,ze=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Ie(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ne,De="function"==typeof WeakMap;De&&(Ne=new WeakMap);var Te=0,Fe="__immutablehash__";"function"==typeof Symbol&&(Fe=Symbol(Fe));var Re=16,Be=255,je=0,Pe={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function qe(e){return null==e?it():We(e)&&!d(e)?e:it().withMutations(function(t){var n=r(e);Ue(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function We(e){return!(!e||!e[Qe])}t(qe,be),qe.prototype.toString=function(){return this.__toString("Map {","}")},qe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},qe.prototype.set=function(e,t){return at(this,e,t)},qe.prototype.setIn=function(e,t){return this.updateIn(e,v,function(){return t})},qe.prototype.remove=function(e){return at(this,e,v)},qe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return v})},qe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},qe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=mt(this,En(e),t,n);return r===v?void 0:r},qe.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()},qe.prototype.merge=function(){return ft(this,void 0,arguments)},qe.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},qe.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]})},qe.prototype.mergeDeep=function(){return ft(this,ht,arguments)},qe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,Ct(t),n)},qe.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]})},qe.prototype.sort=function(e){return Pt(un(this,e))},qe.prototype.sortBy=function(e,t){return Pt(un(this,t,e))},qe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},qe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new M)},qe.prototype.asImmutable=function(){return this.__ensureOwner()},qe.prototype.wasAltered=function(){return this.__altered},qe.prototype.__iterator=function(e,t){return new et(this,e,t)},qe.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},qe.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)},qe.isMap=We;var Xe,Qe="@@__IMMUTABLE_MAP__@@",Ge=qe.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 _e(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 B(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 Xe||(Xe=rt(0))}function at(e,t,n){var r,i;if(e._root){var a=E(w),o=E(y);if(r=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===v?-1:1:0)}else{if(n===v)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 ot(e,t,n,r,i,a,o,l){return e?e.update(t,n,r,i,a,o,l):a===v?e:(b(l),b(o),new $e(t,r,[i,a]))}function lt(e){return e.constructor===$e||e.constructor===Je}function ct(e,t,n,r,i){if(e.keyHash===r)return new Je(t,r,[e.entry,i]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&g,l=(0===n?r:r>>>n)&g;return new Ye(t,1<<o|1<<l,o===l?[ct(e,t,n+m,r,i)]:(a=new $e(t,r,i),o<l?[e,a]:[a,e]))}function st(e,t,n,r){e||(e=new M);for(var i=new $e(e,Ve(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function dt(e,t,n,r){for(var i=0,a=0,o=new Array(n),l=0,c=1,s=t.length;l<s;l++,c<<=1){var d=t[l];void 0!==d&&l!==r&&(i|=c,o[a++]=d)}return new Ye(e,i,o)}function ut(e,t,n,r,i){for(var a=0,o=new Array(A),l=0;0!==n;l++,n>>>=1)o[l]=1&n?t[a++]:void 0;return o[r]=i,new _e(e,a+1,o)}function ft(e,t,n){for(var i=[],a=0;a<n.length;a++){var l=n[a],c=r(l);o(l)||(c=c.map(function(e){return he(e)})),i.push(c)}return pt(e,t,i)}function ht(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):Ae(e,t)?e:t}function Ct(e){return function(t,n,r){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return Ae(t,i)?t:i}}function pt(e,t,n){return 0===(n=n.filter(function(e){return 0!==e.size})).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,v,function(e){return e===v?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===v,a=t.next();if(a.done){var o=i?n:e,l=r(o);return l===o?e:l}we(i||e&&e.set,"invalid keyPath");var c=a.value,s=i?v:e.get(c,v),d=mt(s,t,n,r);return d===s?e:d===v?e.remove(c):(i?it():e).set(c,d)}function At(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function gt(e,t,n,r){var i=r?e:L(e);return i[t]=n,i}function vt(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=new Array(i),o=0,l=0;l<i;l++)l===t?(a[l]=n,o=-1):a[l]=e[l+o];return a}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}Ge[Qe]=!0,Ge[p]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ke.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(Ae(n,i[a][0]))return i[a][1];return r},Ke.prototype.update=function(e,t,n,r,i,a,o){for(var l=i===v,c=this.entries,s=0,d=c.length;s<d&&!Ae(r,c[s][0]);s++);var u=s<d;if(u?c[s][1]===i:l)return this;if(b(o),(l||!u)&&b(a),!l||1!==c.length){if(!u&&!l&&c.length>=yt)return st(e,c,r,i);var f=e&&e===this.ownerID,h=f?c:L(c);return u?l?s===d-1?h.pop():h[s]=h.pop():h[s]=[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=Ve(n));var i=1<<((0===e?t:t>>>e)&g),a=this.bitmap;return 0===(a&i)?r:this.nodes[At(a&i-1)].get(e+m,t,n,r)},Ye.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=Ve(r));var l=(0===t?n:n>>>t)&g,c=1<<l,s=this.bitmap,d=0!==(s&c);if(!d&&i===v)return this;var u=At(s&c-1),f=this.nodes,h=d?f[u]:void 0,C=ot(h,e,t+m,n,r,i,a,o);if(C===h)return this;if(!d&&C&&f.length>=Et)return ut(e,f,s,l,C);if(d&&!C&&2===f.length&<(f[1^u]))return f[1^u];if(d&&C&&1===f.length&<(C))return C;var p=e&&e===this.ownerID,A=d?C?s:s^c:s|c,w=d?C?gt(f,u,C,p):wt(f,u,p):vt(f,u,C,p);return p?(this.bitmap=A,this.nodes=w,this):new Ye(e,A,w)},_e.prototype.get=function(e,t,n,r){void 0===t&&(t=Ve(n));var i=(0===e?t:t>>>e)&g,a=this.nodes[i];return a?a.get(e+m,t,n,r):r},_e.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=Ve(r));var l=(0===t?n:n>>>t)&g,c=i===v,s=this.nodes,d=s[l];if(c&&!d)return this;var u=ot(d,e,t+m,n,r,i,a,o);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<bt)return dt(e,s,f,l)}else f++;var h=e&&e===this.ownerID,C=gt(s,l,u,h);return h?(this.count=f,this.nodes=C,this):new _e(e,f,C)},Je.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(Ae(n,i[a][0]))return i[a][1];return r},Je.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=Ve(r));var l=i===v;if(n!==this.keyHash)return l?this:(b(o),b(a),ct(this,e,t,n,[r,i]));for(var c=this.entries,s=0,d=c.length;s<d&&!Ae(r,c[s][0]);s++);var u=s<d;if(u?c[s][1]===i:l)return this;if(b(o),(l||!u)&&b(a),l&&2===d)return new $e(e,this.keyHash,c[1^s]);var f=e&&e===this.ownerID,h=f?c:L(c);return u?l?s===d-1?h.pop():h[s]=h.pop():h[s]=[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 Ae(n,this.entry[0])?this.entry[1]:r},$e.prototype.update=function(e,t,n,r,i,a,o){var l=i===v,c=Ae(r,this.entry[0]);return(c?i===this.entry[1]:l)?this:(b(o),l?void b(a):c?e&&e===this.ownerID?(this.entry[1]=i,this):new $e(e,this.keyHash,[r,i]):(b(a),ct(this,e,t,Ve(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=_e.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&!1===a.iterate(e,t))return!1}},$e.prototype.iterate=function(e,t){return e(this.entry)},t(et,R),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 a=r.nodes[this._reverse?n-i:i];if(a){if(a.entry)return tt(e,a.entry);t=this._stack=nt(a,t)}continue}t=this._stack=this._stack.__prev}return j()};var yt=A/4,Et=A/2,bt=A/4;function Mt(e){var t=It();if(null==e)return t;if(Lt(e))return e;var n=i(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<A?zt(0,r,m,null,new Vt(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}function Lt(e){return!(!e||!e[Ht])}t(Mt,Me),Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString("List [","]")},Mt.prototype.get=function(e,t){if((e=x(this,e))>=0&&e<this.size){var n=Ft(this,e+=this._origin);return n&&n.array[e&g]}return t},Mt.prototype.set=function(e,t){return Nt(this,e,t)},Mt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Mt.prototype.insert=function(e,t){return this.splice(e,0,t)},Mt.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):It()},Mt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Rt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Mt.prototype.pop=function(){return Rt(this,0,-1)},Mt.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Rt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Mt.prototype.shift=function(){return Rt(this,1)},Mt.prototype.merge=function(){return Bt(this,void 0,arguments)},Mt.prototype.mergeWith=function(t){return Bt(this,t,e.call(arguments,1))},Mt.prototype.mergeDeep=function(){return Bt(this,ht,arguments)},Mt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Bt(this,Ct(t),n)},Mt.prototype.setSize=function(e){return Rt(this,0,e)},Mt.prototype.slice=function(e,t){var n=this.size;return k(e,t,n)?this:Rt(this,S(e,n),Z(t,n))},Mt.prototype.__iterator=function(e,t){var n=0,r=Ot(this,t);return new R(function(){var t=r();return t===Zt?j():B(e,n++,t)})},Mt.prototype.__iterate=function(e,t){for(var n,r=0,i=Ot(this,t);(n=i())!==Zt&&!1!==e(n,r++,this););return r},Mt.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)},Mt.isList=Lt;var Ht="@@__IMMUTABLE_LIST__@@",xt=Mt.prototype;function Vt(e,t){this.array=e,this.ownerID=t}xt[Ht]=!0,xt[p]=xt.remove,xt.setIn=Ge.setIn,xt.deleteIn=xt.removeIn=Ge.removeIn,xt.update=Ge.update,xt.updateIn=Ge.updateIn,xt.mergeIn=Ge.mergeIn,xt.mergeDeepIn=Ge.mergeDeepIn,xt.withMutations=Ge.withMutations,xt.asMutable=Ge.asMutable,xt.asImmutable=Ge.asImmutable,xt.wasAltered=Ge.wasAltered,Vt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&g;if(r>=this.array.length)return new Vt([],e);var i,a=0===r;if(t>0){var o=this.array[r];if((i=o&&o.removeBefore(e,t-m,n))===o&&a)return this}if(a&&!i)return this;var l=Tt(this,e);if(!a)for(var c=0;c<r;c++)l.array[c]=void 0;return i&&(l.array[r]=i),l},Vt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&g;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((r=a&&a.removeAfter(e,t-m,n))===a&&i===this.array.length-1)return this}var o=Tt(this,e);return o.array.splice(i+1),r&&(o.array[i]=r),o};var kt,St,Zt={};function Ot(e,t){var n=e._origin,r=e._capacity,i=jt(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?l(e,n):c(e,t,n)}function l(e,o){var l=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,s=r-o;return s>A&&(s=A),function(){if(c===s)return Zt;var e=t?--s:c++;return l&&l[e]}}function c(e,i,a){var l,c=e&&e.array,s=a>n?0:n-a>>i,d=1+(r-a>>i);return d>A&&(d=A),function(){for(;;){if(l){var e=l();if(e!==Zt)return e;l=null}if(s===d)return Zt;var n=t?--d:s++;l=o(c&&c[n],i-m,a+(n<<i))}}}}function zt(e,t,n,r,i,a,o){var l=Object.create(xt);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=i,l.__ownerID=a,l.__hash=o,l.__altered=!1,l}function It(){return kt||(kt=zt(0,0,m))}function Nt(e,t,n){if((t=x(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Rt(e,t).set(0,n):Rt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=E(y);return t>=jt(e._capacity)?r=Dt(r,e.__ownerID,0,t,n,a):i=Dt(i,e.__ownerID,e._level,t,n,a),a.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 Dt(e,t,n,r,i,a){var o,l=r>>>n&g,c=e&&l<e.array.length;if(!c&&void 0===i)return e;if(n>0){var s=e&&e.array[l],d=Dt(s,t,n-m,r,i,a);return d===s?e:((o=Tt(e,t)).array[l]=d,o)}return c&&e.array[l]===i?e:(b(a),o=Tt(e,t),void 0===i&&l===o.array.length-1?o.array.pop():o.array[l]=i,o)}function Tt(e,t){return t&&e&&t===e.ownerID?e:new Vt(e?e.array.slice():[],t)}function Ft(e,t){if(t>=jt(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&g],r-=m;return n}}function Rt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new M,i=e._origin,a=e._capacity,o=i+t,l=void 0===n?a:n<0?a+n:i+n;if(o===i&&l===a)return e;if(o>=l)return e.clear();for(var c=e._level,s=e._root,d=0;o+d<0;)s=new Vt(s&&s.array.length?[void 0,s]:[],r),d+=1<<(c+=m);d&&(o+=d,i+=d,l+=d,a+=d);for(var u=jt(a),f=jt(l);f>=1<<c+m;)s=new Vt(s&&s.array.length?[s]:[],r),c+=m;var h=e._tail,C=f<u?Ft(e,l-1):f>u?new Vt([],r):h;if(h&&f>u&&o<a&&h.array.length){for(var p=s=Tt(s,r),A=c;A>m;A-=m){var v=u>>>A&g;p=p.array[v]=Tt(p.array[v],r)}p.array[u>>>m&g]=h}if(l<a&&(C=C&&C.removeAfter(r,0,l)),o>=f)o-=f,l-=f,c=m,s=null,C=C&&C.removeBefore(r,0,o);else if(o>i||f<u){for(d=0;s;){var w=o>>>c&g;if(w!==f>>>c&g)break;w&&(d+=(1<<c)*w),c-=m,s=s.array[w]}s&&o>i&&(s=s.removeBefore(r,c,o-d)),s&&f<u&&(s=s.removeAfter(r,c,f-d)),d&&(o-=d,l-=d)}return e.__ownerID?(e.size=l-o,e._origin=o,e._capacity=l,e._level=c,e._root=s,e._tail=C,e.__hash=void 0,e.__altered=!0,e):zt(o,l,c,s,C)}function Bt(e,t,n){for(var r=[],a=0,l=0;l<n.length;l++){var c=n[l],s=i(c);s.size>a&&(a=s.size),o(c)||(s=s.map(function(e){return he(e)})),r.push(s)}return a>e.size&&(e=e.setSize(a)),pt(e,t,r)}function jt(e){return e<A?0:e-1>>>m<<m}function Pt(e){return null==e?Wt():Ut(e)?e:Wt().withMutations(function(t){var n=r(e);Ue(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Ut(e){return We(e)&&d(e)}function qt(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 Wt(){return St||(St=qt(it(),It()))}function Xt(e,t,n){var r,i,a=e._map,o=e._list,l=a.get(t),c=void 0!==l;if(n===v){if(!c)return e;o.size>=A&&o.size>=2*a.size?(r=(i=o.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=a.remove(t),i=l===o.size-1?o.pop():o.set(l,void 0))}else if(c){if(n===o.get(l)[1])return e;r=a,i=o.set(l,[t,n])}else r=a.set(t,o.size),i=o.set(o.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):qt(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 _t(e){var t=vn(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===N){var r=e.__iterator(t,n);return new R(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===I?z:I,n)},t}function Jt(e,t,n){var r=vn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,v);return a===v?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return!1!==r(t.call(n,e,i,o),i,a)},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(N,i);return new R(function(){var i=a.next();if(i.done)return i;var o=i.value,l=o[0];return B(r,l,t.call(n,o[1],l,e),i)})},r}function $t(e,t){var n=vn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=_t(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=vn(e);return r&&(i.has=function(r){var i=e.get(r,v);return i!==v&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,v);return a!==v&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,l=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return l++,i(e,r?a:l-1,o)},a),l},i.__iteratorUncached=function(i,a){var o=e.__iterator(N,a),l=0;return new R(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,s=c[0],d=c[1];if(t.call(n,d,s,e))return B(i,r?s:l++,d,a)}})},i}function tn(e,t,n){var r=qe().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function nn(e,t,n){var r=l(e),i=(d(e)?Pt():qe()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return(e=e||[]).push(r?[o,a]:a),e})});var a=gn(e);return i.map(function(t){return pn(e,a(t))})}function rn(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),k(t,n,i))return e;var a=S(t,i),o=Z(n,i);if(a!=a||o!=o)return rn(e.toSeq().cacheResult(),t,n,r);var l,c=o-a;c==c&&(l=c<0?0:c);var s=vn(e);return s.size=0===l?l:e.size&&l||void 0,!r&&ae(e)&&l>=0&&(s.get=function(t,n){return(t=x(this,t))>=0&&t<l?e.get(t+a,n):n}),s.__iterateUncached=function(t,n){var i=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,c=!0,s=0;return e.__iterate(function(e,n){if(!c||!(c=o++<a))return s++,!1!==t(e,r?n:s-1,i)&&s!==l}),s},s.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var i=0!==l&&e.__iterator(t,n),o=0,c=0;return new R(function(){for(;o++<a;)i.next();if(++c>l)return j();var e=i.next();return r||t===I?e:B(t,c-1,t===z?void 0:e.value[1],e)})},s}function an(e,t,n){var r=vn(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,l){return t.call(n,e,i,l)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(N,i),l=!0;return new R(function(){if(!l)return j();var e=o.next();if(e.done)return e;var i=e.value,c=i[0],s=i[1];return t.call(n,s,c,a)?r===N?e:B(r,c,s,e):(l=!1,j())})},r}function on(e,t,n,r){var i=vn(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var l=!0,c=0;return e.__iterate(function(e,a,s){if(!l||!(l=t.call(n,e,a,s)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var l=e.__iterator(N,a),c=!0,s=0;return new R(function(){var e,a,d;do{if((e=l.next()).done)return r||i===I?e:B(i,s++,i===z?void 0:e.value[1],e);var u=e.value;a=u[0],d=u[1],c&&(c=t.call(n,d,a,o))}while(c);return i===N?e:B(i,a,d,e)})},i}function ln(e,t){var n=l(e),i=[e].concat(t).map(function(e){return o(e)?n&&(e=r(e)):e=n?le(e):ce(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var a=i[0];if(a===e||n&&l(a)||c(e)&&c(a))return a}var s=new te(i);return n?s=s.toKeyedSeq():c(e)||(s=s.toSetSeq()),(s=s.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),s}function cn(e,t,n){var r=vn(e);return r.__iterateUncached=function(r,i){var a=0,l=!1;function c(e,s){var d=this;e.__iterate(function(e,i){return(!t||s<t)&&o(e)?c(e,s+1):!1===r(e,n?i:a++,d)&&(l=!0),!l},i)}return c(e,0),a},r.__iteratorUncached=function(r,i){var a=e.__iterator(r,i),l=[],c=0;return new R(function(){for(;a;){var e=a.next();if(!1===e.done){var s=e.value;if(r===N&&(s=s[1]),t&&!(l.length<t)||!o(s))return n?e:B(r,c++,s,e);l.push(a),a=s.__iterator(r,i)}else a=l.pop()}return j()})},r}function sn(e,t,n){var r=gn(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function dn(e,t){var n=vn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e,r){return(!a||!1!==n(t,a++,i))&&!1!==n(e,a++,i)},r),a},n.__iteratorUncached=function(n,r){var i,a=e.__iterator(I,r),o=0;return new R(function(){return(!i||o%2)&&(i=a.next()).done?i:o%2?B(n,o++,t):B(n,o++,i.value,i)})},n}function un(e,t,n){t||(t=yn);var r=l(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?G(a):c(e)?K(a):Y(a)}function fn(e,t,n){if(t||(t=yn),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 Cn(e,t,r){var i=vn(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(I,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var a=r.map(function(e){return e=n(e),q(i?e.reverse():e)}),o=0,l=!1;return new R(function(){var n;return l||(n=a.map(function(e){return e.next()}),l=n.some(function(e){return e.done})),l?j():B(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function pn(e,t){return ae(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function An(e){return Ue(e.size),H(e)}function gn(e){return l(e)?r:c(e)?i:a}function vn(e){return Object.create((l(e)?G:c(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 yn(e,t){return e>t?1:e<t?-1:0}function En(e){var t=q(e);if(!t){if(!X(e))throw new TypeError("Expected iterable or array-like: "+e);t=q(n(e))}return t}function bn(e,t){var n,r=function(a){if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var o=Object.keys(e);xn(i,o),i.size=o.length,i._name=t,i._keys=o,i._defaultValues=e}this._map=qe(a)},i=r.prototype=Object.create(Mn);return i.constructor=r,r}t(Pt,qe),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):Wt()},Pt.prototype.set=function(e,t){return Xt(this,e,t)},Pt.prototype.remove=function(e){return Xt(this,e,v)},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?qt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Pt.isOrderedMap=Ut,Pt.prototype[C]=!0,Pt.prototype[p]=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?An(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(I,t),r=t?An(this):0;return new R(function(){var i=n.next();return i.done?i:B(e,t?--r:r++,i.value,i)})},Qt.prototype[C]=!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(I,t),r=0;return new R(function(){var t=n.next();return t.done?t:B(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(I,t);return new R(function(){var t=n.next();return t.done?t:B(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=o(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(I,t);return new R(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){mn(r);var i=o(r);return B(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(bn,be),bn.prototype.toString=function(){return this.__toString(Hn(this)+" {","}")},bn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},bn.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},bn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Ln(this,it()))},bn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Hn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Ln(this,n)},bn.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:Ln(this,t)},bn.prototype.wasAltered=function(){return this._map.wasAltered()},bn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},bn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},bn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Ln(this,t,e):(this.__ownerID=e,this._map=t,this)};var Mn=bn.prototype;function Ln(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Hn(e){return e._name||e.constructor.name||"Record"}function xn(e,t){try{t.forEach(Vn.bind(void 0,e))}catch(e){}}function Vn(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 kn(e){return null==e?Dn():Sn(e)&&!d(e)?e:Dn().withMutations(function(t){var n=a(e);Ue(n.size),n.forEach(function(e){return t.add(e)})})}function Sn(e){return!(!e||!e[On])}Mn[p]=Mn.remove,Mn.deleteIn=Mn.removeIn=Ge.removeIn,Mn.merge=Ge.merge,Mn.mergeWith=Ge.mergeWith,Mn.mergeIn=Ge.mergeIn,Mn.mergeDeep=Ge.mergeDeep,Mn.mergeDeepWith=Ge.mergeDeepWith,Mn.mergeDeepIn=Ge.mergeDeepIn,Mn.setIn=Ge.setIn,Mn.update=Ge.update,Mn.updateIn=Ge.updateIn,Mn.withMutations=Ge.withMutations,Mn.asMutable=Ge.asMutable,Mn.asImmutable=Ge.asImmutable,t(kn,Le),kn.of=function(){return this(arguments)},kn.fromKeys=function(e){return this(r(e).keySeq())},kn.prototype.toString=function(){return this.__toString("Set {","}")},kn.prototype.has=function(e){return this._map.has(e)},kn.prototype.add=function(e){return In(this,this._map.set(e,!0))},kn.prototype.remove=function(e){return In(this,this._map.remove(e))},kn.prototype.clear=function(){return In(this,this._map.clear())},kn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},kn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return a(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.every(function(e){return e.includes(n)})||e.remove(n)})})},kn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return a(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.some(function(e){return e.includes(n)})&&e.remove(n)})})},kn.prototype.merge=function(){return this.union.apply(this,arguments)},kn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},kn.prototype.sort=function(e){return Tn(un(this,e))},kn.prototype.sortBy=function(e,t){return Tn(un(this,t,e))},kn.prototype.wasAltered=function(){return this._map.wasAltered()},kn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},kn.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},kn.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)},kn.isSet=Sn;var Zn,On="@@__IMMUTABLE_SET__@@",zn=kn.prototype;function In(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 Nn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Dn(){return Zn||(Zn=Nn(it()))}function Tn(e){return null==e?Pn():Fn(e)?e:Pn().withMutations(function(t){var n=a(e);Ue(n.size),n.forEach(function(e){return t.add(e)})})}function Fn(e){return Sn(e)&&d(e)}zn[On]=!0,zn[p]=zn.remove,zn.mergeDeep=zn.merge,zn.mergeDeepWith=zn.mergeWith,zn.withMutations=Ge.withMutations,zn.asMutable=Ge.asMutable,zn.asImmutable=Ge.asImmutable,zn.__empty=Dn,zn.__make=Nn,t(Tn,kn),Tn.of=function(){return this(arguments)},Tn.fromKeys=function(e){return this(r(e).keySeq())},Tn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Tn.isOrderedSet=Fn;var Rn,Bn=Tn.prototype;function jn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Pn(){return Rn||(Rn=jn(Wt()))}function Un(e){return null==e?Kn():qn(e)?e:Kn().unshiftAll(e)}function qn(e){return!(!e||!e[Xn])}Bn[C]=!0,Bn.__empty=Pn,Bn.__make=jn,t(Un,Me),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=x(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.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)},Un.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Ue(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)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.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()},Un.prototype.slice=function(e,t){if(k(e,t,this.size))return this;var n=S(e,this.size);if(Z(t,this.size)!==this.size)return Me.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)},Un.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)},Un.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},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new R(function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return j()})},Un.isStack=qn;var Wn,Xn="@@__IMMUTABLE_STACK__@@",Qn=Un.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 Wn||(Wn=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[Xn]=!0,Qn.withMutations=Ge.withMutations,Qn.asMutable=Ge.asMutable,Qn.asImmutable=Ge.asImmutable,Qn.wasAltered=Ge.wasAltered,n.Iterator=R,Yn(n,{toArray:function(){Ue(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 qe(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Pt(this.toKeyedSeq())},toOrderedSet:function(){return Tn(l(this)?this.valueSeq():this)},toSet:function(){return kn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Kt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(l(this)?this.valueSeq():this)},toList:function(){return Mt(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 pn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return Ae(t,e)})},entries:function(){return this.__iterator(N)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return pn(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,a){if(e.call(t,r,i,a))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(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 pn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,i;return Ue(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,a,o){i?(i=!1,r=t):r=e.call(n,r,t,a,o)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return pn(this,$t(this,!0))},slice:function(e,t){return pn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return pn(this,un(this,e))},values:function(){return this.__iterator(I)},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 H(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ge(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(V)},flatMap:function(e,t){return pn(this,sn(this,e,t))},flatten:function(e){return pn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find(function(t,n){return Ae(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=En(e);!(n=i.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,v):v)===v)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:function(e){return this.getIn(e,v)!==v},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):ar)},minBy:function(e,t){return fn(this,t?nr(t):ar,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return pn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return pn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return pn(this,un(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return pn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return pn(this,an(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=or(this))}});var _n=n.prototype;_n[u]=!0,_n[F]=_n.values,_n.__toJS=_n.toArray,_n.__toStringMapper=rr,_n.inspect=_n.toSource=function(){return this.toString()},_n.chain=_n.flatMap,_n.contains=_n.includes,function(){try{Object.defineProperty(_n,"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 pn(this,_t(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 Ae(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return Ae(t,e)})},mapEntries:function(e,t){var n=this,r=0;return pn(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return pn(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 L(arguments)}function ar(e,t){return e<t?1:e>t?-1:0}function or(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+cr(Ve(e),Ve(t))|0}:function(e,t){r=r+cr(Ve(e),Ve(t))|0}:t?function(e){r=31*r+Ve(e)|0}:function(e){r=r+Ve(e)|0});return lr(i,r)}function lr(e,t){return t=He(t,3432918353),t=He(t<<15|t>>>-15,461845907),t=He(t<<13|t>>>-13,5),t=He((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=xe((t=He(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[f]=!0,Jn[F]=_n.entries,Jn.__toJS=_n.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 pn(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 pn(this,$t(this,!1))},slice:function(e,t){return pn(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=S(e,e<0?this.count():this.size);var r=this.slice(0,e);return pn(this,1===n?r:r.concat(L(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 pn(this,cn(this,e,!1))},get:function(e,t){return(e=x(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=x(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return pn(this,dn(this,e))},interleave:function(){var e=[this].concat(L(arguments)),t=Cn(this.toSeq(),K.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),pn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return pn(this,on(this,e,t,!1))},zip:function(){return pn(this,Cn(this,ir,[this].concat(L(arguments))))},zipWith:function(e){var t=L(arguments);return t[0]=this,pn(this,Cn(this,e,t))}}),i.prototype[h]=!0,i.prototype[C]=!0,Yn(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=_n.includes,Yn(G,r.prototype),Yn(K,i.prototype),Yn(Y,a.prototype),Yn(be,r.prototype),Yn(Me,i.prototype),Yn(Le,a.prototype);var sr={Iterable:n,Seq:Q,Collection:Ee,Map:qe,OrderedMap:Pt,List:Mt,Stack:Un,Set:kn,OrderedSet:Tn,Record:bn,Range:ye,Repeat:ve,is:Ae,fromJS:he};return sr}()),oT.exports}function cT(){if(LN)return MN;LN=1;var e=lT().OrderedMap;return MN={createFromArray:function(t){return e(t.map(function(e){return[e.getKey(),e]}))}}}function sT(){if(xN)return HN;xN=1;var e=lT(),t=e.Map,n=e.OrderedSet,r=e.Record,i=n(),a={style:i,entity:null},o=function(e){var r,a;function o(){return e.apply(this,arguments)||this}a=e,(r=o).prototype=Object.create(a.prototype),r.prototype.constructor=r,r.__proto__=a;var s=o.prototype;return s.getStyle=function(){return this.get("style")},s.getEntity=function(){return this.get("entity")},s.hasStyle=function(e){return this.getStyle().includes(e)},o.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return o.create(n)},o.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return o.create(n)},o.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return o.create(n)},o.create=function(e){if(!e)return l;var n=t({style:i,entity:null}).merge(e),r=c.get(n);if(r)return r;var a=new o(n);return c=c.set(n,a),a},o.fromJS=function(e){var t=e.style,r=e.entity;return new o({style:Array.isArray(t)?n(t):t,entity:Array.isArray(r)?n(r):r})},o}(r(a)),l=new o,c=t([[t(a),l]]);return o.EMPTY=l,HN=o}function dT(){if(kN)return VN;return kN=1,VN=function(e,t,n,r){if(e.size){var i=0;e.reduce(function(e,a,o){return t(e,a)||(n(e)&&r(i,o),i=o),a}),n(e.last())&&r(i,e.count())}}}function uT(){if(ZN)return SN;ZN=1;var e=sT(),t=dT(),n=lT(),r=n.List,i=n.Map,a=n.OrderedSet,o=n.Record,l=n.Repeat,c=a(),s=o({key:"",type:"unstyled",text:"",characterList:r(),depth:0,data:i()}),d=function(n){var i,a;function o(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}a=n,(i=o).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a;var s=o.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,n){t(this.getCharacterList(),u,e,n)},s.findEntityRanges=function(e,n){t(this.getCharacterList(),f,e,n)},o}(s);function u(e,t){return e.getStyle()===t.getStyle()}function f(e,t){return e.getEntity()===t.getEntity()}return SN=d}function fT(){if(zN)return ON;zN=1;var e=sT(),t=dT(),n=lT(),r=n.List,i=n.Map,a=n.OrderedSet,o=n.Record,l=n.Repeat,c=a(),s={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,a;function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;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}a=n,(i=o).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a;var f=o.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():c},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)},o}(o(s));return ON=f}function hT(){if(RN)return FN;RN=1;var e=function(){if(TN)return DN;TN=1;var e=sT();return DN=function(t,n,r,i){for(var a=n,o=t.getCharacterList();a<r;)o=o.set(a,e.applyEntity(o.get(a),i)),a++;return t.set("characterList",o)},DN}(),t=lT();return FN=function(n,r,i){var a=n.getBlockMap(),o=r.getStartKey(),l=r.getStartOffset(),c=r.getEndKey(),s=r.getEndOffset(),d=a.skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===c}).toOrderedMap().merge(t.OrderedMap([[c,a.get(c)]])).map(function(t,n){var r=n===o?l:0,a=n===c?s:t.getLength();return e(t,r,a,i)});return n.merge({blockMap:a.merge(d),selectionBefore:r,selectionAfter:r})},FN}function CT(){if(UN)return PN;UN=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 PN=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(e(n),!t){var o;if(void 0===n)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;(o=new Error(n.replace(/%s/g,function(){return String(i[l++])}))).name="Invariant Violation"}throw o.framesToPop=1,o}},PN}function pT(){if(QN)return XN;QN=1;var e=jN?BN:(jN=1,BN={getRemovalRange:function(e,t,n,r,i){var a=n.split(" ");a=a.map(function(e,t){if("forward"===i){if(t>0)return" "+e}else if(t<a.length-1)return e+" ";return e});for(var o,l=r,c=null,s=null,d=0;d<a.length;d++){if(e<(o=l+a[d].length)&&l<t)null!==c||(c=l),s=o;else if(null!==c)break;l=o}var u=r+n.length,f=c===r,h=s===u;return(!f&&h||f&&!h)&&("forward"===i?s!==u&&s++:c!==r&&c--),{start:c,end:s}}}),t=function(){if(WN)return qN;WN=1;var e=CT();return qN=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},qN}(),n=CT();function r(r,i,a,o,l,c,s){var d=a.getStartOffset(),u=a.getEndOffset(),f=r.__get(l).getMutability(),h=s?d:u;if("MUTABLE"===f)return a;var C=t(i,l).filter(function(e){return h<=e.end&&h>=e.start});1!=C.length&&("production"!==process.env.NODE_ENV?n(!1,"There should only be one entity range within this removal range."):n(!1));var p=C[0];if("IMMUTABLE"===f)return a.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});c||(s?u=p.end:d=p.start);var m=e.getRemovalRange(d,u,i.getText().slice(p.start,p.end),p.start,o);return a.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}return XN=function(e,t,n,i,a){var o=i.getStartOffset(),l=i.getEndOffset(),c=t.getEntityAt(o),s=n.getEntityAt(l-1);if(!c&&!s)return i;var d=i;if(c&&c===s)d=r(e,t,d,a,c,!0,!0);else if(c&&s){var u=r(e,t,d,a,c,!1,!0),f=r(e,n,d,a,s,!1,!1);d=d.merge({anchorOffset:u.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var h=r(e,t,d,a,c,!1,!0);d=d.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(s){var C=r(e,n,d,a,s,!1,!1);d=d.merge({focusOffset:C.getEndOffset(),isBackward:!1})}return d},XN}function mT(){if(KN)return GN;KN=1;var e={},t=Math.pow(2,24);return GN=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},GN}function AT(){if(_N)return YN;_N=1;var e=fT(),t=mT(),n=lT().OrderedMap;return YN=function(r){return r.first()instanceof e?function(e){var r,i={};return n(e.withMutations(function(e){e.forEach(function(n,a){var o=n.getKey(),l=n.getNextSiblingKey(),c=n.getPrevSiblingKey(),s=n.getChildKeys(),d=n.getParentKey(),u=t();if(i[o]=u,l&&(e.get(l)?e.setIn([l,"prevSibling"],u):e.setIn([o,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],u):e.setIn([o,"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([o,"parent"],null),r&&(e.setIn([r.getKey(),"nextSibling"],u),e.setIn([o,"prevSibling"],i[r.getKey()])),r=e.get(o);s.forEach(function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([o,"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)},YN}function gT(){if($N)return JN;$N=1;var e=sT(),t=dT(),n=CT();function r(r,i,a){var o=i.getCharacterList(),l=a>0?o.get(a-1):void 0,c=a<o.count()?o.get(a):void 0,s=l?l.getEntity():void 0,d=c?c.getEntity():void 0;if(d&&d===s&&"MUTABLE"!==r.__get(d).getMutability()){for(var u,f=function(e,r,i){var a;return t(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===r},function(e,t){e<=i&&t>=i&&(a={start:e,end:t})}),"object"!=typeof a&&("production"!==process.env.NODE_ENV?n(!1,"Removal range must exist within character list."):n(!1)),a}(o,d,a),h=f.start,C=f.end;h<C;)u=o.get(h),o=o.set(h,e.applyEntity(u,null)),h++;return i.set("characterList",o)}return i}return JN=function(e,t){var n=e.getBlockMap(),i=e.getEntityMap(),a={},o=t.getStartKey(),l=t.getStartOffset(),c=n.get(o),s=r(i,c,l);s!==c&&(a[o]=s);var d=t.getEndKey(),u=t.getEndOffset(),f=n.get(d);o===d&&(f=s);var h=r(i,f,u);return h!==f&&(a[d]=h),Object.keys(a).length?e.merge({blockMap:n.merge(a),selectionAfter:t}):e.set("selectionAfter",t)}}function vT(){if(tD)return eD;tD=1;var e=AT(),t=gT();return eD=function(n,r){var i=r.getStartKey(),a=r.getStartOffset(),o=r.getEndKey(),l=r.getEndOffset(),c=t(n,r).getBlockMap(),s=c.keySeq(),d=s.indexOf(i),u=s.indexOf(o)+1;return e(c.slice(d,u).map(function(e,t){var n=e.getText(),r=e.getCharacterList();return i===o?e.merge({text:n.slice(a,l),characterList:r.slice(a,l)}):t===i?e.merge({text:n.slice(a),characterList:r.slice(a)}):t===o?e.merge({text:n.slice(0,l),characterList:r.slice(0,l)}):e}))}}function wT(){if(rD)return nD;return rD=1,nD=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),a=r.slice(n);r=i.concat(t,a).toList()}return r},nD}function yT(){if(aD)return iD;aD=1;var e=cT(),t=fT(),n=lT(),r=wT(),i=CT(),a=AT(),o=n.List,l=function(n,r,i,a,l,c){var s=i.first()instanceof t,d=[],u=a.size,f=i.get(l),h=a.first(),C=a.last(),p=C.getLength(),m=C.getKey(),A=s&&(!f.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());i.forEach(function(e,t){t===l?(A?d.push(e):d.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),a=r.slice(0,t),o=i.slice(0,t),l=n.first();return e.merge({text:a+l.getText(),characterList:o.concat(l.getCharacterList()),type:a?e.getType():l.getType(),data:l.getData()})}(e,c,a)),a.slice(A?0:1,u-1).forEach(function(e){return d.push(e)}),d.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),a=r.length,o=r.slice(t,a),l=i.slice(t,a),c=n.last();return c.merge({text:c.getText()+o,characterList:c.getCharacterList().concat(l),data:c.getData()})}(e,c,a))):d.push(e)});var g=e.createFromArray(d);return s&&(g=function(e,t,n,r){return e.withMutations(function(t){var i=n.getKey(),a=r.getKey(),l=n.getNextSiblingKey(),c=n.getParentKey(),s=function(e,t){var n=e.getKey(),r=e,i=[];for(t.get(n)&&i.push(n);r&&r.getNextSiblingKey();){var a=r.getNextSiblingKey();if(!a)break;i.push(a),r=t.get(a)}return i}(r,e),d=s[s.length-1];if(t.get(a)?(t.setIn([i,"nextSibling"],a),t.setIn([a,"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),s.forEach(function(e){return t.setIn([e,"parent"],c)}),c){var u=e.get(c).getChildKeys(),f=u.indexOf(i)+1,h=u.toArray();h.splice.apply(h,[f,0].concat(s)),t.setIn([c,"children"],o(h))}})}(g,0,f,h)),n.merge({blockMap:g,selectionBefore:r,selectionAfter:r.merge({anchorKey:m,anchorOffset:p,focusKey:m,focusOffset:p,isBackward:!1})})};return iD=function(e,n,o){var c=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 s=e.getBlockMap(),d=a(o),u=n.getStartKey(),f=n.getStartOffset(),h=s.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,a,o){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(a),s=c.getText(),d=c.getCharacterList(),u=a,f=o+i.getText().length,h=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":h=i.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":h=i.getData()}var C=c.getType();s&&"unstyled"===C&&(C=i.getType());var p=c.merge({text:s.slice(0,o)+i.getText()+s.slice(o),characterList:r(d,i.getCharacterList(),o),type:C,data:h});return e.merge({blockMap:n.set(a,p),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:f,focusKey:u,focusOffset:f,isBackward:!1})})}(e,n,s,d.first(),u,f,c):l(e,n,s,d,u,f)},iD}function ET(){if(sD)return cD;sD=1;var e=lT().Map;return cD=function(t,n,r){var i=n.getStartKey(),a=n.getEndKey(),o=t.getBlockMap(),l=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===a}).concat(e([[a,o.get(a)]])).map(r);return t.merge({blockMap:o.merge(l),selectionBefore:n,selectionAfter:n})},cD}function bT(){if(uD)return dD;uD=1;var e=fT();return dD=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 a=n.get(i);a&&!a.getNextSiblingKey();){var o=a.getParentKey();a=o?n.get(o):null}return a?a.getNextSiblingKey():null}}function MT(){if(hD)return fD;hD=1;var e=fT(),t=bT(),n=lT();n.List;var r=n.Map,i=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},a=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},o=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},c=function(e,n,r,c){return e.withMutations(function(s){if(i(n.getKey(),s,function(e){return e.merge({nextSibling:o(e,s,c),prevSibling:l(e,s,c)})}),i(r.getKey(),s,function(e){return e.merge({nextSibling:o(e,s,c),prevSibling:l(e,s,c)})}),a(n.getKey(),c).forEach(function(e){return i(e,s,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return s.get(e)}),nextSibling:o(e,s,c),prevSibling:l(e,s,c)})})}),i(n.getNextSiblingKey(),s,function(e){return e.merge({prevSibling:n.getPrevSiblingKey()})}),i(n.getPrevSiblingKey(),s,function(e){return e.merge({nextSibling:o(e,s,c)})}),i(r.getNextSiblingKey(),s,function(e){return e.merge({prevSibling:l(e,s,c)})}),i(r.getPrevSiblingKey(),s,function(e){return e.merge({nextSibling:r.getNextSiblingKey()})}),a(r.getKey(),c).forEach(function(e){i(e,s,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return s.get(e)}),nextSibling:o(e,s,c),prevSibling:l(e,s,c)})})}),function(e,n){var r=[];if(!e)return r;for(var i=t(e,n);i&&n.get(i);){var a=n.get(i);r.push(i),i=a.getParentKey()?t(a,n):null}return r}(r,c).forEach(function(e){return i(e,s,function(e){return e.merge({nextSibling:o(e,s,c),prevSibling:l(e,s,c)})})}),null==e.get(n.getKey())&&null!=e.get(r.getKey())&&r.getParentKey()===n.getKey()&&null==r.getPrevSiblingKey()){var d=n.getPrevSiblingKey();i(r.getKey(),s,function(e){return e.merge({prevSibling:d})}),i(d,s,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,s,function(e){return e.merge({parent:f})})}),null!=f){var h=e.get(f);i(f,s,function(e){return e.merge({children:h.getChildKeys().concat(n.getChildKeys())})})}i(n.getChildKeys().find(function(t){return null===e.get(t).getNextSiblingKey()}),s,function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})}})},s=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 fD=function(n,i){if(i.isCollapsed())return n;var o,l=n.getBlockMap(),d=i.getStartKey(),u=i.getStartOffset(),f=i.getEndKey(),h=i.getEndOffset(),C=l.get(d),p=l.get(f),m=C instanceof e,A=[];if(m){var g=p.getChildKeys(),v=a(f,l);p.getNextSiblingKey()&&(A=A.concat(v)),g.isEmpty()||(A=A.concat(v.concat([f]))),A=A.concat(a(t(p,l),l))}o=C===p?s(C.getCharacterList(),u,h):C.getCharacterList().slice(0,u).concat(p.getCharacterList().slice(h));var w=C.merge({text:C.getText().slice(0,u)+p.getText().slice(h),characterList:o}),y=m&&0===u&&0===h&&p.getParentKey()===d&&null==p.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===A.indexOf(t)}).concat(r([[f,null]])).map(function(e,t){return t===d?w:null}),E=l.merge(y).filter(function(e){return!!e});return m&&C!==p&&(E=c(E,C,p,l)),n.merge({blockMap:E,selectionBefore:i,selectionAfter:i.merge({anchorKey:d,anchorOffset:u,focusKey:d,focusOffset:u,isBackward:!1})})},fD}function LT(){if(pD)return CD;pD=1;var e=fT(),t=mT(),n=lT(),r=CT(),i=ET(),a=n.List,o=n.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};return CD=function(n,c){c.isCollapsed()||("production"!==process.env.NODE_ENV?r(!1,"Selection range must be collapsed."):r(!1));var s=c.getAnchorKey(),d=n.getBlockMap(),u=d.get(s),f=u.getText();if(!f){var h=u.getType();if("unordered-list-item"===h||"ordered-list-item"===h)return i(n,c,function(e){return e.merge({type:"unstyled",depth:0})})}var C=c.getAnchorOffset(),p=u.getCharacterList(),m=t(),A=u instanceof e,g=u.merge({text:f.slice(0,C),characterList:p.slice(0,C)}),v=g.merge({key:m,text:f.slice(C),characterList:p.slice(C),data:o()}),w=d.toSeq().takeUntil(function(e){return e===u}),y=d.toSeq().skipUntil(function(e){return e===u}).rest(),E=w.concat([[s,g],[m,v]],y).toOrderedMap();return A&&(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,o=t.toArray();return o.splice(n,0,i),e.merge({children:a(o)})}),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,g,v)),n.merge({blockMap:E,selectionBefore:c,selectionAfter:c.merge({anchorKey:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})},CD}function HT(){if(AD)return mD;AD=1;var e=sT(),t=function(){if(NN)return IN;NN=1;var e=sT(),t=lT().Map;function n(n,r,i,a){var o=n.getBlockMap(),l=r.getStartKey(),c=r.getStartOffset(),s=r.getEndKey(),d=r.getEndOffset(),u=o.skipUntil(function(e,t){return t===l}).takeUntil(function(e,t){return t===s}).concat(t([[s,o.get(s)]])).map(function(t,n){var r,o;l===s?(r=c,o=d):(r=n===l?c:0,o=n===s?d:t.getLength());for(var u,f=t.getCharacterList();r<o;)u=f.get(r),f=f.set(r,a?e.applyStyle(u,i):e.removeStyle(u,i)),r++;return t.set("characterList",f)});return n.merge({blockMap:o.merge(u),selectionBefore:r,selectionAfter:r})}return IN={add:function(e,t,r){return n(e,t,r,!0)},remove:function(e,t,r){return n(e,t,r,!1)}}}(),n=hT(),r=pT(),i=vT(),a=lT(),o=yT(),l=function(){if(lD)return oD;lD=1;var e=lT(),t=wT(),n=CT(),r=e.Repeat;return oD=function(e,i,a,o){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!=a&&(l=a.length),null==l||0===l)return e;var c=e.getBlockMap(),s=i.getStartKey(),d=i.getStartOffset(),u=c.get(s),f=u.getText(),h=u.merge({text:f.slice(0,d)+a+f.slice(d,u.getLength()),characterList:t(u.getCharacterList(),r(o,l).toList(),d)}),C=d+l;return e.merge({blockMap:c.set(s,h),selectionAfter:i.merge({anchorOffset:C,focusOffset:C})})},oD}(),c=CT(),s=ET(),d=gT(),u=MT(),f=LT(),h=a.OrderedSet,C={replaceText:function(t,n,r,i,a){var o=d(t,n),c=u(o,n),s=e.create({style:i||h(),entity:a||null});return l(c,c.getSelectionAfter(),r,s)},insertText:function(e,t,n,r,i){return t.isCollapsed()||("production"!==process.env.NODE_ENV?c(!1,"Target range must be collapsed for `insertText`."):c(!1)),C.replaceText(e,t,n,r,i)},moveText:function(e,t,n){var r=i(e,t),a=C.removeRange(e,t,"backward");return C.replaceWithFragment(a,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),a=u(i,t);return o(a,a.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var i,a,o,l;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),a=t.getFocusKey(),o=e.getBlockForKey(i),l=e.getBlockForKey(a);var c=t.getStartOffset(),s=t.getEndOffset(),f=o.getEntityAt(c),h=l.getEntityAt(s-1);if(i===a&&f&&f===h){var C=r(e.getEntityMap(),o,l,t,n);return u(e,C)}var p=d(e,t);return u(p,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 s(e,t,function(e){return e.merge({type:n,depth:0})})},setBlockData:function(e,t,n){return s(e,t,function(e){return e.merge({data:n})})},mergeBlockData:function(e,t,n){return s(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 mD=C}function xT(){if(vD)return gD;return vD=1,gD=function(e){return Object.keys(e).map(function(t){return e[t]})},gD}function VT(){if(yD)return wD;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}yD=1;var t=dT(),n=xT(),r=lT(),i=r.List,a=r.Repeat,o=r.Record,l=function(){return!0},c=o({start:null,end:null}),s=o({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,n,r){var o=n.getLength();if(!o)return i.of(new s({start:0,end:0,decoratorKey:null,leaves:i.of(new c({start:0,end:0}))}));var d=[],h=r?r.getDecorations(n,e):i(a(null,o)),C=n.getCharacterList();return t(h,f,l,function(e,t){d.push(new s({start:e,end:t,decoratorKey:h.get(e),leaves:u(C.slice(e,t).toList(),e)}))}),i(d)},fromJS:function(t){var r=t.leaves,a=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["leaves"]);return new s(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}({},a,{leaves:null!=r?i(Array.isArray(r)?r:n(r)).map(function(e){return c(e)}):null}))}};function u(e,n){var r=[],a=e.map(function(e){return e.getStyle()}).toList();return t(a,f,l,function(e,t){r.push(new c({start:e+n,end:t+n}))}),i(r)}function f(e,t){return e===t}return wD=d}function kT(){if(bD)return ED;bD=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,lT().Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));return ED=e}function ST(){if(xD)return HD;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}xD=1;var t=kT(),n=lT(),r=CT(),i=LD?MD:(LD=1,MD=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)})}),a=(0,n.Map)(),o=i();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var c={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),c.__getLastCreatedEntityKey()},create:function(e,t,n){return l("DraftEntity.create","contentState.createEntity"),c.__create(e,t,n)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),c.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),c.__get(e)},__getAll:function(){return a},__loadWithEntities:function(e){a=e,o=i()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),c.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),c.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return o},__create:function(e,n,r){return c.__add(new t({type:e,mutability:n,data:r||{}}))},__add:function(e){return o=i(),a=a.set(o,e),o},__get:function(e){var t=a.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=c.__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),o=r.set("data",i);return a=a.set(t,o),o},__replaceData:function(e,t){var n=c.__get(e).set("data",t);return a=a.set(e,n),n}};return HD=c}function ZT(){if(kD)return VD;kD=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 a=this.getStartOffset(),o=this.getEndOffset();return t<=a&&a<=n||t<=o&&o<=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,lT().Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));return VD=e}function OT(){return ZD?SD:(ZD=1,SD=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]})}function zT(){if(zD)return OD;zD=1;var e=new RegExp("\r","g");return OD=function(t){return t.replace(e,"")}}function IT(){if(ND)return ID;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}ND=1;var n=cT(),r=sT(),i=uT(),a=fT(),o=ST(),l=ZT(),c=mT(),s=xT(),d=OT(),u=lT(),f=zT(),h=u.List,C=u.Record,p=u.Repeat,m=u.Map,A=u.OrderedMap,g=C({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),v=d("draft_tree_data_support")?a:i,w=function(t){var i,a;function d(){return t.apply(this,arguments)||this}a=t,(i=d).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a;var u=d.prototype;return u.getEntityMap=function(){return o},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 o.__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 o.__create(e,t,n),this},u.mergeEntityData=function(e,t){return o.__mergeData(e,t),this},u.replaceEntityData=function(e,t){return o.__replaceData(e,t),this},u.addEntity=function(e){return o.__add(e),this},u.getEntity=function(e){return o.__get(e)},u.getAllEntities=function(){return o.__getAll()},u.loadWithEntities=function(e){return o.__loadWithEntities(e)},d.createFromBlockArray=function(e,t){var r=Array.isArray(e)?e:e.contentBlocks,i=n.createFromArray(r),a=i.isEmpty()?new l:l.createEmpty(i.first().getKey());return new d({blockMap:i,entityMap:t||o,selectionBefore:a,selectionAfter:a})},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 v({key:c(),text:e,type:"unstyled",characterList:h(p(r.EMPTY,e.length))})});return d.createFromBlockArray(n)},d.fromJS=function(t){return new d(e({},t,{blockMap:A(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 v(e({},t,{data:m(t.data),characterList:null!=n?h((Array.isArray(n)?n:s(n)).map(function(e){return r.fromJS(e)})):void 0}))},d}(g);return ID=w}function NT(){if(TD)return DD;TD=1;var e=CT(),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 a(e){n=e}return DD={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:a,initGlobalDir:function(){a(t)},getGlobalDir:function(){return n||this.initGlobalDir(),n||("production"!==process.env.NODE_ENV?e(!1,"Global direction not set."):e(!1)),n}}}function DT(){if(RD)return FD;RD=1;var e=NT(),t=CT(),n="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",r="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",i=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+n+r+"]"),a=new RegExp("["+n+r+"]");function o(e){var t=i.exec(e);return null==t?null:t[0]}function l(t){var n=o(t);return null==n?e.NEUTRAL:a.exec(n)?e.RTL:e.LTR}function c(t,n){if(n=n||e.NEUTRAL,!t.length)return n;var r=l(t);return r===e.NEUTRAL?n:r}function s(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)),c(n,r)}return FD={firstStrongChar:o,firstStrongCharDir:l,resolveBlockDir:c,getDirection:s,isDirectionLTR:function(t,n){return s(t,n)===e.LTR},isDirectionRTL:function(t,n){return s(t,n)===e.RTL}}}function TT(){if(UD)return PD;UD=1;return PD=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}}function FT(){if(WD)return qD;WD=1;var e,t=function(){if(jD)return BD;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}jD=1;var t=DT(),n=NT(),r=CT();return BD=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 a=i.prototype;return a.reset=function(){this._lastDir=this._defaultDir},a.getDirection=function(e){return this._lastDir=t.getDirection(e,this._lastDir),this._lastDir},i}()}(),n=lT(),r=TT(),i=n.OrderedMap;return qD={getDirectionMap:function(a,o){e?e.reset():e=new t;var l=a.getBlockMap(),c=l.valueSeq().map(function(t){return r(e).getDirection(t.getText())}),s=i(l.keySeq().zip(c));return null!=o&&n.is(o,s)?o:s}}}function RT(){if(QD)return XD;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}QD=1;var n=VT(),r=IT(),i=FT(),a=ZT(),o=lT(),l=o.OrderedSet,c=o.Record,s=o.Stack,d=o.OrderedMap,u=o.List,f=c({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:s(),selection:null,treeMap:null,undoStack:s()}),h=function(){c.createEmpty=function(e){return this.createWithText("",e)},c.createWithText=function(e,t){return c.createWithContent(r.createFromText(e),t)},c.createWithContent=function(e,t){if(0===e.getBlockMap().count())return c.createEmpty(t);var n=e.getBlockMap().first().getKey();return c.create({currentContent:e,undoStack:s(),redoStack:s(),decorator:t||null,selection:a.createEmpty(n)})},c.create=function(t){var n=t.currentContent,r=e({},t,{treeMap:p(n,t.decorator),directionMap:i.getDirectionMap(n)});return new c(new f(r))},c.fromJS=function(t){return new c(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?s(t.redoStack.map(function(e){return r.fromJS(e)})):t.redoStack,selection:null!=t.selection?new a(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?s(t.undoStack.map(function(e){return r.fromJS(e)})):t.undoStack,currentContent:r.fromJS(t.currentContent)})))},c.set=function(e,t){var r=e.getImmutable().withMutations(function(r){var i=r.get("decorator"),a=i;null===t.decorator?a=null:t.decorator&&(a=t.decorator);var o=t.currentContent||e.getCurrentContent();if(a!==i){var l,c=r.get("treeMap");return l=a&&i?function(e,t,r,i,a){return r.merge(t.toSeq().filter(function(t){return i.getDecorations(t,e)!==a.getDecorations(t,e)}).map(function(t){return n.generate(e,t,i)}))}(o,o.getBlockMap(),c,a,i):p(o,a),void r.merge({decorator:a,treeMap:l,nativelyRenderedContent:null})}o!==e.getCurrentContent()&&r.set("treeMap",function(e,t,r,i){var a=e.getCurrentContent().set("entityMap",r),o=a.getBlockMap(),l=e.getImmutable().get("treeMap");return l.merge(t.toSeq().filter(function(e,t){return e!==o.get(t)}).map(function(e){return n.generate(a,e,i)}))}(e,o.getBlockMap(),o.getEntityMap(),a)),r.merge(t)});return new c(r)};var o=c.prototype;function c(e){t(this,"_immutable",void 0),this._immutable=e}return o.toJS=function(){return this.getImmutable().toJS()},o.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},o.getCurrentContent=function(){return this.getImmutable().get("currentContent")},o.getUndoStack=function(){return this.getImmutable().get("undoStack")},o.getRedoStack=function(){return this.getImmutable().get("redoStack")},o.getSelection=function(){return this.getImmutable().get("selection")},o.getDecorator=function(){return this.getImmutable().get("decorator")},o.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},o.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},o.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},o.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},o.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},c.setInlineStyleOverride=function(e,t){return c.set(e,{inlineStyleOverride:t})},o.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)},o.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},o.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},o.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},o.getDirectionMap=function(){return this.getImmutable().get("directionMap")},c.acceptSelection=function(e,t){return C(e,t,!1)},c.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),C(e,t,!0)},c.moveSelectionToEnd=function(e){var t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength();return c.acceptSelection(e,new a({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}))},c.moveFocusToEnd=function(e){var t=c.moveSelectionToEnd(e);return c.forceSelection(t,t.getSelection())},c.push=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===t)return e;var a=i.getDirectionMap(t,e.getDirectionMap());if(!e.getAllowUndo())return c.set(e,{currentContent:t,directionMap:a,lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var o=e.getSelection(),l=e.getCurrentContent(),d=e.getUndoStack(),u=t;o!==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",o)):"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:a,undoStack:d,redoStack:s(),lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:f};return c.set(e,h)},c.undo=function(e){if(!e.getAllowUndo())return e;var t=e.getUndoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),a=i.getDirectionMap(n,e.getDirectionMap());return c.set(e,{currentContent:n,directionMap:a,undoStack:t.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},c.redo=function(e){if(!e.getAllowUndo())return e;var t=e.getRedoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),a=i.getDirectionMap(n,e.getDirectionMap());return c.set(e,{currentContent:n,directionMap:a,undoStack:e.getUndoStack().push(r),redoStack:t.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},o.getImmutable=function(){return this._immutable},c}();function C(e,t,n){return h.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function p(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 XD=h}function BT(){if(_D)return YD;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}_D=1;var n=cT(),r=sT(),i=uT(),a=fT(),o=HT(),l=RT(),c=mT(),s=OT(),d=lT(),u=function(){if(KD)return GD;KD=1;var e=fT(),t=bT(),n=lT(),r=CT(),i=n.OrderedMap,a=n.List,o=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,c=t.getKey(),s=n.getKey(),d=t.getParentKey(),u=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),h=n.getParentKey(),C=l?n.getNextSiblingKey():s,p=l?s:n.getPrevSiblingKey();return e.withMutations(function(e){o(d,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(c))})}),o(f,e,function(e){return e.merge({nextSibling:u})}),o(u,e,function(e){return e.merge({prevSibling:f})}),o(C,e,function(e){return e.merge({prevSibling:c})}),o(p,e,function(e){return e.merge({nextSibling:c})}),o(h,e,function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=l?n+1:0!==n?n-1:0,i=t.toArray();return i.splice(r,0,c),e.merge({children:a(i)})}),o(c,e,function(e){return e.merge({nextSibling:C,prevSibling:p,parent:h})})})};return GD=function(n,a,o,c){"replace"===c&&("production"!==process.env.NODE_ENV?r(!1,"Replacing blocks is not supported."):r(!1));var s=o.getKey(),d=a.getKey();d===s&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1));var u=n.getBlockMap(),f=a instanceof e,h=[a],C=u.delete(d);f&&(h=[],C=u.withMutations(function(e){var n=a.getNextSiblingKey(),r=t(a,e);e.toSeq().skipUntil(function(e){return e.getKey()===d}).takeWhile(function(e){var t=e.getKey(),i=t===d,a=n&&t!==n,o=!n&&e.getParentKey()&&(!r||t!==r);return!!(i||a||o)}).forEach(function(t){h.push(t),e.delete(t.getKey())})}));var p=C.toSeq().takeUntil(function(e){return e===o}),m=C.toSeq().skipUntil(function(e){return e===o}).skip(1),A=h.map(function(e){return[e.getKey(),e]}),g=i();if("before"===c){var v=n.getBlockBefore(s);v&&v.getKey()===a.getKey()&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),g=p.concat([].concat(A,[[s,o]]),m).toOrderedMap()}else if("after"===c){var w=n.getBlockAfter(s);w&&w.getKey()===d&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),g=p.concat([[s,o]].concat(A),m).toOrderedMap()}return n.merge({blockMap:l(g,a,o,c,f),selectionBefore:n.getSelectionAfter(),selectionAfter:n.getSelectionAfter().merge({anchorKey:d,focusKey:d})})},GD}(),f=s("draft_tree_data_support"),h=f?a:i,C=d.List,p=d.Repeat;return YD={insertAtomicBlock:function(t,i,a){var s=t.getCurrentContent(),d=t.getSelection(),u=o.removeRange(s,d,"backward"),m=u.getSelectionAfter(),A=o.splitBlock(u,m),g=A.getSelectionAfter(),v=o.setBlockType(A,g,"atomic"),w=r.create({entity:i}),y={key:c(),type:"atomic",text:a,characterList:C(p(w,a.length))},E={key:c(),type:"unstyled"};f&&(y=e({},y,{nextSibling:E.key}),E=e({},E,{prevSibling:y.key}));var b=[new h(y),new h(E)],M=n.createFromArray(b),L=o.replaceWithFragment(v,g,M),H=L.merge({selectionBefore:d,selectionAfter:L.getSelectionAfter().set("hasFocus",!0)});return l.push(t,H,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var i,a=e.getCurrentContent(),c=e.getSelection();if("before"===r||"after"===r){var s=a.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());i=u(a,t,s,r)}else{var d=o.removeRange(a,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 C=o.splitBlock(d,f),p=C.getSelectionAfter(),m=C.getBlockForKey(p.getFocusKey());i=u(C,t,m,"before")}}var A=i.merge({selectionBefore:c,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return l.push(e,A,"move-block")}}}function jT(){if($D)return JD;$D=1;var e=lT().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 a=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+"."+a),a++)},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 JD=t}function PT(){if(tT)return eT;function e(e){return e.replace(/\//g,"-")}return tT=1,eT=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(" ")},eT}function UT(){if(rT)return nT;rT=1;var e=i,t=PT(),n=(0,lT().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 nT=n}function qT(){return aT?iT:(aT=1,iT={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}})}var WT,XT,QT,GT,KT,YT,_T,JT,$T,eF,tF,nF,rF,iF,aF,oF,lF,cF,sF,dF,uF,fF,hF,CF,pF,mF,AF,gF,vF,wF,yF,EF,bF,MF,LF,HF,xF,VF,kF,SF,ZF,OF,zF,IF,NF,DF,TF,FF,RF,BF,jF,PF,UF,qF,WF,XF,QF,GF,KF,YF,_F,JF,$F,eR,tR,nR,rR,iR,aR,oR,lR,cR,sR,dR,uR,fR,hR,CR,pR,mR,AR,gR,vR,wR,yR,ER,bR,MR,LR,HR,xR,VR,kR,SR,ZR,OR,zR,IR,NR,DR,TR,FR,RR,BR,jR,PR,UR,qR,WR,XR,QR,GR,KR,YR,_R,JR,$R,eB,tB,nB={exports:{}},rB=nB.exports;function iB(){return WT||(WT=1,function(e,t){!function(n,r){var i="function",a="undefined",o="object",l="string",c="major",s="model",d="name",u="type",f="vendor",h="version",C="architecture",p="console",m="mobile",A="tablet",g="smarttv",v="wearable",w="embedded",y="Amazon",E="Apple",b="ASUS",M="BlackBerry",L="Browser",H="Chrome",x="Firefox",V="Google",k="Honor",S="Huawei",Z="LG",O="Microsoft",z="Motorola",I="Nvidia",N="OnePlus",D="Opera",T="OPPO",F="Samsung",R="Sharp",B="Sony",j="Xiaomi",P="Zebra",U="Facebook",q="Chromium OS",W="Mac OS",X=" 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===a?e:e.substring(0,500)},_=function(e,t){for(var n,a,l,c,s,d,u=0;u<t.length&&!s;){var f=t[u],h=t[u+1];for(n=a=0;n<f.length&&!s&&f[n];)if(s=f[n++].exec(e))for(l=0;l<h.length;l++)d=s[++a],typeof(c=h[l])===o&&c.length>0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,d):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=d?d.replace(c[1],c[2]):r:this[c[0]]=d?c[1].call(this,d,c[2]):r:4===c.length&&(this[c[0]]=d?c[3].call(this,d.replace(c[1],c[2])):r):this[c]=d||r;u+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===o&&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,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[d,D+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[d,D]],[/\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"+L]],[/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 "+L]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+L],h],[/\bfocus\/([\w\.]+)/i],[h,[d,x+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI"+X]],[/fxios\/([\w\.-]+)/i],[h,[d,x]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+X],h],[/samsungbrowser\/([\w\.]+)/i],[h,[d,F+" 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,U],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,H+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,H+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+L]],[/(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,x+" 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],[[C,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[C,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[C,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[C,/ower/,"",K]],[/ sun4\w[;\)]/i],[[C,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[C,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],[s,[f,F],[u,A]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[f,F],[u,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[f,E],[u,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[f,E],[u,A]],[/(macintosh);/i],[s,[f,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[f,R],[u,m]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[s,[f,k],[u,A]],[/honor([-\w ]+)[;\)]/i],[s,[f,k],[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],[s,[f,S],[u,A]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[f,S],[u,m]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[s,/_/g," "],[f,j],[u,A]],[/\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],[[s,/_/g," "],[f,j],[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],[s,[f,T],[u,m]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[f,J,{OnePlus:["304","403","203"],"*":T}],[u,A]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[f,"Vivo"],[u,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[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],[s,[f,z],[u,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[f,z],[u,A]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[f,Z],[u,A]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[f,Z],[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],[s,[f,"Lenovo"],[u,A]],[/(nokia) (t[12][01])/i],[f,s,[u,A]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[s,/_/g," "],[u,m],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[s,[f,V],[u,A]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[f,V],[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],[s,[f,B],[u,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[f,B],[u,A]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[f,N],[u,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[f,y],[u,A]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[f,y],[u,m]],[/(playbook);[-\w\),; ]+(rim)/i],[s,f,[u,A]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[f,M],[u,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[f,b],[u,A]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[f,b],[u,m]],[/(nexus 9)/i],[s,[f,"HTC"],[u,A]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[s,/_/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],[s,[f,"TCL"],[u,A]],[/(itel) ((\w+))/i],[[f,K],s,[u,J,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[f,"Acer"],[u,A]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[f,"Meizu"],[u,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[f,"Ulefone"],[u,m]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[f,"Energizer"],[u,m]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[f,"Cat"],[u,m]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[f,"Smartfren"],[u,m]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[f,"Nothing"],[u,m]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[s,[f,"Archos"],[u,A]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[s,[f,"Archos"],[u,m]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,s,[u,A]],[/(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,s,[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,s,[u,A]],[/(surface duo)/i],[s,[f,O],[u,A]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[f,"Fairphone"],[u,m]],[/(u304aa)/i],[s,[f,"AT&T"],[u,m]],[/\bsie-(\w*)/i],[s,[f,"Siemens"],[u,m]],[/\b(rct\w+) b/i],[s,[f,"RCA"],[u,A]],[/\b(venue[\d ]{2,7}) b/i],[s,[f,"Dell"],[u,A]],[/\b(q(?:mv|ta)\w+) b/i],[s,[f,"Verizon"],[u,A]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[f,"Barnes & Noble"],[u,A]],[/\b(tm\d{3}\w+) b/i],[s,[f,"NuVision"],[u,A]],[/\b(k88) b/i],[s,[f,"ZTE"],[u,A]],[/\b(nx\d{3}j) b/i],[s,[f,"ZTE"],[u,m]],[/\b(gen\d{3}) b.+49h/i],[s,[f,"Swiss"],[u,m]],[/\b(zur\d{3}) b/i],[s,[f,"Swiss"],[u,A]],[/\b((zeki)?tb.*\b) b/i],[s,[f,"Zeki"],[u,A]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],s,[u,A]],[/\b(ns-?\w{0,9}) b/i],[s,[f,"Insignia"],[u,A]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[f,"NextBook"],[u,A]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],s,[u,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],s,[u,m]],[/\b(ph-1) /i],[s,[f,"Essential"],[u,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[f,"Envizen"],[u,A]],[/\b(trio[-\w\. ]+) b/i],[s,[f,"MachSpeed"],[u,A]],[/\btu_(1491) b/i],[s,[f,"Rotor"],[u,A]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[s,[f,I],[u,A]],[/(sprint) (\w+)/i],[f,s,[u,m]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[f,O],[u,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[f,P],[u,A]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[f,P],[u,m]],[/smart-tv.+(samsung)/i],[f,[u,g]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[f,F],[u,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,Z],[u,g]],[/(apple) ?tv/i],[f,[s,E+" TV"],[u,g]],[/crkey/i],[[s,H+"cast"],[f,V],[u,g]],[/droid.+aft(\w+)( bui|\))/i],[s,[f,y],[u,g]],[/(shield \w+ tv)/i],[s,[f,I],[u,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[f,R],[u,g]],[/(bravia[\w ]+)( bui|\))/i],[s,[f,B],[u,g]],[/(mi(tv|box)-?\w+) bui/i],[s,[f,j],[u,g]],[/Hbbtv.*(technisat) (.*);/i],[f,s,[u,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,Y],[s,Y],[u,g]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[s,[u,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,s,[u,p]],[/droid.+; (shield)( bui|\))/i],[s,[f,I],[u,p]],[/(playstation \w+)/i],[s,[f,B],[u,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[f,O],[u,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[s,[f,F],[u,v]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,s,[u,v]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[s,[f,T],[u,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[f,E],[u,v]],[/(opwwe\d{3})/i],[s,[f,N],[u,v]],[/(moto 360)/i],[s,[f,z],[u,v]],[/(smartwatch 3)/i],[s,[f,B],[u,v]],[/(g watch r)/i],[s,[f,Z],[u,v]],[/droid.+; (wt63?0{2,3})\)/i],[s,[f,P],[u,v]],[/droid.+; (glass) \d/i],[s,[f,V],[u,v]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,s,[u,v]],[/; (quest( \d| pro)?)/i],[s,[f,U],[u,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[u,w]],[/(aeobc)\b/i],[s,[f,y],[u,w]],[/(homepod).+mac os/i],[s,[f,E],[u,w]],[/windows iot/i],[[u,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[u,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[u,A]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,A]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,m]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[s,[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,W],[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,M]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,x+" 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,H+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,q],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===o&&(t=e,e=r),!(this instanceof te))return new te(e,t).getResult();var p=typeof n!==a&&n.navigator?n.navigator:r,g=e||(p&&p.userAgent?p.userAgent:""),v=p&&p.userAgentData?p.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,y=p&&p.userAgent==g;return this.getBrowser=function(){var e={};return e[d]=r,e[h]=r,_.call(e,g,w.browser),e[c]=function(e){return typeof e===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r}(e[h]),y&&p&&p.brave&&typeof p.brave.isBrave==i&&(e[d]="Brave"),e},this.getCPU=function(){var e={};return e[C]=r,_.call(e,g,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[s]=r,e[u]=r,_.call(e,g,w.device),y&&!e[u]&&v&&v.mobile&&(e[u]=m),y&&"Macintosh"==e[s]&&p&&typeof p.standalone!==a&&p.maxTouchPoints&&p.maxTouchPoints>2&&(e[s]="iPad",e[u]=A),e},this.getEngine=function(){var e={};return e[d]=r,e[h]=r,_.call(e,g,w.engine),e},this.getOS=function(){var e={};return e[d]=r,e[h]=r,_.call(e,g,w.os),y&&!e[d]&&v&&v.platform&&"Unknown"!=v.platform&&(e[d]=v.platform.replace(/chrome os/i,q).replace(/macos/i,W)),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 g},this.setUA=function(e){return g=typeof e===l&&e.length>500?Y(e,500):e,this},this.setUA(g),this};te.VERSION="0.7.41",te.BROWSER=Q([d,h,c]),te.CPU=Q([C]),te.DEVICE=Q([s,f,u,p,m,g,A,v,w]),te.ENGINE=te.OS=Q([d,h]),e.exports&&(t=e.exports=te),t.UAParser=te;var ne=typeof n!==a&&(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:rB)}(nB,nB.exports)),nB.exports}function aB(){if(QT)return XT;QT=1;var e=iB(),t="Unknown",n={"Mac OS":"Mac OS X"};var r,i=(new e).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),o={browserArchitecture:i.cpu.architecture||t,browserFullVersion:i.browser.version||t,browserMinorVersion:a.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 XT=o}function oB(){if(KT)return GT;KT=1;var e=CT(),t=/\./,n=/\|\|/,r=/\s+\-\s+/,i=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,a=/^(\d*)(.*)/;function o(t,i){var a=t.split(n);return a.length>1?a.some(function(e){return A.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 a=i[0],o=i[1];return f(a)&&f(o)||("production"!==process.env.NODE_ENV?e(!1,'operands to the "-" operator must be simple (no modifiers)'):e(!1)),l(">="+a,n)&&l("<="+o,n)}(t=a[0].trim(),i)}function l(e,n){if(""===(e=e.trim()))return!0;var r=n.split(t),i=d(e),a=i.modifier,o=i.rangeComponents;switch(a){case"<":return c(r,o);case"<=":return function(e,t){var n=m(e,t);return-1===n||0===n}(r,o);case">=":return s(r,o);case">":return 1===m(r,o);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,a=parseInt(r[i],10);u(a)&&(r[i]=a+1+"");return s(e,n)&&c(e,r)}(r,o);default:return function(e,t){return 0===m(e,t)}(r,o)}}function c(e,t){return-1===m(e,t)}function s(e,t){var n=m(e,t);return 1===n||0===n}function d(n){var r=n.split(t),a=r[0].match(i);return a||("production"!==process.env.NODE_ENV?e(!1,"expected regex to match but it did not"):e(!1)),{modifier:a[1],rangeComponents:[a[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 C(e,t){var n=e.match(a)[1],r=t.match(a)[1],i=parseInt(n,10),o=parseInt(r,10);return u(i)&&u(o)&&i!==o?p(i,o):p(e,t)}function p(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],a=0;a<i.length;a++){var o=C(r[a],i[a]);if(o)return o}return 0}var A={contains:function(e,t){return o(e.trim(),t.trim())}};return GT=A}function lB(){if(tF)return eF;tF=1;var e=aB(),t=oB(),n=function(){if(_T)return YT;_T=1;var e=Object.prototype.hasOwnProperty;return YT=function(t,n,r){if(!t)return null;var i={};for(var a in t)e.call(t,a)&&(i[a]=n.call(r,t[a],a,t));return i},YT}(),r=$T?JT:($T=1,JT=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 a=r.slice(e.length);return!!n&&(a=i?i(a):a,t.contains(a,n))}function a(t){return"Windows"===e.platformName?t.replace(/^\s*NT/,""):t}return eF=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,a)},isPlatformArchitecture:function(t){return i(e.platformArchitecture,null,t)}},r)}function cB(){if(rF)return nF;return rF=1,nF=function(e){return e&&e.ownerDocument?e.ownerDocument:document}}function sB(){if(aF)return iF;return aF=1,iF=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}}function dB(){if(lF)return oF;lF=1;var e=sB();return oF=function t(n){if(e(n)){var r=n,i=r.getAttribute("data-offset-key");if(i)return i;for(var a=0;a<r.childNodes.length;a++){var o=t(r.childNodes[a]);if(o)return o}}return null},oF}function uB(){if(sF)return cF;sF=1;var e=cB(),t=dB();return cF=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},cF}function fB(){if(uF)return dF;return uF=1,dF=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}}function hB(){if(pF)return CF;pF=1;var e="-";return CF={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 CB(){return AF?mF:(AF=1,mF={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 pB(){return vF?gF:(vF=1,gF={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}})}function mB(){if(yF)return wF;return yF=1,wF=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}}function AB(){if(bF)return EF;bF=1;var e=CT(),t=mB();return EF=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 gB(){if(LF)return MF;LF=1;var e=hB(),t=TT();return MF=function(n,r,i,a,o){var l=t(n.getSelection());if(!r||!a)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var c=e.decode(r),s=c.blockKey,d=n.getBlockTree(s),u=d&&d.getIn([c.decoratorKey,"leaves",c.leafKey]),f=e.decode(a),h=f.blockKey,C=n.getBlockTree(h),p=C&&C.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!u||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var m=u.get("start"),A=p.get("start"),g=u?m+i:null,v=p?A+o:null;if(l.getAnchorKey()===s&&l.getAnchorOffset()===g&&l.getFocusKey()===h&&l.getFocusOffset()===v)return l;var w=!1;if(s===h){var y=u.get("end"),E=p.get("end");w=A===m&&E===y?o<i:A<m}else{w=n.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===s||e===h}).first()===h}return l.merge({anchorKey:s,anchorOffset:g,focusKey:h,focusOffset:v,isBackward:w})},MF}function vB(){if(xF)return HF;xF=1;var e=uB(),t=dB(),n=gB(),r=CT(),i=sB(),a=TT();function o(n,o,c){var s=o,d=e(s);(null!=d||n&&(n===s||n.firstChild===s)||("production"!==process.env.NODE_ENV?r(!1,"Unknown node in selection range."):r(!1)),n===s)&&(s=s.firstChild,i(s)||("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents node."):r(!1)),"true"!==(s=s).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents structure."):r(!1)),c>0&&(c=s.childNodes.length));if(0===c){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}(s);u=a(t(f))}return{key:u,offset:0}}var h=s.childNodes[c-1],C=null,p=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);C=a(t(m)),p=l(m)}else C=a(d),p=l(h);return{key:C,offset:p}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}return HF=function(t,r,i,l,c,s){var d=i.nodeType===Node.TEXT_NODE,u=c.nodeType===Node.TEXT_NODE;if(d&&u)return{selectionState:n(t,a(e(i)),l,a(e(c)),s),needsRecovery:!1};var f=null,h=null,C=!0;return d?(f={key:a(e(i)),offset:l},h=o(r,c,s)):u?(h={key:a(e(c)),offset:s},f=o(r,i,l)):(f=o(r,i,l),h=o(r,c,s),i===c&&l===s&&(C=!!i.firstChild&&"BR"!==i.firstChild.nodeName)),{selectionState:n(t,f.key,f.offset,h.key,h.offset),needsRecovery:C}}}function wB(){if(kF)return VF;kF=1;var e=vB();return VF=function(t,n){var r=n.ownerDocument.defaultView.getSelection(),i=r.anchorNode,a=r.anchorOffset,o=r.focusNode,l=r.focusOffset;return 0===r.rangeCount||null==i||null==o?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:e(t,n,i,a,o,l)}}function yB(){if(ZF)return SF;ZF=1;var e=pB(),t=RT(),n=AB(),r=wB();return SF=function(i){if(i._blockSelectEvents||i._latestEditorState!==i.props.editorState){if(i._blockSelectEvents){var a=i.props.editorState.getSelection();e.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(a.toJS())})}}else{var o=i.props.editorState,l=r(o,n(i)),c=l.selectionState;c!==o.getSelection()&&(o=l.needsRecovery?t.forceSelection(o,c):t.acceptSelection(o,c),i.update(o))}}}function EB(){if(zF)return OF;return zF=1,OF={notEmptyKey:function(e){return null!=e&&""!=e}},OF}function bB(){if(NF)return IF;NF=1;var e=EB().notEmptyKey;function t(t,n){return e(n)&&"MUTABLE"===t.__get(n).getMutability()?n:null}return IF=function(e,n){var r;if(n.isCollapsed()){var i=n.getAnchorKey(),a=n.getAnchorOffset();return a>0?(r=e.getBlockForKey(i).getEntityAt(a-1))!==e.getBlockForKey(i).getEntityAt(a)?null:t(e.getEntityMap(),r):null}var o=n.getStartKey(),l=n.getStartOffset(),c=e.getBlockForKey(o);return r=l===c.getLength()?null:c.getEntityAt(l),t(e.getEntityMap(),r)},IF}function MB(){if(TF)return DF;TF=1;var e=function(){if(hF)return fF;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}hF=1;var t=lB(),n=uB(),r=fB(),i=lT(),a=CT(),o=TT(),l=i.Map,c={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},s=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&&!s?this.observer=new i.MutationObserver(function(e){return n.registerMutations(e)}):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?a(!1,"Expected target to be an instance of Node"):a(!1)),n.registerMutation({type:"characterData",target:e.target})}}var i=t.prototype;return i.start=function(){this.observer?this.observer.observe(this.container,c):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 s?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=o(n(e.target));this.mutations=this.mutations.set(r,t)}},t}();return fF=d}(),t=HT(),n=hB(),r=RT(),i=CB(),a=lB(),o=yB(),l=AB(),c=wB(),s=bB(),d=TT(),u=a.isBrowser("IE"),f=!1,h=!1,C=null;var p={onCompositionStart:function(t){h=!0,function(t){C||(C=new e(l(t))).start()}(t)},onCompositionEnd:function(e){f=!1,h=!1,setTimeout(function(){f||p.resolveComposition(e)},20)},onSelect:o,onKeyDown:function(e,t){if(!h)return p.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(C).stopAndFlushMutations();C=null,f=!0;var a=r.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),i.size){var o=a.getCurrentContent();i.forEach(function(e,i){var l=n.decode(i),c=l.blockKey,d=l.decoratorKey,u=l.leafKey,f=a.getBlockTree(c).getIn([d,"leaves",u]),h=f.start,C=f.end,p=a.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:h,focusOffset:C,isBackward:!1}),m=s(o,p),A=o.getBlockForKey(c).getInlineStyleAt(h);o=t.replaceText(o,p,e,A,m),a=r.set(a,{currentContent:o})});var p=c(a,l(e)).selectionState;e.restoreEditorDOM();var m=u?r.forceSelection(a,p):r.acceptSelection(a,p);e.update(r.push(m,o,"insert-characters"))}else e.update(a)}}};return DF=p}function LB(){if(RF)return FF;RF=1;var e=Lm();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=hB(),r=i,a=DT(),o=NT(),l=function(e){var i,l;function c(){return e.apply(this,arguments)||this}return l=e,(i=c).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l,c.prototype.render=function(){var e=this.props,i=e.block,l=e.children,c=e.contentState,s=e.decorator,d=e.decoratorKey,u=e.direction,f=e.leafSet,h=e.text,C=i.getKey(),p=f.get("leaves"),m=s.getComponentForKey(d),A=s.getPropsForKey(d),g=n.encode(C,parseInt(d,10),0),v=h.slice(p.first().get("start"),p.last().get("end")),w=o.getHTMLDirIfDifferent(a.getDirection(v),u);return r.createElement(m,t({},A,{contentState:c,decoratedText:v,dir:w,key:g,entityKey:i.getEntityAt(f.get("start")),offsetKey:g}),l)},c}(r.Component);return FF=l}function HB(){if(jF)return BF;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}jF=1;var n=i,r=lB(),a=CT(),o=sB(),l=r.isBrowser("IE <= 11");var c=function(r){var i,c;function s(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}c=r,(i=s).prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c;var d=s.prototype;return d.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;o(t)||("production"!==process.env.NODE_ENV?a(!1,"node is not an Element"):a(!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)},s}(n.Component);return BF=c}function xB(){if(UF)return PF;UF=1;var e=sB();return PF=function(t){return!(!t||!t.ownerDocument)&&(e(t)&&"BR"===t.nodeName)}}function VB(){return WF?qF:(WF=1,qF={initODS:function(){},handleExtensionCausedError:function(){}})}function kB(){if(KF)return GF;KF=1;var e=QF?XF:(QF=1,XF=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 GF=function(t){return e(t)&&3==t.nodeType}}function SB(){if(_F)return YF;_F=1;var e=kB();return YF=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))))},YF}function ZB(){if($F)return JF;return $F=1,JF=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 OB(){if(tR)return eR;tR=1;var e=VB(),t=pB(),n=lB(),r=SB(),i=ZB(),a=cB(),o=CT(),l=sB(),c=n.isBrowser("IE");function s(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?o(!1,"Node must be an Element if it is not a text node."):o(!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 a(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 o=e.childNodes,l=0;l<o.length;l++)i.appendChild(d(o[l],t));return i}function u(e,t){for(var n=e,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return s(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,a,o){var l=i();if(e.extend&&null!=n&&r(l,n)){a>f(n)&&t.logSelectionStateFailure({anonymizedDom:u(n),extraParams:JSON.stringify({offset:a}),selectionState:JSON.stringify(o.toJS())});var c=n===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(n,a)}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:c,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:a},null,2),selectionState:JSON.stringify(o.toJS(),null,2)}),r}}else if(n&&e.rangeCount>0){var s=e.getRangeAt(0);s.setEnd(n,a),e.addRange(s.cloneRange())}}function C(n,r,i,o){var l=a(r).createRange();if(i>f(r)&&(t.logSelectionStateFailure({anonymizedDom:u(r),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(o.toJS())}),e.handleExtensionCausedError()),l.setStart(r,i),c)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 eR={setDraftEditorSelection:function(e,t,n,i,o){var l=a(t);if(r(l.documentElement,t)){var c=l.defaultView.getSelection(),s=e.getAnchorKey(),d=e.getAnchorOffset(),u=e.getFocusKey(),f=e.getFocusOffset(),p=e.getIsBackward();if(!c.extend&&p){var m=s,A=d;s=u,d=f,u=m,f=A,p=!1}var g=s===n&&i<=d&&o>=d,v=u===n&&i<=f&&o>=f;if(g&&v)return c.removeAllRanges(),C(c,t,d-i,e),void h(c,t,f-i,e);if(p){if(v&&(c.removeAllRanges(),C(c,t,f-i,e)),g){var w=c.focusNode,y=c.focusOffset;c.removeAllRanges(),C(c,t,d-i,e),h(c,w,y,e)}}else g&&(c.removeAllRanges(),C(c,t,d-i,e)),v&&h(c,t,f-i,e)}},addFocusToSelection:h}}function zB(){if(rR)return nR;rR=1;var e=Lm();var t=HB(),n=i,r=CT(),a=xB(),o=OB().setDraftEditorSelection,l=function(i){var l,c;function s(){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}c=i,(l=s).prototype=Object.create(c.prototype),l.prototype.constructor=l,l.__proto__=c;var d=s.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,c=n.getKey(),s=i+l.length;if(e.hasEdgeWithin(c,i,s)){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:a(f)?u=d:(u=f.firstChild)||("production"!==process.env.NODE_ENV?r(!1,"Missing targetNode"):r(!1)),o(e,u,c,i,s)}}},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,a=this.props.text;a.endsWith("\n")&&this.props.isLast&&(a+="\n");var o=this.props,l=o.customStyleMap,c=o.customStyleFn,s=o.offsetKey,d=o.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(c){var f=c(d,i);u=e(u,f)}return n.createElement("span",{"data-offset-key":s,ref:function(e){return r.leaf=e},style:u},n.createElement(t,null,a))},s}(n.Component);return nR=l}function IB(){if(aR)return iR;aR=1;var e=LB(),t=zB(),n=hB(),r=lT(),a=i,o=PT();r.List;var l=function(r){var i,l;function c(){return r.apply(this,arguments)||this}return l=r,(i=c).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l,c.prototype.render=function(){var r=this.props,i=r.block,l=r.contentState,c=r.customStyleFn,s=r.customStyleMap,d=r.decorator,u=r.direction,f=r.forceSelection,h=r.hasSelection,C=r.selection,p=r.tree,m=i.getKey(),A=i.getText(),g=p.size-1,v=this.props.children||p.map(function(r,o){var p=r.get("decoratorKey"),v=r.get("leaves"),w=v.size-1,y=v.map(function(e,r){var l=n.encode(m,o,r),d=e.get("start"),u=e.get("end");return a.createElement(t,{key:l,offsetKey:l,block:i,start:d,selection:h?C:null,forceSelection:f,text:A.slice(d,u),styleSet:i.getInlineStyleAt(d),customStyleMap:s,customStyleFn:c,isLast:p===g&&r===w})}).toArray();return p&&d?a.createElement(e,{block:i,children:y,contentState:l,decorator:d,decoratorKey:p,direction:u,leafSet:r,text:A,key:o}):y}).toArray();return a.createElement("div",{"data-offset-key":n.encode(m,0,0),className:o({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===u,"public/DraftStyleDefault/rtl":"RTL"===u})},v)},c}(a.Component);return iR=l}function NB(){if(lR)return oR;function e(e,t){return!!t&&(e===t.documentElement||e===t.body)}return lR=1,oR={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 DB(){if(hR)return fR;hR=1;var e=function(){if(sR)return cR;sR=1;var e=/-(.)/g;return cR=function(t){return t.replace(e,function(e,t){return t.toUpperCase()})}}(),t=function(){if(uR)return dR;uR=1;var e=/([A-Z])/g;return dR=function(t){return t.replace(e,"-$1").toLowerCase()}}();function n(e){return null==e?e:String(e)}return fR=function(r,i){var a;if(window.getComputedStyle&&(a=window.getComputedStyle(r,null)))return n(a.getPropertyValue(t(i)));if(document.defaultView&&document.defaultView.getComputedStyle){if(a=document.defaultView.getComputedStyle(r,null))return n(a.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 TB(){if(pR)return CR;function e(e,n){var r=t.get(e,n);return"auto"===r||"scroll"===r}pR=1;var t={get:DB(),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 CR=t}function FB(){if(vR)return gR;vR=1;var e=function(){if(AR)return mR;AR=1;var e=SB();return mR=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 gR=function(t){var n=e(t);return{x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top}}}function RB(){if(LR)return MR;LR=1;var e=function(){if(yR)return wR;yR=1;var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;return wR=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}}(),t=bR?ER:(bR=1,ER=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 MR=function(n){var r=e(n.ownerDocument||n.document);n.Window&&n instanceof n.Window&&(n=r);var i=t(n),a=n===r?n.ownerDocument.documentElement:n,o=n.scrollWidth-a.clientWidth,l=n.scrollHeight-a.clientHeight;return i.x=Math.max(0,Math.min(i.x,o)),i.y=Math.max(0,Math.min(i.y,l)),i},MR}function BB(){if(xR)return HR;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 xR=1,n.withoutScrollbars=function(){return{width:e(),height:t()}},HR=n}function jB(){if(kR)return VR;kR=1;var e=Lm();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 a=IB(),o=hB(),l=i,c=NB(),s=TB(),d=FB(),u=RB(),f=BB(),h=lT(),C=CT(),p=mB();h.List;var m=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},A=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}},g=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},v=function(e,t,r,i,a,o){var l={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:o},c=i(e);return c&&(l.className=c),void 0!==a.customEditable&&(l=n({},l,{contentEditable:a.customEditable,suppressContentEditableWarning:!0})),l},w=function(e){var i,h;function w(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];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 y=w.prototype;return y.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,i=t.tree,a=!n.getChildKeys().isEmpty(),o=n!==e.block||i!==e.tree||r!==e.direction||m(e.selection,e.block.getKey())&&e.forceSelection;return a||o},y.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=s.getScrollParent(n),a=u(i);if(i===window){var o=d(n);(r=o.y+o.height-f().height)>0&&window.scrollTo(a.x,a.y+r+10)}else{p(n)||("production"!==process.env.NODE_ENV?C(!1,"blockNode is not an HTMLElement"):C(!1));var l=n;(r=l.offsetHeight+l.offsetTop-(i.offsetHeight+a.y))>0&&c.setTop(i,c.getTop(i)+r+10)}}}},y.render=function(){var e=this,r=this.props,i=r.block,c=r.blockRenderMap,s=r.blockRendererFn,d=r.blockStyleFn,u=r.contentState,f=r.decorator,h=r.editorKey,C=r.editorState,p=r.customStyleFn,y=r.customStyleMap,E=r.direction,b=r.forceSelection,M=r.selection,L=r.tree,H=null;i.children.size&&(H=i.children.reduce(function(t,r){var i=o.encode(r,0,0),a=u.getBlockForKey(r),f=g(a,s),p=f.CustomComponent||w,m=A(a,c),y=m.Element,E=m.wrapperTemplate,b=v(a,h,i,d,f,null),M=n({},e.props,{tree:C.getBlockTree(r),blockProps:f.customProps,offsetKey:i,block:a});return t.push(l.createElement(y,b,l.createElement(p,M))),!E||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(a,u)||function(e,t,n){var r=[],i=!0,a=!1,c=void 0;try{for(var s,d=n.reverse()[Symbol.iterator]();!(i=(s=d.next()).done);i=!0){var u=s.value;if(u.type!==t)break;r.push(u)}}catch(e){a=!0,c=e}finally{try{i||null==d.return||d.return()}finally{if(a)throw c}}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":o.encode(h,0,0)},f))}(E,y,t),t},[]));var x=i.getKey(),V=o.encode(x,0,0),k=g(i,s),S=k.CustomComponent,Z=null!=S?l.createElement(S,t({},this.props,{tree:C.getBlockTree(x),blockProps:k.customProps,offsetKey:V,block:i})):l.createElement(a,{block:i,children:H,contentState:u,customStyleFn:p,customStyleMap:y,decorator:f,direction:E,forceSelection:b,hasSelection:m(M,x),selection:M,tree:L});if(i.getParentKey())return Z;var O=A(i,c).Element,z=v(i,h,V,d,k,this.wrapperRef);return l.createElement(O,z,Z)},w}(l.Component);return VR=w}function PB(){if(ZR)return SR;ZR=1;var e=Lm();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=jB(),r=hB(),a=i,o=TT(),l=function(e){var i,l;function c(){return e.apply(this,arguments)||this}l=e,(i=c).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l;var s=c.prototype;return s.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(),a=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&a)return!1;var o=t.getCurrentContent(),l=n.getCurrentContent(),c=t.getDecorator(),s=n.getDecorator();return i!==a||o!==l||c!==s||n.mustForceSelection()},s.render=function(){for(var e=this.props,i=e.blockRenderMap,l=e.blockRendererFn,c=e.blockStyleFn,s=e.customStyleMap,d=e.customStyleFn,u=e.editorState,f=e.editorKey,h=e.textDirectionality,C=u.getCurrentContent(),p=u.getSelection(),m=u.mustForceSelection(),A=u.getDecorator(),g=o(u.getDirectionMap()),v=[],w=C.getBlocksAsArray()[0];w;){var y=w.getKey(),E={blockRenderMap:i,blockRendererFn:l,blockStyleFn:c,contentState:C,customStyleFn:d,customStyleMap:s,decorator:A,editorKey:f,editorState:u,forceSelection:m,selection:p,block:w,direction:h||g.get(y),tree:u.getBlockTree(y)},b=(i.get(w.getType())||i.get("unstyled")).wrapper;v.push({block:a.createElement(n,t({key:y},E)),wrapperTemplate:b,key:y,offsetKey:r.encode(y,0,0)});var M=w.getNextSiblingKey();w=M?C.getBlockForKey(M):null}for(var L=[],H=0;H<v.length;){var x=v[H];if(x.wrapperTemplate){var V=[];do{V.push(v[H].block),H++}while(H<v.length&&v[H].wrapperTemplate===x.wrapperTemplate);var k=a.cloneElement(x.wrapperTemplate,{key:x.key+"-wrap","data-offset-key":x.offsetKey},V);L.push(k)}else L.push(x.block),H++}return a.createElement("div",{"data-contents":"true"},L)},c}(a.Component);return SR=l}function UB(){if(zR)return OR;zR=1;var e=Lm();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=zB(),r=hB(),a=i,o=NB(),l=TB(),c=DT(),s=NT(),d=PT(),u=FB(),f=RB(),h=BB(),C=CT(),p=mB(),m=TT(),A=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},g=function(e){var i,g;function v(){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}g=e,(i=v).prototype=Object.create(g.prototype),i.prototype.constructor=i,i.__proto__=g;var w=v.prototype;return w.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||A(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),a=f(i);if(i===window){var c=u(n);(r=c.y+c.height-h().height)>0&&window.scrollTo(a.x,a.y+r+10)}else{p(n)||("production"!==process.env.NODE_ENV?C(!1,"blockNode is not an HTMLElement"):C(!1)),(r=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+a.y))>0&&o.setTop(i,o.getTop(i)+r+10)}}}}},w._renderChildren=function(){var e=this,i=this.props.block,o=i.getKey(),l=i.getText(),d=this.props.tree.size-1,u=A(this.props.selection,o);return this.props.tree.map(function(f,h){var C=f.get("leaves");if(0===C.size)return null;var p=C.size-1,A=C.map(function(t,c){var s=r.encode(o,h,c),f=t.get("start"),C=t.get("end");return a.createElement(n,{key:s,offsetKey:s,block:i,start:f,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:l.slice(f,C),styleSet:i.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===d&&c===p})}).toArray(),g=f.get("decoratorKey");if(null==g)return A;if(!e.props.decorator)return A;var v=m(e.props.decorator),w=v.getComponentForKey(g);if(!w)return A;var y=v.getPropsForKey(g),E=r.encode(o,h,0),b=C.first().get("start"),M=C.last().get("end"),L=l.slice(b,M),H=i.getEntityAt(f.get("start")),x=s.getHTMLDirIfDifferent(c.getDirection(L),e.props.direction),V={contentState:e.props.contentState,decoratedText:L,dir:x,start:b,end:M,blockKey:o,entityKey:H,offsetKey:E};return a.createElement(w,t({},y,V,{key:E}),A)}).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 a.createElement("div",{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},v}(a.Component);return OR=g}function qB(){if(TR)return DR;TR=1;var e=Lm();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 a=UB(),o=hB(),l=i,c=PT(),s=(NR||(NR=1,IR=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}),IR),d=TT(),u=function(e,t,n,r){return c({"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 c(){return e.apply(this,arguments)||this}i=e,(r=c).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var f=c.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(),a=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&a)return!1;var o=t.getCurrentContent(),l=n.getCurrentContent(),c=t.getDecorator(),s=n.getDecorator();return i!==a||o!==l||c!==s||n.mustForceSelection()},f.render=function(){for(var e=this.props,r=e.blockRenderMap,i=e.blockRendererFn,c=e.blockStyleFn,f=e.customStyleMap,h=e.customStyleFn,C=e.editorState,p=e.editorKey,m=e.preventScroll,A=e.textDirectionality,g=C.getCurrentContent(),v=C.getSelection(),w=C.mustForceSelection(),y=C.getDecorator(),E=d(C.getDirectionMap()),b=g.getBlocksAsArray(),M=[],L=null,H=null,x=0;x<b.length;x++){var V=b[x],k=V.getKey(),S=V.getType(),Z=i(V),O=void 0,z=void 0,I=void 0;Z&&(O=Z.component,z=Z.props,I=Z.editable);var N=A||E.get(k),D=o.encode(k,0,0),T={contentState:g,block:V,blockProps:z,blockStyleFn:c,customStyleMap:f,customStyleFn:h,decorator:y,direction:N,forceSelection:w,offsetKey:D,preventScroll:m,selection:v,tree:C.getBlockTree(k)},F=r.get(S)||r.get("unstyled"),R=F.wrapper,B=F.element||r.get("unstyled").element,j=V.getDepth(),P="";if(c&&(P=c(V)),"li"===B)P=s(P,u(S,j,H!==R||null===L||j>L,N));var U=O||a,q={className:P,"data-block":!0,"data-editor":p,"data-offset-key":D,key:k};void 0!==I&&(q=n({},q,{contentEditable:I,suppressContentEditableWarning:!0}));var W=l.createElement(B,q,l.createElement(U,t({},T,{key:k})));M.push({block:W,wrapperTemplate:R,key:k,offsetKey:D}),L=R?V.getDepth():null,H=R}for(var X=[],Q=0;Q<M.length;){var G=M[Q];if(G.wrapperTemplate){var K=[];do{K.push(M[Q].block),Q++}while(Q<M.length&&M[Q].wrapperTemplate===G.wrapperTemplate);var Y=l.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},K);X.push(Y)}else X.push(G.block),Q++}return l.createElement("div",{"data-contents":"true"},X)},c}(l.Component);return DR=f}function WB(){if(UR)return PR;UR=1;var e=CT();return PR=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 XB(){if(WR)return qR;function e(e){return function(){return e}}WR=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},qR=t}function QB(){if(QR)return XR;QR=1;var e=function(){if(jR)return BR;jR=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 BR=e}(),t=WB(),n=XB(),r=new RegExp("\r\n","g"),i={"text/rtf":1,"text/html":1};function a(e){if("file"==e.kind)return e.getAsFile()}return XR=function(){function o(e){this.data=e,this.types=e.types?t(e.types):[]}var l=o.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(a).filter(n.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},l.hasFiles=function(){return this.getFiles().length>0},o}()}function GB(){if(KR)return GR;KR=1;var e=CT(),t=/\.textClipping$/,n={"text/plain":!0,"text/html":!0,"text/rtf":!0};return GR=function(r,i){var a=0,o=[];r.forEach(function(l){!function(r,i){if(!k.FileReader||r.type&&!(r.type in n))return void i("");if(""===r.type){var a="";return t.test(r.name)&&(a=r.name.replace(t,"")),void i(a)}var o=new FileReader;o.onload=function(){var t=o.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)},o.onerror=function(){i("")},o.readAsText(r)}(l,function(e){a++,e&&o.push(e.slice(0,5e3)),a==r.length&&i(o.join("\r"))})})},GR}function KB(){if(_R)return YR;return _R=1,YR=function(e){return"handled"===e||!0===e}}function YB(){if($R)return JR;$R=1;var e=QB(),t=HT(),n=RT(),r=uB(),i=cB(),a=GB(),o=gB(),l=fB(),c=KB(),s=TT();var d={onDragEnd:function(e){e.exitCurrentMode(),u(e)},onDrop:function(l,d){var h=new e(d.nativeEvent.dataTransfer),C=l._latestEditorState,p=function(e,t){var n=null,a=null,l=i(e.currentTarget);if("function"==typeof l.caretRangeFromPoint){var c=l.caretRangeFromPoint(e.x,e.y);n=c.startContainer,a=c.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,a=e.rangeOffset}n=s(n),a=s(a);var d=s(r(n));return o(t,d,a,d,a)}(d.nativeEvent,C);if(d.preventDefault(),l._dragCount=0,l.exitCurrentMode(),null!=p){var m=h.getFiles();if(m.length>0){if(l.props.handleDroppedFiles&&c(l.props.handleDroppedFiles(p,m)))return;a(m,function(e){e&&l.update(f(C,p,e))})}else{var A=l._internalDrag?"internal":"external";l.props.handleDrop&&c(l.props.handleDrop(p,h,A))||(l._internalDrag?l.update(function(e,r){var i=t.moveText(e.getCurrentContent(),e.getSelection(),r);return n.push(e,i,"insert-fragment")}(C,p)):l.update(f(C,p,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 a=t.insertText(e.getCurrentContent(),r,i,e.getCurrentInlineStyle());return n.push(e,a,"insert-fragment")}return JR=d}var _B,JB,$B,ej,tj,nj,rj,ij,aj,oj,lj,cj,sj,dj,uj,fj,hj,Cj,pj,mj,Aj,gj,vj,wj,yj,Ej,bj,Mj,Lj,Hj,xj,Vj,kj,Sj,Zj,Oj,zj,Ij,Nj,Dj,Tj,Fj,Rj,Bj,jj,Pj,Uj,qj,Wj,Xj,Qj,Gj,Kj,Yj,_j,Jj,$j,eP,tP,nP,rP,iP,aP,oP,lP,cP,sP,dP,uP,fP,hP,CP,pP,mP,AP,gP,vP,wP,yP,EP,bP,MP,LP,HP,xP,VP,kP,SP,ZP,OP,zP,IP,NP,DP,TP,FP,RP,BP,jP,PP,UP,qP={};function WP(){return $B?JB:($B=1,_B||(_B=1,function(e){if(!e.setImmediate){var t,n,r,i,a=1,o={},l=!1,c=e.document,s=Object.getPrototypeOf&&Object.getPrototypeOf(e);s=s&&s.setTimeout?s: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)}):c&&"onreadystatechange"in c.createElement("script")?function(){var e=c.documentElement;t=function(t){var n=c.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)},s.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 o[a]=i,t(a),a++},s.clearImmediate=d}function d(e){delete o[e]}function u(e){if(l)setTimeout(u,0,e);else{var t=o[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?qP:k:self)),JB=k.setImmediate)}function XP(){if(tj)return ej;tj=1;var e=HT(),t=RT(),n=lB(),r=bB(),i=KB(),a=(tB||(tB=1,eB=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),a=!1;return r.some(function(e){return i===e.get("start")?(a=!0,!0):i<e.get("end")&&e.get("leaves").some(function(e){var t=e.get("start");return i===t&&(a=!0,!0)})}),a}),eB),o=TT(),l=WP(),c=n.isBrowser("Firefox");function s(n,r,i,a,o){var l=e.replaceText(n.getCurrentContent(),n.getSelection(),r,i,a);return t.push(n,l,"insert-characters",o)}return ej=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(),C=f.getAnchorKey();if(!f.isCollapsed())return n.preventDefault(),void e.update(s(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!0));var p,m=s(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!1),A=!1;if(A||(A=a(e._latestCommittedEditorState)),!A){var g=d.getBlockTree(C),v=m.getBlockTree(C);A=g.size!==v.size||g.zip(v).some(function(e){var t=e[0],n=e[1],r=t.get("start"),i=r+(r>=h?u.length:0),a=t.get("end"),o=a+(a>=h?u.length:0),l=n.get("start"),c=n.get("end"),s=n.get("decoratorKey");return t.get("decoratorKey")!==s||t.get("leaves").size!==n.get("leaves").size||i!==l||o!==c||null!=s&&c-l!==a-r})}if(A||(p=u,A=c&&("'"==p||"/"==p)),A||(A=o(m.getDirectionMap()).get(C)!==o(d.getDirectionMap()).get(C)),A)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)})}},ej}function QP(){if(lj)return oj;lj=1;var e=vT();return oj=function(t){var n=t.getSelection();return n.isCollapsed()?null:e(t.getCurrentContent(),n)}}function GP(){if(hj)return fj;hj=1;var e=HT(),t=RT(),n=TB(),r=QP(),i=RB(),a=uj?dj:(uj=1,dj=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 fj=function(o,l){var c,s=o._latestEditorState,d=s.getSelection(),u=l.target;if(d.isCollapsed())l.preventDefault();else{if(a(u)){var f=u;c=i(n.getScrollParent(f))}var h=r(s);o.setClipboard(h),o.setMode("cut"),setTimeout(function(){o.restoreEditorDOM(c),o.exitCurrentMode(),o.update(function(n){var r=e.removeRange(n.getCurrentContent(),n.getSelection(),"forward");return t.push(n,r,"remove-range")}(s))},0)}},fj}function KP(){if(yj)return wj;yj=1;var e=CT(),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 a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!r(e))return e.substr(t,n);var a=e.length;if(a<=0||t>a||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<a;t--)o+=i(e,o);if(o>=a)return""}else if(t<0){for(o=a;t<0&&0<o;t++)o-=i(e,o-1);o<0&&(o=0)}var l=a;if(n<a)for(l=o;n>0&&l<a;n--)l+=i(e,l);return e.substring(o,l)}var o={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 a(e,t=t<n?t:n,r)},substr:a};return wj=o}function YP(){if(bj)return Ej;bj=1;var e=XB();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,a="Warning: "+e.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}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),a=2;a<r;a++)i[a-2]=arguments[a];t.apply(void 0,[n].concat(i))}}:e;return Ej=n}function _P(){if(Lj)return Mj;Lj=1;var e=YP();return Mj=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(),a=r.getStartKey(),o=r.getStartOffset(),l=a,c=0;if(n>o){var s=i.getKeyBefore(a);if(null==s)l=a;else l=s,c=i.getBlockForKey(s).getText().length}else c=o-n;return r.merge({focusKey:l,focusOffset:c,isBackward:!0})},Mj}function JP(){if(xj)return Hj;xj=1;var e=HT(),t=OT()("draft_tree_data_support");return Hj=function(n,r,i){var a=n.getSelection(),o=n.getCurrentContent(),l=a,c=a.getAnchorKey(),s=a.getFocusKey(),d=o.getBlockForKey(c);if(t&&"forward"===i&&c!==s)return o;if(a.isCollapsed()){if("forward"===i){if(n.isSelectionAtEndOfContent())return o;if(t)if(a.getAnchorOffset()===o.getBlockForKey(c).getLength()){var u=o.getBlockForKey(d.nextSibling);if(!u||0===u.getLength())return o}}else if(n.isSelectionAtStartOfContent())return o;if((l=r(n))===a)return o}return e.removeRange(o,l,i)}}function $P(){if(kj)return Vj;kj=1;var e=RT(),t=KP(),n=_P(),r=JP();return Vj=function(i){var a=r(i,function(e){var r=e.getSelection(),i=e.getCurrentContent(),a=r.getAnchorKey(),o=r.getAnchorOffset(),l=i.getBlockForKey(a).getText()[o-1];return n(e,l?t.getUTF16Length(l,0):1)},"backward");if(a===i.getCurrentContent())return i;var o=i.getSelection();return e.push(i,a.set("selectionBefore",o),o.isCollapsed()?"backspace-character":"remove-range")},Vj}function eU(){if(Zj)return Sj;Zj=1;var e=HT(),t=hB(),n=RT(),r=lB(),i=EB().notEmptyKey,a=uB(),o=$P(),l=TT(),c=r.isEngine("Gecko");return Sj=function(r,s){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 C=u.parentNode;if(null==C)return;u.nodeValue=C.textContent;for(var p=C.firstChild;null!=p;p=p.nextSibling)p!==u&&C.removeChild(p)}var m=u.textContent,A=r._latestEditorState,g=l(a(u)),v=t.decode(g),w=v.blockKey,y=v.decoratorKey,E=v.leafKey,b=A.getBlockTree(w).getIn([y,"leaves",E]),M=b.start,L=b.end,H=A.getCurrentContent(),x=H.getBlockForKey(w),V=x.getText().slice(M,L);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==V){var k,S,Z,O,z=A.getSelection(),I=z.merge({anchorOffset:M,focusOffset:L,isBackward:!1}),N=x.getEntityAt(M),D=i(N)?H.getEntity(N):null,T="MUTABLE"===(null!=D?D.getMutability():null),F=T?"spellcheck-change":"apply-entity",R=e.replaceText(H,I,m,x.getInlineStyleAt(M),T?x.getEntityAt(M):null);if(c)k=d.anchorOffset,S=d.focusOffset,O=(Z=M+Math.min(k,S))+Math.abs(k-S),k=Z,S=O;else{var B=m.length-V.length;Z=z.getStartOffset(),O=z.getEndOffset(),k=f?O+B:Z,S=O+B}var j=R.merge({selectionBefore:H.getSelectionAfter(),selectionAfter:z.merge({anchorOffset:k,focusOffset:S})});r.update(n.push(A,j,F))}else{var P=s.nativeEvent.inputType;if(P){var U=function(e,t){return"deleteContentBackward"===e?o(t):t}(P,A);if(U!==A)return r.restoreEditorDOM(),void r.update(U)}}}},Sj}function tU(){if(Nj)return Ij;Nj=1;var e=lB(),t=function(){if(zj)return Oj;zj=1;var e=CB();return Oj=function(t){return t.which===e.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))},Oj}(),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 Ij=r}function nU(){if(Rj)return Fj;Rj=1;var e=lB(),t=CT();var n=e.isBrowser("Chrome")?function(e){for(var n=e.cloneRange(),r=[],i=e.endContainer;null!=i;i=i.parentNode){var a=i===e.commonAncestorContainer;a?n.setStart(e.startContainer,e.startOffset):n.setStart(n.endContainer,0);var o,l=Array.from(n.getClientRects());if(r.push(l),a)return r.reverse(),(o=[]).concat.apply(o,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 Fj=n}function rU(){if(jj)return Bj;jj=1;var e=KP(),t=cB(),n=nU(),r=CT();function i(e,t){for(var n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<e.length;o++){var l=e[o];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),i=Math.max(i,l.top),a=Math.max(a,l.bottom))}return i<=r&&i-n<t&&a-r<t}function a(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 Bj=function(o){o.collapsed||("production"!==process.env.NODE_ENV?r(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):r(!1));var l=(o=o.cloneRange()).startContainer;1!==l.nodeType&&(l=l.parentNode);var c=function(e){var n=getComputedStyle(e),i=t(e),a=i.createElement("div");a.style.fontFamily=n.fontFamily,a.style.fontSize=n.fontSize,a.style.fontStyle=n.fontStyle,a.style.fontWeight=n.fontWeight,a.style.lineHeight=n.lineHeight,a.style.position="absolute",a.textContent="M";var o=i.body;o||("production"!==process.env.NODE_ENV?r(!1,"Missing document.body"):r(!1)),o.appendChild(a);var l=a.getBoundingClientRect();return o.removeChild(a),l.height}(l),s=o.endContainer,d=o.endOffset;for(o.setStart(o.startContainer,0);i(n(o),c)&&(s=o.startContainer,d=o.startOffset,s.parentNode||("production"!==process.env.NODE_ENV?r(!1,"Found unexpected detached subtree when traversing."):r(!1)),o.setStartBefore(s),1!==s.nodeType||"inline"===getComputedStyle(s).display););for(var u=s,f=d-1;;){for(var h=u.nodeValue,C=f;C>=0;C--)if(!(null!=h&&C>0&&e.isSurrogatePair(h,C-1))){if(o.setStart(u,C),!i(n(o),c))break;s=u,d=C}if(-1===C||0===u.childNodes.length)break;f=a(u=u.childNodes[C])}return o.setStart(s,d),o},Bj}function iU(){if(Wj)return qj;Wj=1;return qj={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}}function aU(){if(Qj)return Xj;Qj=1;var e="['‘’]",t="\\s|(?![_])"+iU().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 Xj={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}}}function oU(){if(_j)return Yj;_j=1;var e=YP();return Yj=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,a=r.getStartKey(),o=r.getStartOffset(),l=t.getCurrentContent(),c=a;return n>l.getBlockForKey(a).getText().length-o?(c=l.getKeyAfter(a),i=0):i=o+n,r.merge({focusKey:c,focusOffset:i})},Yj}function lU(){if(hP)return fP;hP=1;var e=HT(),t=RT(),n=tU(),r=CB(),i=function(){if(Tj)return Dj;Tj=1;var e=HT(),t=RT(),n=vT(),r=TT(),i=null;return Dj={cut:function(a){var o=a.getCurrentContent(),l=a.getSelection(),c=null;if(l.isCollapsed()){var s=l.getAnchorKey(),d=o.getBlockForKey(s).getLength();if(d===l.getAnchorOffset()){var u=o.getKeyAfter(s);if(null==u)return a;c=l.set("focusKey",u).set("focusOffset",0)}else c=l.set("focusOffset",d)}else c=l;c=r(c),i=n(o,c);var f=e.removeRange(o,c,"forward");return f===o?a:t.push(a,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")}}}(),a=lB(),o=KB(),l=function(){if(Uj)return Pj;Uj=1;var e=RT(),t=rU(),n=vB(),r=_P(),i=JP();return Pj=function(a,o){var l=i(a,function(e){var i=e.getSelection();if(i.isCollapsed()&&0===i.getAnchorOffset())return r(e,1);var a=o.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return a=t(a),n(e,null,a.endContainer,a.endOffset,a.startContainer,a.startOffset).selectionState},"backward");return l===a.getCurrentContent()?a:e.push(a,l,"remove-range")},Pj}(),c=function(){if(Kj)return Gj;Kj=1;var e=aU(),t=RT(),n=_P(),r=JP();return Gj=function(i){var a=r(i,function(t){var r=t.getSelection(),i=r.getStartOffset();if(0===i)return n(t,1);var a=r.getStartKey(),o=t.getCurrentContent().getBlockForKey(a).getText().slice(0,i),l=e.getBackward(o);return n(t,l.length||1)},"backward");return a===i.getCurrentContent()?i:t.push(i,a,"remove-range")},Gj}(),s=function(){if($j)return Jj;$j=1;var e=aU(),t=RT(),n=oU(),r=JP();return Jj=function(i){var a=r(i,function(t){var r=t.getSelection(),i=r.getStartOffset(),a=r.getStartKey(),o=t.getCurrentContent().getBlockForKey(a).getText().slice(i),l=e.getForward(o);return n(t,l.length||1)},"forward");return a===i.getCurrentContent()?i:t.push(i,a,"remove-range")},Jj}(),d=function(){if(tP)return eP;tP=1;var e=HT(),t=RT();return eP=function(n){var r=e.splitBlock(n.getCurrentContent(),n.getSelection());return t.push(n,r,"split-block")}}(),u=function(){if(rP)return nP;rP=1;var e=RT();return nP=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(aP)return iP;aP=1;var e=RT();return iP=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=$P(),C=function(){if(lP)return oP;lP=1;var e=RT(),t=KP(),n=oU(),r=JP();return oP=function(i){var a=r(i,function(e){var r=e.getSelection(),i=e.getCurrentContent(),a=r.getAnchorKey(),o=r.getAnchorOffset(),l=i.getBlockForKey(a).getText()[o];return n(e,l?t.getUTF16Length(l,0):1)},"forward");if(a===i.getCurrentContent())return i;var o=i.getSelection();return e.push(i,a.set("selectionBefore",o),o.isCollapsed()?"delete-character":"remove-range")},oP}(),p=function(){if(sP)return cP;sP=1;var e=HT(),t=RT(),n=vT();return cP=function(r){var i=r.getSelection();if(!i.isCollapsed())return r;var a=i.getAnchorOffset();if(0===a)return r;var o,l,c=i.getAnchorKey(),s=r.getCurrentContent(),d=s.getBlockForKey(c).getLength();if(d<=1)return r;a===d?(o=i.set("anchorOffset",a-1),l=i):l=(o=i.set("focusOffset",a+1)).set("anchorOffset",a+1);var u=n(s,o),f=e.removeRange(s,o,"backward"),h=f.getSelectionAfter(),C=h.getAnchorOffset()-1,p=h.merge({anchorOffset:C,focusOffset:C}),m=e.replaceWithFragment(f,p,u),A=t.push(r,m,"insert-fragment");return t.acceptSelection(A,l)},cP}(),m=function(){if(uP)return dP;uP=1;var e=RT();return dP=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 a=i.getCurrentContent();r(e.set(i,{nativelyRenderedContent:a}))}},dP}(),A=n.isOptionKeyCommand,g=a.isBrowser("Chrome");return fP=function(n,a){var v=a.which,w=n._latestEditorState;function y(e){var t=n.props[e];return!!t&&(t(a),!0)}switch(v){case r.RETURN:if(a.preventDefault(),n.props.handleReturn&&o(n.props.handleReturn(a,w)))return;break;case r.ESC:if(a.preventDefault(),y("onEscape"))return;break;case r.TAB:if(y("onTab"))return;break;case r.UP:if(y("onUpArrow"))return;break;case r.RIGHT:if(y("onRightArrow"))return;break;case r.DOWN:if(y("onDownArrow"))return;break;case r.LEFT:if(y("onLeftArrow"))return;break;case r.SPACE:g&&A(a)&&a.preventDefault()}var E=n.props.keyBindingFn(a);if(null!=E&&""!==E)if("undo"!==E){if(a.preventDefault(),!n.props.handleKeyCommand||!o(n.props.handleKeyCommand(E,w,a.timeStamp))){var b=function(e,n,r){switch(e){case"redo":return t.redo(n);case"delete":return C(n);case"delete-word":return s(n);case"backspace":return h(n);case"backspace-word":return c(n);case"backspace-to-start-of-line":return l(n,r);case"split-block":return d(n);case"transpose-characters":return p(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,a);b!==w&&n.update(b)}}else m(a,w,n.update);else if(v===r.SPACE&&g&&A(a)){var M=e.replaceText(w.getCurrentContent(),w.getSelection()," ");n.update(t.push(w,M,"insert-characters"))}},fP}function cU(){if(pP)return CP;pP=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 CP=e}function sU(){if(AP)return mP;AP=1;var e=lB(),t=CT(),n=e.isBrowser("IE <= 9");return mP=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},mP}function dU(){if(bP)return EP;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}bP=1;var r=sT(),i=uT(),a=fT(),o=UT(),l=ST(),c=cU(),s=PT(),d=mT(),u=sU(),f=OT(),h=lT(),C=h.List,p=h.Map,m=h.OrderedSet,A=function(){if(vP)return gP;vP=1;var e=sB();return gP=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"A"===t.nodeName}}(),g=xB(),v=mB(),w=function(){if(yP)return wP;yP=1;var e=sB();return wP=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"IMG"===t.nodeName}}(),y=f("draft_tree_data_support"),E=new RegExp("\r","g"),b=new RegExp("\n","g"),M=new RegExp("^\n","g"),L=new RegExp(" ","g"),H=new RegExp(" ?","g"),x=new RegExp("​?","g"),V=["bold","bolder","500","600","700","800","900"],k=["light","lighter","normal","100","200","300","400"],S=["className","href","rel","target","title"],Z=["alt","className","height","src","width"],O=(n(e={},s("public/DraftStyleDefault/depth0"),0),n(e,s("public/DraftStyleDefault/depth1"),1),n(e,s("public/DraftStyleDefault/depth2"),2),n(e,s("public/DraftStyleDefault/depth3"),3),n(e,s("public/DraftStyleDefault/depth4"),4),e),z=p({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),I=function(e){if(v(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},N=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},D=function(e){if(!A(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 c(t.href);return!0}catch(e){return!1}},T=function(e){if(!w(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},F=function(e,t){if(!v(e))return t;var n=e,r=n.style.fontWeight,i=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations(function(e){V.indexOf(r)>=0?e.add("BOLD"):k.indexOf(r)>=0&&e.remove("BOLD"),"italic"===i?e.add("ITALIC"):"normal"===i&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})},R=function(e){return"ul"===e||"ol"===e},B=function(){function e(e,t){n(this,"characterList",C()),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 o=e.prototype;return o.clear=function(){this.characterList=C(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},o.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},o.getContentBlocks=function(){return 0===this.contentBlocks.length&&(y?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},o._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:C(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=C(),this.currentBlockType="unstyled",this.currentText="",n},o._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=i.nodeName.toLowerCase();if("body"===a||R(a)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var o=this.currentDepth,l=this.wrapper;R(a)&&(this.wrapper=a,R(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),t)),this.currentDepth=o,this.wrapper=l}else{var c=this.blockTypeMap.get(a);if(void 0===c)if("#text"!==a)if("br"!==a)if(T(i))this._addImgNode(i,t);else if(D(i))this._addAnchorNode(i,n,t);else{var s=t;z.has(a)&&(s=s.add(z.get(a))),s=F(i,s);var u=I(i);null!=u&&(s=s.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),s))}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"===a?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(a,this.wrapper)||c[0]||"unstyled"),!y&&v(i)&&("unordered-list-item"===c||"ordered-list-item"===c)){var C=i;this.currentDepth=N(C,this.currentDepth)}var p=d(),m=this._toBlockConfigs(Array.from(i.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:p,childConfigs:m,type:c})),this.currentDepth=f,this.wrapper=h}}}return n},o._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))},o._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=C()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},o._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(M,"")).replace(b," ")),this._appendText(n,t)},o._addBreakNode=function(e,t){g(e)&&this._appendText("\n",t)},o._addImgNode=function(e,t){if(w(e)){var n=e,r={};Z.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}},o._addAnchorNode=function(e,t,n){if(A(e)){var r=e,i={};S.forEach(function(e){var t=r.getAttribute(e);t&&(i[e]=t)}),i.url=new c(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}},o._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 o=e[i];o.parent=n,o.prevSibling=i>0?e[i-1].key:null,o.nextSibling=i<r?e[i+1].key:null,o.children=C(o.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new a(t({},o))),this._toContentBlocks(o.childConfigs,o.key)}},o._hoistContainersInBlockConfigs=function(e){var t=this;return C(e).flatMap(function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},o._toFlatContentBlocks=function(e){var n=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var r=n._extractTextFromBlockConfigs(e.childConfigs),a=r.text,o=r.characterList;n.contentBlocks.push(new i(t({},e,{text:e.text+a,characterList:e.characterList.concat(o)})))})},o._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=C(),i=0;i<=t;i++){var a=e[i];n+=a.text,r=r.concat(a.characterList),""!==n&&"unstyled"!==a.type&&(n+="\n",r=r.push(r.last()));var o=this._extractTextFromBlockConfigs(a.childConfigs);n+=o.text,r=r.concat(o.characterList)}return{text:n,characterList:r}},e}();return EP=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:u)(e=e.trim().replace(E,"").replace(L," ").replace(H,"").replace(x,""));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)})}),p(t)}(t);return new B(r,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()},EP}function uU(){if(LP)return MP;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}LP=1;var t=uT(),n=fT(),r=dU(),i=mT(),a=sU(),o=OT(),l=lT(),c=zT(),s=l.List,d=l.Repeat,u=o("draft_tree_data_support"),f=u?n:t,h={processHTML:function(e,t){return r(e,a,t)},processText:function(t,n,r){return t.reduce(function(t,a,o){a=c(a);var l=i(),h={key:l,type:r,text:a,characterList:s(d(n,a.length))};if(u&&0!==o){var C=o-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[C]=t[C].merge({nextSibling:l})).getKey()})}return t.push(new f(h)),t},[])}};return MP=h}function fU(){if(kP)return VP;kP=1;var e=HT(),t=RT(),n=(xP||(xP=1,HP=function(e,t,n,r){var i=t.getStartKey(),a=t.getEndKey(),o=e.getBlockMap(),l=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===a}).concat([[a,o.get(a)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return o=o.merge(l),e.merge({blockMap:o,selectionBefore:t,selectionAfter:t})}),HP),r=TT(),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(),a=n.getStartKey(),o=r.getBlockBefore(a);if(o&&"atomic"===o.getType()){var l=r.getBlockMap().delete(o.getKey()),c=r.merge({blockMap:l,selectionAfter:n});if(c!==r)return t.push(e,c,"remove-range")}var s=i.tryToRemoveBlockStyle(e);return s?t.push(e,s,"change-block-type"):null},onDelete:function(n){var r=n.getSelection();if(!r.isCollapsed())return null;var i=n.getCurrentContent(),a=r.getStartKey(),o=i.getBlockForKey(a).getLength();if(r.getStartOffset()<o)return null;var l=i.getBlockAfter(a);if(!l||"atomic"!==l.getType())return null;var c=r.merge({focusKey:l.getKey(),focusOffset:l.getLength()}),s=e.removeRange(i,c,"forward");return s!==i?t.push(n,s,"remove-range"):null},onTab:function(e,r,i){var a=r.getSelection(),o=a.getAnchorKey();if(o!==a.getFocusKey())return r;var l=r.getCurrentContent(),c=l.getBlockForKey(o),s=c.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return r;e.preventDefault();var d=c.getDepth();if(!e.shiftKey&&d===i)return r;var u=n(l,a,e.shiftKey?-1:1,i);return t.push(r,u,"adjust-depth")},toggleBlockType:function(n,i){var a=n.getSelection(),o=a.getStartKey(),l=a.getEndKey(),c=n.getCurrentContent(),s=a;if(o!==l&&0===a.getEndOffset()){var d=r(c.getBlockBefore(l));l=d.getKey(),s=s.merge({anchorKey:o,anchorOffset:a.getStartOffset(),focusKey:l,focusOffset:d.getLength(),isBackward:!1})}var u=c.getBlockMap().skipWhile(function(e,t){return t!==o}).reverse().skipWhile(function(e,t){return t!==l}).some(function(e){return"atomic"===e.getType()});if(u)return n;var f=c.getBlockForKey(o).getType()===i?"unstyled":i;return t.push(n,e.setBlockType(c,s,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(),a=n.getCurrentInlineStyle();if(i.isCollapsed())return t.setInlineStyleOverride(n,a.has(r)?a.remove(r):a.add(r));var o,l=n.getCurrentContent();return o=a.has(r)?e.removeInlineStyle(l,i,r):e.applyInlineStyle(l,i,r),t.push(n,o,"change-inline-style")},toggleLink:function(n,r,i){var a=e.applyEntity(n.getCurrentContent(),r,i);return t.push(n,a,"apply-entity")},tryToRemoveBlockStyle:function(t){var n=t.getSelection(),r=n.getAnchorOffset();if(n.isCollapsed()&&0===r){var i=n.getAnchorKey(),a=t.getCurrentContent(),o=a.getBlockForKey(i).getType(),l=a.getBlockBefore(i);if("code-block"===o&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==o)return e.setBlockType(a,n,"unstyled")}return null}};return VP=i}function hU(){if(zP)return OP;zP=1;var e=cT(),t=sT(),n=QB(),r=HT(),i=uU(),a=RT(),o=fU(),l=bB(),c=GB(),s=KB(),d=function(){if(ZP)return SP;ZP=1;var e=/\r\n?|\n/g;return SP=function(t){return t.split(e)}}();function u(e,t,n){var i=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return a.push(e,i.set("entityMap",n),"insert-fragment")}return OP=function(f,h){h.preventDefault();var C=new n(h.clipboardData);if(!C.isRichText()){var p=C.getFiles(),m=C.getText();if(p.length>0){if(f.props.handlePastedFiles&&s(f.props.handlePastedFiles(p)))return;return void c(p,function(n){if(n=n||m){var c=f._latestEditorState,s=d(n),u=t.create({style:c.getCurrentInlineStyle(),entity:l(c.getCurrentContent(),c.getSelection())}),h=o.getCurrentBlockType(c),C=i.processText(s,u,h),p=e.createFromArray(C),A=r.replaceWithFragment(c.getCurrentContent(),c.getSelection(),p);f.update(a.push(c,A,"insert-fragment"))}})}}var A=[],g=C.getText(),v=C.getHTML(),w=f._latestEditorState;if(f.props.formatPastedText){var y=f.props.formatPastedText(g,v);g=y.text,v=y.html}if(!f.props.handlePastedText||!s(f.props.handlePastedText(g,v,w))){if(g&&(A=d(g)),!f.props.stripPastedStyles){var E,b=f.getClipboard();if(!f.props.formatPastedText&&C.isRichText()&&b){if(-1!==(null===(E=v)||void 0===E?void 0:E.indexOf(f.getEditorKey()))||1===A.length&&1===b.size&&b.first().getText()===g)return void f.update(u(f._latestEditorState,b))}else if(b&&C.types.includes("com.apple.webarchive")&&!C.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(A,b))return void f.update(u(f._latestEditorState,b));if(v){var M=i.processHTML(v,f.props.blockRenderMap);if(M){var L=M.contentBlocks,H=M.entityMap;if(L){var x=e.createFromArray(L);return void f.update(u(f._latestEditorState,x,H))}}}f.setClipboard(null)}if(A.length){var V=t.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),k=o.getCurrentBlockType(w),S=i.processText(A,V,k),Z=e.createFromArray(S);f.update(u(f._latestEditorState,Z))}}},OP}function CU(){if(NP)return IP;NP=1;var e=lB(),t=XP(),n=function(){if(rj)return nj;rj=1;var e=RT(),t=SB(),n=ZB();return nj=function(r,i){var a=i.currentTarget.ownerDocument;if(!Boolean(r.props.preserveSelectionOnBlur)&&n(a)===a.body){var o=a.defaultView.getSelection(),l=r.editor;1===o.rangeCount&&t(l,o.anchorNode)&&t(l,o.focusNode)&&o.removeAllRanges()}var c=r._latestEditorState,s=c.getSelection();if(s.getHasFocus()){var d=s.set("hasFocus",!1);r.props.onBlur&&r.props.onBlur(i),r.update(e.acceptSelection(c,d))}},nj}(),r=function(){if(aj)return ij;aj=1;var e=RT();return ij=function(t,n){t.setMode("composite"),t.update(e.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(n)},ij}(),i=function(){if(sj)return cj;sj=1;var e=QP();return cj=function(t,n){t._latestEditorState.getSelection().isCollapsed()?n.preventDefault():t.setClipboard(e(t._latestEditorState))},cj}(),a=GP(),o=(pj||(pj=1,Cj=function(e,t){e.setMode("drag"),t.preventDefault()}),Cj),l=Aj?mj:(Aj=1,mj=function(e){e._internalDrag=!0,e.setMode("drag")}),c=function(){if(vj)return gj;vj=1;var e=RT(),t=lB();return gj=function(n,r){var i=n._latestEditorState,a=i.getSelection();if(!a.getHasFocus()){var o=a.set("hasFocus",!0);n.props.onFocus&&n.props.onFocus(r),t.isBrowser("Chrome < 60.0.3081.0")?n.update(e.forceSelection(i,o)):n.update(e.acceptSelection(i,o))}},gj}(),s=eU(),d=lU(),u=hU(),f=yB(),h=e.isBrowser("Chrome"),C=e.isBrowser("Firefox"),p=h||C?f:function(e){};return IP={onBeforeInput:t,onBlur:n,onCompositionStart:r,onCopy:i,onCut:a,onDragOver:o,onDragStart:l,onFocus:c,onInput:s,onKeyDown:d,onPaste:u,onSelect:f,onMouseUp:p,onKeyUp:p}}function pU(){if(RP)return FP;RP=1;var e=i,t=PT(),n=function(n){var r,i;function a(){return n.apply(this,arguments)||this}i=n,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var o=a.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.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))},a}(e.Component);return FP=n}function mU(){if(jP)return BP;jP=1;var e=tU(),t=CB(),n=lB(),r=n.isPlatform("Mac OS X"),i=r&&n.isBrowser("Firefox < 29"),a=e.hasCommandModifier,o=e.isCtrlKeyCommand;function l(e){return r&&e.altKey||o(e)}return BP=function(e){switch(e.keyCode){case 66:return a(e)?"bold":null;case 68:return o(e)?"delete":null;case 72:return o(e)?"backspace":null;case 73:return a(e)?"italic":null;case 74:return a(e)?"code":null;case 75:return r&&o(e)?"secondary-cut":null;case 77:case 79:return o(e)?"split-block":null;case 84:return r&&o(e)?"transpose-characters":null;case 85:return a(e)?"underline":null;case 87:return r&&o(e)?"backspace-word":null;case 89:return o(e)?r?"secondary-paste":"redo":null;case 90:return function(e){return a(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 a(e)&&r?"backspace-to-start-of-line":l(e)?"backspace-word":"backspace"}(e);case t.LEFT:return i&&a(e)?"move-selection-to-start-of-block":null;case t.RIGHT:return i&&a(e)?"move-selection-to-end-of-block":null;default:return null}},BP}function AU(){if(UP)return PP;UP=1;var e=Lm();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){a(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var l=UT(),c=qT(),s=MB(),d=function(){if(RR)return FR;RR=1;var e=OT()("draft_tree_data_support");return FR=e?PB():qB()}(),u=YB(),f=CU(),h=function(){if(TP)return DP;TP=1;var e=M.unstable_flushControlled;return DP=e}(),C=pU(),p=VB(),m=RT(),A=i,g=NB(),v=TB(),w=lB(),y=PT(),E=mT(),b=mU(),L=RB(),H=OT(),x=CT(),V=mB(),S=TT(),Z=w.isBrowser("IE"),O=!Z,z={edit:f,composite:s,drag:u,cut:null,render:null},I=!1,N=function(e){function t(){return e.apply(this,arguments)||this}o(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}(A.Component),D=function(e){function i(t){var i;return a(r(i=e.call(this,t)||this),"_blockSelectEvents",void 0),a(r(i),"_clipboard",void 0),a(r(i),"_handler",void 0),a(r(i),"_dragCount",void 0),a(r(i),"_internalDrag",void 0),a(r(i),"_editorKey",void 0),a(r(i),"_placeholderAccessibilityID",void 0),a(r(i),"_latestEditorState",void 0),a(r(i),"_latestCommittedEditorState",void 0),a(r(i),"_pendingStateFromBeforeInput",void 0),a(r(i),"_onBeforeInput",void 0),a(r(i),"_onBlur",void 0),a(r(i),"_onCharacterData",void 0),a(r(i),"_onCompositionEnd",void 0),a(r(i),"_onCompositionStart",void 0),a(r(i),"_onCopy",void 0),a(r(i),"_onCut",void 0),a(r(i),"_onDragEnd",void 0),a(r(i),"_onDragOver",void 0),a(r(i),"_onDragStart",void 0),a(r(i),"_onDrop",void 0),a(r(i),"_onInput",void 0),a(r(i),"_onFocus",void 0),a(r(i),"_onKeyDown",void 0),a(r(i),"_onKeyPress",void 0),a(r(i),"_onKeyUp",void 0),a(r(i),"_onMouseDown",void 0),a(r(i),"_onMouseUp",void 0),a(r(i),"_onPaste",void 0),a(r(i),"_onSelect",void 0),a(r(i),"editor",void 0),a(r(i),"editorContainer",void 0),a(r(i),"focus",void 0),a(r(i),"blur",void 0),a(r(i),"setMode",void 0),a(r(i),"exitCurrentMode",void 0),a(r(i),"restoreEditorDOM",void 0),a(r(i),"setClipboard",void 0),a(r(i),"getClipboard",void 0),a(r(i),"getEditorKey",void 0),a(r(i),"update",void 0),a(r(i),"onDragEnter",void 0),a(r(i),"onDragLeave",void 0),a(r(i),"_handleEditorContainerRef",function(e){i.editorContainer=e,i.editor=null!==e?e.firstChild:null}),a(r(i),"focus",function(e){var t=i.props.editorState,n=t.getSelection().getHasFocus(),r=i.editor;if(r){var a=v.getScrollParent(r),o=e||L(a),l=o.x,c=o.y;V(r)||("production"!==process.env.NODE_ENV?x(!1,"editorNode is not an HTMLElement"):x(!1)),r.focus(),a===window?window.scrollTo(l,c):g.setTop(a,c),n||i.update(m.forceSelection(t,t.getSelection()))}}),a(r(i),"blur",function(){var e=i.editor;e&&(V(e)||("production"!==process.env.NODE_ENV?x(!1,"editorNode is not an HTMLElement"):x(!1)),e.blur())}),a(r(i),"setMode",function(e){var t=i.props,r=t.onPaste,a=t.onCut,o=t.onCopy,l=n({},z.edit);r&&(l.onPaste=r),a&&(l.onCut=a),o&&(l.onCopy=o);var c=n({},z,{edit:l});i._handler=c[e]}),a(r(i),"exitCurrentMode",function(){i.setMode("edit")}),a(r(i),"restoreEditorDOM",function(e){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(e)})}),a(r(i),"setClipboard",function(e){i._clipboard=e}),a(r(i),"getClipboard",function(){return i._clipboard}),a(r(i),"update",function(e){i._latestEditorState=e,i.props.onChange(e)}),a(r(i),"onDragEnter",function(){i._dragCount++}),a(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}o(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:S(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return A.createElement(C,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,a=e.blockStyleFn,o=e.customStyleFn,l=e.customStyleMap,s=e.editorState,u=e.preventScroll,f=e.readOnly,h=e.textAlignment,C=e.textDirectionality,p=y({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),m=this.props.role||"textbox",g="combobox"===m?!!this.props.ariaExpanded:null,v={blockRenderMap:r,blockRendererFn:i,blockStyleFn:a,customStyleMap:n({},c,l),customStyleFn:o,editorKey:this._editorKey,editorState:s,preventScroll:u,textDirectionality:C};return A.createElement("div",{className:p},this._renderPlaceholder(),A.createElement("div",{className:y("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},A.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:g,"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:y({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},A.createElement(N,{editor:this,editorState:s}),A.createElement(d,t({},v,{key:"contents"+this.state.contentsKey})))))},l.componentDidMount=function(){this._blockSelectEvents=!1,!I&&H("draft_ods_enabled")&&(I=!0,p.initODS()),this.setMode("edit"),Z&&(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}(A.Component);return a(D,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:l,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:b,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),PP=D}var gU,vU,wU,yU,EU,bU,MU,LU,HU,xU,VU,kU,SU,ZU,OU,zU,IU,NU,DU,TU,FU,RU,BU,jU,PU,UU,qU,WU={};function XU(){return gU||(gU=1),WU}function QU(){if(wU)return vU;wU=1;var e={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};return vU=e}function GU(){if(MU)return bU;MU=1;var e=KP(),t=dT(),n=function(e,t){return e===t},r=function(e){return!!e},i=[];return bU=function(a){var o=a.getCharacterList().map(function(e){return e.getStyle()}).toList(),l=o.flatten().toSet().map(function(i){return function(i,a,o){var l=[],c=a.map(function(e){return e.has(o)}).toList();return t(c,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:o})}),l}(a,o,i)});return Array.prototype.concat.apply(i,l.toJS())},bU}function KU(){if(HU)return LU;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}HU=1;var t=uT(),n=fT(),r=QU(),i=function(){if(EU)return yU;EU=1;var e=QU(),t=KP().strlen;return yU=function(n,r){var i=[];return n.findEntityRanges(function(e){return!!e.getEntity()},function(a,o){var l=n.getText(),c=n.getEntityAt(a);i.push({offset:t(l.slice(0,a)),length:t(l.slice(a,o)),key:Number(r[e.stringify(c)])})}),i},yU}(),a=GU(),o=CT(),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:i(e,t),data:e.getData().toObject()}},c=function(r,i,a,c){if(r instanceof t)a.push(l(r,i));else{r instanceof n||("production"!==process.env.NODE_ENV?o(!1,"block is not a BlockNode"):o(!1));var s=r.getParentKey(),d=c[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:[]});s?c[s].children.push(d):a.push(d)}};return LU=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,i=[],a={},o={},l=0;return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return null!==e.getEntity()},function(t){var i=e.getEntityAt(t),a=r.stringify(i);o[a]||(o[a]=i,n[a]="".concat(l),l++)}),c(e,n,i,a)}),{blocks:i,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,i=t.entityMap,a={};return Object.keys(i).forEach(function(t,n){var i=e.getEntity(r.unstringify(t));a[n]={type:i.getType(),mutability:i.getMutability(),data:i.getData()}}),{blocks:n,entityMap:a}}(e,t),t},LU}function YU(){if(VU)return xU;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}VU=1;var n=mT(),r=CT(),i=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},a={fromRawTreeStateToRawState:function(t){var n=t.blocks,a=[];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 a=i.children;Array.isArray(a)||("production"!==process.env.NODE_ENV?r(!1,"Invalid tree raw block"):r(!1)),n=n.concat([].concat(a.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,a.push(n))}),t.blocks=a,e({},t,{blocks:a})):t},fromRawStateToRawTreeState:function(t){var r=[],a=[];return t.blocks.forEach(function(t){var o=i(t),l=t.depth||0,c=e({},t,{children:[]});if(o){var s=a[0];if(null==s&&0===l)r.push(c);else if(null==s||s.depth<l-1){var d={key:n(),text:"",depth:l-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};a.unshift(d),1===l?r.push(d):null!=s&&s.children.push(d),d.children.push(c)}else if(s.depth===l-1)s.children.push(c);else{for(;null!=s&&s.depth>=l;)a.shift(),s=a[0];l>0?s.children.push(c):r.push(c)}}else r.push(c)}),e({},t,{blocks:r})}};return xU=a}function _U(){if(FU)return TU;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}FU=1;var n=uT(),r=fT(),i=IT(),a=ST(),o=YU(),l=function(){if(SU)return kU;SU=1;var e=YP(),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 a=t.getChildKeys().map(function(e){return n.get(e)});if(!a.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 o=t.getPrevSiblingKey();if(null!=o&&n.get(o).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!==o&&o===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(),a=[];null!=i;){var o=t.get(i),l=o.getChildKeys(),c=o.getNextSiblingKey();if(l.size>0){null!=c&&a.unshift(c);var s=l.map(function(e){return t.get(e)}),d=s.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!=o.getNextSiblingKey()?o.getNextSiblingKey():a.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 kU=t}(),c=ZT(),s=function(){if(OU)return ZU;OU=1;var e=sT(),t=lT().List;return ZU=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(IU)return zU;IU=1;var e=KP().substr;return zU=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,a=i+e(t,n.offset,n.length).length,o=i;o<a;o++)r[o]=n.key}),r},zU}(),u=function(){if(DU)return NU;DU=1;var e=KP(),t=lT().OrderedSet,n=e.substr,r=t();return NU=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,a=r+n(e,t.offset,t.length).length;r<a;)i[r]=i[r].add(t.style),r++}),i},NU}(),f=mT(),h=OT(),C=lT(),p=CT(),m=h("draft_tree_data_support"),A=C.List,g=C.Map,v=C.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:g(i),characterList:y(e,t)}},y=function(t,n){var r=t.text,i=t.entityRanges,a=t.inlineStyleRanges,o=i||[];return s(u(r,a||[]),d(r,o.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()})},b=function(t,n,r){var i=n.map(function(t){return e({},t,{parentRef:r})});return t.concat(i.reverse())},M=function(t,i){var a=t.blocks.find(function(e){return Array.isArray(e.children)&&e.children.length>0}),c=m&&!a?o.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!m)return function(e,t){return v(e.map(function(e){var r=new n(w(e,t));return[r.getKey(),r]}))}(a?o.fromRawTreeStateToRawState(t).blocks:c,i);var s=function(t,n){return t.map(E).reduce(function(i,a,o){Array.isArray(a.children)||("production"!==process.env.NODE_ENV?p(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):p(!1));var l=a.children.map(E),c=new r(e({},w(a,n),{prevSibling:0===o?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:A(l.map(function(e){return e.key}))}));i=i.set(c.getKey(),c);for(var s=b([],l,c);s.length>0;){var d=s.pop(),u=d.parentRef,f=u.getChildKeys(),h=f.indexOf(d.key),C=Array.isArray(d.children);if(!C){C||("production"!==process.env.NODE_ENV?p(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):p(!1));break}var m=d.children.map(E),g=new r(e({},w(d,n),{parent:u.getKey(),children:A(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(g.getKey(),g),s=b(s,m,g)}return i},v())}(c,i);return"production"!==process.env.NODE_ENV&&(l.isValidTree(s)||("production"!==process.env.NODE_ENV?p(!1,"Should be a valid tree"):p(!1))),s};return TU=function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?p(!1,"invalid RawDraftContentState"):p(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach(function(e){var r=t[e],i=r.type,o=r.mutability,l=r.data;n[e]=a.__create(i,o,l||{})}),n}(e),n=M(e,t),r=n.isEmpty()?new c:c.createEmpty(n.first().getKey());return new i({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}}function JU(){if(PU)return jU;PU=1;var e=function(){if(BU)return RU;BU=1;var e=nU();return RU=function(t){var n=e(t),r=0,i=0,a=0,o=0;if(n.length){if(n.length>1&&0===n[0].width){var l=n[1];r=l.top,i=l.right,a=l.bottom,o=l.left}else{var c=n[0];r=c.top,i=c.right,a=c.bottom,o=c.left}for(var s=1;s<n.length;s++){var d=n[s];0!==d.height&&0!==d.width&&(r=Math.min(r,d.top),i=Math.max(i,d.right),a=Math.max(a,d.bottom),o=Math.min(o,d.left))}}return{top:r,right:i,bottom:a,left:o,width:i-o,height:a-r}},RU}();return jU=function(t){var n=t.getSelection();if(!n.rangeCount)return null;var r=n.getRangeAt(0),i=e(r),a=i.top,o=i.right,l=i.bottom,c=i.left;return 0===a&&0===o&&0===l&&0===c?null:i},jU}function $U(){if(qU)return UU;qU=1;var e=BT(),t=cT(),n=sT(),r=jT(),i=uT(),a=IT(),o=UT(),l=qT(),c=AU(),s=UB(),d=ST(),u=HT(),f=kT(),h=RT(),C=tU(),p=XU(),m=fU(),A=ZT(),g=KU(),v=_U(),w=mT(),y=mU(),E=JU(),b=dU();return UU={Editor:c,EditorBlock:s,EditorState:h,CompositeDecorator:r,Entity:d,EntityInstance:f,BlockMapBuilder:t,CharacterMetadata:n,ContentBlock:i,ContentState:a,RawDraftContentState:p,SelectionState:A,AtomicBlockUtils:e,KeyBindingUtil:C,Modifier:u,RichUtils:m,DefaultDraftBlockRenderMap:o,DefaultDraftInlineStyle:l,convertFromHTML:b,convertFromRaw:v,convertToRaw:g,genKey:w,getDefaultKeyBinding:y,getVisibleSelectionRect:E}}var eq=$U(),tq={exports:{}},nq="@@__IMMUTABLE_INDEXED__@@";function rq(e){return Boolean(e&&e[nq])}var iq="@@__IMMUTABLE_KEYED__@@";function aq(e){return Boolean(e&&e[iq])}function oq(e){return aq(e)||rq(e)}var lq="@@__IMMUTABLE_ITERABLE__@@";function cq(e){return Boolean(e&&e[lq])}var sq=function(e){return cq(e)?e:Xq(e)},dq=function(e){function t(e){return aq(e)?e:Qq(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(sq),uq=function(e){function t(e){return rq(e)?e:Gq(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(sq),fq=function(e){function t(e){return cq(e)&&!oq(e)?e:Kq(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(sq);sq.Keyed=dq,sq.Indexed=uq,sq.Set=fq;var hq="function"==typeof Symbol&&Symbol.iterator,Cq="@@iterator",pq=hq||Cq,mq=function(e){this.next=e};function Aq(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 gq(){return{value:void 0,done:!0}}function vq(e){return!!Array.isArray(e)||!!Eq(e)}function wq(e){return!(!e||"function"!=typeof e.next)}function yq(e){var t=Eq(e);return t&&t.call(e)}function Eq(e){var t=e&&(hq&&e[hq]||e[Cq]);if("function"==typeof t)return t}mq.prototype.toString=function(){return"[Iterator]"},mq.KEYS=0,mq.VALUES=1,mq.ENTRIES=2,mq.prototype.inspect=mq.prototype.toSource=function(){return this.toString()},mq.prototype[pq]=function(){return this};var bq="delete",Mq=32,Lq=31,Hq={};function xq(e){e&&(e.value=!0)}function Vq(){}function kq(e){return void 0===e.size&&(e.size=e.__iterate(Zq)),e.size}function Sq(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?kq(e)+t:t}function Zq(){return!0}function Oq(e,t,n){return(0===e&&!Dq(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function zq(e,t){return Nq(e,t,0)}function Iq(e,t){return Nq(e,t,t)}function Nq(e,t,n){return void 0===e?n:Dq(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function Dq(e){return e<0||0===e&&1/e==-1/0}var Tq="@@__IMMUTABLE_RECORD__@@";function Fq(e){return Boolean(e&&e[Tq])}function Rq(e){return cq(e)||Fq(e)}var Bq="@@__IMMUTABLE_ORDERED__@@";function jq(e){return Boolean(e&&e[Bq])}var Pq="@@__IMMUTABLE_SEQ__@@";function Uq(e){return Boolean(e&&e[Pq])}var qq=Object.prototype.hasOwnProperty;function Wq(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 Xq=function(e){function t(e){return null==e?eW():Rq(e)?e.toSeq():function(e){var t=rW(e);if(t)return(r=Eq(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=Eq(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new _q(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 a=n[t?r-++i:i++];if(!1===e(a[1],a[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 mq(function(){if(i===r)return{value:void 0,done:!0};var a=n[t?r-++i:i++];return Aq(e,a[0],a[1])})}return this.__iteratorUncached(e,t)},t}(sq),Qq=function(e){function t(e){return null==e?eW().toKeyedSeq():cq(e)?aq(e)?e.toSeq():e.fromEntrySeq():Fq(e)?e.toSeq():tW(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Xq),Gq=function(e){function t(e){return null==e?eW():cq(e)?aq(e)?e.entrySeq():e.toIndexedSeq():Fq(e)?e.toSeq().entrySeq():nW(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}(Xq),Kq=function(e){function t(e){return(cq(e)&&!oq(e)?e:Gq(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}(Xq);Xq.isSeq=Uq,Xq.Keyed=Qq,Xq.Set=Kq,Xq.Indexed=Gq,Xq.prototype[Pq]=!0;var Yq=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[Sq(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var a=t?r-++i:i++;if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new mq(function(){if(i===r)return{value:void 0,done:!0};var a=t?r-++i:i++;return Aq(e,a,n[a])})},t}(Gq),_q=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 qq.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,a=0;a!==i;){var o=r[t?i-++a:a++];if(!1===e(n[o],o,this))break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,a=0;return new mq(function(){if(a===i)return{value:void 0,done:!0};var o=r[t?i-++a:a++];return Aq(e,o,n[o])})},t}(Qq);_q.prototype[Bq]=!0;var Jq,$q=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=yq(this._collection),r=0;if(wq(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=yq(this._collection);if(!wq(n))return new mq(gq);var r=0;return new mq(function(){var t=n.next();return t.done?t:Aq(e,r++,t.value)})},t}(Gq);function eW(){return Jq||(Jq=new Yq([]))}function tW(e){var t=rW(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new _q(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function nW(e){var t=rW(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function rW(e){return Wq(e)?new Yq(e):vq(e)?new $q(e):void 0}function iW(){return this.__ensureOwner()}function aW(){return this.__ownerID?this:this.__ensureOwner(new Vq)}var oW="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 lW(e){return e>>>1&1073741824|3221225471&e}var cW=Object.prototype.valueOf;function sW(e){if(null==e)return dW(e);if("function"==typeof e.hashCode)return lW(e.hashCode(e));var t,n=(t=e).valueOf!==cW&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return dW(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 lW(t)}(n);case"string":return n.length>EW?function(e){var t=LW[e];void 0===t&&(t=uW(e),MW===bW&&(MW=0,LW={}),MW++,LW[e]=t);return t}(n):uW(n);case"object":case"function":return function(e){var t;if(gW&&void 0!==(t=AW.get(e)))return t;if(t=e[yW],void 0!==t)return t;if(!pW){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[yW]))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=mW(),gW)AW.set(e,t);else{if(void 0!==CW&&!1===CW(e))throw new Error("Non-extensible objects are not allowed as keys.");if(pW)Object.defineProperty(e,yW,{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[yW]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[yW]=t}}return t}(n);case"symbol":return function(e){var t=vW[e];if(void 0!==t)return t;return t=mW(),vW[e]=t,t}(n);default:if("function"==typeof n.toString)return uW(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function dW(e){return null===e?1108378658:1108378659}function uW(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return lW(t)}var fW=(1048576*Math.random()|1)%1048576||40503;function hW(e){if("string"!=typeof e)return sW(e);for(var t=0,n=0;n<e.length;n++)t=fW*t+e.charCodeAt(n)|0;return t}var CW=Object.isExtensible,pW=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function mW(){var e=++wW;return 1073741824&wW&&(wW=0),e}var AW,gW="function"==typeof WeakMap;gW&&(AW=new WeakMap);var vW=Object.create(null),wW=0,yW="__immutablehash__";"function"==typeof Symbol&&(yW=Symbol(yW));var EW=16,bW=255,MW=0,LW={},HW=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=OW(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=ZW(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}(Qq);HW.prototype[Bq]=!0;var xW=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&&kq(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&&kq(this),new mq(function(){var a=r.next();return a.done?a:Aq(e,t?n.size-++i:i++,a.value,a)})},t}(Gq),VW=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 mq(function(){var t=n.next();return t.done?t:Aq(e,t.value,t.value,t)})},t}(Kq),kW=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){UW(t);var r=cq(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 mq(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){UW(r);var i=cq(r);return Aq(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(Qq);function SW(e){var t=WW(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=XW,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 mq(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 ZW(e,t,n){var r=WW(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,Hq);return a===Hq?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return!1!==r(t.call(n,e,i,o),i,a)},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(2,i);return new mq(function(){var i=a.next();if(i.done)return i;var o=i.value,l=o[0];return Aq(r,l,t.call(n,o[1],l,e),i)})},r}function OW(e,t){var n=WW(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=SW(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=XW,n.__iterate=function(n,r){var i=this,a=0;return r&&kq(e),e.__iterate(function(e,o){return n(e,t?o:r?i.size-++a:a++,i)},!r)},n.__iterator=function(r,i){var a=0;i&&kq(e);var o=e.__iterator(2,!i);return new mq(function(){var e=o.next();if(e.done)return e;var l=e.value;return Aq(r,t?l[0]:i?n.size-++a:a++,l[1],e)})},n}function zW(e,t,n,r){var i=WW(e);return r&&(i.has=function(r){var i=e.get(r,Hq);return i!==Hq&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,Hq);return a!==Hq&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,l=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return l++,i(e,r?a:l-1,o)},a),l},i.__iteratorUncached=function(i,a){var o=e.__iterator(2,a),l=0;return new mq(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,s=c[0],d=c[1];if(t.call(n,d,s,e))return Aq(i,r?s:l++,d,a)}})},i}function IW(e,t,n,r){var i=e.size;if(Oq(t,n,i))return e;if(void 0===i&&(t<0||n<0))return IW(e.toSeq().cacheResult(),t,n,r);var a,o=zq(t,i),l=Iq(n,i)-o;l==l&&(a=l<0?0:l);var c=WW(e);return c.size=0===a?a:e.size&&a||void 0,!r&&Uq(e)&&a>=0&&(c.get=function(t,n){return(t=Sq(this,t))>=0&&t<a?e.get(t+o,n):n}),c.__iterateUncached=function(t,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var l=0,c=!0,s=0;return e.__iterate(function(e,n){if(!c||!(c=l++<o))return s++,!1!==t(e,r?n:s-1,i)&&s!==a}),s},c.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);if(0===a)return new mq(gq);var i=e.__iterator(t,n),l=0,c=0;return new mq(function(){for(;l++<o;)i.next();if(++c>a)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:Aq(t,c-1,0===t?void 0:e.value[1],e)})},c}function NW(e,t,n,r){var i=WW(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var l=!0,c=0;return e.__iterate(function(e,a,s){if(!l||!(l=t.call(n,e,a,s)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var l=e.__iterator(2,a),c=!0,s=0;return new mq(function(){var e,a,d;do{if((e=l.next()).done)return r||1===i?e:Aq(i,s++,0===i?void 0:e.value[1],e);var u=e.value;a=u[0],d=u[1],c&&(c=t.call(n,d,a,o))}while(c);return 2===i?e:Aq(i,a,d,e)})},i}xW.prototype.cacheResult=HW.prototype.cacheResult=VW.prototype.cacheResult=kW.prototype.cacheResult=XW;var DW=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[iq]=this._wrappedIterables[0][iq],this[nq]=this._wrappedIterables[0][nq],this[Bq]=this._wrappedIterables[0][Bq]}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=aq(this),i=r?2:1,a=this._wrappedIterables[n].__iterator(i,t),o=!0,l=0;o;){for(var c=a.next();c.done;){if(++n===this._wrappedIterables.length)return l;c=(a=this._wrappedIterables[n].__iterator(i,t)).next()}o=!1!==(r?e(c.value[1],c.value[0],this):e(c.value,l,this)),l++}return l}},t.prototype.__iteratorUncached=function(e,t){var n=this;if(0===this._wrappedIterables.length)return new mq(gq);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new mq(function(){for(var a=i.next();a.done;){if(++r===n._wrappedIterables.length)return a;a=(i=n._wrappedIterables[r].__iterator(e,t)).next()}return a})},t}(Xq);function TW(e,t,n){var r=WW(e);return r.__iterateUncached=function(i,a){if(a)return this.cacheResult().__iterate(i,a);var o=0,l=!1;return function e(c,s){c.__iterate(function(a,c){return(!t||s<t)&&cq(a)?e(a,s+1):(o++,!1===i(a,n?c:o-1,r)&&(l=!0)),!l},a)}(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(r,i),o=[],l=0;return new mq(function(){for(;a;){var e=a.next();if(!1===e.done){var c=e.value;if(2===r&&(c=c[1]),t&&!(o.length<t)||!cq(c))return n?e:Aq(r,l++,c,e);o.push(a),a=c.__iterator(r,i)}else a=o.pop()}return{value:void 0,done:!0}})},r}function FW(e,t,n){t||(t=QW);var r=aq(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?Qq(a):rq(e)?Gq(a):Kq(a)}function RW(e,t,n){if(t||(t=QW),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return BW(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return BW(t,e,n)?n:e})}function BW(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function jW(e,t,n,r){var i=WW(e),a=new Yq(n).map(function(e){return e.size});return i.size=r?a.max():a.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 a=n.map(function(e){return e=sq(e),yq(i?e.reverse():e)}),o=0,l=!1;return new mq(function(){var n;return l||(n=a.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}:Aq(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function PW(e,t){return e===t?e:Uq(e)?t:e.constructor(t)}function UW(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function qW(e){return aq(e)?dq:rq(e)?uq:fq}function WW(e){return Object.create((aq(e)?Qq:rq(e)?Gq:Kq).prototype)}function XW(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Xq.prototype.cacheResult.call(this)}function QW(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 GW(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function KW(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!!(GW(e)&&GW(t)&&e.equals(t))}function YW(e,t,n,r){return _X(e,[t],n,r)}function _W(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return $W(this,e)}function JW(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 $W(this,t,e)}function $W(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=dq(t[i]);0!==a.size&&r.push(a)}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){YW(e,r,Hq,function(e){return e===Hq?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)}):Fq(e)?e:e.constructor(r[0])}var eX=Object.prototype.toString;function tX(e){if(!e||"object"!=typeof e||"[object Object]"!==eX.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 nX(e){return"object"==typeof e&&(Rq(e)||Array.isArray(e)||tX(e))}function rX(e){return"string"==typeof e&&("__proto__"===e||"constructor"===e)}function iX(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 aX(e){if(Array.isArray(e))return iX(e);var t={};for(var n in e)rX(n)||qq.call(e,n)&&(t[n]=e[n]);return t}function oX(e,t,n){return lX(e,t,function(e){function t(n,r,i){return nX(n)&&nX(r)&&(a=r,o=Xq(n),l=Xq(a),rq(o)===rq(l)&&aq(o)===aq(l))?lX(n,[r],t):e?e(n,r,i):r;var a,o,l}return t}(n))}function lX(e,t,n){if(!nX(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Rq(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,a=r?uq:dq,o=r?function(t){i===e&&(i=aX(i)),i.push(t)}:function(t,r){if(!rX(r)){var a=qq.call(i,r),o=a&&n?n(i[r],t,r):t;a&&o===i[r]||(i===e&&(i=aX(i)),i[r]=o)}},l=0;l<t.length;l++)a(t[l]).forEach(o);return i}function cX(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return oX(this,e)}function sX(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return oX(this,t,e)}function dX(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return _X(this,e,IX(),function(e){return oX(e,t)})}function uX(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return _X(this,e,IX(),function(e){return lX(e,t)})}function fX(e,t,n){return _X(e,t,Hq,function(){return n})}function hX(e,t){return fX(this,e,t)}function CX(e,t,n){return 1===arguments.length?e(this):YW(this,e,t,n)}function pX(e,t,n){return _X(this,e,t,n)}function mX(){return this.__altered}function AX(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}var gX="@@__IMMUTABLE_MAP__@@";function vX(e){return Boolean(e&&e[gX])}function wX(e,t){if(!e)throw new Error(t)}function yX(e){wX(e!==1/0,"Cannot perform this action with an infinite size.")}var EX=function(e){function t(t){return null==t?IX():vX(t)&&!jq(t)?t:IX().withMutations(function(n){var r=e(t);yX(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 NX(this,e,t)},t.prototype.remove=function(e){return NX(this,e,Hq)},t.prototype.deleteAll=function(e){var t=sq(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):IX()},t.prototype.sort=function(e){return vQ(FW(this,e))},t.prototype.sortBy=function(e,t){return vQ(FW(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,a){r.set(a,e.call(t,i,a,n))})})},t.prototype.__iterator=function(e,t){return new SX(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?zX(this.size,this._root,e,this.__hash):0===this.size?IX():(this.__ownerID=e,this.__altered=!1,this)},t}(dq);EX.isMap=vX;var bX=EX.prototype;bX[gX]=!0,bX[bq]=bX.remove,bX.removeAll=bX.deleteAll,bX.setIn=hX,bX.removeIn=bX.deleteIn=eQ,bX.update=CX,bX.updateIn=pX,bX.merge=bX.concat=_W,bX.mergeWith=JW,bX.mergeDeep=cX,bX.mergeDeepWith=sX,bX.mergeIn=uX,bX.mergeDeepIn=dX,bX.withMutations=AX,bX.wasAltered=mX,bX.asImmutable=iW,bX["@@transducer/init"]=bX.asMutable=aW,bX["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},bX["@@transducer/result"]=function(e){return e.asImmutable()};var MX=function(e,t){this.ownerID=e,this.entries=t};MX.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(KW(n,i[a][0]))return i[a][1];return r},MX.prototype.update=function(e,t,n,r,i,a,o){for(var l=i===Hq,c=this.entries,s=0,d=c.length;s<d&&!KW(r,c[s][0]);s++);var u=s<d;if(u?c[s][1]===i:l)return this;if(xq(o),(l||!u)&&xq(a),!l||1!==c.length){if(!u&&!l&&c.length>=jX)return function(e,t,n,r){e||(e=new Vq);for(var i=new VX(e,sW(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}(e,c,r,i);var f=e&&e===this.ownerID,h=f?c:iX(c);return u?l?s===d-1?h.pop():h[s]=h.pop():h[s]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new MX(e,h)}};var LX=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};LX.prototype.get=function(e,t,n,r){void 0===t&&(t=sW(n));var i=1<<((0===e?t:t>>>e)&Lq),a=this.bitmap;return 0===(a&i)?r:this.nodes[RX(a&i-1)].get(e+5,t,n,r)},LX.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=sW(r));var l=(0===t?n:n>>>t)&Lq,c=1<<l,s=this.bitmap,d=0!==(s&c);if(!d&&i===Hq)return this;var u=RX(s&c-1),f=this.nodes,h=d?f[u]:void 0,C=DX(h,e,t+5,n,r,i,a,o);if(C===h)return this;if(!d&&C&&f.length>=PX)return function(e,t,n,r,i){for(var a=0,o=new Array(Mq),l=0;0!==n;l++,n>>>=1)o[l]=1&n?t[a++]:void 0;return o[r]=i,new HX(e,a+1,o)}(e,f,s,l,C);if(d&&!C&&2===f.length&&TX(f[1^u]))return f[1^u];if(d&&C&&1===f.length&&TX(C))return C;var p=e&&e===this.ownerID,m=d?C?s:s^c:s|c,A=d?C?BX(f,u,C,p):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}(f,u,p):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=new Array(i),o=0,l=0;l<i;l++)l===t?(a[l]=n,o=-1):a[l]=e[l+o];return a}(f,u,C,p);return p?(this.bitmap=m,this.nodes=A,this):new LX(e,m,A)};var HX=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};HX.prototype.get=function(e,t,n,r){void 0===t&&(t=sW(n));var i=(0===e?t:t>>>e)&Lq,a=this.nodes[i];return a?a.get(e+5,t,n,r):r},HX.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=sW(r));var l=(0===t?n:n>>>t)&Lq,c=i===Hq,s=this.nodes,d=s[l];if(c&&!d)return this;var u=DX(d,e,t+5,n,r,i,a,o);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<UX)return function(e,t,n,r){for(var i=0,a=0,o=new Array(n),l=0,c=1,s=t.length;l<s;l++,c<<=1){var d=t[l];void 0!==d&&l!==r&&(i|=c,o[a++]=d)}return new LX(e,i,o)}(e,s,f,l)}else f++;var h=e&&e===this.ownerID,C=BX(s,l,u,h);return h?(this.count=f,this.nodes=C,this):new HX(e,f,C)};var xX=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n,this._index=void 0};xX.prototype._positionOf=function(e,t){var n=this.entries,r=this._index;if(void 0===r&&t&&n.length>=qX&&(r=this._buildIndex()),void 0!==r){var i=r[hW(e)];if(void 0!==i)for(var a=0;a<i.length;a++){var o=i[a];if(KW(e,n[o][0]))return o}return-1}for(var l=0,c=n.length;l<c;l++)if(KW(e,n[l][0]))return l;return-1},xX.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,n=0,r=t.length;n<r;n++){var i=hW(t[n][0]),a=e[i];void 0!==a?a.push(n):e[i]=[n]}return this._index=e,e},xX.prototype.get=function(e,t,n,r){var i=this._positionOf(n,!0);return-1===i?r:this.entries[i][1]},xX.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=sW(r));var l=i===Hq;if(n!==this.keyHash)return l?this:(xq(o),xq(a),FX(this,e,t,n,[r,i]));var c=this.entries,s=c.length,d=e&&e===this.ownerID,u=this._positionOf(r,d),f=-1===u?s:u,h=-1!==u;if(h?c[f][1]===i:l)return this;if(xq(o),(l||!h)&&xq(a),l&&2===s)return new VX(e,this.keyHash,c[1^f]);var C=d?c:iX(c);if(h)l?(f===s-1?C.pop():C[f]=C.pop(),d&&(this._index=void 0)):C[f]=[r,i];else if(C.push([r,i]),d&&void 0!==this._index){var p=hW(r),m=this._index[p];void 0!==m?m.push(s):this._index[p]=[s]}return d?(this.entries=C,this):new xX(e,this.keyHash,C)};var VX=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};VX.prototype.get=function(e,t,n,r){return KW(n,this.entry[0])?this.entry[1]:r},VX.prototype.update=function(e,t,n,r,i,a,o){var l=i===Hq,c=KW(r,this.entry[0]);return(c?i===this.entry[1]:l)?this:(xq(o),l?void xq(a):c?e&&e===this.ownerID?(this.entry[1]=i,this):new VX(e,this.keyHash,[r,i]):(xq(a),FX(this,e,t,sW(r),[r,i])))},MX.prototype.iterate=xX.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},LX.prototype.iterate=HX.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&!1===a.iterate(e,t))return!1}},VX.prototype.iterate=function(e,t){return e(this.entry)};var kX,SX=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&OX(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 ZX(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return ZX(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return ZX(e,a.entry);t=this._stack=OX(a,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(mq);function ZX(e,t){return Aq(e,t[0],t[1])}function OX(e,t){return{node:e,index:0,__prev:t}}function zX(e,t,n,r){var i=Object.create(bX);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function IX(){return kX||(kX=zX(0))}function NX(e,t,n){var r,i;if(e._root){var a={value:!1},o={value:!1};if(r=DX(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===Hq?-1:1:0)}else{if(n===Hq)return e;i=1,r=new MX(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?zX(i,r):IX()}function DX(e,t,n,r,i,a,o,l){return e?e.update(t,n,r,i,a,o,l):a===Hq?e:(xq(l),xq(o),new VX(t,r,[i,a]))}function TX(e){return e.constructor===VX||e.constructor===xX}function FX(e,t,n,r,i){if(e.keyHash===r)return new xX(t,r,[e.entry,i]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&Lq,l=(0===n?r:r>>>n)&Lq,c=o===l?[FX(e,t,n+5,r,i)]:(a=new VX(t,r,i),o<l?[e,a]:[a,e]);return new LX(t,1<<o|1<<l,c)}function RX(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function BX(e,t,n,r){var i=r?e:iX(e);return i[t]=n,i}var jX=8,PX=16,UX=8,qX=16;function WX(e){if(Wq(e)&&"string"!=typeof e)return e;if(jq(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function XX(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function QX(e,t){return Rq(e)?e.has(t):nX(e)&&qq.call(e,t)}function GX(e,t,n){return Rq(e)?e.get(t,n):QX(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function KX(e,t){if(!nX(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Rq(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!qq.call(e,t))return e;var n=aX(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function YX(e,t,n){if(rX(t))return e;if(!nX(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Rq(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(qq.call(e,t)&&n===e[t])return e;var r=aX(e);return r[t]=n,r}function _X(e,t,n,r){r||(r=n,n=void 0);var i=JX(Rq(e),e,WX(t),0,n,r);return i===Hq?n:i}function JX(e,t,n,r,i,a){var o=t===Hq;if(r===n.length){var l=o?i:t,c=a(l);return c===l?t:c}if(!o&&!nX(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(n).slice(0,r).map(XX)+"]: "+t);var s=n[r],d=o?Hq:GX(t,s,Hq),u=JX(d===Hq?e:Rq(d),d,n,r+1,i,a);return u===d?t:u===Hq?KX(t,s):YX(o?e?IX():{}:t,s,u)}function $X(e,t){return _X(e,t,function(){return Hq})}function eQ(e){return $X(this,e)}var tQ="@@__IMMUTABLE_LIST__@@";function nQ(e){return Boolean(e&&e[tQ])}var rQ=function(e){function t(t){var n=sQ();if(null==t)return n;if(nQ(t))return t;var r=e(t),i=r.size;return 0===i?n:(yX(i),i>0&&i<Mq?cQ(0,i,5,void 0,new aQ(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=Sq(this,e))>=0&&e<this.size){var n=fQ(this,e+=this._origin);return n&&n.array[e&Lq]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=Sq(e,t),t!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?hQ(e,t).set(0,n):hQ(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a={value:!1};t>=CQ(e._capacity)?r=dQ(r,e.__ownerID,0,t,n,a):i=dQ(i,e.__ownerID,e._level,t,n,a);if(!a.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return cQ(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):sQ()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){hQ(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return hQ(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){hQ(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return hQ(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],a=e("string"!=typeof i&&vq(i)?i:[i]);0!==a.size&&n.push(a)}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 hQ(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 Oq(e,t,n)?this:hQ(this,zq(e,n),Iq(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=lQ(this,t);return new mq(function(){var i=r();return i===oQ?{value:void 0,done:!0}:Aq(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=lQ(this,t);(n=i())!==oQ&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?cQ(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?sQ():(this.__ownerID=e,this.__altered=!1,this)},t}(uq);rQ.isList=nQ;var iQ=rQ.prototype;iQ[tQ]=!0,iQ[bq]=iQ.remove,iQ.merge=iQ.concat,iQ.setIn=hX,iQ.deleteIn=iQ.removeIn=eQ,iQ.update=CX,iQ.updateIn=pX,iQ.mergeIn=uX,iQ.mergeDeepIn=dX,iQ.withMutations=AX,iQ.wasAltered=mX,iQ.asImmutable=iW,iQ["@@transducer/init"]=iQ.asMutable=aW,iQ["@@transducer/step"]=function(e,t){return e.push(t)},iQ["@@transducer/result"]=function(e){return e.asImmutable()};var aQ=function(e,t){this.array=e,this.ownerID=t};aQ.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+5)-1)||0===this.array.length)return this;var r=n>>>t&Lq;if(r>=this.array.length)return new aQ([],e);var i,a=0===r;if(t>0){var o=this.array[r];if((i=o&&o.removeBefore(e,t-5,n))===o&&a)return this}if(a&&!i)return this;var l=uQ(this,e);if(!a)for(var c=0;c<r;c++)l.array[c]=void 0;return i&&(l.array[r]=i),l},aQ.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+5:Mq)||0===this.array.length)return this;var r,i=n-1>>>t&Lq;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((r=a&&a.removeAfter(e,t-5,n))===a&&i===this.array.length-1)return this}var o=uQ(this,e);return o.array.splice(i+1),r&&(o.array[i]=r),o};var oQ={};function lQ(e,t){var n=e._origin,r=e._capacity,i=CQ(r),a=e._tail;return o(e._root,e._level,0);function o(e,l,c){return 0===l?function(e,o){var l=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,s=r-o;s>Mq&&(s=Mq);return function(){if(c===s)return oQ;var e=t?--s:c++;return l&&l[e]}}(e,c):function(e,i,a){var l,c=e&&e.array,s=a>n?0:n-a>>i,d=1+(r-a>>i);d>Mq&&(d=Mq);return function(){for(;;){if(l){var e=l();if(e!==oQ)return e;l=null}if(s===d)return oQ;var n=t?--d:s++;l=o(c&&c[n],i-5,a+(n<<i))}}}(e,l,c)}}function cQ(e,t,n,r,i,a,o){var l=Object.create(iQ);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=i,l.__ownerID=a,l.__hash=o,l.__altered=!1,l}function sQ(){return cQ(0,0,5)}function dQ(e,t,n,r,i,a){var o,l=r>>>n&Lq,c=e&&l<e.array.length;if(!c&&void 0===i)return e;if(n>0){var s=e&&e.array[l],d=dQ(s,t,n-5,r,i,a);return d===s?e:((o=uQ(e,t)).array[l]=d,o)}return c&&e.array[l]===i?e:(a&&xq(a),o=uQ(e,t),void 0===i&&l===o.array.length-1?o.array.pop():o.array[l]=i,o)}function uQ(e,t){return t&&e&&t===e.ownerID?e:new aQ(e?e.array.slice():[],t)}function fQ(e,t){if(t>=CQ(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&Lq],r-=5;return n}}function hQ(e,t,n){!function(e,t,n){var r=e._origin+(void 0===t?0:t),i=void 0===n?e._capacity:n<0?e._capacity+n:e._origin+n;if(Number.isFinite(i)&&i>pQ||Number.isFinite(r)&&r<-pQ||Number.isFinite(i)&&Number.isFinite(r)&&i-r>pQ)throw new RangeError("Invalid List size: a List cannot hold more than "+pQ+" (2 ** 30) values.")}(e,t,n),void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new Vq,i=e._origin,a=e._capacity,o=i+t,l=void 0===n?a:n<0?a+n:i+n;if(o===i&&l===a)return e;if(o>=l)return e.clear();for(var c=e._level,s=e._root,d=0;o+d<0;)s=new aQ(s&&s.array.length?[void 0,s]:[],r),d+=mQ(c+=5);d&&(o+=d,i+=d,l+=d,a+=d);for(var u=CQ(a),f=CQ(l);f>=mQ(c+5);)s=new aQ(s&&s.array.length?[s]:[],r),c+=5;var h=e._tail,C=f<u?fQ(e,l-1):f>u?new aQ([],r):h;if(h&&f>u&&o<a&&h.array.length){for(var p=s=uQ(s,r),m=c;m>5;m-=5){var A=u>>>m&Lq;p=p.array[A]=uQ(p.array[A],r)}p.array[u>>>5&Lq]=h}if(l<a&&(C=C&&C.removeAfter(r,0,l)),o>=f)o-=f,l-=f,c=5,s=void 0,C=C&&C.removeBefore(r,0,o);else if(o>i||f<u){for(d=0;s;){var g=o>>>c&Lq;if(g!==f>>>c&Lq)break;g&&(d+=(1<<c)*g),c-=5,s=s.array[g]}s&&o>i&&(s=s.removeBefore(r,c,o-d)),s&&f<u&&(s=s.removeAfter(r,c,f-d)),d&&(o-=d,l-=d)}return e.__ownerID?(e.size=l-o,e._origin=o,e._capacity=l,e._level=c,e._root=s,e._tail=C,e.__hash=void 0,e.__altered=!0,e):cQ(o,l,c,s,C)}function CQ(e){return e<Mq?0:e-1>>>5<<5}var pQ=Math.pow(2,30);function mQ(e){return e<31?1<<e:Math.pow(2,e)}function AQ(e){return vX(e)&&jq(e)}var gQ,vQ=function(e){function t(e){return null==e?yQ():AQ(e)?e:yQ().withMutations(function(t){var n=dq(e);yX(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):yQ()},t.prototype.set=function(e,t){return EQ(this,e,t)},t.prototype.remove=function(e){return EQ(this,e,Hq)},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?wQ(t,n,e,this.__hash):0===this.size?yQ():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(EX);function wQ(e,t,n,r){var i=Object.create(vQ.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 yQ(){return gQ||(gQ=wQ(IX(),sQ()))}function EQ(e,t,n){var r,i,a=e._map,o=e._list,l=a.get(t),c=void 0!==l;if(n===Hq){if(!c)return e;o.size>=Mq&&o.size>=2*a.size?(r=(i=o.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=a.remove(t),i=l===o.size-1?o.pop():o.set(l,void 0))}else if(c){if(n===o.get(l)[1])return e;r=a,i=o.set(l,[t,n])}else r=a.set(t,o.size),i=o.set(o.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):wQ(r,i)}vQ.isOrderedMap=AQ,vQ.prototype[Bq]=!0,vQ.prototype[bq]=vQ.prototype.remove;var bQ="@@__IMMUTABLE_STACK__@@";function MQ(e){return Boolean(e&&e[bQ])}var LQ=function(e){function t(e){return null==e?kQ():MQ(e)?e:kQ().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=Sq(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):VQ(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&MQ(t))return t;yX(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):VQ(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):kQ()},t.prototype.slice=function(t,n){if(Oq(t,n,this.size))return this;var r=zq(t,this.size);if(Iq(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=i,this._head=a,this.__hash=void 0,this.__altered=!0,this):VQ(i,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?VQ(this.size,this._head,e,this.__hash):0===this.size?kQ():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Yq(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 Yq(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new mq(function(){if(r){var t=r.value;return r=r.next,Aq(e,n++,t)}return{value:void 0,done:!0}})},t}(uq);LQ.isStack=MQ;var HQ,xQ=LQ.prototype;function VQ(e,t,n,r){var i=Object.create(xQ);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function kQ(){return HQ||(HQ=VQ(0))}function SQ(e,t,n,r,i,a){return yX(e.size),e.__iterate(function(e,a,o){i?(i=!1,n=e):n=t.call(r,n,e,a,o)},a),n}function ZQ(e,t){return t}function OQ(e,t){return[t,e]}function zQ(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function IQ(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function NQ(e,t){return e<t?1:e>t?-1:0}function DQ(e,t){if(e===t)return!0;if(!cq(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||aq(e)!==aq(t)||rq(e)!==rq(t)||jq(e)!==jq(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!oq(e);if(jq(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&KW(i[1],e)&&(n||KW(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 a=e;e=t,t=a}var o=!0,l=t.__iterate(function(t,r){if(n?!e.has(t):i?!KW(t,e.get(r,Hq)):!KW(e.get(r,Hq),t))return o=!1,!1});return o&&e.size===l}xQ[bQ]=!0,xQ.shift=xQ.pop,xQ.unshift=xQ.push,xQ.unshiftAll=xQ.pushAll,xQ.withMutations=AX,xQ.wasAltered=mX,xQ.asImmutable=iW,xQ["@@transducer/init"]=xQ.asMutable=aW,xQ["@@transducer/step"]=function(e,t){return e.unshift(t)},xQ["@@transducer/result"]=function(e){return e.asImmutable()};var TQ,FQ=function(e){function t(e,n,r){if(void 0===r&&(r=1),!(this instanceof t))return new t(e,n,r);if(wX(0!==r,"Cannot step a Range by 0"),wX(void 0!==e,"You must define a start value when using Range"),wX(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(TQ)return TQ;TQ=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+Sq(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 Oq(e,n,this.size)?this:(e=zq(e,this.size),(n=Iq(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,a=0;a!==n&&!1!==e(i,t?n-++a:a++,this);)i+=t?-r:r;return a},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;return new mq(function(){if(a===n)return{value:void 0,done:!0};var o=i;return i+=t?-r:r,Aq(e,t?n-++a:a++,o)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:DQ(this,e)},t}(Gq),RQ="@@__IMMUTABLE_SET__@@";function BQ(e){return Boolean(e&&e[RQ])}var jQ=function(e){function t(t){return null==t?XQ():BQ(t)&&!jq(t)?t:XQ().withMutations(function(n){var r=e(t);yX(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(dq(e).keySeq())},t.intersect=function(e){return(e=sq(e).toArray()).length?UQ.intersect.apply(t(e.pop()),e):XQ()},t.union=function(e){return(e=sq(e).toArray()).length?UQ.union.apply(t(e.pop()),e):XQ()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return qQ(this,this._map.set(e,e))},t.prototype.remove=function(e){return qQ(this,this._map.remove(e))},t.prototype.clear=function(){return qQ(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=qQ(this,this._map.mapEntries(function(i){var a=i[1],o=e.call(t,a,a,n);return o!==a&&(r=!0),[o,o]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter(function(e){return 0!==e.size})).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 lG(FW(this,e))},t.prototype.sortBy=function(e,t){return lG(FW(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}(fq);jQ.isSet=BQ;var PQ,UQ=jQ.prototype;function qQ(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 WQ(e,t){var n=Object.create(UQ);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function XQ(){return PQ||(PQ=WQ(IX()))}function QQ(e,t,n){for(var r=WX(t),i=0;i!==r.length;)if((e=GX(e,r[i++],Hq))===Hq)return n;return e}function GQ(e,t){return QQ(this,e,t)}function KQ(e,t){return QQ(e,t,Hq)!==Hq}function YQ(){yX(this.size);var e={};return this.__iterate(function(t,n){rX(n)||(e[n]=t)}),e}function _Q(e){if(!e||"object"!=typeof e)return e;if(!cq(e)){if(!nX(e))return e;e=Xq(e)}if(aq(e)){var t={};return e.__iterate(function(e,n){rX(n)||(t[n]=_Q(e))}),t}var n=[];return e.__iterate(function(e){n.push(_Q(e))}),n}function JQ(e){if(e.size===1/0)return 0;var t=jq(e),n=aq(e),r=t?1:0;return e.__iterate(n?t?function(e,t){r=31*r+$Q(sW(e),sW(t))|0}:function(e,t){r=r+$Q(sW(e),sW(t))|0}:t?function(e){r=31*r+sW(e)|0}:function(e){r=r+sW(e)|0}),function(e,t){return t=oW(t,3432918353),t=oW(t<<15|t>>>-15,461845907),t=oW(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=oW(t^t>>>16,2246822507),t=oW(t^t>>>13,3266489909),t=lW(t^t>>>16),t}(e.size,r)}function $Q(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function eG(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}UQ[RQ]=!0,UQ[bq]=UQ.remove,UQ.merge=UQ.concat=UQ.union,UQ.withMutations=AX,UQ.asImmutable=iW,UQ["@@transducer/init"]=UQ.asMutable=aW,UQ["@@transducer/step"]=function(e,t){return e.add(t)},UQ["@@transducer/result"]=function(e){return e.asImmutable()},UQ.__empty=XQ,UQ.__make=WQ,sq.Iterator=mq,eG(sq,{toArray:function(){yX(this.size);var e=new Array(this.size||0),t=aq(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new xW(this)},toJS:function(){return _Q(this)},toKeyedSeq:function(){return new HW(this,!0)},toMap:function(){return EX(this.toKeyedSeq())},toObject:YQ,toOrderedMap:function(){return vQ(this.toKeyedSeq())},toOrderedSet:function(){return lG(aq(this)?this.valueSeq():this)},toSet:function(){return jQ(aq(this)?this.valueSeq():this)},toSetSeq:function(){return new VW(this)},toSeq:function(){return rq(this)?this.toIndexedSeq():aq(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return LQ(aq(this)?this.valueSeq():this)},toList:function(){return rQ(aq(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 PW(this,function(e,t){var n=aq(e),r=[e].concat(t).map(function(e){return cq(e)?n&&(e=dq(e)):e=n?tW(e):nW(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&&aq(i)||rq(e)&&rq(i))return i}return new DW(r)}(this,e))},includes:function(e){return this.some(function(t){return KW(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){yX(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return PW(this,zW(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=aq(e),i=[[],[]];e.__iterate(function(a,o){i[t.call(n,a,o,e)?1:0].push(r?[o,a]:a)});var a=qW(e);return i.map(function(t){return PW(e,a(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 yX(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){yX(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 PW(this,ZW(this,e,t))},reduce:function(e,t,n){return SQ(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return SQ(this,e,t,n,arguments.length<2,!0)},reverse:function(){return PW(this,OW(this,!0))},slice:function(e,t){return PW(this,IW(this,e,t,!0))},some:function(e,t){yX(this.size);var n=!1;return this.__iterate(function(r,i,a){if(e.call(t,r,i,a))return n=!0,!1}),n},sort:function(e){return PW(this,FW(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 kq(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=EX().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return DQ(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Yq(e._cache);var t=e.toSeq().map(OQ).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(zQ(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,a){if(e.call(t,n,i,a))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(Zq,null,e)},flatMap:function(e,t){return PW(this,function(e,t,n){var r=qW(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return PW(this,TW(this,e,!0))},fromEntrySeq:function(){return new kW(this)},get:function(e,t){return this.find(function(t,n){return KW(n,e)},void 0,t)},getIn:GQ,groupBy:function(e,t){return function(e,t,n){var r=aq(e),i=(jq(e)?vQ():EX()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return(e=e||[]).push(r?[o,a]:a),e})});var a=qW(e);return i.map(function(t){return PW(e,a(t))}).asImmutable()}(this,e,t)},has:function(e){return this.get(e,Hq)!==Hq},hasIn:function(e){return KQ(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:sq(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:sq(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return KW(t,e)})},keySeq:function(){return this.toSeq().map(ZQ).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return RW(this,e)},maxBy:function(e,t){return RW(this,t,e)},min:function(e){return RW(this,e?IQ(e):NQ)},minBy:function(e,t){return RW(this,t?IQ(t):NQ,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 PW(this,NW(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(zQ(e),t)},sortBy:function(e,t){return PW(this,FW(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 PW(this,function(e,t,n){var r=WW(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,l){return t.call(n,e,i,l)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(2,i),l=!0;return new mq(function(){if(!l)return{value:void 0,done:!0};var e=o.next();if(e.done)return e;var i=e.value,c=i[0],s=i[1];return t.call(n,s,c,a)?2===r?e:Aq(r,c,s,e):(l=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(zQ(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=JQ(this))}});var tG=sq.prototype;tG[lq]=!0,tG[pq]=tG.values,tG.toJSON=tG.toArray,tG.__toStringMapper=XX,tG.inspect=tG.toSource=function(){return this.toString()},tG.chain=tG.flatMap,tG.contains=tG.includes,eG(dq,{flip:function(){return PW(this,SW(this))},mapEntries:function(e,t){var n=this,r=0;return PW(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return PW(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var nG=dq.prototype;nG[iq]=!0,nG[pq]=tG.entries,nG.toJSON=YQ,nG.__toStringMapper=function(e,t){return XX(t)+": "+XX(e)},eG(uq,{toKeyedSeq:function(){return new HW(this,!1)},filter:function(e,t){return PW(this,zW(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 PW(this,OW(this,!1))},slice:function(e,t){return PW(this,IW(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=zq(e,e<0?this.count():this.size);var r=this.slice(0,e);return PW(this,1===n?r:r.concat(iX(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 PW(this,TW(this,e,!1))},get:function(e,t){return(e=Sq(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=Sq(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:this.find(function(t,n){return n===e},void 0,Hq)!==Hq)},interpose:function(e){return PW(this,function(e,t){var n=WW(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e){return(!a||!1!==n(t,a++,i))&&!1!==n(e,a++,i)},r),a},n.__iteratorUncached=function(n,r){var i,a=e.__iterator(1,r),o=0;return new mq(function(){return(!i||o%2)&&(i=a.next()).done?i:o%2?Aq(n,o++,t):Aq(n,o++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(iX(arguments)),t=jW(this.toSeq(),Gq.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),PW(this,n)},keySeq:function(){return FQ(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return PW(this,NW(this,e,t,!1))},zip:function(){return PW(this,jW(this,aG,[this].concat(iX(arguments))))},zipAll:function(){return PW(this,jW(this,aG,[this].concat(iX(arguments)),!0))},zipWith:function(e){var t=iX(arguments);return t[0]=this,PW(this,jW(this,e,t))}});var rG=uq.prototype;rG[nq]=!0,rG[Bq]=!0,eG(fq,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var iG=fq.prototype;function aG(){return iX(arguments)}function oG(e){return BQ(e)&&jq(e)}iG.has=tG.includes,iG.contains=iG.includes,iG.keys=iG.values,eG(Qq,nG),eG(Gq,rG),eG(Kq,iG);var lG=function(e){function t(e){return null==e?uG():oG(e)?e:uG().withMutations(function(t){var n=fq(e);yX(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(dq(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(jQ);lG.isOrderedSet=oG;var cG,sG=lG.prototype;function dG(e,t){var n=Object.create(sG);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function uG(){return cG||(cG=dG(yQ()))}sG[Bq]=!0,sG.zip=rG.zip,sG.zipWith=rG.zipWith,sG.zipAll=rG.zipAll,sG.__empty=uG,sG.__make=dG;var fG=function(e,t){var n;!function(e){if(Fq(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Rq(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(a){var o=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var l=Object.keys(e),c=i._indices={};i._name=t,i._keys=l,i._defaultValues=e;for(var s=0;s<l.length;s++){var d=l[s];c[d]=s,i[d]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+pG(this)+' with property "'+d+'" since that property name is part of the Record API.'):AG(i,d)}}return this.__ownerID=void 0,this._values=rQ().withMutations(function(e){e.setSize(o._keys.length),dq(a).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(hG);return i.constructor=r,t&&(r.displayName=t),r};fG.prototype.toString=function(){for(var e,t=pG(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+XX(this.get(e));return t+" }"},fG.prototype.equals=function(e){return this===e||Fq(e)&&mG(this).equals(mG(e))},fG.prototype.hashCode=function(){return mG(this).hashCode()},fG.prototype.has=function(e){return this._indices.hasOwnProperty(e)},fG.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},fG.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 CG(this,n)}return this},fG.prototype.remove=function(e){return this.set(e)},fG.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:CG(this,e)},fG.prototype.wasAltered=function(){return this._values.wasAltered()},fG.prototype.toSeq=function(){return mG(this)},fG.prototype.toJS=function(){return _Q(this)},fG.prototype.entries=function(){return this.__iterator(2)},fG.prototype.__iterator=function(e,t){return mG(this).__iterator(e,t)},fG.prototype.__iterate=function(e,t){return mG(this).__iterate(e,t)},fG.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?CG(this,t,e):(this.__ownerID=e,this._values=t,this)},fG.isRecord=Fq,fG.getDescriptiveName=pG;var hG=fG.prototype;function CG(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function pG(e){return e.constructor.displayName||e.constructor.name||"Record"}function mG(e){return tW(e._keys.map(function(t){return[t,e.get(t)]}))}function AG(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){wX(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}hG[Tq]=!0,hG[bq]=hG.remove,hG.deleteIn=hG.removeIn=eQ,hG.getIn=GQ,hG.hasIn=tG.hasIn,hG.merge=_W,hG.mergeWith=JW,hG.mergeIn=uX,hG.mergeDeep=cX,hG.mergeDeepWith=sX,hG.mergeDeepIn=dX,hG.setIn=hX,hG.update=CX,hG.updateIn=pX,hG.withMutations=AX,hG.asMutable=aW,hG.asImmutable=iW,hG[pq]=hG.entries,hG.toJSON=hG.toObject=tG.toObject,hG.inspect=hG.toSource=function(){return this.toString()};var gG,vG=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(gG)return gG;gG=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 KW(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return Oq(e,n,r)?this:new t(this._value,Iq(n,r)-zq(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return 0!==this.size&&KW(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return 0!==this.size&&KW(this._value,e)?this.size-1:-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 mq(function(){return i===r?{value:void 0,done:!0}:Aq(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?KW(this._value,e._value):DQ(this,e)},t}(Gq);function wG(e,t,n,r,i,a){if("string"!=typeof n&&!Rq(n)&&(Wq(n)||vq(n)||tX(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var o=t.call(a,r,Xq(n).map(function(r,a){return wG(e,t,r,a,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function yG(e,t){return rq(t)?t.toList():aq(t)?t.toMap():t.toSet()}var EG,bG=sq,MG=Z(Object.freeze({__proto__:null,Collection:sq,Iterable:bG,List:rQ,Map:EX,OrderedMap:vQ,OrderedSet:lG,PairSorting:{LeftThenRight:-1,RightThenLeft:1},Range:FQ,Record:fG,Repeat:vG,Seq:Xq,Set:jQ,Stack:LQ,fromJS:function(e,t){return wG([],t||yG,e,"",t&&t.length>2?[]:void 0,{"":e})},get:GX,getIn:QQ,has:QX,hasIn:KQ,hash:sW,is:KW,isAssociative:oq,isCollection:cq,isImmutable:Rq,isIndexed:rq,isKeyed:aq,isList:nQ,isMap:vX,isOrdered:jq,isOrderedMap:AQ,isOrderedSet:oG,isPlainObject:tX,isRecord:Fq,isSeq:Uq,isSet:BQ,isStack:MQ,isValueObject:GW,merge:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lX(e,t)},mergeDeep:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return oX(e,t)},mergeDeepWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return oX(t,n,e)},mergeWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return lX(t,n,e)},remove:KX,removeIn:$X,set:YX,setIn:fX,update:YW,updateIn:_X,version:"5.1.9"}));var LG=(EG||(EG=1,window,tq.exports=function(e,t,n){return a={},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:bi()}));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:QI(e.data,t,r)}:e})},GI=(e,t,n,r)=>e.map(e=>e.title===t?{...e,data:QI(e.data,n,r)}:e),KI=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,a,o]=n.split("-"),[l,c]=r.split(":");t=new Date(parseInt(o||"",10),parseInt(a||"",10)-1,parseInt(i||"",10),parseInt(l||"",10),parseInt(c||"",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}`)},YI=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)},_I=({data:r,level:i=0,columnCount:a=1,viewModeId:o,ViewComponent:l,handleClick:c,handleStepGroupExpand:s,isStepGroupExpanded:d})=>{const u=0===i?26:i+8,f=new Set(["group","pre","post","script"]),h=A((e,t)=>f.has(e?.toLowerCase())||f.has(t?.toLowerCase())?"6px 8px":"7px 8px",[]);return e(t,{children:r?.map(t=>{const r=o===t.stepId,i=d?.(t.stepId),p=h(t.type,t?.entityType),m=f.has(t?.entityType?.toLowerCase())||f.has(t?.type?.toLowerCase());return n(C,{children:[e("tr",r?{className:"pre-edit-row",id:"getInFocus",children:e("td",{colSpan:a,children:e("div",{style:{marginLeft:u},children:l&&e(l,{})})})}:{children:e("td",{colSpan:a,style:{padding:p},children:n("div",{style:{marginLeft:u,display:"flex",alignItems:"center"},children:[e(_,{title:t?.name,children:n(W,{as:"div",color:"var(--brand-color)",lineHeight:"18px",onClick:()=>c?.(t),children:[t.displayOrder,".",On(t.name,40)]})}),m&&e("div",{className:"pre-accordion-arrow "+(i?"expanded":""),children:e(q,{name:"arrow_right",className:"pre-arrow-svg",color:i?"var(--brand-color)":"var(--default-color)",width:12,height:12,onClick:()=>s?.(t)})})]})})}),i&&e(_I,{data:t.data,level:u,columnCount:a,viewModeId:o,handleClick:c,ViewComponent:l,handleStepGroupExpand:s,isStepGroupExpanded:d})]},t.stepId)})})};var JI=f(({row:r,columns:i,tableBodyRowClass:a,handleOnclick:o,tableDataTextColor:l,withCheckbox:c,onSelectClick:s,draggable:d,indexNumber:u=0,dataLength:f=0,viewModeId:h,ViewComponent:C,handleClick:p,handleStepGroupExpand:A,isStepGroupExpanded:g,scriptType:v})=>{const w=new Set(["group","pre","post","script"]),y=w.has(r?.entityType?.toLowerCase())||w.has(r?.type?.toLowerCase()),E=r?.isDisabled,b=r?._id||r?.stepId,M=!!v&&"cascaded"===r.cascaded,L=E||f<=1||M;let H=(u+1).toString();const{attributes:x,listeners:V,setNodeRef:k,transform:S,transition:Z}=Pc({id:b,disabled:L}),O=m(()=>({transform:mo.Transform.toString(S),transition:Z}),[S,Z]),z=g?.(r.stepId);return n(t,{children:[e("tr",{ref:k,style:O,className:N(a,{"disabled-row":E}),children:i.map((t,i)=>{const a=0===i;return e("td",{style:{paddingLeft:a&&d?"0px":"8px"},onClick:()=>o(t,r,i),className:N(t.className,{"clickable-cell":t.onClick}),children:n(W,{as:"div",color:l,className:"ff-data-checkbox-container",children:[a&&c&&e("span",{className:"ff-table-pre-post-checkbox",children:e(Vn,{onChange:e=>s(e,r),checked:r.checked,disabled:!!E})}),a&&d&&e("div",{className:E?"ff-table-drag":"ff-table-drag-icon",...V,...x,children:e(q,{name:"drag",className:L?"drag-icon-disabled":"drag-icon"})}),fu(r,t,u),a&&y&&e("div",{className:"pre-accordion-arrow "+(z?"expanded":""),children:e(q,{name:"arrow_right",color:z?"var(--brand-color)":"var(--default-color)",width:12,height:12,className:"pre-arrow-svg",onClick:()=>{A?.({...r,serialNumber:H})}})}),t.extraInfo&&t.extraInfo({row:r,indexNumber:u})]})},`${t.accessor}${i}`)})},b),z&&e(_I,{data:r.data,columnCount:i.length,viewModeId:h,ViewComponent:C,handleClick:p,handleStepGroupExpand:A,isStepGroupExpanded:g})]})});const $I=(e,t)=>{const{action:n,sourceIndex:r,nlpName:i,id:a}=t;if(!n)return e;const o=[...e];let l={stepId:"stepId-9745-9745",isNew:!0,disabled:!1,...i&&{name:i},...a&&{id:a}};switch(n){case"addBelow":void 0!==r&&o.splice(r+1,0,l);break;case"replaceNlp":void 0!==r&&o.splice(r,0,l);break;case"EditNlp":void 0!==r&&(o.splice(r,1),o.splice(r,0,l));break;case"addLast":o.push(l)}return o},eN=(e,t="nearest",n=5)=>{if(!e)return;const r=document.getElementById(e);r?r.scrollIntoView({behavior:"smooth",block:t}):n>0?setTimeout(()=>{eN(e,t,n-1)},300):console.warn(`Element with id - "${e}" not found after multiple retries.`)},tN=a(({data:t=[],columns:r=[],headerType:i,withCheckbox:a=!1,onSelect:c,allSelected:d,partialSelected:u=!1,withFixedHeader:f=!0,borderWithRadius:h=!1,headerCheckboxDisabled:C=!1,noDataContent:m,height:A="100%",className:g="",tableHeadClass:v="",tableBodyRowClass:w="",headerTextColor:b,tableDataTextColor:M,draggable:L=!1,onDragEnd:H,loadMore:x=()=>{},editMode:V="",editComponent:k,NlpComponent:S,AddNlp:Z,handleDragStart:O,handleViewComponent:z,handleAccordion:I,loading:D,scriptType:T=!1},F)=>{const R=o(null),[B,j]=s(null),[P,U]=s(null),q=e=>{U(t=>t===e?.stepId?null:e?.stepId)},X=e=>{q(e);const t=z?.(e,q);t?j(()=>t):q(null)},[Q,G]=s(new Map),K=e=>Q.has(e),_=e=>{K(e?.stepId)||(P&&q(null),I?.(e)),D||G(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 R.current=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";x(t)}})},{root:e,rootMargin:"8px",threshold:.1}),R.current.observe(n),R.current.observe(r),()=>{R.current?.disconnect()}},[t,x]);const J=(e,t,n)=>{let{onClick:r,accessor:i}=e;r&&Zp(r)&&r(i,t,n)},$=(e,t)=>{c&&c(e,t)};return l(()=>{eN("getInFocus")},[Z,P]),F&&E(F,()=>({resetStepGroupAccordion:()=>{G(new Map)}})),e(oc,{collisionDetection:Fo,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),a=t.findIndex(e=>e._id===r.id||e.stepId===r.id);-1!==i&&-1!==a&&H&&H(i,a)},modifiers:[Bp],children:e(Nc,{disabled:!L,items:t?.map(e=>e.stepId||e._id),strategy:Oc,children:n("section",{style:{height:A},id:"ff-table-scroll-container",className:N(g,{"pre-fixed-header-table":f,"pre-border-borderRadius":h}),"aria-label":"Pre and post table container",children:[n("table",{className:N("ff-table-pre-post"),cellSpacing:0,"aria-label":"Pre post table",children:[e("thead",{className:N({"pre-table-thead":f},v),"aria-label":"Table header",children:e("tr",{children:r.map((t,r)=>e("th",{className:N(`${i&&`${i}-bg`}`,`${b&&`${b}-color`}`),style:{width:t?.width},children:n(W,{as:"div",fontWeight:"semi-bold",className:"ff-label-checkbox-container",lineHeight:"18px",color:"var(--drawer-title-color)",children:[0===r&&a&&e("span",{className:"ff-table-pre-post-checkbox",children:e(Vn,{onChange:e=>{$(e,{allSelected:e.target.checked})},checked:void 0!==d&&d,partial:!!u,disabled:C})}),t.header]})},t.header))})}),n("tbody",{className:"pre-table-tbody","aria-label":"Table body",children:[e("tr",{id:"ff-table-first-node"}),$I(t,Z??{})?.map((i,o)=>{const l=V===i.stepId;return l||i.isNew?n("tr",{id:"getInFocus",className:"pre-edit-row",children:[l&&p(k)&&e("td",{colSpan:r.length,children:y(k,{rowData:i,rowIndex:o+1})}),i.isNew&&!l&&p(S)&&e("td",{colSpan:r.length,children:y(S,{rowIndex:o,rowData:i})})]},i.stepId||o):e(JI,{row:i,indexNumber:o,columns:r,tableBodyRowClass:w,handleOnclick:J,tableDataTextColor:M,withCheckbox:a,onSelectClick:$,draggable:L,dataLength:t?.length,viewModeId:P,ViewComponent:B,handleClick:X,handleStepGroupExpand:_,isStepGroupExpanded:K,scriptType:T})}),e("tr",{id:"ff-table-last-node"})]})]}),Y(t)&&Y(Z)&&e("section",{className:"ff-no-data-content",style:{height:`calc(${A} - 50px)`},"aria-label":"No data content",children:m})]})})})}),nN=f(({data:r=[],level:a=0,columnCount:c=1,viewModeId:s,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:C,isViewPrivilegeMode:p,columns:m=[],parentIndex:A,updateRowHeight:g})=>{const v=o([]),w=new Set(["group","pre","post","script"]),y=a+8,E=(e,t,n,r)=>{const i=e[t.accessor];if(t.cell){const a=e._id||e.id;return t.cell({value:i,row:e,column:t.accessor,index:n,tableType:r,...a&&{refId:a}})}return t.accessor||i&&"object"!=typeof i?i:"--"};return l(()=>{if(!g)return;const e=new ResizeObserver(()=>{let e=0;v.current.forEach(t=>{t&&(e+=t.getBoundingClientRect().height)}),e>0&&g(A??0,e)});return v.current.forEach(t=>{t&&e.observe(t)}),()=>e.disconnect()},[r,g,A,C]),e(t,{children:r?.map((t,r)=>{const a=A??0+r+1,o=w.has(t?.entityType?.toLowerCase())||w.has(t?.type?.toLowerCase());return n(i.Fragment,{children:[e("tr",s===t?.stepId?{ref:e=>v.current[r]=e,className:"steps-edit-row",id:"getInFocus",children:e("td",{colSpan:c,children:e("div",{style:{marginLeft:`${y}px`},children:d&&e(d,{})})})}:{ref:e=>v.current[r]=e,children:m.map((r,i)=>{return e("td",{style:{maxWidth:r.width,padding:(a=t?.type,l=t?.entityType,w.has(a?.toLowerCase())||w.has(l?.toLowerCase())?"6px 8px":"7px 8px")},children:n(W,{as:"div",className:"ff-data-checkbox-container",children:[n("div",{className:"ff-data-checkbox-container-content",style:{marginLeft:0===i?`${y}px`:0},onClick:()=>{0===i&&!t?.displayName?.includes("End")&&!t?.isDisabled&&u?.({...t,tableType:f})},children:[!p&&0===i&&e("div",{style:{padding:"4px 18px"}}),E({...t,marginLeft:y},r)]}),0===i&&o&&e("div",{className:"ff-accordion-arrow "+(C?.(t.stepId)?"expanded":""),children:e(q,{name:"arrow_right",color:C?.(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 a,l})}),C?.(t.stepId)&&e(nN,{data:t.data,level:y,columnCount:c,viewModeId:s,ViewComponent:d,handleClick:u,tableType:f,handleStepGroupExpand:h,isStepGroupExpanded:C,isViewPrivilegeMode:p,columns:m,parentIndex:a,updateRowHeight:g})]},t.stepId)})})});nN.displayName="StepGroupAccordions";const rN=f(({row:r,columns:i,tableBodyRowClass:a,handleOnclick:c,tableDataTextColor:d,withCheckbox:u,onSelectClick:f,draggable:h,indexNumber:C=0,tableType:p="",viewModeId:g,ViewComponent:v,handleClick:w,selectedRows:y,handleStepGroupExpand:E,isStepGroupExpanded:b,dataLength:M,stepPartialSelect:L,isViewPrivilegeMode:H,isClientSide:x,measureIndex:V=C,renderExpandedChildren:k=!0,updateRowHeight:S,rowId:Z,isAITriage:O,fetchInsights:z,renderInsightsContent:I})=>{const[D,T]=s(null),[F,R]=s(!1),B=o(!0);l(()=>(B.current=!0,()=>{B.current=!1}),[]);const j=A(async()=>{if(O&&["FAIL","Failed"].includes(r.status)&&b?.(r?.stepId)&&z&&!D&&!F){R(!0);try{const e=await z(r);B.current&&T(e)}catch(e){console.error("Failed to fetch insights:",e)}finally{B.current&&R(!1)}}},[O,r,b,z,D,F]);l(()=>{j()},[j]);const P=D||r?.insights||r?.insight,U=F||r?.insightLoading,X=new Set(["group","pre","post","script"]),Q=X.has(r?.entityType?.toLowerCase())||X.has(r?.type?.toLowerCase()),G=o(null),K=m(()=>r?.isDisabled||(M??0)<=1||r.isSpecialNlp,[r,M]),Y=(C+1).toString(),{attributes:_,listeners:J,setNodeRef:$,transform:ee,transition:te}=Pc({id:r?._id||r?.stepId,disabled:K}),ne=m(()=>({transform:mo?.Transform?.toString(ee),transition:te}),[ee,te]),re=r?._id||r?.stepId;l(()=>{if(G.current&&S){const e=G.current.getBoundingClientRect().height;S(V,e)}},[r,S,V,b?.(r?.stepId)]);const ie=e=>H||x?Q&&0===e?"4px 8px":"7px 8px":0!==e?"Steps"===p?"4px 8px":"7px 8px":"Steps"===p&&h?"4px 8px 4px 0px":"4px 8px 4px 24px",ae=()=>e("div",{className:"ff-accordion-arrow "+(b?.(r?.stepId)?"expanded":""),children:e(q,{name:"arrow_right",className:"steps-arrow-svg",color:b?.(r?.stepId)?"var(--brand-color)":"var(--default-color)",width:12,height:12,onClick:()=>E?.({...r,tableType:p,serialNumber:Y})})});return n(t,{children:[e("tr",{"data-rowid":Z,ref:e=>{G.current=e,$(e)},style:ne,className:N(a,"sortable-item",{"disabled-inner-row":K}),id:re,children:i?.map((i,a)=>e(t,{children:e("td",{style:{padding:ie(a),maxWidth:i.width},onClick:()=>c(i,r,C),children:n(W,{as:"div",color:d,className:"ff-data-checkbox-container",children:[0===a&&!x&&h&&e("div",{className:K?"ff-table-drag":"ff-table-drag-icon",...J,..._,children:e(q,{name:"drag",className:K?"drag-icon-disabled":"drag-icon"})}),0===a&&!x&&u&&e("span",{className:p&&y[p]?.has(r.stepId)||L?.has(r.stepId)?"ff-step-table-select-checkbox":"ff-table-checkbox-step",children:e(Vn,{onChange:e=>f(p,r,e.target.checked),checked:!!y[p]?.has(r.stepId),partial:L?.has(r.stepId),disabled:r?.isSpecialNlp&&r?.name?.includes("End")})}),n("div",{className:"ff-margin-container",style:{marginLeft:0===a?r.marginLeft:0},children:[O&&e(q,{name:"PASS"===r.status?"passed_step_icon":"FAIL"===r.status?"failed_step_icon":"",className:"ff-margin-container-icon"}),fu(r,i,C,p),Q&&0===a&&!x&&!(O&&("FAIL"===r.status||"Failed"===r.status))&&ae(),i.extraInfo?.({row:r,indexNumber:C,tableType:p}),O&&("FAIL"===r.status||"Failed"===r.status)&&e(zi,{label:r?.issueType,variant:"custom"})]}),O&&("FAIL"===r.status||"Failed"===r.status)&&0===a&&ae()]})},`${i.accessor}-${bi()}`)}))},re),O&&("FAIL"===r.status||"Failed"===r.status)&&b?.(r?.stepId)&&e("tr",{className:"steps-insight-row",children:e("td",{colSpan:i.length,style:{padding:"8px 16px"},children:e("div",{style:{marginLeft:`${(r.marginLeft??0)+24}px`},children:I?.({insightsData:P,isLoading:U,row:r})})})}),k&&b?.(r?.stepId)&&(r?.data||r?.stepResults)&&e(nN,{data:r.data||r?.stepResults,columnCount:i.length,viewModeId:g,ViewComponent:v,handleClick:w,tableType:p,handleStepGroupExpand:E,isStepGroupExpanded:b,level:r?.marginLeft,isViewPrivilegeMode:H,columns:i,parentIndex:C,updateRowHeight:S})]})});rN.displayName="StepTableMainRow";const iN=new Set(["group","pre","post","script"]),aN=(e,t,n)=>`${t}-${e?._id||e?.stepId||e?.id||n}`,oN=e=>iN.has(e?.entityType?.toLowerCase())||iN.has(e?.type?.toLowerCase()),lN=e=>oN(e)?"6px 8px":"7px 8px",cN=({row:t,indent:r=0,columns:i,tableType:a,viewModeId:c,ViewComponent:s,handleClick:d,handleStepGroupExpand:u,isStepGroupExpanded:f,isViewPrivilegeMode:h,measureIndex:C,updateRowHeight:p,isAITriage:m})=>{const A=o(null),g=oN(t);return l(()=>{const e=A.current;if(!e||!p)return;const t=()=>{p(C,e.getBoundingClientRect().height)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[C,t,p,c]),e("tr",c===t?.stepId?{ref:A,className:"steps-edit-row",id:"getInFocus","data-rowid":t?.stepId,children:e("td",{colSpan:i.length,children:e("div",{style:{marginLeft:`${r}px`},children:s&&e(s,{})})})}:{ref:A,"data-rowid":t?.stepId,children:i.map((i,o)=>e("td",{style:{maxWidth:i.width,padding:lN(t)},children:n(W,{as:"div",className:N("ff-data-checkbox-container",{"ff-ai-traige":m}),children:[n("div",{className:"ff-data-checkbox-container-content",style:{marginLeft:0===o?`${r}px`:0},onClick:()=>{0===o&&!t?.displayName?.includes("End")&&!t?.isDisabled&&d?.({...t,tableType:a})},children:[!h&&0===o&&e("div",{className:"ff-nested-row-spacer"}),XL({...t,marginLeft:r},i)]}),0===o&&g&&e("div",{className:"ff-accordion-arrow "+(f?.(t.stepId)?"expanded":""),children:e(q,{name:"arrow_right",color:f?.(t.stepId)?"var(--brand-color)":"var(--default-color)",className:"steps-arrow-svg",width:12,height:12,onClick:()=>u?.({...t,tableType:a})})})]})},`${t?.stepId||t?._id}-${o}`))})},sN=({row:t,columns:r,isEdit:i,editComponent:a,NlpComponent:c,displayIndex:s,isFocusRow:d,measureIndex:u,updateRowHeight:f})=>{const h=o(null);return l(()=>{const e=h.current;if(!e||!f)return;const t=()=>{f(u,e.getBoundingClientRect().height)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[u,t,f,i]),n("tr",{ref:h,className:"steps-edit-row",id:d?"getInFocus":void 0,"data-rowid":t.stepId||"new-row",children:[i&&p(a)&&e("td",{colSpan:r.length,children:y(a,{rowData:t,rowIndex:s+1})}),t.isNew&&!i&&p(c)&&e("td",{colSpan:r.length,children:y(c,{rowIndex:s,rowData:t})})]})},dN=({data:t=[],columns:r=[],headerType:i,withCheckbox:a=!1,onSelect:c,withFixedHeader:d=!0,borderWithRadius:u=!1,noDataContent:f,height:h="100%",className:C="",tableBodyRowClass:p="",headerTextColor:g,tableDataTextColor:v,draggable:w=!1,onDragEnd:y,loadMore:E=()=>{},editMode:b="",editComponent:M,NlpComponent:L,AddNlp:H,handleDragStart:x,tableType:V,viewModeId:k,ViewComponent:S,handleClick:Z,selectedRows:O,handleStepGroupExpand:z,isStepGroupExpanded:I,stepPartialSelect:D,isViewPrivilegeMode:T,isClientSide:F,highlightKey:R,onHighlightComplete:B,isAITriage:j,fetchInsights:P,renderInsightsContent:U})=>{const q=o(null),W=o(null),[X,Q]=s(0),[G,K]=s(0),[_,J]=s([]),[$,ee]=s(null),te=34,ne=o(0),re=o(new Map),ie=o([]),ae=o(null),[oe,le]=s(!1),ce="auto"!==h,se=!!(b||k||H&&Object.keys(H).length>0),de=ce&&!se,ue=m(()=>$I(t,H??{}),[t,H]),fe=m(()=>{if(!de)return ue.map((e,t)=>({key:aN(e,"main",t),kind:"main",row:e,dataIndex:t}));const e=[],t=(n=[],r=0)=>{const i=r+8;n.forEach(n=>{const r=e.length;e.push({key:aN(n,"nested",r),kind:"nested",row:n,dataIndex:r,indent:i}),I?.(n?.stepId)&&t(n?.data||n?.stepResults||[],i)})};return ue.forEach((n,r)=>{e.push({key:aN(n,"main",r),kind:"main",row:n,dataIndex:r});!(b===n?.stepId||n?.isNew)&&I?.(n?.stepId)&&t(n?.data||n?.stepResults||[],n?.marginLeft)}),e},[b,ue,de,I]);l(()=>{J(e=>{const t=fe.map(e=>re.current.get(e.key)??te),n=e.length!==t.length||e.some((e,n)=>e!==t[n]);return n?t:e})},[fe]),l(()=>{ie.current=_},[_]);const he=fe.length,Ce=m(()=>{if(de)return _.length!==he?he*te:_.reduce((e,t)=>e+t,0)},[de,_,he]);l(()=>{if(!de||!W.current||void 0===Ce)return;const e=Math.max(0,Ce-G);X>e&&(W.current.scrollTop=e,Q(e))},[G,de,X,Ce]),l(()=>{W.current&&K(W.current.clientHeight)},[t,H]),l(()=>{const e=W.current;if(!e)return;const t=()=>{K(e.clientHeight)};if(t(),"undefined"==typeof ResizeObserver)return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)};const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),l(()=>{if(Y(R))if(b)ae.current=null,le(!1),ee(b);else if(H&&Object.keys(H).length>0){ae.current=null,le(!1);const e=$I(t,H).find(e=>e.isNew);e&&ee(e.stepId||"new-row")}else ae.current=null,le(!1),ee(null);else ae.current!==R&&(ae.current=R,le(!1)),oe||ee(R)},[b,H,t,R,oe]),l(()=>{if($&&W.current&&(Y(R)||!oe)){const e=setTimeout(()=>{const e=W.current?.querySelector(`[data-rowid="${$}"]`);e&&(e.scrollIntoView({behavior:"smooth",block:"nearest"}),Y(R)||(le(!0),setTimeout(()=>{B?.()},300)))},100);return()=>clearTimeout(e)}},[$,_,R,B,oe]);const pe=A((e,t)=>{const n=Math.ceil(t),r=ie.current[e]??te;if(r===n)return;const i=fe[e]?.key;i&&re.current.set(i,n);const a=n-r;if(de&&e<ne.current&&W.current){const e=Math.max(0,W.current.scrollTop+a);W.current.scrollTop=e,Q(e)}J(t=>{const r=[...t];return e<r.length&&r[e]!==n?(r[e]=n,r):t})},[de,fe]),me=A(e=>{const t=e.currentTarget.scrollTop;Q(t),Ae(t)},[he]),Ae=A(e=>{if(!W.current)return;(e+W.current.clientHeight)/W.current.scrollHeight>.8&&E("below"),e<200&&E("above")},[E]),{startIndex:ge,firstVisibleIndex:ve,paddingTop:we,paddingBottom:ye,visibleRows:Ee}=m(()=>{if(!de)return{startIndex:0,firstVisibleIndex:0,endIndex:he-1,paddingTop:0,paddingBottom:0,visibleRows:fe};let e=0,t=0,n=he-1,r=0,i=0;if(_.length===he&&G>0){let a=0;for(let e=0;e<he;e++){const n=_[e]??te;if(a+n>X){t=e;break}a+=n,e===he-1&&(t=he-1)}a=0;for(let e=0;e<he;e++)if(a+=_[e]??0,a>=X+G&&n===he-1){n=e;break}if(e=Math.max(0,t-5),n=Math.min(he-1,n+5),$){const t=fe.findIndex(({row:e})=>e?.stepId===$||e?.isNew&&"new-row"===$);t>=0&&(t<e?e=t:t>n&&(n=t))}r=_.slice(0,e).reduce((e,t)=>e+t,0),i=_.slice(n+1).reduce((e,t)=>e+t,0)}else{if(t=Math.max(0,Math.floor(X/te)),e=Math.max(0,t-5),n=Math.min(he-1,t+Math.ceil(G/te)+5),$){const t=fe.findIndex(({row:e})=>e?.stepId===$||e?.isNew&&"new-row"===$);t>=0&&(t<e?e=t:t>n&&(n=t))}r=e*te,i=(he-n-1)*te}return{startIndex:e,firstVisibleIndex:t,endIndex:n,paddingTop:r,paddingBottom:i,visibleRows:fe.slice(e,n+1)}},[de,he,fe,_,G,X,5,$,te]);l(()=>{ne.current=ve},[ve]),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";E(t)}})},{root:e,rootMargin:"8px",threshold:.1}),q.current.observe(n),q.current.observe(r),()=>{q.current?.disconnect()}},[t?.length,E]);const be=(e,t,n)=>{const{onClick:r,accessor:i}=e;r&&Zp(r)&&r(i,t,n)},Me=(e,t,n)=>{c&&c(e,t,n)};return e(oc,{collisionDetection:Fo,onDragStart:x,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),a=t.findIndex(e=>e._id===r.id||e.stepId===r.id);-1!==i&&-1!==a&&y&&y(i,a)},modifiers:[Bp],children:e(Nc,{disabled:!w,items:t?.map(e=>e._id||e.stepId),strategy:Oc,children:e("div",{ref:W,style:{height:h,position:"relative",overflowY:ce?"auto":void 0},id:"ff-table-scroll-container",className:N(C,{"ff-fixed-header-steps-table":d,"steps-border-borderRadius":u,"ff-ai-traige":j}),onScroll:me,children:n("div",{className:"ff-scroll-container-inner",style:{height:Ce},children:[n("table",{className:N("ff-table-steps"),cellSpacing:0,children:[e("thead",{className:"steps-inner-thead",children:e("tr",{children:r?.map(t=>e("th",{className:N(`${i&&`${i}-bg`}`,`${g&&`${g}-color`}`),style:{width:t?.width}},`${t.header}-${bi()}`))})}),n("tbody",{className:"ff-steps-tbody",children:[e("tr",{id:"ff-table-first-node",className:"ff-hidden-sentinel"}),we>0&&e("tr",{"aria-hidden":"true",children:e("td",{className:"ff-padding-row",style:{height:we},colSpan:r.length})}),Ee.map((n,i)=>{const o=ge+i,{row:l}=n;if("nested"===n.kind)return e(cN,{row:l,indent:n.indent,columns:r,tableType:V,viewModeId:k,ViewComponent:S,handleClick:Z,handleStepGroupExpand:z,isStepGroupExpanded:I,isViewPrivilegeMode:T,measureIndex:o,updateRowHeight:pe,isAITriage:j},n.key);const c=n.dataIndex,s=b===l.stepId,d=s||l.isNew,u=s&&l.stepId===$||l.isNew&&"new-row"===$;return d?e(sN,{row:l,columns:r,isEdit:s,editComponent:M,NlpComponent:L,displayIndex:c,isFocusRow:u,measureIndex:o,updateRowHeight:pe},n.key):e(rN,{rowId:l.stepId,row:l,indexNumber:c,columns:r,tableBodyRowClass:p,handleOnclick:be,tableDataTextColor:v,withCheckbox:a,onSelectClick:Me,draggable:w,tableType:V,viewModeId:k,ViewComponent:S,handleClick:Z,selectedRows:O,handleStepGroupExpand:z,isStepGroupExpanded:I,dataLength:t?.length,stepPartialSelect:D,isViewPrivilegeMode:T,isClientSide:F,measureIndex:o,renderExpandedChildren:!de,updateRowHeight:pe,isAITriage:j,fetchInsights:P,renderInsightsContent:U},n.key)}),ye>0&&e("tr",{"aria-hidden":"true",children:e("td",{className:"ff-padding-row",style:{height:ye},colSpan:r.length})}),e("tr",{id:"ff-table-last-node",className:"ff-hidden-sentinel"})]})]}),Y(t)&&e("div",{className:"steps-no-data-content",style:{height:ce?`calc(${h} - 50px)`:"auto"},children:f})]})})})})},uN=e=>["ElseIfCondition","ElseCondition"].includes(e?.nlpName);let fN=null,hN=null;const CN=e=>{if(hN===e&&fN)return fN;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,a=i.findIndex(t=>t.stepId===e?.stepId),o=i.findIndex(e=>e.stepId===n?.stepId);return r?i.slice(a+1,o).map(e=>e.stepId):i.slice(a,o+1).map(e=>e.stepId)};return t?.forEach(e=>{const i=(e=>e.specialNlpId??e.conditionSearchKey??null)(e);if(!i)return;const a=n.get(i)||{start:null,end:null,childIds:[],allIds:[]};if(e?.isSpecialNlp&&e.name?.startsWith("Start")){a.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&&(a.end=n,a.childIds=r(e,n,!0),a.allIds=r(e,n,!1))}n.set(i,a)}),fN=n,hN=e,n},pN=e=>e.includes("/")?e.split("/").slice(0,-1).join("/"):e;const mN=e=>{if(!e)return!1;for(const t of Object.values(e))if(t&&t.size>0)return!0;return!1},AN=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)"}},gN=e=>{switch(e){case"PASS":return"Passed";case"FAIL":return"Failed";case"SKIP":return"Skipped";case"WARNING":return"Warning";default:return e}},vN=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"}},wN=({metaData:t,width:r=0,displayIcon:i=!1})=>{const a=t?.total||0,o=[{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=o.filter(e=>e.count>0),c=l.map(({count:e,name:t})=>`${e}/${a} ${t}`).join(" "),s=r?On(c,r,"pixel"):c,d=o.map(e=>({...e,count:e.count??0})),u=d.reduce((e,{count:t})=>e+t,0),f=d.some(({count:e})=>e>0),h=i?d:o,C=[["Passed","Failed"],["Warning","Skipped"]].map(e=>h.filter(({name:t})=>e.includes(t))),p=(e,t)=>"Skipped"===e?"var(--status-skipped-bg-color)":t,A=m(()=>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:p(t,i)}}),n(W,{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(W,{as:"span",fontWeight:"medium",fontSize:10,className:"ff-status-tooltip-total",children:["Total Steps - ",u]})]}),[C,u]);if(i)return f?e(_,{title:A,children:e("span",{className:"ff-status-icon-wrapper",children:e(q,{name:"status_icon"})})}):null;const g=[];let v=0;for(const{count:e,name:t,color:n}of l){const r=`${e}/${a} ${t}`;if(!(v+r.length<=s.length)){const e=s.slice(v).trim();e&&g.push({text:e,color:n});break}g.push({text:r,color:n}),v+=r.length+1}return e("div",{className:"ff-stepResultStats",children:e(_,{title:c,children:e(W,{as:"div",className:"status-inline-text",fontWeight:"semi-bold",children:g.map(({text:t,color:n},r)=>e(W,{as:"span",fontWeight:"semi-bold",style:{color:n,whiteSpace:"nowrap"},children:t+" "},r))})})})},yN=({isHeaderRequired:r,isViewPrivilegeMode:i,onAccordionClick:a,isBulkEnable:o,showActionCell:l,handleMainCheckbox:c,isAllSelected:s,isPartialSelected:d,tableMeta:u=[],title:f,totalRows:h,expanded:C,actionCell:p,row:m,metaData:A,isClientSide:g,isMaximize:v})=>{const w=u?.map(e=>e.width),y=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&&!g&&{backgroundColor:"var(--hover-color)"}},children:[e("div",{style:{width:`${y(0)}px`},children:n("div",{className:"accordion-header",style:{paddingLeft:i||g?"8px":"24px"},children:[!i&&!g&&e(Vn,{onChange:e=>c(f,e.target.checked),checked:s(f,h),partial:d(f,h),disabled:0===h}),e("div",{className:"header-title",children:e(W,{as:"div",fontWeight:"semi-bold",color:g?"var(--brand-color)":"var(--nlp-option-color)",cursor:"default",lineHeight:"18px",children:f})}),e("div",g?{style:{padding:"12px"}}:{className:"accordion-arrow "+(C?"expanded":""),onClick:()=>a(f),children:e(q,{name:"arrow_right",color:C?"var(--brand-color)":"var(--default-color)",width:16,height:16,className:"steps-arrow-svg"})}),n("div",{className:"ff_action_container",children:[A&&e(wN,{metaData:A,width:(()=>{const e=m?.marginLeft??0;if((s?.(f,h)||d?.(f,h))&&"Steps"===f)return 200-e;return(v?350:{"Depends on Scripts":240,"Post Conditions":230,"Pre Conditions":260,Steps:310}[f]??250)-e})()}),l&&!o&&e(t,{children:p(m)})]})]})}),A?.message&&e("div",{className:"step-result",style:{width:`${y(1)}px`},children:e(_,{title:A?.message,placement:"bottom-start",children:e(W,{lineHeight:"18px",as:"div",className:"step-result-text",color:AN(A?.status),children:A?.message})})}),A?.status&&e("div",{className:"step-result",style:{width:`${y(2)}px`},children:e(Ba,{label:gN(A?.status),status:vN(A?.status),children:A?.status})})]})},EN=i.memo(i.forwardRef(({tableMeta:t=[],tableData:r=[],noDataContent:i,height:a="100%",withFixedHeader:o=!1,headerType:c,handleDragStart:d,onDragEnd:u,editMode:f,editComponent:h,NlpComponent:C,AddNlp:p,handleAccordion:g,handleViewComponent:v,onSelectClick:w,loading:y=!1,isViewPrivilegeMode:b=!1,defaultExpanded:M="Steps",isHeaderRequired:L=!0,isClientSide:H=!1,highlightKey:x,onHighlightComplete:V,isDraggable:k=!0,isMaximize:S=!1,isAITriage:Z=!1,fetchInsights:O,renderInsightsContent:z},I)=>{const[D,T]=s(null),[F,R]=s(null),[B,j]=s({}),[P,U]=s(new Map),[q,X]=s(!1),Q=A((e,t)=>{const n=r.find(t=>t.title===e);n&&n.data&&0!==n.data?.length&&j(n=>({...n,[e]:"open"===t||!n[e]}))},[r]),G=m(()=>e=>B[e]??!1,[B]),K=A(e=>{R(t=>t===e?.stepId?null:e?.stepId)},[]),_=A(e=>{K(e);const t=v?.(e,K);t?T(()=>t):K(null)},[v,K]),[J,$]=s(Object.fromEntries(r.map(e=>[e.title,new Set]))),[ee,te]=s(new Set);l(()=>{if($(e=>function(e,t){const n={};return e.forEach(e=>{const r=e.data.map(e=>e.stepId),i=t[e.title]||new Set,a=new Set([...i].filter(e=>r.includes(e)));n[e.title]=a}),n}(r,e)),te(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)),j(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 a=e.title,o=a in t,l="All"===n?Object.values(r).includes(a):a===r[n];i[a]=o?t[a]??!1:l}),i}(r,e,M)),J&&!mN(J))return;const{updateSelectRow:e,updateStepPartialSelect:t}=((e,t,n)=>{const r=CN(e),i=new Set(t.Steps),a=new Set(n);return r?.forEach(e=>{const t=e?.childIds;if(0===t?.length)return;const n=t.every(e=>i.has(e)),o=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)),uN(e?.start)&&(o||n)){const t=e?.start?.conditionSearchKey,n=pN(t),o=r?.get(n)?.allIds;if(0===o?.length)return;o?.forEach(e=>{i.add(e),a.delete(e)})}o&&!n?(a.add(e.start.stepId),a.add(e.end.stepId)):(a.delete(e.start.stepId),a.delete(e.end.stepId))}),{updateSelectRow:{...t,Steps:i},updateStepPartialSelect:a}})(r,J,ee);t&&te(t),e&&$(e)},[r]),l(()=>{if(mN(J)){const e={...J,partialSelected:ee};w?.(e)}else w?.(J)},[J]);const ne=A((e,t)=>{const n=r.find(t=>t.title===e)?.data.map(e=>e.stepId);n&&($(r=>({...r,[e]:t?new Set(n):new Set})),t||te(new Set))},[r]),re=A((e,t,n,r)=>{const{updateSelectRow:i,updateStepPartialSelect:a}=((e,t,n,r,i,a="Steps")=>{const o=new Set(r[a]);if("Steps"===a&&(t?.isSpecialNlp||t?.conditionId||t?.parentSpecialNlpId)){const{updateStepPartialSelect:l}=function(r){const a=new Set(i),l=CN(e),c=e=>{const t=e?.conditionSearchKey,n=pN(t),r=l.get(n);r&&"IfCondition"===r.start.nlpName&&0===r?.start?.marginLeft&&s(r.start),!r?.start?.conditionSearchKey?.includes("/")||"IfCondition"===r?.start.nlpName&&0===r?.start?.marginLeft||c(r.start)},s=e=>{if(e?.isSpecialNlp){const t=e?.specialNlpId||e?.conditionSearchKey,r=t&&l.get(t);r&&Array.isArray(r.allIds)&&r.allIds.forEach(e=>{a.delete(e),n?o.add(e):o.delete(e)})}else n?o.add(e?.stepId):o.delete(e?.stepId)},d=e=>{let s=!0;const d=e=>{const t=e?.childIds;if(uN(e?.start)){const t=(e=>e.includes("/")&&e.split("/")[0]||e)(e?.start?.conditionSearchKey),a=l.get(t),o=a?.start?.stepId,s=i.has(o);n&&!s&&c(r)}if(0===t?.length)return;const u=t.every(e=>o.has(e)),f=t.some(e=>o.has(e));if(u?(o.add(e.start?.stepId),o.add(e.end?.stepId)):(o.delete(e.start?.stepId),o.delete(e.end?.stepId)),f&&!u?(a.add(e.start?.stepId),a.add(e.end?.stepId)):(a.delete(e.start?.stepId),a.delete(e.end?.stepId)),e?.start?.parentSpecialNlpId){const t=l.get(e.start.parentSpecialNlpId);t&&d(t)}if(e?.start?.conditionSearchKey){const t=pN(e?.start?.conditionSearchKey),n=e?.start?.conditionSearchKey,r=e?.start?.conditionId;if(n===r&&s){s=!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=>{o.has(e)&&i++});const c=i>0&&i<r.length,u=0===i,f=e?.conditionSearchKey;if(!f.includes("/")&&f&&!n&&!c&&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=>{o.delete(e),a.delete(e)}),o.delete(e.start.stepId),o.delete(e.end.stepId),a.delete(e.start.stepId),a.delete(e.end.stepId))})}const h=!t?.isSpecialNlp||uN(e)||t?.specialNlpId?e.conditionSearchKey:pN(e.conditionSearchKey);s=!0;const C=l.get(h);C&&d(C)}}};return s(r),d(r),{updateStepPartialSelect:a}}(t);return{updateSelectRow:{...r,[a]:o},updateStepPartialSelect:l}}return n?o.add(t.stepId):o.delete(t.stepId),{updateSelectRow:{...r,[a]:o}}})(e,t,n,J,ee,r);a&&te(a),i&&$(i)},[J,ee]),ie=A((e,t,n)=>{re(r,t,n,e)},[r,re]),ae=A((e,t)=>{const n=t>0&&J[e]?.size===t;return e.includes("Script")&&X(n),n},[J]),oe=A((e,t)=>{const n=J[e]?.size||0;return n>0&&n<t},[J]),le=A(e=>P.has(e),[P]),ce=A(e=>"Steps"!==e||b?15:12,[b]),se=A(e=>"auto"!==a&&(e?.data?.length??0)>ce(e?.title),[ce,a]),de=m(()=>{const e=r.filter(e=>G(e.title)),t=e.filter(se),n=e.some(e=>!se(e));return 1===t?.length&&!n},[G,se,r]),ue=A(e=>{const t=e?.data?.length??0;if(0===t)return"360px";if(t<=ce(e?.title))return"auto";if(!de)return a;return`calc(${a} - ${(L&&!H?32:0)+32*r?.length}px)`},[ce,a,H,L,de,r?.length]),fe=A(e=>{le(e?.stepId)||(F&&K(null),g?.(e)),y||U(t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n})},[le,F,K,g,y]),he=A(n=>"Steps"!==n.title||b?e(dN,{onHighlightComplete:V,highlightKey:x,draggable:!1,editMode:f,withCheckbox:!b,editComponent:h,columns:t,data:n.data,headerType:c,noDataContent:i,tableType:n.title,onSelect:ie,selectedRows:J,viewModeId:F,ViewComponent:D,handleClick:_,handleStepGroupExpand:fe,isStepGroupExpanded:le,isViewPrivilegeMode:b,height:ue(n),isClientSide:H,isAITriage:Z,fetchInsights:O,renderInsightsContent:z}):e(dN,{onHighlightComplete:V,highlightKey:x,draggable:k,columns:t,onDragEnd:u,data:n.data,headerType:c,withCheckbox:!0,editMode:f,editComponent:h,noDataContent:i,NlpComponent:C,AddNlp:p,tableType:n.title,handleDragStart:()=>{P.clear(),d?.()},onSelect:ie,selectedRows:J,viewModeId:F,ViewComponent:D,handleClick:_,handleStepGroupExpand:fe,isStepGroupExpanded:le,stepPartialSelect:ee,height:ue(n),isClientSide:H,isAITriage:Z,fetchInsights:O,renderInsightsContent:z}),[b,V,x,k,t,u,c,f,h,i,C,p,P,d,ie,J,F,D,_,fe,le,ee,r?.length,ue,H,Z,O,z]);return E(I,()=>({resetSelection:()=>{$(Object.fromEntries(r?.map(e=>[e.title,new Set]))),te(new Set)},handleUpdateCheckbox:(e,t)=>{const n=e?.parentSpecialNlpId,i=e?.conditionSearchKey;(n||i)&&re(t||r,e,!1)},deleteRow:e=>{$(t=>Object.fromEntries(Object.entries(t)?.map(([t,n])=>[t,new Set([...n].filter(t=>t!==e?.stepId))])))},resetStepGroupAccordion:()=>{U(new Map)}}),[r,re]),l(()=>{Y(p)||(T(()=>null),R(null),"addLast"===p?.action&&Q("Steps","open"))},[p]),n("section",{style:{height:a},className:N("ff-accordion-table-container-steps",{"ff-accordion-fixed-header-table":o}),"aria-label":"Step landing table",children:[L&&!H&&e("table",{cellSpacing:0,className:N("ff-accordion-table",{"ff-accordion-fixed-header":o}),"aria-label":"Step table header",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:N("ff-table-header",c&&`ff-accordion-table--${c}-bg`),"aria-label":t.header,children:e(W,{as:"div",fontWeight:"semi-bold",lineHeight:"18px",color:"var(--drawer-title-color)",children:t.header})},`${t.header}-${n}`))})})}),e("section",{className:"ff-accordion-table-body",style:{overflowY:de?"hidden":"auto"},"aria-label":"Step table body",children:r?.map(r=>{const{title:i,data:a,actionCell:o,metaData:l}=r,c=a?.length,s=G(i),d=J[i]?.size??0;return n("article",{className:"column-table-accordion","aria-label":`${i} section`,children:[e(yN,{isViewPrivilegeMode:b,onAccordionClick:Q,showActionCell:d>0&&c>0&&o,handleMainCheckbox:ne,isAllSelected:ae,isPartialSelected:oe,title:i,totalRows:c,expanded:s,metaData:l,actionCell:o,row:r,tableMeta:t,isHeaderRequired:L,isBulkEnable:q,isClientSide:H,isMaximize:S}),s&&he(r)]},i)})})]})}));EN.displayName="StepLandingTable";var bN,MN,LN,HN,xN,VN,kN,SN,ZN,ON,zN,IN,NN,DN,TN,FN,RN,BN,jN,PN,UN,qN,WN,XN,QN,GN,KN,YN,_N,JN,$N,eD,tD,nD,rD,iD,aD,oD,lD,cD,sD,dD,uD,fD,hD,CD,pD,mD,AD,gD,vD,wD,yD,ED,bD,MD,LD,HD,xD,VD,kD,SD,ZD,OD,zD,ID,ND,DD,TD,FD,RD,BD,jD,PD,UD,qD,WD,XD,QD,GD,KD,YD,_D,JD,$D,eT,tT,nT,rT,iT,aT,oT={exports:{}};function lT(){return bN||(bN=1,oT.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 o(e)?e:Q(e)}function r(e){return l(e)?e:G(e)}function i(e){return c(e)?e:K(e)}function a(e){return o(e)&&!s(e)?e:Y(e)}function o(e){return!(!e||!e[u])}function l(e){return!(!e||!e[f])}function c(e){return!(!e||!e[h])}function s(e){return l(e)||c(e)}function d(e){return!(!e||!e[C])}t(r,n),t(i,n),t(a,n),n.isIterable=o,n.isKeyed=l,n.isIndexed=c,n.isAssociative=s,n.isOrdered=d,n.Keyed=r,n.Indexed=i,n.Set=a;var u="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",p="delete",m=5,A=1<<m,g=A-1,v={},w={value:!1},y={value:!1};function E(e){return e.value=!1,e}function b(e){e&&(e.value=!0)}function M(){}function L(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 H(e){return void 0===e.size&&(e.size=e.__iterate(V)),e.size}function x(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?H(e)+t:t}function V(){return!0}function k(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function S(e,t){return O(e,t,0)}function Z(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,I=1,N=2,D="function"==typeof Symbol&&Symbol.iterator,T="@@iterator",F=D||T;function R(e){this.next=e}function B(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 j(){return{value:void 0,done:!0}}function P(e){return!!W(e)}function U(e){return e&&"function"==typeof e.next}function q(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(D&&e[D]||e[T]);if("function"==typeof t)return t}function X(e){return e&&"number"==typeof e.length}function Q(e){return null==e?oe():o(e)?e.toSeq():se(e)}function G(e){return null==e?oe().toKeyedSeq():o(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function K(e){return null==e?oe():o(e)?l(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?oe():o(e)?l(e)?e.entrySeq():e:ce(e)).toSetSeq()}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=z,R.VALUES=I,R.ENTRIES=N,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[F]=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=ae,Q.Keyed=G,Q.Set=Y,Q.Indexed=K;var _,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 ae(e){return!(!e||!e[ee])}function oe(){return _||(_=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(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 ce(e){var t=de(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function se(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 X(e)?new te(e):U(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 a=i.length-1,o=0;o<=a;o++){var l=i[n?a-o:o];if(!1===t(l[1],r?l[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var i=e._cache;if(i){var a=i.length-1,o=0;return new R(function(){var e=i[n?a-o:o];return o++>a?j():B(t,r?e[0]:o-1,e[1])})}return e.__iteratorUncached(t,n)}function he(e,t){return t?Ce(t,e,"",{"":e}):pe(e)}function Ce(e,t,n,r){return Array.isArray(t)?e.call(r,n,K(t).map(function(n,r){return Ce(e,n,r,t)})):me(t)?e.call(r,n,G(t).map(function(n,r){return Ce(e,n,r,t)})):t}function pe(e){return Array.isArray(e)?K(e).map(pe).toList():me(e)?G(e).map(pe).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function Ae(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 ge(e,t){if(e===t)return!0;if(!o(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)||c(e)!==c(t)||d(e)!==d(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!s(e);if(d(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&Ae(i[1],e)&&(n||Ae(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 a=e;e=t,t=a}var u=!0,f=t.__iterate(function(t,r){if(n?!e.has(t):i?!Ae(t,e.get(r,v)):!Ae(e.get(r,v),t))return u=!1,!1});return u&&e.size===f}function ve(e,t){if(!(this instanceof ve))return new ve(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 ye(e,t,n){if(!(this instanceof ye))return new ye(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 be(){}function Me(){}function Le(){}Q.prototype[ee]=!0,t(te,K),te.prototype.get=function(e,t){return this.has(e)?this._array[x(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 R(function(){return i>r?j():B(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,a=0;a<=i;a++){var o=r[t?i-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,a=0;return new R(function(){var o=r[t?i-a:a];return a++>i?j():B(e,o,n[o])})},ne.prototype[C]=!0,t(re,K),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=q(this._iterable),r=0;if(U(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=q(this._iterable);if(!U(n))return new R(j);var r=0;return new R(function(){var t=n.next();return t.done?t:B(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,a=0;a<i.length;)if(!1===e(i[a],a++,this))return a;for(;!(n=r.next()).done;){var o=n.value;if(i[a]=o,!1===e(o,a++,this))break}return a},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 R(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return B(e,i,r[i++])})},t(ve,K),ve.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ve.prototype.get=function(e,t){return this.has(e)?this._value:t},ve.prototype.includes=function(e){return Ae(this._value,e)},ve.prototype.slice=function(e,t){var n=this.size;return k(e,t,n)?this:new ve(this._value,Z(t,n)-S(e,n))},ve.prototype.reverse=function(){return this},ve.prototype.indexOf=function(e){return Ae(this._value,e)?0:-1},ve.prototype.lastIndexOf=function(e){return Ae(this._value,e)?this.size:-1},ve.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},ve.prototype.__iterator=function(e,t){var n=this,r=0;return new R(function(){return r<n.size?B(e,r++,n._value):j()})},ve.prototype.equals=function(e){return e instanceof ve?Ae(this._value,e._value):ge(e)},t(ye,K),ye.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ye.prototype.get=function(e,t){return this.has(e)?this._start+x(this,e)*this._step:t},ye.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ye.prototype.slice=function(e,t){return k(e,t,this.size)?this:(e=S(e,this.size),(t=Z(t,this.size))<=e?new ye(0,0):new ye(this.get(e,this._end),this.get(t,this._end),this._step))},ye.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},ye.prototype.lastIndexOf=function(e){return this.indexOf(e)},ye.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;a<=n;a++){if(!1===e(i,a,this))return a+1;i+=t?-r:r}return a},ye.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;return new R(function(){var o=i;return i+=t?-r:r,a>n?j():B(e,a++,o)})},ye.prototype.equals=function(e){return e instanceof ye?this._start===e._start&&this._end===e._end&&this._step===e._step:ge(this,e)},t(Ee,n),t(be,Ee),t(Me,Ee),t(Le,Ee),Ee.Keyed=be,Ee.Indexed=Me,Ee.Set=Le;var He="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 xe(e){return e>>>1&1073741824|3221225471&e}function Ve(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 xe(n)}if("string"===t)return e.length>Re?ke(e):Se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Ze(e);if("function"==typeof e.toString)return Se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ke(e){var t=Pe[e];return void 0===t&&(t=Se(e),je===Be&&(je=0,Pe={}),je++,Pe[e]=t),t}function Se(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return xe(t)}function Ze(e){var t;if(De&&void 0!==(t=Ne.get(e)))return t;if(void 0!==(t=e[Fe]))return t;if(!ze){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Fe]))return t;if(void 0!==(t=Ie(e)))return t}if(t=++Te,1073741824&Te&&(Te=0),De)Ne.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,Fe,{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[Fe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Fe]=t}}return t}var Oe=Object.isExtensible,ze=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Ie(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ne,De="function"==typeof WeakMap;De&&(Ne=new WeakMap);var Te=0,Fe="__immutablehash__";"function"==typeof Symbol&&(Fe=Symbol(Fe));var Re=16,Be=255,je=0,Pe={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function qe(e){return null==e?it():We(e)&&!d(e)?e:it().withMutations(function(t){var n=r(e);Ue(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function We(e){return!(!e||!e[Qe])}t(qe,be),qe.prototype.toString=function(){return this.__toString("Map {","}")},qe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},qe.prototype.set=function(e,t){return at(this,e,t)},qe.prototype.setIn=function(e,t){return this.updateIn(e,v,function(){return t})},qe.prototype.remove=function(e){return at(this,e,v)},qe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return v})},qe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},qe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=mt(this,En(e),t,n);return r===v?void 0:r},qe.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()},qe.prototype.merge=function(){return ft(this,void 0,arguments)},qe.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},qe.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]})},qe.prototype.mergeDeep=function(){return ft(this,ht,arguments)},qe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,Ct(t),n)},qe.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]})},qe.prototype.sort=function(e){return Pt(un(this,e))},qe.prototype.sortBy=function(e,t){return Pt(un(this,t,e))},qe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},qe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new M)},qe.prototype.asImmutable=function(){return this.__ensureOwner()},qe.prototype.wasAltered=function(){return this.__altered},qe.prototype.__iterator=function(e,t){return new et(this,e,t)},qe.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},qe.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)},qe.isMap=We;var Xe,Qe="@@__IMMUTABLE_MAP__@@",Ge=qe.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 _e(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 B(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 Xe||(Xe=rt(0))}function at(e,t,n){var r,i;if(e._root){var a=E(w),o=E(y);if(r=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===v?-1:1:0)}else{if(n===v)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 ot(e,t,n,r,i,a,o,l){return e?e.update(t,n,r,i,a,o,l):a===v?e:(b(l),b(o),new $e(t,r,[i,a]))}function lt(e){return e.constructor===$e||e.constructor===Je}function ct(e,t,n,r,i){if(e.keyHash===r)return new Je(t,r,[e.entry,i]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&g,l=(0===n?r:r>>>n)&g;return new Ye(t,1<<o|1<<l,o===l?[ct(e,t,n+m,r,i)]:(a=new $e(t,r,i),o<l?[e,a]:[a,e]))}function st(e,t,n,r){e||(e=new M);for(var i=new $e(e,Ve(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function dt(e,t,n,r){for(var i=0,a=0,o=new Array(n),l=0,c=1,s=t.length;l<s;l++,c<<=1){var d=t[l];void 0!==d&&l!==r&&(i|=c,o[a++]=d)}return new Ye(e,i,o)}function ut(e,t,n,r,i){for(var a=0,o=new Array(A),l=0;0!==n;l++,n>>>=1)o[l]=1&n?t[a++]:void 0;return o[r]=i,new _e(e,a+1,o)}function ft(e,t,n){for(var i=[],a=0;a<n.length;a++){var l=n[a],c=r(l);o(l)||(c=c.map(function(e){return he(e)})),i.push(c)}return pt(e,t,i)}function ht(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):Ae(e,t)?e:t}function Ct(e){return function(t,n,r){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return Ae(t,i)?t:i}}function pt(e,t,n){return 0===(n=n.filter(function(e){return 0!==e.size})).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,v,function(e){return e===v?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===v,a=t.next();if(a.done){var o=i?n:e,l=r(o);return l===o?e:l}we(i||e&&e.set,"invalid keyPath");var c=a.value,s=i?v:e.get(c,v),d=mt(s,t,n,r);return d===s?e:d===v?e.remove(c):(i?it():e).set(c,d)}function At(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function gt(e,t,n,r){var i=r?e:L(e);return i[t]=n,i}function vt(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=new Array(i),o=0,l=0;l<i;l++)l===t?(a[l]=n,o=-1):a[l]=e[l+o];return a}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}Ge[Qe]=!0,Ge[p]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ke.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(Ae(n,i[a][0]))return i[a][1];return r},Ke.prototype.update=function(e,t,n,r,i,a,o){for(var l=i===v,c=this.entries,s=0,d=c.length;s<d&&!Ae(r,c[s][0]);s++);var u=s<d;if(u?c[s][1]===i:l)return this;if(b(o),(l||!u)&&b(a),!l||1!==c.length){if(!u&&!l&&c.length>=yt)return st(e,c,r,i);var f=e&&e===this.ownerID,h=f?c:L(c);return u?l?s===d-1?h.pop():h[s]=h.pop():h[s]=[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=Ve(n));var i=1<<((0===e?t:t>>>e)&g),a=this.bitmap;return 0===(a&i)?r:this.nodes[At(a&i-1)].get(e+m,t,n,r)},Ye.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=Ve(r));var l=(0===t?n:n>>>t)&g,c=1<<l,s=this.bitmap,d=0!==(s&c);if(!d&&i===v)return this;var u=At(s&c-1),f=this.nodes,h=d?f[u]:void 0,C=ot(h,e,t+m,n,r,i,a,o);if(C===h)return this;if(!d&&C&&f.length>=Et)return ut(e,f,s,l,C);if(d&&!C&&2===f.length&<(f[1^u]))return f[1^u];if(d&&C&&1===f.length&<(C))return C;var p=e&&e===this.ownerID,A=d?C?s:s^c:s|c,w=d?C?gt(f,u,C,p):wt(f,u,p):vt(f,u,C,p);return p?(this.bitmap=A,this.nodes=w,this):new Ye(e,A,w)},_e.prototype.get=function(e,t,n,r){void 0===t&&(t=Ve(n));var i=(0===e?t:t>>>e)&g,a=this.nodes[i];return a?a.get(e+m,t,n,r):r},_e.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=Ve(r));var l=(0===t?n:n>>>t)&g,c=i===v,s=this.nodes,d=s[l];if(c&&!d)return this;var u=ot(d,e,t+m,n,r,i,a,o);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<bt)return dt(e,s,f,l)}else f++;var h=e&&e===this.ownerID,C=gt(s,l,u,h);return h?(this.count=f,this.nodes=C,this):new _e(e,f,C)},Je.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(Ae(n,i[a][0]))return i[a][1];return r},Je.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=Ve(r));var l=i===v;if(n!==this.keyHash)return l?this:(b(o),b(a),ct(this,e,t,n,[r,i]));for(var c=this.entries,s=0,d=c.length;s<d&&!Ae(r,c[s][0]);s++);var u=s<d;if(u?c[s][1]===i:l)return this;if(b(o),(l||!u)&&b(a),l&&2===d)return new $e(e,this.keyHash,c[1^s]);var f=e&&e===this.ownerID,h=f?c:L(c);return u?l?s===d-1?h.pop():h[s]=h.pop():h[s]=[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 Ae(n,this.entry[0])?this.entry[1]:r},$e.prototype.update=function(e,t,n,r,i,a,o){var l=i===v,c=Ae(r,this.entry[0]);return(c?i===this.entry[1]:l)?this:(b(o),l?void b(a):c?e&&e===this.ownerID?(this.entry[1]=i,this):new $e(e,this.keyHash,[r,i]):(b(a),ct(this,e,t,Ve(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=_e.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&!1===a.iterate(e,t))return!1}},$e.prototype.iterate=function(e,t){return e(this.entry)},t(et,R),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 a=r.nodes[this._reverse?n-i:i];if(a){if(a.entry)return tt(e,a.entry);t=this._stack=nt(a,t)}continue}t=this._stack=this._stack.__prev}return j()};var yt=A/4,Et=A/2,bt=A/4;function Mt(e){var t=It();if(null==e)return t;if(Lt(e))return e;var n=i(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<A?zt(0,r,m,null,new Vt(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}function Lt(e){return!(!e||!e[Ht])}t(Mt,Me),Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString("List [","]")},Mt.prototype.get=function(e,t){if((e=x(this,e))>=0&&e<this.size){var n=Ft(this,e+=this._origin);return n&&n.array[e&g]}return t},Mt.prototype.set=function(e,t){return Nt(this,e,t)},Mt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Mt.prototype.insert=function(e,t){return this.splice(e,0,t)},Mt.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):It()},Mt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Rt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Mt.prototype.pop=function(){return Rt(this,0,-1)},Mt.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Rt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Mt.prototype.shift=function(){return Rt(this,1)},Mt.prototype.merge=function(){return Bt(this,void 0,arguments)},Mt.prototype.mergeWith=function(t){return Bt(this,t,e.call(arguments,1))},Mt.prototype.mergeDeep=function(){return Bt(this,ht,arguments)},Mt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Bt(this,Ct(t),n)},Mt.prototype.setSize=function(e){return Rt(this,0,e)},Mt.prototype.slice=function(e,t){var n=this.size;return k(e,t,n)?this:Rt(this,S(e,n),Z(t,n))},Mt.prototype.__iterator=function(e,t){var n=0,r=Ot(this,t);return new R(function(){var t=r();return t===Zt?j():B(e,n++,t)})},Mt.prototype.__iterate=function(e,t){for(var n,r=0,i=Ot(this,t);(n=i())!==Zt&&!1!==e(n,r++,this););return r},Mt.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)},Mt.isList=Lt;var Ht="@@__IMMUTABLE_LIST__@@",xt=Mt.prototype;function Vt(e,t){this.array=e,this.ownerID=t}xt[Ht]=!0,xt[p]=xt.remove,xt.setIn=Ge.setIn,xt.deleteIn=xt.removeIn=Ge.removeIn,xt.update=Ge.update,xt.updateIn=Ge.updateIn,xt.mergeIn=Ge.mergeIn,xt.mergeDeepIn=Ge.mergeDeepIn,xt.withMutations=Ge.withMutations,xt.asMutable=Ge.asMutable,xt.asImmutable=Ge.asImmutable,xt.wasAltered=Ge.wasAltered,Vt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&g;if(r>=this.array.length)return new Vt([],e);var i,a=0===r;if(t>0){var o=this.array[r];if((i=o&&o.removeBefore(e,t-m,n))===o&&a)return this}if(a&&!i)return this;var l=Tt(this,e);if(!a)for(var c=0;c<r;c++)l.array[c]=void 0;return i&&(l.array[r]=i),l},Vt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&g;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((r=a&&a.removeAfter(e,t-m,n))===a&&i===this.array.length-1)return this}var o=Tt(this,e);return o.array.splice(i+1),r&&(o.array[i]=r),o};var kt,St,Zt={};function Ot(e,t){var n=e._origin,r=e._capacity,i=jt(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?l(e,n):c(e,t,n)}function l(e,o){var l=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,s=r-o;return s>A&&(s=A),function(){if(c===s)return Zt;var e=t?--s:c++;return l&&l[e]}}function c(e,i,a){var l,c=e&&e.array,s=a>n?0:n-a>>i,d=1+(r-a>>i);return d>A&&(d=A),function(){for(;;){if(l){var e=l();if(e!==Zt)return e;l=null}if(s===d)return Zt;var n=t?--d:s++;l=o(c&&c[n],i-m,a+(n<<i))}}}}function zt(e,t,n,r,i,a,o){var l=Object.create(xt);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=i,l.__ownerID=a,l.__hash=o,l.__altered=!1,l}function It(){return kt||(kt=zt(0,0,m))}function Nt(e,t,n){if((t=x(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Rt(e,t).set(0,n):Rt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=E(y);return t>=jt(e._capacity)?r=Dt(r,e.__ownerID,0,t,n,a):i=Dt(i,e.__ownerID,e._level,t,n,a),a.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 Dt(e,t,n,r,i,a){var o,l=r>>>n&g,c=e&&l<e.array.length;if(!c&&void 0===i)return e;if(n>0){var s=e&&e.array[l],d=Dt(s,t,n-m,r,i,a);return d===s?e:((o=Tt(e,t)).array[l]=d,o)}return c&&e.array[l]===i?e:(b(a),o=Tt(e,t),void 0===i&&l===o.array.length-1?o.array.pop():o.array[l]=i,o)}function Tt(e,t){return t&&e&&t===e.ownerID?e:new Vt(e?e.array.slice():[],t)}function Ft(e,t){if(t>=jt(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&g],r-=m;return n}}function Rt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new M,i=e._origin,a=e._capacity,o=i+t,l=void 0===n?a:n<0?a+n:i+n;if(o===i&&l===a)return e;if(o>=l)return e.clear();for(var c=e._level,s=e._root,d=0;o+d<0;)s=new Vt(s&&s.array.length?[void 0,s]:[],r),d+=1<<(c+=m);d&&(o+=d,i+=d,l+=d,a+=d);for(var u=jt(a),f=jt(l);f>=1<<c+m;)s=new Vt(s&&s.array.length?[s]:[],r),c+=m;var h=e._tail,C=f<u?Ft(e,l-1):f>u?new Vt([],r):h;if(h&&f>u&&o<a&&h.array.length){for(var p=s=Tt(s,r),A=c;A>m;A-=m){var v=u>>>A&g;p=p.array[v]=Tt(p.array[v],r)}p.array[u>>>m&g]=h}if(l<a&&(C=C&&C.removeAfter(r,0,l)),o>=f)o-=f,l-=f,c=m,s=null,C=C&&C.removeBefore(r,0,o);else if(o>i||f<u){for(d=0;s;){var w=o>>>c&g;if(w!==f>>>c&g)break;w&&(d+=(1<<c)*w),c-=m,s=s.array[w]}s&&o>i&&(s=s.removeBefore(r,c,o-d)),s&&f<u&&(s=s.removeAfter(r,c,f-d)),d&&(o-=d,l-=d)}return e.__ownerID?(e.size=l-o,e._origin=o,e._capacity=l,e._level=c,e._root=s,e._tail=C,e.__hash=void 0,e.__altered=!0,e):zt(o,l,c,s,C)}function Bt(e,t,n){for(var r=[],a=0,l=0;l<n.length;l++){var c=n[l],s=i(c);s.size>a&&(a=s.size),o(c)||(s=s.map(function(e){return he(e)})),r.push(s)}return a>e.size&&(e=e.setSize(a)),pt(e,t,r)}function jt(e){return e<A?0:e-1>>>m<<m}function Pt(e){return null==e?Wt():Ut(e)?e:Wt().withMutations(function(t){var n=r(e);Ue(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Ut(e){return We(e)&&d(e)}function qt(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 Wt(){return St||(St=qt(it(),It()))}function Xt(e,t,n){var r,i,a=e._map,o=e._list,l=a.get(t),c=void 0!==l;if(n===v){if(!c)return e;o.size>=A&&o.size>=2*a.size?(r=(i=o.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=a.remove(t),i=l===o.size-1?o.pop():o.set(l,void 0))}else if(c){if(n===o.get(l)[1])return e;r=a,i=o.set(l,[t,n])}else r=a.set(t,o.size),i=o.set(o.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):qt(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 _t(e){var t=vn(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===N){var r=e.__iterator(t,n);return new R(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===I?z:I,n)},t}function Jt(e,t,n){var r=vn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,v);return a===v?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return!1!==r(t.call(n,e,i,o),i,a)},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(N,i);return new R(function(){var i=a.next();if(i.done)return i;var o=i.value,l=o[0];return B(r,l,t.call(n,o[1],l,e),i)})},r}function $t(e,t){var n=vn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=_t(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=vn(e);return r&&(i.has=function(r){var i=e.get(r,v);return i!==v&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,v);return a!==v&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,l=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return l++,i(e,r?a:l-1,o)},a),l},i.__iteratorUncached=function(i,a){var o=e.__iterator(N,a),l=0;return new R(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,s=c[0],d=c[1];if(t.call(n,d,s,e))return B(i,r?s:l++,d,a)}})},i}function tn(e,t,n){var r=qe().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function nn(e,t,n){var r=l(e),i=(d(e)?Pt():qe()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return(e=e||[]).push(r?[o,a]:a),e})});var a=gn(e);return i.map(function(t){return pn(e,a(t))})}function rn(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),k(t,n,i))return e;var a=S(t,i),o=Z(n,i);if(a!=a||o!=o)return rn(e.toSeq().cacheResult(),t,n,r);var l,c=o-a;c==c&&(l=c<0?0:c);var s=vn(e);return s.size=0===l?l:e.size&&l||void 0,!r&&ae(e)&&l>=0&&(s.get=function(t,n){return(t=x(this,t))>=0&&t<l?e.get(t+a,n):n}),s.__iterateUncached=function(t,n){var i=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,c=!0,s=0;return e.__iterate(function(e,n){if(!c||!(c=o++<a))return s++,!1!==t(e,r?n:s-1,i)&&s!==l}),s},s.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var i=0!==l&&e.__iterator(t,n),o=0,c=0;return new R(function(){for(;o++<a;)i.next();if(++c>l)return j();var e=i.next();return r||t===I?e:B(t,c-1,t===z?void 0:e.value[1],e)})},s}function an(e,t,n){var r=vn(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,l){return t.call(n,e,i,l)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(N,i),l=!0;return new R(function(){if(!l)return j();var e=o.next();if(e.done)return e;var i=e.value,c=i[0],s=i[1];return t.call(n,s,c,a)?r===N?e:B(r,c,s,e):(l=!1,j())})},r}function on(e,t,n,r){var i=vn(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var l=!0,c=0;return e.__iterate(function(e,a,s){if(!l||!(l=t.call(n,e,a,s)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var l=e.__iterator(N,a),c=!0,s=0;return new R(function(){var e,a,d;do{if((e=l.next()).done)return r||i===I?e:B(i,s++,i===z?void 0:e.value[1],e);var u=e.value;a=u[0],d=u[1],c&&(c=t.call(n,d,a,o))}while(c);return i===N?e:B(i,a,d,e)})},i}function ln(e,t){var n=l(e),i=[e].concat(t).map(function(e){return o(e)?n&&(e=r(e)):e=n?le(e):ce(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var a=i[0];if(a===e||n&&l(a)||c(e)&&c(a))return a}var s=new te(i);return n?s=s.toKeyedSeq():c(e)||(s=s.toSetSeq()),(s=s.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),s}function cn(e,t,n){var r=vn(e);return r.__iterateUncached=function(r,i){var a=0,l=!1;function c(e,s){var d=this;e.__iterate(function(e,i){return(!t||s<t)&&o(e)?c(e,s+1):!1===r(e,n?i:a++,d)&&(l=!0),!l},i)}return c(e,0),a},r.__iteratorUncached=function(r,i){var a=e.__iterator(r,i),l=[],c=0;return new R(function(){for(;a;){var e=a.next();if(!1===e.done){var s=e.value;if(r===N&&(s=s[1]),t&&!(l.length<t)||!o(s))return n?e:B(r,c++,s,e);l.push(a),a=s.__iterator(r,i)}else a=l.pop()}return j()})},r}function sn(e,t,n){var r=gn(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function dn(e,t){var n=vn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e,r){return(!a||!1!==n(t,a++,i))&&!1!==n(e,a++,i)},r),a},n.__iteratorUncached=function(n,r){var i,a=e.__iterator(I,r),o=0;return new R(function(){return(!i||o%2)&&(i=a.next()).done?i:o%2?B(n,o++,t):B(n,o++,i.value,i)})},n}function un(e,t,n){t||(t=yn);var r=l(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?G(a):c(e)?K(a):Y(a)}function fn(e,t,n){if(t||(t=yn),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 Cn(e,t,r){var i=vn(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(I,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var a=r.map(function(e){return e=n(e),q(i?e.reverse():e)}),o=0,l=!1;return new R(function(){var n;return l||(n=a.map(function(e){return e.next()}),l=n.some(function(e){return e.done})),l?j():B(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function pn(e,t){return ae(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function An(e){return Ue(e.size),H(e)}function gn(e){return l(e)?r:c(e)?i:a}function vn(e){return Object.create((l(e)?G:c(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 yn(e,t){return e>t?1:e<t?-1:0}function En(e){var t=q(e);if(!t){if(!X(e))throw new TypeError("Expected iterable or array-like: "+e);t=q(n(e))}return t}function bn(e,t){var n,r=function(a){if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var o=Object.keys(e);xn(i,o),i.size=o.length,i._name=t,i._keys=o,i._defaultValues=e}this._map=qe(a)},i=r.prototype=Object.create(Mn);return i.constructor=r,r}t(Pt,qe),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):Wt()},Pt.prototype.set=function(e,t){return Xt(this,e,t)},Pt.prototype.remove=function(e){return Xt(this,e,v)},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?qt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Pt.isOrderedMap=Ut,Pt.prototype[C]=!0,Pt.prototype[p]=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?An(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(I,t),r=t?An(this):0;return new R(function(){var i=n.next();return i.done?i:B(e,t?--r:r++,i.value,i)})},Qt.prototype[C]=!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(I,t),r=0;return new R(function(){var t=n.next();return t.done?t:B(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(I,t);return new R(function(){var t=n.next();return t.done?t:B(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=o(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(I,t);return new R(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){mn(r);var i=o(r);return B(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(bn,be),bn.prototype.toString=function(){return this.__toString(Hn(this)+" {","}")},bn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},bn.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},bn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Ln(this,it()))},bn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Hn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Ln(this,n)},bn.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:Ln(this,t)},bn.prototype.wasAltered=function(){return this._map.wasAltered()},bn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},bn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},bn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Ln(this,t,e):(this.__ownerID=e,this._map=t,this)};var Mn=bn.prototype;function Ln(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Hn(e){return e._name||e.constructor.name||"Record"}function xn(e,t){try{t.forEach(Vn.bind(void 0,e))}catch(e){}}function Vn(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 kn(e){return null==e?Dn():Sn(e)&&!d(e)?e:Dn().withMutations(function(t){var n=a(e);Ue(n.size),n.forEach(function(e){return t.add(e)})})}function Sn(e){return!(!e||!e[On])}Mn[p]=Mn.remove,Mn.deleteIn=Mn.removeIn=Ge.removeIn,Mn.merge=Ge.merge,Mn.mergeWith=Ge.mergeWith,Mn.mergeIn=Ge.mergeIn,Mn.mergeDeep=Ge.mergeDeep,Mn.mergeDeepWith=Ge.mergeDeepWith,Mn.mergeDeepIn=Ge.mergeDeepIn,Mn.setIn=Ge.setIn,Mn.update=Ge.update,Mn.updateIn=Ge.updateIn,Mn.withMutations=Ge.withMutations,Mn.asMutable=Ge.asMutable,Mn.asImmutable=Ge.asImmutable,t(kn,Le),kn.of=function(){return this(arguments)},kn.fromKeys=function(e){return this(r(e).keySeq())},kn.prototype.toString=function(){return this.__toString("Set {","}")},kn.prototype.has=function(e){return this._map.has(e)},kn.prototype.add=function(e){return In(this,this._map.set(e,!0))},kn.prototype.remove=function(e){return In(this,this._map.remove(e))},kn.prototype.clear=function(){return In(this,this._map.clear())},kn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},kn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return a(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.every(function(e){return e.includes(n)})||e.remove(n)})})},kn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return a(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.some(function(e){return e.includes(n)})&&e.remove(n)})})},kn.prototype.merge=function(){return this.union.apply(this,arguments)},kn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},kn.prototype.sort=function(e){return Tn(un(this,e))},kn.prototype.sortBy=function(e,t){return Tn(un(this,t,e))},kn.prototype.wasAltered=function(){return this._map.wasAltered()},kn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},kn.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},kn.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)},kn.isSet=Sn;var Zn,On="@@__IMMUTABLE_SET__@@",zn=kn.prototype;function In(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 Nn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Dn(){return Zn||(Zn=Nn(it()))}function Tn(e){return null==e?Pn():Fn(e)?e:Pn().withMutations(function(t){var n=a(e);Ue(n.size),n.forEach(function(e){return t.add(e)})})}function Fn(e){return Sn(e)&&d(e)}zn[On]=!0,zn[p]=zn.remove,zn.mergeDeep=zn.merge,zn.mergeDeepWith=zn.mergeWith,zn.withMutations=Ge.withMutations,zn.asMutable=Ge.asMutable,zn.asImmutable=Ge.asImmutable,zn.__empty=Dn,zn.__make=Nn,t(Tn,kn),Tn.of=function(){return this(arguments)},Tn.fromKeys=function(e){return this(r(e).keySeq())},Tn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Tn.isOrderedSet=Fn;var Rn,Bn=Tn.prototype;function jn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Pn(){return Rn||(Rn=jn(Wt()))}function Un(e){return null==e?Kn():qn(e)?e:Kn().unshiftAll(e)}function qn(e){return!(!e||!e[Xn])}Bn[C]=!0,Bn.__empty=Pn,Bn.__make=jn,t(Un,Me),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=x(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.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)},Un.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Ue(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)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.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()},Un.prototype.slice=function(e,t){if(k(e,t,this.size))return this;var n=S(e,this.size);if(Z(t,this.size)!==this.size)return Me.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)},Un.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)},Un.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},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new R(function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return j()})},Un.isStack=qn;var Wn,Xn="@@__IMMUTABLE_STACK__@@",Qn=Un.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 Wn||(Wn=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[Xn]=!0,Qn.withMutations=Ge.withMutations,Qn.asMutable=Ge.asMutable,Qn.asImmutable=Ge.asImmutable,Qn.wasAltered=Ge.wasAltered,n.Iterator=R,Yn(n,{toArray:function(){Ue(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 qe(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Pt(this.toKeyedSeq())},toOrderedSet:function(){return Tn(l(this)?this.valueSeq():this)},toSet:function(){return kn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Kt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(l(this)?this.valueSeq():this)},toList:function(){return Mt(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 pn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return Ae(t,e)})},entries:function(){return this.__iterator(N)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return pn(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,a){if(e.call(t,r,i,a))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(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 pn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,i;return Ue(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,a,o){i?(i=!1,r=t):r=e.call(n,r,t,a,o)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return pn(this,$t(this,!0))},slice:function(e,t){return pn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return pn(this,un(this,e))},values:function(){return this.__iterator(I)},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 H(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ge(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(V)},flatMap:function(e,t){return pn(this,sn(this,e,t))},flatten:function(e){return pn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find(function(t,n){return Ae(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=En(e);!(n=i.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,v):v)===v)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:function(e){return this.getIn(e,v)!==v},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):ar)},minBy:function(e,t){return fn(this,t?nr(t):ar,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return pn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return pn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return pn(this,un(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return pn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return pn(this,an(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=or(this))}});var _n=n.prototype;_n[u]=!0,_n[F]=_n.values,_n.__toJS=_n.toArray,_n.__toStringMapper=rr,_n.inspect=_n.toSource=function(){return this.toString()},_n.chain=_n.flatMap,_n.contains=_n.includes,function(){try{Object.defineProperty(_n,"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 pn(this,_t(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 Ae(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return Ae(t,e)})},mapEntries:function(e,t){var n=this,r=0;return pn(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return pn(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 L(arguments)}function ar(e,t){return e<t?1:e>t?-1:0}function or(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+cr(Ve(e),Ve(t))|0}:function(e,t){r=r+cr(Ve(e),Ve(t))|0}:t?function(e){r=31*r+Ve(e)|0}:function(e){r=r+Ve(e)|0});return lr(i,r)}function lr(e,t){return t=He(t,3432918353),t=He(t<<15|t>>>-15,461845907),t=He(t<<13|t>>>-13,5),t=He((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=xe((t=He(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[f]=!0,Jn[F]=_n.entries,Jn.__toJS=_n.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 pn(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 pn(this,$t(this,!1))},slice:function(e,t){return pn(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=S(e,e<0?this.count():this.size);var r=this.slice(0,e);return pn(this,1===n?r:r.concat(L(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 pn(this,cn(this,e,!1))},get:function(e,t){return(e=x(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=x(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return pn(this,dn(this,e))},interleave:function(){var e=[this].concat(L(arguments)),t=Cn(this.toSeq(),K.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),pn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return pn(this,on(this,e,t,!1))},zip:function(){return pn(this,Cn(this,ir,[this].concat(L(arguments))))},zipWith:function(e){var t=L(arguments);return t[0]=this,pn(this,Cn(this,e,t))}}),i.prototype[h]=!0,i.prototype[C]=!0,Yn(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=_n.includes,Yn(G,r.prototype),Yn(K,i.prototype),Yn(Y,a.prototype),Yn(be,r.prototype),Yn(Me,i.prototype),Yn(Le,a.prototype);var sr={Iterable:n,Seq:Q,Collection:Ee,Map:qe,OrderedMap:Pt,List:Mt,Stack:Un,Set:kn,OrderedSet:Tn,Record:bn,Range:ye,Repeat:ve,is:Ae,fromJS:he};return sr}()),oT.exports}function cT(){if(LN)return MN;LN=1;var e=lT().OrderedMap;return MN={createFromArray:function(t){return e(t.map(function(e){return[e.getKey(),e]}))}}}function sT(){if(xN)return HN;xN=1;var e=lT(),t=e.Map,n=e.OrderedSet,r=e.Record,i=n(),a={style:i,entity:null},o=function(e){var r,a;function o(){return e.apply(this,arguments)||this}a=e,(r=o).prototype=Object.create(a.prototype),r.prototype.constructor=r,r.__proto__=a;var s=o.prototype;return s.getStyle=function(){return this.get("style")},s.getEntity=function(){return this.get("entity")},s.hasStyle=function(e){return this.getStyle().includes(e)},o.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return o.create(n)},o.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return o.create(n)},o.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return o.create(n)},o.create=function(e){if(!e)return l;var n=t({style:i,entity:null}).merge(e),r=c.get(n);if(r)return r;var a=new o(n);return c=c.set(n,a),a},o.fromJS=function(e){var t=e.style,r=e.entity;return new o({style:Array.isArray(t)?n(t):t,entity:Array.isArray(r)?n(r):r})},o}(r(a)),l=new o,c=t([[t(a),l]]);return o.EMPTY=l,HN=o}function dT(){if(kN)return VN;return kN=1,VN=function(e,t,n,r){if(e.size){var i=0;e.reduce(function(e,a,o){return t(e,a)||(n(e)&&r(i,o),i=o),a}),n(e.last())&&r(i,e.count())}}}function uT(){if(ZN)return SN;ZN=1;var e=sT(),t=dT(),n=lT(),r=n.List,i=n.Map,a=n.OrderedSet,o=n.Record,l=n.Repeat,c=a(),s=o({key:"",type:"unstyled",text:"",characterList:r(),depth:0,data:i()}),d=function(n){var i,a;function o(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}a=n,(i=o).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a;var s=o.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,n){t(this.getCharacterList(),u,e,n)},s.findEntityRanges=function(e,n){t(this.getCharacterList(),f,e,n)},o}(s);function u(e,t){return e.getStyle()===t.getStyle()}function f(e,t){return e.getEntity()===t.getEntity()}return SN=d}function fT(){if(zN)return ON;zN=1;var e=sT(),t=dT(),n=lT(),r=n.List,i=n.Map,a=n.OrderedSet,o=n.Record,l=n.Repeat,c=a(),s={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,a;function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;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}a=n,(i=o).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a;var f=o.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():c},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)},o}(o(s));return ON=f}function hT(){if(RN)return FN;RN=1;var e=function(){if(TN)return DN;TN=1;var e=sT();return DN=function(t,n,r,i){for(var a=n,o=t.getCharacterList();a<r;)o=o.set(a,e.applyEntity(o.get(a),i)),a++;return t.set("characterList",o)},DN}(),t=lT();return FN=function(n,r,i){var a=n.getBlockMap(),o=r.getStartKey(),l=r.getStartOffset(),c=r.getEndKey(),s=r.getEndOffset(),d=a.skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===c}).toOrderedMap().merge(t.OrderedMap([[c,a.get(c)]])).map(function(t,n){var r=n===o?l:0,a=n===c?s:t.getLength();return e(t,r,a,i)});return n.merge({blockMap:a.merge(d),selectionBefore:r,selectionAfter:r})},FN}function CT(){if(UN)return PN;UN=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 PN=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(e(n),!t){var o;if(void 0===n)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;(o=new Error(n.replace(/%s/g,function(){return String(i[l++])}))).name="Invariant Violation"}throw o.framesToPop=1,o}},PN}function pT(){if(QN)return XN;QN=1;var e=jN?BN:(jN=1,BN={getRemovalRange:function(e,t,n,r,i){var a=n.split(" ");a=a.map(function(e,t){if("forward"===i){if(t>0)return" "+e}else if(t<a.length-1)return e+" ";return e});for(var o,l=r,c=null,s=null,d=0;d<a.length;d++){if(e<(o=l+a[d].length)&&l<t)null!==c||(c=l),s=o;else if(null!==c)break;l=o}var u=r+n.length,f=c===r,h=s===u;return(!f&&h||f&&!h)&&("forward"===i?s!==u&&s++:c!==r&&c--),{start:c,end:s}}}),t=function(){if(WN)return qN;WN=1;var e=CT();return qN=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},qN}(),n=CT();function r(r,i,a,o,l,c,s){var d=a.getStartOffset(),u=a.getEndOffset(),f=r.__get(l).getMutability(),h=s?d:u;if("MUTABLE"===f)return a;var C=t(i,l).filter(function(e){return h<=e.end&&h>=e.start});1!=C.length&&("production"!==process.env.NODE_ENV?n(!1,"There should only be one entity range within this removal range."):n(!1));var p=C[0];if("IMMUTABLE"===f)return a.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});c||(s?u=p.end:d=p.start);var m=e.getRemovalRange(d,u,i.getText().slice(p.start,p.end),p.start,o);return a.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}return XN=function(e,t,n,i,a){var o=i.getStartOffset(),l=i.getEndOffset(),c=t.getEntityAt(o),s=n.getEntityAt(l-1);if(!c&&!s)return i;var d=i;if(c&&c===s)d=r(e,t,d,a,c,!0,!0);else if(c&&s){var u=r(e,t,d,a,c,!1,!0),f=r(e,n,d,a,s,!1,!1);d=d.merge({anchorOffset:u.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var h=r(e,t,d,a,c,!1,!0);d=d.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(s){var C=r(e,n,d,a,s,!1,!1);d=d.merge({focusOffset:C.getEndOffset(),isBackward:!1})}return d},XN}function mT(){if(KN)return GN;KN=1;var e={},t=Math.pow(2,24);return GN=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},GN}function AT(){if(_N)return YN;_N=1;var e=fT(),t=mT(),n=lT().OrderedMap;return YN=function(r){return r.first()instanceof e?function(e){var r,i={};return n(e.withMutations(function(e){e.forEach(function(n,a){var o=n.getKey(),l=n.getNextSiblingKey(),c=n.getPrevSiblingKey(),s=n.getChildKeys(),d=n.getParentKey(),u=t();if(i[o]=u,l&&(e.get(l)?e.setIn([l,"prevSibling"],u):e.setIn([o,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],u):e.setIn([o,"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([o,"parent"],null),r&&(e.setIn([r.getKey(),"nextSibling"],u),e.setIn([o,"prevSibling"],i[r.getKey()])),r=e.get(o);s.forEach(function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([o,"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)},YN}function gT(){if($N)return JN;$N=1;var e=sT(),t=dT(),n=CT();function r(r,i,a){var o=i.getCharacterList(),l=a>0?o.get(a-1):void 0,c=a<o.count()?o.get(a):void 0,s=l?l.getEntity():void 0,d=c?c.getEntity():void 0;if(d&&d===s&&"MUTABLE"!==r.__get(d).getMutability()){for(var u,f=function(e,r,i){var a;return t(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===r},function(e,t){e<=i&&t>=i&&(a={start:e,end:t})}),"object"!=typeof a&&("production"!==process.env.NODE_ENV?n(!1,"Removal range must exist within character list."):n(!1)),a}(o,d,a),h=f.start,C=f.end;h<C;)u=o.get(h),o=o.set(h,e.applyEntity(u,null)),h++;return i.set("characterList",o)}return i}return JN=function(e,t){var n=e.getBlockMap(),i=e.getEntityMap(),a={},o=t.getStartKey(),l=t.getStartOffset(),c=n.get(o),s=r(i,c,l);s!==c&&(a[o]=s);var d=t.getEndKey(),u=t.getEndOffset(),f=n.get(d);o===d&&(f=s);var h=r(i,f,u);return h!==f&&(a[d]=h),Object.keys(a).length?e.merge({blockMap:n.merge(a),selectionAfter:t}):e.set("selectionAfter",t)}}function vT(){if(tD)return eD;tD=1;var e=AT(),t=gT();return eD=function(n,r){var i=r.getStartKey(),a=r.getStartOffset(),o=r.getEndKey(),l=r.getEndOffset(),c=t(n,r).getBlockMap(),s=c.keySeq(),d=s.indexOf(i),u=s.indexOf(o)+1;return e(c.slice(d,u).map(function(e,t){var n=e.getText(),r=e.getCharacterList();return i===o?e.merge({text:n.slice(a,l),characterList:r.slice(a,l)}):t===i?e.merge({text:n.slice(a),characterList:r.slice(a)}):t===o?e.merge({text:n.slice(0,l),characterList:r.slice(0,l)}):e}))}}function wT(){if(rD)return nD;return rD=1,nD=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),a=r.slice(n);r=i.concat(t,a).toList()}return r},nD}function yT(){if(aD)return iD;aD=1;var e=cT(),t=fT(),n=lT(),r=wT(),i=CT(),a=AT(),o=n.List,l=function(n,r,i,a,l,c){var s=i.first()instanceof t,d=[],u=a.size,f=i.get(l),h=a.first(),C=a.last(),p=C.getLength(),m=C.getKey(),A=s&&(!f.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());i.forEach(function(e,t){t===l?(A?d.push(e):d.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),a=r.slice(0,t),o=i.slice(0,t),l=n.first();return e.merge({text:a+l.getText(),characterList:o.concat(l.getCharacterList()),type:a?e.getType():l.getType(),data:l.getData()})}(e,c,a)),a.slice(A?0:1,u-1).forEach(function(e){return d.push(e)}),d.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),a=r.length,o=r.slice(t,a),l=i.slice(t,a),c=n.last();return c.merge({text:c.getText()+o,characterList:c.getCharacterList().concat(l),data:c.getData()})}(e,c,a))):d.push(e)});var g=e.createFromArray(d);return s&&(g=function(e,t,n,r){return e.withMutations(function(t){var i=n.getKey(),a=r.getKey(),l=n.getNextSiblingKey(),c=n.getParentKey(),s=function(e,t){var n=e.getKey(),r=e,i=[];for(t.get(n)&&i.push(n);r&&r.getNextSiblingKey();){var a=r.getNextSiblingKey();if(!a)break;i.push(a),r=t.get(a)}return i}(r,e),d=s[s.length-1];if(t.get(a)?(t.setIn([i,"nextSibling"],a),t.setIn([a,"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),s.forEach(function(e){return t.setIn([e,"parent"],c)}),c){var u=e.get(c).getChildKeys(),f=u.indexOf(i)+1,h=u.toArray();h.splice.apply(h,[f,0].concat(s)),t.setIn([c,"children"],o(h))}})}(g,0,f,h)),n.merge({blockMap:g,selectionBefore:r,selectionAfter:r.merge({anchorKey:m,anchorOffset:p,focusKey:m,focusOffset:p,isBackward:!1})})};return iD=function(e,n,o){var c=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 s=e.getBlockMap(),d=a(o),u=n.getStartKey(),f=n.getStartOffset(),h=s.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,a,o){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(a),s=c.getText(),d=c.getCharacterList(),u=a,f=o+i.getText().length,h=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":h=i.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":h=i.getData()}var C=c.getType();s&&"unstyled"===C&&(C=i.getType());var p=c.merge({text:s.slice(0,o)+i.getText()+s.slice(o),characterList:r(d,i.getCharacterList(),o),type:C,data:h});return e.merge({blockMap:n.set(a,p),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:f,focusKey:u,focusOffset:f,isBackward:!1})})}(e,n,s,d.first(),u,f,c):l(e,n,s,d,u,f)},iD}function ET(){if(sD)return cD;sD=1;var e=lT().Map;return cD=function(t,n,r){var i=n.getStartKey(),a=n.getEndKey(),o=t.getBlockMap(),l=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===a}).concat(e([[a,o.get(a)]])).map(r);return t.merge({blockMap:o.merge(l),selectionBefore:n,selectionAfter:n})},cD}function bT(){if(uD)return dD;uD=1;var e=fT();return dD=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 a=n.get(i);a&&!a.getNextSiblingKey();){var o=a.getParentKey();a=o?n.get(o):null}return a?a.getNextSiblingKey():null}}function MT(){if(hD)return fD;hD=1;var e=fT(),t=bT(),n=lT();n.List;var r=n.Map,i=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},a=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},o=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},c=function(e,n,r,c){return e.withMutations(function(s){if(i(n.getKey(),s,function(e){return e.merge({nextSibling:o(e,s,c),prevSibling:l(e,s,c)})}),i(r.getKey(),s,function(e){return e.merge({nextSibling:o(e,s,c),prevSibling:l(e,s,c)})}),a(n.getKey(),c).forEach(function(e){return i(e,s,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return s.get(e)}),nextSibling:o(e,s,c),prevSibling:l(e,s,c)})})}),i(n.getNextSiblingKey(),s,function(e){return e.merge({prevSibling:n.getPrevSiblingKey()})}),i(n.getPrevSiblingKey(),s,function(e){return e.merge({nextSibling:o(e,s,c)})}),i(r.getNextSiblingKey(),s,function(e){return e.merge({prevSibling:l(e,s,c)})}),i(r.getPrevSiblingKey(),s,function(e){return e.merge({nextSibling:r.getNextSiblingKey()})}),a(r.getKey(),c).forEach(function(e){i(e,s,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return s.get(e)}),nextSibling:o(e,s,c),prevSibling:l(e,s,c)})})}),function(e,n){var r=[];if(!e)return r;for(var i=t(e,n);i&&n.get(i);){var a=n.get(i);r.push(i),i=a.getParentKey()?t(a,n):null}return r}(r,c).forEach(function(e){return i(e,s,function(e){return e.merge({nextSibling:o(e,s,c),prevSibling:l(e,s,c)})})}),null==e.get(n.getKey())&&null!=e.get(r.getKey())&&r.getParentKey()===n.getKey()&&null==r.getPrevSiblingKey()){var d=n.getPrevSiblingKey();i(r.getKey(),s,function(e){return e.merge({prevSibling:d})}),i(d,s,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,s,function(e){return e.merge({parent:f})})}),null!=f){var h=e.get(f);i(f,s,function(e){return e.merge({children:h.getChildKeys().concat(n.getChildKeys())})})}i(n.getChildKeys().find(function(t){return null===e.get(t).getNextSiblingKey()}),s,function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})}})},s=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 fD=function(n,i){if(i.isCollapsed())return n;var o,l=n.getBlockMap(),d=i.getStartKey(),u=i.getStartOffset(),f=i.getEndKey(),h=i.getEndOffset(),C=l.get(d),p=l.get(f),m=C instanceof e,A=[];if(m){var g=p.getChildKeys(),v=a(f,l);p.getNextSiblingKey()&&(A=A.concat(v)),g.isEmpty()||(A=A.concat(v.concat([f]))),A=A.concat(a(t(p,l),l))}o=C===p?s(C.getCharacterList(),u,h):C.getCharacterList().slice(0,u).concat(p.getCharacterList().slice(h));var w=C.merge({text:C.getText().slice(0,u)+p.getText().slice(h),characterList:o}),y=m&&0===u&&0===h&&p.getParentKey()===d&&null==p.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===A.indexOf(t)}).concat(r([[f,null]])).map(function(e,t){return t===d?w:null}),E=l.merge(y).filter(function(e){return!!e});return m&&C!==p&&(E=c(E,C,p,l)),n.merge({blockMap:E,selectionBefore:i,selectionAfter:i.merge({anchorKey:d,anchorOffset:u,focusKey:d,focusOffset:u,isBackward:!1})})},fD}function LT(){if(pD)return CD;pD=1;var e=fT(),t=mT(),n=lT(),r=CT(),i=ET(),a=n.List,o=n.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};return CD=function(n,c){c.isCollapsed()||("production"!==process.env.NODE_ENV?r(!1,"Selection range must be collapsed."):r(!1));var s=c.getAnchorKey(),d=n.getBlockMap(),u=d.get(s),f=u.getText();if(!f){var h=u.getType();if("unordered-list-item"===h||"ordered-list-item"===h)return i(n,c,function(e){return e.merge({type:"unstyled",depth:0})})}var C=c.getAnchorOffset(),p=u.getCharacterList(),m=t(),A=u instanceof e,g=u.merge({text:f.slice(0,C),characterList:p.slice(0,C)}),v=g.merge({key:m,text:f.slice(C),characterList:p.slice(C),data:o()}),w=d.toSeq().takeUntil(function(e){return e===u}),y=d.toSeq().skipUntil(function(e){return e===u}).rest(),E=w.concat([[s,g],[m,v]],y).toOrderedMap();return A&&(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,o=t.toArray();return o.splice(n,0,i),e.merge({children:a(o)})}),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,g,v)),n.merge({blockMap:E,selectionBefore:c,selectionAfter:c.merge({anchorKey:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})},CD}function HT(){if(AD)return mD;AD=1;var e=sT(),t=function(){if(NN)return IN;NN=1;var e=sT(),t=lT().Map;function n(n,r,i,a){var o=n.getBlockMap(),l=r.getStartKey(),c=r.getStartOffset(),s=r.getEndKey(),d=r.getEndOffset(),u=o.skipUntil(function(e,t){return t===l}).takeUntil(function(e,t){return t===s}).concat(t([[s,o.get(s)]])).map(function(t,n){var r,o;l===s?(r=c,o=d):(r=n===l?c:0,o=n===s?d:t.getLength());for(var u,f=t.getCharacterList();r<o;)u=f.get(r),f=f.set(r,a?e.applyStyle(u,i):e.removeStyle(u,i)),r++;return t.set("characterList",f)});return n.merge({blockMap:o.merge(u),selectionBefore:r,selectionAfter:r})}return IN={add:function(e,t,r){return n(e,t,r,!0)},remove:function(e,t,r){return n(e,t,r,!1)}}}(),n=hT(),r=pT(),i=vT(),a=lT(),o=yT(),l=function(){if(lD)return oD;lD=1;var e=lT(),t=wT(),n=CT(),r=e.Repeat;return oD=function(e,i,a,o){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!=a&&(l=a.length),null==l||0===l)return e;var c=e.getBlockMap(),s=i.getStartKey(),d=i.getStartOffset(),u=c.get(s),f=u.getText(),h=u.merge({text:f.slice(0,d)+a+f.slice(d,u.getLength()),characterList:t(u.getCharacterList(),r(o,l).toList(),d)}),C=d+l;return e.merge({blockMap:c.set(s,h),selectionAfter:i.merge({anchorOffset:C,focusOffset:C})})},oD}(),c=CT(),s=ET(),d=gT(),u=MT(),f=LT(),h=a.OrderedSet,C={replaceText:function(t,n,r,i,a){var o=d(t,n),c=u(o,n),s=e.create({style:i||h(),entity:a||null});return l(c,c.getSelectionAfter(),r,s)},insertText:function(e,t,n,r,i){return t.isCollapsed()||("production"!==process.env.NODE_ENV?c(!1,"Target range must be collapsed for `insertText`."):c(!1)),C.replaceText(e,t,n,r,i)},moveText:function(e,t,n){var r=i(e,t),a=C.removeRange(e,t,"backward");return C.replaceWithFragment(a,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),a=u(i,t);return o(a,a.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var i,a,o,l;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),a=t.getFocusKey(),o=e.getBlockForKey(i),l=e.getBlockForKey(a);var c=t.getStartOffset(),s=t.getEndOffset(),f=o.getEntityAt(c),h=l.getEntityAt(s-1);if(i===a&&f&&f===h){var C=r(e.getEntityMap(),o,l,t,n);return u(e,C)}var p=d(e,t);return u(p,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 s(e,t,function(e){return e.merge({type:n,depth:0})})},setBlockData:function(e,t,n){return s(e,t,function(e){return e.merge({data:n})})},mergeBlockData:function(e,t,n){return s(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 mD=C}function xT(){if(vD)return gD;return vD=1,gD=function(e){return Object.keys(e).map(function(t){return e[t]})},gD}function VT(){if(yD)return wD;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}yD=1;var t=dT(),n=xT(),r=lT(),i=r.List,a=r.Repeat,o=r.Record,l=function(){return!0},c=o({start:null,end:null}),s=o({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,n,r){var o=n.getLength();if(!o)return i.of(new s({start:0,end:0,decoratorKey:null,leaves:i.of(new c({start:0,end:0}))}));var d=[],h=r?r.getDecorations(n,e):i(a(null,o)),C=n.getCharacterList();return t(h,f,l,function(e,t){d.push(new s({start:e,end:t,decoratorKey:h.get(e),leaves:u(C.slice(e,t).toList(),e)}))}),i(d)},fromJS:function(t){var r=t.leaves,a=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["leaves"]);return new s(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}({},a,{leaves:null!=r?i(Array.isArray(r)?r:n(r)).map(function(e){return c(e)}):null}))}};function u(e,n){var r=[],a=e.map(function(e){return e.getStyle()}).toList();return t(a,f,l,function(e,t){r.push(new c({start:e+n,end:t+n}))}),i(r)}function f(e,t){return e===t}return wD=d}function kT(){if(bD)return ED;bD=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,lT().Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));return ED=e}function ST(){if(xD)return HD;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}xD=1;var t=kT(),n=lT(),r=CT(),i=LD?MD:(LD=1,MD=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)})}),a=(0,n.Map)(),o=i();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var c={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),c.__getLastCreatedEntityKey()},create:function(e,t,n){return l("DraftEntity.create","contentState.createEntity"),c.__create(e,t,n)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),c.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),c.__get(e)},__getAll:function(){return a},__loadWithEntities:function(e){a=e,o=i()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),c.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),c.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return o},__create:function(e,n,r){return c.__add(new t({type:e,mutability:n,data:r||{}}))},__add:function(e){return o=i(),a=a.set(o,e),o},__get:function(e){var t=a.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=c.__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),o=r.set("data",i);return a=a.set(t,o),o},__replaceData:function(e,t){var n=c.__get(e).set("data",t);return a=a.set(e,n),n}};return HD=c}function ZT(){if(kD)return VD;kD=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 a=this.getStartOffset(),o=this.getEndOffset();return t<=a&&a<=n||t<=o&&o<=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,lT().Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));return VD=e}function OT(){return ZD?SD:(ZD=1,SD=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]})}function zT(){if(zD)return OD;zD=1;var e=new RegExp("\r","g");return OD=function(t){return t.replace(e,"")}}function IT(){if(ND)return ID;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}ND=1;var n=cT(),r=sT(),i=uT(),a=fT(),o=ST(),l=ZT(),c=mT(),s=xT(),d=OT(),u=lT(),f=zT(),h=u.List,C=u.Record,p=u.Repeat,m=u.Map,A=u.OrderedMap,g=C({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),v=d("draft_tree_data_support")?a:i,w=function(t){var i,a;function d(){return t.apply(this,arguments)||this}a=t,(i=d).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a;var u=d.prototype;return u.getEntityMap=function(){return o},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 o.__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 o.__create(e,t,n),this},u.mergeEntityData=function(e,t){return o.__mergeData(e,t),this},u.replaceEntityData=function(e,t){return o.__replaceData(e,t),this},u.addEntity=function(e){return o.__add(e),this},u.getEntity=function(e){return o.__get(e)},u.getAllEntities=function(){return o.__getAll()},u.loadWithEntities=function(e){return o.__loadWithEntities(e)},d.createFromBlockArray=function(e,t){var r=Array.isArray(e)?e:e.contentBlocks,i=n.createFromArray(r),a=i.isEmpty()?new l:l.createEmpty(i.first().getKey());return new d({blockMap:i,entityMap:t||o,selectionBefore:a,selectionAfter:a})},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 v({key:c(),text:e,type:"unstyled",characterList:h(p(r.EMPTY,e.length))})});return d.createFromBlockArray(n)},d.fromJS=function(t){return new d(e({},t,{blockMap:A(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 v(e({},t,{data:m(t.data),characterList:null!=n?h((Array.isArray(n)?n:s(n)).map(function(e){return r.fromJS(e)})):void 0}))},d}(g);return ID=w}function NT(){if(TD)return DD;TD=1;var e=CT(),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 a(e){n=e}return DD={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:a,initGlobalDir:function(){a(t)},getGlobalDir:function(){return n||this.initGlobalDir(),n||("production"!==process.env.NODE_ENV?e(!1,"Global direction not set."):e(!1)),n}}}function DT(){if(RD)return FD;RD=1;var e=NT(),t=CT(),n="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",r="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",i=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+n+r+"]"),a=new RegExp("["+n+r+"]");function o(e){var t=i.exec(e);return null==t?null:t[0]}function l(t){var n=o(t);return null==n?e.NEUTRAL:a.exec(n)?e.RTL:e.LTR}function c(t,n){if(n=n||e.NEUTRAL,!t.length)return n;var r=l(t);return r===e.NEUTRAL?n:r}function s(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)),c(n,r)}return FD={firstStrongChar:o,firstStrongCharDir:l,resolveBlockDir:c,getDirection:s,isDirectionLTR:function(t,n){return s(t,n)===e.LTR},isDirectionRTL:function(t,n){return s(t,n)===e.RTL}}}function TT(){if(UD)return PD;UD=1;return PD=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}}function FT(){if(WD)return qD;WD=1;var e,t=function(){if(jD)return BD;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}jD=1;var t=DT(),n=NT(),r=CT();return BD=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 a=i.prototype;return a.reset=function(){this._lastDir=this._defaultDir},a.getDirection=function(e){return this._lastDir=t.getDirection(e,this._lastDir),this._lastDir},i}()}(),n=lT(),r=TT(),i=n.OrderedMap;return qD={getDirectionMap:function(a,o){e?e.reset():e=new t;var l=a.getBlockMap(),c=l.valueSeq().map(function(t){return r(e).getDirection(t.getText())}),s=i(l.keySeq().zip(c));return null!=o&&n.is(o,s)?o:s}}}function RT(){if(QD)return XD;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}QD=1;var n=VT(),r=IT(),i=FT(),a=ZT(),o=lT(),l=o.OrderedSet,c=o.Record,s=o.Stack,d=o.OrderedMap,u=o.List,f=c({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:s(),selection:null,treeMap:null,undoStack:s()}),h=function(){c.createEmpty=function(e){return this.createWithText("",e)},c.createWithText=function(e,t){return c.createWithContent(r.createFromText(e),t)},c.createWithContent=function(e,t){if(0===e.getBlockMap().count())return c.createEmpty(t);var n=e.getBlockMap().first().getKey();return c.create({currentContent:e,undoStack:s(),redoStack:s(),decorator:t||null,selection:a.createEmpty(n)})},c.create=function(t){var n=t.currentContent,r=e({},t,{treeMap:p(n,t.decorator),directionMap:i.getDirectionMap(n)});return new c(new f(r))},c.fromJS=function(t){return new c(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?s(t.redoStack.map(function(e){return r.fromJS(e)})):t.redoStack,selection:null!=t.selection?new a(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?s(t.undoStack.map(function(e){return r.fromJS(e)})):t.undoStack,currentContent:r.fromJS(t.currentContent)})))},c.set=function(e,t){var r=e.getImmutable().withMutations(function(r){var i=r.get("decorator"),a=i;null===t.decorator?a=null:t.decorator&&(a=t.decorator);var o=t.currentContent||e.getCurrentContent();if(a!==i){var l,c=r.get("treeMap");return l=a&&i?function(e,t,r,i,a){return r.merge(t.toSeq().filter(function(t){return i.getDecorations(t,e)!==a.getDecorations(t,e)}).map(function(t){return n.generate(e,t,i)}))}(o,o.getBlockMap(),c,a,i):p(o,a),void r.merge({decorator:a,treeMap:l,nativelyRenderedContent:null})}o!==e.getCurrentContent()&&r.set("treeMap",function(e,t,r,i){var a=e.getCurrentContent().set("entityMap",r),o=a.getBlockMap(),l=e.getImmutable().get("treeMap");return l.merge(t.toSeq().filter(function(e,t){return e!==o.get(t)}).map(function(e){return n.generate(a,e,i)}))}(e,o.getBlockMap(),o.getEntityMap(),a)),r.merge(t)});return new c(r)};var o=c.prototype;function c(e){t(this,"_immutable",void 0),this._immutable=e}return o.toJS=function(){return this.getImmutable().toJS()},o.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},o.getCurrentContent=function(){return this.getImmutable().get("currentContent")},o.getUndoStack=function(){return this.getImmutable().get("undoStack")},o.getRedoStack=function(){return this.getImmutable().get("redoStack")},o.getSelection=function(){return this.getImmutable().get("selection")},o.getDecorator=function(){return this.getImmutable().get("decorator")},o.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},o.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},o.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},o.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},o.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},c.setInlineStyleOverride=function(e,t){return c.set(e,{inlineStyleOverride:t})},o.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)},o.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},o.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},o.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},o.getDirectionMap=function(){return this.getImmutable().get("directionMap")},c.acceptSelection=function(e,t){return C(e,t,!1)},c.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),C(e,t,!0)},c.moveSelectionToEnd=function(e){var t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength();return c.acceptSelection(e,new a({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}))},c.moveFocusToEnd=function(e){var t=c.moveSelectionToEnd(e);return c.forceSelection(t,t.getSelection())},c.push=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===t)return e;var a=i.getDirectionMap(t,e.getDirectionMap());if(!e.getAllowUndo())return c.set(e,{currentContent:t,directionMap:a,lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var o=e.getSelection(),l=e.getCurrentContent(),d=e.getUndoStack(),u=t;o!==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",o)):"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:a,undoStack:d,redoStack:s(),lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:f};return c.set(e,h)},c.undo=function(e){if(!e.getAllowUndo())return e;var t=e.getUndoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),a=i.getDirectionMap(n,e.getDirectionMap());return c.set(e,{currentContent:n,directionMap:a,undoStack:t.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},c.redo=function(e){if(!e.getAllowUndo())return e;var t=e.getRedoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),a=i.getDirectionMap(n,e.getDirectionMap());return c.set(e,{currentContent:n,directionMap:a,undoStack:e.getUndoStack().push(r),redoStack:t.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},o.getImmutable=function(){return this._immutable},c}();function C(e,t,n){return h.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function p(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 XD=h}function BT(){if(_D)return YD;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}_D=1;var n=cT(),r=sT(),i=uT(),a=fT(),o=HT(),l=RT(),c=mT(),s=OT(),d=lT(),u=function(){if(KD)return GD;KD=1;var e=fT(),t=bT(),n=lT(),r=CT(),i=n.OrderedMap,a=n.List,o=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,c=t.getKey(),s=n.getKey(),d=t.getParentKey(),u=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),h=n.getParentKey(),C=l?n.getNextSiblingKey():s,p=l?s:n.getPrevSiblingKey();return e.withMutations(function(e){o(d,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(c))})}),o(f,e,function(e){return e.merge({nextSibling:u})}),o(u,e,function(e){return e.merge({prevSibling:f})}),o(C,e,function(e){return e.merge({prevSibling:c})}),o(p,e,function(e){return e.merge({nextSibling:c})}),o(h,e,function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=l?n+1:0!==n?n-1:0,i=t.toArray();return i.splice(r,0,c),e.merge({children:a(i)})}),o(c,e,function(e){return e.merge({nextSibling:C,prevSibling:p,parent:h})})})};return GD=function(n,a,o,c){"replace"===c&&("production"!==process.env.NODE_ENV?r(!1,"Replacing blocks is not supported."):r(!1));var s=o.getKey(),d=a.getKey();d===s&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1));var u=n.getBlockMap(),f=a instanceof e,h=[a],C=u.delete(d);f&&(h=[],C=u.withMutations(function(e){var n=a.getNextSiblingKey(),r=t(a,e);e.toSeq().skipUntil(function(e){return e.getKey()===d}).takeWhile(function(e){var t=e.getKey(),i=t===d,a=n&&t!==n,o=!n&&e.getParentKey()&&(!r||t!==r);return!!(i||a||o)}).forEach(function(t){h.push(t),e.delete(t.getKey())})}));var p=C.toSeq().takeUntil(function(e){return e===o}),m=C.toSeq().skipUntil(function(e){return e===o}).skip(1),A=h.map(function(e){return[e.getKey(),e]}),g=i();if("before"===c){var v=n.getBlockBefore(s);v&&v.getKey()===a.getKey()&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),g=p.concat([].concat(A,[[s,o]]),m).toOrderedMap()}else if("after"===c){var w=n.getBlockAfter(s);w&&w.getKey()===d&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),g=p.concat([[s,o]].concat(A),m).toOrderedMap()}return n.merge({blockMap:l(g,a,o,c,f),selectionBefore:n.getSelectionAfter(),selectionAfter:n.getSelectionAfter().merge({anchorKey:d,focusKey:d})})},GD}(),f=s("draft_tree_data_support"),h=f?a:i,C=d.List,p=d.Repeat;return YD={insertAtomicBlock:function(t,i,a){var s=t.getCurrentContent(),d=t.getSelection(),u=o.removeRange(s,d,"backward"),m=u.getSelectionAfter(),A=o.splitBlock(u,m),g=A.getSelectionAfter(),v=o.setBlockType(A,g,"atomic"),w=r.create({entity:i}),y={key:c(),type:"atomic",text:a,characterList:C(p(w,a.length))},E={key:c(),type:"unstyled"};f&&(y=e({},y,{nextSibling:E.key}),E=e({},E,{prevSibling:y.key}));var b=[new h(y),new h(E)],M=n.createFromArray(b),L=o.replaceWithFragment(v,g,M),H=L.merge({selectionBefore:d,selectionAfter:L.getSelectionAfter().set("hasFocus",!0)});return l.push(t,H,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var i,a=e.getCurrentContent(),c=e.getSelection();if("before"===r||"after"===r){var s=a.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());i=u(a,t,s,r)}else{var d=o.removeRange(a,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 C=o.splitBlock(d,f),p=C.getSelectionAfter(),m=C.getBlockForKey(p.getFocusKey());i=u(C,t,m,"before")}}var A=i.merge({selectionBefore:c,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return l.push(e,A,"move-block")}}}function jT(){if($D)return JD;$D=1;var e=lT().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 a=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+"."+a),a++)},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 JD=t}function PT(){if(tT)return eT;function e(e){return e.replace(/\//g,"-")}return tT=1,eT=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(" ")},eT}function UT(){if(rT)return nT;rT=1;var e=i,t=PT(),n=(0,lT().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 nT=n}function qT(){return aT?iT:(aT=1,iT={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}})}var WT,XT,QT,GT,KT,YT,_T,JT,$T,eF,tF,nF,rF,iF,aF,oF,lF,cF,sF,dF,uF,fF,hF,CF,pF,mF,AF,gF,vF,wF,yF,EF,bF,MF,LF,HF,xF,VF,kF,SF,ZF,OF,zF,IF,NF,DF,TF,FF,RF,BF,jF,PF,UF,qF,WF,XF,QF,GF,KF,YF,_F,JF,$F,eR,tR,nR,rR,iR,aR,oR,lR,cR,sR,dR,uR,fR,hR,CR,pR,mR,AR,gR,vR,wR,yR,ER,bR,MR,LR,HR,xR,VR,kR,SR,ZR,OR,zR,IR,NR,DR,TR,FR,RR,BR,jR,PR,UR,qR,WR,XR,QR,GR,KR,YR,_R,JR,$R,eB,tB,nB={exports:{}},rB=nB.exports;function iB(){return WT||(WT=1,function(e,t){!function(n,r){var i="function",a="undefined",o="object",l="string",c="major",s="model",d="name",u="type",f="vendor",h="version",C="architecture",p="console",m="mobile",A="tablet",g="smarttv",v="wearable",w="embedded",y="Amazon",E="Apple",b="ASUS",M="BlackBerry",L="Browser",H="Chrome",x="Firefox",V="Google",k="Honor",S="Huawei",Z="LG",O="Microsoft",z="Motorola",I="Nvidia",N="OnePlus",D="Opera",T="OPPO",F="Samsung",R="Sharp",B="Sony",j="Xiaomi",P="Zebra",U="Facebook",q="Chromium OS",W="Mac OS",X=" 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===a?e:e.substring(0,500)},_=function(e,t){for(var n,a,l,c,s,d,u=0;u<t.length&&!s;){var f=t[u],h=t[u+1];for(n=a=0;n<f.length&&!s&&f[n];)if(s=f[n++].exec(e))for(l=0;l<h.length;l++)d=s[++a],typeof(c=h[l])===o&&c.length>0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,d):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=d?d.replace(c[1],c[2]):r:this[c[0]]=d?c[1].call(this,d,c[2]):r:4===c.length&&(this[c[0]]=d?c[3].call(this,d.replace(c[1],c[2])):r):this[c]=d||r;u+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===o&&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,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[d,D+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[d,D]],[/\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"+L]],[/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 "+L]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+L],h],[/\bfocus\/([\w\.]+)/i],[h,[d,x+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI"+X]],[/fxios\/([\w\.-]+)/i],[h,[d,x]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+X],h],[/samsungbrowser\/([\w\.]+)/i],[h,[d,F+" 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,U],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,H+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,H+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+L]],[/(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,x+" 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],[[C,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[C,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[C,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[C,/ower/,"",K]],[/ sun4\w[;\)]/i],[[C,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[C,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],[s,[f,F],[u,A]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[f,F],[u,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[f,E],[u,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[f,E],[u,A]],[/(macintosh);/i],[s,[f,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[f,R],[u,m]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[s,[f,k],[u,A]],[/honor([-\w ]+)[;\)]/i],[s,[f,k],[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],[s,[f,S],[u,A]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[f,S],[u,m]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[s,/_/g," "],[f,j],[u,A]],[/\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],[[s,/_/g," "],[f,j],[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],[s,[f,T],[u,m]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[f,J,{OnePlus:["304","403","203"],"*":T}],[u,A]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[f,"Vivo"],[u,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[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],[s,[f,z],[u,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[f,z],[u,A]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[f,Z],[u,A]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[f,Z],[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],[s,[f,"Lenovo"],[u,A]],[/(nokia) (t[12][01])/i],[f,s,[u,A]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[s,/_/g," "],[u,m],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[s,[f,V],[u,A]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[f,V],[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],[s,[f,B],[u,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[f,B],[u,A]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[f,N],[u,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[f,y],[u,A]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[f,y],[u,m]],[/(playbook);[-\w\),; ]+(rim)/i],[s,f,[u,A]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[f,M],[u,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[f,b],[u,A]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[f,b],[u,m]],[/(nexus 9)/i],[s,[f,"HTC"],[u,A]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[s,/_/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],[s,[f,"TCL"],[u,A]],[/(itel) ((\w+))/i],[[f,K],s,[u,J,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[f,"Acer"],[u,A]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[f,"Meizu"],[u,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[f,"Ulefone"],[u,m]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[f,"Energizer"],[u,m]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[f,"Cat"],[u,m]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[f,"Smartfren"],[u,m]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[f,"Nothing"],[u,m]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[s,[f,"Archos"],[u,A]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[s,[f,"Archos"],[u,m]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,s,[u,A]],[/(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,s,[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,s,[u,A]],[/(surface duo)/i],[s,[f,O],[u,A]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[f,"Fairphone"],[u,m]],[/(u304aa)/i],[s,[f,"AT&T"],[u,m]],[/\bsie-(\w*)/i],[s,[f,"Siemens"],[u,m]],[/\b(rct\w+) b/i],[s,[f,"RCA"],[u,A]],[/\b(venue[\d ]{2,7}) b/i],[s,[f,"Dell"],[u,A]],[/\b(q(?:mv|ta)\w+) b/i],[s,[f,"Verizon"],[u,A]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[f,"Barnes & Noble"],[u,A]],[/\b(tm\d{3}\w+) b/i],[s,[f,"NuVision"],[u,A]],[/\b(k88) b/i],[s,[f,"ZTE"],[u,A]],[/\b(nx\d{3}j) b/i],[s,[f,"ZTE"],[u,m]],[/\b(gen\d{3}) b.+49h/i],[s,[f,"Swiss"],[u,m]],[/\b(zur\d{3}) b/i],[s,[f,"Swiss"],[u,A]],[/\b((zeki)?tb.*\b) b/i],[s,[f,"Zeki"],[u,A]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],s,[u,A]],[/\b(ns-?\w{0,9}) b/i],[s,[f,"Insignia"],[u,A]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[f,"NextBook"],[u,A]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],s,[u,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],s,[u,m]],[/\b(ph-1) /i],[s,[f,"Essential"],[u,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[f,"Envizen"],[u,A]],[/\b(trio[-\w\. ]+) b/i],[s,[f,"MachSpeed"],[u,A]],[/\btu_(1491) b/i],[s,[f,"Rotor"],[u,A]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[s,[f,I],[u,A]],[/(sprint) (\w+)/i],[f,s,[u,m]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[f,O],[u,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[f,P],[u,A]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[f,P],[u,m]],[/smart-tv.+(samsung)/i],[f,[u,g]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[f,F],[u,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,Z],[u,g]],[/(apple) ?tv/i],[f,[s,E+" TV"],[u,g]],[/crkey/i],[[s,H+"cast"],[f,V],[u,g]],[/droid.+aft(\w+)( bui|\))/i],[s,[f,y],[u,g]],[/(shield \w+ tv)/i],[s,[f,I],[u,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[f,R],[u,g]],[/(bravia[\w ]+)( bui|\))/i],[s,[f,B],[u,g]],[/(mi(tv|box)-?\w+) bui/i],[s,[f,j],[u,g]],[/Hbbtv.*(technisat) (.*);/i],[f,s,[u,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,Y],[s,Y],[u,g]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[s,[u,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,s,[u,p]],[/droid.+; (shield)( bui|\))/i],[s,[f,I],[u,p]],[/(playstation \w+)/i],[s,[f,B],[u,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[f,O],[u,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[s,[f,F],[u,v]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,s,[u,v]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[s,[f,T],[u,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[f,E],[u,v]],[/(opwwe\d{3})/i],[s,[f,N],[u,v]],[/(moto 360)/i],[s,[f,z],[u,v]],[/(smartwatch 3)/i],[s,[f,B],[u,v]],[/(g watch r)/i],[s,[f,Z],[u,v]],[/droid.+; (wt63?0{2,3})\)/i],[s,[f,P],[u,v]],[/droid.+; (glass) \d/i],[s,[f,V],[u,v]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,s,[u,v]],[/; (quest( \d| pro)?)/i],[s,[f,U],[u,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[u,w]],[/(aeobc)\b/i],[s,[f,y],[u,w]],[/(homepod).+mac os/i],[s,[f,E],[u,w]],[/windows iot/i],[[u,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[u,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[u,A]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,A]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,m]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[s,[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,W],[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,M]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,x+" 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,H+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,q],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===o&&(t=e,e=r),!(this instanceof te))return new te(e,t).getResult();var p=typeof n!==a&&n.navigator?n.navigator:r,g=e||(p&&p.userAgent?p.userAgent:""),v=p&&p.userAgentData?p.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,y=p&&p.userAgent==g;return this.getBrowser=function(){var e={};return e[d]=r,e[h]=r,_.call(e,g,w.browser),e[c]=function(e){return typeof e===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r}(e[h]),y&&p&&p.brave&&typeof p.brave.isBrave==i&&(e[d]="Brave"),e},this.getCPU=function(){var e={};return e[C]=r,_.call(e,g,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[s]=r,e[u]=r,_.call(e,g,w.device),y&&!e[u]&&v&&v.mobile&&(e[u]=m),y&&"Macintosh"==e[s]&&p&&typeof p.standalone!==a&&p.maxTouchPoints&&p.maxTouchPoints>2&&(e[s]="iPad",e[u]=A),e},this.getEngine=function(){var e={};return e[d]=r,e[h]=r,_.call(e,g,w.engine),e},this.getOS=function(){var e={};return e[d]=r,e[h]=r,_.call(e,g,w.os),y&&!e[d]&&v&&v.platform&&"Unknown"!=v.platform&&(e[d]=v.platform.replace(/chrome os/i,q).replace(/macos/i,W)),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 g},this.setUA=function(e){return g=typeof e===l&&e.length>500?Y(e,500):e,this},this.setUA(g),this};te.VERSION="0.7.41",te.BROWSER=Q([d,h,c]),te.CPU=Q([C]),te.DEVICE=Q([s,f,u,p,m,g,A,v,w]),te.ENGINE=te.OS=Q([d,h]),e.exports&&(t=e.exports=te),t.UAParser=te;var ne=typeof n!==a&&(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:rB)}(nB,nB.exports)),nB.exports}function aB(){if(QT)return XT;QT=1;var e=iB(),t="Unknown",n={"Mac OS":"Mac OS X"};var r,i=(new e).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),o={browserArchitecture:i.cpu.architecture||t,browserFullVersion:i.browser.version||t,browserMinorVersion:a.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 XT=o}function oB(){if(KT)return GT;KT=1;var e=CT(),t=/\./,n=/\|\|/,r=/\s+\-\s+/,i=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,a=/^(\d*)(.*)/;function o(t,i){var a=t.split(n);return a.length>1?a.some(function(e){return A.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 a=i[0],o=i[1];return f(a)&&f(o)||("production"!==process.env.NODE_ENV?e(!1,'operands to the "-" operator must be simple (no modifiers)'):e(!1)),l(">="+a,n)&&l("<="+o,n)}(t=a[0].trim(),i)}function l(e,n){if(""===(e=e.trim()))return!0;var r=n.split(t),i=d(e),a=i.modifier,o=i.rangeComponents;switch(a){case"<":return c(r,o);case"<=":return function(e,t){var n=m(e,t);return-1===n||0===n}(r,o);case">=":return s(r,o);case">":return 1===m(r,o);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,a=parseInt(r[i],10);u(a)&&(r[i]=a+1+"");return s(e,n)&&c(e,r)}(r,o);default:return function(e,t){return 0===m(e,t)}(r,o)}}function c(e,t){return-1===m(e,t)}function s(e,t){var n=m(e,t);return 1===n||0===n}function d(n){var r=n.split(t),a=r[0].match(i);return a||("production"!==process.env.NODE_ENV?e(!1,"expected regex to match but it did not"):e(!1)),{modifier:a[1],rangeComponents:[a[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 C(e,t){var n=e.match(a)[1],r=t.match(a)[1],i=parseInt(n,10),o=parseInt(r,10);return u(i)&&u(o)&&i!==o?p(i,o):p(e,t)}function p(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],a=0;a<i.length;a++){var o=C(r[a],i[a]);if(o)return o}return 0}var A={contains:function(e,t){return o(e.trim(),t.trim())}};return GT=A}function lB(){if(tF)return eF;tF=1;var e=aB(),t=oB(),n=function(){if(_T)return YT;_T=1;var e=Object.prototype.hasOwnProperty;return YT=function(t,n,r){if(!t)return null;var i={};for(var a in t)e.call(t,a)&&(i[a]=n.call(r,t[a],a,t));return i},YT}(),r=$T?JT:($T=1,JT=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 a=r.slice(e.length);return!!n&&(a=i?i(a):a,t.contains(a,n))}function a(t){return"Windows"===e.platformName?t.replace(/^\s*NT/,""):t}return eF=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,a)},isPlatformArchitecture:function(t){return i(e.platformArchitecture,null,t)}},r)}function cB(){if(rF)return nF;return rF=1,nF=function(e){return e&&e.ownerDocument?e.ownerDocument:document}}function sB(){if(aF)return iF;return aF=1,iF=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}}function dB(){if(lF)return oF;lF=1;var e=sB();return oF=function t(n){if(e(n)){var r=n,i=r.getAttribute("data-offset-key");if(i)return i;for(var a=0;a<r.childNodes.length;a++){var o=t(r.childNodes[a]);if(o)return o}}return null},oF}function uB(){if(sF)return cF;sF=1;var e=cB(),t=dB();return cF=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},cF}function fB(){if(uF)return dF;return uF=1,dF=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}}function hB(){if(pF)return CF;pF=1;var e="-";return CF={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 CB(){return AF?mF:(AF=1,mF={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 pB(){return vF?gF:(vF=1,gF={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}})}function mB(){if(yF)return wF;return yF=1,wF=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}}function AB(){if(bF)return EF;bF=1;var e=CT(),t=mB();return EF=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 gB(){if(LF)return MF;LF=1;var e=hB(),t=TT();return MF=function(n,r,i,a,o){var l=t(n.getSelection());if(!r||!a)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var c=e.decode(r),s=c.blockKey,d=n.getBlockTree(s),u=d&&d.getIn([c.decoratorKey,"leaves",c.leafKey]),f=e.decode(a),h=f.blockKey,C=n.getBlockTree(h),p=C&&C.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!u||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var m=u.get("start"),A=p.get("start"),g=u?m+i:null,v=p?A+o:null;if(l.getAnchorKey()===s&&l.getAnchorOffset()===g&&l.getFocusKey()===h&&l.getFocusOffset()===v)return l;var w=!1;if(s===h){var y=u.get("end"),E=p.get("end");w=A===m&&E===y?o<i:A<m}else{w=n.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===s||e===h}).first()===h}return l.merge({anchorKey:s,anchorOffset:g,focusKey:h,focusOffset:v,isBackward:w})},MF}function vB(){if(xF)return HF;xF=1;var e=uB(),t=dB(),n=gB(),r=CT(),i=sB(),a=TT();function o(n,o,c){var s=o,d=e(s);(null!=d||n&&(n===s||n.firstChild===s)||("production"!==process.env.NODE_ENV?r(!1,"Unknown node in selection range."):r(!1)),n===s)&&(s=s.firstChild,i(s)||("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents node."):r(!1)),"true"!==(s=s).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents structure."):r(!1)),c>0&&(c=s.childNodes.length));if(0===c){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}(s);u=a(t(f))}return{key:u,offset:0}}var h=s.childNodes[c-1],C=null,p=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);C=a(t(m)),p=l(m)}else C=a(d),p=l(h);return{key:C,offset:p}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}return HF=function(t,r,i,l,c,s){var d=i.nodeType===Node.TEXT_NODE,u=c.nodeType===Node.TEXT_NODE;if(d&&u)return{selectionState:n(t,a(e(i)),l,a(e(c)),s),needsRecovery:!1};var f=null,h=null,C=!0;return d?(f={key:a(e(i)),offset:l},h=o(r,c,s)):u?(h={key:a(e(c)),offset:s},f=o(r,i,l)):(f=o(r,i,l),h=o(r,c,s),i===c&&l===s&&(C=!!i.firstChild&&"BR"!==i.firstChild.nodeName)),{selectionState:n(t,f.key,f.offset,h.key,h.offset),needsRecovery:C}}}function wB(){if(kF)return VF;kF=1;var e=vB();return VF=function(t,n){var r=n.ownerDocument.defaultView.getSelection(),i=r.anchorNode,a=r.anchorOffset,o=r.focusNode,l=r.focusOffset;return 0===r.rangeCount||null==i||null==o?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:e(t,n,i,a,o,l)}}function yB(){if(ZF)return SF;ZF=1;var e=pB(),t=RT(),n=AB(),r=wB();return SF=function(i){if(i._blockSelectEvents||i._latestEditorState!==i.props.editorState){if(i._blockSelectEvents){var a=i.props.editorState.getSelection();e.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(a.toJS())})}}else{var o=i.props.editorState,l=r(o,n(i)),c=l.selectionState;c!==o.getSelection()&&(o=l.needsRecovery?t.forceSelection(o,c):t.acceptSelection(o,c),i.update(o))}}}function EB(){if(zF)return OF;return zF=1,OF={notEmptyKey:function(e){return null!=e&&""!=e}},OF}function bB(){if(NF)return IF;NF=1;var e=EB().notEmptyKey;function t(t,n){return e(n)&&"MUTABLE"===t.__get(n).getMutability()?n:null}return IF=function(e,n){var r;if(n.isCollapsed()){var i=n.getAnchorKey(),a=n.getAnchorOffset();return a>0?(r=e.getBlockForKey(i).getEntityAt(a-1))!==e.getBlockForKey(i).getEntityAt(a)?null:t(e.getEntityMap(),r):null}var o=n.getStartKey(),l=n.getStartOffset(),c=e.getBlockForKey(o);return r=l===c.getLength()?null:c.getEntityAt(l),t(e.getEntityMap(),r)},IF}function MB(){if(TF)return DF;TF=1;var e=function(){if(hF)return fF;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}hF=1;var t=lB(),n=uB(),r=fB(),i=lT(),a=CT(),o=TT(),l=i.Map,c={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},s=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&&!s?this.observer=new i.MutationObserver(function(e){return n.registerMutations(e)}):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?a(!1,"Expected target to be an instance of Node"):a(!1)),n.registerMutation({type:"characterData",target:e.target})}}var i=t.prototype;return i.start=function(){this.observer?this.observer.observe(this.container,c):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 s?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=o(n(e.target));this.mutations=this.mutations.set(r,t)}},t}();return fF=d}(),t=HT(),n=hB(),r=RT(),i=CB(),a=lB(),o=yB(),l=AB(),c=wB(),s=bB(),d=TT(),u=a.isBrowser("IE"),f=!1,h=!1,C=null;var p={onCompositionStart:function(t){h=!0,function(t){C||(C=new e(l(t))).start()}(t)},onCompositionEnd:function(e){f=!1,h=!1,setTimeout(function(){f||p.resolveComposition(e)},20)},onSelect:o,onKeyDown:function(e,t){if(!h)return p.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(C).stopAndFlushMutations();C=null,f=!0;var a=r.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),i.size){var o=a.getCurrentContent();i.forEach(function(e,i){var l=n.decode(i),c=l.blockKey,d=l.decoratorKey,u=l.leafKey,f=a.getBlockTree(c).getIn([d,"leaves",u]),h=f.start,C=f.end,p=a.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:h,focusOffset:C,isBackward:!1}),m=s(o,p),A=o.getBlockForKey(c).getInlineStyleAt(h);o=t.replaceText(o,p,e,A,m),a=r.set(a,{currentContent:o})});var p=c(a,l(e)).selectionState;e.restoreEditorDOM();var m=u?r.forceSelection(a,p):r.acceptSelection(a,p);e.update(r.push(m,o,"insert-characters"))}else e.update(a)}}};return DF=p}function LB(){if(RF)return FF;RF=1;var e=Lm();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=hB(),r=i,a=DT(),o=NT(),l=function(e){var i,l;function c(){return e.apply(this,arguments)||this}return l=e,(i=c).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l,c.prototype.render=function(){var e=this.props,i=e.block,l=e.children,c=e.contentState,s=e.decorator,d=e.decoratorKey,u=e.direction,f=e.leafSet,h=e.text,C=i.getKey(),p=f.get("leaves"),m=s.getComponentForKey(d),A=s.getPropsForKey(d),g=n.encode(C,parseInt(d,10),0),v=h.slice(p.first().get("start"),p.last().get("end")),w=o.getHTMLDirIfDifferent(a.getDirection(v),u);return r.createElement(m,t({},A,{contentState:c,decoratedText:v,dir:w,key:g,entityKey:i.getEntityAt(f.get("start")),offsetKey:g}),l)},c}(r.Component);return FF=l}function HB(){if(jF)return BF;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}jF=1;var n=i,r=lB(),a=CT(),o=sB(),l=r.isBrowser("IE <= 11");var c=function(r){var i,c;function s(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}c=r,(i=s).prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c;var d=s.prototype;return d.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;o(t)||("production"!==process.env.NODE_ENV?a(!1,"node is not an Element"):a(!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)},s}(n.Component);return BF=c}function xB(){if(UF)return PF;UF=1;var e=sB();return PF=function(t){return!(!t||!t.ownerDocument)&&(e(t)&&"BR"===t.nodeName)}}function VB(){return WF?qF:(WF=1,qF={initODS:function(){},handleExtensionCausedError:function(){}})}function kB(){if(KF)return GF;KF=1;var e=QF?XF:(QF=1,XF=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 GF=function(t){return e(t)&&3==t.nodeType}}function SB(){if(_F)return YF;_F=1;var e=kB();return YF=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))))},YF}function ZB(){if($F)return JF;return $F=1,JF=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 OB(){if(tR)return eR;tR=1;var e=VB(),t=pB(),n=lB(),r=SB(),i=ZB(),a=cB(),o=CT(),l=sB(),c=n.isBrowser("IE");function s(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?o(!1,"Node must be an Element if it is not a text node."):o(!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 a(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 o=e.childNodes,l=0;l<o.length;l++)i.appendChild(d(o[l],t));return i}function u(e,t){for(var n=e,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return s(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,a,o){var l=i();if(e.extend&&null!=n&&r(l,n)){a>f(n)&&t.logSelectionStateFailure({anonymizedDom:u(n),extraParams:JSON.stringify({offset:a}),selectionState:JSON.stringify(o.toJS())});var c=n===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(n,a)}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:c,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:a},null,2),selectionState:JSON.stringify(o.toJS(),null,2)}),r}}else if(n&&e.rangeCount>0){var s=e.getRangeAt(0);s.setEnd(n,a),e.addRange(s.cloneRange())}}function C(n,r,i,o){var l=a(r).createRange();if(i>f(r)&&(t.logSelectionStateFailure({anonymizedDom:u(r),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(o.toJS())}),e.handleExtensionCausedError()),l.setStart(r,i),c)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 eR={setDraftEditorSelection:function(e,t,n,i,o){var l=a(t);if(r(l.documentElement,t)){var c=l.defaultView.getSelection(),s=e.getAnchorKey(),d=e.getAnchorOffset(),u=e.getFocusKey(),f=e.getFocusOffset(),p=e.getIsBackward();if(!c.extend&&p){var m=s,A=d;s=u,d=f,u=m,f=A,p=!1}var g=s===n&&i<=d&&o>=d,v=u===n&&i<=f&&o>=f;if(g&&v)return c.removeAllRanges(),C(c,t,d-i,e),void h(c,t,f-i,e);if(p){if(v&&(c.removeAllRanges(),C(c,t,f-i,e)),g){var w=c.focusNode,y=c.focusOffset;c.removeAllRanges(),C(c,t,d-i,e),h(c,w,y,e)}}else g&&(c.removeAllRanges(),C(c,t,d-i,e)),v&&h(c,t,f-i,e)}},addFocusToSelection:h}}function zB(){if(rR)return nR;rR=1;var e=Lm();var t=HB(),n=i,r=CT(),a=xB(),o=OB().setDraftEditorSelection,l=function(i){var l,c;function s(){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}c=i,(l=s).prototype=Object.create(c.prototype),l.prototype.constructor=l,l.__proto__=c;var d=s.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,c=n.getKey(),s=i+l.length;if(e.hasEdgeWithin(c,i,s)){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:a(f)?u=d:(u=f.firstChild)||("production"!==process.env.NODE_ENV?r(!1,"Missing targetNode"):r(!1)),o(e,u,c,i,s)}}},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,a=this.props.text;a.endsWith("\n")&&this.props.isLast&&(a+="\n");var o=this.props,l=o.customStyleMap,c=o.customStyleFn,s=o.offsetKey,d=o.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(c){var f=c(d,i);u=e(u,f)}return n.createElement("span",{"data-offset-key":s,ref:function(e){return r.leaf=e},style:u},n.createElement(t,null,a))},s}(n.Component);return nR=l}function IB(){if(aR)return iR;aR=1;var e=LB(),t=zB(),n=hB(),r=lT(),a=i,o=PT();r.List;var l=function(r){var i,l;function c(){return r.apply(this,arguments)||this}return l=r,(i=c).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l,c.prototype.render=function(){var r=this.props,i=r.block,l=r.contentState,c=r.customStyleFn,s=r.customStyleMap,d=r.decorator,u=r.direction,f=r.forceSelection,h=r.hasSelection,C=r.selection,p=r.tree,m=i.getKey(),A=i.getText(),g=p.size-1,v=this.props.children||p.map(function(r,o){var p=r.get("decoratorKey"),v=r.get("leaves"),w=v.size-1,y=v.map(function(e,r){var l=n.encode(m,o,r),d=e.get("start"),u=e.get("end");return a.createElement(t,{key:l,offsetKey:l,block:i,start:d,selection:h?C:null,forceSelection:f,text:A.slice(d,u),styleSet:i.getInlineStyleAt(d),customStyleMap:s,customStyleFn:c,isLast:p===g&&r===w})}).toArray();return p&&d?a.createElement(e,{block:i,children:y,contentState:l,decorator:d,decoratorKey:p,direction:u,leafSet:r,text:A,key:o}):y}).toArray();return a.createElement("div",{"data-offset-key":n.encode(m,0,0),className:o({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===u,"public/DraftStyleDefault/rtl":"RTL"===u})},v)},c}(a.Component);return iR=l}function NB(){if(lR)return oR;function e(e,t){return!!t&&(e===t.documentElement||e===t.body)}return lR=1,oR={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 DB(){if(hR)return fR;hR=1;var e=function(){if(sR)return cR;sR=1;var e=/-(.)/g;return cR=function(t){return t.replace(e,function(e,t){return t.toUpperCase()})}}(),t=function(){if(uR)return dR;uR=1;var e=/([A-Z])/g;return dR=function(t){return t.replace(e,"-$1").toLowerCase()}}();function n(e){return null==e?e:String(e)}return fR=function(r,i){var a;if(window.getComputedStyle&&(a=window.getComputedStyle(r,null)))return n(a.getPropertyValue(t(i)));if(document.defaultView&&document.defaultView.getComputedStyle){if(a=document.defaultView.getComputedStyle(r,null))return n(a.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 TB(){if(pR)return CR;function e(e,n){var r=t.get(e,n);return"auto"===r||"scroll"===r}pR=1;var t={get:DB(),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 CR=t}function FB(){if(vR)return gR;vR=1;var e=function(){if(AR)return mR;AR=1;var e=SB();return mR=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 gR=function(t){var n=e(t);return{x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top}}}function RB(){if(LR)return MR;LR=1;var e=function(){if(yR)return wR;yR=1;var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;return wR=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}}(),t=bR?ER:(bR=1,ER=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 MR=function(n){var r=e(n.ownerDocument||n.document);n.Window&&n instanceof n.Window&&(n=r);var i=t(n),a=n===r?n.ownerDocument.documentElement:n,o=n.scrollWidth-a.clientWidth,l=n.scrollHeight-a.clientHeight;return i.x=Math.max(0,Math.min(i.x,o)),i.y=Math.max(0,Math.min(i.y,l)),i},MR}function BB(){if(xR)return HR;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 xR=1,n.withoutScrollbars=function(){return{width:e(),height:t()}},HR=n}function jB(){if(kR)return VR;kR=1;var e=Lm();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 a=IB(),o=hB(),l=i,c=NB(),s=TB(),d=FB(),u=RB(),f=BB(),h=lT(),C=CT(),p=mB();h.List;var m=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},A=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}},g=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},v=function(e,t,r,i,a,o){var l={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:o},c=i(e);return c&&(l.className=c),void 0!==a.customEditable&&(l=n({},l,{contentEditable:a.customEditable,suppressContentEditableWarning:!0})),l},w=function(e){var i,h;function w(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];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 y=w.prototype;return y.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,i=t.tree,a=!n.getChildKeys().isEmpty(),o=n!==e.block||i!==e.tree||r!==e.direction||m(e.selection,e.block.getKey())&&e.forceSelection;return a||o},y.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=s.getScrollParent(n),a=u(i);if(i===window){var o=d(n);(r=o.y+o.height-f().height)>0&&window.scrollTo(a.x,a.y+r+10)}else{p(n)||("production"!==process.env.NODE_ENV?C(!1,"blockNode is not an HTMLElement"):C(!1));var l=n;(r=l.offsetHeight+l.offsetTop-(i.offsetHeight+a.y))>0&&c.setTop(i,c.getTop(i)+r+10)}}}},y.render=function(){var e=this,r=this.props,i=r.block,c=r.blockRenderMap,s=r.blockRendererFn,d=r.blockStyleFn,u=r.contentState,f=r.decorator,h=r.editorKey,C=r.editorState,p=r.customStyleFn,y=r.customStyleMap,E=r.direction,b=r.forceSelection,M=r.selection,L=r.tree,H=null;i.children.size&&(H=i.children.reduce(function(t,r){var i=o.encode(r,0,0),a=u.getBlockForKey(r),f=g(a,s),p=f.CustomComponent||w,m=A(a,c),y=m.Element,E=m.wrapperTemplate,b=v(a,h,i,d,f,null),M=n({},e.props,{tree:C.getBlockTree(r),blockProps:f.customProps,offsetKey:i,block:a});return t.push(l.createElement(y,b,l.createElement(p,M))),!E||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(a,u)||function(e,t,n){var r=[],i=!0,a=!1,c=void 0;try{for(var s,d=n.reverse()[Symbol.iterator]();!(i=(s=d.next()).done);i=!0){var u=s.value;if(u.type!==t)break;r.push(u)}}catch(e){a=!0,c=e}finally{try{i||null==d.return||d.return()}finally{if(a)throw c}}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":o.encode(h,0,0)},f))}(E,y,t),t},[]));var x=i.getKey(),V=o.encode(x,0,0),k=g(i,s),S=k.CustomComponent,Z=null!=S?l.createElement(S,t({},this.props,{tree:C.getBlockTree(x),blockProps:k.customProps,offsetKey:V,block:i})):l.createElement(a,{block:i,children:H,contentState:u,customStyleFn:p,customStyleMap:y,decorator:f,direction:E,forceSelection:b,hasSelection:m(M,x),selection:M,tree:L});if(i.getParentKey())return Z;var O=A(i,c).Element,z=v(i,h,V,d,k,this.wrapperRef);return l.createElement(O,z,Z)},w}(l.Component);return VR=w}function PB(){if(ZR)return SR;ZR=1;var e=Lm();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=jB(),r=hB(),a=i,o=TT(),l=function(e){var i,l;function c(){return e.apply(this,arguments)||this}l=e,(i=c).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l;var s=c.prototype;return s.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(),a=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&a)return!1;var o=t.getCurrentContent(),l=n.getCurrentContent(),c=t.getDecorator(),s=n.getDecorator();return i!==a||o!==l||c!==s||n.mustForceSelection()},s.render=function(){for(var e=this.props,i=e.blockRenderMap,l=e.blockRendererFn,c=e.blockStyleFn,s=e.customStyleMap,d=e.customStyleFn,u=e.editorState,f=e.editorKey,h=e.textDirectionality,C=u.getCurrentContent(),p=u.getSelection(),m=u.mustForceSelection(),A=u.getDecorator(),g=o(u.getDirectionMap()),v=[],w=C.getBlocksAsArray()[0];w;){var y=w.getKey(),E={blockRenderMap:i,blockRendererFn:l,blockStyleFn:c,contentState:C,customStyleFn:d,customStyleMap:s,decorator:A,editorKey:f,editorState:u,forceSelection:m,selection:p,block:w,direction:h||g.get(y),tree:u.getBlockTree(y)},b=(i.get(w.getType())||i.get("unstyled")).wrapper;v.push({block:a.createElement(n,t({key:y},E)),wrapperTemplate:b,key:y,offsetKey:r.encode(y,0,0)});var M=w.getNextSiblingKey();w=M?C.getBlockForKey(M):null}for(var L=[],H=0;H<v.length;){var x=v[H];if(x.wrapperTemplate){var V=[];do{V.push(v[H].block),H++}while(H<v.length&&v[H].wrapperTemplate===x.wrapperTemplate);var k=a.cloneElement(x.wrapperTemplate,{key:x.key+"-wrap","data-offset-key":x.offsetKey},V);L.push(k)}else L.push(x.block),H++}return a.createElement("div",{"data-contents":"true"},L)},c}(a.Component);return SR=l}function UB(){if(zR)return OR;zR=1;var e=Lm();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=zB(),r=hB(),a=i,o=NB(),l=TB(),c=DT(),s=NT(),d=PT(),u=FB(),f=RB(),h=BB(),C=CT(),p=mB(),m=TT(),A=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},g=function(e){var i,g;function v(){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}g=e,(i=v).prototype=Object.create(g.prototype),i.prototype.constructor=i,i.__proto__=g;var w=v.prototype;return w.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||A(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),a=f(i);if(i===window){var c=u(n);(r=c.y+c.height-h().height)>0&&window.scrollTo(a.x,a.y+r+10)}else{p(n)||("production"!==process.env.NODE_ENV?C(!1,"blockNode is not an HTMLElement"):C(!1)),(r=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+a.y))>0&&o.setTop(i,o.getTop(i)+r+10)}}}}},w._renderChildren=function(){var e=this,i=this.props.block,o=i.getKey(),l=i.getText(),d=this.props.tree.size-1,u=A(this.props.selection,o);return this.props.tree.map(function(f,h){var C=f.get("leaves");if(0===C.size)return null;var p=C.size-1,A=C.map(function(t,c){var s=r.encode(o,h,c),f=t.get("start"),C=t.get("end");return a.createElement(n,{key:s,offsetKey:s,block:i,start:f,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:l.slice(f,C),styleSet:i.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===d&&c===p})}).toArray(),g=f.get("decoratorKey");if(null==g)return A;if(!e.props.decorator)return A;var v=m(e.props.decorator),w=v.getComponentForKey(g);if(!w)return A;var y=v.getPropsForKey(g),E=r.encode(o,h,0),b=C.first().get("start"),M=C.last().get("end"),L=l.slice(b,M),H=i.getEntityAt(f.get("start")),x=s.getHTMLDirIfDifferent(c.getDirection(L),e.props.direction),V={contentState:e.props.contentState,decoratedText:L,dir:x,start:b,end:M,blockKey:o,entityKey:H,offsetKey:E};return a.createElement(w,t({},y,V,{key:E}),A)}).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 a.createElement("div",{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},v}(a.Component);return OR=g}function qB(){if(TR)return DR;TR=1;var e=Lm();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 a=UB(),o=hB(),l=i,c=PT(),s=(NR||(NR=1,IR=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}),IR),d=TT(),u=function(e,t,n,r){return c({"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 c(){return e.apply(this,arguments)||this}i=e,(r=c).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var f=c.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(),a=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&a)return!1;var o=t.getCurrentContent(),l=n.getCurrentContent(),c=t.getDecorator(),s=n.getDecorator();return i!==a||o!==l||c!==s||n.mustForceSelection()},f.render=function(){for(var e=this.props,r=e.blockRenderMap,i=e.blockRendererFn,c=e.blockStyleFn,f=e.customStyleMap,h=e.customStyleFn,C=e.editorState,p=e.editorKey,m=e.preventScroll,A=e.textDirectionality,g=C.getCurrentContent(),v=C.getSelection(),w=C.mustForceSelection(),y=C.getDecorator(),E=d(C.getDirectionMap()),b=g.getBlocksAsArray(),M=[],L=null,H=null,x=0;x<b.length;x++){var V=b[x],k=V.getKey(),S=V.getType(),Z=i(V),O=void 0,z=void 0,I=void 0;Z&&(O=Z.component,z=Z.props,I=Z.editable);var N=A||E.get(k),D=o.encode(k,0,0),T={contentState:g,block:V,blockProps:z,blockStyleFn:c,customStyleMap:f,customStyleFn:h,decorator:y,direction:N,forceSelection:w,offsetKey:D,preventScroll:m,selection:v,tree:C.getBlockTree(k)},F=r.get(S)||r.get("unstyled"),R=F.wrapper,B=F.element||r.get("unstyled").element,j=V.getDepth(),P="";if(c&&(P=c(V)),"li"===B)P=s(P,u(S,j,H!==R||null===L||j>L,N));var U=O||a,q={className:P,"data-block":!0,"data-editor":p,"data-offset-key":D,key:k};void 0!==I&&(q=n({},q,{contentEditable:I,suppressContentEditableWarning:!0}));var W=l.createElement(B,q,l.createElement(U,t({},T,{key:k})));M.push({block:W,wrapperTemplate:R,key:k,offsetKey:D}),L=R?V.getDepth():null,H=R}for(var X=[],Q=0;Q<M.length;){var G=M[Q];if(G.wrapperTemplate){var K=[];do{K.push(M[Q].block),Q++}while(Q<M.length&&M[Q].wrapperTemplate===G.wrapperTemplate);var Y=l.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},K);X.push(Y)}else X.push(G.block),Q++}return l.createElement("div",{"data-contents":"true"},X)},c}(l.Component);return DR=f}function WB(){if(UR)return PR;UR=1;var e=CT();return PR=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 XB(){if(WR)return qR;function e(e){return function(){return e}}WR=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},qR=t}function QB(){if(QR)return XR;QR=1;var e=function(){if(jR)return BR;jR=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 BR=e}(),t=WB(),n=XB(),r=new RegExp("\r\n","g"),i={"text/rtf":1,"text/html":1};function a(e){if("file"==e.kind)return e.getAsFile()}return XR=function(){function o(e){this.data=e,this.types=e.types?t(e.types):[]}var l=o.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(a).filter(n.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},l.hasFiles=function(){return this.getFiles().length>0},o}()}function GB(){if(KR)return GR;KR=1;var e=CT(),t=/\.textClipping$/,n={"text/plain":!0,"text/html":!0,"text/rtf":!0};return GR=function(r,i){var a=0,o=[];r.forEach(function(l){!function(r,i){if(!k.FileReader||r.type&&!(r.type in n))return void i("");if(""===r.type){var a="";return t.test(r.name)&&(a=r.name.replace(t,"")),void i(a)}var o=new FileReader;o.onload=function(){var t=o.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)},o.onerror=function(){i("")},o.readAsText(r)}(l,function(e){a++,e&&o.push(e.slice(0,5e3)),a==r.length&&i(o.join("\r"))})})},GR}function KB(){if(_R)return YR;return _R=1,YR=function(e){return"handled"===e||!0===e}}function YB(){if($R)return JR;$R=1;var e=QB(),t=HT(),n=RT(),r=uB(),i=cB(),a=GB(),o=gB(),l=fB(),c=KB(),s=TT();var d={onDragEnd:function(e){e.exitCurrentMode(),u(e)},onDrop:function(l,d){var h=new e(d.nativeEvent.dataTransfer),C=l._latestEditorState,p=function(e,t){var n=null,a=null,l=i(e.currentTarget);if("function"==typeof l.caretRangeFromPoint){var c=l.caretRangeFromPoint(e.x,e.y);n=c.startContainer,a=c.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,a=e.rangeOffset}n=s(n),a=s(a);var d=s(r(n));return o(t,d,a,d,a)}(d.nativeEvent,C);if(d.preventDefault(),l._dragCount=0,l.exitCurrentMode(),null!=p){var m=h.getFiles();if(m.length>0){if(l.props.handleDroppedFiles&&c(l.props.handleDroppedFiles(p,m)))return;a(m,function(e){e&&l.update(f(C,p,e))})}else{var A=l._internalDrag?"internal":"external";l.props.handleDrop&&c(l.props.handleDrop(p,h,A))||(l._internalDrag?l.update(function(e,r){var i=t.moveText(e.getCurrentContent(),e.getSelection(),r);return n.push(e,i,"insert-fragment")}(C,p)):l.update(f(C,p,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 a=t.insertText(e.getCurrentContent(),r,i,e.getCurrentInlineStyle());return n.push(e,a,"insert-fragment")}return JR=d}var _B,JB,$B,ej,tj,nj,rj,ij,aj,oj,lj,cj,sj,dj,uj,fj,hj,Cj,pj,mj,Aj,gj,vj,wj,yj,Ej,bj,Mj,Lj,Hj,xj,Vj,kj,Sj,Zj,Oj,zj,Ij,Nj,Dj,Tj,Fj,Rj,Bj,jj,Pj,Uj,qj,Wj,Xj,Qj,Gj,Kj,Yj,_j,Jj,$j,eP,tP,nP,rP,iP,aP,oP,lP,cP,sP,dP,uP,fP,hP,CP,pP,mP,AP,gP,vP,wP,yP,EP,bP,MP,LP,HP,xP,VP,kP,SP,ZP,OP,zP,IP,NP,DP,TP,FP,RP,BP,jP,PP,UP,qP={};function WP(){return $B?JB:($B=1,_B||(_B=1,function(e){if(!e.setImmediate){var t,n,r,i,a=1,o={},l=!1,c=e.document,s=Object.getPrototypeOf&&Object.getPrototypeOf(e);s=s&&s.setTimeout?s: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)}):c&&"onreadystatechange"in c.createElement("script")?function(){var e=c.documentElement;t=function(t){var n=c.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)},s.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 o[a]=i,t(a),a++},s.clearImmediate=d}function d(e){delete o[e]}function u(e){if(l)setTimeout(u,0,e);else{var t=o[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?qP:k:self)),JB=k.setImmediate)}function XP(){if(tj)return ej;tj=1;var e=HT(),t=RT(),n=lB(),r=bB(),i=KB(),a=(tB||(tB=1,eB=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),a=!1;return r.some(function(e){return i===e.get("start")?(a=!0,!0):i<e.get("end")&&e.get("leaves").some(function(e){var t=e.get("start");return i===t&&(a=!0,!0)})}),a}),eB),o=TT(),l=WP(),c=n.isBrowser("Firefox");function s(n,r,i,a,o){var l=e.replaceText(n.getCurrentContent(),n.getSelection(),r,i,a);return t.push(n,l,"insert-characters",o)}return ej=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(),C=f.getAnchorKey();if(!f.isCollapsed())return n.preventDefault(),void e.update(s(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!0));var p,m=s(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!1),A=!1;if(A||(A=a(e._latestCommittedEditorState)),!A){var g=d.getBlockTree(C),v=m.getBlockTree(C);A=g.size!==v.size||g.zip(v).some(function(e){var t=e[0],n=e[1],r=t.get("start"),i=r+(r>=h?u.length:0),a=t.get("end"),o=a+(a>=h?u.length:0),l=n.get("start"),c=n.get("end"),s=n.get("decoratorKey");return t.get("decoratorKey")!==s||t.get("leaves").size!==n.get("leaves").size||i!==l||o!==c||null!=s&&c-l!==a-r})}if(A||(p=u,A=c&&("'"==p||"/"==p)),A||(A=o(m.getDirectionMap()).get(C)!==o(d.getDirectionMap()).get(C)),A)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)})}},ej}function QP(){if(lj)return oj;lj=1;var e=vT();return oj=function(t){var n=t.getSelection();return n.isCollapsed()?null:e(t.getCurrentContent(),n)}}function GP(){if(hj)return fj;hj=1;var e=HT(),t=RT(),n=TB(),r=QP(),i=RB(),a=uj?dj:(uj=1,dj=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 fj=function(o,l){var c,s=o._latestEditorState,d=s.getSelection(),u=l.target;if(d.isCollapsed())l.preventDefault();else{if(a(u)){var f=u;c=i(n.getScrollParent(f))}var h=r(s);o.setClipboard(h),o.setMode("cut"),setTimeout(function(){o.restoreEditorDOM(c),o.exitCurrentMode(),o.update(function(n){var r=e.removeRange(n.getCurrentContent(),n.getSelection(),"forward");return t.push(n,r,"remove-range")}(s))},0)}},fj}function KP(){if(yj)return wj;yj=1;var e=CT(),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 a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!r(e))return e.substr(t,n);var a=e.length;if(a<=0||t>a||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<a;t--)o+=i(e,o);if(o>=a)return""}else if(t<0){for(o=a;t<0&&0<o;t++)o-=i(e,o-1);o<0&&(o=0)}var l=a;if(n<a)for(l=o;n>0&&l<a;n--)l+=i(e,l);return e.substring(o,l)}var o={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 a(e,t=t<n?t:n,r)},substr:a};return wj=o}function YP(){if(bj)return Ej;bj=1;var e=XB();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,a="Warning: "+e.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}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),a=2;a<r;a++)i[a-2]=arguments[a];t.apply(void 0,[n].concat(i))}}:e;return Ej=n}function _P(){if(Lj)return Mj;Lj=1;var e=YP();return Mj=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(),a=r.getStartKey(),o=r.getStartOffset(),l=a,c=0;if(n>o){var s=i.getKeyBefore(a);if(null==s)l=a;else l=s,c=i.getBlockForKey(s).getText().length}else c=o-n;return r.merge({focusKey:l,focusOffset:c,isBackward:!0})},Mj}function JP(){if(xj)return Hj;xj=1;var e=HT(),t=OT()("draft_tree_data_support");return Hj=function(n,r,i){var a=n.getSelection(),o=n.getCurrentContent(),l=a,c=a.getAnchorKey(),s=a.getFocusKey(),d=o.getBlockForKey(c);if(t&&"forward"===i&&c!==s)return o;if(a.isCollapsed()){if("forward"===i){if(n.isSelectionAtEndOfContent())return o;if(t)if(a.getAnchorOffset()===o.getBlockForKey(c).getLength()){var u=o.getBlockForKey(d.nextSibling);if(!u||0===u.getLength())return o}}else if(n.isSelectionAtStartOfContent())return o;if((l=r(n))===a)return o}return e.removeRange(o,l,i)}}function $P(){if(kj)return Vj;kj=1;var e=RT(),t=KP(),n=_P(),r=JP();return Vj=function(i){var a=r(i,function(e){var r=e.getSelection(),i=e.getCurrentContent(),a=r.getAnchorKey(),o=r.getAnchorOffset(),l=i.getBlockForKey(a).getText()[o-1];return n(e,l?t.getUTF16Length(l,0):1)},"backward");if(a===i.getCurrentContent())return i;var o=i.getSelection();return e.push(i,a.set("selectionBefore",o),o.isCollapsed()?"backspace-character":"remove-range")},Vj}function eU(){if(Zj)return Sj;Zj=1;var e=HT(),t=hB(),n=RT(),r=lB(),i=EB().notEmptyKey,a=uB(),o=$P(),l=TT(),c=r.isEngine("Gecko");return Sj=function(r,s){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 C=u.parentNode;if(null==C)return;u.nodeValue=C.textContent;for(var p=C.firstChild;null!=p;p=p.nextSibling)p!==u&&C.removeChild(p)}var m=u.textContent,A=r._latestEditorState,g=l(a(u)),v=t.decode(g),w=v.blockKey,y=v.decoratorKey,E=v.leafKey,b=A.getBlockTree(w).getIn([y,"leaves",E]),M=b.start,L=b.end,H=A.getCurrentContent(),x=H.getBlockForKey(w),V=x.getText().slice(M,L);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==V){var k,S,Z,O,z=A.getSelection(),I=z.merge({anchorOffset:M,focusOffset:L,isBackward:!1}),N=x.getEntityAt(M),D=i(N)?H.getEntity(N):null,T="MUTABLE"===(null!=D?D.getMutability():null),F=T?"spellcheck-change":"apply-entity",R=e.replaceText(H,I,m,x.getInlineStyleAt(M),T?x.getEntityAt(M):null);if(c)k=d.anchorOffset,S=d.focusOffset,O=(Z=M+Math.min(k,S))+Math.abs(k-S),k=Z,S=O;else{var B=m.length-V.length;Z=z.getStartOffset(),O=z.getEndOffset(),k=f?O+B:Z,S=O+B}var j=R.merge({selectionBefore:H.getSelectionAfter(),selectionAfter:z.merge({anchorOffset:k,focusOffset:S})});r.update(n.push(A,j,F))}else{var P=s.nativeEvent.inputType;if(P){var U=function(e,t){return"deleteContentBackward"===e?o(t):t}(P,A);if(U!==A)return r.restoreEditorDOM(),void r.update(U)}}}},Sj}function tU(){if(Nj)return Ij;Nj=1;var e=lB(),t=function(){if(zj)return Oj;zj=1;var e=CB();return Oj=function(t){return t.which===e.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))},Oj}(),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 Ij=r}function nU(){if(Rj)return Fj;Rj=1;var e=lB(),t=CT();var n=e.isBrowser("Chrome")?function(e){for(var n=e.cloneRange(),r=[],i=e.endContainer;null!=i;i=i.parentNode){var a=i===e.commonAncestorContainer;a?n.setStart(e.startContainer,e.startOffset):n.setStart(n.endContainer,0);var o,l=Array.from(n.getClientRects());if(r.push(l),a)return r.reverse(),(o=[]).concat.apply(o,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 Fj=n}function rU(){if(jj)return Bj;jj=1;var e=KP(),t=cB(),n=nU(),r=CT();function i(e,t){for(var n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<e.length;o++){var l=e[o];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),i=Math.max(i,l.top),a=Math.max(a,l.bottom))}return i<=r&&i-n<t&&a-r<t}function a(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 Bj=function(o){o.collapsed||("production"!==process.env.NODE_ENV?r(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):r(!1));var l=(o=o.cloneRange()).startContainer;1!==l.nodeType&&(l=l.parentNode);var c=function(e){var n=getComputedStyle(e),i=t(e),a=i.createElement("div");a.style.fontFamily=n.fontFamily,a.style.fontSize=n.fontSize,a.style.fontStyle=n.fontStyle,a.style.fontWeight=n.fontWeight,a.style.lineHeight=n.lineHeight,a.style.position="absolute",a.textContent="M";var o=i.body;o||("production"!==process.env.NODE_ENV?r(!1,"Missing document.body"):r(!1)),o.appendChild(a);var l=a.getBoundingClientRect();return o.removeChild(a),l.height}(l),s=o.endContainer,d=o.endOffset;for(o.setStart(o.startContainer,0);i(n(o),c)&&(s=o.startContainer,d=o.startOffset,s.parentNode||("production"!==process.env.NODE_ENV?r(!1,"Found unexpected detached subtree when traversing."):r(!1)),o.setStartBefore(s),1!==s.nodeType||"inline"===getComputedStyle(s).display););for(var u=s,f=d-1;;){for(var h=u.nodeValue,C=f;C>=0;C--)if(!(null!=h&&C>0&&e.isSurrogatePair(h,C-1))){if(o.setStart(u,C),!i(n(o),c))break;s=u,d=C}if(-1===C||0===u.childNodes.length)break;f=a(u=u.childNodes[C])}return o.setStart(s,d),o},Bj}function iU(){if(Wj)return qj;Wj=1;return qj={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}}function aU(){if(Qj)return Xj;Qj=1;var e="['‘’]",t="\\s|(?![_])"+iU().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 Xj={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}}}function oU(){if(_j)return Yj;_j=1;var e=YP();return Yj=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,a=r.getStartKey(),o=r.getStartOffset(),l=t.getCurrentContent(),c=a;return n>l.getBlockForKey(a).getText().length-o?(c=l.getKeyAfter(a),i=0):i=o+n,r.merge({focusKey:c,focusOffset:i})},Yj}function lU(){if(hP)return fP;hP=1;var e=HT(),t=RT(),n=tU(),r=CB(),i=function(){if(Tj)return Dj;Tj=1;var e=HT(),t=RT(),n=vT(),r=TT(),i=null;return Dj={cut:function(a){var o=a.getCurrentContent(),l=a.getSelection(),c=null;if(l.isCollapsed()){var s=l.getAnchorKey(),d=o.getBlockForKey(s).getLength();if(d===l.getAnchorOffset()){var u=o.getKeyAfter(s);if(null==u)return a;c=l.set("focusKey",u).set("focusOffset",0)}else c=l.set("focusOffset",d)}else c=l;c=r(c),i=n(o,c);var f=e.removeRange(o,c,"forward");return f===o?a:t.push(a,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")}}}(),a=lB(),o=KB(),l=function(){if(Uj)return Pj;Uj=1;var e=RT(),t=rU(),n=vB(),r=_P(),i=JP();return Pj=function(a,o){var l=i(a,function(e){var i=e.getSelection();if(i.isCollapsed()&&0===i.getAnchorOffset())return r(e,1);var a=o.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return a=t(a),n(e,null,a.endContainer,a.endOffset,a.startContainer,a.startOffset).selectionState},"backward");return l===a.getCurrentContent()?a:e.push(a,l,"remove-range")},Pj}(),c=function(){if(Kj)return Gj;Kj=1;var e=aU(),t=RT(),n=_P(),r=JP();return Gj=function(i){var a=r(i,function(t){var r=t.getSelection(),i=r.getStartOffset();if(0===i)return n(t,1);var a=r.getStartKey(),o=t.getCurrentContent().getBlockForKey(a).getText().slice(0,i),l=e.getBackward(o);return n(t,l.length||1)},"backward");return a===i.getCurrentContent()?i:t.push(i,a,"remove-range")},Gj}(),s=function(){if($j)return Jj;$j=1;var e=aU(),t=RT(),n=oU(),r=JP();return Jj=function(i){var a=r(i,function(t){var r=t.getSelection(),i=r.getStartOffset(),a=r.getStartKey(),o=t.getCurrentContent().getBlockForKey(a).getText().slice(i),l=e.getForward(o);return n(t,l.length||1)},"forward");return a===i.getCurrentContent()?i:t.push(i,a,"remove-range")},Jj}(),d=function(){if(tP)return eP;tP=1;var e=HT(),t=RT();return eP=function(n){var r=e.splitBlock(n.getCurrentContent(),n.getSelection());return t.push(n,r,"split-block")}}(),u=function(){if(rP)return nP;rP=1;var e=RT();return nP=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(aP)return iP;aP=1;var e=RT();return iP=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=$P(),C=function(){if(lP)return oP;lP=1;var e=RT(),t=KP(),n=oU(),r=JP();return oP=function(i){var a=r(i,function(e){var r=e.getSelection(),i=e.getCurrentContent(),a=r.getAnchorKey(),o=r.getAnchorOffset(),l=i.getBlockForKey(a).getText()[o];return n(e,l?t.getUTF16Length(l,0):1)},"forward");if(a===i.getCurrentContent())return i;var o=i.getSelection();return e.push(i,a.set("selectionBefore",o),o.isCollapsed()?"delete-character":"remove-range")},oP}(),p=function(){if(sP)return cP;sP=1;var e=HT(),t=RT(),n=vT();return cP=function(r){var i=r.getSelection();if(!i.isCollapsed())return r;var a=i.getAnchorOffset();if(0===a)return r;var o,l,c=i.getAnchorKey(),s=r.getCurrentContent(),d=s.getBlockForKey(c).getLength();if(d<=1)return r;a===d?(o=i.set("anchorOffset",a-1),l=i):l=(o=i.set("focusOffset",a+1)).set("anchorOffset",a+1);var u=n(s,o),f=e.removeRange(s,o,"backward"),h=f.getSelectionAfter(),C=h.getAnchorOffset()-1,p=h.merge({anchorOffset:C,focusOffset:C}),m=e.replaceWithFragment(f,p,u),A=t.push(r,m,"insert-fragment");return t.acceptSelection(A,l)},cP}(),m=function(){if(uP)return dP;uP=1;var e=RT();return dP=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 a=i.getCurrentContent();r(e.set(i,{nativelyRenderedContent:a}))}},dP}(),A=n.isOptionKeyCommand,g=a.isBrowser("Chrome");return fP=function(n,a){var v=a.which,w=n._latestEditorState;function y(e){var t=n.props[e];return!!t&&(t(a),!0)}switch(v){case r.RETURN:if(a.preventDefault(),n.props.handleReturn&&o(n.props.handleReturn(a,w)))return;break;case r.ESC:if(a.preventDefault(),y("onEscape"))return;break;case r.TAB:if(y("onTab"))return;break;case r.UP:if(y("onUpArrow"))return;break;case r.RIGHT:if(y("onRightArrow"))return;break;case r.DOWN:if(y("onDownArrow"))return;break;case r.LEFT:if(y("onLeftArrow"))return;break;case r.SPACE:g&&A(a)&&a.preventDefault()}var E=n.props.keyBindingFn(a);if(null!=E&&""!==E)if("undo"!==E){if(a.preventDefault(),!n.props.handleKeyCommand||!o(n.props.handleKeyCommand(E,w,a.timeStamp))){var b=function(e,n,r){switch(e){case"redo":return t.redo(n);case"delete":return C(n);case"delete-word":return s(n);case"backspace":return h(n);case"backspace-word":return c(n);case"backspace-to-start-of-line":return l(n,r);case"split-block":return d(n);case"transpose-characters":return p(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,a);b!==w&&n.update(b)}}else m(a,w,n.update);else if(v===r.SPACE&&g&&A(a)){var M=e.replaceText(w.getCurrentContent(),w.getSelection()," ");n.update(t.push(w,M,"insert-characters"))}},fP}function cU(){if(pP)return CP;pP=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 CP=e}function sU(){if(AP)return mP;AP=1;var e=lB(),t=CT(),n=e.isBrowser("IE <= 9");return mP=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},mP}function dU(){if(bP)return EP;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}bP=1;var r=sT(),i=uT(),a=fT(),o=UT(),l=ST(),c=cU(),s=PT(),d=mT(),u=sU(),f=OT(),h=lT(),C=h.List,p=h.Map,m=h.OrderedSet,A=function(){if(vP)return gP;vP=1;var e=sB();return gP=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"A"===t.nodeName}}(),g=xB(),v=mB(),w=function(){if(yP)return wP;yP=1;var e=sB();return wP=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"IMG"===t.nodeName}}(),y=f("draft_tree_data_support"),E=new RegExp("\r","g"),b=new RegExp("\n","g"),M=new RegExp("^\n","g"),L=new RegExp(" ","g"),H=new RegExp(" ?","g"),x=new RegExp("​?","g"),V=["bold","bolder","500","600","700","800","900"],k=["light","lighter","normal","100","200","300","400"],S=["className","href","rel","target","title"],Z=["alt","className","height","src","width"],O=(n(e={},s("public/DraftStyleDefault/depth0"),0),n(e,s("public/DraftStyleDefault/depth1"),1),n(e,s("public/DraftStyleDefault/depth2"),2),n(e,s("public/DraftStyleDefault/depth3"),3),n(e,s("public/DraftStyleDefault/depth4"),4),e),z=p({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),I=function(e){if(v(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},N=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},D=function(e){if(!A(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 c(t.href);return!0}catch(e){return!1}},T=function(e){if(!w(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},F=function(e,t){if(!v(e))return t;var n=e,r=n.style.fontWeight,i=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations(function(e){V.indexOf(r)>=0?e.add("BOLD"):k.indexOf(r)>=0&&e.remove("BOLD"),"italic"===i?e.add("ITALIC"):"normal"===i&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})},R=function(e){return"ul"===e||"ol"===e},B=function(){function e(e,t){n(this,"characterList",C()),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 o=e.prototype;return o.clear=function(){this.characterList=C(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},o.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},o.getContentBlocks=function(){return 0===this.contentBlocks.length&&(y?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},o._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:C(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=C(),this.currentBlockType="unstyled",this.currentText="",n},o._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=i.nodeName.toLowerCase();if("body"===a||R(a)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var o=this.currentDepth,l=this.wrapper;R(a)&&(this.wrapper=a,R(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),t)),this.currentDepth=o,this.wrapper=l}else{var c=this.blockTypeMap.get(a);if(void 0===c)if("#text"!==a)if("br"!==a)if(T(i))this._addImgNode(i,t);else if(D(i))this._addAnchorNode(i,n,t);else{var s=t;z.has(a)&&(s=s.add(z.get(a))),s=F(i,s);var u=I(i);null!=u&&(s=s.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),s))}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"===a?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(a,this.wrapper)||c[0]||"unstyled"),!y&&v(i)&&("unordered-list-item"===c||"ordered-list-item"===c)){var C=i;this.currentDepth=N(C,this.currentDepth)}var p=d(),m=this._toBlockConfigs(Array.from(i.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:p,childConfigs:m,type:c})),this.currentDepth=f,this.wrapper=h}}}return n},o._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))},o._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=C()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},o._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(M,"")).replace(b," ")),this._appendText(n,t)},o._addBreakNode=function(e,t){g(e)&&this._appendText("\n",t)},o._addImgNode=function(e,t){if(w(e)){var n=e,r={};Z.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}},o._addAnchorNode=function(e,t,n){if(A(e)){var r=e,i={};S.forEach(function(e){var t=r.getAttribute(e);t&&(i[e]=t)}),i.url=new c(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}},o._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 o=e[i];o.parent=n,o.prevSibling=i>0?e[i-1].key:null,o.nextSibling=i<r?e[i+1].key:null,o.children=C(o.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new a(t({},o))),this._toContentBlocks(o.childConfigs,o.key)}},o._hoistContainersInBlockConfigs=function(e){var t=this;return C(e).flatMap(function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},o._toFlatContentBlocks=function(e){var n=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var r=n._extractTextFromBlockConfigs(e.childConfigs),a=r.text,o=r.characterList;n.contentBlocks.push(new i(t({},e,{text:e.text+a,characterList:e.characterList.concat(o)})))})},o._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=C(),i=0;i<=t;i++){var a=e[i];n+=a.text,r=r.concat(a.characterList),""!==n&&"unstyled"!==a.type&&(n+="\n",r=r.push(r.last()));var o=this._extractTextFromBlockConfigs(a.childConfigs);n+=o.text,r=r.concat(o.characterList)}return{text:n,characterList:r}},e}();return EP=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:u)(e=e.trim().replace(E,"").replace(L," ").replace(H,"").replace(x,""));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)})}),p(t)}(t);return new B(r,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()},EP}function uU(){if(LP)return MP;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}LP=1;var t=uT(),n=fT(),r=dU(),i=mT(),a=sU(),o=OT(),l=lT(),c=zT(),s=l.List,d=l.Repeat,u=o("draft_tree_data_support"),f=u?n:t,h={processHTML:function(e,t){return r(e,a,t)},processText:function(t,n,r){return t.reduce(function(t,a,o){a=c(a);var l=i(),h={key:l,type:r,text:a,characterList:s(d(n,a.length))};if(u&&0!==o){var C=o-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[C]=t[C].merge({nextSibling:l})).getKey()})}return t.push(new f(h)),t},[])}};return MP=h}function fU(){if(kP)return VP;kP=1;var e=HT(),t=RT(),n=(xP||(xP=1,HP=function(e,t,n,r){var i=t.getStartKey(),a=t.getEndKey(),o=e.getBlockMap(),l=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===a}).concat([[a,o.get(a)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return o=o.merge(l),e.merge({blockMap:o,selectionBefore:t,selectionAfter:t})}),HP),r=TT(),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(),a=n.getStartKey(),o=r.getBlockBefore(a);if(o&&"atomic"===o.getType()){var l=r.getBlockMap().delete(o.getKey()),c=r.merge({blockMap:l,selectionAfter:n});if(c!==r)return t.push(e,c,"remove-range")}var s=i.tryToRemoveBlockStyle(e);return s?t.push(e,s,"change-block-type"):null},onDelete:function(n){var r=n.getSelection();if(!r.isCollapsed())return null;var i=n.getCurrentContent(),a=r.getStartKey(),o=i.getBlockForKey(a).getLength();if(r.getStartOffset()<o)return null;var l=i.getBlockAfter(a);if(!l||"atomic"!==l.getType())return null;var c=r.merge({focusKey:l.getKey(),focusOffset:l.getLength()}),s=e.removeRange(i,c,"forward");return s!==i?t.push(n,s,"remove-range"):null},onTab:function(e,r,i){var a=r.getSelection(),o=a.getAnchorKey();if(o!==a.getFocusKey())return r;var l=r.getCurrentContent(),c=l.getBlockForKey(o),s=c.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return r;e.preventDefault();var d=c.getDepth();if(!e.shiftKey&&d===i)return r;var u=n(l,a,e.shiftKey?-1:1,i);return t.push(r,u,"adjust-depth")},toggleBlockType:function(n,i){var a=n.getSelection(),o=a.getStartKey(),l=a.getEndKey(),c=n.getCurrentContent(),s=a;if(o!==l&&0===a.getEndOffset()){var d=r(c.getBlockBefore(l));l=d.getKey(),s=s.merge({anchorKey:o,anchorOffset:a.getStartOffset(),focusKey:l,focusOffset:d.getLength(),isBackward:!1})}var u=c.getBlockMap().skipWhile(function(e,t){return t!==o}).reverse().skipWhile(function(e,t){return t!==l}).some(function(e){return"atomic"===e.getType()});if(u)return n;var f=c.getBlockForKey(o).getType()===i?"unstyled":i;return t.push(n,e.setBlockType(c,s,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(),a=n.getCurrentInlineStyle();if(i.isCollapsed())return t.setInlineStyleOverride(n,a.has(r)?a.remove(r):a.add(r));var o,l=n.getCurrentContent();return o=a.has(r)?e.removeInlineStyle(l,i,r):e.applyInlineStyle(l,i,r),t.push(n,o,"change-inline-style")},toggleLink:function(n,r,i){var a=e.applyEntity(n.getCurrentContent(),r,i);return t.push(n,a,"apply-entity")},tryToRemoveBlockStyle:function(t){var n=t.getSelection(),r=n.getAnchorOffset();if(n.isCollapsed()&&0===r){var i=n.getAnchorKey(),a=t.getCurrentContent(),o=a.getBlockForKey(i).getType(),l=a.getBlockBefore(i);if("code-block"===o&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==o)return e.setBlockType(a,n,"unstyled")}return null}};return VP=i}function hU(){if(zP)return OP;zP=1;var e=cT(),t=sT(),n=QB(),r=HT(),i=uU(),a=RT(),o=fU(),l=bB(),c=GB(),s=KB(),d=function(){if(ZP)return SP;ZP=1;var e=/\r\n?|\n/g;return SP=function(t){return t.split(e)}}();function u(e,t,n){var i=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return a.push(e,i.set("entityMap",n),"insert-fragment")}return OP=function(f,h){h.preventDefault();var C=new n(h.clipboardData);if(!C.isRichText()){var p=C.getFiles(),m=C.getText();if(p.length>0){if(f.props.handlePastedFiles&&s(f.props.handlePastedFiles(p)))return;return void c(p,function(n){if(n=n||m){var c=f._latestEditorState,s=d(n),u=t.create({style:c.getCurrentInlineStyle(),entity:l(c.getCurrentContent(),c.getSelection())}),h=o.getCurrentBlockType(c),C=i.processText(s,u,h),p=e.createFromArray(C),A=r.replaceWithFragment(c.getCurrentContent(),c.getSelection(),p);f.update(a.push(c,A,"insert-fragment"))}})}}var A=[],g=C.getText(),v=C.getHTML(),w=f._latestEditorState;if(f.props.formatPastedText){var y=f.props.formatPastedText(g,v);g=y.text,v=y.html}if(!f.props.handlePastedText||!s(f.props.handlePastedText(g,v,w))){if(g&&(A=d(g)),!f.props.stripPastedStyles){var E,b=f.getClipboard();if(!f.props.formatPastedText&&C.isRichText()&&b){if(-1!==(null===(E=v)||void 0===E?void 0:E.indexOf(f.getEditorKey()))||1===A.length&&1===b.size&&b.first().getText()===g)return void f.update(u(f._latestEditorState,b))}else if(b&&C.types.includes("com.apple.webarchive")&&!C.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(A,b))return void f.update(u(f._latestEditorState,b));if(v){var M=i.processHTML(v,f.props.blockRenderMap);if(M){var L=M.contentBlocks,H=M.entityMap;if(L){var x=e.createFromArray(L);return void f.update(u(f._latestEditorState,x,H))}}}f.setClipboard(null)}if(A.length){var V=t.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),k=o.getCurrentBlockType(w),S=i.processText(A,V,k),Z=e.createFromArray(S);f.update(u(f._latestEditorState,Z))}}},OP}function CU(){if(NP)return IP;NP=1;var e=lB(),t=XP(),n=function(){if(rj)return nj;rj=1;var e=RT(),t=SB(),n=ZB();return nj=function(r,i){var a=i.currentTarget.ownerDocument;if(!Boolean(r.props.preserveSelectionOnBlur)&&n(a)===a.body){var o=a.defaultView.getSelection(),l=r.editor;1===o.rangeCount&&t(l,o.anchorNode)&&t(l,o.focusNode)&&o.removeAllRanges()}var c=r._latestEditorState,s=c.getSelection();if(s.getHasFocus()){var d=s.set("hasFocus",!1);r.props.onBlur&&r.props.onBlur(i),r.update(e.acceptSelection(c,d))}},nj}(),r=function(){if(aj)return ij;aj=1;var e=RT();return ij=function(t,n){t.setMode("composite"),t.update(e.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(n)},ij}(),i=function(){if(sj)return cj;sj=1;var e=QP();return cj=function(t,n){t._latestEditorState.getSelection().isCollapsed()?n.preventDefault():t.setClipboard(e(t._latestEditorState))},cj}(),a=GP(),o=(pj||(pj=1,Cj=function(e,t){e.setMode("drag"),t.preventDefault()}),Cj),l=Aj?mj:(Aj=1,mj=function(e){e._internalDrag=!0,e.setMode("drag")}),c=function(){if(vj)return gj;vj=1;var e=RT(),t=lB();return gj=function(n,r){var i=n._latestEditorState,a=i.getSelection();if(!a.getHasFocus()){var o=a.set("hasFocus",!0);n.props.onFocus&&n.props.onFocus(r),t.isBrowser("Chrome < 60.0.3081.0")?n.update(e.forceSelection(i,o)):n.update(e.acceptSelection(i,o))}},gj}(),s=eU(),d=lU(),u=hU(),f=yB(),h=e.isBrowser("Chrome"),C=e.isBrowser("Firefox"),p=h||C?f:function(e){};return IP={onBeforeInput:t,onBlur:n,onCompositionStart:r,onCopy:i,onCut:a,onDragOver:o,onDragStart:l,onFocus:c,onInput:s,onKeyDown:d,onPaste:u,onSelect:f,onMouseUp:p,onKeyUp:p}}function pU(){if(RP)return FP;RP=1;var e=i,t=PT(),n=function(n){var r,i;function a(){return n.apply(this,arguments)||this}i=n,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var o=a.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.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))},a}(e.Component);return FP=n}function mU(){if(jP)return BP;jP=1;var e=tU(),t=CB(),n=lB(),r=n.isPlatform("Mac OS X"),i=r&&n.isBrowser("Firefox < 29"),a=e.hasCommandModifier,o=e.isCtrlKeyCommand;function l(e){return r&&e.altKey||o(e)}return BP=function(e){switch(e.keyCode){case 66:return a(e)?"bold":null;case 68:return o(e)?"delete":null;case 72:return o(e)?"backspace":null;case 73:return a(e)?"italic":null;case 74:return a(e)?"code":null;case 75:return r&&o(e)?"secondary-cut":null;case 77:case 79:return o(e)?"split-block":null;case 84:return r&&o(e)?"transpose-characters":null;case 85:return a(e)?"underline":null;case 87:return r&&o(e)?"backspace-word":null;case 89:return o(e)?r?"secondary-paste":"redo":null;case 90:return function(e){return a(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 a(e)&&r?"backspace-to-start-of-line":l(e)?"backspace-word":"backspace"}(e);case t.LEFT:return i&&a(e)?"move-selection-to-start-of-block":null;case t.RIGHT:return i&&a(e)?"move-selection-to-end-of-block":null;default:return null}},BP}function AU(){if(UP)return PP;UP=1;var e=Lm();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){a(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var l=UT(),c=qT(),s=MB(),d=function(){if(RR)return FR;RR=1;var e=OT()("draft_tree_data_support");return FR=e?PB():qB()}(),u=YB(),f=CU(),h=function(){if(TP)return DP;TP=1;var e=M.unstable_flushControlled;return DP=e}(),C=pU(),p=VB(),m=RT(),A=i,g=NB(),v=TB(),w=lB(),y=PT(),E=mT(),b=mU(),L=RB(),H=OT(),x=CT(),V=mB(),S=TT(),Z=w.isBrowser("IE"),O=!Z,z={edit:f,composite:s,drag:u,cut:null,render:null},I=!1,N=function(e){function t(){return e.apply(this,arguments)||this}o(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}(A.Component),D=function(e){function i(t){var i;return a(r(i=e.call(this,t)||this),"_blockSelectEvents",void 0),a(r(i),"_clipboard",void 0),a(r(i),"_handler",void 0),a(r(i),"_dragCount",void 0),a(r(i),"_internalDrag",void 0),a(r(i),"_editorKey",void 0),a(r(i),"_placeholderAccessibilityID",void 0),a(r(i),"_latestEditorState",void 0),a(r(i),"_latestCommittedEditorState",void 0),a(r(i),"_pendingStateFromBeforeInput",void 0),a(r(i),"_onBeforeInput",void 0),a(r(i),"_onBlur",void 0),a(r(i),"_onCharacterData",void 0),a(r(i),"_onCompositionEnd",void 0),a(r(i),"_onCompositionStart",void 0),a(r(i),"_onCopy",void 0),a(r(i),"_onCut",void 0),a(r(i),"_onDragEnd",void 0),a(r(i),"_onDragOver",void 0),a(r(i),"_onDragStart",void 0),a(r(i),"_onDrop",void 0),a(r(i),"_onInput",void 0),a(r(i),"_onFocus",void 0),a(r(i),"_onKeyDown",void 0),a(r(i),"_onKeyPress",void 0),a(r(i),"_onKeyUp",void 0),a(r(i),"_onMouseDown",void 0),a(r(i),"_onMouseUp",void 0),a(r(i),"_onPaste",void 0),a(r(i),"_onSelect",void 0),a(r(i),"editor",void 0),a(r(i),"editorContainer",void 0),a(r(i),"focus",void 0),a(r(i),"blur",void 0),a(r(i),"setMode",void 0),a(r(i),"exitCurrentMode",void 0),a(r(i),"restoreEditorDOM",void 0),a(r(i),"setClipboard",void 0),a(r(i),"getClipboard",void 0),a(r(i),"getEditorKey",void 0),a(r(i),"update",void 0),a(r(i),"onDragEnter",void 0),a(r(i),"onDragLeave",void 0),a(r(i),"_handleEditorContainerRef",function(e){i.editorContainer=e,i.editor=null!==e?e.firstChild:null}),a(r(i),"focus",function(e){var t=i.props.editorState,n=t.getSelection().getHasFocus(),r=i.editor;if(r){var a=v.getScrollParent(r),o=e||L(a),l=o.x,c=o.y;V(r)||("production"!==process.env.NODE_ENV?x(!1,"editorNode is not an HTMLElement"):x(!1)),r.focus(),a===window?window.scrollTo(l,c):g.setTop(a,c),n||i.update(m.forceSelection(t,t.getSelection()))}}),a(r(i),"blur",function(){var e=i.editor;e&&(V(e)||("production"!==process.env.NODE_ENV?x(!1,"editorNode is not an HTMLElement"):x(!1)),e.blur())}),a(r(i),"setMode",function(e){var t=i.props,r=t.onPaste,a=t.onCut,o=t.onCopy,l=n({},z.edit);r&&(l.onPaste=r),a&&(l.onCut=a),o&&(l.onCopy=o);var c=n({},z,{edit:l});i._handler=c[e]}),a(r(i),"exitCurrentMode",function(){i.setMode("edit")}),a(r(i),"restoreEditorDOM",function(e){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(e)})}),a(r(i),"setClipboard",function(e){i._clipboard=e}),a(r(i),"getClipboard",function(){return i._clipboard}),a(r(i),"update",function(e){i._latestEditorState=e,i.props.onChange(e)}),a(r(i),"onDragEnter",function(){i._dragCount++}),a(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}o(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:S(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return A.createElement(C,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,a=e.blockStyleFn,o=e.customStyleFn,l=e.customStyleMap,s=e.editorState,u=e.preventScroll,f=e.readOnly,h=e.textAlignment,C=e.textDirectionality,p=y({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),m=this.props.role||"textbox",g="combobox"===m?!!this.props.ariaExpanded:null,v={blockRenderMap:r,blockRendererFn:i,blockStyleFn:a,customStyleMap:n({},c,l),customStyleFn:o,editorKey:this._editorKey,editorState:s,preventScroll:u,textDirectionality:C};return A.createElement("div",{className:p},this._renderPlaceholder(),A.createElement("div",{className:y("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},A.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:g,"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:y({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},A.createElement(N,{editor:this,editorState:s}),A.createElement(d,t({},v,{key:"contents"+this.state.contentsKey})))))},l.componentDidMount=function(){this._blockSelectEvents=!1,!I&&H("draft_ods_enabled")&&(I=!0,p.initODS()),this.setMode("edit"),Z&&(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}(A.Component);return a(D,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:l,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:b,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),PP=D}var gU,vU,wU,yU,EU,bU,MU,LU,HU,xU,VU,kU,SU,ZU,OU,zU,IU,NU,DU,TU,FU,RU,BU,jU,PU,UU,qU,WU={};function XU(){return gU||(gU=1),WU}function QU(){if(wU)return vU;wU=1;var e={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};return vU=e}function GU(){if(MU)return bU;MU=1;var e=KP(),t=dT(),n=function(e,t){return e===t},r=function(e){return!!e},i=[];return bU=function(a){var o=a.getCharacterList().map(function(e){return e.getStyle()}).toList(),l=o.flatten().toSet().map(function(i){return function(i,a,o){var l=[],c=a.map(function(e){return e.has(o)}).toList();return t(c,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:o})}),l}(a,o,i)});return Array.prototype.concat.apply(i,l.toJS())},bU}function KU(){if(HU)return LU;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}HU=1;var t=uT(),n=fT(),r=QU(),i=function(){if(EU)return yU;EU=1;var e=QU(),t=KP().strlen;return yU=function(n,r){var i=[];return n.findEntityRanges(function(e){return!!e.getEntity()},function(a,o){var l=n.getText(),c=n.getEntityAt(a);i.push({offset:t(l.slice(0,a)),length:t(l.slice(a,o)),key:Number(r[e.stringify(c)])})}),i},yU}(),a=GU(),o=CT(),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:i(e,t),data:e.getData().toObject()}},c=function(r,i,a,c){if(r instanceof t)a.push(l(r,i));else{r instanceof n||("production"!==process.env.NODE_ENV?o(!1,"block is not a BlockNode"):o(!1));var s=r.getParentKey(),d=c[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:[]});s?c[s].children.push(d):a.push(d)}};return LU=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,i=[],a={},o={},l=0;return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return null!==e.getEntity()},function(t){var i=e.getEntityAt(t),a=r.stringify(i);o[a]||(o[a]=i,n[a]="".concat(l),l++)}),c(e,n,i,a)}),{blocks:i,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,i=t.entityMap,a={};return Object.keys(i).forEach(function(t,n){var i=e.getEntity(r.unstringify(t));a[n]={type:i.getType(),mutability:i.getMutability(),data:i.getData()}}),{blocks:n,entityMap:a}}(e,t),t},LU}function YU(){if(VU)return xU;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}VU=1;var n=mT(),r=CT(),i=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},a={fromRawTreeStateToRawState:function(t){var n=t.blocks,a=[];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 a=i.children;Array.isArray(a)||("production"!==process.env.NODE_ENV?r(!1,"Invalid tree raw block"):r(!1)),n=n.concat([].concat(a.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,a.push(n))}),t.blocks=a,e({},t,{blocks:a})):t},fromRawStateToRawTreeState:function(t){var r=[],a=[];return t.blocks.forEach(function(t){var o=i(t),l=t.depth||0,c=e({},t,{children:[]});if(o){var s=a[0];if(null==s&&0===l)r.push(c);else if(null==s||s.depth<l-1){var d={key:n(),text:"",depth:l-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};a.unshift(d),1===l?r.push(d):null!=s&&s.children.push(d),d.children.push(c)}else if(s.depth===l-1)s.children.push(c);else{for(;null!=s&&s.depth>=l;)a.shift(),s=a[0];l>0?s.children.push(c):r.push(c)}}else r.push(c)}),e({},t,{blocks:r})}};return xU=a}function _U(){if(FU)return TU;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}FU=1;var n=uT(),r=fT(),i=IT(),a=ST(),o=YU(),l=function(){if(SU)return kU;SU=1;var e=YP(),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 a=t.getChildKeys().map(function(e){return n.get(e)});if(!a.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 o=t.getPrevSiblingKey();if(null!=o&&n.get(o).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!==o&&o===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(),a=[];null!=i;){var o=t.get(i),l=o.getChildKeys(),c=o.getNextSiblingKey();if(l.size>0){null!=c&&a.unshift(c);var s=l.map(function(e){return t.get(e)}),d=s.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!=o.getNextSiblingKey()?o.getNextSiblingKey():a.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 kU=t}(),c=ZT(),s=function(){if(OU)return ZU;OU=1;var e=sT(),t=lT().List;return ZU=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(IU)return zU;IU=1;var e=KP().substr;return zU=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,a=i+e(t,n.offset,n.length).length,o=i;o<a;o++)r[o]=n.key}),r},zU}(),u=function(){if(DU)return NU;DU=1;var e=KP(),t=lT().OrderedSet,n=e.substr,r=t();return NU=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,a=r+n(e,t.offset,t.length).length;r<a;)i[r]=i[r].add(t.style),r++}),i},NU}(),f=mT(),h=OT(),C=lT(),p=CT(),m=h("draft_tree_data_support"),A=C.List,g=C.Map,v=C.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:g(i),characterList:y(e,t)}},y=function(t,n){var r=t.text,i=t.entityRanges,a=t.inlineStyleRanges,o=i||[];return s(u(r,a||[]),d(r,o.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()})},b=function(t,n,r){var i=n.map(function(t){return e({},t,{parentRef:r})});return t.concat(i.reverse())},M=function(t,i){var a=t.blocks.find(function(e){return Array.isArray(e.children)&&e.children.length>0}),c=m&&!a?o.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!m)return function(e,t){return v(e.map(function(e){var r=new n(w(e,t));return[r.getKey(),r]}))}(a?o.fromRawTreeStateToRawState(t).blocks:c,i);var s=function(t,n){return t.map(E).reduce(function(i,a,o){Array.isArray(a.children)||("production"!==process.env.NODE_ENV?p(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):p(!1));var l=a.children.map(E),c=new r(e({},w(a,n),{prevSibling:0===o?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:A(l.map(function(e){return e.key}))}));i=i.set(c.getKey(),c);for(var s=b([],l,c);s.length>0;){var d=s.pop(),u=d.parentRef,f=u.getChildKeys(),h=f.indexOf(d.key),C=Array.isArray(d.children);if(!C){C||("production"!==process.env.NODE_ENV?p(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):p(!1));break}var m=d.children.map(E),g=new r(e({},w(d,n),{parent:u.getKey(),children:A(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(g.getKey(),g),s=b(s,m,g)}return i},v())}(c,i);return"production"!==process.env.NODE_ENV&&(l.isValidTree(s)||("production"!==process.env.NODE_ENV?p(!1,"Should be a valid tree"):p(!1))),s};return TU=function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?p(!1,"invalid RawDraftContentState"):p(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach(function(e){var r=t[e],i=r.type,o=r.mutability,l=r.data;n[e]=a.__create(i,o,l||{})}),n}(e),n=M(e,t),r=n.isEmpty()?new c:c.createEmpty(n.first().getKey());return new i({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}}function JU(){if(PU)return jU;PU=1;var e=function(){if(BU)return RU;BU=1;var e=nU();return RU=function(t){var n=e(t),r=0,i=0,a=0,o=0;if(n.length){if(n.length>1&&0===n[0].width){var l=n[1];r=l.top,i=l.right,a=l.bottom,o=l.left}else{var c=n[0];r=c.top,i=c.right,a=c.bottom,o=c.left}for(var s=1;s<n.length;s++){var d=n[s];0!==d.height&&0!==d.width&&(r=Math.min(r,d.top),i=Math.max(i,d.right),a=Math.max(a,d.bottom),o=Math.min(o,d.left))}}return{top:r,right:i,bottom:a,left:o,width:i-o,height:a-r}},RU}();return jU=function(t){var n=t.getSelection();if(!n.rangeCount)return null;var r=n.getRangeAt(0),i=e(r),a=i.top,o=i.right,l=i.bottom,c=i.left;return 0===a&&0===o&&0===l&&0===c?null:i},jU}function $U(){if(qU)return UU;qU=1;var e=BT(),t=cT(),n=sT(),r=jT(),i=uT(),a=IT(),o=UT(),l=qT(),c=AU(),s=UB(),d=ST(),u=HT(),f=kT(),h=RT(),C=tU(),p=XU(),m=fU(),A=ZT(),g=KU(),v=_U(),w=mT(),y=mU(),E=JU(),b=dU();return UU={Editor:c,EditorBlock:s,EditorState:h,CompositeDecorator:r,Entity:d,EntityInstance:f,BlockMapBuilder:t,CharacterMetadata:n,ContentBlock:i,ContentState:a,RawDraftContentState:p,SelectionState:A,AtomicBlockUtils:e,KeyBindingUtil:C,Modifier:u,RichUtils:m,DefaultDraftBlockRenderMap:o,DefaultDraftInlineStyle:l,convertFromHTML:b,convertFromRaw:v,convertToRaw:g,genKey:w,getDefaultKeyBinding:y,getVisibleSelectionRect:E}}var eq=$U(),tq={exports:{}},nq="@@__IMMUTABLE_INDEXED__@@";function rq(e){return Boolean(e&&e[nq])}var iq="@@__IMMUTABLE_KEYED__@@";function aq(e){return Boolean(e&&e[iq])}function oq(e){return aq(e)||rq(e)}var lq="@@__IMMUTABLE_ITERABLE__@@";function cq(e){return Boolean(e&&e[lq])}var sq=function(e){return cq(e)?e:Xq(e)},dq=function(e){function t(e){return aq(e)?e:Qq(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(sq),uq=function(e){function t(e){return rq(e)?e:Gq(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(sq),fq=function(e){function t(e){return cq(e)&&!oq(e)?e:Kq(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(sq);sq.Keyed=dq,sq.Indexed=uq,sq.Set=fq;var hq="function"==typeof Symbol&&Symbol.iterator,Cq="@@iterator",pq=hq||Cq,mq=function(e){this.next=e};function Aq(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 gq(){return{value:void 0,done:!0}}function vq(e){return!!Array.isArray(e)||!!Eq(e)}function wq(e){return!(!e||"function"!=typeof e.next)}function yq(e){var t=Eq(e);return t&&t.call(e)}function Eq(e){var t=e&&(hq&&e[hq]||e[Cq]);if("function"==typeof t)return t}mq.prototype.toString=function(){return"[Iterator]"},mq.KEYS=0,mq.VALUES=1,mq.ENTRIES=2,mq.prototype.inspect=mq.prototype.toSource=function(){return this.toString()},mq.prototype[pq]=function(){return this};var bq="delete",Mq=32,Lq=31,Hq={};function xq(e){e&&(e.value=!0)}function Vq(){}function kq(e){return void 0===e.size&&(e.size=e.__iterate(Zq)),e.size}function Sq(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?kq(e)+t:t}function Zq(){return!0}function Oq(e,t,n){return(0===e&&!Dq(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function zq(e,t){return Nq(e,t,0)}function Iq(e,t){return Nq(e,t,t)}function Nq(e,t,n){return void 0===e?n:Dq(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function Dq(e){return e<0||0===e&&1/e==-1/0}var Tq="@@__IMMUTABLE_RECORD__@@";function Fq(e){return Boolean(e&&e[Tq])}function Rq(e){return cq(e)||Fq(e)}var Bq="@@__IMMUTABLE_ORDERED__@@";function jq(e){return Boolean(e&&e[Bq])}var Pq="@@__IMMUTABLE_SEQ__@@";function Uq(e){return Boolean(e&&e[Pq])}var qq=Object.prototype.hasOwnProperty;function Wq(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 Xq=function(e){function t(e){return null==e?eW():Rq(e)?e.toSeq():function(e){var t=rW(e);if(t)return(r=Eq(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=Eq(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new _q(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 a=n[t?r-++i:i++];if(!1===e(a[1],a[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 mq(function(){if(i===r)return{value:void 0,done:!0};var a=n[t?r-++i:i++];return Aq(e,a[0],a[1])})}return this.__iteratorUncached(e,t)},t}(sq),Qq=function(e){function t(e){return null==e?eW().toKeyedSeq():cq(e)?aq(e)?e.toSeq():e.fromEntrySeq():Fq(e)?e.toSeq():tW(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Xq),Gq=function(e){function t(e){return null==e?eW():cq(e)?aq(e)?e.entrySeq():e.toIndexedSeq():Fq(e)?e.toSeq().entrySeq():nW(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}(Xq),Kq=function(e){function t(e){return(cq(e)&&!oq(e)?e:Gq(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}(Xq);Xq.isSeq=Uq,Xq.Keyed=Qq,Xq.Set=Kq,Xq.Indexed=Gq,Xq.prototype[Pq]=!0;var Yq=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[Sq(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var a=t?r-++i:i++;if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new mq(function(){if(i===r)return{value:void 0,done:!0};var a=t?r-++i:i++;return Aq(e,a,n[a])})},t}(Gq),_q=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 qq.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,a=0;a!==i;){var o=r[t?i-++a:a++];if(!1===e(n[o],o,this))break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,a=0;return new mq(function(){if(a===i)return{value:void 0,done:!0};var o=r[t?i-++a:a++];return Aq(e,o,n[o])})},t}(Qq);_q.prototype[Bq]=!0;var Jq,$q=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=yq(this._collection),r=0;if(wq(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=yq(this._collection);if(!wq(n))return new mq(gq);var r=0;return new mq(function(){var t=n.next();return t.done?t:Aq(e,r++,t.value)})},t}(Gq);function eW(){return Jq||(Jq=new Yq([]))}function tW(e){var t=rW(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new _q(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function nW(e){var t=rW(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function rW(e){return Wq(e)?new Yq(e):vq(e)?new $q(e):void 0}function iW(){return this.__ensureOwner()}function aW(){return this.__ownerID?this:this.__ensureOwner(new Vq)}var oW="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 lW(e){return e>>>1&1073741824|3221225471&e}var cW=Object.prototype.valueOf;function sW(e){if(null==e)return dW(e);if("function"==typeof e.hashCode)return lW(e.hashCode(e));var t,n=(t=e).valueOf!==cW&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return dW(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 lW(t)}(n);case"string":return n.length>EW?function(e){var t=LW[e];void 0===t&&(t=uW(e),MW===bW&&(MW=0,LW={}),MW++,LW[e]=t);return t}(n):uW(n);case"object":case"function":return function(e){var t;if(gW&&void 0!==(t=AW.get(e)))return t;if(t=e[yW],void 0!==t)return t;if(!pW){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[yW]))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=mW(),gW)AW.set(e,t);else{if(void 0!==CW&&!1===CW(e))throw new Error("Non-extensible objects are not allowed as keys.");if(pW)Object.defineProperty(e,yW,{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[yW]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[yW]=t}}return t}(n);case"symbol":return function(e){var t=vW[e];if(void 0!==t)return t;return t=mW(),vW[e]=t,t}(n);default:if("function"==typeof n.toString)return uW(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function dW(e){return null===e?1108378658:1108378659}function uW(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return lW(t)}var fW=(1048576*Math.random()|1)%1048576||40503;function hW(e){if("string"!=typeof e)return sW(e);for(var t=0,n=0;n<e.length;n++)t=fW*t+e.charCodeAt(n)|0;return t}var CW=Object.isExtensible,pW=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function mW(){var e=++wW;return 1073741824&wW&&(wW=0),e}var AW,gW="function"==typeof WeakMap;gW&&(AW=new WeakMap);var vW=Object.create(null),wW=0,yW="__immutablehash__";"function"==typeof Symbol&&(yW=Symbol(yW));var EW=16,bW=255,MW=0,LW={},HW=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=OW(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=ZW(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}(Qq);HW.prototype[Bq]=!0;var xW=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&&kq(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&&kq(this),new mq(function(){var a=r.next();return a.done?a:Aq(e,t?n.size-++i:i++,a.value,a)})},t}(Gq),VW=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 mq(function(){var t=n.next();return t.done?t:Aq(e,t.value,t.value,t)})},t}(Kq),kW=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){UW(t);var r=cq(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 mq(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){UW(r);var i=cq(r);return Aq(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(Qq);function SW(e){var t=WW(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=XW,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 mq(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 ZW(e,t,n){var r=WW(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,Hq);return a===Hq?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return!1!==r(t.call(n,e,i,o),i,a)},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(2,i);return new mq(function(){var i=a.next();if(i.done)return i;var o=i.value,l=o[0];return Aq(r,l,t.call(n,o[1],l,e),i)})},r}function OW(e,t){var n=WW(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=SW(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=XW,n.__iterate=function(n,r){var i=this,a=0;return r&&kq(e),e.__iterate(function(e,o){return n(e,t?o:r?i.size-++a:a++,i)},!r)},n.__iterator=function(r,i){var a=0;i&&kq(e);var o=e.__iterator(2,!i);return new mq(function(){var e=o.next();if(e.done)return e;var l=e.value;return Aq(r,t?l[0]:i?n.size-++a:a++,l[1],e)})},n}function zW(e,t,n,r){var i=WW(e);return r&&(i.has=function(r){var i=e.get(r,Hq);return i!==Hq&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,Hq);return a!==Hq&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,l=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return l++,i(e,r?a:l-1,o)},a),l},i.__iteratorUncached=function(i,a){var o=e.__iterator(2,a),l=0;return new mq(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,s=c[0],d=c[1];if(t.call(n,d,s,e))return Aq(i,r?s:l++,d,a)}})},i}function IW(e,t,n,r){var i=e.size;if(Oq(t,n,i))return e;if(void 0===i&&(t<0||n<0))return IW(e.toSeq().cacheResult(),t,n,r);var a,o=zq(t,i),l=Iq(n,i)-o;l==l&&(a=l<0?0:l);var c=WW(e);return c.size=0===a?a:e.size&&a||void 0,!r&&Uq(e)&&a>=0&&(c.get=function(t,n){return(t=Sq(this,t))>=0&&t<a?e.get(t+o,n):n}),c.__iterateUncached=function(t,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var l=0,c=!0,s=0;return e.__iterate(function(e,n){if(!c||!(c=l++<o))return s++,!1!==t(e,r?n:s-1,i)&&s!==a}),s},c.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);if(0===a)return new mq(gq);var i=e.__iterator(t,n),l=0,c=0;return new mq(function(){for(;l++<o;)i.next();if(++c>a)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:Aq(t,c-1,0===t?void 0:e.value[1],e)})},c}function NW(e,t,n,r){var i=WW(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var l=!0,c=0;return e.__iterate(function(e,a,s){if(!l||!(l=t.call(n,e,a,s)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var l=e.__iterator(2,a),c=!0,s=0;return new mq(function(){var e,a,d;do{if((e=l.next()).done)return r||1===i?e:Aq(i,s++,0===i?void 0:e.value[1],e);var u=e.value;a=u[0],d=u[1],c&&(c=t.call(n,d,a,o))}while(c);return 2===i?e:Aq(i,a,d,e)})},i}xW.prototype.cacheResult=HW.prototype.cacheResult=VW.prototype.cacheResult=kW.prototype.cacheResult=XW;var DW=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[iq]=this._wrappedIterables[0][iq],this[nq]=this._wrappedIterables[0][nq],this[Bq]=this._wrappedIterables[0][Bq]}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=aq(this),i=r?2:1,a=this._wrappedIterables[n].__iterator(i,t),o=!0,l=0;o;){for(var c=a.next();c.done;){if(++n===this._wrappedIterables.length)return l;c=(a=this._wrappedIterables[n].__iterator(i,t)).next()}o=!1!==(r?e(c.value[1],c.value[0],this):e(c.value,l,this)),l++}return l}},t.prototype.__iteratorUncached=function(e,t){var n=this;if(0===this._wrappedIterables.length)return new mq(gq);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new mq(function(){for(var a=i.next();a.done;){if(++r===n._wrappedIterables.length)return a;a=(i=n._wrappedIterables[r].__iterator(e,t)).next()}return a})},t}(Xq);function TW(e,t,n){var r=WW(e);return r.__iterateUncached=function(i,a){if(a)return this.cacheResult().__iterate(i,a);var o=0,l=!1;return function e(c,s){c.__iterate(function(a,c){return(!t||s<t)&&cq(a)?e(a,s+1):(o++,!1===i(a,n?c:o-1,r)&&(l=!0)),!l},a)}(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(r,i),o=[],l=0;return new mq(function(){for(;a;){var e=a.next();if(!1===e.done){var c=e.value;if(2===r&&(c=c[1]),t&&!(o.length<t)||!cq(c))return n?e:Aq(r,l++,c,e);o.push(a),a=c.__iterator(r,i)}else a=o.pop()}return{value:void 0,done:!0}})},r}function FW(e,t,n){t||(t=QW);var r=aq(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?Qq(a):rq(e)?Gq(a):Kq(a)}function RW(e,t,n){if(t||(t=QW),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return BW(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return BW(t,e,n)?n:e})}function BW(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function jW(e,t,n,r){var i=WW(e),a=new Yq(n).map(function(e){return e.size});return i.size=r?a.max():a.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 a=n.map(function(e){return e=sq(e),yq(i?e.reverse():e)}),o=0,l=!1;return new mq(function(){var n;return l||(n=a.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}:Aq(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function PW(e,t){return e===t?e:Uq(e)?t:e.constructor(t)}function UW(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function qW(e){return aq(e)?dq:rq(e)?uq:fq}function WW(e){return Object.create((aq(e)?Qq:rq(e)?Gq:Kq).prototype)}function XW(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Xq.prototype.cacheResult.call(this)}function QW(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 GW(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function KW(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!!(GW(e)&&GW(t)&&e.equals(t))}function YW(e,t,n,r){return _X(e,[t],n,r)}function _W(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return $W(this,e)}function JW(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 $W(this,t,e)}function $W(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=dq(t[i]);0!==a.size&&r.push(a)}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){YW(e,r,Hq,function(e){return e===Hq?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)}):Fq(e)?e:e.constructor(r[0])}var eX=Object.prototype.toString;function tX(e){if(!e||"object"!=typeof e||"[object Object]"!==eX.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 nX(e){return"object"==typeof e&&(Rq(e)||Array.isArray(e)||tX(e))}function rX(e){return"string"==typeof e&&("__proto__"===e||"constructor"===e)}function iX(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 aX(e){if(Array.isArray(e))return iX(e);var t={};for(var n in e)rX(n)||qq.call(e,n)&&(t[n]=e[n]);return t}function oX(e,t,n){return lX(e,t,function(e){function t(n,r,i){return nX(n)&&nX(r)&&(a=r,o=Xq(n),l=Xq(a),rq(o)===rq(l)&&aq(o)===aq(l))?lX(n,[r],t):e?e(n,r,i):r;var a,o,l}return t}(n))}function lX(e,t,n){if(!nX(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Rq(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,a=r?uq:dq,o=r?function(t){i===e&&(i=aX(i)),i.push(t)}:function(t,r){if(!rX(r)){var a=qq.call(i,r),o=a&&n?n(i[r],t,r):t;a&&o===i[r]||(i===e&&(i=aX(i)),i[r]=o)}},l=0;l<t.length;l++)a(t[l]).forEach(o);return i}function cX(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return oX(this,e)}function sX(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return oX(this,t,e)}function dX(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return _X(this,e,IX(),function(e){return oX(e,t)})}function uX(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return _X(this,e,IX(),function(e){return lX(e,t)})}function fX(e,t,n){return _X(e,t,Hq,function(){return n})}function hX(e,t){return fX(this,e,t)}function CX(e,t,n){return 1===arguments.length?e(this):YW(this,e,t,n)}function pX(e,t,n){return _X(this,e,t,n)}function mX(){return this.__altered}function AX(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}var gX="@@__IMMUTABLE_MAP__@@";function vX(e){return Boolean(e&&e[gX])}function wX(e,t){if(!e)throw new Error(t)}function yX(e){wX(e!==1/0,"Cannot perform this action with an infinite size.")}var EX=function(e){function t(t){return null==t?IX():vX(t)&&!jq(t)?t:IX().withMutations(function(n){var r=e(t);yX(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 NX(this,e,t)},t.prototype.remove=function(e){return NX(this,e,Hq)},t.prototype.deleteAll=function(e){var t=sq(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):IX()},t.prototype.sort=function(e){return vQ(FW(this,e))},t.prototype.sortBy=function(e,t){return vQ(FW(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,a){r.set(a,e.call(t,i,a,n))})})},t.prototype.__iterator=function(e,t){return new SX(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?zX(this.size,this._root,e,this.__hash):0===this.size?IX():(this.__ownerID=e,this.__altered=!1,this)},t}(dq);EX.isMap=vX;var bX=EX.prototype;bX[gX]=!0,bX[bq]=bX.remove,bX.removeAll=bX.deleteAll,bX.setIn=hX,bX.removeIn=bX.deleteIn=eQ,bX.update=CX,bX.updateIn=pX,bX.merge=bX.concat=_W,bX.mergeWith=JW,bX.mergeDeep=cX,bX.mergeDeepWith=sX,bX.mergeIn=uX,bX.mergeDeepIn=dX,bX.withMutations=AX,bX.wasAltered=mX,bX.asImmutable=iW,bX["@@transducer/init"]=bX.asMutable=aW,bX["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},bX["@@transducer/result"]=function(e){return e.asImmutable()};var MX=function(e,t){this.ownerID=e,this.entries=t};MX.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(KW(n,i[a][0]))return i[a][1];return r},MX.prototype.update=function(e,t,n,r,i,a,o){for(var l=i===Hq,c=this.entries,s=0,d=c.length;s<d&&!KW(r,c[s][0]);s++);var u=s<d;if(u?c[s][1]===i:l)return this;if(xq(o),(l||!u)&&xq(a),!l||1!==c.length){if(!u&&!l&&c.length>=jX)return function(e,t,n,r){e||(e=new Vq);for(var i=new VX(e,sW(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}(e,c,r,i);var f=e&&e===this.ownerID,h=f?c:iX(c);return u?l?s===d-1?h.pop():h[s]=h.pop():h[s]=[r,i]:h.push([r,i]),f?(this.entries=h,this):new MX(e,h)}};var LX=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};LX.prototype.get=function(e,t,n,r){void 0===t&&(t=sW(n));var i=1<<((0===e?t:t>>>e)&Lq),a=this.bitmap;return 0===(a&i)?r:this.nodes[RX(a&i-1)].get(e+5,t,n,r)},LX.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=sW(r));var l=(0===t?n:n>>>t)&Lq,c=1<<l,s=this.bitmap,d=0!==(s&c);if(!d&&i===Hq)return this;var u=RX(s&c-1),f=this.nodes,h=d?f[u]:void 0,C=DX(h,e,t+5,n,r,i,a,o);if(C===h)return this;if(!d&&C&&f.length>=PX)return function(e,t,n,r,i){for(var a=0,o=new Array(Mq),l=0;0!==n;l++,n>>>=1)o[l]=1&n?t[a++]:void 0;return o[r]=i,new HX(e,a+1,o)}(e,f,s,l,C);if(d&&!C&&2===f.length&&TX(f[1^u]))return f[1^u];if(d&&C&&1===f.length&&TX(C))return C;var p=e&&e===this.ownerID,m=d?C?s:s^c:s|c,A=d?C?BX(f,u,C,p):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}(f,u,p):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=new Array(i),o=0,l=0;l<i;l++)l===t?(a[l]=n,o=-1):a[l]=e[l+o];return a}(f,u,C,p);return p?(this.bitmap=m,this.nodes=A,this):new LX(e,m,A)};var HX=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};HX.prototype.get=function(e,t,n,r){void 0===t&&(t=sW(n));var i=(0===e?t:t>>>e)&Lq,a=this.nodes[i];return a?a.get(e+5,t,n,r):r},HX.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=sW(r));var l=(0===t?n:n>>>t)&Lq,c=i===Hq,s=this.nodes,d=s[l];if(c&&!d)return this;var u=DX(d,e,t+5,n,r,i,a,o);if(u===d)return this;var f=this.count;if(d){if(!u&&--f<UX)return function(e,t,n,r){for(var i=0,a=0,o=new Array(n),l=0,c=1,s=t.length;l<s;l++,c<<=1){var d=t[l];void 0!==d&&l!==r&&(i|=c,o[a++]=d)}return new LX(e,i,o)}(e,s,f,l)}else f++;var h=e&&e===this.ownerID,C=BX(s,l,u,h);return h?(this.count=f,this.nodes=C,this):new HX(e,f,C)};var xX=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n,this._index=void 0};xX.prototype._positionOf=function(e,t){var n=this.entries,r=this._index;if(void 0===r&&t&&n.length>=qX&&(r=this._buildIndex()),void 0!==r){var i=r[hW(e)];if(void 0!==i)for(var a=0;a<i.length;a++){var o=i[a];if(KW(e,n[o][0]))return o}return-1}for(var l=0,c=n.length;l<c;l++)if(KW(e,n[l][0]))return l;return-1},xX.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,n=0,r=t.length;n<r;n++){var i=hW(t[n][0]),a=e[i];void 0!==a?a.push(n):e[i]=[n]}return this._index=e,e},xX.prototype.get=function(e,t,n,r){var i=this._positionOf(n,!0);return-1===i?r:this.entries[i][1]},xX.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=sW(r));var l=i===Hq;if(n!==this.keyHash)return l?this:(xq(o),xq(a),FX(this,e,t,n,[r,i]));var c=this.entries,s=c.length,d=e&&e===this.ownerID,u=this._positionOf(r,d),f=-1===u?s:u,h=-1!==u;if(h?c[f][1]===i:l)return this;if(xq(o),(l||!h)&&xq(a),l&&2===s)return new VX(e,this.keyHash,c[1^f]);var C=d?c:iX(c);if(h)l?(f===s-1?C.pop():C[f]=C.pop(),d&&(this._index=void 0)):C[f]=[r,i];else if(C.push([r,i]),d&&void 0!==this._index){var p=hW(r),m=this._index[p];void 0!==m?m.push(s):this._index[p]=[s]}return d?(this.entries=C,this):new xX(e,this.keyHash,C)};var VX=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};VX.prototype.get=function(e,t,n,r){return KW(n,this.entry[0])?this.entry[1]:r},VX.prototype.update=function(e,t,n,r,i,a,o){var l=i===Hq,c=KW(r,this.entry[0]);return(c?i===this.entry[1]:l)?this:(xq(o),l?void xq(a):c?e&&e===this.ownerID?(this.entry[1]=i,this):new VX(e,this.keyHash,[r,i]):(xq(a),FX(this,e,t,sW(r),[r,i])))},MX.prototype.iterate=xX.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},LX.prototype.iterate=HX.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&!1===a.iterate(e,t))return!1}},VX.prototype.iterate=function(e,t){return e(this.entry)};var kX,SX=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&OX(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 ZX(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return ZX(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return ZX(e,a.entry);t=this._stack=OX(a,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(mq);function ZX(e,t){return Aq(e,t[0],t[1])}function OX(e,t){return{node:e,index:0,__prev:t}}function zX(e,t,n,r){var i=Object.create(bX);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function IX(){return kX||(kX=zX(0))}function NX(e,t,n){var r,i;if(e._root){var a={value:!1},o={value:!1};if(r=DX(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===Hq?-1:1:0)}else{if(n===Hq)return e;i=1,r=new MX(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?zX(i,r):IX()}function DX(e,t,n,r,i,a,o,l){return e?e.update(t,n,r,i,a,o,l):a===Hq?e:(xq(l),xq(o),new VX(t,r,[i,a]))}function TX(e){return e.constructor===VX||e.constructor===xX}function FX(e,t,n,r,i){if(e.keyHash===r)return new xX(t,r,[e.entry,i]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&Lq,l=(0===n?r:r>>>n)&Lq,c=o===l?[FX(e,t,n+5,r,i)]:(a=new VX(t,r,i),o<l?[e,a]:[a,e]);return new LX(t,1<<o|1<<l,c)}function RX(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function BX(e,t,n,r){var i=r?e:iX(e);return i[t]=n,i}var jX=8,PX=16,UX=8,qX=16;function WX(e){if(Wq(e)&&"string"!=typeof e)return e;if(jq(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function XX(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function QX(e,t){return Rq(e)?e.has(t):nX(e)&&qq.call(e,t)}function GX(e,t,n){return Rq(e)?e.get(t,n):QX(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function KX(e,t){if(!nX(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Rq(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!qq.call(e,t))return e;var n=aX(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function YX(e,t,n){if(rX(t))return e;if(!nX(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Rq(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(qq.call(e,t)&&n===e[t])return e;var r=aX(e);return r[t]=n,r}function _X(e,t,n,r){r||(r=n,n=void 0);var i=JX(Rq(e),e,WX(t),0,n,r);return i===Hq?n:i}function JX(e,t,n,r,i,a){var o=t===Hq;if(r===n.length){var l=o?i:t,c=a(l);return c===l?t:c}if(!o&&!nX(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(n).slice(0,r).map(XX)+"]: "+t);var s=n[r],d=o?Hq:GX(t,s,Hq),u=JX(d===Hq?e:Rq(d),d,n,r+1,i,a);return u===d?t:u===Hq?KX(t,s):YX(o?e?IX():{}:t,s,u)}function $X(e,t){return _X(e,t,function(){return Hq})}function eQ(e){return $X(this,e)}var tQ="@@__IMMUTABLE_LIST__@@";function nQ(e){return Boolean(e&&e[tQ])}var rQ=function(e){function t(t){var n=sQ();if(null==t)return n;if(nQ(t))return t;var r=e(t),i=r.size;return 0===i?n:(yX(i),i>0&&i<Mq?cQ(0,i,5,void 0,new aQ(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=Sq(this,e))>=0&&e<this.size){var n=fQ(this,e+=this._origin);return n&&n.array[e&Lq]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=Sq(e,t),t!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?hQ(e,t).set(0,n):hQ(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a={value:!1};t>=CQ(e._capacity)?r=dQ(r,e.__ownerID,0,t,n,a):i=dQ(i,e.__ownerID,e._level,t,n,a);if(!a.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return cQ(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):sQ()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){hQ(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return hQ(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){hQ(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return hQ(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],a=e("string"!=typeof i&&vq(i)?i:[i]);0!==a.size&&n.push(a)}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 hQ(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 Oq(e,t,n)?this:hQ(this,zq(e,n),Iq(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=lQ(this,t);return new mq(function(){var i=r();return i===oQ?{value:void 0,done:!0}:Aq(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=lQ(this,t);(n=i())!==oQ&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?cQ(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?sQ():(this.__ownerID=e,this.__altered=!1,this)},t}(uq);rQ.isList=nQ;var iQ=rQ.prototype;iQ[tQ]=!0,iQ[bq]=iQ.remove,iQ.merge=iQ.concat,iQ.setIn=hX,iQ.deleteIn=iQ.removeIn=eQ,iQ.update=CX,iQ.updateIn=pX,iQ.mergeIn=uX,iQ.mergeDeepIn=dX,iQ.withMutations=AX,iQ.wasAltered=mX,iQ.asImmutable=iW,iQ["@@transducer/init"]=iQ.asMutable=aW,iQ["@@transducer/step"]=function(e,t){return e.push(t)},iQ["@@transducer/result"]=function(e){return e.asImmutable()};var aQ=function(e,t){this.array=e,this.ownerID=t};aQ.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+5)-1)||0===this.array.length)return this;var r=n>>>t&Lq;if(r>=this.array.length)return new aQ([],e);var i,a=0===r;if(t>0){var o=this.array[r];if((i=o&&o.removeBefore(e,t-5,n))===o&&a)return this}if(a&&!i)return this;var l=uQ(this,e);if(!a)for(var c=0;c<r;c++)l.array[c]=void 0;return i&&(l.array[r]=i),l},aQ.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+5:Mq)||0===this.array.length)return this;var r,i=n-1>>>t&Lq;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((r=a&&a.removeAfter(e,t-5,n))===a&&i===this.array.length-1)return this}var o=uQ(this,e);return o.array.splice(i+1),r&&(o.array[i]=r),o};var oQ={};function lQ(e,t){var n=e._origin,r=e._capacity,i=CQ(r),a=e._tail;return o(e._root,e._level,0);function o(e,l,c){return 0===l?function(e,o){var l=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,s=r-o;s>Mq&&(s=Mq);return function(){if(c===s)return oQ;var e=t?--s:c++;return l&&l[e]}}(e,c):function(e,i,a){var l,c=e&&e.array,s=a>n?0:n-a>>i,d=1+(r-a>>i);d>Mq&&(d=Mq);return function(){for(;;){if(l){var e=l();if(e!==oQ)return e;l=null}if(s===d)return oQ;var n=t?--d:s++;l=o(c&&c[n],i-5,a+(n<<i))}}}(e,l,c)}}function cQ(e,t,n,r,i,a,o){var l=Object.create(iQ);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=i,l.__ownerID=a,l.__hash=o,l.__altered=!1,l}function sQ(){return cQ(0,0,5)}function dQ(e,t,n,r,i,a){var o,l=r>>>n&Lq,c=e&&l<e.array.length;if(!c&&void 0===i)return e;if(n>0){var s=e&&e.array[l],d=dQ(s,t,n-5,r,i,a);return d===s?e:((o=uQ(e,t)).array[l]=d,o)}return c&&e.array[l]===i?e:(a&&xq(a),o=uQ(e,t),void 0===i&&l===o.array.length-1?o.array.pop():o.array[l]=i,o)}function uQ(e,t){return t&&e&&t===e.ownerID?e:new aQ(e?e.array.slice():[],t)}function fQ(e,t){if(t>=CQ(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&Lq],r-=5;return n}}function hQ(e,t,n){!function(e,t,n){var r=e._origin+(void 0===t?0:t),i=void 0===n?e._capacity:n<0?e._capacity+n:e._origin+n;if(Number.isFinite(i)&&i>pQ||Number.isFinite(r)&&r<-pQ||Number.isFinite(i)&&Number.isFinite(r)&&i-r>pQ)throw new RangeError("Invalid List size: a List cannot hold more than "+pQ+" (2 ** 30) values.")}(e,t,n),void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new Vq,i=e._origin,a=e._capacity,o=i+t,l=void 0===n?a:n<0?a+n:i+n;if(o===i&&l===a)return e;if(o>=l)return e.clear();for(var c=e._level,s=e._root,d=0;o+d<0;)s=new aQ(s&&s.array.length?[void 0,s]:[],r),d+=mQ(c+=5);d&&(o+=d,i+=d,l+=d,a+=d);for(var u=CQ(a),f=CQ(l);f>=mQ(c+5);)s=new aQ(s&&s.array.length?[s]:[],r),c+=5;var h=e._tail,C=f<u?fQ(e,l-1):f>u?new aQ([],r):h;if(h&&f>u&&o<a&&h.array.length){for(var p=s=uQ(s,r),m=c;m>5;m-=5){var A=u>>>m&Lq;p=p.array[A]=uQ(p.array[A],r)}p.array[u>>>5&Lq]=h}if(l<a&&(C=C&&C.removeAfter(r,0,l)),o>=f)o-=f,l-=f,c=5,s=void 0,C=C&&C.removeBefore(r,0,o);else if(o>i||f<u){for(d=0;s;){var g=o>>>c&Lq;if(g!==f>>>c&Lq)break;g&&(d+=(1<<c)*g),c-=5,s=s.array[g]}s&&o>i&&(s=s.removeBefore(r,c,o-d)),s&&f<u&&(s=s.removeAfter(r,c,f-d)),d&&(o-=d,l-=d)}return e.__ownerID?(e.size=l-o,e._origin=o,e._capacity=l,e._level=c,e._root=s,e._tail=C,e.__hash=void 0,e.__altered=!0,e):cQ(o,l,c,s,C)}function CQ(e){return e<Mq?0:e-1>>>5<<5}var pQ=Math.pow(2,30);function mQ(e){return e<31?1<<e:Math.pow(2,e)}function AQ(e){return vX(e)&&jq(e)}var gQ,vQ=function(e){function t(e){return null==e?yQ():AQ(e)?e:yQ().withMutations(function(t){var n=dq(e);yX(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):yQ()},t.prototype.set=function(e,t){return EQ(this,e,t)},t.prototype.remove=function(e){return EQ(this,e,Hq)},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?wQ(t,n,e,this.__hash):0===this.size?yQ():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(EX);function wQ(e,t,n,r){var i=Object.create(vQ.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 yQ(){return gQ||(gQ=wQ(IX(),sQ()))}function EQ(e,t,n){var r,i,a=e._map,o=e._list,l=a.get(t),c=void 0!==l;if(n===Hq){if(!c)return e;o.size>=Mq&&o.size>=2*a.size?(r=(i=o.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=a.remove(t),i=l===o.size-1?o.pop():o.set(l,void 0))}else if(c){if(n===o.get(l)[1])return e;r=a,i=o.set(l,[t,n])}else r=a.set(t,o.size),i=o.set(o.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):wQ(r,i)}vQ.isOrderedMap=AQ,vQ.prototype[Bq]=!0,vQ.prototype[bq]=vQ.prototype.remove;var bQ="@@__IMMUTABLE_STACK__@@";function MQ(e){return Boolean(e&&e[bQ])}var LQ=function(e){function t(e){return null==e?kQ():MQ(e)?e:kQ().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=Sq(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):VQ(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&MQ(t))return t;yX(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):VQ(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):kQ()},t.prototype.slice=function(t,n){if(Oq(t,n,this.size))return this;var r=zq(t,this.size);if(Iq(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=i,this._head=a,this.__hash=void 0,this.__altered=!0,this):VQ(i,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?VQ(this.size,this._head,e,this.__hash):0===this.size?kQ():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Yq(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 Yq(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new mq(function(){if(r){var t=r.value;return r=r.next,Aq(e,n++,t)}return{value:void 0,done:!0}})},t}(uq);LQ.isStack=MQ;var HQ,xQ=LQ.prototype;function VQ(e,t,n,r){var i=Object.create(xQ);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function kQ(){return HQ||(HQ=VQ(0))}function SQ(e,t,n,r,i,a){return yX(e.size),e.__iterate(function(e,a,o){i?(i=!1,n=e):n=t.call(r,n,e,a,o)},a),n}function ZQ(e,t){return t}function OQ(e,t){return[t,e]}function zQ(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function IQ(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function NQ(e,t){return e<t?1:e>t?-1:0}function DQ(e,t){if(e===t)return!0;if(!cq(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||aq(e)!==aq(t)||rq(e)!==rq(t)||jq(e)!==jq(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!oq(e);if(jq(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&KW(i[1],e)&&(n||KW(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 a=e;e=t,t=a}var o=!0,l=t.__iterate(function(t,r){if(n?!e.has(t):i?!KW(t,e.get(r,Hq)):!KW(e.get(r,Hq),t))return o=!1,!1});return o&&e.size===l}xQ[bQ]=!0,xQ.shift=xQ.pop,xQ.unshift=xQ.push,xQ.unshiftAll=xQ.pushAll,xQ.withMutations=AX,xQ.wasAltered=mX,xQ.asImmutable=iW,xQ["@@transducer/init"]=xQ.asMutable=aW,xQ["@@transducer/step"]=function(e,t){return e.unshift(t)},xQ["@@transducer/result"]=function(e){return e.asImmutable()};var TQ,FQ=function(e){function t(e,n,r){if(void 0===r&&(r=1),!(this instanceof t))return new t(e,n,r);if(wX(0!==r,"Cannot step a Range by 0"),wX(void 0!==e,"You must define a start value when using Range"),wX(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(TQ)return TQ;TQ=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+Sq(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 Oq(e,n,this.size)?this:(e=zq(e,this.size),(n=Iq(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,a=0;a!==n&&!1!==e(i,t?n-++a:a++,this);)i+=t?-r:r;return a},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;return new mq(function(){if(a===n)return{value:void 0,done:!0};var o=i;return i+=t?-r:r,Aq(e,t?n-++a:a++,o)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:DQ(this,e)},t}(Gq),RQ="@@__IMMUTABLE_SET__@@";function BQ(e){return Boolean(e&&e[RQ])}var jQ=function(e){function t(t){return null==t?XQ():BQ(t)&&!jq(t)?t:XQ().withMutations(function(n){var r=e(t);yX(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(dq(e).keySeq())},t.intersect=function(e){return(e=sq(e).toArray()).length?UQ.intersect.apply(t(e.pop()),e):XQ()},t.union=function(e){return(e=sq(e).toArray()).length?UQ.union.apply(t(e.pop()),e):XQ()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return qQ(this,this._map.set(e,e))},t.prototype.remove=function(e){return qQ(this,this._map.remove(e))},t.prototype.clear=function(){return qQ(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=qQ(this,this._map.mapEntries(function(i){var a=i[1],o=e.call(t,a,a,n);return o!==a&&(r=!0),[o,o]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter(function(e){return 0!==e.size})).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 lG(FW(this,e))},t.prototype.sortBy=function(e,t){return lG(FW(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}(fq);jQ.isSet=BQ;var PQ,UQ=jQ.prototype;function qQ(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 WQ(e,t){var n=Object.create(UQ);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function XQ(){return PQ||(PQ=WQ(IX()))}function QQ(e,t,n){for(var r=WX(t),i=0;i!==r.length;)if((e=GX(e,r[i++],Hq))===Hq)return n;return e}function GQ(e,t){return QQ(this,e,t)}function KQ(e,t){return QQ(e,t,Hq)!==Hq}function YQ(){yX(this.size);var e={};return this.__iterate(function(t,n){rX(n)||(e[n]=t)}),e}function _Q(e){if(!e||"object"!=typeof e)return e;if(!cq(e)){if(!nX(e))return e;e=Xq(e)}if(aq(e)){var t={};return e.__iterate(function(e,n){rX(n)||(t[n]=_Q(e))}),t}var n=[];return e.__iterate(function(e){n.push(_Q(e))}),n}function JQ(e){if(e.size===1/0)return 0;var t=jq(e),n=aq(e),r=t?1:0;return e.__iterate(n?t?function(e,t){r=31*r+$Q(sW(e),sW(t))|0}:function(e,t){r=r+$Q(sW(e),sW(t))|0}:t?function(e){r=31*r+sW(e)|0}:function(e){r=r+sW(e)|0}),function(e,t){return t=oW(t,3432918353),t=oW(t<<15|t>>>-15,461845907),t=oW(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=oW(t^t>>>16,2246822507),t=oW(t^t>>>13,3266489909),t=lW(t^t>>>16),t}(e.size,r)}function $Q(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function eG(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}UQ[RQ]=!0,UQ[bq]=UQ.remove,UQ.merge=UQ.concat=UQ.union,UQ.withMutations=AX,UQ.asImmutable=iW,UQ["@@transducer/init"]=UQ.asMutable=aW,UQ["@@transducer/step"]=function(e,t){return e.add(t)},UQ["@@transducer/result"]=function(e){return e.asImmutable()},UQ.__empty=XQ,UQ.__make=WQ,sq.Iterator=mq,eG(sq,{toArray:function(){yX(this.size);var e=new Array(this.size||0),t=aq(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new xW(this)},toJS:function(){return _Q(this)},toKeyedSeq:function(){return new HW(this,!0)},toMap:function(){return EX(this.toKeyedSeq())},toObject:YQ,toOrderedMap:function(){return vQ(this.toKeyedSeq())},toOrderedSet:function(){return lG(aq(this)?this.valueSeq():this)},toSet:function(){return jQ(aq(this)?this.valueSeq():this)},toSetSeq:function(){return new VW(this)},toSeq:function(){return rq(this)?this.toIndexedSeq():aq(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return LQ(aq(this)?this.valueSeq():this)},toList:function(){return rQ(aq(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 PW(this,function(e,t){var n=aq(e),r=[e].concat(t).map(function(e){return cq(e)?n&&(e=dq(e)):e=n?tW(e):nW(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&&aq(i)||rq(e)&&rq(i))return i}return new DW(r)}(this,e))},includes:function(e){return this.some(function(t){return KW(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){yX(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return PW(this,zW(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=aq(e),i=[[],[]];e.__iterate(function(a,o){i[t.call(n,a,o,e)?1:0].push(r?[o,a]:a)});var a=qW(e);return i.map(function(t){return PW(e,a(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 yX(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){yX(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 PW(this,ZW(this,e,t))},reduce:function(e,t,n){return SQ(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return SQ(this,e,t,n,arguments.length<2,!0)},reverse:function(){return PW(this,OW(this,!0))},slice:function(e,t){return PW(this,IW(this,e,t,!0))},some:function(e,t){yX(this.size);var n=!1;return this.__iterate(function(r,i,a){if(e.call(t,r,i,a))return n=!0,!1}),n},sort:function(e){return PW(this,FW(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 kq(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=EX().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return DQ(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Yq(e._cache);var t=e.toSeq().map(OQ).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(zQ(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,a){if(e.call(t,n,i,a))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(Zq,null,e)},flatMap:function(e,t){return PW(this,function(e,t,n){var r=qW(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return PW(this,TW(this,e,!0))},fromEntrySeq:function(){return new kW(this)},get:function(e,t){return this.find(function(t,n){return KW(n,e)},void 0,t)},getIn:GQ,groupBy:function(e,t){return function(e,t,n){var r=aq(e),i=(jq(e)?vQ():EX()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return(e=e||[]).push(r?[o,a]:a),e})});var a=qW(e);return i.map(function(t){return PW(e,a(t))}).asImmutable()}(this,e,t)},has:function(e){return this.get(e,Hq)!==Hq},hasIn:function(e){return KQ(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:sq(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:sq(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return KW(t,e)})},keySeq:function(){return this.toSeq().map(ZQ).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return RW(this,e)},maxBy:function(e,t){return RW(this,t,e)},min:function(e){return RW(this,e?IQ(e):NQ)},minBy:function(e,t){return RW(this,t?IQ(t):NQ,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 PW(this,NW(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(zQ(e),t)},sortBy:function(e,t){return PW(this,FW(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 PW(this,function(e,t,n){var r=WW(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,l){return t.call(n,e,i,l)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(2,i),l=!0;return new mq(function(){if(!l)return{value:void 0,done:!0};var e=o.next();if(e.done)return e;var i=e.value,c=i[0],s=i[1];return t.call(n,s,c,a)?2===r?e:Aq(r,c,s,e):(l=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(zQ(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=JQ(this))}});var tG=sq.prototype;tG[lq]=!0,tG[pq]=tG.values,tG.toJSON=tG.toArray,tG.__toStringMapper=XX,tG.inspect=tG.toSource=function(){return this.toString()},tG.chain=tG.flatMap,tG.contains=tG.includes,eG(dq,{flip:function(){return PW(this,SW(this))},mapEntries:function(e,t){var n=this,r=0;return PW(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return PW(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var nG=dq.prototype;nG[iq]=!0,nG[pq]=tG.entries,nG.toJSON=YQ,nG.__toStringMapper=function(e,t){return XX(t)+": "+XX(e)},eG(uq,{toKeyedSeq:function(){return new HW(this,!1)},filter:function(e,t){return PW(this,zW(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 PW(this,OW(this,!1))},slice:function(e,t){return PW(this,IW(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=zq(e,e<0?this.count():this.size);var r=this.slice(0,e);return PW(this,1===n?r:r.concat(iX(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 PW(this,TW(this,e,!1))},get:function(e,t){return(e=Sq(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=Sq(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:this.find(function(t,n){return n===e},void 0,Hq)!==Hq)},interpose:function(e){return PW(this,function(e,t){var n=WW(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e){return(!a||!1!==n(t,a++,i))&&!1!==n(e,a++,i)},r),a},n.__iteratorUncached=function(n,r){var i,a=e.__iterator(1,r),o=0;return new mq(function(){return(!i||o%2)&&(i=a.next()).done?i:o%2?Aq(n,o++,t):Aq(n,o++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(iX(arguments)),t=jW(this.toSeq(),Gq.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),PW(this,n)},keySeq:function(){return FQ(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return PW(this,NW(this,e,t,!1))},zip:function(){return PW(this,jW(this,aG,[this].concat(iX(arguments))))},zipAll:function(){return PW(this,jW(this,aG,[this].concat(iX(arguments)),!0))},zipWith:function(e){var t=iX(arguments);return t[0]=this,PW(this,jW(this,e,t))}});var rG=uq.prototype;rG[nq]=!0,rG[Bq]=!0,eG(fq,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var iG=fq.prototype;function aG(){return iX(arguments)}function oG(e){return BQ(e)&&jq(e)}iG.has=tG.includes,iG.contains=iG.includes,iG.keys=iG.values,eG(Qq,nG),eG(Gq,rG),eG(Kq,iG);var lG=function(e){function t(e){return null==e?uG():oG(e)?e:uG().withMutations(function(t){var n=fq(e);yX(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(dq(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(jQ);lG.isOrderedSet=oG;var cG,sG=lG.prototype;function dG(e,t){var n=Object.create(sG);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function uG(){return cG||(cG=dG(yQ()))}sG[Bq]=!0,sG.zip=rG.zip,sG.zipWith=rG.zipWith,sG.zipAll=rG.zipAll,sG.__empty=uG,sG.__make=dG;var fG=function(e,t){var n;!function(e){if(Fq(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Rq(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(a){var o=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var l=Object.keys(e),c=i._indices={};i._name=t,i._keys=l,i._defaultValues=e;for(var s=0;s<l.length;s++){var d=l[s];c[d]=s,i[d]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+pG(this)+' with property "'+d+'" since that property name is part of the Record API.'):AG(i,d)}}return this.__ownerID=void 0,this._values=rQ().withMutations(function(e){e.setSize(o._keys.length),dq(a).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(hG);return i.constructor=r,t&&(r.displayName=t),r};fG.prototype.toString=function(){for(var e,t=pG(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+XX(this.get(e));return t+" }"},fG.prototype.equals=function(e){return this===e||Fq(e)&&mG(this).equals(mG(e))},fG.prototype.hashCode=function(){return mG(this).hashCode()},fG.prototype.has=function(e){return this._indices.hasOwnProperty(e)},fG.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},fG.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 CG(this,n)}return this},fG.prototype.remove=function(e){return this.set(e)},fG.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:CG(this,e)},fG.prototype.wasAltered=function(){return this._values.wasAltered()},fG.prototype.toSeq=function(){return mG(this)},fG.prototype.toJS=function(){return _Q(this)},fG.prototype.entries=function(){return this.__iterator(2)},fG.prototype.__iterator=function(e,t){return mG(this).__iterator(e,t)},fG.prototype.__iterate=function(e,t){return mG(this).__iterate(e,t)},fG.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?CG(this,t,e):(this.__ownerID=e,this._values=t,this)},fG.isRecord=Fq,fG.getDescriptiveName=pG;var hG=fG.prototype;function CG(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function pG(e){return e.constructor.displayName||e.constructor.name||"Record"}function mG(e){return tW(e._keys.map(function(t){return[t,e.get(t)]}))}function AG(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){wX(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}hG[Tq]=!0,hG[bq]=hG.remove,hG.deleteIn=hG.removeIn=eQ,hG.getIn=GQ,hG.hasIn=tG.hasIn,hG.merge=_W,hG.mergeWith=JW,hG.mergeIn=uX,hG.mergeDeep=cX,hG.mergeDeepWith=sX,hG.mergeDeepIn=dX,hG.setIn=hX,hG.update=CX,hG.updateIn=pX,hG.withMutations=AX,hG.asMutable=aW,hG.asImmutable=iW,hG[pq]=hG.entries,hG.toJSON=hG.toObject=tG.toObject,hG.inspect=hG.toSource=function(){return this.toString()};var gG,vG=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(gG)return gG;gG=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 KW(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return Oq(e,n,r)?this:new t(this._value,Iq(n,r)-zq(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return 0!==this.size&&KW(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return 0!==this.size&&KW(this._value,e)?this.size-1:-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 mq(function(){return i===r?{value:void 0,done:!0}:Aq(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?KW(this._value,e._value):DQ(this,e)},t}(Gq);function wG(e,t,n,r,i,a){if("string"!=typeof n&&!Rq(n)&&(Wq(n)||vq(n)||tX(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var o=t.call(a,r,Xq(n).map(function(r,a){return wG(e,t,r,a,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function yG(e,t){return rq(t)?t.toList():aq(t)?t.toMap():t.toSet()}var EG,bG=sq,MG=Z(Object.freeze({__proto__:null,Collection:sq,Iterable:bG,List:rQ,Map:EX,OrderedMap:vQ,OrderedSet:lG,PairSorting:{LeftThenRight:-1,RightThenLeft:1},Range:FQ,Record:fG,Repeat:vG,Seq:Xq,Set:jQ,Stack:LQ,fromJS:function(e,t){return wG([],t||yG,e,"",t&&t.length>2?[]:void 0,{"":e})},get:GX,getIn:QQ,has:QX,hasIn:KQ,hash:sW,is:KW,isAssociative:oq,isCollection:cq,isImmutable:Rq,isIndexed:rq,isKeyed:aq,isList:nQ,isMap:vX,isOrdered:jq,isOrderedMap:AQ,isOrderedSet:oG,isPlainObject:tX,isRecord:Fq,isSeq:Uq,isSet:BQ,isStack:MQ,isValueObject:GW,merge:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lX(e,t)},mergeDeep:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return oX(e,t)},mergeDeepWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return oX(t,n,e)},mergeWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return lX(t,n,e)},remove:KX,removeIn:$X,set:YX,setIn:fX,update:YW,updateIn:_X,version:"5.1.9"}));var LG=(EG||(EG=1,window,tq.exports=function(e,t,n){return a={},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
|