PageSourceSearch

https://anatomyappcp5-clinicalphysio.web.app/static/js/main.039f6ced.js

js anatomyappcp5-clinicalphysio.web.app collected 2026-10-03 12:16:32 UTC 1,354,166 bytes, 3 lines download raw bytes

1/*! For license information please see main.039f6ced.js.LICENSE.txt */
2!function(){var e={2504:function(e,t,n){"use strict";var r,i=Object.assign||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},o=n(2791),a=(r=o)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,s=e.height,u=void 0===s?24:s,l=e.style,c=void 0===l?{}:l,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:u},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},2403:function(e,t,n){"use strict";var r,i=Object.assign||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},o=n(2791),a=(r=o)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,s=e.height,u=void 0===s?24:s,l=e.style,c=void 0===l?{}:l,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:u},c)},f),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},2110:function(e,t,n){"use strict";var r=n(8309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),y=0;y<a.length;++y){var m=a[y];if(!o[m]&&(!r||!r[m])&&(!v||!v[m])&&(!s||!s[m])){var g=h(n,m);try{l(t,m,g)}catch(b){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case h:case y:case v:case u:return e;default:return t}}case i:return t}}}function x(e){return k(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=y,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return x(e)||k(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===l},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===h},t.isFragment=function(e){return k(e)===o},t.isLazy=function(e){return k(e)===y},t.isMemo=function(e){return k(e)===v},t.isPortal=function(e){return k(e)===i},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===a},t.isSuspense=function(e){return k(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===d||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=k},8309:function(e,t,n){"use strict";e.exports=n(746)},2176:function(e){"use strict";
2e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},908:function(e,t,n){var r=n(8136)(n(7009),"DataView");e.exports=r},9676:function(e,t,n){var r=n(5403),i=n(2747),o=n(6037),a=n(4154),s=n(7728);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},8384:function(e,t,n){var r=n(3894),i=n(8699),o=n(4957),a=n(7184),s=n(7109);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},5797:function(e,t,n){var r=n(8136)(n(7009),"Map");e.exports=r},8059:function(e,t,n){var r=n(4086),i=n(9255),o=n(9186),a=n(3423),s=n(3739);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},8319:function(e,t,n){var r=n(8136)(n(7009),"Promise");e.exports=r},3924:function(e,t,n){var r=n(8136)(n(7009),"Set");e.exports=r},692:function(e,t,n){var r=n(8059),i=n(5774),o=n(1596);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},2854:function(e,t,n){var r=n(8384),i=n(511),o=n(835),a=n(707),s=n(8832),u=n(5077);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},7197:function(e,t,n){var r=n(7009).Symbol;e.exports=r},6219:function(e,t,n){var r=n(7009).Uint8Array;e.exports=r},7091:function(e,t,n){var r=n(8136)(n(7009),"WeakMap");e.exports=r},4550:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4903:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},7538:function(e,t,n){var r=n(6478),i=n(4963),o=n(3629),a=n(5174),s=n(6800),u=n(9102),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),f=!n&&!c&&a(e),h=!n&&!c&&!f&&u(e),d=n||c||f||h,p=d?r(e.length,String):[],v=p.length;for(var y in e)!t&&!l.call(e,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||p.push(y);return p}},8950:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},1705:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},7897:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},8463:function(e,t,n){var r=n(2526),i=n(9231),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},7112:function(e,t,n){var r=n(9231);e.exports=function(e,t){for(var n=e.length;n--;
vendor: 3,540 bytes, line 2
2)if(r(e[n][0],t))return n;return-1}},1855:function(e,t,n){var r=n(4503),i=n(2742);e.exports=function(e,t){return e&&r(t,i(t),e)}},5076:function(e,t,n){var r=n(4503),i=n(3961);e.exports=function(e,t){return e&&r(t,i(t),e)}},2526:function(e,t,n){var r=n(8528);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},1905:function(e,t,n){var r=n(2854),i=n(4550),o=n(8463),a=n(1855),s=n(5076),u=n(4523),l=n(291),c=n(2455),f=n(7636),h=n(8248),d=n(5341),p=n(8383),v=n(9243),y=n(9759),m=n(548),g=n(3629),b=n(5174),w=n(103),k=n(8092),x=n(6995),_=n(2742),E=n(3961),C="[object Arguments]",S="[object Function]",O="[object Object]",T={};T[C]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[O]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[S]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,A,I,N,P){var j,R=1&n,L=2&n,M=4&n;if(A&&(j=N?A(t,I,N,P):A(t)),void 0!==j)return j;if(!k(t))return t;var D=g(t);if(D){if(j=v(t),!R)return l(t,j)}else{var F=p(t),B=F==S||"[object GeneratorFunction]"==F;if(b(t))return u(t,R);if(F==O||F==C||B&&!N){if(j=L||B?{}:m(t),!R)return L?f(t,s(j,t)):c(t,a(j,t))}else{if(!T[F])return N?t:{};j=y(t,F,R)}}P||(P=new r);var U=P.get(t);if(U)return U;P.set(t,j),x(t)?t.forEach((function(r){j.add(e(r,n,A,r,t,P))})):w(t)&&t.forEach((function(r,i){j.set(i,e(r,n,A,i,t,P))}));var V=D?void 0:(M?L?d:h:L?E:_)(t);return i(V||t,(function(r,i){V&&(r=t[i=r]),o(j,i,e(r,n,A,i,t,P))})),j}},5763:function(e,t,n){var r=n(8092),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},7927:function(e,t,n){var r=n(5358),i=n(7056)(r);e.exports=i},5099:function(e,t,n){var r=n(372)();e.exports=r},5358:function(e,t,n){var r=n(5099),i=n(2742);e.exports=function(e,t){return e&&r(e,t,i)}},8667:function(e,t,n){var r=n(3082),i=n(9793);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},1986:function(e,t,n){var r=n(1705),i=n(3629);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},9066:function(e,t,n){var r=n(7197),i=n(1587),o=n(3581),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},529:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},4906:function(e,t,n){var r=n(9066),i=n(3141);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},1848:function(e,t,n){var r=n(3355),i=n(3141);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},3355:function(e,t,n){var r=n(2854),i=n(5305),o=n(2206),a=n(8078),s=n(8383),u=n(3629),l=n(5174),c=n(9102),f="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,m){var g=u(e),b=u(t),w=g?h:s(e),k=b?h:s(t),x=(w=w==f?d:w)==d,_=(k=k==f?d:k)==d,E=w==k;if(E&&l(e)){if(!l(t))return!1;g=!0,x=!1}if(E&&!x)return m||(m=new r),g||c(e)?i(e,t,n,v,y,m):o(e,t,w,n,v,y,m);if(!(1&n)){var C=x&&p.call(e,"__wrapped__"),S=_&&p.call(t,"__wrapped__");
vendor: 4,543 bytes, line 2
2if(C||S){var O=C?e.value():e,T=S?t.value():t;return m||(m=new r),y(O,T,n,v,m)}}return!!E&&(m||(m=new r),a(e,t,n,v,y,m))}},3085:function(e,t,n){var r=n(8383),i=n(3141);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},8856:function(e,t,n){var r=n(2854),i=n(1848);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var c=(l=n[a])[0],f=e[c],h=l[1];if(u&&l[2]){if(void 0===f&&!(c in e))return!1}else{var d=new r;if(o)var p=o(f,h,c,e,t,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},6703:function(e,t,n){var r=n(4786),i=n(257),o=n(8092),a=n(7907),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,h=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},8680:function(e,t,n){var r=n(8383),i=n(3141);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},8150:function(e,t,n){var r=n(9066),i=n(4635),o=n(3141),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},6025:function(e,t,n){var r=n(7080),i=n(4322),o=n(2100),a=n(3629),s=n(38);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},3654:function(e,t,n){var r=n(2936),i=n(5964),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8664:function(e,t,n){var r=n(8092),i=n(2936),o=n(4221),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},3849:function(e,t,n){var r=n(7927),i=n(1473);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},7080:function(e,t,n){var r=n(8856),i=n(9091),o=n(284);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4322:function(e,t,n){var r=n(1848),i=n(6181),o=n(5658),a=n(5823),s=n(5072),u=n(284),l=n(9793);e.exports=function(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},9586:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4084:function(e,t,n){var r=n(8667);e.exports=function(e){return function(t){return r(t,e)}}},6478:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2446:function(e,t,n){var r=n(7197),i=n(8950),o=n(3629),a=n(152),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},6194:function(e){e.exports=function(e){return function(t){return e(t)}}},75:function(e){e.exports=function(e,t){return e.has(t)}},3410:function(e,t,n){var r=n(2100);e.exports=function(e){return"function"==typeof e?e:r}},3082:function(e,t,n){var r=n(3629),i=n(5823),o=n(170),a=n(3518);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},7010:function(e,t,n){var r=n(6219);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4523:function(e,t,n){e=n.nmd(e);var r=n(7009),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},1022:function(e,t,n){var r=n(7010);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},8503:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},4720:function(e,t,n){var r=n(7197),i=r?r.prototype:void 0,o=i?i.valueOf
vendor: 4,943 bytes, line 2
2:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},613:function(e,t,n){var r=n(7010);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},291:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},4503:function(e,t,n){var r=n(8463),i=n(2526);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=o?o(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?i(n,l,c):r(n,l,c)}return n}},2455:function(e,t,n){var r=n(4503),i=n(5918);e.exports=function(e,t){return r(e,i(e),t)}},7636:function(e,t,n){var r=n(4503),i=n(8487);e.exports=function(e,t){return r(e,i(e),t)}},5525:function(e,t,n){var r=n(7009)["__core-js_shared__"];e.exports=r},7056:function(e,t,n){var r=n(1473);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},372:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},8528:function(e,t,n){var r=n(8136),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},5305:function(e,t,n){var r=n(692),i=n(7897),o=n(75);e.exports=function(e,t,n,a,s,u){var l=1&n,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var h=u.get(e),d=u.get(t);if(h&&d)return h==t&&d==e;var p=-1,v=!0,y=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p<c;){var m=e[p],g=t[p];if(a)var b=l?a(g,m,p,t,e,u):a(m,g,p,e,t,u);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(m===e||s(m,e,n,a,u)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!s(m,g,n,a,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},2206:function(e,t,n){var r=n(7197),i=n(6219),o=n(9231),a=n(5305),s=n(234),u=n(2230),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,f,h){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||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var p=1&r;if(d||(d=u),e.size!=t.size&&!p)return!1;var v=h.get(e);if(v)return v==t;r|=2,h.set(e,t);var y=a(d(e),d(t),r,l,f,h);return h.delete(e),y;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},8078:function(e,t,n){var r=n(8248),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var h=l[f];if(!(u?h in t:i.call(t,h)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var v=!0;s.set(e,t),s.set(t,e);for(var y=u;++f<c;){var m=e[h=l[f]],g=t[h];if(o)var b=u?o(g,m,h,t,e,s):o(m,g,h,e,t,s);if(!(void 0===b?m===g||a(m,g,n,o,s):b)){v=!1;break}y||(y="constructor"==h)}if(v&&!y){var w=e.constructor,k=t.constructor;w==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(v=!1)}return s.delete(e),s.delete(t),v}},1032:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8248:function(e,t,n){var r=n(1986),i=n(5918),o=n(2742);e.exports=function(e){return r(e,o,i)}},5341:function(e,t,n){var r=n(1986),i=n(8487),o=n(3961);e.exports=function(e){return r(e,o,i)}},2799:function(e,t,n){var r=n(9518);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},9091:function(e,t,n){var r=n(5072),i=n(2742);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},8136:function(e,t,n){var r=n(6703),i=n(40);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},1137:function(e,t,n){var r=n(2709)(Object.getPrototypeOf,Object);e.exports=r},1587:function(e,t,n){var r=n(7197),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},5918:function(e,t,n){var r=n(4903),i=n(8174),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},8487:function(e,t,n){var r=n(1705),i=n(1137),o=n(5918),a=n(8174),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},8383:function(e,t,n){var r=n(908),i=n(5797),o=n(8319),a=n(3924),s=n(7091),u=n(9066),l=n(7907),c="[object Map]",f="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",v=l(r),y=l(i),m=l(o),g=l(a),b=l(s),w=u;
vendor: 11,177 bytes, line 2
2(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=c||o&&w(o.resolve())!=f||a&&w(new a)!=h||s&&w(new s)!=d)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return p;case y:return c;case m:return f;case g:return h;case b:return d}return t}),e.exports=w},40:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},6417:function(e,t,n){var r=n(3082),i=n(4963),o=n(3629),a=n(6800),s=n(4635),u=n(9793);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,f=!1;++l<c;){var h=u(t[l]);if(!(f=null!=e&&n(e,h)))break;e=e[h]}return f||++l!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(h,c)&&(o(e)||i(e))}},5403:function(e,t,n){var r=n(9620);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6037:function(e,t,n){var r=n(9620),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},4154:function(e,t,n){var r=n(9620),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7728:function(e,t,n){var r=n(9620);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9243:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9759:function(e,t,n){var r=n(7010),i=n(1022),o=n(8503),a=n(4720),s=n(613);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},548:function(e,t,n){var r=n(5763),i=n(1137),o=n(2936);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},6800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},5823:function(e,t,n){var r=n(3629),i=n(152),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},9518:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:function(e,t,n){var r=n(5525),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},2936:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5072:function(e,t,n){var r=n(8092);e.exports=function(e){return e===e&&!r(e)}},3894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,n){var r=n(7112),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},4957:function(e,t,n){var r=n(7112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7184:function(e,t,n){var r=n(7112);e.exports=function(e){return r(this.__data__,e)>-1}},7109:function(e,t,n){var r=n(7112);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4086:function(e,t,n){var r=n(9676),i=n(8384),o=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},9255:function(e,t,n){var r=n(2799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).get(e)}},3423:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).has(e)}},3739:function(e,t,n){var r=n(2799);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},284:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},4634:function(e,t,n){var r=n(9151);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9620:function(e,t,n){var r=n(8136)(Object,"create");e.exports=r},5964:function(e,t,n){var r=n(2709)(Object.keys,Object);e.exports=r},4221:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},9494:function(e,t,n){e=n.nmd(e);var r=n(1032),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7009:function(e,t,n){var r=n(1032),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},5774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1596:function(e){e.exports=function(e){return this.__data__.has(e)}},2230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},511:function(e,t,n){var r=n(8384);e.exports=function(){this.__data__=new r,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var r=n(8384),i=n(5797),o=n(8059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},170:function(e,t,n){var r=n(4634),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},9793:function(e,t,n){var r=n(152);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},8121:function(e,t,n){var r=n(1905);e.exports=function(e){return r(e,5)}},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},4689:function(e,t,n){var r=n(5358),i=n(3410);e.exports=function(e,t){return e&&r(e,i(t))}},6181:function(e,t,n){var r=n(8667);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},5658:function(e,t,n){var r=n(529),i=n(6417);e.exports=function(e,t){return null!=e&&i(e,t,r)}},2100:function(e){e.exports=function(e){return e}},4963:function(e,t,n){var r=n(4906),i=n(3141),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var r=n(4786),i=n(4635);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(7009),i=n(9488),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},8111:function(e,t,n){var r=n(1848);e.exports=function(e,t){return r(e,t)}},4786:function(e,t,n){var r=n(9066),i=n(8092);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},103:function(e,t,n){var r=n(3085),i=n(6194),o=n(9494),a=o&&o.isMap,s=a?i(a):r;e.exports=s},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3977:function(e,t,n){var r=n(9066),i=n(1137),o=n(3141),a=Function.prototype,s=Object.prototype,u=a.toString,l=s.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},6995:function(e,t,n){var r=n(8680),i=n(6194),o=n(9494),a=o&&o.isSet,s=a?i(a):r;e.exports=s},6769:function(e,t,n){var r=n(9066),i=n(3629),o=n(3141);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},152:function(e,t,n){var r=n(9066),i=n(3141);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},9102:function(e,t,n){var r=n(8150),i=n(6194),o=n(9494),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},2742:function(e,t,n){var r=n(7538),i=n(3654),o=n(1473);e.exports=function(e){return o(e)?r(e):i(e)}},3961:function(e,t,n){var r=n(7538),i=n(8664),o=n(1473);e.exports=function(e){return o(e)?r(e,!0):i(e)}},2034:function(e,t,n){var r=n(8950),i=n(6025),o=n(3849),a=n(3629);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},9151:function(e,t,n){var r=n(8059);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},38:function(e,t,n){var r=n(9586),i=n(4084),o=n(5823),a=n(9793);e.exports=function(e){return o(e)?r(a(e)):i(e)}},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},3518:function(e,t,n){var r=n(2446);e.exports=function(e){return null==e?"":r(e)}},888:function(e,t,n){"use strict";var r=n(9047);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
2:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6921:function(e){var t;"undefined"!==typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),u=n(47),l=n(48),c=n(49),f=n(12),h=n(32),d=n(33),p=n(31),v=n(1),y={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:l.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:d.default,Store:p.default}};t.default=y},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},s={},u={},l={};function c(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=l[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=l.text;else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=l.block:e&o.LEVEL&o.INLINE&&(n=l.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]])break;n=n||u[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=function(e,t){var n=c(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=c,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!==typeof r.blotName&&"string"!==typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");if(l[r.blotName||r.attrName]=r,"string"===typeof r.keyName)a[r.keyName]=r;else if(null!=r.className&&(s[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var o=Array.isArray(r.tagName)?r.tagName:[r.tagName];o.forEach((function(e){null!=u[e]&&null!=r.className||(u[e]=r)}))}return r}},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),u=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};u.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},u.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},u.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},u.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e.delete&&"number"===typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"===typeof n.delete&&null!=e.insert&&(t-=1,"object"!==typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},u.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},u.prototype.filter=function(e){return this.ops.filter(e)},u.prototype.forEach=function(e){this.ops.forEach(e)},u.prototype.map=function(e){return this.ops.map(e)},u.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},u.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},u.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},u.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},u.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i<t&&r.hasNext();){var o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){for(var s=o.retain;"insert"===t.peekType()&&t.peekLength()<=s;)s-=t.peekLength(),r.push(t.next());o.retain-s>0&&n.next(o.retain-s)}for(var l=new u(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===t.peekType())l.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),h=n.next(c);if("number"===typeof h.retain){var d={};"number"===typeof f.retain?d.retain=c:d.insert=f.insert;var p=a.attributes.compose(f.attributes,h.attributes,"number"===typeof f.retain);if(p&&(d.attributes=p),l.push(d),!n.hasNext()&&i(l.ops[l.ops.length-1],d)){var v=new u(t.rest());return l.concat(v).chop()}}else"number"===typeof h.delete&&"number"===typeof f.retain&&l.push(h)}return l.chop()},u.prototype.concat=function(e){var t=new u(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},u.prototype.diff=function(e,t){if(this.ops===e.ops)return new u;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new u,l=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return l.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),o.push(f.next(n));break;
vendor: 4,350 bytes, line 2
2case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var s=c.next(n),u=f.next(n);i(s.insert,u.insert)?o.retain(n,a.attributes.diff(s.attributes,u.attributes)):o.push(u).delete(n)}t-=n}})),o.chop()},u.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new u,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),l="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new u}}r.length()>0&&e(r,{},i)},u.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),l=r.next(o);if(s.delete)continue;l.delete?i.push(l):i.retain(o,a.attributes.transform(s.attributes,l.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},u.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=u},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,c,f=arguments[0],h=1,d=arguments.length,p=!1;for("boolean"===typeof f&&(p=f,f=arguments[1]||{},h=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});h<d;++h)if(null!=(t=arguments[h]))for(n in t)r=l(f,n),f!==(i=l(t,n))&&(p&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},u(f,{name:n,newValue:e(p,c,i)})):"undefined"!==typeof i&&u(f,{name:n,newValue:i}));return f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=f(n(3)),a=f(n(2)),s=f(n(0)),u=f(n(16)),l=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return h(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values())
vendor: 4,320 bytes, line 2
2)}},{key:"format",value:function(e,t){var n=s.default.query(e,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var o=s.default.create(y.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(s.default.Embed);v.scope=s.default.Scope.BLOCK_BLOT;var y=function(e){function t(e){h(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return p(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),m(t))}),new a.default).insert("\n",m(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(s.default.query(r,s.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,o):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,o),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(e,t){return(s=s.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof u.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(s.default.Block);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:m(e.parent,t))}y.blotName="block",y.tagName="P",y.defaultChild="break",y.allowedChildren=[l.default,s.default.Embed,c.default],t.bubbleFormats=m,t.BlockEmbed=v,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);
vendor: 6,882 bytes, line 2
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=y(n(2)),s=y(n(14)),u=y(n(8)),l=y(n(9)),c=y(n(0)),f=n(15),h=y(f),d=y(n(3)),p=y(n(10)),v=y(n(34));function y(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,p.default)("quill"),w=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(g(this,e),this.options=k(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new h.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(e){e===u.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;x.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),p.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=_(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return x.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(c.default.query(e,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,m({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,m({},e,t))}return n.setSelection(r,u.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a,s=this,u=_(e,t,n,r,o),l=i(u,4);return e=l[0],t=l[1],a=l[2],o=l[3],x.call(this,(function(){return s.editor.formatLine(e,t,a)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a,s=this,u=_(e,t,n,r,o),l=i(u,4);return e=l[0],t=l[1],a=l[2],o=l[3],x.call(this,(function(){return s.editor.formatText(e,t,a)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>
vendor: 5,016 bytes, line 2
23&&void 0!==arguments[3]?arguments[3]:e.sources.API;return x.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a,s=this,u=_(e,0,n,r,o),l=i(u,4);return e=l[0],a=l[2],o=l[3],x.call(this,(function(){return s.editor.insertText(e,t,a)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=_(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return x.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];return null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=_(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(t,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return x.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function k(e,t){if((t=(0,d.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=v.default;var n=(0,d.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,d.default)(!0,{},w.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function x(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===u.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=E(i,s,t):0!==r&&(i=E(i,n,r,t)),this.setSelection(i,u.default.sources.SILENT)),s.length()>0){var l,c,f=[u.default.events.TEXT_CHANGE,s,o,t];(l=this.emitter).emit.apply(l,[u.default.events.EDITOR_CHANGE].concat(f)),t!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return s}function _(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),[e,t,a,o=o||u.default.sources.API]}function E(e,t,n,r){if(null==e)return null;var o=void 0,s=void 0;if(t instanceof a.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==u.default.sources.USER)})),c=i(l,2);o=c[0],s=c[1]}else{var h=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===u.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),d=i(h,2);o=d[0],s=d[1]}return new f.Range(o,s-o)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=u.default.events,w.sources=u.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:c.default,"core/module":l.default,"core/theme":v.default},t.expandConfig=k,t.overload=_,t.default=w},function(e,t,n){"use strict";
vendor: 5,093 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(7)),a=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var s=this.isolate(e,n);o&&s.wrap(r,o)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o)}},{key:"optimize",value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,o.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default.Text);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var u=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",s.error),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){s.log.apply(s,arguments),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];
vendor: 4,210 bytes, line 2
2(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,i=t.handler;(e.target===r||r.contains(e.target))&&i.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(o.default);u.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},u.sources={API:"api",SILENT:"silent",USER:"user"},t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(t=console)[e].apply(t,o)}}function a(e){return r.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=a.level=function(e){i=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var l,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(u(e)){if(!u(t))return!1;if(e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var f=i(e),h=i(t)}catch(d){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),l=f.length-1;l>=0;l--)if(f[l]!=h[l])return!1;for(l=f.length-1;l>=0;l--)if(c=f[l],!a(e[c],t[c],n))return!1;return typeof e===typeof t}(e,t,n))};function s(e){return null===e||void 0===e}function u(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&"function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=f(n(2)),s=f(n(0)),u=f(n(4)),l=f(n(6)),c=f(n(7));
vendor: 4,294 bytes, line 2
2function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return h(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),t}(l.default);v.blotName="code",v.tagName="CODE";var y=function(e){function t(){return h(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(c.default,this.length()-1),a=r(i,1)[0];null!=a&&a.deleteAt(a.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=s.default.query(r,s.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var a=this.newlineIndex(e,!0)+1,u=o-a+1,l=this.isolate(a,u),c=l.next;l.format(r,i),c instanceof t&&c.formatAt(0,e-a+n-u,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(c.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(u.default);y.blotName="code-block",y.tagName="PRE",y.TAB="  ",t.Code=v,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=m(n(2)),s=m(n(20)),u=m(n(0)),l=m(n(13)),c=m(n(24)),f=n(4),h=m(f),d=m(n(16)),p=m(n(21)),v=m(n(11)),y=m(n(3));
vendor: 4,255 bytes, line 2
2function m(e){return e&&e.__esModule?e:{default:e}}var g=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,p.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,p.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var l=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var d=a.insert;d.endsWith("\n")&&n&&(n=!1,d=d.slice(0,-1)),e>=o&&!d.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,d);var p=t.scroll.line(e),v=i(p,2),m=v[0],g=v[1],b=(0,y.default)({},(0,f.bubbleFormats)(m));if(m instanceof h.default){var w=m.descendant(u.default.Leaf,g),k=i(w,1)[0];b=(0,y.default)(b,(0,f.bubbleFormats)(k))}c=s.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,a.insert[x])}o+=l}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,l,n,c[n])})),e+l}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof l.default){var s=e-t.offset(n.scroll),u=t.newlineIndex(s+a)-s+1;t.formatAt(s,u,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,p.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new a.default).retain(e).retain(t,(0,p.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1)[0];t instanceof h.default?n.push(t):t instanceof u.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(u.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,f.bubbleFormats)(n),t)}return t}));return y.default.apply(y.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new a.default).retain(e).insert(t,(0,p.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
vendor: 4,639 bytes, line 2
2if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===h.default.blotName&&!(e.children.length>1)&&e.children.head instanceof d.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),s=o[0],u=o[1],c=0,f=new a.default;null!=s&&(c=s instanceof l.default?s.newlineIndex(u)-u+1:s.length()-u,f=s.delta().slice(u,u+c-1).insert("\n"));var h=this.getContents(e,t+c).diff((new a.default).insert(n).concat(f)),d=(new a.default).retain(e).concat(h);return this.applyDelta(d)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(g)&&u.default.find(t[0].target)){var i=u.default.find(t[0].target),o=(0,f.bubbleFormats)(i),s=i.offset(this.scroll),l=t[0].oldValue.replace(c.default.CONTENTS,""),h=(new a.default).insert(l),d=(new a.default).insert(i.value()),p=(new a.default).retain(s).concat(h.diff(d,n));e=p.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,v.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(0)),a=l(n(21)),s=l(n(11)),u=l(n(8));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=(0,l(n(10)).default)("quill:selection"),d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},p=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new d(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,u.default.sources.USER),1)})),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(e,t){e===u.default.events.TEXT_CHANGE&&t.length()>0&&r.update(u.default.sources.SILENT)})),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(u.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(u.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(u.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update(
vendor: 5,109 bytes, line 2
2);var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],u=a[1];if(null==s)return null;var l=s.position(u,!0),c=r(l,2);i=c[0],u=c[1];var f=document.createRange();if(t>0){f.setStart(i,u);var h=this.scroll.leaf(e+t),d=r(h,2);if(s=d[0],u=d[1],null==s)return null;var p=s.position(u,!0),v=r(p,2);return i=v[0],u=v[1],f.setEnd(i,u),f.getBoundingClientRect()}var y="left",m=void 0;return i instanceof Text?(u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),y="right"),m=f.getBoundingClientRect()):(m=s.domNode.getBoundingClientRect(),u>0&&(y="right")),{bottom:m.top+m.height,height:m.height,left:m[y],right:m[y],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return h.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],a=n[1],s=o.default.find(i,!0),u=s.offset(t.scroll);return 0===a?u:s instanceof o.default.Container?u+s.length():u+s.index(i,a)})),a=Math.min(Math.max.apply(Math,c(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(i)));return new d(s,a-s)}},{key:"normalizeNative",value:function(e){if(!v(this.root,e.startContainer)||!e.collapsed&&!v(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a,s=t.scroll.leaf(e),u=r(s,2),l=u[0],c=u[1],f=l.position(c,0!==n),h=r(f,2);a=h[0],c=h[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1)[0],s=a;if(t.length>0){var u=this.scroll.line(Math.min(t.index+t.length,i));s=r(u,1)[0]}if(null!=a&&null!=s){var l=e.getBoundingClientRect();n.top<l.top?e.scrollTop-=l.top-n.top:n.bottom>l.bottom&&(e.scrollTop+=n.bottom-l.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"===typeof t&&(n=t,t=!1),h.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],l=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var c;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore(
vendor: 4,396 bytes, line 2
2);var f,h=[u.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[u.default.events.EDITOR_CHANGE].concat(h)),e!==u.default.sources.SILENT&&(f=this.emitter).emit.apply(f,h)}}}]),e}();function v(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"insertInto",value:function(e,n){0===e.children.length?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);l.blotName="break",l.tagName="BR",t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),o=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],o=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof t?i.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=a})),i},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)}
vendor: 5,082 bytes, line 2
2,t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],o=r[1],a=[[this,e]];return i instanceof t?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,i){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],i=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),i.push.apply(i,e.removedNodes))})),i.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=u(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(o.default);function u(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(31),a=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new o.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(a.default);t.default=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||
2(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e.delete?e.delete:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(s){t=function(){}}try{n=Set}catch(s){n=function(){}}try{r=Promise}catch(s){r=function(){}}function i(o,s,u,l,c){"object"===typeof s&&(u=s.depth,l=s.prototype,c=s.includeNonEnumerable,s=s.circular);var f=[],h=[],d="undefined"!=typeof Buffer;return"undefined"==typeof s&&(s=!0),"undefined"==typeof u&&(u=1/0),function o(u,p){if(null===u)return null;if(0===p)return u;var v,y;if("object"!=typeof u)return u;if(e(u,t))v=new t;else if(e(u,n))v=new n;else if(e(u,r))v=new r((function(e,t){u.then((function(t){e(o(t,p-1))}),(function(e){t(o(e,p-1))}))}));else if(i.__isArray(u))v=[];else if(i.__isRegExp(u))v=new RegExp(u.source,a(u)),u.lastIndex&&(v.lastIndex=u.lastIndex);else if(i.__isDate(u))v=new Date(u.getTime());else{if(d&&Buffer.isBuffer(u))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(u.length):new Buffer(u.length),u.copy(v),v;e(u,Error)?v=Object.create(u):"undefined"==typeof l?(y=Object.getPrototypeOf(u),v=Object.create(y)):(v=Object.create(l),y=l)}if(s){var m=f.indexOf(u);if(-1!=m)return h[m];f.push(u),h.push(v)}for(var g in e(u,t)&&u.forEach((function(e,t){var n=o(t,p-1),r=o(e,p-1);v.set(n,r)})),e(u,n)&&u.forEach((function(e){var t=o(e,p-1);v.add(t)})),u){var b;y&&(b=Object.getOwnPropertyDescriptor(y,g)),b&&null==b.set||(v[g]=o(u[g],p-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(g=0;g<w.length;g++){var k=w[g];(!(_=Object.getOwnPropertyDescriptor(u,k))||_.enumerable||c)&&(v[k]=o(u[k],p-1),_.enumerable||Object.defineProperty(v,k,{enumerable:!1}))}}if(c){var x=Object.getOwnPropertyNames(u);for(g=0;g<x.length;g++){var _,E=x[g];(_=Object.getOwnPropertyDescriptor(u,E))&&_.enumerable||(v[E]=o(u[E],p-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}(o,u)}function o(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=o,i.__isDate=function(e){return"object"===typeof e&&"[object Date]"===o(e)},i.__isArray=function(e){return"object"===typeof e&&"[object Array]"===o(e)},i.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===o(e)},i.__getRegExpFlags=a,i}();"object"===typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);
vendor: 20,954 bytes, line 2
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=d(n(0)),s=d(n(8)),u=n(4),l=d(u),c=d(n(16)),f=d(n(13)),h=d(n(25));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return e instanceof l.default||e instanceof u.BlockEmbed}var v=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var i=this.line(e),a=r(i,2),s=a[0],l=a[1],h=this.line(e+n),d=r(h,1)[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=d&&s!==d&&l>0){if(s instanceof u.BlockEmbed||d instanceof u.BlockEmbed)return void this.optimize();if(s instanceof f.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1))===d)return void this.optimize()}else if(d instanceof f.default){var v=d.newlineIndex(0);v>-1&&d.split(v+1)}var y=d.children.head instanceof c.default?null:d.children.head;s.moveChildren(d,y),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(p,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){p(t)?i.push(t):t instanceof a.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=s.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[l.default,u.BlockEmbed,h.default],t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=v(n(21)),s=v(n(11)),u=v(n(3)),l=v(n(2)),c=v(n(20)),f=v(n(0)),h=v(n(5)),d=v(n(10)),p=v(n(9));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=(0,d.default)("quill:keyboard"),g=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},E),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},k),r.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},k),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},_),r.addBinding({key:t.keys.DELETE},{collapsed:!1},_),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},k),r.listen(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"match",value:function(e,t){return t=O(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=O(e);if(null==r||null==r.key)return m.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,u.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var u=e.quill.getSelection();if(null!=u&&e.quill.hasFocus()){var l=e.quill.getLine(u.index),c=i(l,2),h=c[0],d=c[1],p=e.quill.getLeaf(u.index),v=i(p,2),y=v[0],m=v[1],g=0===u.length?[y,m]:e.quill.getLeaf(u.index+u.length),b=i(g,2),w=b[0],k=b[1],x=y instanceof f.default.Text?y.value().slice(0,m):"",_=w instanceof f.default.Text?w.value().slice(k):"",E={collapsed:0===u.length,empty:0===u.length&&h.length()<=1,format:e.quill.getFormat(u),offset:d,prefix:x,suffix:_};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed)return!1;if(null!=t.empty&&t.empty!==E.empty)return!1;if(null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,s.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix))&&!(null!=t.suffix&&!t.suffix.test(E.suffix))&&!0!==t.handler.call(e,u,E)}))&&n.preventDefault()}}}}))}}]),t}(p.default);function w(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return y(n={key:e,shiftKey:t,altKey:null},r,/^$/),y(n,"handler",(function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof f.default.Embed)||(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index-1,h.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index+n.length+1,h.default.sources.USER),!1)})),n}function k(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1)[0],o={};if(0===t.offset){var a=this.quill.getLine(e.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var u=r.formats(),l=this.quill.getFormat(e.index-1,1);o=c.default.attributes.diff(u,l)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,h.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-f,f,o,h.default.sources.USER),this.quill.focus()}}function x(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),s=i(a,1)[0];if(t.offset>=s.length()-1){var u=this.quill.getLine(e.index+1),l=i(u,1)[0];if(l){var f=s.formats(),d=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(f,d)||{},o=l.length()}}this.quill.deleteText(e.index,n,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,h.default.sources.USER)}}function _(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=c.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,h.default.sources.USER),this.quill.setSelection(e.index,h.default.sources.SILENT),this.quill.focus()}function E(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],h.default.sources.USER))}))}function C(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),u=s[0],l=s[1];if(null!=u){var c=this.quill.getIndex(u),d=u.newlineIndex(l,!0)+1,p=u.newlineIndex(c+l+o),v=u.domNode.textContent.slice(d,p).split("\n");l=0,v.forEach((function(t,i){e?(u.insertAt(d+l,n.TAB),l+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(u.deleteAt(d+l,n.TAB.length),l-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),l+=t.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(r,o,h.default.sources.SILENT)}}}}function S(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],h.default.sources.USER)}}}function O(e){if("string"===typeof e||"number"===typeof e)return O({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"===typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[g]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:S("bold"),italic:S("italic"),underline:S("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":C(!0),"outdent code-block":C(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,h.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new l.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,h.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,h.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,u.default)({},r.formats(),{list:"checked"}),s=(new l.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],s=(new l.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var u=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":u="unchecked";break;case"[x]":u="checked";break;case"-":case"*":u="bullet";break;default:u="ordered"}this.quill.insertText(e.index," ",h.default.sources.USER),this.quill.history.cutoff();var c=(new l.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:u});this.quill.updateContents(c,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,h.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new l.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,h.default.sources.USER)}},"embed left":w(b.keys.LEFT,!1),"embed left shift":w(b.keys.LEFT,!0),"embed right":w(b.keys.RIGHT,!1),"embed right shift":w(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=u(n(0)),s=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,o=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,u=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var l=[e,n.start.offset,n.end.offset];i=l[0],o=l[1],u=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof s.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var f=[o,u].map((function(e){return Math.max(0,Math.min(i.data.length,e-1))})),h=r(f,2);return o=h[0],u=h[1],{startNode:i,startOffset:o,endNode:i,endOffset:u}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}
vendor: 5,352 bytes, line 2
2))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=n(4),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);l.allowedChildren=[o.default,i.BlockEmbed,l],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"value",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(s.default.Attributor.Style),f=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),h=new c("color","color",{scope:s.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=f,t.ColorStyle=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=c},function(e,t,n){"use strict";
vendor: 8,675 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(23)),a=s(n(107));function s(e){return e&&e.__esModule?e:{default:e}}var u=0;function l(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),l(this.label,"aria-expanded"),l(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case o.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(0)),i=m(n(5)),o=n(4),a=m(o),s=m(n(16)),u=m(n(25)),l=m(n(24)),c=m(n(35)),f=m(n(6)),h=m(n(22)),d=m(n(7)),p=m(n(55)),v=m(n(42)),y=m(n(23));function m(e){return e&&e.__esModule?e:{default:e}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":s.default,"blots/container":u.default,"blots/cursor":l.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":h.default,"blots/text":d.default,"modules/clipboard":p.default,"modules/history":v.default,"modules/keyboard":y.default}),r.default.register(a.default,s.default,l.default,f.default,h.default,d.default),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;
vendor: 4,143 bytes, line 2
2Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(0)),a=s(n(7));
vendor: 7,230 bytes, line 2
2function s(e){return e&&e.__esModule?e:{default:e}}var u="\ufeff",l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(u),n.rightGuard=document.createTextNode(u),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(u).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=u,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(o.default.Embed);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new o.default.Attributor.Attribute("align","align",a),u=new o.default.Attributor.Class("align","ql-align",a),l=new o.default.Attributor.Style("align","text-align",a);t.AlignAttribute=s,t.AlignClass=u,t.AlignStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=n(26),s=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),u=new a.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},s=new o.default.Attributor.Attribute("direction","dir",a),u=new o.default.Attributor.Class("direction","ql-direction",a),l=new o.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=s,t.DirectionClass=u,t.DirectionStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new s.default.Attributor.Class("font","ql-font",c),h=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"value",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(s.default.Attributor.Style),d=new h("font","font-family",c);t.FontStyle=d,t.FontClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=s},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),o=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,(function(e,t,n,i){e!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(t):r.record(t,n))}
vendor: 4,403 bytes, line 2
2)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],o.default.sources.USER),this.ignoreChange=!1;var r=u(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function u(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=i.default.query(e,i.default.Scope.BLOCK)})))}(e)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=p(n(3)),a=p(n(2)),s=p(n(8)),u=p(n(23)),l=p(n(34)),c=p(n(59)),f=p(n(60)),h=p(n(28)),d=p(n(61));function p(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],k=["1","2","3",!1],x=["small",!1,"large","huge"],_=function(e){function t(e,n){v(this,t);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEac
vendor: 13,359 bytes, line 2
2h((function(e){e.container.contains(n.target)||e.close()}))})),r}return m(t,e),r(t,[{key:"addModule",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&C(e,g),new f.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&C(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?C(e,w):e.classList.contains("ql-header")?C(e,k):e.classList.contains("ql-size")&&C(e,x)),new h.default(e)})),this.quill.on(s.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(l.default);_.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),s.default.sources.USER),e.quill.setSelection(r.index+1,s.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){v(this,t);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return m(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){u.default.match(t,"enter")?(e.save(),t.preventDefault()):u.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,s.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",s.default.sources.USER),this.quill.setSelection(r+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(d.default);function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=E,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,i=this.find(e),o=i[0],a=e-i[1],s=this.iterator(o);(r=s())&&a<e+t;){var u=r.length();e>a?n(r,e-a,Math.min(t,a+u-e)):n(r,0,Math.min(u,e+t-a)),a+=u}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var s=function e(t,n){void 0===n&&(n=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),n&&e(t.parent))},u=function e(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(e),t.optimize(n))},l=t,c=0;l.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);s(t,!1),t instanceof i.default&&t.children.forEach((function(e){s(e,!1)}))}))):"attributes"===e.type&&s(t.prev)),s(t))})),this.children.forEach(u),a=(l=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
vendor: 11,433 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function r(e,t,u){if(e==t)return e?[[0,e]]:[];(u<0||e.length<u)&&(u=null);var c=o(e,t),f=e.substring(0,c);c=a(e=e.substring(c),t=t.substring(c));var h=e.substring(e.length-c),d=function(e,t){var s;if(!e)return[[1,t]];if(!t)return[[n,e]];var u=e.length>t.length?e:t,l=e.length>t.length?t:e,c=u.indexOf(l);if(-1!=c)return s=[[1,u.substring(0,c)],[0,l],[1,u.substring(c+l.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==l.length)return[[n,e],[1,t]];var f=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){for(var r,i,s,u,l=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(l,c+1));){var h=o(e.substring(n),t.substring(c)),d=a(e.substring(0,n),t.substring(0,c));f.length<d+h&&(f=t.substring(c-d,c)+t.substring(c,c+h),r=e.substring(0,n-d),i=e.substring(n+h),s=t.substring(0,c-d),u=t.substring(c+h))}return 2*f.length>=e.length?[r,i,s,u,f]:null}var s,u,l,c,f,h=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));if(!h&&!d)return null;s=d?h&&h[4].length>d[4].length?h:d:h,e.length>t.length?(u=s[0],l=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],u=s[2],l=s[3]);var p=s[4];return[u,l,c,f,p]}(e,t);if(f){var h=f[0],d=f[1],p=f[2],v=f[3],y=f[4],m=r(h,p),g=r(d,v);return m.concat([[0,y]],g)}return function(e,t){for(var r=e.length,o=t.length,a=Math.ceil((r+o)/2),s=a,u=2*a,l=new Array(u),c=new Array(u),f=0;f<u;f++)l[f]=-1,c[f]=-1;l[s+1]=0,c[s+1]=0;for(var h=r-o,d=h%2!=0,p=0,v=0,y=0,m=0,g=0;g<a;g++){for(var b=-g+p;b<=g-v;b+=2){for(var w=s+b,k=(S=b==-g||b!=g&&l[w-1]<l[w+1]?l[w+1]:l[w-1]+1)-b;S<r&&k<o&&e.charAt(S)==t.charAt(k);)S++,k++;if(l[w]=S,S>r)v+=2;else if(k>o)p+=2;else if(d&&(E=s+h-b)>=0&&E<u&&-1!=c[E]&&S>=(_=r-c[E]))return i(e,t,S,k)}for(var x=-g+y;x<=g-m;x+=2){for(var _,E=s+x,C=(_=x==-g||x!=g&&c[E-1]<c[E+1]?c[E+1]:c[E-1]+1)-x;_<r&&C<o&&e.charAt(r-_-1)==t.charAt(o-C-1);)_++,C++;if(c[E]=_,_>r)m+=2;else if(C>o)y+=2;else if(!d){var S;if((w=s+h-x)>=0&&w<u&&-1!=l[w])if(k=s+(S=l[w])-w,S>=(_=r-_))return i(e,t,S,k)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return f&&d.unshift([0,f]),h&&d.push([0,h]),s(d),null!=u&&(d=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,i=0;i<e.length;i++){var o=e[i];if(o[0]===n||0===o[0]){var a=r+o[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var s=t-r,u=[o[0],o[1].slice(0,s)],l=[o[0],o[1].slice(s)];return e.splice(i,1,u,l),[i+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),i=r[1],o=r[0],a=i[o],s=i[o+1];if(null==a)return e;if(0!==a[0])return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return i.splice(o,2,s,a),l(i,o,2);if(null!=s&&0===s[1].indexOf(a[1])){i.splice(o,2,[s[0],a[1]],[0,a[1]]);var u=s[1].slice(a[1].length);return u.length>0&&i.splice(o+2,0,[s[0],u]),l(i,o,3)}return e}(d,u)),d=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},i=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},o=2;o<e.length;o+=1)0===e[o-2][0]&&i(e[o-2][1])&&e[o-1][0]===n&&r(e[o-1][1])&&1===e[o][0]&&r(e[o][1])&&(t=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));if(!t)return e;var a=[];for(o=0;o<e.length;o+=1)e[o][1].length>0&&a.push(e[o]);return a}(d)}function i(e,t,n,i){var o=e.substring(0,n),a=t.substring(0,i),s=e.substring(n),u=t.substring(i),l=r(o,a),c=r(s,u);return l.concat(c)}function o(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function s(e){e.push([0,""]);for(var t,r=0,i=0,u=0,l="",c="";r<e.length;)switch(e[r][0]){case 1:u++,c+=e[r][1],r++;break;case n:i++,l+=e[r][1],r++;break;case 0:i+u>1?(0!==i&&0!==u&&(0!==(t=o(c,l))&&(r-i-u>0&&0==e[r-i-u-1][0]?e[r-i-u-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),r++),c=c.substring(t),l=l.substring(t)),0!==(t=a(c,l))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),l=l.substring(0,l.length-t))),0===i?e.splice(r-u,i+u,[1,c]):0===u?e.splice(r-i,i+u,[n,l]):e.splice(r-i-u,i+u,[n,l],[1,c]),r=r-i-u+(i?1:0)+(u?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,u=0,i=0,l="",c=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),f=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),f=!0)),r++;f&&s(e)}var u=r;function l(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],o=e[r+1];i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]])}return e}u.INSERT=1,u.DELETE=n,u.EQUAL=0,e.exports=u},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"===typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:i).supported=r,t.unsupported=i},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e,t){var n=r?r+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,o),!0;case 6:return c.fn.call(c.context,t,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var h,d=c.length;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,n);break;case 4:c[l].fn.call(c[l].context,t,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(e,t,n){var i=new o(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(e,t,n){var i=new o(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==t||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=1===l.length?l[0]:l:0===--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof e&&(e.exports=a)},function(e,t,n){"use strict";
vendor: 5,223 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=b(n(3)),s=b(n(2)),u=b(n(0)),l=b(n(5)),c=b(n(10)),f=b(n(9)),h=n(36),d=n(37),p=b(n(13)),v=n(26),y=n(38),m=n(39),g=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=(0,c.default)("quill:clipboard"),x="__ql-matcher",_=[[Node.TEXT_NODE,D],[Node.TEXT_NODE,L],["br",function(e,t){return A(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===T(e).fontStyle&&(n.italic=!0),r.fontWeight&&(T(e).fontWeight.startsWith("bold")||parseInt(T(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=O(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=u.default.query(e);if(null==n||"list-item"!==n.blotName||!A(t,"\n"))return t;for(var r=-1,i=e.parentNode;!i.classList.contains("ql-clipboard");)"list"===(u.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",P.bind(P,"bold")],["i",P.bind(P,"italic")],["style",function(){return new s.default}]],E=[h.AlignAttribute,y.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),C=[h.AlignStyle,d.BackgroundStyle,v.ColorStyle,y.DirectionStyle,m.FontStyle,g.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],_.concat(r.options.matchers).forEach((function(e){var t=i(e,2),o=t[0],a=t[1];(n.matchVisual||a!==M)&&r.addMatcher(o,a)})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[p.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,w({},p.default.blotName,t[p.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],u=o[1],l=N(this.container,a,u);return A(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new s.default).retain(l.length()-1).delete(1))),k.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,l.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,l.default.sources.USER),t.quill.setSelection(r.length()-n.length,l.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];
vendor: 2,755 bytes, line 2
2return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[x]=e[x]||[],e[x].push(s)}))}})),[t,n]}}]),t}(f.default);function O(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return O(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))}),new s.default)}function T(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function A(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function I(e){if(0===e.childNodes.length)return!1;var t=T(e);return["block","list-item"].indexOf(t.display)>-1}function N(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=N(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[x]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new s.default):new s.default}function P(e,t,n){return O(n,e,!0)}function j(e,t){var n=u.default.Attributor.Attribute.keys(e),r=u.default.Attributor.Class.keys(e),i=u.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=u.default.query(t,u.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),null==(n=C[t])||n.attrName!==t&&n.keyName!==t||(n=C[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=O(t,o)),t}function R(e,t){var n=u.default.query(e);if(null==n)return t;if(n.prototype instanceof u.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new s.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=O(t,n.blotName,n.formats(e)));return t}function L(e,t){return A(t,"\n")||(I(e)||t.length()>0&&e.nextSibling&&I(e.nextSibling))&&t.insert("\n"),t}function M(e,t){if(I(e)&&null!=e.nextElementSibling&&!A(t,"\n\n")){var n=e.offsetHeight+parseFloat(T(e).marginTop)+parseFloat(T(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function D(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!T(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u
vendor: 5,177 bytes, line 2
200a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&I(e.parentNode)||null!=e.previousSibling&&I(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&I(e.parentNode)||null!=e.nextSibling&&I(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}S.DEFAULTS={matchers:[],matchVisual:!0},t.default=S,t.matchAttributor=j,t.matchBlot=R,t.matchNewline=L,t.matchSpacing=M,t.matchText=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(2)),a=c(n(0)),s=c(n(5)),u=c(n(10)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var h=(0,u.default)("quill:toolbar"),d=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");v(a,o.options.container),e.container.parentNode.insertBefore(a,e.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=r(e,1)[0];o.update(t)})),o):(i=h.error("Container required for toolbar",o.options),f(o,i))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,e);
vendor: 10,295 bytes, line 2
2if(null==a.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,(function(i){var u=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var l=e.options[e.selectedIndex];u=!l.hasAttribute("selected")&&(l.value||!1)}else u=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=r(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,u);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(u=prompt("Enter "+n)))return;t.quill.updateContents((new o.default).retain(f.index).delete(f.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,u)),s.default.sources.USER)}else t.quill.format(n,u,s.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[o])s=a.querySelector("option[selected]");else if(!Array.isArray(t[o])){var u=t[o];"string"===typeof u&&(u=u.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+u+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var l=t[o]===a.getAttribute("value")||null!=t[o]&&t[o].toString()===a.getAttribute("value")||null==t[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",l)}else a.classList.toggle("ql-active",null!=t[o])}))}}]),t}(l.default);function p(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)p(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):p(n,t,r)}})),e.appendChild(n)}))}d.DEFAULTS={},d.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",s.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,s.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",e,s.default.sources.USER)}}},t.default=d,t.addControls=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"buildItem",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=t+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=d(n(3)),s=d(n(8)),u=n(43),l=d(u),c=d(n(27)),f=n(15),h=d(n(41));
vendor: 22,814 bytes, line 2
2function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function y(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return y(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(l.default);g.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){p(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return y(t,e),o(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,s.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===s.default.sources.USER){var o=e.quill.scroll.descendant(c.default,t.index),a=r(o,2),u=a[0],l=a[1];if(null!=u){e.linkRange=new f.Range(t.index-l,u.length());var h=c.default.formats(u.domNode);return e.preview.textContent=h,e.preview.setAttribute("href",h),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(u.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=L(n(29)),i=n(36),o=n(38),a=n(64),s=L(n(65)),u=L(n(66)),l=n(67),c=L(l),f=n(37),h=n(26),d=n(39),p=n(40),v=L(n(56)),y=L(n(68)),m=L(n(27)),g=L(n(69)),b=L(n(70)),w=L(n(71)),k=L(n(72)),x=L(n(73)),_=n(13),E=L(_),C=L(n(74)),S=L(n(75)),O=L(n(57)),T=L(n(41)),A=L(n(28)),I=L(n(59)),N=L(n(60)),P=L(n(61)),j=L(n(108)),R=L(n(62));function L(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":d.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":d.FontStyle,"attributors/style/size":p.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":d.FontClass,"formats/size":p.SizeClass,"formats/blockquote":s.default,"formats/code-block":E.default,"formats/header":u.default,"formats/list":c.default,"formats/bold":v.default,"formats/code":_.Code,"formats/italic":y.default,"formats/link":m.default,"formats/script":g.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":k.default,"formats/video":x.default,"formats/list/item":l.ListItem,"modules/formula":C.default,"modules/syntax":S.default,"modules/toolbar":O.default,"themes/bubble":j.default,"themes/snow":R.default,"ui/icons":T.default,"ui/picker":A.default,"ui/icon-picker":N.default,"ui/color-picker":I.default,"ui/tooltip":P.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(s.default.Attributor.Class),f=new c("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(4);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="blockquote",s.tagName="blockquote",t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=o)&&r.__esModule?r:{default:r}).default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(0)),a=u(n(4)),s=u(n(25));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){e!==d.blotName||n?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);h.blotName="list-item",h.tagName="LI";var d=function(e){function t(e){l(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=o.default.find(t.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return f(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof h)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);d.blotName="list",d.scope=o.default.Scope.BLOCK_BLOT,d.tagName=["OL","UL"],d.defaultChild="list-item",d.allowedChildren=[h],t.ListItem=h,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(56);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="italic",s.tagName=["EM","I"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="strike",s.tagName="S",t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="underline",s.tagName="U",t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u=n(27);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=["alt","height","width"],h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,u.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.default.Embed);h.blotName="image",h.tagName="IMG",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(4),s=n(27),u=(r=s)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=["height","width"],h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return u.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",t.default=h},function(e,t,n){"use strict";
vendor: 4,746 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(35)),a=u(n(5)),s=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,null,[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(o.default);h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var d=function(e){function t(){l(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(h,!0)}}]),t}(s.default);t.FormulaBlot=h,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(0)),a=u(n(5)),s=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(u(n(13)).default);h.className="ql-syntax";var d=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),p=function(e){function t(e,n){l(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(d,!0),a.default.register(h,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();
vendor: 4,581 bytes, line 2
2this.quill.scroll.descendants(h).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(s.default);p.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=h,t.CodeToken=d,t.default=p},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
2 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";
vendor: 5,439 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=f(n(3)),a=f(n(8)),s=n(43),u=f(s),l=n(15),c=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],y=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return p(t,e),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new m(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(u.default);y.DEFAULTS=(0,o.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var m=function(e){function t(e,n){h(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,i){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var s=o[o.length-1],u=r.quill.getIndex(s),c=Math.min(s.length()-1,t.index+t.length-u),f=r.quill.getBounds(new l.Range(u,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return p(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);m.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=m,t.default=y},function(e,t,n){e.exports=n(63)}]).default},e.exports=t()},4463:function(e,t,n){"use strict";var r=n(2791),i=n(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function u(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},p={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 34,480 bytes, line 2
2h((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(p,e)||!f.call(d,e)&&(h.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,g);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,g);y[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,g);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var M,D=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function V(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case x:return"Portal";case C:return"Profiler";case E:return"StrictMode";case A:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(de).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var me=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,_e=null,Ee=null;function Ce(e){if(e=bi(e)){if("function"!==typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=ki(t),xe(e.stateNode,e.type,t))}}function Se(e){_e?Ee?Ee.push(e):Ee=[e]:_e=e}function Oe(){if(_e){var e=_e,t=Ee;if(Ee=_e=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Ae(){}var Ie=!1;function Ne(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Te(e,t,n)}finally{Ie=!1,(null!==_e||null!==Ee)&&(Ae(),Oe())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=ki(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var je=!1;if(c)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){je=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ce){je=!1}function Le(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var Me=!1,De=null,Fe=!1,Be=null,Ue={onError:function(e){Me=!0,De=e}};function Ve(e,t,n,r,i,o,a,s,u){Me=!1,De=null,Le.apply(Ue,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,$e=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Xe=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ft(s):0!==(o&=a)&&(r=ft(o))}else 0!==(a=n&~i)?r=ft(a):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=lt;return 0===(4194240&(lt<<=1))&&(lt=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var kt,xt,_t,Et,Ct,St=!1,Ot=[],Tt=null,At=null,It=null,Nt=new Map,Pt=new Map,jt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Dt(e){var t=gi(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ze(n)))return e.blockedOn=t,void Ct(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){St=!1,null!==Tt&&Ft(Tt)&&(Tt=null),null!==At&&Ft(At)&&(At=null),null!==It&&Ft(It)&&(It=null),Nt.forEach(Bt),Pt.forEach(Bt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function qt(e){function t(t){return Vt(t,e)}if(0<Ot.length){Vt(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Vt(Tt,e),null!==At&&Vt(At,e),null!==It&&Vt(It,e),Nt.forEach(t),Pt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Dt(n),null===n.blockedOn&&jt.shift()}var zt=w.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var i=bt,o=zt.transition;zt.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=i,zt.transition=o}}function Kt(e,t,n,r){var i=bt,o=zt.transition;zt.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=i,zt.transition=o}}function Gt(e,t,n,r){if(Ht){var i=Yt(e,t,n,r);if(null===i)Hr(e,t,r,$t,n),Lt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Tt=Mt(Tt,e,t,n,r,i),!0;case"dragenter":return At=Mt(At,e,t,n,r,i),!0;case"mouseover":return It=Mt(It,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Nt.set(o,Mt(Nt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pt.set(o,Mt(Pt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&kt(o),null===(o=Yt(e,t,n,r))&&Hr(e,t,r,$t,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var $t=null;function Yt(e,t,n,r){if($t=null,null!==(e=gi(e=ke(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ze(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,un,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),fn=D({},ln,{view:0,detail:0}),hn=on(fn),dn=D({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(dn),vn=on(D({},dn,{dataTransfer:0})),yn=on(D({},fn,{relatedTarget:0})),mn=on(D({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=D({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(D({},ln,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Cn(){return En}var Sn=D({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(Sn),Tn=on(D({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(D({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(D({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=D({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(Nn),jn=[9,13,27,32],Rn=c&&"CompositionEvent"in window,Ln=null;c&&"documentMode"in document&&(Ln=document.documentMode);var Mn=c&&"TextEvent"in window&&!Ln,Dn=c&&(!Rn||Ln&&8<Ln&&11>=Ln),Fn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Wn(e,t,n,r){Se(r),0<(t=Kr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Gn=null;function $n(e){Fr(e,0)}function Yn(e){if(G(wi(e)))return e}function Qn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Xn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),Gn=Kn=null)}function nr(e){if("value"===e.propertyName&&Yn(Gn)){var t=[];Wn(t,Gn,e,ke(e)),Ne($n,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Gn)}function or(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!f.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,yr=null,mr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==$(r)||("selectionStart"in(r=yr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ur(gr,r)||(gr=r,0<(r=Kr(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},_r={},Er={};function Cr(e){if(_r[e])return _r[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return _r[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Sr=Cr("animationend"),Or=Cr("animationiteration"),Tr=Cr("animationstart"),Ar=Cr("transitionend"),Ir=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Ir.set(e,t),u(t,[e])}for(var jr=0;jr<Nr.length;jr++){var Rr=Nr[jr];Pr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Pr(Sr,"onAnimationEnd"),Pr(Or,"onAnimationIteration"),Pr(Tr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Ar,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,l){if(Ve.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=De;Me=!1,De=null,Fe||(Fe=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Dr(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Dr(i,s,l),o=u}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[vi];void 0===n&&(n=t[vi]=new Set);var r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),zr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Vr]){e[Vr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Ur("selectionchange",!1,t))}}function zr(e,t,n,r){switch(Qt(t)){case 1:var i=Wt;break;case 4:i=Kt;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=gi(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}Ne((function(){var r=o,i=ke(n),a=[];e:{var s=Ir.get(e);if(void 0!==s){var u=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=On;break;case"focusin":l="focus",u=yn;break;case"focusout":l="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=An;break;case Sr:case Or:case Tr:u=mn;break;case Ar:u=In;break;case"scroll":u=hn;break;case"wheel":u=Pn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!==(4&t),f=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var d,p=r;null!==p;){var v=(d=p).stateNode;if(5===d.tag&&null!==v&&(d=v,null!==h&&(null!=(v=Pe(p,h))&&c.push(Wr(p,v,d)))),f)break;p=p.return}0<c.length&&(s=new u(s,l,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!gi(l)&&!l[pi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?gi(l):null)&&(l!==(f=qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=pn,v="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,v="onPointerLeave",h="onPointerEnter",p="pointer"),f=null==u?s:wi(u),d=null==l?s:wi(l),(s=new c(v,p+"leave",u,n,i)).target=f,s.relatedTarget=d,v=null,gi(i)===r&&((c=new c(h,p+"enter",l,n,i)).target=d,c.relatedTarget=f,v=c),f=v,u&&l)e:{for(h=l,p=0,d=c=u;d;d=Gr(d))p++;for(d=0,v=h;v;v=Gr(v))d++;for(;0<p-d;)c=Gr(c),p--;for(;0<d-p;)h=Gr(h),d--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break e;c=Gr(c),h=Gr(h)}c=null}else c=null;null!==u&&$r(a,s,u,c,!1),null!==l&&null!==f&&$r(a,f,l,c,!0)}if("select"===(u=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var y=Qn;else if(Hn(s))if(Xn)y=ar;else{y=ir;var m=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(y=or);switch(y&&(y=y(e,r))?Wn(a,y,n,i):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=r?wi(r):window,e){case"focusin":(Hn(m)||"true"===m.contentEditable)&&(yr=m,mr=r,gr=null);break;case"focusout":gr=mr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,i)}var g;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=en()):(Zt="value"in(Xt=i)?Xt.value:Xt.textContent,qn=!0)),0<(m=Kr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:m}),g?b.data=g:null!==(g=Vn(n))&&(b.data=g))),(g=Mn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Rn&&Un(e,t)?(e=en(),Jt=Zt=Xt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;
vendor: 84,785 bytes, line 2
2case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g))}Fr(a,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(Wr(e,o,i)),null!=(o=Pe(e,t))&&r.push(Wr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Pe(n,o))&&a.unshift(Wr(n,u,s)):i||null!=(u=Pe(n,o))&&a.push(Wr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Qr,"")}function Zr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);qt(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),hi="__reactFiber$"+fi,di="__reactProps$"+fi,pi="__reactContainer$"+fi,vi="__reactEvents$"+fi,yi="__reactListeners$"+fi,mi="__reactHandles$"+fi;function gi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[hi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ki(e){return e[di]||null}var xi=[],_i=-1;function Ei(e){return{current:e}}function Ci(e){0>_i||(e.current=xi[_i],xi[_i]=null,_i--)}function Si(e,t){_i++,xi[_i]=e.current,e.current=t}var Oi={},Ti=Ei(Oi),Ai=Ei(!1),Ii=Oi;function Ni(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ji(){Ci(Ai),Ci(Ti)}function Ri(e,t,n){if(Ti.current!==Oi)throw Error(o(168));Si(Ti,t),Si(Ai,n)}function Li(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,z(e)||"Unknown",i));return D({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Ii=Ti.current,Si(Ti,e),Si(Ai,Ai.current),!0}function Di(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Li(e,t,Ii),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ai),Ci(Ti),Si(Ti,e)):Ci(Ai),Si(Ai,n)}var Fi=null,Bi=!1,Ui=!1;function Vi(e){null===Fi?Fi=[e]:Fi.push(e)}function qi(){if(!Ui&&null!==Fi){Ui=!0;var e=0,t=bt;try{var n=Fi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,Bi=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ge(Je,qi),i}finally{bt=t,Ui=!1}}return null}var zi=w.ReactCurrentBatchConfig;function Hi(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Wi=Ei(null),Ki=null,Gi=null,$i=null;function Yi(){$i=Gi=Ki=null}function Qi(e){var t=Wi.current;Ci(Wi),e._currentValue=t}function Xi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zi(e,t){Ki=e,$i=Gi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ks=!0),e.firstContext=null)}function Ji(e){var t=e._currentValue;if($i!==e)if(e={context:e,memoizedValue:t,next:null},null===Gi){if(null===Ki)throw Error(o(308));Gi=e,Ki.dependencies={lanes:0,firstContext:e}}else Gi=Gi.next=e;return t}var eo=null,to=!1;function no(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function io(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oo(e,t){var n=e.updateQueue;null!==n&&(n=n.shared,tl(e)?(null===(e=n.interleaved)?(t.next=t,null===eo?eo=[n]:eo.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function ao(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function so(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var i=e.updateQueue;to=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?o=l:a.next=l,a=u;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(null!==o){var f=i.baseState;for(a=0,c=l=u=null,s=o;;){var h=s.lane,d=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(h=t,d=n,v.tag){case 1:if("function"===typeof(p=v.payload)){f=p.call(d,f,h);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=v.payload)?p.call(d,f,h):p)||void 0===h)break e;f=D({},f,h);break e;case 2:to=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else d={eventTime:d,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=d,u=f):c=c.next=d,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);ju|=a,e.lanes=a,e.memoizedState=f}}function lo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var co=(new r.Component).refs;function fo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ho={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xu(),i=Zu(e),o=io(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),oo(e,o),null!==(t=Ju(e,i,r))&&ao(t,e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xu(),i=Zu(e),o=io(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),oo(e,o),null!==(t=Ju(e,i,r))&&ao(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xu(),r=Zu(e),i=io(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),oo(e,i),null!==(t=Ju(e,r,n))&&ao(t,e,r)}};function po(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,o))}function vo(e,t,n){var r=!1,i=Oi,o=t.contextType;return"object"===typeof o&&null!==o?o=Ji(o):(i=Pi(t)?Ii:Ti.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ni(e,i):Oi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ho,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function yo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ho.enqueueReplaceState(t,t.state,null)}function mo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=co,no(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Ji(o):(o=Pi(t)?Ii:Ti.current,i.context=Ni(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ho.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}var go=[],bo=0,wo=null,ko=0,xo=[],_o=0,Eo=null,Co=1,So="";function Oo(e,t){go[bo++]=ko,go[bo++]=wo,wo=e,ko=t}function To(e,t,n){xo[_o++]=Co,xo[_o++]=So,xo[_o++]=Eo,Eo=e;var r=Co;e=So;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Co=1<<32-at(t)+i|n<<i|r,So=o+e}else Co=1<<o|n<<i|r,So=e}function Ao(e){null!==e.return&&(Oo(e,1),To(e,1,0))}function Io(e){for(;e===wo;)wo=go[--bo],go[bo]=null,ko=go[--bo],go[bo]=null;for(;e===Eo;)Eo=xo[--_o],xo[_o]=null,So=xo[--_o],xo[_o]=null,Co=xo[--_o],xo[_o]=null}var No=null,Po=null,jo=!1,Ro=null;function Lo(e,t){var n=Il(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Mo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,No=e,Po=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,No=e,Po=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Eo?{id:Co,overflow:So}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Il(18,null,null,0)).stateNode=t,n.return=e,e.child=n,No=e,Po=null,!0);default:return!1}}function Do(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function Fo(e){if(jo){var t=Po;if(t){var n=t;if(!Mo(e,t)){if(Do(e))throw Error(o(418));t=li(n.nextSibling);var r=No;t&&Mo(e,t)?Lo(r,n):(e.flags=-4097&e.flags|2,jo=!1,No=e)}}else{if(Do(e))throw Error(o(418));e.flags=-4097&e.flags|2,jo=!1,No=e}}}function Bo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;No=e}function Uo(e){if(e!==No)return!1;if(!jo)return Bo(e),jo=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=Po)){if(Do(e)){for(e=Po;e;)e=li(e.nextSibling);throw Error(o(418))}for(;t;)Lo(e,t),t=li(t.nextSibling)}if(Bo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Po=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Po=null}}else Po=No?li(e.stateNode.nextSibling):null;return!0}function Vo(){Po=No=null,jo=!1}function qo(e){null===Ro?Ro=[e]:Ro.push(e)}function zo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===co&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ho(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wo(e){return(0,e._init)(e._payload)}function Ko(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ml(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===_?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===P&&Wo(o)===t.type)?((r=i(t,n.props)).ref=zo(e,t,n),r.return=e,r):((r=jl(n.type,n.key,n.props,null,e.mode,r)).ref=zo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Rl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Ml(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=jl(t.type,t.key,t.props,null,e.mode,n)).ref=zo(e,null,t),n.return=e,n;case x:return(t=Dl(t,e.mode,n)).return=e,t;case P:return h(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Rl(t,e.mode,n,null)).return=e,t;Ho(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case x:return n.key===i?c(e,t,n,r):null;case P:return d(e,t,(i=n._init)(n._payload),r)}if(te(n)||L(n))return null!==i?null:f(e,t,n,r,null);Ho(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case P:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||L(r))return f(t,e=e.get(n)||null,r,i,null);Ho(t,r)}return null}function v(i,o,s,u){for(var l=null,c=null,f=o,v=o=0,y=null;null!==f&&v<s.length;v++){f.index>v?(y=f,f=null):y=f.sibling;var m=d(i,f,s[v],u);if(null===m){null===f&&(f=y);break}e&&f&&null===m.alternate&&t(i,f),o=a(m,o,v),null===c?l=m:c.sibling=m,c=m,f=y}if(v===s.length)return n(i,f),jo&&Oo(i,v),l;if(null===f){for(;v<s.length;v++)null!==(f=h(i,s[v],u))&&(o=a(f,o,v),null===c?l=f:c.sibling=f,c=f);return jo&&Oo(i,v),l}for(f=r(i,f);v<s.length;v++)null!==(y=p(f,i,v,s[v],u))&&(e&&null!==y.alternate&&f.delete(null===y.key?v:y.key),o=a(y,o,v),null===c?l=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(i,e)})),jo&&Oo(i,v),l}function y(i,s,u,l){var c=L(u);if("function"!==typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var f=c=null,v=s,y=s=0,m=null,g=u.next();null!==v&&!g.done;y++,g=u.next()){v.index>y?(m=v,v=null):m=v.sibling;var b=d(i,v,g.value,l);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,y),null===f?c=b:f.sibling=b,f=b,v=m}if(g.done)return n(i,v),jo&&Oo(i,y),c;if(null===v){for(;!g.done;y++,g=u.next())null!==(g=h(i,g.value,l))&&(s=a(g,s,y),null===f?c=g:f.sibling=g,f=g);return jo&&Oo(i,y),c}for(v=r(i,v);!g.done;y++,g=u.next())null!==(g=p(v,i,y,g.value,l))&&(e&&null!==g.alternate&&v.delete(null===g.key?y:g.key),s=a(g,s,y),null===f?c=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(i,e)})),jo&&Oo(i,y),c}return function e(r,o,a,u){if("object"===typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case k:e:{for(var l=a.key,c=o;null!==c;){if(c.key===l){if((l=a.type)===_){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===P&&Wo(l)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=zo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===_?((o=Rl(a.props.children,r.mode,u,a.key)).return=r,r=o):((u=jl(a.type,a.key,a.props,null,r.mode,u)).ref=zo(r,o,a),u.return=r,r=u)}return s(r);case x:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Dl(a,r.mode,u)).return=r,r=o}return s(r);case P:return e(r,o,(c=a._init)(a._payload),u)}if(te(a))return v(r,o,a,u);if(L(a))return y(r,o,a,u);Ho(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Ml(a,r.mode,u)).return=r,r=o),s(r)):n(r,o)}}var Go=Ko(!0),$o=Ko(!1),Yo={},Qo=Ei(Yo),Xo=Ei(Yo),Zo=Ei(Yo);function Jo(e){if(e===Yo)throw Error(o(174));return e}function ea(e,t){switch(Si(Zo,t),Si(Xo,e),Si(Qo,Yo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(Qo),Si(Qo,t)}function ta(){Ci(Qo),Ci(Xo),Ci(Zo)}function na(e){Jo(Zo.current);var t=Jo(Qo.current),n=ue(t,e.type);t!==n&&(Si(Xo,e),Si(Qo,n))}function ra(e){Xo.current===e&&(Ci(Qo),Ci(Xo))}var ia=Ei(0);function oa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var aa=[];function sa(){for(var e=0;e<aa.length;e++)aa[e]._workInProgressVersionPrimary=null;aa.length=0}var ua=w.ReactCurrentDispatcher,la=w.ReactCurrentBatchConfig,ca=0,fa=null,ha=null,da=null,pa=!1,va=!1,ya=0,ma=0;function ga(){throw Error(o(321))}function ba(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function wa(e,t,n,r,i,a){if(ca=a,fa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ua.current=null===e||null===e.memoizedState?rs:is,e=n(r,i),va){a=0;do{if(va=!1,ya=0,25<=a)throw Error(o(301));a+=1,da=ha=null,t.updateQueue=null,ua.current=os,e=n(r,i)}while(va)}if(ua.current=ns,t=null!==ha&&null!==ha.next,ca=0,da=ha=fa=null,pa=!1,t)throw Error(o(300));return e}function ka(){var e=0!==ya;return ya=0,e}function xa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===da?fa.memoizedState=da=e:da=da.next=e,da}function _a(){if(null===ha){var e=fa.alternate;e=null!==e?e.memoizedState:null}else e=ha.next;var t=null===da?fa.memoizedState:da.next;if(null!==t)da=t,ha=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ha=e).memoizedState,baseState:ha.baseState,baseQueue:ha.baseQueue,queue:ha.queue,next:null},null===da?fa.memoizedState=da=e:da=da.next=e}return da}function Ea(e,t){return"function"===typeof t?t(e):t}function Ca(e){var t=_a(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ha,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var u=s=null,l=null,c=a;do{var f=c.lane;if((ca&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=h,s=r):l=l.next=h,fa.lanes|=f,ju|=f}c=c.next}while(null!==c&&c!==a);null===l?s=r:l.next=u,sr(r,t.memoizedState)||(ks=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,fa.lanes|=a,ju|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=_a(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(ks=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Oa(){}function Ta(e,t){var n=fa,r=_a(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,ks=!0),r=r.queue,Ba(Na.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==da&&1&da.memoizedState.tag){if(n.flags|=2048,Ra(9,Ia.bind(null,n,r,i,t),void 0,null),null===Su)throw Error(o(349));0!==(30&ca)||Aa(n,t,i)}return i}function Aa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=fa.updateQueue)?(t={lastEffect:null,stores:null},fa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ia(e,t,n,r){t.value=n,t.getSnapshot=r,Pa(t)&&Ju(e,1,-1)}function Na(e,t,n){return n((function(){Pa(t)&&Ju(e,1,-1)}))}function Pa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function ja(e){var t=xa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:e},t.queue=e,e=e.dispatch=Xa.bind(null,fa,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=fa.updateQueue)?(t={lastEffect:null,stores:null},fa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(){return _a().memoizedState}function Ma(e,t,n,r){var i=xa();fa.flags|=e,i.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var i=_a();r=void 0===r?null:r;var o=void 0;if(null!==ha){var a=ha.memoizedState;if(o=a.destroy,null!==r&&ba(r,a.deps))return void(i.memoizedState=Ra(t,n,o,r))}fa.flags|=e,i.memoizedState=Ra(1|t,n,o,r)}function Fa(e,t){return Ma(8390656,8,e,t)}function Ba(e,t){return Da(2048,8,e,t)}function Ua(e,t){return Da(4,2,e,t)}function Va(e,t){return Da(4,4,e,t)}function qa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4,4,qa.bind(null,t,e),n)}function Ha(){}function Wa(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ba(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ka(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ba(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ga(e,t,n){return 0===(21&ca)?(e.baseState&&(e.baseState=!1,ks=!0),e.memoizedState=n):(sr(n,t)||(n=vt(),fa.lanes|=n,ju|=n,e.baseState=!0),t)}function $a(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=la.transition;la.transition={};try{e(!1),t()}finally{bt=n,la.transition=r}}function Ya(){return _a().memoizedState}function Qa(e,t,n){var r=Zu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Za(e)?Ja(t,n):(es(e,t,n),null!==(e=Ju(e,r,n=Xu()))&&ts(e,t,r))}function Xa(e,t,n){var r=Zu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Za(e))Ja(t,i);else{es(e,t,i);var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a))return}catch(u){}null!==(e=Ju(e,r,n=Xu()))&&ts(e,t,r)}}function Za(e){var t=e.alternate;return e===fa||null!==t&&t===fa}function Ja(e,t){va=pa=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function es(e,t,n){tl(e)?(null===(e=t.interleaved)?(n.next=n,null===eo?eo=[t]:eo.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function ts(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var ns={readContext:Ji,useCallback:ga,useContext:ga,useEffect:ga,useImperativeHandle:ga,useInsertionEffect:ga,useLayoutEffect:ga,useMemo:ga,useReducer:ga,useRef:ga,useState:ga,useDebugValue:ga,useDeferredValue:ga,useTransition:ga,useMutableSource:ga,useSyncExternalStore:ga,useId:ga,unstable_isNewReconciler:!1},rs={readContext:Ji,useCallback:function(e,t){return xa().memoizedState=[e,void 0===t?null:t],e},useContext:Ji,useEffect:Fa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ma(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=xa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qa.bind(null,fa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xa().memoizedState=e},useState:ja,useDebugValue:Ha,useDeferredValue:function(e){return xa().memoizedState=e},useTransition:function(){var e=ja(!1),t=e[0];return e=$a.bind(null,e[1]),xa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fa,i=xa();if(jo){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Su)throw Error(o(349));0!==(30&ca)||Aa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Fa(Na.bind(null,r,a,e),[e]),r.flags|=2048,Ra(9,Ia.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=xa(),t=Su.identifierPrefix;if(jo){var n=So;t=":"+t+"R"+(n=(Co&~(1<<32-at(Co)-1)).toString(32)+n),0<(n=ya++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ma++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},is={readContext:Ji,useCallback:Wa,useContext:Ji,useEffect:Ba,useImperativeHandle:za,useInsertionEffect:Ua,useLayoutEffect:Va,useMemo:Ka,useReducer:Ca,useRef:La,useState:function(){return Ca(Ea)},useDebugValue:Ha,useDeferredValue:function(e){return Ga(_a(),ha.memoizedState,e)},useTransition:function(){return[Ca(Ea)[0],_a().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Ta,useId:Ya,unstable_isNewReconciler:!1},os={readContext:Ji,useCallback:Wa,useContext:Ji,useEffect:Ba,useImperativeHandle:za,useInsertionEffect:Ua,useLayoutEffect:Va,useMemo:Ka,useReducer:Sa,useRef:La,useState:function(){return Sa(Ea)},useDebugValue:Ha,useDeferredValue:function(e){var t=_a();return null===ha?t.memoizedState=e:Ga(t,ha.memoizedState,e)},useTransition:function(){return[Sa(Ea)[0],_a().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Ta,useId:Ya,unstable_isNewReconciler:!1};function as(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var us,ls,cs,fs="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=io(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,qu=r),ss(0,t)},n}function ds(e,t,n){(n=io(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ss(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ss(0,t),"function"!==typeof r&&(null===zu?zu=new Set([this]):zu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ps(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=El.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=io(-1,1)).tag=2,oo(n,t))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}function ms(e,t){if(!jo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bs(e,t,n){var r=t.pendingProps;switch(Io(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gs(t),null;case 1:case 17:return Pi(t.type)&&ji(),gs(t),null;case 3:return r=t.stateNode,ta(),Ci(Ai),Ci(Ti),sa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Uo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Ro&&(ol(Ro),Ro=null))),gs(t),null;case 5:ra(t);var i=Jo(Zo.current);if(n=t.type,null!==e&&null!=t.stateNode)ls(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return gs(t),null}if(e=Jo(Qo.current),Uo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[hi]=t,r[di]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Lr.length;i++)Br(Lr[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Q(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":ie(r,a),Br("invalid",r)}for(var u in ge(n,a),i=null,a)if(a.hasOwnProperty(u)){var l=a[u];"children"===u?"string"===typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,l,e),i=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&Br("scroll",r)}switch(n){case"input":K(r),J(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[hi]=t,e[di]=r,us(e,t),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;i<Lr.length;i++)Br(Lr[i],e);i=r;break;case"source":Br("error",e),i=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),i=r;break;case"details":Br("toggle",e),i=r;break;case"input":Q(e,r),i=Y(e,r),Br("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=D({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Br("invalid",e)}for(a in ge(n,i),l=i)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?ye(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"===typeof c&&he(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Br("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":K(e),J(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return gs(t),null;case 6:if(e&&null!=t.stateNode)cs(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Jo(Zo.current),Jo(Qo.current),Uo(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(a=r.nodeValue!==n)&&null!==(e=No))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return gs(t),null;case 13:if(Ci(ia),r=t.memoizedState,jo&&null!==Po&&0!==(1&t.mode)&&0===(128&t.flags)){for(r=Po;r;)r=li(r.nextSibling);return Vo(),t.flags|=98560,t}if(null!==r&&null!==r.dehydrated){if(r=Uo(t),null===e){if(!r)throw Error(o(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(o(317));r[hi]=t}else Vo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;return gs(t),null}return null!==Ro&&(ol(Ro),Ro=null),0!==(128&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?Uo(t):n=null!==e.memoizedState,r!==n&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ia.current)?0===Nu&&(Nu=3):pl())),null!==t.updateQueue&&(t.flags|=4),gs(t),null);case 4:return ta(),null===e&&qr(t.stateNode.containerInfo),gs(t),null;case 10:return Qi(t.type._context),gs(t),null;case 19:if(Ci(ia),null===(a=t.memoizedState))return gs(t),null;if(r=0!==(128&t.flags),null===(u=a.rendering))if(r)ms(a,!1);else{if(0!==Nu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=oa(e))){for(t.flags|=128,ms(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Si(ia,1&ia.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Bu&&(t.flags|=128,r=!0,ms(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=oa(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ms(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!jo)return gs(t),null}else 2*Xe()-a.renderingStartTime>Bu&&1073741824!==n&&(t.flags|=128,r=!0,ms(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ia.current,Si(ia,r?1&n|2:1&n),t):(gs(t),null);case 22:case 23:return cl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Au)&&(gs(t),6&t.subtreeFlags&&(t.flags|=8192)):gs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}us=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ls=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Jo(Qo.current);var o,a=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),a=[];break;case"select":i=D({},i,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ge(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&u[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!==typeof l&&"number"!==typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Br("scroll",e),a||u===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},cs=function(e,t,n,r){n!==r&&(t.flags|=4)};var ws=w.ReactCurrentOwner,ks=!1;function xs(e,t,n,r){t.child=null===e?$o(t,null,n,r):Go(t,e.child,n,r)}function _s(e,t,n,r,i){n=n.render;var o=t.ref;return Zi(t,i),r=wa(e,t,n,r,o,i),n=ka(),null===e||ks?(jo&&n&&Ao(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Es(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Nl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Pl(o,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(ks=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(ks=!0)}}return Ts(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Si(Iu,Au),Au|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Si(Iu,Au),Au|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Si(Iu,Au),Au|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Si(Iu,Au),Au|=r;return xs(e,t,i,n),t.child}function Os(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,i){var o=Pi(n)?Ii:Ti.current;return o=Ni(t,o),Zi(t,i),n=wa(e,t,n,r,o,i),r=ka(),null===e||ks?(jo&&r&&Ao(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function As(e,t,n,r,i){if(Pi(n)){var o=!0;Mi(t)}else o=!1;if(Zi(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),vo(t,n,r),mo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=Ji(l):l=Ni(t,l=Pi(n)?Ii:Ti.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&yo(t,a,r,l),to=!1;var h=t.memoizedState;a.state=h,uo(t,r,a,i),u=t.memoizedState,s!==r||h!==u||Ai.current||to?("function"===typeof c&&(fo(t,n,c,r),u=t.memoizedState),(s=to||po(t,n,s,r,h,u,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ro(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Hi(t.type,s),a.props=l,f=t.pendingProps,h=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=Ji(u):u=Ni(t,u=Pi(n)?Ii:Ti.current);var d=n.getDerivedStateFromProps;(c="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||h!==u)&&yo(t,a,r,u),to=!1,h=t.memoizedState,a.state=h,uo(t,r,a,i);var p=t.memoizedState;s!==f||h!==p||Ai.current||to?("function"===typeof d&&(fo(t,n,d,r),p=t.memoizedState),(l=to||po(t,n,l,r,h,p,u)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Is(e,t,n,r,o,i)}function Is(e,t,n,r,i,o){Os(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Di(t,n,!1),Hs(e,t,o);r=t.stateNode,ws.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Go(t,e.child,null,o),t.child=Go(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,i&&Di(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),ea(e,t.containerInfo)}function Ps(e,t,n,r,i){return Vo(),qo(i),t.flags|=256,xs(e,t,n,r),t.child}var js={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function Ms(e,t,n){var r,i=t.pendingProps,a=ia.current,s=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Si(ia,1&a),null===e)return Fo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(a=i.children,e=i.fallback,s?(i=t.mode,s=t.child,a={mode:"hidden",children:a},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=a):s=Ll(a,i,0,null),e=Rl(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=js,e):Ds(t,a));if(null!==(a=e.memoizedState)){if(null!==(r=a.dehydrated)){if(u)return 256&t.flags?(t.flags&=-257,Us(e,t,n,Error(o(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=i.fallback,a=t.mode,i=Ll({mode:"visible",children:i.children},a,0,null),(s=Rl(s,a,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,0!==(1&t.mode)&&Go(t,e.child,null,n),t.child.memoizedState=Rs(n),t.memoizedState=js,s);if(0===(1&t.mode))t=Us(e,t,n,null);else if("$!"===r.data)t=Us(e,t,n,Error(o(419)));else if(i=0!==(n&e.childLanes),ks||i){if(null!==(i=Su)){switch(n&-n){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(i=0!==(s&(i.suspendedLanes|n))?0:s)&&i!==a.retryLane&&(a.retryLane=i,Ju(e,i,-1))}pl(),t=Us(e,t,n,Error(o(421)))}else"$?"===r.data?(t.flags|=128,t.child=e.child,t=Sl.bind(null,e),r._reactRetry=t,t=null):(n=a.treeContext,Po=li(r.nextSibling),No=t,jo=!0,Ro=null,null!==n&&(xo[_o++]=Co,xo[_o++]=So,xo[_o++]=Eo,Co=n.id,So=n.overflow,Eo=t),(t=Ds(t,t.pendingProps.children)).flags|=4096);return t}return s?(i=Bs(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?Rs(n):Ls(a,n),s.childLanes=e.childLanes&~n,t.memoizedState=js,i):(n=Fs(e,t,i.children,n),t.memoizedState=null,n)}return s?(i=Bs(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?Rs(n):Ls(a,n),s.childLanes=e.childLanes&~n,t.memoizedState=js,i):(n=Fs(e,t,i.children,n),t.memoizedState=null,n)}function Ds(e,t){return(t=Ll({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){var i=e.child;return e=i.sibling,n=Pl(i,{mode:"visible",children:n}),0===(1&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Bs(e,t,n,r,i){var o=t.mode,a=(e=e.child).sibling,s={mode:"hidden",children:n};return 0===(1&o)&&t.child!==e?((n=t.child).childLanes=0,n.pendingProps=s,t.deletions=null):(n=Pl(e,s)).subtreeFlags=14680064&e.subtreeFlags,null!==a?r=Pl(a,r):(r=Rl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Us(e,t,n,r){return null!==r&&qo(r),Go(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Xi(e.return,t,n)}function qs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function zs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=ia.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vs(e,n,t);else if(19===e.tag)Vs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Si(ia,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===oa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),qs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===oa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}qs(t,!0,n,null,o);break;case"together":qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ju|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Pl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){switch(Io(t),t.tag){case 1:return Pi(t.type)&&ji(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ta(),Ci(Ai),Ci(Ti),sa(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ra(t),null;case 13:if(Ci(ia),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));Vo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(ia),null;case 4:return ta(),null;case 10:return Qi(t.type._context),null;case 22:case 23:return cl(),null;default:return null}}var Ks=!1,Gs=!1,$s="function"===typeof WeakSet?WeakSet:Set,Ys=null;function Qs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){_l(e,t,r)}else n.current=null}function Xs(e,t,n){try{n()}catch(r){_l(e,t,r)}}var Zs=!1;function Js(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Xs(t,n,o)}i=i.next}while(i!==r)}}function eu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function nu(e){var t=e.alternate;null!==t&&(e.alternate=null,nu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[di],delete t[vi],delete t[yi],delete t[mi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ru(e){return 5===e.tag||3===e.tag||4===e.tag}function iu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ru(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ou(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ou(e,t,n),e=e.sibling;null!==e;)ou(e,t,n),e=e.sibling}function au(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(au(e,t,n),e=e.sibling;null!==e;)au(e,t,n),e=e.sibling}var su=null,uu=!1;function lu(e,t,n){for(n=n.child;null!==n;)cu(e,t,n),n=n.sibling}function cu(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Gs||Qs(n,t);case 6:var r=su,i=uu;su=null,lu(e,t,n),uu=i,null!==(su=r)&&(uu?(e=su,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):su.removeChild(n.stateNode));break;case 18:null!==su&&(uu?(e=su,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),qt(e)):ui(su,n.stateNode));break;case 4:r=su,i=uu,su=n.stateNode.containerInfo,uu=!0,lu(e,t,n),su=r,uu=i;break;case 0:case 11:case 14:case 15:if(!Gs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&Xs(n,t,a),i=i.next}while(i!==r)}lu(e,t,n);break;case 1:if(!Gs&&(Qs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){_l(n,t,s)}lu(e,t,n);break;case 21:lu(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,lu(e,t,n),Gs=r):lu(e,t,n);break;default:lu(e,t,n)}}function fu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new $s),t.forEach((function(t){var r=Ol.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:su=u.stateNode,uu=!1;break e;case 3:case 4:su=u.stateNode.containerInfo,uu=!0;break e}u=u.return}if(null===su)throw Error(o(160));cu(a,s,i),su=null,uu=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(c){_l(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)du(t,e),t=t.sibling}function du(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hu(t,e),pu(e),4&r){try{Js(3,e,e.return),eu(3,e)}catch(v){_l(e,e.return,v)}try{Js(5,e,e.return)}catch(v){_l(e,e.return,v)}}break;case 1:hu(t,e),pu(e),512&r&&null!==n&&Qs(n,n.return);break;case 5:if(hu(t,e),pu(e),512&r&&null!==n&&Qs(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(v){_l(e,e.return,v)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===a.type&&null!=a.name&&X(i,a),be(u,s);var c=be(u,a);for(s=0;s<l.length;s+=2){var f=l[s],h=l[s+1];"style"===f?ye(i,h):"dangerouslySetInnerHTML"===f?fe(i,h):"children"===f?he(i,h):b(i,f,h,c)}switch(u){case"input":Z(i,a);break;case"textarea":oe(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):d!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[di]=a}catch(v){_l(e,e.return,v)}}break;case 6:if(hu(t,e),pu(e),4&r){if(null===e.stateNode)throw Error(o(162));c=e.stateNode,f=e.memoizedProps;try{c.nodeValue=f}catch(v){_l(e,e.return,v)}}break;case 3:if(hu(t,e),pu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(v){_l(e,e.return,v)}break;case 4:default:hu(t,e),pu(e);break;case 13:hu(t,e),pu(e),8192&(c=e.child).flags&&null!==c.memoizedState&&(null===c.alternate||null===c.alternate.memoizedState)&&(Fu=Xe()),4&r&&fu(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(f=Gs)||c,hu(t,e),Gs=f):hu(t,e),pu(e),8192&r){f=null!==e.memoizedState;e:for(h=null,d=e;;){if(5===d.tag){if(null===h){h=d;try{i=d.stateNode,f?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,s=void 0!==(l=d.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,u.style.display=ve("display",s))}catch(v){_l(e,e.return,v)}}}else if(6===d.tag){if(null===h)try{d.stateNode.nodeValue=f?"":d.memoizedProps}catch(v){_l(e,e.return,v)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}if(f&&!c&&0!==(1&e.mode))for(Ys=e,e=e.child;null!==e;){for(c=Ys=e;null!==Ys;){switch(h=(f=Ys).child,f.tag){case 0:case 11:case 14:case 15:Js(4,f,f.return);break;case 1:if(Qs(f,f.return),"function"===typeof(a=f.stateNode).componentWillUnmount){d=f,p=f.return;try{i=d,a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(v){_l(d,p,v)}}break;case 5:Qs(f,f.return);break;case 22:if(null!==f.memoizedState){gu(c);continue}}null!==h?(h.return=f,Ys=h):gu(c)}e=e.sibling}}break;case 19:hu(t,e),pu(e),4&r&&fu(e);case 21:}}function pu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ru(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),au(e,iu(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ou(e,iu(e),a);break;default:throw Error(o(161))}}catch(s){_l(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vu(e,t,n){Ys=e,yu(e,t,n)}function yu(e,t,n){for(var r=0!==(1&e.mode);null!==Ys;){var i=Ys,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Gs;s=Ks;var l=Gs;if(Ks=a,(Gs=u)&&!l)for(Ys=i;null!==Ys;)u=(a=Ys).child,22===a.tag&&null!==a.memoizedState?bu(i):null!==u?(u.return=a,Ys=u):bu(i);for(;null!==o;)Ys=o,yu(o,t,n),o=o.sibling;Ys=i,Ks=s,Gs=l}mu(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Ys=o):mu(e)}}function mu(e){for(;null!==Ys;){var t=Ys;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Gs||eu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Hi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&lo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}lo(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var h=f.dehydrated;null!==h&&qt(h)}}}break;default:throw Error(o(163))}Gs||512&t.flags&&tu(t)}catch(d){_l(t,t.return,d)}}if(t===e){Ys=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ys=n;break}Ys=t.return}}function gu(e){for(;null!==Ys;){var t=Ys;if(t===e){Ys=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ys=n;break}Ys=t.return}}function bu(e){for(;null!==Ys;){var t=Ys;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{eu(4,t)}catch(u){_l(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(u){_l(t,i,u)}}var o=t.return;try{tu(t)}catch(u){_l(t,o,u)}break;case 5:var a=t.return;try{tu(t)}catch(u){_l(t,a,u)}}}catch(u){_l(t,t.return,u)}if(t===e){Ys=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Ys=s;break}Ys=t.return}}var wu,ku=Math.ceil,xu=w.ReactCurrentDispatcher,_u=w.ReactCurrentOwner,Eu=w.ReactCurrentBatchConfig,Cu=0,Su=null,Ou=null,Tu=0,Au=0,Iu=Ei(0),Nu=0,Pu=null,ju=0,Ru=0,Lu=0,Mu=null,Du=null,Fu=0,Bu=1/0,Uu=null,Vu=!1,qu=null,zu=null,Hu=!1,Wu=null,Ku=0,Gu=0,$u=null,Yu=-1,Qu=0;function Xu(){return 0!==(6&Cu)?Xe():-1!==Yu?Yu:Yu=Xe()}function Zu(e){return 0===(1&e.mode)?1:0!==(2&Cu)&&0!==Tu?Tu&-Tu:null!==zi.transition?(0===Qu&&(Qu=vt()),Qu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function Ju(e,t,n){if(50<Gu)throw Gu=0,$u=null,Error(o(185));var r=el(e,t);return null===r?null:(mt(r,t,n),0!==(2&Cu)&&r===Su||(r===Su&&(0===(2&Cu)&&(Ru|=t),4===Nu&&al(r,Tu)),nl(r,n),1===t&&0===Cu&&0===(1&e.mode)&&(Bu=Xe()+500,Bi&&qi())),r)}function el(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function tl(e){return(null!==Su||null!==eo)&&0!==(1&e.mode)&&0===(2&Cu)}function nl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,u=i[a];-1===u?0!==(s&n)&&0===(s&r)||(i[a]=dt(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ht(e,e===Su?Tu:0);if(0===r)null!==n&&$e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&$e(n),1===t)0===e.tag?function(e){Bi=!0,Vi(e)}(sl.bind(null,e)):Vi(sl.bind(null,e)),ai((function(){0===Cu&&qi()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tl(n,rl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rl(e,t){if(Yu=-1,Qu=0,0!==(6&Cu))throw Error(o(327));var n=e.callbackNode;if(kl()&&e.callbackNode!==n)return null;var r=ht(e,e===Su?Tu:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vl(e,r);else{t=r;var i=Cu;Cu|=2;var a=dl();for(Su===e&&Tu===t||(Uu=null,Bu=Xe()+500,fl(e,t));;)try{ml();break}catch(u){hl(e,u)}Yi(),xu.current=a,Cu=i,null!==Ou?t=0:(Su=null,Tu=0,t=Nu)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=il(e,i))),1===t)throw n=Pu,fl(e,0),al(e,r),nl(e,Xe()),n;if(6===t)al(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=vl(e,r))&&(0!==(a=pt(e))&&(r=a,t=il(e,a))),1===t))throw n=Pu,fl(e,0),al(e,r),nl(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:wl(e,Du,Uu);break;case 3:if(al(e,r),(130023424&r)===r&&10<(t=Fu+500-Xe())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Xu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wl.bind(null,e,Du,Uu),t);break}wl(e,Du,Uu);break;case 4:if(al(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ku(r/1960))-r)){e.timeoutHandle=ri(wl.bind(null,e,Du,Uu),r);break}wl(e,Du,Uu);break;default:throw Error(o(329))}}}return nl(e,Xe()),e.callbackNode===n?rl.bind(null,e):null}function il(e,t){var n=Mu;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=vl(e,t))&&(t=Du,Du=n,null!==t&&ol(t)),e}function ol(e){null===Du?Du=e:Du.push.apply(Du,e)}function al(e,t){for(t&=~Lu,t&=~Ru,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sl(e){if(0!==(6&Cu))throw Error(o(327));kl();var t=ht(e,0);if(0===(1&t))return nl(e,Xe()),null;var n=vl(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=il(e,r))}if(1===n)throw n=Pu,fl(e,0),al(e,t),nl(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wl(e,Du,Uu),nl(e,Xe()),null}function ul(e,t){var n=Cu;Cu|=1;try{return e(t)}finally{0===(Cu=n)&&(Bu=Xe()+500,Bi&&qi())}}function ll(e){null!==Wu&&0===Wu.tag&&0===(6&Cu)&&kl();var t=Cu;Cu|=1;var n=Eu.transition,r=bt;try{if(Eu.transition=null,bt=1,e)return e()}finally{bt=r,Eu.transition=n,0===(6&(Cu=t))&&qi()}}function cl(){Au=Iu.current,Ci(Iu)}function fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Ou)for(n=Ou.return;null!==n;){var r=n;switch(Io(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&ji();break;case 3:ta(),Ci(Ai),Ci(Ti),sa();break;case 5:ra(r);break;case 4:ta();break;case 13:case 19:Ci(ia);break;case 10:Qi(r.type._context);break;case 22:case 23:cl()}n=n.return}if(Su=e,Ou=e=Pl(e.current,null),Tu=Au=t,Nu=0,Pu=null,Lu=Ru=ju=0,Du=Mu=null,null!==eo){for(t=0;t<eo.length;t++)if(null!==(r=(n=eo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}eo=null}return e}function hl(e,t){for(;;){var n=Ou;try{if(Yi(),ua.current=ns,pa){for(var r=fa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}pa=!1}if(ca=0,da=ha=fa=null,va=!1,ya=0,_u.current=null,null===n||null===n.return){Nu=1,Pu=t,Ou=null;break}e:{var a=e,s=n.return,u=n,l=t;if(t=Tu,u.flags|=32768,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l,f=u,h=f.tag;if(0===(1&f.mode)&&(0===h||11===h||15===h)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,ys(p,s,u,0,t),1&p.mode&&ps(a,c,t),l=c;var v=(t=p).updateQueue;if(null===v){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}if(0===(1&t)){ps(a,c,t),pl();break e}l=Error(o(426))}else if(jo&&1&u.mode){var m=vs(s);if(null!==m){0===(65536&m.flags)&&(m.flags|=256),ys(m,s,u,0,t),qo(l);break e}}a=l,4!==Nu&&(Nu=2),null===Mu?Mu=[a]:Mu.push(a),l=as(l,u),u=s;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t,so(u,hs(0,l,t));break e;case 1:a=l;var g=u.type,b=u.stateNode;if(0===(128&u.flags)&&("function"===typeof g.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===zu||!zu.has(b)))){u.flags|=65536,t&=-t,u.lanes|=t,so(u,ds(u,a,t));break e}}u=u.return}while(null!==u)}bl(n)}catch(w){t=w,Ou===n&&null!==n&&(Ou=n=n.return);continue}break}}function dl(){var e=xu.current;return xu.current=ns,null===e?ns:e}function pl(){0!==Nu&&3!==Nu&&2!==Nu||(Nu=4),null===Su||0===(268435455&ju)&&0===(268435455&Ru)||al(Su,Tu)}function vl(e,t){var n=Cu;Cu|=2;var r=dl();for(Su===e&&Tu===t||(Uu=null,fl(e,t));;)try{yl();break}catch(i){hl(e,i)}if(Yi(),Cu=n,xu.current=r,null!==Ou)throw Error(o(261));return Su=null,Tu=0,Nu}function yl(){for(;null!==Ou;)gl(Ou)}function ml(){for(;null!==Ou&&!Ye();)gl(Ou)}function gl(e){var t=wu(e.alternate,e,Au);e.memoizedProps=e.pendingProps,null===t?bl(e):Ou=t,_u.current=null}function bl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=bs(n,t,Au)))return void(Ou=n)}else{if(null!==(n=Ws(n,t)))return n.flags&=32767,void(Ou=n);if(null===e)return Nu=6,void(Ou=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ou=t);Ou=t=e}while(null!==t);0===Nu&&(Nu=5)}function wl(e,t,n){var r=bt,i=Eu.transition;try{Eu.transition=null,bt=1,function(e,t,n,r){do{kl()}while(null!==Wu);if(0!==(6&Cu))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Su&&(Ou=Su=null,Tu=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Hu||(Hu=!0,Tl(tt,(function(){return kl(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Eu.transition,Eu.transition=null;var s=bt;bt=1;var u=Cu;Cu|=4,_u.current=null,function(e,t){if(ei=Ht,dr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,u=-1,l=-1,c=0,f=0,h=e,d=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(u=s+i),h!==a||0!==r&&3!==h.nodeType||(l=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)d=h,h=p;for(;;){if(h===e)break t;if(d===n&&++c===i&&(u=s),d===a&&++f===r&&(l=s),null!==(p=h.nextSibling))break;d=(h=d).parentNode}h=p}n=-1===u||-1===l?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Ys=t;null!==Ys;)if(e=(t=Ys).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ys=e;else for(;null!==Ys;){t=Ys;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var y=v.memoizedProps,m=v.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Hi(t.type,y),m);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;if(1===w.nodeType)w.textContent="";else if(9===w.nodeType){var k=w.body;null!=k&&(k.textContent="")}break;default:throw Error(o(163))}}catch(x){_l(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Ys=e;break}Ys=t.return}v=Zs,Zs=!1}(e,n),du(n,e),pr(ti),Ht=!!ei,ti=ei=null,e.current=n,vu(n,e,i),Qe(),Cu=u,bt=s,Eu.transition=a}else e.current=n;if(Hu&&(Hu=!1,Wu=e,Ku=i),0===(a=e.pendingLanes)&&(zu=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),nl(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r(t[n]);if(Vu)throw Vu=!1,e=qu,qu=null,e;0!==(1&Ku)&&0!==e.tag&&kl(),0!==(1&(a=e.pendingLanes))?e===$u?Gu++:(Gu=0,$u=e):Gu=0,qi()}(e,t,n,r)}finally{Eu.transition=i,bt=r}return null}function kl(){if(null!==Wu){var e=wt(Ku),t=Eu.transition,n=bt;try{if(Eu.transition=null,bt=16>e?16:e,null===Wu)var r=!1;else{if(e=Wu,Wu=null,Ku=0,0!==(6&Cu))throw Error(o(331));var i=Cu;for(Cu|=4,Ys=e.current;null!==Ys;){var a=Ys,s=a.child;if(0!==(16&Ys.flags)){var u=a.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(Ys=c;null!==Ys;){var f=Ys;switch(f.tag){case 0:case 11:case 15:Js(8,f,a)}var h=f.child;if(null!==h)h.return=f,Ys=h;else for(;null!==Ys;){var d=(f=Ys).sibling,p=f.return;if(nu(f),f===c){Ys=null;break}if(null!==d){d.return=p,Ys=d;break}Ys=p}}}var v=a.alternate;if(null!==v){var y=v.child;if(null!==y){v.child=null;do{var m=y.sibling;y.sibling=null,y=m}while(null!==y)}}Ys=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Ys=s;else e:for(;null!==Ys;){if(0!==(2048&(a=Ys).flags))switch(a.tag){case 0:case 11:case 15:Js(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Ys=g;break e}Ys=a.return}}var b=e.current;for(Ys=b;null!==Ys;){var w=(s=Ys).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Ys=w;else e:for(s=b;null!==Ys;){if(0!==(2048&(u=Ys).flags))try{switch(u.tag){case 0:case 11:case 15:eu(9,u)}}catch(x){_l(u,u.return,x)}if(u===s){Ys=null;break e}var k=u.sibling;if(null!==k){k.return=u.return,Ys=k;break e}Ys=u.return}}if(Cu=i,qi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(x){}r=!0}return r}finally{bt=n,Eu.transition=t}}return!1}function xl(e,t,n){oo(e,t=hs(0,t=as(n,t),1)),t=Xu(),null!==(e=el(e,1))&&(mt(e,1,t),nl(e,t))}function _l(e,t,n){if(3===e.tag)xl(e,e,n);else for(;null!==t;){if(3===t.tag){xl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===zu||!zu.has(r))){oo(t,e=ds(t,e=as(n,e),1)),e=Xu(),null!==(t=el(t,1))&&(mt(t,1,e),nl(t,e));break}}t=t.return}}function El(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Xu(),e.pingedLanes|=e.suspendedLanes&n,Su===e&&(Tu&n)===n&&(4===Nu||3===Nu&&(130023424&Tu)===Tu&&500>Xe()-Fu?fl(e,0):Lu|=n),nl(e,t)}function Cl(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=Xu();null!==(e=el(e,t))&&(mt(e,t,n),nl(e,n))}function Sl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cl(e,n)}function Ol(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Cl(e,n)}function Tl(e,t){return Ge(e,t)}function Al(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Il(e,t,n,r){return new Al(e,t,n,r)}function Nl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pl(e,t){var n=e.alternate;return null===n?((n=Il(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Nl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case _:return Rl(n.children,i,a,t);case E:s=8,i|=8;break;case C:return(e=Il(12,n,t,2|i)).elementType=C,e.lanes=a,e;case A:return(e=Il(13,n,t,i)).elementType=A,e.lanes=a,e;case I:return(e=Il(19,n,t,i)).elementType=I,e.lanes=a,e;case j:return Ll(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case O:s=9;break e;case T:s=11;break e;case N:s=14;break e;case P:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Il(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Rl(e,t,n,r){return(e=Il(7,e,r,t)).lanes=n,e}function Ll(e,t,n,r){return(e=Il(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={},e}function Ml(e,t,n){return(e=Il(6,e,null,t)).lanes=n,e}function Dl(e,t,n){return(t=Il(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bl(e,t,n,r,i,o,a,s,u){return e=new Fl(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Il(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},no(o),e}function Ul(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Vl(e){if(!e)return Oi;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Pi(n))return Li(e,n,t)}return t}function ql(e,t,n,r,i,o,a,s,u){return(e=Bl(n,r,!0,e,0,o,0,s,u)).context=Vl(null),n=e.current,(o=io(r=Xu(),i=Zu(n))).callback=void 0!==t&&null!==t?t:null,oo(n,o),e.current.lanes=i,mt(e,i,r),nl(e,r),e}function zl(e,t,n,r){var i=t.current,o=Xu(),a=Zu(i);return n=Vl(n),null===t.context?t.context=n:t.pendingContext=n,(t=io(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),oo(i,t),null!==(e=Ju(i,a,o))&&ao(e,i,a),a}function Hl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kl(e,t){Wl(e,t),(e=e.alternate)&&Wl(e,t)}wu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)ks=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ks=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),Vo();break;case 5:na(t);break;case 1:Pi(t.type)&&Mi(t);break;case 4:ea(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Si(Wi,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Si(ia,1&ia.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ms(e,t,n):(Si(ia,1&ia.current),null!==(e=Hs(e,t,n))?e.sibling:null);Si(ia,1&ia.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return zs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Si(ia,ia.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);ks=0!==(131072&e.flags)}else ks=!1,jo&&0!==(1048576&t.flags)&&To(t,ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=Ni(t,Ti.current);Zi(t,n),i=wa(null,t,r,e,i,n);var a=ka();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,no(t),i.updater=ho,t.stateNode=i,i._reactInternals=t,mo(t,r,e,n),t=Is(null,t,r,!0,a,n)):(t.tag=0,jo&&a&&Ao(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Nl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===N)return 14}return 2}(r),e=Hi(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=Es(null,t,r,Hi(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ts(e,t,r,i=t.elementType===r?i:Hi(r,i),n);case 1:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:Hi(r,i),n);case 3:e:{if(Ns(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,ro(e,t),uo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,i=Error(o(423)));break e}if(r!==i){t=Ps(e,t,r,n,i=Error(o(424)));break e}for(Po=li(t.stateNode.containerInfo.firstChild),No=t,jo=!0,Ro=null,n=$o(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Vo(),r===i){t=Hs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return na(t),null===e&&Fo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Os(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&Fo(t),null;case 13:return Ms(e,t,n);case 4:return ea(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Go(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,_s(e,t,r,i=t.elementType===r?i:Hi(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Si(Wi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ai.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=io(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Xi(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Xi(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Zi(t,n),r=r(i=Ji(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=Hi(r=t.type,t.pendingProps),Es(e,t,r,i=Hi(r.type,i),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Pi(r)?(e=!0,Mi(t)):e=!1,Zi(t,n),vo(t,r,i),mo(t,r,i,n),Is(null,t,r,!0,e,n);case 19:return zs(e,t,n);case 22:return Ss(e,t,n)}throw Error(o(156,t.tag))};var Gl="function"===typeof reportError?reportError:function(e){console.error(e)};function $l(e){this._internalRoot=e}function Yl(e){this._internalRoot=e}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zl(){}function Jl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hl(a);s.call(e)}}zl(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hl(a);o.call(e)}}var a=ql(t,r,e,0,null,!1,0,"",Zl);return e._reactRootContainer=a,e[pi]=a.current,qr(8===e.nodeType?e.parentNode:e),ll(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Hl(u);s.call(e)}}var u=Bl(e,0,!1,null,0,!1,0,"",Zl);return e._reactRootContainer=u,e[pi]=u.current,qr(8===e.nodeType?e.parentNode:e),ll((function(){zl(t,u,n,r)})),u}(n,t,e,i,r);return Hl(a)}Yl.prototype.render=$l.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));zl(e,t,null,null)},Yl.prototype.unmount=$l.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ll((function(){zl(null,e,null,null)})),t[pi]=null}},Yl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Dt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),nl(t,Xe()),0===(6&Cu)&&(Bu=Xe()+500,qi()))}break;case 13:var r=Xu();ll((function(){return Ju(e,1,r)})),Kl(e,1)}},xt=function(e){13===e.tag&&(Ju(e,134217728,Xu()),Kl(e,134217728))},_t=function(e){if(13===e.tag){var t=Xu(),n=Zu(e);Ju(e,n,t),Kl(e,n)}},Et=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ki(r);if(!i)throw Error(o(90));G(r),Z(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=ul,Ae=ll;var ec={usingClientEntryPoint:!1,Events:[bi,wi,ki,Se,Oe,ul]},tc={findFiberByHostInstance:gi,bundleType:0,version:"18.1.0",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.1.0-next-22edb9f77-20220426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}
2t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ql(t))throw Error(o(200));return Ul(e,t,null,n)},t.createRoot=function(e,t){if(!Ql(e))throw Error(o(299));var n=!1,r="",i=Gl;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bl(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,qr(8===e.nodeType?e.parentNode:e),new $l(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return ll(e)},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(o(200));return Jl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ql(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Gl;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=ql(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,qr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yl(t)},t.render=function(e,t,n){if(!Xl(t))throw Error(o(200));return Jl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(o(40));return!!e._reactRootContainer&&(ll((function(){Jl(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=ul,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Jl(e,t,n,!1,r)},t.version="18.1.0-next-22edb9f77-20220426"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},77:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,l,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(!o(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;for(c=e.entries();!(u=c.next()).done;)if(!o(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!e.$$typeof)&&!o(e[l[u]],a[l[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},1372:function(e,t){"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,u=60110,l=60112,c=60113,f=60120,h=60115,d=60116,p=60121,v=60122,y=60117,m=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),l=b("react.forward_ref"),c=b("react.suspense"),f=b("react.suspense_list"),h=b("react.memo"),d=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),y=b("react.fundamental"),m=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case c:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case d:case h:case s:return e;default:return t}}case r:return t}}}t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===a||e===m||e===o||e===c||e===f||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===h||e.$$typeof===s||e.$$typeof===u||e.$$typeof===l||e.$$typeof===y||e.$$typeof===p||e[0]===v)},t.typeOf=w},7441:function(e,t,n){"use strict";e.exports=n(1372)},4536:function(e,t,n){e.exports=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e),i=n(t);function o(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)}}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){if(t&&("object"===s(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)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var c,f,h,d,p={exports:{}};function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}p.exports=function(){if(d)return h;d=1;var e=f?c:(f=1,c="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,h=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var y,m,g,b=function(e){!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&&a(e,t)}(u,e);var t,n,r,s=v(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).container=null,t.window=null,t.windowCheckerInterval=null,t.released=!1,t.state={mounted:!1},t}return t=u,(n=[{key:"render",value:function(){return this.state.mounted?i.default.createPortal(this.props.children,this.container):null}},{key:"componentDidMount",value:function(){this.window||this.container||(this.openChild(),this.setState({mounted:!0}))}},{key:"openChild",value:function(){var e,t=this,n=this.props,r=n.url,i=n.title,o=n.name,a=n.features,s=n.onBlock,u=n.onOpen,l=n.center;if("string"!=typeof l||void 0!==a.width&&void 0!==a.height){if("parent"===l)a.left=window.top.outerWidth/2+window.top.screenX-a.width/2,a.top=window.top.outerHeight/2+window.top.screenY-a.height/2;else if("screen"===l){var c=void 0!==window.screenLeft?window.screenLeft:window.screen.left,f=void 0!==window.screenTop?window.screenTop:window.screen.top,h=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,d=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height;a.left=h/2-a.width/2+c,a.top=d/2-a.height/2+f}}else console.warn("width and height window features must be present when a center prop is provided");if(this.window=window.open(r,o,(e=a,Object.keys(e).reduce((function(t,n){var r=e[n];return"boolean"==typeof r?t.push("".concat(n,"=").concat(r?"yes":"no")):t.push("".concat(n,"=").concat(r)),t}),[]).join(","))),this.container=this.window.document.createElement("div"),this.windowCheckerInterval=setInterval((function(){t.window&&!t.window.closed||t.release()}),50),this.window){if(this.window.document.title=i,this.container=this.window.document.getElementById("new-window-container"),null===this.container)this.container=this.window.document.createElement("div"),this.container.setAttribute("id","new-window-container"),this.window.document.body.appendChild(this.container);else{var p=this.window.document.getElementById("new-window-container-static");this.window.document.body.removeChild(p)}this.props.copyStyles&&setTimeout((function(){return e=document,n=t.window.document,r=n.createDocumentFragment(),Array.from(e.styleSheets).forEac
2h((function(e){var t;try{t=e.cssRules}catch(e){console.error(e)}if(t){var i=[];Array.from(e.cssRules).forEach((function(e){var t=e.type;if(t!==CSSRule.UNKNOWN_RULE){var n="";n=t===CSSRule.KEYFRAMES_RULE?function(e){var t=["@keyframes",e.name,"{"];return Array.from(e.cssRules).forEach((function(e){t.push(e.keyText,"{",e.style.cssText,"}")})),t.push("}"),t.join(" ")}(e):[CSSRule.IMPORT_RULE,CSSRule.FONT_FACE_RULE].includes(t)?function(e){return e.cssText.split("url(").map((function(e){return"/"===e[1]?"".concat(e.slice(0,1)).concat(window.location.origin).concat(e.slice(1)):e})).join("url(")}(e):e.cssText,i.push(n)}}));var o=n.createElement("style");o.textContent=i.join("\n"),r.appendChild(o)}else if(e.href){var a=n.createElement("link");a.rel="stylesheet",a.href=e.href,r.appendChild(a)}})),void n.head.appendChild(r);var e,n,r}),0),"function"==typeof u&&u(this.window),this.window.addEventListener("beforeunload",(function(){return t.release()}))}else"function"==typeof s?s(null):console.warn("A new window could not be opened. Maybe it was blocked.")}},{key:"componentWillUnmount",value:function(){if(this.state.mounted&&this.window)if(this.props.closeOnUnmount)this.window.close();else if(this.props.children){var e=this.container.cloneNode(!0);e.setAttribute("id","new-window-container-static"),this.window.document.body.appendChild(e)}}},{key:"release",value:function(){if(!this.released){this.released=!0,clearInterval(this.windowCheckerInterval);var e=this.props.onUnload;"function"==typeof e&&e(null)}}}])&&o(t.prototype,n),r&&o(t,r),u}(r.default.PureComponent);return g={url:"",name:"",title:"",features:{width:"600px",height:"640px"},onBlock:null,onOpen:null,onUnload:null,center:"parent",copyStyles:!0,closeOnUnmount:!0},(m="defaultProps")in(y=b)?Object.defineProperty(y,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[m]=g,b.propTypes={children:p.exports.node,url:p.exports.string,name:p.exports.string,title:p.exports.string,features:p.exports.object,onUnload:p.exports.func,onBlock:p.exports.func,onOpen:p.exports.func,center:p.exports.oneOf(["parent","screen"]),copyStyles:p.exports.bool,closeOnUnmount:p.exports.bool},b}(n(2791),n(4164))},6770:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=a(n(2791)),u=a(n(4164)),l=a(n(8111)),c=a(n(6921)),f=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,i){var o,a,s,u;"text-change"===e?null===(a=(o=n).onEditorChangeText)||void 0===a||a.call(o,n.editor.root.innerHTML,t,i,n.unprivilegedEditor):"selection-change"===e&&(null===(u=(s=n).onEditorChangeSelection)||void 0===u||u.call(s,t,i,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!==r&&void 0!==r?r:"",n}return r(t,e),t.prototype.validateProps=function(e){var t;if(s.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(s.default.Children.count(e.children)&&"textarea"===(null===(t=s.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;
vendor: 5,107 bytes, line 2
2if("value"in e){var i=this.getEditorContents(),a=null!==(n=e.value)&&void 0!==n?n:"";this.isEqualValue(a,i)||this.setEditorContents(this.editor,a)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),o(this.cleanProps,this.dirtyProps).some((function(t){return!l.default(e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!l.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var o=this.regenerationSnapshot,a=(r=o.delta,o.selection);delete this.regenerationSnapshot,this.instantiateEditor();var s=this.editor;s.setContents(r),h((function(){return n.setEditorSelection(s,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new c.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?l.default(e.ops,t.ops):l.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"===typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),h((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=u.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return s.default.Children.count(n)?s.default.cloneElement(s.default.Children.only(n),o):r?s.default.createElement("pre",i({},o)):s.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return s.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!==e&&void 0!==e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var i,o;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(o=(i=this.props).onChange)||void 0===o||o.call(i,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,i,o,a,s,u;if(this.editor){var c=this.getEditorSelection(),f=!c&&e,h=c&&!e;l.default(e,c)||(this.selection=e,null===(i=(r=this.props).onChangeSelection)||void 0===i||i.call(r,e,t,n),f?null===(a=(o=this.props).onFocus)||void 0===a||a.call(o,e,t,n):h&&(null===(u=(s=this.props).onBlur)||void 0===u||u.call(s,c,t,n)))}}
vendor: 4,576 bytes, line 2
2,t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=c.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(s.default.Component);function h(e){Promise.resolve().then(e)}e.exports=f},6374:function(e,t,n){"use strict";var r=n(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,y={};function m(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||p}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var w=b.prototype=new g;w.constructor=b,v(w,m.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,_={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:_.current}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===o?"."+T(u,0):o,k(a)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",k(e))for(var l=0;l<e.length;l++){var c=o+T(s=e[l],l);u+=A(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=A(s=s.value,t,i,c=o+T(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function I(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},j={transition:null},R={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:j,ReactCurrentOwner:_};
2t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)x.call(t,l)&&!E.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.1.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,i=n(4689),o=(r=i)&&r.__esModule?r:{default:r},a=Object.assign||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};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},u=t.autoprefix=function(e){var t={};return(0,o.default)(e,(function(e,n){var r={};(0,o.default)(e,(function(e,t){var n=s[t];n?r=a({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=u},8438:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,i=Object.assign||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},o=n(2791),a=(r=o)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,l;s(this,r);for(var c=arguments.length,f=Array(c),h=0;h<c;h++)f[h]=arguments[h];return o=l=u(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(f))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return a.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},a.default.createElement(e,i({},l.props,l.state)))},u(l,o)}return l(r,n),r}(a.default.Component)};t.default=c},296:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,i=Object.assign||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},o=n(2791),a=(r=o)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,l;s(this,r);for(var c=arguments.length,f=Array(c),h=0;h<c;h++)f[h]=arguments[h];return o=l=u(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(f))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return a.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},a.default.createElement(e,i({},l.props,l.state)))},u(l,o)}return l(r,n),r}(a.default.Component)};t.default=c},9198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(6769)),i=s(n(4689)),o=s(n(3977)),a=s(n(2034));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,o.default)(t)?(0,i.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=u},4093:function(e,t,n){"use strict";t.tz=void 0;var r=l(n(9198)),i=l(n(8351)),o=l(n(124)),a=l(n(296)),s=l(n(8438)),u=l(n(2196));function l(e){return e&&e.__esModule?e:{default:e}}a.default,t.tz=a.default,s.default,u.default;var c=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),u=(0,i.default)(e,s);return(0,o.default)(u)};t.ZP=c},2196:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e
2%2===0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},8351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(4689)),i=a(n(8121)),o=Object.assign||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};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map((function(t){var i=e[t];return i&&(0,r.default)(i,(function(e,t){n[t]||(n[t]={}),n[t]=o({},n[t],i[t])})),t})),n};t.default=s},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],f=1,h=null,d=3,p=!1,v=!1,y=!1,m="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function k(e){if(y=!1,w(e),!v)if(null!==r(l))v=!0,j(x);else{var t=r(c);null!==t&&R(k,t.startTime-e)}}function x(e,n){v=!1,y&&(y=!1,g(S),S=-1),p=!0;var o=d;try{for(w(n),h=r(l);null!==h&&(!(h.expirationTime>n)||e&&!A());){var a=h.callback;if("function"===typeof a){h.callback=null,d=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?h.callback=s:h===r(l)&&i(l),w(n)}else i(l);h=r(l)}if(null!==h)var u=!0;else{var f=r(c);null!==f&&R(k,f.startTime-n),u=!1}return u}finally{h=null,d=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,C=null,S=-1,O=5,T=-1;function A(){return!(t.unstable_now()-T<O)}function I(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?_():(E=!1,C=null)}}else E=!1}if("function"===typeof b)_=function(){b(I)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,P=N.port2;N.port1.onmessage=I,_=function(){P.postMessage(null)}}else _=function(){m(I,0)};function j(e){C=e,E||(E=!0,_())}function R(e,n){S=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,j(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(l)&&e===r(c)&&(y?(g(S),S=-1):y=!0,R(k,o-a))):(e.sortIndex=s,n(l,e),v||p||(v=!0,j(x))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},9613:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;
vendor: 5,051 bytes, line 2
2if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var l=o[u];if(!s(l))return!1;var c=e[l],f=t[l];if(!1===(i=n?n.call(r,c,f,l):void 0)||void 0===i&&c!==f)return!1}return!0}},7061:function(e,t,n){var r=n(8698).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(N){f=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),s=new T(r||[]);return a(o,"_invoke",{value:E(e,n,s)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}t.wrap=h;var p={};function v(){}function y(){}function m(){}var g={};f(g,u,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(A([])));w&&w!==n&&o.call(w,u)&&(g=w);var k=m.prototype=v.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,a,s,u){var l=d(e[i],e,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==r(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,u)}))}u(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return y.prototype=m,a(k,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=f(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,f(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(_.prototype),f(_.prototype,l,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(h(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),f(k,c,"Generator"),f(k,u,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(O),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:function(e,t,n){var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(o,a),o}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){"use strict";var e={};n.r(e),n.d(e,{ADD_MODEL:function(){return Bd},ALLNOTES:function(){return Dd},CREATE_MODEL:function(){return Ud},EDIT_MODEL:function(){return Vd},HOME:function(){return Rd},SINGIN:function(){return Md},SINGUP:function(){return Ld},VIEWER:function(){return Fd}});var t=n(2791),r=n.t(t,2),i=n(1250);function o(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"===typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var a={};function s(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:a}var u=Object.assign,l=Object.getOwnPropertyDescriptor,c=Object.defineProperty,f=Object.prototype,h=[];Object.freeze(h);var d={};Object.freeze(d);var p="undefined"!==typeof Proxy,v=Object.toString();function y(){p||o("Proxy not available")}function m(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function b(e){return"function"===typeof e}function w(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function k(e){return null!==e&&"object"===typeof e}function x(e){if(!k(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"===typeof n&&n.toString()===v}function _(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function E(e,t,n){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}
2function C(e,t,n){c(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function S(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return k(e)&&!0===e[n]}}function O(e){return e instanceof Map}function T(e){return e instanceof Set}var A="undefined"!==typeof Object.getOwnPropertySymbols;var I="undefined"!==typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:A?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function N(e){return null===e?null:"object"===typeof e?""+e:e}function P(e,t){return f.hasOwnProperty.call(e,t)}var j=Object.getOwnPropertyDescriptors||function(e){var t={};return I(e).forEach((function(n){t[n]=l(e,n)})),t};function R(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,q(r.key),r)}}function L(e,t,n){return t&&R(e.prototype,t),n&&R(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(){return M=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},M.apply(this,arguments)}function D(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,F(e,t)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(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 V(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){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 q(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var z=Symbol("mobx-stored-annotations");function H(e){return Object.assign((function(t,n){W(t,n,e)}),e)}function W(e,t,n){P(e,z)||E(e,z,M({},e[z])),function(e){return e.annotationType_===J}(n)||(e[z][t]=n)}var K=Symbol("mobx administration"),G=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ge.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;
2return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return gt(this)},t.reportChanged=function(){yt(),bt(this),ht.stateVersion=ht.stateVersion<Number.MAX_SAFE_INTEGER?ht.stateVersion+1:Number.MIN_SAFE_INTEGER,mt()},t.toString=function(){return this.name_},e}(),$=S("Atom",G);function Y(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var r=new G(e);return t!==g&&Bt(r,t),n!==g&&Ut(r,n),r}var Q={identity:function(e,t){return e===t},structural:function(e,t){return ur(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t},shallow:function(e,t){return ur(e,t,1)}};function X(e,t,n){return tn(e)?e:Array.isArray(e)?Ie.array(e,{name:n}):x(e)?Ie.object(e,void 0,{name:n}):O(e)?Ie.map(e,{name:n}):T(e)?Ie.set(e,{name:n}):"function"!==typeof e||Lt(e)||Jt(e)?e:_(e)?Xt(e):Rt(n,e)}function Z(e){return e}var J="override";function ee(e,t){return{annotationType_:e,options_:t,make_:te,extend_:ne}}function te(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Lt(n.value))return 1;var o=re(e,this,t,n,!1);return c(r,t,o),2}function ne(e,t,n,r){var i=re(e,this,t,n);return e.defineProperty_(t,i,r)}function re(e,t,n,r,i){var o,a,s,u,l,c,f;void 0===i&&(i=ht.safeDescriptors),function(e,t,n,r){t.annotationType_,r.value}(0,t,0,r);var h,d=r.value;null!=(o=t.options_)&&o.bound&&(d=d.bind(null!=(h=e.proxy_)?h:e.target_));return{value:Ue(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),d,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ie(e,t){return{annotationType_:e,options_:t,make_:oe,extend_:ae}}function oe(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!P(e.target_,t)||!Jt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Jt(n.value))return 1;var o=se(e,this,t,n,!1,!1);return c(r,t,o),2}function ae(e,t,n,r){var i,o=se(e,this,t,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function se(e,t,n,r,i,o){void 0===o&&(o=ht.safeDescriptors),function(e,t,n,r){t.annotationType_,r.value}(0,t,0,r);var a,s=r.value;(Jt(s)||(s=Xt(s)),i)&&((s=s.bind(null!=(a=e.proxy_)?a:e.target_)).isMobXFlow=!0);return{value:s,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ue(e,t){return{annotationType_:e,options_:t,make_:le,extend_:ce}}function le(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ce(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get;0}(0,this,0,n),e.defineComputedProperty_(t,M({},this.options_,{get:n.get,set:n.set}),r)}function fe(e,t){return{annotationType_:e,options_:t,make_:he,extend_:de}}function he(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function de(e,t,n,r){var i,o;return function(e,t,n,r){t.annotationType_;0}(0,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:X,r)}var pe=ve();function ve(e){return{annotationType_:"true",options_:e,make_:ye,extend_:me}}function ye(e,t,n,r){var i,o,a,s;if(n.get)return Re.make_(e,t,n,r);if(n.set){var u=Ue(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:u})?0:2:(c(r,t,{configurable:!0,set:u}),2)}if(r!==e.target_&&"function"===typeof n.value)return _(n.value)?(null!=(s=this.options_)&&s.autoBind?Xt.bound:Xt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Rt.bound:Rt).make_(e,t,n,r);var l,f=!1===(null==(i=this.options_)?void 0:i.deep)?Ie.ref:Ie;"function"===typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_));return f.make_(e,t,n,r)}function me(e,t,n,r){var i,o,a;if(n.get)return Re.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:Ue(t.toString(),n.set)},r);"function"===typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(o=this.options_)?void 0:o.deep)?Ie.ref:Ie).extend_(e,t,n,r)}var ge={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function be(e){return e||ge}Object.freeze(ge);var we=fe("observable"),ke=fe("observable.ref",{enhancer:Z}),xe=fe("observable.shallow",{enhancer:function(e,t,n){return void 0===e||null===e||Wn(e)||Tn(e)||Ln(e)||Fn(e)?e:Array.isArray(e)?Ie.array(e,{name:n,deep:!1}):x(e)?Ie.object(e,void 0,{name:n,deep:!1}):O(e)?Ie.map(e,{name:n,deep:!1}):T(e)?Ie.set(e,{name:n,deep:!1}):void 0}}),_e=fe("observable.struct",{enhancer:function(e,t){return ur(e,t)?t:e}}),Ee=H(we);function Ce(e){return!0===e.deep?X:!1===e.deep?Z:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:X}(e.defaultDecorator)}function Se(e,t,n){if(!w(t))return tn(e)?e:x(e)?Ie.object(e,t,n):Array.isArray(e)?Ie.array(e,t):O(e)?Ie.map(e,t):T(e)?Ie.set(e,t):"object"===typeof e&&null!==e?e:Ie.box(e,t);W(e,t,we)}u(Se,Ee);var Oe,Te,Ae={box:function(e,t){var n=be(t);return new Ke(e,Ce(n),n.name,!0,n.equals)},array:function(e,t){var n=be(t);return(!1===ht.useProxies||!1===n.proxy?rr:bn)(e,Ce(n),n.name)},map:function(e,t){var n=be(t);return new Rn(e,Ce(n),n.name)},set:function(e,t){var n=be(t);return new Dn(e,Ce(n),n.name)},object:function(e,t,n){return Ht(!1===ht.useProxies||!1===(null==n?void 0:n.proxy)?qn({},n):function(e,t){var n,r;return y(),e=qn(e,t),null!=(r=(n=e[K]).proxy_)?r:n.proxy_=new Proxy(e,an)}({},n),e,t)},ref:H(ke),shallow:H(xe),deep:Ee,struct:H(_e)},Ie=u(Se,Ae),Ne="computed",Pe=ue(Ne),je=ue("computed.struct",{equals:Q.structural}),Re=function(e,t){if(w(t))return W(e,t,Pe);if(x(e))return H(ue(Ne,e));var n=x(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ye(n)};Object.assign(Re,Pe),Re.struct=H(je);var Le,Me=0,De=1,Fe=null!=(Oe=null==(Te=l((function(){}),"name"))?void 0:Te.configurable)&&Oe,Be={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ue(e,t,n,r){function i(){return Ve(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,Fe&&(Be.value=e,c(i,"name",Be)),i}function Ve(e,t,n,r,i){var a=function(e,t,n,r){var i=!1,o=0;0;var a=ht.trackingDerivation,s=!t||!a;yt();var u=ht.allowStateChanges;s&&(it(),u=ze(!0));var l=at(!0),c={runAsAction_:s,prevDerivation_:a,prevAllowStateChanges_:u,prevAllowStateReads_:l,n
2otifySpy_:i,startTime_:o,actionId_:De++,parentActionId_:Me};return Me=c.actionId_,c}(0,t);try{return n.apply(r,i)}catch(s){throw a.error_=s,s}finally{!function(e){Me!==e.actionId_&&o(30);Me=e.parentActionId_,void 0!==e.error_&&(ht.suppressReactionErrors=!0);He(e.prevAllowStateChanges_),st(e.prevAllowStateReads_),mt(),e.runAsAction_&&ot(e.prevDerivation_);0;ht.suppressReactionErrors=!1}(a)}}function qe(e,t){var n=ze(e);try{return t()}finally{He(n)}}function ze(e){var t=ht.allowStateChanges;return ht.allowStateChanges=e,t}function He(e){ht.allowStateChanges=e}Le=Symbol.toPrimitive;var We,Ke=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=Q.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}D(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_;if((e=this.prepareNewValue_(e))!==ht.UNCHANGED){0,this.setNewValue_(e)}},n.prepareNewValue_=function(e){if(et(this),sn(this)){var t=ln(this,{object:this,type:yn,newValue:e});if(!t)return ht.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ht.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),cn(this)&&hn(this,{type:yn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return un(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:yn,newValue:this.value_,oldValue:void 0}),fn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return N(this.get())},n[Le]=function(){return this.valueOf()},t}(G);We=Symbol.toPrimitive;var Ge,$e,Ye=function(){function e(e){this.dependenciesState_=Ge.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ge.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Xe(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=$e.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||o(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Ue("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?Q.structural:Q.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==Ge.UP_TO_DATE_)return;e.lowestObserverState_=Ge.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ge.UP_TO_DATE_&&(e.dependenciesState_=Ge.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)}
2,t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&o(32,this.name_,this.derivation),0!==ht.inBatch||0!==this.observers_.size||this.keepAlive_){if(gt(this),Je(this)){var e=ht.trackingContext;this.keepAlive_&&!e&&(ht.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===Ge.STALE_)return;e.lowestObserverState_=Ge.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ge.POSSIBLY_STALE_?t.dependenciesState_=Ge.STALE_:t.dependenciesState_===Ge.UP_TO_DATE_&&(e.lowestObserverState_=Ge.UP_TO_DATE_)}))}(this),ht.trackingContext=e}}else Je(this)&&(this.warnAboutUntrackedRead_(),yt(),this.value_=this.computeValue_(!1),mt());var t=this.value_;if(Ze(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&o(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else o(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ge.NOT_TRACKING_,n=this.computeValue_(!0),r=t||Ze(e)||Ze(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=ze(!1);if(e)t=tt(this,this.derivation,this.scope_);else if(!0===ht.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new Xe(r)}return He(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(nt(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Mt((function(){var o=n.get();if(!r||t){var a=it();e({observableKind:"computed",debugObjectName:n.name_,type:yn,object:n,newValue:o,oldValue:i}),ot(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return N(this.get())},t[We]=function(){return this.valueOf()},e}(),Qe=S("ComputedValue",Ye);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Ge||(Ge={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}($e||($e={}));var Xe=function(e){this.cause=void 0,this.cause=e};function Ze(e){return e instanceof Xe}function Je(e){switch(e.dependenciesState_){case Ge.UP_TO_DATE_:return!1;case Ge.NOT_TRACKING_:case Ge.STALE_:return!0;case Ge.POSSIBLY_STALE_:for(var t=at(!0),n=it(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(Qe(a)){if(ht.disableErrorBoundaries)a.get();else try{a.get()}catch(s){return ot(n),st(t),!0}if(e.dependenciesState_===Ge.STALE_)return ot(n),st(t),!0}}return ut(e),ot(n),st(t),!1}}function et(e){}function tt(e,t,n){var r=at(!0);ut(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++ht.runId;var i,o=ht.trackingDerivation;if(ht.trackingDerivation=e,ht.inBatch++,!0===ht.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(a){i=new Xe(a)}return ht.inBatch--,ht.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Ge.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue_&&(s.diffValue_=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}n.length=i,e.newObserving_=null,o=t.length;for(;o--;){var u=t[o];0===u.diffValue_&&pt(u,e),u.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,dt(l,e))}r!==Ge.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),st(r),i}function nt(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)pt(t[n],e);e.dependenciesState_=Ge.NOT_TRACKING_}function rt(e){var t=it();try{return e()}finally{ot(t)}}function it(){var e=ht.trackingDerivation;return ht.trackingDerivation=null,e}function ot(e){ht.trackingDerivation=e}function at(e){var t=ht.allowStateReads;return ht.allowStateReads=e,t}function st(e){ht.allowStateReads=e}function ut(e){if(e.dependenciesState_!==Ge.UP_TO_DATE_){e.dependenciesState_=Ge.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ge.UP_TO_DATE_}}var lt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},ct=!0,ft=!1,ht=function(){var e=s();return e.__mobxInstanceCount>
20&&!e.__mobxGlobals&&(ct=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new lt).version&&(ct=!1),ct?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new lt):(setTimeout((function(){ft||o(35)}),1),new lt)}();function dt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function pt(e,t){e.observers_.delete(t),0===e.observers_.size&&vt(e)}function vt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,ht.pendingUnobservations.push(e))}function yt(){ht.inBatch++}function mt(){if(0===--ht.inBatch){xt();for(var e=ht.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,0===n.observers_.size&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof Ye&&n.suspend_())}ht.pendingUnobservations=[]}}function gt(e){var t=ht.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&ht.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(0===e.observers_.size&&ht.inBatch>0&&vt(e),!1)}function bt(e){e.lowestObserverState_!==Ge.STALE_&&(e.lowestObserverState_=Ge.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ge.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Ge.STALE_})))}var wt=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ge.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=$e.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,ht.pendingReactions.push(this),xt())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){yt(),this.isScheduled_=!1;var e=ht.trackingContext;if(ht.trackingContext=this,Je(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(t){this.reportExceptionInDerivation_(t)}}ht.trackingContext=e,mt()}},t.track=function(e){if(!this.isDisposed_){yt();0,this.isRunning_=!0;var t=ht.trackingContext;ht.trackingContext=this;var n=tt(this,e,void 0);ht.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&nt(this),Ze(n)&&this.reportExceptionInDerivation_(n.cause),mt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ht.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";ht.suppressReactionErrors||console.error(n,e),ht.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(yt(),nt(this),mt()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[K]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){o("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"boolean"===typeof n[n.length-1]&&(e=n.pop());var i=nn(n);if(!i)return o("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");i.isTracing_===$e.NONE&&console.log("[mobx.trace] '"+i.name_+"' tracing enabled");i.isTracing_=e?$e.BREAK:$e.LOG}(this,e)},e}();var kt=function(e){return e()};function xt(){ht.inBatch>0||ht.isRunningReactions||kt(_t)}function _t(){ht.isRunningReactions=!0;for(var e=ht.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}ht.isRunningReactions=!1}var Et=S("Reaction",wt);var Ct="action",St="autoAction",Ot="<unnamed action>",Tt=ee(Ct),At=ee("action.bound",{bound:!0}),It=ee(St,{autoAction:!0}
2),Nt=ee("autoAction.bound",{autoAction:!0,bound:!0});function Pt(e){return function(t,n){return b(t)?Ue(t.name||Ot,t,e):b(n)?Ue(t,n,e):w(n)?W(t,n,e?It:Tt):w(t)?H(ee(e?St:Ct,{name:t,autoAction:e})):void 0}}var jt=Pt(!1);Object.assign(jt,Tt);var Rt=Pt(!0);function Lt(e){return b(e)&&!0===e.isMobxAction}function Mt(e,t){var n,r;void 0===t&&(t=d);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)i=new wt(o,(function(){this.track(u)}),t.onError,t.requiresObservable);else{var a=Ft(t),s=!1;i=new wt(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(u)})))}),t.onError,t.requiresObservable)}function u(){e(i)}return i.schedule_(),i.getDisposer_()}Object.assign(Rt,It),jt.bound=H(At),Rt.bound=H(Nt);var Dt=function(e){return e()};function Ft(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Dt}function Bt(e,t,n){return Vt("onBO",e,t,n)}function Ut(e,t,n){return Vt("onBUO",e,t,n)}function Vt(e,t,n,r){var i="function"===typeof r?ir(t,n):ir(t),o=b(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var qt="always";function zt(e){!0===e.isolateGlobalState&&function(){if((ht.pendingReactions.length||ht.inBatch||ht.isRunningReactions)&&o(36),ft=!0,ct){var e=s();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ht=new lt}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(ht.useProxies=t===qt||"never"!==t&&"undefined"!==typeof Proxy),"ifavailable"===t&&(ht.verifyProxies=!0),void 0!==n){var r=n===qt?qt:"observed"===n;ht.enforceActions=r,ht.allowStateChanges=!0!==r&&r!==qt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(ht[t]=!!e[t])})),ht.allowStateReads=!ht.observableRequiresReaction,e.reactionScheduler&&function(e){var t=kt;kt=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Ht(e,t,n,r){var i=j(t),o=qn(e,r)[K];yt();try{I(i).forEach((function(e){o.extend_(e,i[e],!n||(!(e in n)||n[e]))}))}finally{mt()}return e}function Wt(e,t){return Kt(ir(e,t))}function Kt(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Kt)),n}var Gt=0;function $t(){this.message="FLOW_CANCELLED"}$t.prototype=Object.create(Error.prototype);var Yt=ie("flow"),Qt=ie("flow.bound",{bound:!0}),Xt=Object.assign((function(e,t){if(w(t))return W(e,t,Yt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=this,i=arguments,o=++Gt,a=jt(r+" - runid: "+o+" - init",n).apply(t,i),s=void 0,u=new Promise((function(t,n){var i=0;function u(e){var t;s=void 0;try{t=jt(r+" - runid: "+o+" - yield "+i++,a.next).call(a,e)}catch(u){return n(u)}c(t)}function l(e){var t;s=void 0;try{t=jt(r+" - runid: "+o+" - yield "+i++,a.throw).call(a,e)}catch(u){return n(u)}c(t)}function c(e){if(!b(null==e?void 0:e.then))return e.done?t(e.value):(s=Promise.resolve(e.value)).then(u,l);e.then(c,n)}e=n,u(void 0)}));return u.cancel=jt(r+" - runid: "+o+" - cancel",(function(){try{s&&Zt(s);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(g,g),Zt(n),e(new $t)}catch(r){e(r)}})),u};return i.isMobXFlow=!0,i}),Yt);function Zt(e){b(e.cancel)&&e.cancel()}function Jt(e){return!0===(null==e?void 0:e.isMobXFlow)}function en(e,t){return!!e&&(void 0!==t?!!Wn(e)&&e[K].values_.has(t):Wn(e)||!!e[K]||$(e)||Et(e)||Qe(e))}function tn(e){return en(e)}function nn(e){switch(e.length){case 0:return ht.trackingDerivation;case 1:return ir(e[0]);case 2:return ir(e[0],e[1])}}function rn(e,t){void 0===t&&(t=void 0),yt();try{return e.apply(t)}finally{mt()}}function on(e){return e[K]}Xt.bound=H(Qt);var an={has:function(e,t){return on(e).has_(t)},get:function(e,t){return on(e).get_(t)},set:function(e,t,n){var r;return!!w(t)&&(null==(r=on(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!w(t)&&(null==(n=on(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=on(e).defineProperty_(t,n))||r},ownKeys:function(e){return on(e).ownKeys_()},preventExtensions:function(e){o(13)}};function sn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function un(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function ln(e,t){var n=it();
2try{for(var r=[].concat(e.interceptors_||[]),i=0,a=r.length;i<a&&((t=r[i](t))&&!t.type&&o(14),t);i++);return t}finally{ot(n)}}function cn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function fn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function hn(e,t){var n=it(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);ot(n)}}var dn=Symbol("mobx-keys");function pn(e,t,n){if(x(e))return Ht(e,e,t,n);var r=qn(e,n)[K];if(!e[dn]){var i=Object.getPrototypeOf(e),o=new Set([].concat(I(e),I(i)));o.delete("constructor"),o.delete(K),E(i,dn,o)}yt();try{e[dn].forEach((function(e){return r.make_(e,!t||(!(e in t)||t[e]))}))}finally{mt()}return e}var vn="splice",yn="update",mn={get:function(e,t){var n=e[K];return t===K?n:"length"===t?n.getArrayLength_():"string"!==typeof t||isNaN(t)?P(wn,t)?wn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[K];return"length"===t&&r.setArrayLength_(n),"symbol"===typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){o(15)}},gn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new G(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return un(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),fn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&o("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&o(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&nr(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=h),sn(this)){var o=ln(this,{object:this.proxy_,type:vn,index:e,removedCount:t,added:n});if(!o)return h;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=cn(this),o=i||r?{observableKind:"array",object:this.proxy_,type:yn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&hn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=cn(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:vn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&hn(this,o)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&o(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(sn(this)){var i=ln(this,{type:yn,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{for(var a=new Array(e+1-n.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=t,this.spliceWithArray_(n.length,0,a)}},e}();function bn(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),y();var i=new gn(n,t,r,!1);C(i.values_,K,i);var o=new Proxy(i.values_,mn);if(i.proxy_=o,e&&e.length){var a=ze(!0);i.spliceWithArray_(0,0,e),He(a)}return o}var wn={clear:function(){return this.splice(0)},replace:function(e){var t=this[K];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[K];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[K].spliceWithArray_(e,t,n)},push:function(){for(var e=this[K],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[K].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[K],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return ht.trackingDerivation&&o(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ht.trackingDerivation&&o(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[K],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function kn(e,t){"function"===typeof Array.prototype[e]&&(wn[e]=t(e))}function xn(e){return function(){var t=this[K];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function _n(e){return function(t,n){var r=this,i=this[K];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function En(e){return function(){var t=this,n=this[K];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}
2kn("concat",xn),kn("flat",xn),kn("includes",xn),kn("indexOf",xn),kn("join",xn),kn("lastIndexOf",xn),kn("slice",xn),kn("toString",xn),kn("toLocaleString",xn),kn("every",_n),kn("filter",_n),kn("find",_n),kn("findIndex",_n),kn("flatMap",_n),kn("forEach",_n),kn("map",_n),kn("some",_n),kn("reduce",En),kn("reduceRight",En);var Cn,Sn,On=S("ObservableArrayAdministration",gn);function Tn(e){return k(e)&&On(e[K])}var An={},In="add",Nn="delete";Cn=Symbol.iterator,Sn=Symbol.toStringTag;var Pn,jn,Rn=function(){function e(e,t,n){var r=this;void 0===t&&(t=X),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[K]=An,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,b(Map)||o(18),this.keysAtom_=Y("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,qe(!0,(function(){r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ht.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ke(this.has_(e),Z,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Ut(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(sn(this)){var r=ln(this,{type:n?yn:In,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,sn(this))&&!ln(this,{type:Nn,object:this,name:e}))return!1;if(this.has_(e)){var n=cn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Nn,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return rn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&hn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var r=cn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:yn,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),r&&hn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,rn((function(){var r,i=new Ke(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=cn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:In,object:this,name:e,newValue:t}:null;r&&hn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return fr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return fr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Cn]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=V(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return Ln(e)&&(e=new Map(e)),rn((function(){x(e)?function(e){var t=Object.keys(e);if(!A)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return f.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):O(e)?(e.constructor!==Map&&o(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&o(20,e)})),this},t.clear=function(){var e=this;rn((function(){rt((function(){for(var t,n=V(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return rn((function(){for(var n,r=function(e){if(O(e)||Ln(e))return e;if(Array.isArray(e))return new Map(e);if(x(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return o(21,e)}(e),i=new Map,a=!1,s=V(t.data_.keys());!(n=s()).done;){var u=n.value;if(!r.has(u))if(t.delete(u))a=!0;else{var l=t.data_.get(u);i.set(u,l)}}for(var c,f=V(r.entries());!(c=f()).done;){var h=c.value,d=h[0],p=h[1],v=t.data_.has(d);if(t.set(d,p),t.data_.has(d)){var y=t.data_.get(d);i.set(d,y),v||(a=!0)}}if(!a)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var m=t.data_.keys(),g=i.keys(),b=m.next(),w=g.next();!b.done;){if(b.value!==w.value){t.keysAtom_.reportChanged();break}b=m.next(),w=g.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return fn(this,e)},t.intercept_=function(e){return un(this,e)},L(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Sn,get:function(){return"Map"}}]),e}(),Ln=S("ObservableMap",Rn);var Mn={};Pn=Symbol.iterator,jn=Symbol.toStringTag;var Dn=function(){function e(e,t,n){void 0===t&&(t=X),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[K]=Mn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,b(Set)||o(22),this.atom_=Y(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;rn((function(){rt((function(){for(var t,n=V(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=V(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if((this.atom_,sn(this))&&!ln(this,{type:In,object:this,newValue:e}))return this;if(!this.has(e)){rn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=!1,r=cn(this),i=r?{observableKind:"set",debugObjectName:this.name_,type:In,object:this,newValue:e}:null;n,r&&hn(this,i)}return this},t.delete=function(e){var t=this;if(sn(this)&&!ln(this,{type:Nn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=cn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Nn,object:this,oldValue:e}:null;return rn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&hn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return fr({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return fr({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Fn(e)&&(e=new Set(e)),rn((function(){Array.isArray(e)||T(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!==e&&void 0!==e&&o("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return fn(this,e)},t.intercept_=function(e){return un(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Pn]=function(){return this.values()},L(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:jn,get:function(){return"Set"}}]),e}
vendor: 4,193 bytes, line 2
2(),Fn=S("ObservableSet",Dn),Bn=Object.create(null),Un="remove",Vn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=pe),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new G("ObservableObject.keys"),this.isPlainObject_=x(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof Ye)return n.set(t),!0;if(sn(this)){var r=ln(this,{type:yn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var i=cn(this),o=i?{type:yn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),i&&hn(this,o)}return!0},t.get_=function(e){return ht.trackingDerivation&&!P(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),P(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!ht.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ke(e in this.target_,Z,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(Gn(this,t,e),!(e in this.target_)){var n;if(null!=(n=this.target_[z])&&n[e])return;o(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==f;){var i=l(r,e);if(i){var a=t.make_(this,e,i,r);if(0===a)return;if(1===a)break}r=Object.getPrototypeOf(r)}Kn(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);Gn(this,n,e);var i=n.extend_(this,e,t,r);return i&&Kn(this,n,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{yt();var r=this.delete_(e);if(!r)return r;if(sn(this)){var i=ln(this,{object:this.proxy_||this.target_,name:e,type:In,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=M({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{mt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{yt();var i=this.delete_(e);if(!i)return i;if(sn(this)){var o=ln(this,{object:this.proxy_||this.target_,name:e,type:In,newValue:t});if(!o)return null;t=o.newValue}var a=Hn(e),s={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else c(this.target_,e,s);var u=new Ke(t,n,"ObservableObject.key",!1);this.values_.set(e,u),this.notifyPropertyAddition_(e,u.value_)}finally{mt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{yt();var r=this.delete_(e);if(!r)return r;if(sn(this))if(!ln(this,{object:this.proxy_||this.target_,name:e,type:In,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Hn(e),o={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else c(this.target_,e,o);this.values_.set(e,new Ye(t)),this.notifyPropertyAddition_(e,void 0)}finally{mt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!P(this.target_,e))return!0;if(sn(this)&&!ln(this,{object:this.proxy_||this.target_,name:e,type:Un}))return null;try{var n,r;yt();var i,o=cn(this),a=this.values_.get(e),s=void 0;if(!a&&o)s=null==(i=l(this.target_,e))?void 0:i.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];
2if(a&&(this.values_.delete(e),a instanceof Ke&&(s=a.value_),bt(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o){var u={type:Un,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:s,name:e};0,o&&hn(this,u)}}finally{mt()}return!0},t.observe_=function(e,t){return fn(this,e)},t.intercept_=function(e){return un(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=cn(this);if(i){var o=i?{type:In,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;0,i&&hn(this,o)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),I(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function qn(e,t){var n;if(P(e,K))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new Vn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:ve(e):void 0}(t));return E(e,K,i),e}var zn=S("ObservableObjectAdministration",Vn);function Hn(e){return Bn[e]||(Bn[e]={get:function(){return this[K].getObservablePropValue_(e)},set:function(t){return this[K].setObservablePropValue_(e,t)}})}function Wn(e){return!!k(e)&&zn(e[K])}function Kn(e,t,n){var r;null==(r=e.target_[z])||delete r[n]}function Gn(e,t,n){}var $n,Yn,Qn=er(0),Xn=0,Zn=function(){};$n=Zn,Yn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf($n.prototype,Yn):void 0!==$n.prototype.__proto__?$n.prototype.__proto__=Yn:$n.prototype=Yn;var Jn=function(e,t,n){function r(t,n,r,i){var o;void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this;var a=new gn(r,n,i,!0);if(a.proxy_=B(o),C(B(o),K,a),t&&t.length){var s=ze(!0);o.spliceWithArray(0,0,t),He(s)}return Object.defineProperty(B(o),"0",Qn),o}D(r,e);var i=r.prototype;return i.concat=function(){this[K].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return Tn(e)?e.slice():e})))},i[n]=function(){var e=this,t=0;return fr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},L(r,[{key:"length",get:function(){return this[K].getArrayLength_()},set:function(e){this[K].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),r}(Zn,Symbol.toStringTag,Symbol.iterator);function er(e){return{enumerable:!1,configurable:!0,get:function(){return this[K].get_(e)},set:function(t){this[K].set_(e,t)}}}function tr(e){c(Jn.prototype,""+e,er(e))}function nr(e){if(e>Xn){for(var t=Xn;t<e+100;t++)tr(t);Xn=e}}function rr(e,t,n){return new Jn(e,t,n)}function ir(e,t){if("object"===typeof e&&null!==e){if(Tn(e))return void 0!==t&&o(23),e[K].atom_;if(Fn(e))return e.atom_;if(Ln(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||o(25,t,ar(e)),n}if(Wn(e)){if(!t)return o(26);var r=e[K].values_.get(t);return r||o(27,t,ar(e)),r}if($(e)||Qe(e)||Et(e))return e}else if(b(e)&&Et(e[K]))return e[K];o(28)}function or(e,t){return e||o(29),void 0!==t?or(ir(e,t)):$(e)||Qe(e)||Et(e)||Ln(e)||Fn(e)?e:e[K]?e[K]:void o(24,e)}function ar(e,t){var n;if(void 0!==t)n=ir(e,t);else{if(Lt(e))return e.name;n=Wn(e)||Ln(e)||Fn(e)?or(e):ir(e)}return n.name_}Object.entries(wn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&E(Jn.prototype,t,n)})),nr(1e3);var sr=f.toString;function ur(e,t,n){return void 0===n&&(n=-1),lr(e,t,n)}function lr(e,t,n,r,i){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=sr.call(e);if(a!==sr.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!==typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=cr(e),t=cr(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(b(u)&&u instanceof u&&b(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;
2if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!lr(e[c],t[c],n-1,r,i))return!1}else{var f,h=Object.keys(e);if(c=h.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!P(t,f=h[c])||!lr(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function cr(e){return Tn(e)?e.slice():O(e)||Ln(e)||T(e)||Fn(e)?Array.from(e.entries()):e}function fr(e){return e[Symbol.iterator]=hr,e}function hr(){return this}if(["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof s()[e]&&o("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:ar},$mobx:K}),!t.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){var r=qn(e,n)[K];yt();try{0,null!=t||(t=function(e){return P(e,z)||E(e,z,M({},e[z])),e[z]}(e)),I(t).forEach((function(e){return r.make_(e,t[e])}))}finally{mt()}return e})throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var dr=n(4164);function pr(e){e()}function vr(e){return Wt(e)}var yr=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach((function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))})),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),mr=new("undefined"!==typeof FinalizationRegistry?FinalizationRegistry:yr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),gr=!1;function br(){return gr}var wr=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function kr(e){return"observer".concat(e)}var xr=function(){};function _r(){return new xr}function Er(e,n){if(void 0===n&&(n="observed"),br())return e();var r=wr(t.useState(_r),1)[0],i=wr(t.useState(),2)[1],o=function(){return i([])},a=t.useRef(null);a.current||(a.current={reaction:null,mounted:!1,changedBeforeMount:!1});var s,u,l=a.current;if(l.reaction||(l.reaction=new wt(kr(n),(function(){l.mounted?o():l.changedBeforeMount=!0})),mr.register(r,l,l)),t.useDebugValue(l.reaction,vr),t.useEffect((function(){return mr.unregister(l),l.mounted=!0,l.reaction?l.changedBeforeMount&&(l.changedBeforeMount=!1,o()):(l.reaction=new wt(kr(n),(function(){o()})),o()),function(){l.reaction.dispose(),l.reaction=null,l.mounted=!1,l.changedBeforeMount=!1}}),[]),l.reaction.track((function(){try{s=e()}catch(t){u=t}})),u)throw u;return s}var Cr="function"===typeof Symbol&&Symbol.for,Sr=Cr?Symbol.for("react.forward_ref"):"function"===typeof t.forwardRef&&(0,t.forwardRef)((function(e){return null})).$$typeof,Or=Cr?Symbol.for("react.memo"):"function"===typeof t.memo&&(0,t.memo)((function(e){return null})).$$typeof;function Tr(e,n){var r;if(Or&&e.$$typeof===Or)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(br())return e;var i=null!==(r=null===n||void 0===n?void 0:n.forwardRef)&&void 0!==r&&r,o=e,a=e.displayName||e.name;if(Sr&&e.$$typeof===Sr&&(i=!0,"function"!==typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,u,l=function(e,t){return Er((function(){return o(e,t)}),a)};return""!==a&&(l.displayName=a),e.contextTypes&&(l.contextTypes=e.contextTypes),i&&(l=(0,t.forwardRef)(l)),l=(0,t.memo)(l),s=e,u=l,Object.keys(s).forEac
2h((function(e){Ar[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(s,e))})),l}var Ar={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};var Ir;!function(e){e||(e=pr),zt({reactionScheduler:e})}(dr.unstable_batchedUpdates);Ir=mr.finalizeAllImmediately;function Nr(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 Pr(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function jr(e,t){if(e){if("string"===typeof e)return Nr(e,t);var n=Object.prototype.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)?Nr(e,t):void 0}}function Rr(e){return function(e){if(Array.isArray(e))return Nr(e)}(e)||Pr(e)||jr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mr(e){return Mr="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},Mr(e)}function Dr(e){var t=function(e,t){if("object"!==Mr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mr(t)?t:String(t)}function Fr(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,Dr(r.key),r)}}function Br(e,t,n){return t&&Fr(e.prototype,t),n&&Fr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ur(e,t){return Ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ur(e,t)}function Vr(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&&Ur(e,t)}function qr(e){return qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qr(e)}function zr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wr(e,t){if(t&&("object"===Mr(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hr(e)}function Kr(e){var t=zr();return function(){var n,r=qr(e);if(t){var i=qr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Wr(this,n)}}function Gr(e){if(Array.isArray(e))return e}function $r(){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 Yr(e,t){return Gr(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||jr(e,t)||$r()}function Qr(e,t,n){return Qr=zr()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Ur(i,n.prototype),i},Qr.apply(null,arguments)}function Xr(e){var t="function"===typeof Map?new Map:void 0;return Xr=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Qr(e,arguments,qr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ur(n,e)},Xr(e)}function Zr(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=jr(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var Jr,ei=n(4687),ti=n.n(ei);function ni(){return ni=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},ni.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Jr||(Jr={}));var ri,ii="popstate";function oi(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function ai(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function si(e,t){return{usr:e.state,key:e.key,idx:t}}function ui(e,t,n,r){return void 0===n&&(n=null),ni({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?ci(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function li(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function ci(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function fi(e,t,n,r){void 0===r&&(r={});var i=r,o=i.window,a=void 0===o?document.defaultView:o,s=i.v5Compat,u=void 0!==s&&s,l=a.history,c=Jr.Pop,f=null,h=d();function d(){return(l.state||{idx:null}).idx}function p(){c=Jr.Pop;var e=d(),t=null==e?null:e-h;h=e,f&&f({action:c,location:y.location,delta:t})}function v(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:li(e);return oi(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==h&&(h=0,l.replaceState(ni({},l.state,{idx:h}),""));var y={get action(){return c},get location(){return e(a,l)},listen:function(e){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(ii,p),f=e,function(){a.removeEventListener(ii,p),f=null}},createHref:function(e){return t(a,e)},createURL:v,encodeLocation:function(e){var t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=Jr.Push;var r=ui(y.location,e,t);n&&n(r,e);var i=si(r,h=d()+1),o=y.createHref(r);try{l.pushState(i,"",o)}catch(s){a.location.assign(o)}u&&f&&f({action:c,location:y.location,delta:1})},replace:function(e,t){c=Jr.Replace;var r=ui(y.location,e,t);n&&n(r,e);var i=si(r,h=d()),o=y.createHref(r);l.replaceState(i,"",o),u&&f&&f({action:c,location:y.location,delta:0})},go:function(e){return l.go(e)}};return y}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ri||(ri={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function hi(e,t,n){void 0===n&&(n="/");var r=ki(("string"===typeof t?ci(t):t).pathname||"/",n);if(null==r)return null;var i=di(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a<i.length;++a)o=gi(i[a],wi(r));return o}function di(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");var i=function(e,i,o){var a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(oi(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not val
2id. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));var s=Ci([r,a.relativePath]),u=n.concat(a);e.children&&e.children.length>0&&(oi(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),di(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:mi(s,e.index),routesMeta:u})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=Zr(pi(e.path));try{for(o.s();!(r=o.n()).done;){var a=r.value;i(e,t,a)}}catch(s){o.e(s)}finally{o.f()}}else i(e,t)})),t}function pi(e){var t=e.split("/");if(0===t.length)return[];var n,r=Gr(n=t)||Pr(n)||jr(n)||$r(),i=r[0],o=r.slice(1),a=i.endsWith("?"),s=i.replace(/\?$/,"");if(0===o.length)return a?[s,""]:[s];var u=pi(o.join("/")),l=[];return l.push.apply(l,Rr(u.map((function(e){return""===e?s:[s,e].join("/")})))),a&&l.push.apply(l,Rr(u)),l.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var vi=/^:\w+$/,yi=function(e){return"*"===e};function mi(e,t){var n=e.split("/"),r=n.length;return n.some(yi)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!yi(e)})).reduce((function(e,t){return e+(vi.test(t)?3:""===t?1:10)}),r)}function gi(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a<n.length;++a){var s=n[a],u=a===n.length-1,l="/"===i?t:t.slice(i.length)||"/",c=bi({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},l);if(!c)return null;
2Object.assign(r,c.params);var f=s.route;o.push({params:r,pathname:Ci([i,c.pathname]),pathnameBase:Si(Ci([i,c.pathnameBase])),route:f}),"/"!==c.pathnameBase&&(i=Ci([i,c.pathnameBase]))}return o}function bi(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);ai("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return r.push(t),"/([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");return[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),r=Yr(n,2),i=r[0],o=r[1],a=t.match(i);if(!a)return null;var s=a[0],u=s.replace(/(.)\/+$/,"$1"),l=a.slice(1),c=o.reduce((function(e,t,n){if("*"===t){var r=l[n]||"";u=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return ai(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{});return{params:c,pathname:s,pathnameBase:u,pattern:e}}function wi(e){try{return decodeURI(e)}catch(t){return ai(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function ki(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function xi(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function _i(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function Ei(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=ci(e):(oi(!(i=ni({},e)).pathname||!i.pathname.includes("?"),xi("?","pathname","search",i)),oi(!i.pathname||!i.pathname.includes("#"),xi("#","pathname","hash",i)),oi(!i.search||!i.search.includes("#"),xi("#","search","hash",i)));var o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(r||null==s)o=n;else{var u=t.length-1;if(s.startsWith("..")){for(var l=s.split("/");".."===l[0];)l.shift(),u-=1;i.pathname=l.join("/")}o=u>=0?t[u]:"/"}var c=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?ci(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,u=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:u,search:Oi(o),hash:Ti(s)}}(i,o),f=s&&"/"!==s&&s.endsWith("/"),h=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!h||(c.pathname+="/"),c}var Ci=function(e){return e.join("/").replace(/\/\/+/g,"/")},Si=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},Oi=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Ti=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},Ai=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}return Br(n)}(Xr(Error));function Ii(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var Ni=["post","put","patch","delete"],Pi=(new Set(Ni),["get"].concat(Ni));new Set(Pi),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;Symbol("deferred");var ji="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Ri=t.useState,Li=t.useEffect,Mi=t.useLayoutEffect,Di=t.useDebugValue;function Fi(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!ji(n,r)}catch(i){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,function(e){e.useSyncExternalStore}(r);var Bi=t.createContext(null);var Ui=t.createContext(null);var Vi=t.createContext(null);var qi=t.createContext(null);var zi=t.createContext(null);var Hi=t.createContext({outlet:null,matches:[]});var Wi=t.createContext(null);function Ki(){return Ki=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},Ki.apply(this,arguments)}function Gi(){return null!=t.useContext(zi)}function $i(){return Gi()||oi(!1),t.useContext(zi).location}
2function Yi(){Gi()||oi(!1);var e=t.useContext(qi),n=e.basename,r=e.navigator,i=t.useContext(Hi).matches,o=$i().pathname,a=JSON.stringify(_i(i).map((function(e){return e.pathnameBase}))),s=t.useRef(!1);t.useEffect((function(){s.current=!0}));var u=t.useCallback((function(e,t){if(void 0===t&&(t={}),s.current)if("number"!==typeof e){var i=Ei(e,JSON.parse(a),o,"path"===t.relative);"/"!==n&&(i.pathname="/"===i.pathname?n:Ci([n,i.pathname])),(t.replace?r.replace:r.push)(i,t.state,t)}else r.go(e)}),[n,r,a,o]);return u}var Qi=t.createContext(null);function Xi(){var e=t.useContext(Hi).matches,n=e[e.length-1];return n?n.params:{}}function Zi(e,n){var r=(void 0===n?{}:n).relative,i=t.useContext(Hi).matches,o=$i().pathname,a=JSON.stringify(_i(i).map((function(e){return e.pathnameBase})));return t.useMemo((function(){return Ei(e,JSON.parse(a),o,"path"===r)}),[e,a,o,r])}function Ji(){var e=function(){var e,n=t.useContext(Wi),r=oo(to.UseRouteError),i=ao(to.UseRouteError);if(n)return n;return null==(e=r.errors)?void 0:e[i]}(),n=Ii(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,null)}var eo,to,no=function(e){Vr(r,e);var n=Kr(r);function r(e){var t;return Lr(this,r),(t=n.call(this,e)).state={location:e.location,error:e.error},t}return Br(r,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?t.createElement(Hi.Provider,{value:this.props.routeContext},t.createElement(Wi.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}}]),r}(t.Component);function ro(e){var n=e.routeContext,r=e.match,i=e.children,o=t.useContext(Bi);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(Hi.Provider,{value:n},i)}function io(e,n,r){if(void 0===n&&(n=[]),null==e){if(null==r||!r.errors)return null;e=r.matches}var i=e,o=null==r?void 0:r.errors;if(null!=o){var a=i.findIndex((function(e){return e.route.id&&(null==o?void 0:o[e.route.id])}));a>=0||oi(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((function(e,a,s){var u=a.route.id?null==o?void 0:o[a.route.id]:null,l=null;r&&(l=a.route.ErrorBoundary?t.createElement(a.route.ErrorBoundary,null):a.route.errorElement?a.route.errorElement:t.createElement(Ji,null));var c=n.concat(i.slice(0,s+1)),f=function(){var n=e;return u?n=l:a.route.Component?n=t.createElement(a.route.Component,null):a.route.element&&(n=a.route.element),t.createElement(ro,{match:a,routeContext:{outlet:e,matches:c},children:n})};return r&&(a.route.ErrorBoundary||a.route.errorElement||0===s)?t.createElement(no,{location:r.location,component:l,error:u,children:f(),routeContext:{outlet:null,matches:c}}):f()}),null)}function oo(e){var n=t.useContext(Ui);return n||oi(!1),n}function ao(e){var n=function(e){var n=t.useContext(Hi);return n||oi(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||oi(!1),r.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"}(eo||(eo={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(to||(to={}));var so;function uo(e){var n=e.to,r=e.replace,i=e.state,o=e.relative;Gi()||oi(!1);var a=t.useContext(Ui),s=Yi();return t.useEffect((function(){a&&"idle"!==a.navigation.state||s(n,{replace:r,state:i,relative:o})})),null}function lo(e){return function(e){var n=t.useContext(Hi).outlet;return n?t.createElement(Qi.Provider,{value:e},n):n}(e.context)}function co(e){oi(!1)}function fo(e){var n=e.basename,r=void 0===n?"/":n,i=e.children,o=void 0===i?null:i,a=e.location,s=e.navigationType,u=void 0===s?Jr.Pop:s,l=e.navigator,c=e.static,f=void 0!==c&&c;Gi()&&oi(!1);var h=r.replace(/^\/*/,"/"),d=t.useMemo((function(){return{basename:h,navigator:l,static:f}}),[h,l,f]);"string"===typeof a&&(a=ci(a));var p=a,v=p.pathname,y=void 0===v?"/":v,m=p.search,g=void 0===m?"":m,b=p.hash,w=void 0===b?"":b,k=p.state,x=void 0===k?null:k,_=p.key,E=void 0===_?"default":_,C=t.useMemo((function(){var e=ki(y,h);return null==e?null:{location:{pathname:e,search:g,hash:w,state:x,key:E},navigationType:u}}),[h,y,g,w,x,E,u]);return null==C?null:t.createElement(qi.Provider,{value:d},t.createElement(zi.Provider,{children:o,value:C}))}function ho(e){var n=e.children,r=e.location,i=t.useContext(Bi);return function(e,n){Gi()||oi(!1);var r,i=t.useContext(qi).navigator,o=t.useContext(Ui),a=t.useContext(Hi).matches,s=a[a.length-1],u=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/"),c=(s&&s.route,$i());if(n){var f,h="string"===typeof n?ci(n):n;"/"===l||(null==(f=h.pathname)?void 0:f.startsWith(l))||oi(!1),r=h}else r=c;var d=r.pathname||"/",p=hi(e,{pathname:"/"===l?d:d.slice(l.length)||"/"}),v=io(p&&p.map((function(e){return Object.assign({},e,{params:Object.assign({},u,e.params),pathname:Ci([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Ci([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),a,o||void 0);return n&&v?t.createElement(zi.Provider,{value:{location:Ki({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:Jr.Pop}},v):v}(i&&!n?i.router.routes:vo(n),r)}
2!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(so||(so={}));var po=new Promise((function(){}));t.Component;function vo(e,n){void 0===n&&(n=[]);var r=[];return t.Children.forEach(e,(function(e,i){if(t.isValidElement(e)){var o=[].concat(Rr(n),[i]);if(e.type!==t.Fragment){e.type!==co&&oi(!1),e.props.index&&e.props.children&&oi(!1);var a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=vo(e.props.children,o)),r.push(a)}else r.push.apply(r,vo(e.props.children,o))}})),r}function yo(e,t,n){return(t=Dr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mo(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 go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach((function(t){yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wo(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var ko=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wo(e))&&(r&&(r+=" "),r+=t);return r},xo=["theme","type"],_o=["delay","staleId"],Eo=function(e){return"number"==typeof e&&!isNaN(e)},Co=function(e){return"string"==typeof e},So=function(e){return"function"==typeof e},Oo=function(e){return Co(e)||So(e)?e:null},To=function(e){return(0,t.isValidElement)(e)||Co(e)||So(e)||Eo(e)};function Ao(e){var n=e.enter,r=e.exit,i=e.appendPosition,o=void 0!==i&&i,a=e.collapse,s=void 0===a||a,u=e.collapseDuration,l=void 0===u?300:u;return function(e){var i=e.children,a=e.position,u=e.preventExitTransition,c=e.done,f=e.nodeRef,h=e.isIn,d=o?"".concat(n,"--").concat(a):n,p=o?"".concat(r,"--").concat(a):r,v=(0,t.useRef)(0);return(0,t.useLayoutEffect)((function(){var e,t=f.current,n=d.split(" "),r=function e(r){var i;r.target===f.current&&(t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",e),t.removeEventListener("animationcancel",e),0===v.current&&"animationcancel"!==r.type&&(i=t.classList).remove.apply(i,Rr(n)))};(e=t.classList).add.apply(e,Rr(n)),t.addEventListener("animationend",r),t.addEventListener("animationcancel",r)}),[]),(0,t.useEffect)((function(){var e=f.current,t=function t(){e.removeEventListener("animationend",t),s?function(e,t,n){void 0===n&&(n=300);var r=e.scrollHeight,i=e.style;requestAnimationFrame((function(){i.minHeight="initial",i.height=r+"px",i.transition="all ".concat(n,"ms"),requestAnimationFrame((function(){i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)}))}))}(e,c,l):c()};h||(u?t():(v.current=1,e.className+=" ".concat(p),e.addEventListener("animationend",t)))}),[h]),t.createElement(t.Fragment,null,i)}}function Io(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}var No={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){var t=arguments,n=this;this.list.has(e)&&this.list.get(e).forEach((function(r){var i=setTimeout((function(){r.apply(void 0,Rr([].slice.call(t,1)))}),0);n.emitQueue.has(e)||n.emitQueue.set(e,[]),n.emitQueue.get(e).push(i)}))}},Po=function(e){var n=e.theme,r=e.type,i=bo(e,xo);return t.createElement("svg",go({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":"var(--toastify-icon-color-".concat(r,")")},i))},jo={info:function(e){return t.createElement(Po,go({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(Po,go({},e),t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(Po,go({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(Po,go({},e),t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}};function Ro(e){var n=(0,t.useReducer)((function(e){return e+1}),0),r=Yr(n,2)[1],i=Yr((0,t.useState)([]),2),o=i[0],a=i[1],s=(0,t.useRef)(null),u=(0,t.useRef)(new Map).current,l=function(e){return-1!==o.indexOf(e)},c=(0,t.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:l,getToast:function(e){return u.get(e)}}).current;function f(e){var t=e.containerId;!c.props.limit||t&&c.containerId!==t||(c.count-=c.queue.length,c.queue=[])}function h(e){a((function(t){return null==e?[]:t.filter((function(t){return t!==e}))}))}function d(){var e=c.queue.shift();v(e.toastContent,e.toastProps,e.staleId)}function p(e,n){var i=n.delay,o=n.staleId,a=bo(n,_o);if(To(e)&&!function(e){return!s.current||c.props.enableMultiContainer&&e.containerId!==c.props.containerId||u.has(e.toastId)&&null==e.updateId}(a)){var l=a.toastId,f=a.updateId,p=a.data,y=c.props,m=function(){return h(l)},g=null==f;g&&c.count++;var b,w,k=go(go(go({},y),{},{style:y.toastStyle,key:c.toastKey++},Object.fromEntries(Object.entries(a).filter((function(e){var t=Yr(e,2);t[0];return null!=t[1]})))),{},{toastId:l,updateId:f,data:p,closeToast:m,isIn:!1,className:Oo(a.className||y.toastClassName),bodyClassName:Oo(a.bodyClassName||y.bodyClassName),progressClassName:Oo(a.progressClassName||y.progressClassName),autoClose:!a.isLoading&&(b=a.autoClose,w=y.autoClose,!1===b||Eo(b)&&b>0?b:w),deleteToast:function(){var e=Io(u.get(l),"removed");u.delete(l),No.emit(4,e);var t=c.queue.length;if(c.count=null==l?c.count-c.displayedToast:c.count-1,c.count<0&&(c.count=0),t>0){var n=null==l?c.props.limit:1;if(1===t||1===n)c.displayedToast++,d();else{var i=n>t?t:n;c.displayedToast=i;for(var o=0;o<i;o++)d()}}else r()}});k.iconOut=function(e){var n=e.theme,r=e.type,i=e.isLoading,o=e.icon,a=null,s={theme:n,type:r};return!1===o||(So(o)?a=o(s):(0,t.isValidElement)(o)?a=(0,t.cloneElement)(o,s):Co(o)||Eo(o)?a=o:i?a=jo.spinner():function(e){return e in jo}(r)&&(a=jo[r](s))),a}(k),So(a.onOpen)&&(k.onOpen=a.onOpen),So(a.onClose)&&(k.onClose=a.onClose),k.closeButton=y.closeButton,!1===a.closeButton||To(a.closeButton)?k.closeButton=a.closeButton:!0===a.closeButton&&(k.closeButton=!To(y.closeButton)||y.closeButton);var x=e;(0,t.isValidElement)(e)&&!Co(e.type)?x=(0,t.cloneElement)(e,{closeToast:m,toastProps:k,data:p}):So(e)&&(x=e({closeToast:m,toastProps:k,data:p})),y.limit&&y.limit>0&&c.count>y.limit&&g?c.queue.push({toastContent:x,toastProps:k,staleId:o}):Eo(i)?setTimeout((function(){v(x,k,o)}),i):v(x,k,o)}}function v(e,t,n){var r=t.toastId;n&&u.delete(n);var i={content:e,props:t};u.set(r,i),a((function(e){return[].concat(Rr(e),[r]).filter((function(e){return e!==n}))})),No.emit(4,Io(i,null==i.props.updateId?"added":"updated"))}return(0,t.useEffect)((function(){return c.containerId=e.containerId,No.cancelEmit(3).on(0,p).on(1,(function(e){return s.current&&h(e)})).on(5,f).emit(2,c),function(){u.clear(),No.emit(3,c)}}),[]),(0,t.useEffect)((function(){c.props=e,c.isToastActive=l,c.displayedToast=o.length})),{getToastToRender:function(t){var n=new Map,r=Array.from(u.values());return e.newestOnTop&&r.reverse(),r.forEach((function(e){var t=e.props.position;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(function(e){return t(e[0],e[1])}))},containerRef:s,isToastActive:l}}function Lo(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Mo(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Do(e){var n=Yr((0,t.useState)(!1),2),r=n[0],i=n[1],o=Yr((0,t.useState)(!1),2),a=o[0],s=o[1],u=(0,t.useRef)(null),l=(0,t.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,t.useRef)(e),f=e.autoClose,h=e.pauseOnHover,d=e.closeToast,p=e.onClick,v=e.closeOnClick;function y(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",k),document.addEventListener("touchmove",w),document.addEventListener("touchend",k);var n=u.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=Lo(t.nativeEvent),l.y=Mo(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(t){if(l.boundingRect){var n=l.boundingRect,r=n.top,i=n.bottom,o=n.left,a=n.right;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&l.x>=o&&l.x<=a&&l.y>=r&&l.y<=i?b():g()}}function g(){i(!0)}function b(){i(!1)}function w(t){var n=u.current;l.canDrag&&n&&(l.didMove=!0,r&&b(),l.x=Lo(t),l.y=Mo(t),l.delta="x"===e.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),n.style.transform="translate".concat(e.draggableDirection,"(").concat(l.delta,"px)"),n.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function k(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",k);var t=u.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return s(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate".concat(e.draggableDirection,"(0)"),t.style.opacity="1"}}(0,t.useEffect)((function(){c.current=e})),(0,t.useEffect)((function(){return u.current&&u.current.addEventListener("d",g,{once:!0}),So(e.onOpen)&&e.onOpen((0,t.isValidElement)(e.children)&&e.children.props),function(){var e=c.current;So(e.onClose)&&e.onClose((0,t.isValidElement)(e.children)&&e.children.props)}}),[]),(0,t.useEffect)((function(){return e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",g),window.addEventListener("blur",b)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",b))}}),[e.pauseOnFocusLoss]);var x={onMouseDown:y,onTouchStart:y,onMouseUp:m,onTouchEnd:m};return f&&h&&(x.onMouseEnter=b,x.onMouseLeave=g),v&&(x.onClick=function(e){p&&p(e),l.canCloseOnClick&&d()}),{playToast:g,pauseToast:b,isRunning:r,preventExitTransition:a,toastRef:u,eventHandlers:x}}function Fo(e){var n=e.closeToast,r=e.theme,i=e.ariaLabel,o=void 0===i?"close"
2:i;return t.createElement("button",{className:"Toastify__close-button Toastify__close-button--".concat(r),type:"button",onClick:function(e){e.stopPropagation(),n(e)},"aria-label":o},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Bo(e){var n=e.delay,r=e.isRunning,i=e.closeToast,o=e.type,a=void 0===o?"default":o,s=e.hide,u=e.className,l=e.style,c=e.controlledProgress,f=e.progress,h=e.rtl,d=e.isIn,p=e.theme,v=s||c&&0===f,y=go(go({},l),{},{animationDuration:"".concat(n,"ms"),animationPlayState:r?"running":"paused",opacity:v?0:1});c&&(y.transform="scaleX(".concat(f,")"));var m=ko("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--".concat(p),"Toastify__progress-bar--".concat(a),{"Toastify__progress-bar--rtl":h}),g=So(u)?u({rtl:h,type:a,defaultClassName:m}):ko(m,u);return t.createElement("div",yo({role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:g,style:y},c&&f>=1?"onTransitionEnd":"onAnimationEnd",c&&f<1?null:function(){d&&i()}))}var Uo=function(e){var n=Do(e),r=n.isRunning,i=n.preventExitTransition,o=n.toastRef,a=n.eventHandlers,s=e.closeButton,u=e.children,l=e.autoClose,c=e.onClick,f=e.type,h=e.hideProgressBar,d=e.closeToast,p=e.transition,v=e.position,y=e.className,m=e.style,g=e.bodyClassName,b=e.bodyStyle,w=e.progressClassName,k=e.progressStyle,x=e.updateId,_=e.role,E=e.progress,C=e.rtl,S=e.toastId,O=e.deleteToast,T=e.isIn,A=e.isLoading,I=e.iconOut,N=e.closeOnClick,P=e.theme,j=ko("Toastify__toast","Toastify__toast-theme--".concat(P),"Toastify__toast--".concat(f),{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":N}),R=So(y)?y({rtl:C,position:v,type:f,defaultClassName:j}):ko(j,y),L=!!E||!l,M={closeToast:d,type:f,theme:P},D=null;return!1===s||(D=So(s)?s(M):(0,t.isValidElement)(s)?(0,t.cloneElement)(s,M):Fo(M)),t.createElement(p,{isIn:T,done:O,position:v,preventExitTransition:i,nodeRef:o},t.createElement("div",go(go({id:S,onClick:c,className:R},a),{},{style:m,ref:o}),t.createElement("div",go(go({},T&&{role:_}),{},{className:So(g)?g({type:f}):ko("Toastify__toast-body",g),style:b}),null!=I&&t.createElement("div",{className:ko("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},I),t.createElement("div",null,u)),D,t.createElement(Bo,go(go({},x&&!L?{key:"pb-".concat(x)}:{}),{},{rtl:C,theme:P,delay:l,isRunning:r,isIn:T,closeToast:d,hide:h,type:f,style:k,className:w,controlledProgress:L,progress:E||0}))))}
2,Vo=function(e,t){return void 0===t&&(t=!1),{enter:"Toastify--animate Toastify__".concat(e,"-enter"),exit:"Toastify--animate Toastify__".concat(e,"-exit"),appendPosition:t}},qo=Ao(Vo("bounce",!0)),zo=(Ao(Vo("slide",!0)),Ao(Vo("zoom")),Ao(Vo("flip")),(0,t.forwardRef)((function(e,n){var r=Ro(e),i=r.getToastToRender,o=r.containerRef,a=r.isToastActive,s=e.className,u=e.style,l=e.rtl,c=e.containerId;function f(e){var t=ko("Toastify__toast-container","Toastify__toast-container--".concat(e),{"Toastify__toast-container--rtl":l});return So(s)?s({position:e,rtl:l,defaultClassName:t}):ko(t,Oo(s))}return(0,t.useEffect)((function(){n&&(n.current=o.current)}),[]),t.createElement("div",{ref:o,className:"Toastify",id:c},i((function(e,n){var r=n.length?go({},u):go(go({},u),{},{pointerEvents:"none"});return t.createElement("div",{className:f(e),style:r,key:"container-".concat(e)},n.map((function(e,r){var i=e.content,o=e.props;return t.createElement(Uo,go(go({},o),{},{isIn:a(o.toastId),style:go(go({},o.style),{},{"--nth":r+1,"--len":n.length}),key:"toast-".concat(o.key)}),i)})))})))})));zo.displayName="ToastContainer",zo.defaultProps={position:"top-right",transition:qo,autoClose:5e3,closeButton:Fo,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var Ho,Wo=new Map,Ko=[],Go=1;function $o(){return""+Go++}function Yo(e){return e&&(Co(e.toastId)||Eo(e.toastId))?e.toastId:$o()}function Qo(e,t){return Wo.size>0?No.emit(0,e,t):Ko.push({content:e,options:t}),t.toastId}function Xo(e,t){return go(go({},t),{},{type:t&&t.type||e,toastId:Yo(t)})}function Zo(e){return function(t,n){return Qo(t,Xo(e,n))}}function Jo(e,t){return Qo(e,Xo("default",t))}Jo.loading=function(e,t){return Qo(e,Xo("default",go({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},Jo.promise=function(e,t,n){var r,i=t.pending,o=t.error,a=t.success;i&&(r=Co(i)?Jo.loading(i,n):Jo.loading(i.render,go(go({},n),i)));var s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=function(e,t,i){if(null!=t){var o=go(go(go({type:e},s),n),{},{data:i}),a=Co(t)?{render:t}:t;return r?Jo.update(r,go(go({},o),a)):Jo(a.render,go(go({},o),a)),i}Jo.dismiss(r)},l=So(e)?e():e;return l.then((function(e){return u("success",a,e)})).catch((function(e){return u("error",o,e)})),l},Jo.success=Zo("success"),Jo.info=Zo("info"),Jo.error=Zo("error"),Jo.warning=Zo("warning"),Jo.warn=Jo.warning,Jo.dark=function(e,t){return Qo(e,Xo("default",go({theme:"dark"},t)))},Jo.dismiss=function(e){Wo.size>0?No.emit(1,e):Ko=Ko.filter((function(t){return null!=e&&t.options.toastId!==e}))},Jo.clearWaitingQueue=function(e){return void 0===e&&(e={}),No.emit(5,e)},Jo.isActive=function(e){var t=!1;return Wo.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},Jo.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=t.containerId,r=Wo.get(n||Ho);return r&&r.getToast(e)}(e,t);if(n){var r=n.props,i=n.content,o=go(go(go({delay:100},r),t),{},{toastId:t.toastId||e,updateId:$o()});o.toastId!==e&&(o.staleId=e);var a=o.render||i;delete o.render,Qo(a,o)}}),0)},Jo.done=function(e){Jo.update(e,{progress:1})},Jo.onChange=function(e){return No.on(4,e),function(){No.off(4,e)}},Jo.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Jo.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},No.on(2,(function(e){Ho=e.containerId||e,Wo.set(Ho,e),Ko.forEach((function(e){No.emit(0,e.content,e.options)})),Ko=[]})).on(3,(function(e){Wo.delete(e.containerId||e),0===Wo.size&&No.off(0).off(1).off(5)}));var ea=n(184),ta=function(e){var t=e.children;e.full;return(0,ea.jsx)("div",{className:"container",children:t})};function na(){return na=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},na.apply(this,arguments)}function ra(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var ia=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],oa=["aria-current","caseSensitive","className","end","style","to","children"];function aa(e){var n=e.basename,r=e.children,i=e.window,o=t.useRef();null==o.current&&(o.current=function(e){return void 0===e&&(e={}),fi((function(e,t){var n=e.location;return ui("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:li(t)}),null,e)}({window:i,v5Compat:!0}));var a=o.current,s=Yr(t.useState({action:a.action,location:a.location}),2),u=s[0],l=s[1];return t.useLayoutEffect((function(){return a.listen(l)}
2),[a]),t.createElement(fo,{basename:n,children:r,location:u.location,navigationType:u.action,navigator:a})}var sa="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,ua=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,la=t.forwardRef((function(e,n){var r,i=e.onClick,o=e.relative,a=e.reloadDocument,s=e.replace,u=e.state,l=e.target,c=e.to,f=e.preventScrollReset,h=ra(e,ia),d=t.useContext(qi).basename,p=!1;if("string"===typeof c&&ua.test(c)&&(r=c,sa)){var v=new URL(window.location.href),y=c.startsWith("//")?new URL(v.protocol+c):new URL(c),m=ki(y.pathname,d);y.origin===v.origin&&null!=m?c=m+y.search+y.hash:p=!0}var g=function(e,n){var r=(void 0===n?{}:n).relative;Gi()||oi(!1);var i=t.useContext(qi),o=i.basename,a=i.navigator,s=Zi(e,{relative:r}),u=s.hash,l=s.pathname,c=s.search,f=l;return"/"!==o&&(f="/"===l?o:Ci([o,l])),a.createHref({pathname:f,search:c,hash:u})}(c,{relative:o}),b=function(e,n){var r=void 0===n?{}:n,i=r.target,o=r.replace,a=r.state,s=r.preventScrollReset,u=r.relative,l=Yi(),c=$i(),f=Zi(e,{relative:u});return t.useCallback((function(t){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,i)){t.preventDefault();var n=void 0!==o?o:li(c)===li(f);l(e,{replace:n,state:a,preventScrollReset:s,relative:u})}}),[c,l,f,o,a,i,e,s,u])}(c,{replace:s,state:u,target:l,preventScrollReset:f,relative:o});return t.createElement("a",na({},h,{href:r||g,onClick:p||a?i:function(e){i&&i(e),e.defaultPrevented||b(e)},ref:n,target:l}))}));var ca=t.forwardRef((function(e,n){var r=e["aria-current"],i=void 0===r?"page":r,o=e.caseSensitive,a=void 0!==o&&o,s=e.className,u=void 0===s?"":s,l=e.end,c=void 0!==l&&l,f=e.style,h=e.to,d=e.children,p=ra(e,oa),v=Zi(h,{relative:p.relative}),y=$i(),m=t.useContext(Ui),g=t.useContext(qi).navigator,b=g.encodeLocation?g.encodeLocation(v).pathname:v.pathname,w=y.pathname,k=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(w=w.toLowerCase(),k=k?k.toLowerCase():null,b=b.toLowerCase());var x,_=w===b||!c&&w.startsWith(b)&&"/"===w.charAt(b.length),E=null!=k&&(k===b||!c&&k.startsWith(b)&&"/"===k.charAt(b.length)),C=_?i:void 0;x="function"===typeof u?u({isActive:_,isPending:E}):[u,_?"active":null,E?"pending":null].filter(Boolean).join(" ");var S="function"===typeof f?f({isActive:_,isPending:E}):f;return t.createElement(la,na({},p,{"aria-current":C,className:x,ref:n,style:S,to:h}),"function"===typeof d?d({isActive:_,isPending:E}):d)}));var fa,ha;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(fa||(fa={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ha||(ha={}));var da,pa=function(){return(0,ea.jsx)("div",{className:"auth__nav--wrap",children:(0,ea.jsx)(ca,{className:"auth__nav__link",to:"/singin",children:"Sign In"})})},va=(0,t.createContext)(null),ya=["title","titleId"];function ma(){return ma=Object.assign||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},ma.apply(this,arguments)}function ga(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ba(e,n){var r=e.title,i=e.titleId,o=ga(e,ya);return t.createElement("svg",ma({width:14,height:16,viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,da||(da=t.createElement("path",{d:"M10.3701 15.2503C10.3701 15.4492 10.2907 15.64 10.1493 15.7807C10.008 15.9214 9.81622 16.0005 9.61629 16.0005H2.51156C1.84552 15.9997 1.20698 15.736 0.736103 15.2673C0.265226 14.7985 0.000488436 14.163 0 13.5001V2.49986C0.000488777 1.83712 0.265256 1.20168 0.73616 0.733055C1.20706 0.264432 1.84561 0.000945536 2.51156 0.000459127H9.61629C9.71744 -0.00306425 9.81828 0.0137204 9.91277 0.0498113C10.0073 0.0859021 10.0935 0.140562 10.1663 0.210528C10.2391 0.280494 10.297 0.364336 10.3366 0.457053C10.3761 0.54977 10.3965 0.649462 10.3965 0.750187C10.3965 0.850912 10.3761 0.950607 10.3366 1.04332C10.297 1.13604 10.2391 1.21988 10.1663 1.28985C10.0935 1.35981 10.0073 1.41447 9.91277 1.45056C9.81828 1.48665 9.71744 1.50344 9.61629 1.49992H2.51156C2.24522 1.5004 1.98992 1.60591 1.80159 1.79333C1.61326 1.98075 1.50724 2.2348 1.50675 2.49986V13.5001C1.507 13.7653 1.61294 14.0195 1.80132 14.2069C1.98971 14.3944 2.24515 14.4998 2.51156 14.5001H9.61629C9.81622 14.5001 10.008 14.5791 10.1493 14.7198C10.2907 14.8605 10.3701 15.0513 10.3701 15.2503ZM13.7795 7.47019L10.1976 3.90565C10.0567 3.769 9.86763 3.6926 9.67086 3.69277C9.47409 3.69294 9.28518 3.76966 9.14449 3.90656C9.0038 4.04345 8.92247 4.22966 8.91787 4.42543C8.91327 4.62119 8.98577 4.81098 9.11988 4.95426L9.13188 4.9662L11.4266 7.25073H5.49371C5.39256 7.24721 5.29172 7.26399 5.19723 7.30009C5.10273 7.33618 5.01651 7.39083 4.9437 7.4608C4.87089 7.53077 4.81298 7.61461 4.77343 7.70732C4.73388 7.80004 4.7135 7.89973 4.7135 8.00046C4.7135 8.10118 4.73388 8.20088 4.77343 8.2936C4.81298 8.38631 4.87089 8.47015 4.9437 8.54012C5.01651 8.61009 5.10273 8.66474 5.19723 8.70084C5.29172 8.73693 5.39256 8.75371 5.49371 8.75019H11.4266L9.13188 11.0338C8.99007 11.1741 8.91005 11.3647 8.90945 11.5636C8.90884 11.7626 8.98769 11.9537 9.12864 12.0948C9.2696 12.2359 9.46112 12.3156 9.66106 12.3162C9.86101 12.3168 10.053 12.2383 10.1948 12.098L13.7767 8.53349C13.8472 8.46397 13.9033 8.38126 13.9416 8.29012
2C13.98 8.19898 13.9998 8.10121 14.0001 8.00241C14.0003 7.90361 13.981 7.80573 13.9431 7.7144C13.9053 7.62307 13.8497 7.54007 13.7795 7.47019Z",fill:"white"})))}var wa,ka,xa,_a,Ea,Ca,Sa,Oa,Ta,Aa,Ia,Na,Pa,ja,Ra,La,Ma,Da,Fa,Ba,Ua,Va=t.forwardRef(ba),qa=(n.p,Tr((function(){var e=(0,t.useContext)(va).authUser;return(0,ea.jsxs)("div",{className:"logout--wrapper",children:[(0,ea.jsx)("p",{className:"logout__username",children:e.email}),(0,ea.jsxs)("button",{className:"logout__button",type:"button",onClick:e.signOut,children:[(0,ea.jsx)("span",{children:"Logout"}),(0,ea.jsx)(Va,{className:"logout__button__icon"})]})]})}))),za=["title","titleId"];function Ha(){return Ha=Object.assign||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},Ha.apply(this,arguments)}function Wa(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ka(e,n){var r=e.title,i=e.titleId,o=Wa(e,za);return t.createElement("svg",Ha({width:190,height:42,viewBox:"0 0 1808 332",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,t.createElement("g",{clipPath:"url(#clip0_1043_17142)"},wa||(wa=t.createElement("path",{d:"M517.41 108.36C518.53 109.21 519.15 110.17 519.29 111.24C519.43 112.31 519.15 113.41 518.45 114.55C517.75 115.55 516.88 116.08 515.83 116.15C514.78 116.22 513.77 115.97 512.8 115.4C506.94 111.27 500.56 108 493.66 105.58C486.76 103.16 479.4 101.95 471.59 101.95C462.66 101.95 454.33 103.62 446.59 106.97C438.85 110.32 432.05 115.05 426.19 121.17C420.33 127.29 415.73 134.55 412.38 142.95C409.03 151.35 407.36 160.6 407.36 170.71C407.36 180.82 409.03 190.07 412.38 198.47C415.73 206.87 420.33 214.13 426.19 220.25C432.05 226.37 438.85 231.11 446.59 234.45C454.33 237.8 462.66 239.47 471.59 239.47C479.4 239.47 486.72 238.26 493.56 235.84C500.39 233.42 506.74 230.22 512.6 226.23C513.57 225.52 514.62 225.24 515.74 225.38C516.86 225.52 517.76 226.09 518.46 227.09C519.16 228.09 519.43 229.15 519.3 230.29C519.16 231.43 518.6 232.36 517.63 233.07C514.28 235.49 510.06 237.84 504.97 240.12C499.88 242.4 494.47 244.21 488.76 245.56C483.04 246.91 477.32 247.59 471.6 247.59C461.56 247.59 452.14 245.67 443.36 241.82C434.57 237.98 426.83 232.61 420.14 225.7C413.45 218.8 408.18 210.68 404.34 201.36C400.5 192.04 398.59 181.82 398.59 170.72C398.59 159.62 400.51 149.4 404.34 140.08C408.17 130.76 413.44 122.64 420.14 115.74C426.83 108.84 434.58 103.46 443.36 99.62C452.15 95.78 461.56 93.85 471.6 93.85C480.11 93.85 488.3 95.13 496.18 97.69C504.06 100.24 511.14 103.8 517.41 108.36Z",fill:"#33ABDE"})),ka||(ka=t.createElement("path",{d:"M563.56 241.17C563.56 242.31 563.14 243.3 562.31 244.16C561.48 245.02 560.5 245.44 559.38 245.44C558.12 245.44 557.11 245.01 556.35 244.16C555.58 243.31 555.2 242.31 555.2 241.17V91.6999C555.2 90.5599 555.62 89.5599 556.45 88.7099C557.29 87.8599 558.26 87.4299 559.38 87.4299C560.63 87.4299 561.64 87.8599 562.41 88.7099C563.17 89.5599 563.56 90.5599 563.56 91.6999V241.17Z",fill:"#70C4E8"})),xa||(xa=t.createElement("path",{d:"M614.44 120.95C612.21 120.95 610.43 120.31 609.11 119.03C607.78 117.75 607.12 116.11 607.12 114.12V112.41C607.12 110.42 607.82 108.78 609.21 107.5C610.6 106.22 612.42 105.58 614.65 105.58C616.6 105.58 618.24 106.22 619.57 107.5C620.89 108.78 621.56 110.42 621.56 112.41V114.12C621.56 116.12 620.9 117.75 619.57 119.03C618.24 120.31 616.53 120.95 614.44 120.95ZM618.62 241.17C618.62 242.31 618.2 243.3 617.37 244.16C616.54 245.02 615.56 245.44 614.44 245.44C613.18 245.44 612.17 245.01 611.41 244.16C610.64 243.31 610.26 242.31 610.26 241.17V139.74C610.26 138.6 610.68 137.6 611.51 136.75C612.34 135.9 613.32 135.47 614.44 135.47C615.69 135.47 616.7 135.9 617.47 136.75C618.23 137.6 618.62 138.6 618.62 139.74V241.17Z",fill:"#33ABDE"})),_a||(_a=t.createElement("path",{d:"M712.35 135.47C721.14 135.47 728.28 137.25 733.79 140.81C739.3 144.37 743.34 149.21 745.92 155.33C748.5 161.45 749.79 168.28 749.79 175.83V241.17C749.79 242.31 749.37 243.3 748.53 244.16C747.69 245.02 746.72 245.44 745.6 245.44C744.35 245.44 743.33 245.01 742.57 244.16C741.8 243.31 741.42 242.31 741.42 241.17V176.69C741.42 170.57 740.41 165.02 738.39 160.04C736.37 155.06 733.16 151.07 728.77 148.08C724.38 145.09 718.62 143.6 711.51 143.6C705.37 143.6 699.38 145.09 693.52 148.08C687.66 151.07 682.81 155.06 678.98 160.04C675.14 165.02 673.23 170.58 673.23 176.69V241.17C673.23 242.31 672.81 243.3 671.98 244.16C671.15 245.02 670.
217 245.44 669.05 245.44C667.79 245.44 666.78 245.01 666.02 244.16C665.25 243.31 664.87 242.31 664.87 241.17V143.16C664.87 142.02 665.29 141.02 666.12 140.17C666.95 139.32 667.93 138.89 669.05 138.89C670.3 138.89 671.31 139.32 672.08 140.17C672.84 141.02 673.23 142.02 673.23 143.16V164.09L668 174.34C668 169.22 669.32 164.3 671.98 159.61C674.63 154.91 678.12 150.75 682.44 147.12C686.76 143.49 691.54 140.64 696.77 138.58C701.99 136.51 707.18 135.47 712.35 135.47Z",fill:"#33ABDE"})),Ea||(Ea=t.createElement("path",{d:"M799.71 120.95C797.48 120.95 795.7 120.31 794.38 119.03C793.05 117.75 792.39 116.11 792.39 114.12V112.41C792.39 110.42 793.09 108.78 794.48 107.5C795.87 106.22 797.69 105.58 799.92 105.58C801.87 105.58 803.51 106.22 804.84 107.5C806.16 108.78 806.83 110.42 806.83 112.41V114.12C806.83 116.12 806.17 117.75 804.84 119.03C803.51 120.31 801.8 120.95 799.71 120.95ZM803.89 241.17C803.89 242.31 803.47 243.3 802.64 244.16C801.81 245.02 800.83 245.44 799.71 245.44C798.45 245.44 797.44 245.01 796.68 244.16C795.91 243.31 795.53 242.31 795.53 241.17V139.74C795.53 138.6 795.95 137.6 796.78 136.75C797.61 135.9 798.59 135.47 799.71 135.47C800.96 135.47 801.97 135.9 802.74 136.75C803.5 137.6 803.89 138.6 803.89 139.74V241.17Z",fill:"#33ABDE"})),Ca||(Ca=t.createElement("path",{d:"M896 135.47C902.28 135.47 908.17 136.18 913.68 137.61C919.19 139.03 923.65 140.92 927.07 143.27C930.49 145.62 932.2 148.07 932.2 150.64C932.2 151.64 931.81 152.6 931.05 153.52C930.28 154.45 929.34 154.91 928.23 154.91C926.69 154.91 925.47 154.48 924.57 153.63C923.66 152.78 922.72 151.75 921.75 150.53C920.77 149.32 919.24 148.22 917.15 147.22C915.19 146.23 912.44 145.37 908.89 144.66C905.33 143.95 900.97 143.59 895.81 143.59C887.72 143.59 880.33 145.73 873.63 150C866.93 154.27 861.6 160 857.63 167.19C853.65 174.38 851.67 182.46 851.67 191.42C851.67 200.53 853.52 208.72 857.21 215.98C860.9 223.24 866.07 228.97 872.69 233.17C879.31 237.37 887.02 239.47 895.81 239.47C902.09 239.47 906.86 238.87 910.14 237.65C913.42 236.44 916.24 235.12 918.61 233.7C921.54 231.99 923.56 230.36 924.68 228.79C925.79 227.23 927.12 226.44 928.65 226.44C929.77 226.44 930.64 226.8 931.27 227.51C931.9 228.22 932.21 229.15 932.21 230.29C932.21 232 930.67 234.24 927.61 237.02C924.54 239.8 920.25 242.25 914.74 244.39C909.23 246.52 902.71 247.59 895.18 247.59C885 247.59 876 245.13 868.19 240.22C860.38 235.31 854.28 228.62 849.88 220.15C845.49 211.68 843.29 202.11 843.29 191.43C843.29 181.47 845.49 172.25 849.88 163.78C854.27 155.31 860.41 148.48 868.29 143.28C876.16 138.07 885.4 135.47 896 135.47Z",fill:"#33ABDE"})),Sa||(Sa=t.createElement("path",{d:"M1053.37 138.89C1054.63 138.89 1055.64 139.32 1056.4 140.17C1057.16 141.02 1057.55 142.02 1057.55 143.16V241.17C1057.55 242.31 1057.13 243.3 1056.3 244.16C1055.46 245.01 1054.49 245.44 1053.37 245.44C1052.12 245.44 1051.1 245.01 1050.34 244.16C1049.57 243.31 1049.19 242.31 1049.19 241.17V210.85L1052.54 208.07C1052.54 212.63 1051.42 217.25 1049.19 221.95C1046.96 226.65 1043.89 230.92 1039.98 234.76C1036.07 238.6 1031.47 241.7 1026.17 244.05C1020.87 246.4 1015.15 247.57 1009.01 247.57C999.66 247.57 991.33 245.08 984.01 240.1C976.69 235.12 970.93 228.36 966.75 219.82C962.57 211.28 960.47 201.67 960.47 190.99C960.47 180.17 962.59 170.6 966.85 162.27C971.1 153.94 976.89 147.4 984.21 142.63C991.53 137.86 999.8 135.48 1009 135.48C1015 135.48 1020.64 136.58 1025.95 138.79C1031.25 141 1035.89 144.09 1039.86 148.08C1043.83 152.07 1046.94 156.73 1049.17 162.07C1051.4 167.41 1052.52 173.21 1052.52 179.47L1049.17 174.13V143.17C1049.17 142.03 1049.55 141.03 1050.32 140.18C1051.1 139.32 1052.12 138.89 1053.37 138.89ZM1009.44 239.46C1017.25 239.46 1024.22 237.36 1030.36 233.16C1036.5 228.96 1041.31 223.2 1044.8 215.86C1048.28 208.53 1050.03 200.24 1050.03 190.98C1050.03 182.16 1048.28 174.15 1044.8 166.96C1041.31 159.77 1036.5 154.08 1030.36 149.88C1024.22 145.68 1017.25 143.58 1009.44 143.58C1001.77 143.58 994.86 145.61 988.73 149.67C982.59 153.73 977.75 159.32 974.19 166.43C970.63 173.55 968.86 181.73 968.86 190.99C968.86 200.24 970.6 208.53 974.09 215.87C977.57 223.2 982.39 228.97 988.52 233.17C994.65 237.36 1001.62 239.46 1009.44 239.46Z",fill:"#33ABDE"})),Oa||(Oa=t.createElement("path",{d:"M1112.66 241.17C1112.66 242.31 1112.24 243.3 1111.41 244.16C1110.58 245.02 1109.6 245.44 1108.48 245.44C1107.22 245.44 1106.21 245.01 1105.45 244.16C1104.68 243.31 1104.3 242.31 1104.3 241.17V91.6999C1104.3 90.5599 1104.72 89.5599 1105.55 88.7099C1106.39 87.8599 1107.36 87.4299 1108.48 87.4299C1109.73 87.4299 1110.74 87.8599 1111.51 88.7099C1112.27 89.5599 1112.66 90.5599 1112.66 91.6999V241.17Z",fill:"#33ABDE"})),Ta||(Ta=t.createElement("path",{d:"M1216.19 95.97C1224.14 95.97 1231.08 97.68 1237.01 101.09C1242.94 104.51 1247.54 109.28 1250.82 115.4C1254.1 121.52 1255.74 128.64 1255.74 136.75C1255.74 144.72 1254.1 151.91 1250.82 158.32C1247.54 164.73 1242.94 169.78 1237.01 173.48C1231.08 177.18 1224.14 179.03 1216.19 179.03H1169.75L1170.59 177.53V241.16C1170.59 242.3 1170.14 243.29 1169.23 244.15C1168.32 245 1167.31 245.43 1166.2 245.43C1164.8 245.43 1163.72 245 1162.96 244.15C1162.19 243.3 1161.81 242.3 1161.81 241.16V100.24C1161.81 99.1 1162.23 98.1 1163.06 97.25C1163.9 96.4 1164.87 95.97 1165.99 95.97H1216.19ZM1216.19 170.49C1222.6 170.49 1228.08 169.03 1232.61 166.11C1237.14 163.19 1240.66 159.17 1243.18 154.05C1245.
269 148.93 1246.95 143.16 1246.95 136.75C1246.95 130.2 1245.69 124.55 1243.18 119.77C1240.67 115 1237.15 111.27 1232.61 108.56C1228.08 105.86 1222.6 104.5 1216.19 104.5H1169.96L1170.59 103.43V171.12L1169.75 170.48H1216.19V170.49Z",fill:"black"})),Aa||(Aa=t.createElement("path",{d:"M1337.6 137.61C1345.97 137.61 1352.9 139.46 1358.42 143.16C1363.93 146.86 1368.04 151.84 1370.76 158.11C1373.48 164.38 1374.84 171.28 1374.84 178.82V241.17C1374.84 242.31 1374.42 243.3 1373.59 244.16C1372.76 245.02 1371.78 245.44 1370.66 245.44C1369.41 245.44 1368.39 245.01 1367.63 244.16C1366.86 243.31 1366.48 242.31 1366.48 241.17V178.82C1366.48 172.7 1365.5 167.15 1363.55 162.17C1361.59 157.19 1358.53 153.2 1354.34 150.21C1350.16 147.22 1344.58 145.73 1337.6 145.73C1331.6 145.73 1325.74 147.22 1320.03 150.21C1314.31 153.2 1309.6 157.19 1305.91 162.17C1302.21 167.15 1300.37 172.71 1300.37 178.82V241.17C1300.37 242.31 1299.95 243.3 1299.12 244.16C1298.29 245.02 1297.31 245.44 1296.19 245.44C1294.93 245.44 1293.92 245.01 1293.16 244.16C1292.39 243.31 1292.01 242.31 1292.01 241.17V91.6999C1292.01 90.5599 1292.43 89.5599 1293.26 88.7099C1294.1 87.8599 1295.07 87.4299 1296.19 87.4299C1297.44 87.4299 1298.45 87.8599 1299.22 88.7099C1299.98 89.5599 1300.37 90.5599 1300.37 91.6999V166.22L1295.14 176.47C1295.14 171.35 1296.4 166.43 1298.91 161.74C1301.42 157.04 1304.73 152.88 1308.85 149.25C1312.96 145.62 1317.53 142.77 1322.55 140.71C1327.55 138.64 1332.58 137.61 1337.6 137.61Z",fill:"black"})),Ia||(Ia=t.createElement("path",{d:"M1498.62 135.47C1499.87 135.47 1500.89 135.9 1501.65 136.75C1502.41 137.6 1502.8 138.6 1502.8 139.74V234.97C1502.8 245.93 1500.64 255.39 1496.31 263.37C1491.99 271.34 1486.13 277.46 1478.74 281.73C1471.35 286 1462.91 288.14 1453.43 288.14C1447.01 288.14 1441.26 287.36 1436.17 285.79C1431.08 284.22 1426.93 282.3 1423.72 280.02C1422.74 279.31 1421.97 278.45 1421.42 277.46C1420.86 276.46 1420.86 275.4 1421.42 274.26C1421.98 273.12 1422.78 272.34 1423.83 271.91C1424.88 271.48 1425.89 271.62 1426.86 272.34C1429.23 273.76 1432.82 275.47 1437.63 277.46C1442.44 279.45 1447.85 280.45 1453.84 280.45C1461.93 280.45 1469.01 278.53 1475.07 274.69C1481.14 270.85 1485.88 265.51 1489.3 258.68C1492.72 251.85 1494.42 243.95 1494.42 234.98V219.18L1494.84 224.52C1492.88 228.79 1489.92 232.67 1485.95 236.16C1481.98 239.65 1477.51 242.43 1472.56 244.49C1467.61 246.55 1462.48 247.59 1457.18 247.59C1448.53 247.59 1441.45 245.84 1435.94 242.36C1430.43 238.87 1426.39 234.07 1423.81 227.95C1421.23 221.83 1419.94 214.64 1419.94 206.38V139.76C1419.94 138.62 1420.32 137.62 1421.09 136.77C1421.85 135.92 1422.87 135.49 1424.12 135.49C1425.37 135.49 1426.38 135.92 1427.15 136.77C1427.91 137.62 1428.3 138.62 1428.3 139.76V206.38C1428.3 216.49 1430.5 224.53 1434.89 230.51C1439.28 236.49 1446.71 239.48 1457.17 239.48C1463.45 239.48 1469.41 237.88 1475.06 234.68C1480.71 231.48 1485.34 227.31 1488.97 222.19C1492.6 217.07 1494.41 211.8 1494.41 206.39V139.77C1494.41 138.63 1494.79 137.63 1495.56 136.78C1496.35 135.9 1497.37 135.47 1498.62 135.47Z",fill:"black"})),Na||(Na=t.createElement("path",{d:"M1542.64 228.36C1541.66 226.65 1541.21 225.26 1541.28 224.2C1541.35 223.13 1541.87 222.24 1542.85 221.53C1543.55 220.82 1544.49 220.5 1545.67 220.57C1546.85 220.64 1547.87 221.18 1548.7 222.17C1552.32 227.44 1556.96 231.71 1562.61 234.98C1568.26 238.26 1574.92 239.89 1582.59 239.89C1587.19 239.89 1591.62 239.11 1595.88 237.54C1600.13 235.98 1603.62 233.63 1606.34 230.49C1609.06 227.36 1610.42 223.52 1610.42 218.96C1610.42 214.12 1609.09 210.24 1606.44 207.32C1603.79 204.4 1600.37 202.09 1596.19 200.38C1592.01 198.67 1587.61 197.25 1583.01 196.11C1578.13 194.83 1573.49 193.37 1569.1 191.73C1564.71 190.1 1560.84 188.03 1557.49 185.54C1554.14 183.05 1551.49 180.1 1549.54 176.68C1547.58 173.26 1546.61 169.21 1546.61 164.51C1546.61 158.96 1548.07 153.98 1551 149.56C1553.93 145.15 1558.04 141.7 1563.34 139.2C1568.64 136.71 1574.77 135.46 1581.75 135.46C1585.1 135.46 1588.65 135.89 1592.42 136.74C1596.19 137.59 1599.95 139.06 1603.72 141.12C1607.49 143.18 1610.97 146.07 1614.18 149.77C1615.29 150.62 1615.82 151.66 1615.75 152.87C1615.68 154.08 1615.16 155.19 1614.18 156.
218C1613.34 156.75 1612.43 157.03 1611.46 157.03C1610.48 157.03 1609.65 156.6 1608.95 155.75C1605.32 151.62 1601.1 148.56 1596.29 146.57C1591.48 144.58 1586.35 143.58 1580.91 143.58C1576.31 143.58 1572.02 144.36 1568.04 145.93C1564.07 147.5 1560.82 149.81 1558.31 152.87C1555.8 155.93 1554.54 159.81 1554.54 164.51C1554.82 168.92 1556.32 172.55 1559.04 175.4C1561.76 178.25 1565.38 180.6 1569.92 182.45C1574.45 184.3 1579.58 186.01 1585.3 187.57C1589.9 188.71 1594.19 190.03 1598.17 191.52C1602.15 193.02 1605.63 194.9 1608.63 197.18C1611.63 199.46 1614 202.3 1615.74 205.72C1617.48 209.14 1618.36 213.41 1618.36 218.53C1618.36 224.51 1616.79 229.67 1613.65 234.01C1610.51 238.35 1606.19 241.7 1600.68 244.05C1595.17 246.4 1588.86 247.57 1581.75 247.57C1574.5 247.57 1567.52 246.07 1560.83 243.09C1554.15 240.1 1548.08 235.19 1542.64 228.36Z",fill:"black"})),Pa||(Pa=t.createElement("path",{d:"M1660.63 120.95C1658.4 120.95 1656.62 120.31 1655.3 119.03C1653.97 117.75 1653.31 116.11 1653.31 114.12V112.41C1653.31 110.42 1654.01 108.78 1655.4 107.5C1656.79 106.22 1658.61 105.58 1660.84 105.58C1662.79 105.58 1664.43 106.22 1665.76 107.5C1667.08 108.78 1667.75 110.42 1667.75 112.41V114.12C1667.75 116.12 1667.09 117.75 1665.76 119.03C1664.43 120.31 1662.72 120.95 1660.63 120.95ZM1664.82 241.17C1664.82 242.31 1664.4 243.3 1663.57 244.16C1662.74 245.02 1661.76 245.44 1660.64 245.44C1659.38 245.44 1658.37 245.01 1657.61 244.16C1656.84 243.31 1656.46 242.31 1656.46 241.17V139.74C1656.46 138.6 1656.88 137.6 1657.71 136.75C1658.54 135.9 1659.52 135.47 1660.64 135.47C1661.89 135.47 1662.9 135.9 1663.67 136.75C1664.43 137.6 1664.82 138.6 1664.82 139.74V241.17Z",fill:"black"})),ja||(ja=t.createElement("path",{d:"M1807.35 191.63C1807.35 202.17 1805.12 211.67 1800.65 220.14C1796.19 228.61 1790.09 235.3 1782.34 240.21C1774.6 245.12 1765.78 247.58 1755.88 247.58C1746.12 247.58 1737.33 245.12 1729.52 240.21C1721.71 235.3 1715.54 228.61 1711 220.14C1706.47 211.67 1704.2 202.17 1704.2 191.63C1704.2 180.95 1706.47 171.38 1711 162.91C1715.53 154.44 1721.7 147.75 1729.52 142.84C1737.33 137.93 1746.12 135.47 1755.88 135.47C1765.78 135.47 1774.6 137.93 1782.34 142.84C1790.08 147.75 1796.18 154.44 1800.65 162.91C1805.11 171.38 1807.35 180.95 1807.35 191.63ZM1798.98 191.63C1798.98 182.38 1797.13 174.16 1793.44 166.97C1789.74 159.78 1784.65 154.09 1778.17 149.89C1771.68 145.69 1764.26 143.59 1755.89 143.59C1747.66 143.59 1740.27 145.69 1733.71 149.89C1727.15 154.09 1721.99 159.79 1718.23 166.97C1714.46 174.16 1712.58 182.38 1712.58 191.63C1712.58 200.74 1714.46 208.89 1718.23 216.08C1722 223.27 1727.15 228.96 1733.71 233.16C1740.26 237.36 1747.66 239.46 1755.89 239.46C1764.26 239.46 1771.69 237.36 1778.17 233.16C1784.66 228.96 1789.75 223.27 1793.44 216.08C1797.13 208.89 1798.98 200.74 1798.98 191.63Z",fill:"black"})),Ra||(Ra=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M124.04 314.34C119.29 292.68 97.1002 294.59 90.0202 276.97C90.5602 269.18 88.6702 258.12 91.5002 253.37C116.38 250.73 125.75 284.15 155.1 276.97C155.1 276.97 158.78 275.76 164.44 274.59C162.9 271.93 160.85 270.09 158.06 269.48C146.64 269.58 134.6 270.51 127 265.54C120.33 248.61 127.28 229.14 124.04 214.4C119.29 192.74 97.1002 194.65 90.0202 177.03C90.5602 169.23 88.6702 158.18 91.5002 153.42C116.38 150.79 125.75 184.21 155.1 177.03C155.1 177.03 158.78 175.83 164.44 174.65C162.9 172 160.85 170.16 158.06 169.55C146.64 169.65 134.6 170.57 127 165.61C120.33 148.67 127.28 129.21 124.04 114.46C119.29 92.8 97.1002 94.71 90.0202 77.09C90.5602 69.3 88.6702 58.24 91.5002 53.49C116.38 50.86 125.75 84.28 155.1 77.09C155.1 77.09 158.78 75.88 164.44 74.71C162.9 72.06 160.85 70.22 158.06 69.61C146.64 69.71 134.6 70.63 127 65.68C120.33 48.74 127.28 29.27 124.04 14.53C122.59 7.94999 119.53 3.56 115.77 0.119995C48.3502 25.45 0.470215 89.3 0.470215 164.11C0.470215 242.19 52.6102 308.33 124.7 331.2C125.05 325.22 125.17 319.49 124.04 314.34Z",fill:"#33ABDE"})),La||(La=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M245.7 0.5C242.12 3.86 238.89 7.7 236.44 12.57C235.72 30.64 238.56 53.42 233.48 65.69C219.52 74.2 214.04 65.35 203.91 69.62C201.55 70.61 199.66 72.12 198.1 73.98C201.16 74.7 204.11 75.71 206.86 77.1C237.65 83.55 245.33 50.12 268.98 53.5C271.9 58.81 269.87 70.69 270.46 79.07C260.31 91.78 244.36 96.81 236.44 112.51C235.72 130.57 238.56 153.37 233.48 165.62C219.52 174.13 214.04 165.28 203.91 169.56C201.55 170.55 199.66 172.07 198.1 173.93C201.15 174.64 204.11 175.65 206.86 177.05C237.65 183.5 245.33 150.07 268.98 153.44C271.9 158.75 269.87 170.63 270.46 179C260.31 191.72 244.36 196.74 236.44 212.44C235.72 230.5 238.56 253.29 233.48 265.55C219.52 274.06 214.04 265.22 203.91 269.49C201.55 270.49 199.66 272 198.1 273.85C201.16 274.56 204.11 275.57 206.86 276.97C237.65 283.42 245.33 249.99 268.98 253.37C271.9 258.67 269.87 270.55 270.46 278.93C260.31 291.64 244.36 296.68 236.44 312.38C236.21 318.26 236.35 324.64 236.47 330.99C308.21 307.92 360.02 241.95 360.02 164.12C360.02 89.67 312.61 26.09 245.7 0.5Z",fill:"#231F20"})),t.createElement("mask",{id:"mask0_1043_17142",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:6,y:4,width:116,height:218}
2,Ma||(Ma=t.createElement("path",{d:"M106.41 151.83C111.99 154.25 116.84 158.05 121.62 161.8C119.44 153.08 119.92 144.03 120.49 135.14C121 127.27 121.92 118.71 118.89 111.23C115.96 103.99 109.45 100 103.18 96.09C96.1503 91.7 89.5503 86.68 86.3303 78.65L85.9803 77.77L86.0503 76.82C86.6403 68.81 83.8103 58.67 88.1003 51.39L89.1303 49.67L91.0903 49.46C103.05 48.24 112.6 54.77 121.62 61.88C119.04 51.56 120.22 40.92 120.78 30.44C121.27 21.45 121.15 11.9 114.8 4.90997C58.0603 27.17 16.0403 77.38 6.55029 138C30.1403 177.75 71.1803 208.35 120.86 221.82C120.42 211.15 115.79 204.12 107.07 198.49C98.8203 193.16 90.2103 188.29 86.3203 178.6L85.9703 177.72L86.0403 176.77C86.6203 168.76 83.8003 158.62 88.0903 151.34L89.1203 149.61L91.0803 149.39C96.3403 148.86 101.56 149.72 106.41 151.83C110.07 153.42 102.76 150.24 106.41 151.83Z",fill:"url(#paint0_linear_1043_17142)"}))),Da||(Da=t.createElement("g",{mask:"url(#mask0_1043_17142)"},t.createElement("path",{opacity:.3,d:"M106.41 151.83C111.99 154.25 116.84 158.05 121.62 161.8C119.44 153.08 119.92 144.03 120.49 135.14C121 127.27 121.92 118.71 118.89 111.23C115.96 103.99 109.45 100 103.18 96.09C96.1503 91.7 89.5503 86.68 86.3303 78.65L85.9803 77.77L86.0503 76.82C86.6403 68.81 83.8103 58.67 88.1003 51.39L89.1303 49.67L91.0903 49.46C103.05 48.24 112.6 54.77 121.62 61.88C119.04 51.56 120.22 40.92 120.78 30.44C121.27 21.45 121.15 11.9 114.8 4.90997C58.0603 27.17 16.0403 77.38 6.55029 138C30.1403 177.75 71.1803 208.35 120.86 221.82C120.42 211.15 115.79 204.12 107.07 198.49C98.8203 193.16 90.2103 188.29 86.3203 178.6L85.9703 177.72L86.0403 176.77C86.6203 168.76 83.8003 158.62 88.0903 151.34L89.1203 149.61L91.0803 149.39C96.3403 148.86 101.56 149.72 106.41 151.83C110.07 153.42 102.76 150.24 106.41 151.83Z",fill:"url(#paint1_linear_1043_17142)"}))),t.createElement("mask",{id:"mask1_1043_17142",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:238,y:5,width:115,height:216},Fa||(Fa=t.createElement("path",{d:"M246.62 5.27997C244.22 7.75997 242.13 10.49 240.4 13.69C239.88 29.85 242.69 47.09 238.55 62.91C247.63 55.44 257.09 47.67 269.53 49.47L271.49 49.75L272.45 51.51C276.76 59.44 273.84 70.15 274.43 78.78L274.54 80.39L273.54 81.64C263.84 93.75 247.91 99.63 240.4 113.68C239.88 129.82 242.69 147.04 238.55 162.84C247.63 155.38 257.09 147.59 269.53 149.41L271.49 149.69L272.45 151.44C276.76 159.37 273.84 170.08 274.43 178.71L274.54 180.32L273.54 181.57C263.84 193.67 247.91 199.55 240.4 213.61C240.33 215.79 240.31 217.98 240.31 220.16C290.22 205.06 330.76 172.47 352.69 130.91C341.21 73.81 300.67 26.83 246.62 5.27997Z",fill:"url(#paint2_linear_1043_17142)"}))),Ba||(Ba=t.createElement("g",{mask:"url(#mask1_1043_17142)"},t.createElement("path",{opacity:.3,d:"M246.62 5.27997C244.22 7.75997 242.13 10.49 240.4 13.69C239.88 29.85 242.69 47.09 238.55 62.91C247.63 55.44 257.09 47.67 269.53 49.47L271.49 49.75L272.45 51.51C276.76 59.44 273.84 70.15 274.43 78.78L274.54 80.39L273.54 81.64C263.84 93.75 247.91 99.63 240.4 113.68C239.88 129.82 242.69 147.04 238.55 162.84C247.63 155.38 257.09 147.59 269.53 149.41L271.49 149.69L272.45 151.44C276.76 159.37 273.84 170.08 274.43 178.71L274.54 180.32L273.54 181.57C263.84 193.67 247.91 199.55 240.4 213.61C240.33 215.79 240.31 217.98 240.31 220.16C290.22 205.06 330.76 172.47 352.69 130.91C341.21 73.81 300.67 26.83 246.62 5.27997Z",fill:"url(#paint3_linear_1043_17142)"})))),Ua||(Ua=t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_1043_17142",x1:64.0858,y1:-35.9352,x2:64.0858,y2:392.182,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"white"}),t.createElement("stop",{offset:.0629,stopColor:"#DADADA"}),t.createElement("stop",{offset:.1601,stopColor:"#A7A7A7"}),t.createElement("stop",{offset:.2621,stopColor:"#7B7B7B"}),t.createElement("stop",{offset:.3668,stopColor:"#555555"}),t.createElement("stop",{offset:.475,stopColor:"#363636"}),t.createElement("stop",{offset:.5878,stopColor:"#1E1E1E"}),t.createElement("stop",{offset:.7072,stopColor:"#0D0D0D"}),t.createElement("stop",{offset:.8376,stopColor:"#030303"}),t.createElement("stop",{offset:1})),t.createElement("linearGradient",{id:"paint1_linear_1043_17142",x1:64.0858,y1:-35.9352,x2:64.0858,y2:392.182,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"white"}),t.createElement("stop",{offset:.0896,stopColor:"white"}),t.createElement("stop",{offset:1,stopColor:"white"})),t.createElement("linearGradient",{id:"paint2_linear_1043_17142",x1:295.62,y1:-35.9361,x2:295.62,y2:392.18,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"white"}),t.createElement("stop",{offset:.0629,stopColor:"#DADADA"}),t.createElement("stop",{offset:.1601,stopColor:"#A7A7A7"}),t.createElement("stop",{offset:.2621,stopColor:"#7B7B7B"}),t.createElement("stop",{offset:.3668,stopColor:"#555555"}),t.createElement("stop",{offset:.475,stopColor:"#363636"}),t.createElement("stop",{offset:.5878,stopColor:"#1E1E1E"}),t.createElement("stop",{offset:.7072,stopColor:"#0D0D0D"}),t.createElement("stop",{offset:.8376,stopColor:"#030303"}),t.createElement("stop",{offset:1})),t.createElement("linearGradient",{id:"paint3_linear_1043_17142",x1:295.62,y1:-35.9361,x2:295.62,y2:392.18,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"white"}),t.createElement("stop",{offset:.0896,stopColor:"white"}),t.createElement("stop",{offset:1,stopColor:"white"})),t.createElement("clipPath",{id:"clip0_1043_17142"},t.createElement("rect",{width:1808,height:332,fill:"white"})))))}var Ga,$a=t.forwardRef(Ka),Ya=(n.p,function(){return(0,ea.jsx)("div",{className:"logo",children:(0,ea.jsx)(la,{className:"logo__link",to:"/",children:(0,ea.jsx)($a,{className:"logo__icon"})})})}),Qa=["title","titleId"];function Xa(){return Xa=Object.assign||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},Xa.apply(this,arguments)}function Za(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ja(e,n){var r=e.title,i=e.titleId,o=Za(e,Qa);return t.createElement("svg",Xa({xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",width:40,height:40,ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,Ga||(Ga=t.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M112 304h288M112 208h288"})))}var es,ts=t.forwardRef(Ja),ns=(n.p,["title","titleId"]);function rs(){return rs=Object.assign||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},rs.apply(this,arguments)}function is(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function os(e,n){var r=e.title,i=e.titleId,o=is(e,ns);return t.createElement("svg",rs({xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,es||(es=t.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M368 368L144 144m224 0L144 368"})))}var as=t.forwardRef(os),ss=(n.p,function(){return ss=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ss.apply(this,arguments)});function us(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function ls(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function cs(){return cs=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},cs.apply(this,arguments)}function fs(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var hs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
2ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ds=fs((function(e){return hs.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var ps=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,330 bytes, line 2
2,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),vs="-ms-",ys="-moz-",ms="-webkit-",gs="comm",bs="rule",ws="decl",ks="@keyframes",xs=Math.abs,_s=String.fromCharCode,Es=Object.assign;function Cs(e){return e.trim()}function Ss(e,t,n){return e.replace(t,n)}function Os(e,t){return e.indexOf(t)}function Ts(e,t){return 0|e.charCodeAt(t)}function As(e,t,n){return e.slice(t,n)}function Is(e){return e.length}function Ns(e){return e.length}function Ps(e,t){return t.push(e),e}var js=1,Rs=1,Ls=0,Ms=0,Ds=0,Fs="";function Bs(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:js,column:Rs,length:a,return:""}}function Us(e,t){return Es(Bs("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vs(){return Ds=Ms>0?Ts(Fs,--Ms):0,Rs--,10===Ds&&(Rs=1,js--),Ds}function qs(){return Ds=Ms<Ls?Ts(Fs,Ms++):0,Rs++,10===Ds&&(Rs=1,js++),Ds}function zs(){return Ts(Fs,Ms)}function Hs(){return Ms}function Ws(e,t){return As(Fs,e,t)}function Ks(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gs(e){return js=Rs=1,Ls=Is(Fs=e),Ms=0,[]}function $s(e){return Fs="",e}function Ys(e){return Cs(Ws(Ms-1,Zs(91===e?e+2:40===e?e+1:e)))}function Qs(e){for(;(Ds=zs())&&Ds<33;)qs();return Ks(e)>2||Ks(Ds)>3?"":" "}function Xs(e,t){for(;--t&&qs()&&!(Ds<48||Ds>102||Ds>57&&Ds<65||Ds>70&&Ds<97););return Ws(e,Hs()+(t<6&&32==zs()&&32==qs()))}function Zs(e){for(;qs();)switch(Ds){case e:return Ms;case 34:case 39:34!==e&&39!==e&&Zs(Ds);break;case 40:41===e&&Zs(e);break;case 92:qs()}return Ms}function Js(e,t){for(;qs()&&e+Ds!==57&&(e+Ds!==84||47!==zs()););return"/*"+Ws(t,Ms-1)+"*"+_s(47===e?e:qs())}function eu(e){for(;!Ks(zs());)qs();return Ws(e,Ms)}function tu(e){return $s(nu("",null,null,null,[""],e=Gs(e),0,[0],e))}function nu(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,f=a,h=0,d=0,p=0,v=1,y=1,m=1,g=0,b="",w=i,k=o,x=r,_=b;y;)switch(p=g,g=qs()){case 40:if(108!=p&&58==Ts(_,f-1)){-1!=Os(_+=Ss(Ys(g),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:_+=Ys(g);break;case 9:case 10:case 13:case 32:_+=Qs(p);break;case 92:_+=Xs(Hs()-1,7);continue;case 47:switch(zs()){case 42:case 47:Ps(iu(Js(qs(),Hs()),t,n),u);break;default:_+="/"}break;case 123*v:s[l++]=Is(_)*m;case 125*v:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+c:d>0&&Is(_)-f&&Ps(d>32?ou(_+";",r,n,f-1):ou(Ss(_," ","")+";",r,n,f-2),u);break;case 59:_+=";";default:if(Ps(x=ru(_,t,n,l,c,i,s,b,w=[],k=[],f),o),123===g)if(0===c)nu(_,t,x,x,w,o,f,s,k);else switch(99===h&&110===Ts(_,3)?100:h){case 100:case 109:case 115:nu(e,x,x,r&&Ps(ru(e,x,x,0,0,i,s,b,i,w=[],f),k),i,k,f,s,r?w:k);break;default:nu(_,x,x,x,[""],k,0,s,k)}}l=c=d=0,v=m=1,b=_="",f=a;break;case 58:f=1+Is(_),d=p;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==Vs())continue;switch(_+=_s(g),g*v){case 38:m=c>0?1:(_+="\f",-1);break;case 44:s[l++]=(Is(_)-1)*m,m=1;break;case 64:45===zs()&&(_+=Ys(qs())),h=zs(),c=f=Is(b=_+=eu(Hs())),g++;break;case 45:45===p&&2==Is(_)&&(v=0)}}return o}function ru(e,t,n,r,i,o,a,s,u,l,c){for(var f=i-1,h=0===i?o:[""],d=Ns(h),p=0,v=0,y=0;p<r;++p)for(var m=0,g=As(e,f+1,f=xs(v=a[p])),b=e;m<d;++m)(b=Cs(v>0?h[m]+" "+g:Ss(g,/&\f/g,h[m])))&&(u[y++]=b);return Bs(e,t,n,0===i?bs:s,u,l,c)}function iu(e,t,n){return Bs(e,t,n,gs,_s(Ds),As(e,2,-2),0)}function ou(e,t,n,r){return Bs(e,t,n,ws,As(e,0,r),As(e,r+1,-1),r)}function au(e,t){for(var n="",r=Ns(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function su(e,t,n,r){switch(e.type){case"@import":case ws:return e.return=e.return||e.value;case gs:return"";case ks:return e.return=e.value+"{"+au(e.children,r)+"}";case bs:e.value=e.props.join(",")}return Is(n=au(e.children,r))?e.return=e.value+"{"+n+"}":""}function uu(e){var t=Ns(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var lu=function(e,t,n){for(var r=0,i=0;r=i,i=zs(),38===r&&12===i&&(t[n]=1),!Ks(i);)qs();return Ws(e,Ms)},cu=function(e,t){return $s(function(e,t){var n=-1,r=44;do{switch(Ks(r)){case 0:38===r&&12===zs()&&(t[n]=1),e[n]+=lu(Ms-1,t,n);break;case 2:e[n]+=Ys(r);break;case 4:if(44===r){e[++n]=58===zs()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=_s(r)}}while(r=qs());return e}(Gs(e),t))},fu=new WeakMap,hu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fu.get(n))&&!r){fu.set(e,!0);for(var i=[],o=cu(t,i),a=n.props,s=0,u=0;s<o.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},du=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function pu(e,t){switch(function(e,t){return 45^Ts(e,0)?(((t<<2^Ts(e,0))<<2^Ts(e,1))<<2^Ts(e,2))<<2^Ts(e,3):0}(e,t)){case 5103:return"-webkit-print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ms+e+e;
2case 5349:case 4246:case 4810:case 6968:case 2756:return ms+e+ys+e+vs+e+e;case 6828:case 4268:return ms+e+vs+e+e;case 6165:return ms+e+vs+"flex-"+e+e;case 5187:return ms+e+Ss(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return ms+e+vs+"flex-item-"+Ss(e,/flex-|-self/,"")+e;case 4675:return ms+e+vs+"flex-line-pack"+Ss(e,/align-content|flex-|-self/,"")+e;case 5548:return ms+e+vs+Ss(e,"shrink","negative")+e;case 5292:return ms+e+vs+Ss(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+Ss(e,"-grow","")+ms+e+vs+Ss(e,"grow","positive")+e;case 4554:return ms+Ss(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Ss(Ss(Ss(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return Ss(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return Ss(Ss(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+ms+e+e;case 4095:case 3583:case 4068:case 2532:return Ss(e,/(.+)-inline(.+)/,"-webkit-$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Is(e)-1-t>6)switch(Ts(e,t+1)){case 109:if(45!==Ts(e,t+4))break;case 102:return Ss(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Ts(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Os(e,"stretch")?pu(Ss(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ts(e,t+1))break;case 6444:switch(Ts(e,Is(e)-3-(~Os(e,"!important")&&10))){case 107:return Ss(e,":",":-webkit-")+e;case 101:return Ss(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Ts(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(Ts(e,t+11)){case 114:return ms+e+vs+Ss(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ms+e+vs+Ss(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ms+e+vs+Ss(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ms+e+vs+e+e}return e}var vu="undefined"!==typeof document,yu=vu?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return fs((function(){var e={};return function(t){return e[t]}}))})),mu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ws:e.return=pu(e.value,e.length);break;case ks:return au([Us(e,{value:Ss(e.value,"@","@-webkit-")})],r);case bs:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return au([Us(e,{props:[Ss(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return au([Us(e,{props:[Ss(t,/:(plac\w+)/,":-webkit-input-$1")]}),Us(e,{props:[Ss(t,/:(plac\w+)/,":-moz-$1")]}),Us(e,{props:[Ss(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],gu=function(e){var t=e.key;if(vu&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||mu;var i,o,a={},s=[];vu&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var u,l=[hu,du];if(vu){var c,f=[su,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],h=uu(l.concat(r,f));o=function(e,t,n,r){c=n,function(e){au(tu(e),h)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)}}else{var d=[su],p=uu(l.concat(r,d)),v=yu(r)(t),y=function(e,t){var n=t.name;return void 0===v[n]&&(v[n]=function(e){return au(tu(e),p)}(e?e+"{"+t.styles+"}":t.styles)),v[n]};o=function(e,t,n,r){var i=t.name,o=y(e,t);return void 0===m.compat?(r&&(m.inserted[i]=!0),o):r?void(m.inserted[i]=o):o}}var m={key:t,sheet:new ps({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return m.sheet.hydrate(s),m};var bu="undefined"!==typeof document,wu=function(e){return e()},ku=!!r.useInsertionEffect&&r.useInsertionEffect,xu=bu&&ku||wu,_u="undefined"!==typeof document,Eu=(0,t.createContext)("undefined"!==typeof HTMLElement?gu({key:"css"}):null);Eu.Provider;var Cu=function(e){return(0,t.forwardRef)((function(n,r){var i=(0,t.useContext)(Eu);return e(n,i,r)}))};_u||(Cu=function(e){return function(n){var r=(0,t.useContext)(Eu);return null===r?(r=gu({key:"css"}),(0,t.createElement)(Eu.Provider,{value:r},e(n,r))):e(n,r)}});var Su=(0,t.createContext)({});var Ou="undefined"!==typeof document;function Tu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Au=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Ou&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var Iu={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
2idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Nu=/[A-Z]|^ms/g,Pu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ju=function(e){return 45===e.charCodeAt(1)},Ru=function(e){return null!=e&&"boolean"!==typeof e},Lu=fs((function(e){return ju(e)?e:e.replace(Nu,"-$&").toLowerCase()})),Mu=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(Pu,(function(e,t,n){return Fu={name:t,styles:n,next:Fu},t}))}return 1===Iu[e]||ju(e)||"number"!==typeof t||0===t?t:t+"px"};function Du(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Fu={name:n.name,styles:n.styles,next:Fu},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Fu={name:r.name,styles:r.styles,next:Fu},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Du(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Ru(a)&&(r+=Lu(o)+":"+Mu(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Du(e,t,a);switch(o){case"animation":case"animationName":r+=Lu(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)Ru(a[u])&&(r+=Lu(o)+":"+Mu(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=Fu,o=n(e);return Fu=i,Du(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Fu,Bu=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Uu=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Fu=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Du(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=Du(n,t,e[a]),r&&(i+=o[a]);Bu.lastIndex=0;for(var s,u="";null!==(s=Bu.exec(i));)u+="-"+s[1];var l=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+u;return{name:l,styles:i,next:Fu}},Vu=ds,qu=function(e){return"theme"!==e},zu=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?Vu:qu},Hu=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},Wu="undefined"!==typeof document,Ku=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;Au(n,r,i);var o=xu((function(){return function(e,t,n){Au(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);Ou||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!Ou&&0!==i.length)return i}}(n,r,i)}));if(!Wu&&void 0!==o){for(var a,s=r.name,u=r.next;void 0!==u;)s+=" "+u.name,u=u.next;return(0,t.createElement)("style",((a={})["data-emotion"]=n.key+" "+s,a.dangerouslySetInnerHTML={__html:o},a.nonce=n.sheet.nonce,a))}return null},Gu=function e(n,r){var i,o,a=n.__emotion_real===n,s=a&&n.__emotion_base||n;void 0!==r&&(i=r.label,o=r.target);var u=Hu(n,r,a),l=u||zu(s),c=!l("as");return function(){var f=arguments,h=a&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==i&&h.push("label:"+i+";"),null==f[0]||void 0===f[0].raw)h.push.apply(h,f);else{0,h.push(f[0][0]);for(var d=f.length,p=1;p<d;p++)h.push(f[p],f[0][p])}var v=Cu((function(e,n,r){var i=c&&e.as||s,a="",f=[],d=e;if(null==e.theme){for(var p in d={},e)d[p]=e[p];d.theme=(0,t.useContext)(Su)}"string"===typeof e.className?a=Tu(n.registered,f,e.className):null!=e.className&&(a=e.className+" ");var v=Uu(h.concat(f),n.registered,d);a+=n.key+"-"+v.name,void 0!==o&&(a+=" "+o);var y=c&&void 0===u?zu(i):l,m={};for(var g in e)c&&"as"===g||y(g)&&(m[g]=e[g]);return m.className=a,m.ref=r,(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Ku,{cache:n,serialized:v,isStringTag:"string"===typeof i}),(0,t.createElement)(i,m))}));return v.displayName=void 0!==i?i:"Styled("+("string"===typeof s?s:s.displayName||s.name||"Component")+")",v.defaultProps=n.defaultProps,v.__emotion_real=v,v.__emotion_base=s,v.__emotion_styles=h,v.__emotion_forwardProp=u,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(t,n){return e(t,cs({},r,n,{shouldForwardProp:Hu(v,n,!0)})).apply(void 0,h)},v}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Gu[e]=Gu(e)}));var $u={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&e.push(a)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(var s in i)t.call(i,s)&&i[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}($u);var Yu,Qu,Xu,Zu,Ju,el,tl,nl,rl,il,ol,al,sl,ul,ll,cl=$u.exports,fl=t.createContext(void 0),hl=function(e){var n=e.children,r=t.useState(),i=r[0],o=r[1],a=t.useCallback((function(e){o((function(t){return ss(ss({},t),e)}))}),[]),s=t.useCallback((function(){o((function(e){return ss(ss({},e),{collapsed:!Boolean(null===e||void 0===e?void 0:e.collapsed)})}))}),[]),u=t.useCallback((function(){o((function(e){return ss(ss({},e),{toggled:!Boolean(null===e||void 0===e?void 0:e.toggled)})}))}),[]),l=t.useMemo((function(){return ss(ss({},i),{updateSidebarState:a,updateCollapseState:s,updateToggleState:u})}),[i,s,a,u]);return t.createElement(fl.Provider,{value:l},n)},dl=function(){var e=t.useContext(fl);if(void 0===e)throw new Error("ProSidebarProvider is required!");return e},pl="ps-sidebar-root",vl="ps-sidebar-container",yl="ps-sidebar-image",ml="ps-sidebar-backdrop",gl="ps-collapsed",bl="ps-toggled",wl="ps-rtl",kl="ps-broken",xl="ps-menu-root",_l="ps-menuitem-root",El="ps-submenu-root",Cl="ps-menu-button",Sl="ps-menu-prefix",Ol="ps-menu-suffix",Tl="ps-menu-label",Al="ps-menu-icon",Il="ps-submenu-content",Nl="ps-submenu-expand-icon",Pl="ps-disabled",jl="ps-active",Rl="ps-open",Ll=Gu.div(Yu||(Yu=ls(["\n  position: fixed;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  z-index: 1;\n  background-color: rgb(0, 0, 0, 0.3);\n"],["\n  position: fixed;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  z-index: 1;\n  background-color: rgb(0, 0, 0, 0.3);\n"]))),Ml={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always"},Dl=Gu.aside(Qu||(Qu=ls(["\n  position: relative;\n  border-right-width: 1px;\n  border-right-style: solid;\n  border-color: #efefef;\n\n  transition: ",";\n\n  width: ",";\n  min-width: ",";\n\n  &."," {\n    width: ",";\n    min-width: ",";\n  }\n\n  &."," {\n    direction: rtl;\n    border-right-width: none;\n    border-left-width: 1px;\n    border-right-style: none;\n    border-left-style: solid;\n  }\n\n  &."," {\n    position: fixed;\n    height: 100%;\n    top: 0px;\n    z-index: 100;\n\n    ","\n\n    &."," {\n      ","\n    }\n\n    &."," {\n      ","\n    }\n\n    &."," {\n      right: -",";\n\n      &."," {\n        right: -",";\n      }\n\n      &."," {\n        right: 0;\n      }\n    }\n  }\n\n  ","\n"],["\n  position: relative;\n  border-right-width: 1px;\n  border-right-style: solid;\n  border-color: #efefef;\n\n  transition: ",";\n\n  width: ",";\n  min-width: ",";\n\n  &."," {\n    width: ",";\n    min-width: ",";\n  }\n\n  &."," {\n    direction: rtl;\n    border-right-width: none;\n    border-left-width: 1px;\n    border-right-style: none;\n    border-left-style: solid;\n  }\n\n  &."," {\n    position: fixed;\n    height: 100%;\n    top: 0px;\n    z-index: 100;\n\n    ","\n\n    &."," {\n      ","\n    }\n\n    &."," {\n      ","\n    }\n\n    &."," {\n      right: -",";\n\n      &."," {\n        right: -",";\n      }\n\n      &."," {\n        right: 0;\n      }\n    }\n  }\n\n  ","\n"])),(function(e){var t=e.transitionDuration;return"width, left, right, ".concat(t,"ms")}),(function(e){return e.width}),(function(e){return e.width}),gl,(function(e){return e.collapsedWidth}),(function(e){return e.collapsedWidth}),wl,kl,(function(e){var t=e.rtl,n=e.width;return t?"":"left: -".concat(n,";")}),gl,(function(e){var t=e.rtl,n=e.collapsedWidth;return t?"":"left: -".concat(n,"; ")}),bl,(function(e){return e.rtl?"":"left: 0;"}),wl,(function(e){return e.width}),gl,(function(e){return e.collapsedWidth}),bl,(function(e){return e.rootStyles})),Fl=Gu.div(Xu||(Xu=ls(["\n  position: relative;\n  height: 100%;\n  overflow-y: auto;\n  overflow-x: hidden;\n  z-index: 3;\n\n  ","\n"],["\n  position: relative;\n  height: 100%;\n  overflow-y: auto;\n  overflow-x: hidden;\n  z-index: 3;\n\n  ","\n"])),(function(e){var t=e.backgroundColor;return t?"background-color:".concat(t,";"):""})),Bl=Gu.img(Zu||(Zu=ls(["\n  &."," {\n    width: 100%;\n    height: 100%;\n    object-fit: cover;\n    object-position: center;\n    position: absolute;\n    left: 0;\n    top: 0;\n    z-index: 2;\n  }\n"],["\n  &."," {\n    width: 100%;\n    height: 100%;\n    object-fit: cover;\n    object-position: center;\n    position: absolute;\n    left: 0;\n    top: 0;\n    z-index: 2;\n  }\n"])),yl),Ul=t.forwardRef((function(e,n){var r,i=e.width,o=void 0===i?"250px":i,a=e.collapsedWidth,s=void 0===a?"80px":a,u=e.defaultCollapsed,l=void 0!==u&&u,c=e.className,f=e.children,h=e.breakPoint,d=e.customBreakPoint,p=e.backgroundColor,v=void 0===p?"rgb(249, 249, 249, 0.7)":p,y=e.transitionDuration,m=void 0===y?300:y,g=e.image,b=e.rtl,w=e.rootStyles,k=us(e,["width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),x=function(e){var n=t.useState("always"===e),r=n[0],i=n[1];return t.useEffect((function(){if(e&&"always"!==e){var t=window.matchMedia("(max-width: ".concat(e,")"));t.matches!==r&&i(t.matches);var n=function(){return i(t.matches)};return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}}}),[r,e]),r}(null!==d&&void 0!==d?d:h?Ml[h]:h),_=dl(),E=_.updateSidebarState,C=_.collapsed,S=_.width,O=_.collapsedWidth,T=_.broken,A=_.toggled,I=_.transitionDuration,N=_.rtl,P=function(){E({toggled:!1})};return t.useEffect((function(){E({width:o,collapsedWidth:s,broken:x,rtl:b})}),[o,s,x,E,b]),t.useEffect((function(){E({collapsed:l,transitionDuration:m,toggled:!1})}),[l,m,E]),t.createElement(Dl,ss({ref:n,"data-testid":"".concat(pl,"-test-id"),rtl:N,rootStyles:w,width:S,collapsedWidth:O,transitionDuration:null!==I&&void 0!==I?I:300,className:cl(pl,(r={},r[gl]=C,r[bl]=A,r[kl]=T,r[wl]=N,r),c)},k),t.createElement(Fl,{"data-testid":"".concat(vl,"-test-id"),className:vl,backgroundColor:v},f),g&&t.createElement(Bl,{"data-testid":"".concat(yl,"-test-id"),src:g,alt:"sidebar background",className:yl}),T&&A&&t.createElement(Ll,{"data-testid":"".concat(ml,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:P,onKeyPress:P,className:ml}))})),Vl=Gu.ul(Ju||(Ju=ls(["\n  list-style-type: none;\n  padding: 0;\n  margin: 0;\n"],["\n  list-style-type: none;\n  padding: 0;\n  margin: 0;\n"]))),ql=Gu.nav(el||(el=ls(["\n  &."," {\n    ","\n  }\n"],["\n  &."," {\n    ","\n  }\n"])),xl,(function(e){return e.rootStyles})),zl=t.createContext(void 0),Hl=t.forwardRef((function(e,n){var r=e.children,i=e.className,o=e.transitionDuration,a=void 0===o?300:o,s=e.closeOnClick,u=void 0!==s&&s,l=e.rootStyles,c=e.menuItemStyles,f=e.renderExpandIcon,h=us(e,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),d=t.useMemo((function(){return{transitionDuration:a,closeOnClick:u,menuItemStyles:c,renderExpandIcon:f}}),[a,u,c,f]);return t.createElement(zl.Provider,{value:d},t.createElement(ql,ss({ref:n,className:cl(xl,i),rootStyles:l},h),t.createElement(Vl,null,r)))})),Wl=function(){var e=t.useContext(zl);if(void 0===e)throw new Error("Menu Component is required!");return e},Kl=Gu.div(nl||(nl=ls(["\n  display: none;\n  overflow: hidden;\n  z-index: 999;\n  transition: height ","ms;\n  box-sizing: border-box;\n  background-color: white;\n\n  ","\n\n  ","\n\n  ",";\n\n  ",";\n"],["\n  display: none;\n  overflow: hidden;\n  z-index: 999;\n  transition: height ","ms;\n  box-sizing: border-box;\n  background-color: white;\n\n  ","\n\n  ","\n\n  ",";\n\n  ",";\n"])),(function(e){return e.transitionDuration}),(function(e){var t=e.firstLevel,n=e.collapsed;return t&&n&&"\n     background-color: white;\n     box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;\n     "}),(function(e){return e.defaultOpen&&"height: auto;display: block;"}),(function(e){var t=e.collapsed,n=e.firstLevel,r=e.openWhenCollapsed;return t&&n?"\n    \n      padding-left: 0px;\n      width: 200px;\n      border-radius: 4px;\n      height: auto!important;\n      display: block!important;     \n      transition: none!important;     \n      visibility: ".concat(r?"visible":"hidden",";\n     "):"\n      position: static!important;\n      transform: none!important;\n      "}),(function(e){return e.rootStyles})),Gl=t.forwardRef((function(e,n){var r=e.children,i=e.open,o=e.openWhenCollapsed,a=e.firstLevel,s=e.collapsed,u=us(e,["children","open","openWhenCollapsed","firstLevel","collapsed"]),l=Wl().transitionDuration,c=n,f=t.useState(!1),h=f[0],d=f[1];return t.useEffect((function(){if(clearTimeout(tl),h)if(i){var e=null===c||void 0===c?void 0:c.current;if(e){e.style.display="block",e.style.overflow="hidden",e.style.height="auto";var t=e.offsetHeight;e.style.height="0px",e.offsetHeight,e.style.height="".concat(t,"px"),tl=setTimeout((function(){e.style.overflow="auto",e.style.height="auto"}),l)}}else{var n=null===c||void 0===c?void 0:c.current;n&&(n.style.overflow="hidden",n.style.height="".concat(n.offsetHeight,"px"),n.offsetHeight,n.style.height="0px",tl=setTimeout((function(){n.style.overflow="auto",n.style.display="none"}),l))}return function(){return clearTimeout(tl)}}),[i,c]),t.useEffect((function(){d(!0)}),[]),t.createElement(Kl,ss({"data-testid":"".concat(Il,"-test-id"),ref:n,firstLevel:a,c
2ollapsed:s,open:i,openWhenCollapsed:o,transitionDuration:l},u),t.createElement(Vl,null,r))})),$l=Gu.span(rl||(rl=ls(["\n  flex-grow: 1;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n\n  ",";\n"],["\n  flex-grow: 1;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n\n  ",";\n"])),(function(e){return e.rootStyles})),Yl=Gu.span(il||(il=ls(["\n  width: 35px;\n  min-width: 35px;\n  height: 35px;\n  line-height: 35px;\n  text-align: center;\n  display: inline-block;\n  border-radius: 2px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  ","\n\n  ",";\n"],["\n  width: 35px;\n  min-width: 35px;\n  height: 35px;\n  line-height: 35px;\n  text-align: center;\n  display: inline-block;\n  border-radius: 2px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  ","\n\n  ",";\n"])),(function(e){return e.rtl?"margin-left: 10px;":"margin-right: 10px;"}),(function(e){return e.rootStyles})),Ql=Gu.span(ol||(ol=ls(["\n  ","\n  opacity: ",";\n  transition: opacity ","ms;\n\n  ",";\n"],["\n  ","\n  opacity: ",";\n  transition: opacity ","ms;\n\n  ",";\n"])),(function(e){return e.rtl?"margin-left: 5px;":"margin-right: 5px;"}),(function(e){var t=e.firstLevel,n=e.collapsed;return t&&n?"0":"1"}),(function(e){return e.transitionDuration}),(function(e){return e.rootStyles})),Xl=Gu.span(al||(al=ls(["\n  margin-right: 5px;\n  margin-left: 5px;\n  opacity: ",";\n  transition: opacity ","ms;\n\n  ",";\n"],["\n  margin-right: 5px;\n  margin-left: 5px;\n  opacity: ",";\n  transition: opacity ","ms;\n\n  ",";\n"])),(function(e){var t=e.firstLevel,n=e.collapsed;return t&&n?"0":"1"}),(function(e){return e.transitionDuration}),(function(e){return e.rootStyles})),Zl=Gu.span(sl||(sl=ls(["\n  ","\n\n  ",";\n"],["\n  ","\n\n  ",";\n"])),(function(e){var t=e.collapsed,n=e.level,r=e.rtl;return t&&0===n&&"\n    position: absolute;\n    ".concat(r?"left: 10px;":"right: 10px;","\n    top: 50%;\n    transform: translateY(-50%);\n    \n    ")}),(function(e){return e.rootStyles})),Jl=Gu.span(ul||(ul=ls(["\n  display: inline-block;\n  transition: transform 0.3s;\n  ","\n\n  width: 5px;\n  height: 5px;\n  transform: rotate(",");\n"],["\n  display: inline-block;\n  transition: transform 0.3s;\n  ","\n\n  width: 5px;\n  height: 5px;\n  transform: rotate(",");\n"])),(function(e){return e.rtl?"\n          border-left: 2px solid currentcolor;\n          border-top: 2px solid currentcolor;\n        ":" border-right: 2px solid currentcolor;\n          border-bottom: 2px solid currentcolor;\n        "}),(function(e){var t=e.open,n=e.rtl;return t?n?"-135deg":"45deg":"-45deg"})),ec=Gu.span(ll||(ll=ls(["\n  width: 5px;\n  height: 5px;\n  background-color: currentcolor;\n  border-radius: 50%;\n  display: inline-block;\n"],["\n  width: 5px;\n  height: 5px;\n  background-color: currentcolor;\n  border-radius: 50%;\n  display: inline-block;\n"]))),tc="top",nc="bottom",rc="right",ic="left",oc="auto",ac=[tc,nc,rc,ic],sc="start",uc="end",lc="viewport",cc="popper",fc=ac.reduce((function(e,t){return e.concat([t+"-"+sc,t+"-"+uc])}),[]),hc=[].concat(ac,[oc]).reduce((function(e,t){return e.concat([t,t+"-"+sc,t+"-"+uc])}),[]),dc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pc(e){return e?(e.nodeName||"").toLowerCase():null}function vc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yc(e){return e instanceof vc(e).Element||e instanceof Element}function mc(e){return e instanceof vc(e).HTMLElement||e instanceof HTMLElement}function gc(e){return"undefined"!==typeof ShadowRoot&&(e instanceof vc(e).ShadowRoot||e instanceof ShadowRoot)}var bc={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];mc(i)&&pc(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left
vendor: 9,980 bytes, line 2
2:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});mc(r)&&pc(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function wc(e){return e.split("-")[0]}var kc=Math.max,xc=Math.min,_c=Math.round;function Ec(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Cc(){return!/^((?!chrome|android).)*safari/i.test(Ec())}function Sc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&mc(e)&&(i=e.offsetWidth>0&&_c(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&_c(r.height)/e.offsetHeight||1);var a=(yc(e)?vc(e):window).visualViewport,s=!Cc()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/i,l=(r.top+(s&&a?a.offsetTop:0))/o,c=r.width/i,f=r.height/o;return{width:c,height:f,top:l,right:u+c,bottom:l+f,left:u,x:u,y:l}}function Oc(e){var t=Sc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Tc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ac(e){return vc(e).getComputedStyle(e)}function Ic(e){return["table","td","th"].indexOf(pc(e))>=0}function Nc(e){return((yc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pc(e){return"html"===pc(e)?e:e.assignedSlot||e.parentNode||(gc(e)?e.host:null)||Nc(e)}function jc(e){return mc(e)&&"fixed"!==Ac(e).position?e.offsetParent:null}function Rc(e){for(var t=vc(e),n=jc(e);n&&Ic(n)&&"static"===Ac(n).position;)n=jc(n);return n&&("html"===pc(n)||"body"===pc(n)&&"static"===Ac(n).position)?t:n||function(e){var t=/firefox/i.test(Ec());if(/Trident/i.test(Ec())&&mc(e)&&"fixed"===Ac(e).position)return null;var n=Pc(e);for(gc(n)&&(n=n.host);mc(n)&&["html","body"].indexOf(pc(n))<0;){var r=Ac(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Lc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mc(e,t,n){return kc(e,xc(t,n))}function Dc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fc(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Bc={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=wc(n.placement),u=Lc(s),l=[ic,rc].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(e,t){return Dc("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fc(e,ac))}(i.padding,n),f=Oc(o),h="y"===u?tc:ic,d="y"===u?nc:rc,p=n.rects.reference[l]+n.rects.reference[u]-a[u]-n.rects.popper[l],v=a[u]-n.rects.reference[u],y=Rc(o),m=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,g=p/2-v/2,b=c[h],w=m-f[l]-c[d],k=m/2-f[l]/2+g,x=Mc(b,k,w),_=u;n.modifiersData[r]=((t={})[_]=x,t.centerOffset=x-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Tc(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uc(e){return e.split("-")[1]}var Vc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qc(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,h=a.x,d=void 0===h?0:h,p=a.y,v=void 0===p?0:p,y="function"===typeof c?c({x:d,y:v}):{x:d,y:v};d=y.x,v=y.y;var m=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=ic,w=tc,k=window;if(l){var x=Rc(n),_="clientHeight",E="clientWidth";if(x===vc(n)&&"static"!==Ac(x=Nc(n)).position&&"absolute"===s&&(_="scrollHeight",E="scrollWidth"),i===tc||(i===ic||i===rc)&&o===uc)w=nc,v-=(f&&x===k&&k.visualViewport?k.visualViewport.height:x[_])-r.height,v*=u?1:-1;if(i===ic||(i===tc||i===nc)&&o===uc)b=rc,d-=(f&&x===k&&k.visualViewport?k.visualViewport.width:x[E])-r.width,d*=u?1:-1}var C,S=Object.assign({position:s},l&&Vc),O=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:_c(t*r)/r||0,y:_c(n*r)/r||0}}({x:d,y:v}):{x:d,y:v};return d=O.x,v=O.y,u?Object.assign({},S,((C={})[w]=g?"0":"",C[b]=m?"0":"",C.transform=(k.devicePixelRatio||1)<=1?"translate("+d+"px, "+v+"px)":"translate3d("+d+"px, "+v+"px, 0)",C)):Object.assign({},S,((t={})[w]=g?v+"px":"",t[b]=m?d+"px":"",t.transform="",t))}var zc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:wc(t.placement),variation:Uc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,qc(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,qc(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Hc={passive:!0};var Wc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=vc(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach((function(e){e.addEventListener("scroll",n.update,Hc)})),s&&u.addEventListener("resize",n.update,Hc),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",n.update,Hc)})),s&&u.removeEventListener("resize",n.update,Hc)}},data:{}},Kc={left:"right",right:"left",bottom:"top",top:"bottom"};function Gc(e){return e.replace(/left|right|bottom|top/g,(function(e){return Kc[e]}))}var $c={start:"end",end:"start"};function Yc(e){return e.replace(/start|end/g,(function(e){return $c[e]}))}function Qc(e){var t=vc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xc(e){return Sc(Nc(e)).left+Qc(e).scrollLeft}function Zc(e){var t=Ac(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Jc(e){return["html","body","#document"].indexOf(pc(e))>=0?e.ownerDocument.body:mc(e)&&Zc(e)?e:Jc(Pc(e))}function ef(e,t){var n;void 0===t&&(t=[]);var r=Jc(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=vc(r),a=i?[o].concat(o.visualViewport||[],Zc(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(ef(Pc(a)))}function tf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nf(e,t,n){return t===lc?tf(function(e,t){var n=vc(e),r=Nc(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=Cc();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+Xc(e),y:u}}(e,n)):yc(t)?function(e,t){var n=Sc(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tf(function(e){var t,n=Nc(e),r=Qc(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=kc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=kc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Xc(e),u=-r.scrollTop;return"rtl"===Ac(i||n).direction&&(s+=kc(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(Nc(e)))}function rf(e,t,n,r){var i="clippingParents"===t?function(e){var t=ef(Pc(e)),n=["absolute","fixed"].indexOf(Ac(e).position)>=0&&mc(e)?Rc(e):e;return yc(n)?t.filter((function(e){return yc(e)&&Tc(e,n)&&"body"!==pc(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=nf(e,n,r);return t.top=kc(i.top,t.top),t.right=xc(i.right,t.right),t.bottom=xc(i.bottom,t.bottom),t.left=kc(i.left,t.left),t}),nf(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function of(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?wc(i):null,a=i?Uc(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case tc:t={x:s,y:n.y-r.height};break;case nc:t={x:s,y:n.y+n.height};break;case rc:t={x:n.x+n.width,y:u};break;case ic:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var l=o?Lc(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case sc:t[l]=t[l]-(n[c]/2-r[c]/2);break;case uc:t[l]=t[l]+(n[c]/2-r[c]/2)}}return t}function af(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,u=void 0===s?"clippingParents":s,l=n.rootBoundary,c=void 0===l?lc:l,f=n.elementContext,h=void 0===f?cc:f,d=n.altBoundary,p=void 0!==d&&d,v=n.padding,y=void 0===v?0:v,m=Dc("number"!==typeof y?y:Fc(y,ac)),g=h===cc?"reference":cc,b=e.rects.popper,w=e.elements[p?g:h],k=rf(yc(w)?w:w.contextElement||Nc(e.elements.popper),u,c,a),x=Sc(e.elements.reference),_=of({reference:x,element:b,strategy:"absolute",placement:i}),E=tf(Object.assign({},b,_)),C=h===cc?E:x,S={top:k.top-C.top+m.top,bottom:C.bottom-k.bottom+m.bottom,left:k.left-C.left+m.left,right:C.right-k.right+m.right},O=e.modifiersData.offset;if(h===cc&&O){var T=O[i];
vendor: 5,910 bytes, line 2
2Object.keys(S).forEach((function(e){var t=[rc,nc].indexOf(e)>=0?1:-1,n=[tc,nc].indexOf(e)>=0?"y":"x";S[e]+=T[n]*t}))}return S}function sf(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?hc:u,c=Uc(r),f=c?s?fc:fc.filter((function(e){return Uc(e)===c})):ac,h=f.filter((function(e){return l.indexOf(e)>=0}));0===h.length&&(h=f);var d=h.reduce((function(t,n){return t[n]=af(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[wc(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var uf={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=void 0===d||d,v=n.allowedAutoPlacements,y=t.options.placement,m=wc(y),g=u||(m===y||!p?[Gc(y)]:function(e){if(wc(e)===oc)return[];var t=Gc(e);return[Yc(e),t,Yc(t)]}(y)),b=[y].concat(g).reduce((function(e,n){return e.concat(wc(n)===oc?sf(t,{placement:n,boundary:c,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,k=t.rects.popper,x=new Map,_=!0,E=b[0],C=0;C<b.length;C++){var S=b[C],O=wc(S),T=Uc(S)===sc,A=[tc,nc].indexOf(O)>=0,I=A?"width":"height",N=af(t,{placement:S,boundary:c,rootBoundary:f,altBoundary:h,padding:l}),P=A?T?rc:ic:T?nc:tc;w[I]>k[I]&&(P=Gc(P));var j=Gc(P),R=[];if(o&&R.push(N[O]<=0),s&&R.push(N[P]<=0,N[j]<=0),R.every((function(e){return e}))){E=S,_=!1;break}x.set(S,R)}if(_)for(var L=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},M=p?3:1;M>0;M--){if("break"===L(M))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lf(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function cf(e){return[tc,rc,nc,ic].some((function(t){return e[t]>=0}))}var ff={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=af(t,{elementContext:"reference"}),s=af(t,{altBoundary:!0}),u=lf(a,r),l=lf(s,i,o),c=cf(u),f=cf(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}};var hf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=hc.reduce((function(e,n){return e[n]=function(e,t,n){var r=wc(e),i=[ic,tc].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[ic,rc].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],u=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}};var df={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=of({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var pf={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,d=void 0===h||h,p=n.tetherOffset,v=void 0===p?0:p,y=af(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),m=wc(t.placement),g=Uc(t.placement),b=!g,w=Lc(m),k="x"===w?"y":"x",x=t.modifiersData.popperOffsets,_=t.rects.reference,E=t.rects.popper,C="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,S="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(x){if(o){var A,I="y"===w?tc:ic,N="y"===w?nc:rc,P="y"===w?"height":"width",j=x[w],R=j+y[I],L=j-y[N],M=d?-E[P]/2:0,D=g===sc?_[P]:E[P],F=g===sc?-E[P]:-_[P],B=t.elements.arrow,U=d&&B?Oc(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=V[I],z=V[N],H=Mc(0,_[P],U[P]),W=b?_[P]/2-M-H-q-S.mainAxis:D-H-q-S.mainAxis,K=b?-_[P]/2+M+H+z+S.mainAxis:F+H+z+S.mainAxis,G=t.elements.arrow&&Rc(t.elements.arrow),$=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Y=null!=(A=null==O?void 0:O[w])?A:0,Q=j+K-Y,X=Mc(d?xc(R,j+W-Y-$):R,j,d?kc(L,Q):L);x[w]=X,T[w]=X-j}if(s){var Z,J="x"===w?tc:ic,ee="x"===w?nc:rc,te=x[k],ne="y"===k?"height":"width",re=te+y[J],ie=te-y[ee],oe=-1!==[tc,ic].indexOf(m),ae=null!=(Z=null==O?void 0:O[k])?Z:0,se=oe?re:te-_[ne]-E[ne]-ae+S.altAxis,ue=oe?te+_[ne]+E[ne]-ae-S.altAxis:ie,le=d&&oe?function(e,t,n){var r=Mc(e,t,n);return r>n?n:r}(se,te,ue):Mc(d?se:re,te,d?ue:ie);x[k]=le,T[k]=le-te}t.modifiersData[r]=T}},requiresIfExists:["offset"]};function vf(e,t,n){void 0===n&&(n=!1);var r=mc(t),i=mc(t)&&function(e){var t=e.getBoundingClientRect(),n=_c(t.width)/e.offsetWidth||1,r=_c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Nc(t),a=Sc(e,i,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==pc(t)||Zc(o))&&(s=function(e){return e!==vc(e)&&mc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Qc(e);var t}(t)),mc(t)?((u=Sc(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Xc(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function yf(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
2h((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function mf(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var gf={placement:"bottom",modifiers:[],strategy:"absolute"};function bf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function wf(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?gf:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},gf,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,u={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;l(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:yc(e)?ef(e):e.contextElement?ef(e.contextElement):[],popper:ef(t)};var c=function(e){var t=yf(e);return dc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=c.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:u,options:r}),l=function(){};a.push(s||l)}})),u.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(bf(t,n)){i.rects={reference:vf(t,Rc(n),"fixed"===i.options.strategy),popper:Oc(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,c=void 0===l?{}:l,f=o.name;"function"===typeof a&&(i=a({state:i,options:c,name:f,instance:u})||i)}else i.reset=!1,r=-1}}},update:mf((function(){return new Promise((function(e){u.forceUpdate(),e(i)}))})),destroy:function(){l(),s=!0}};if(!bf(e,t))return u;function l(){a.forEach((function(e){return e()})),a=[]}return u.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var kf,xf,_f=wf({defaultModifiers:[Wc,df,zc,bc,hf,uf,pf,Bc,ff]}),Ef=function(e){var t=e.rtl,n=e.level,r=e.collapsed,i=e.disabled,o=e.active;return"\n    display: flex;\n    align-items: center;\n    height: 50px;\n    text-decoration: none;\n    color: inherit;\n    box-sizing: border-box;\n    cursor: pointer;\n\n    ".concat(t?"padding-left: 20px;\n           padding-right: ".concat(0===n?20:20*(r?n:n+1),"px;\n            "):"padding-right: 20px;\n           padding-left: ".concat(0===n?20:20*(r?n:n+1),"px;\n           "),"\n\n    &:hover {\n      background-color: #f3f3f3;\n    }\n\n    ").concat(i&&" \n      pointer-events: none;\n      cursor: default;\n      color:#adadad;\n        ","\n\n    ").concat(o&&"background-color: #e2eef9;","\n  \n  ")},Cf=t.forwardRef((function(e,n){var r=e.className,i=e.component,o=e.children,a=us(e,["className","component","children"]);if(i){if("string"===typeof i)return t.createElement(i,ss(ss({className:cl(r)},a),{ref:n}),o);var s=i.props,u=s.className,l=us(s,["className"]);return t.cloneElement(i,ss(ss(ss({className:cl(r,u)},a),l),{ref:n}),o)}return t.createElement("a",ss({ref:n,className:cl(r)},a),o)})),Sf=Gu.li(kf||(kf=ls(["\n  position: relative;\n  width: 100%;\n\n  ",";\n\n  ",";\n\n  > ."," {\n    ",";\n\n    ",";\n  }\n"],["\n  position: relative;\n  width: 100%;\n\n  ",";\n\n  ",";\n\n  > ."," {\n    ",";\n\n    ",";\n  }\n"])),(function(e){return e.menuItemStyles}),(function(e){return e.rootStyles}),Cl,(function(e){var t=e.level,n=e.disabled,r=e.active,i=e.collapsed,o=e.rtl;return Ef({level:t,disabled:n,active:r,collapsed:i,rtl:o})}),(function(e){return e.buttonStyles})),Of=t.forwardRef((function(e,n){var r,i=e.children,o=e.className,a=e.label,s=e.icon,u=e.title,l=e.prefix,c=e.suffix,f=e.open,h=e.defaultOpen,d=e.level,p=void 0===d?0:d,v=e.active,y=void 0!==v&&v,m=e.disabled,g=void 0!==m&&m,b=e.rootStyles,w=e.component,k=e.onOpenChange,x=e.onClick,_=e.onKeyUp,E=us(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","level","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),C=dl(),S=C.collapsed,O=C.transitionDuration,T=C.rtl,A=Wl(
2),I=A.renderExpandIcon,N=A.closeOnClick,P=A.menuItemStyles,j=t.useState(!!h),R=j[0],L=j[1],M=t.useState(!!h),D=M[0],F=M[1],B=t.useState(!1),U=B[0],V=B[1],q=t.Children.toArray(i).filter(Boolean),z=t.useRef(null),H=t.useRef(null),W=function(e){var n=e.level,r=e.buttonRef,i=e.contentRef,o=dl(),a=o.collapsed,s=o.transitionDuration,u=o.toggled,l=t.useRef();return t.useEffect((function(){return 0===n&&a&&i.current&&r.current&&(l.current=_f(r.current,i.current,{placement:"right",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]})),function(){var e;return null===(e=l.current)||void 0===e?void 0:e.destroy()}}),[n,a,i,r]),t.useEffect((function(){if(i.current&&r.current){var e=new ResizeObserver((function(){var e;null===(e=l.current)||void 0===e||e.update()}));e.observe(i.current),e.observe(r.current)}setTimeout((function(){var e;null===(e=l.current)||void 0===e||e.update()}),s)}),[s,u,i,r]),{popperInstance:l.current}}({level:p,buttonRef:z,contentRef:H}).popperInstance,K=function(){"undefined"!==typeof f||0===p&&S?null===k||void 0===k||k(!f):(null===k||void 0===k||k(!R),L(!R))},G=function(e){if(P){var t={level:p,disabled:g,active:y,isSubmenu:!0,open:null!==f&&void 0!==f?f:R},n=P.root,r=P.button,i=P.label,o=P.icon,a=P.prefix,s=P.suffix,u=P.subMenuContent,l=P.SubMenuExpandIcon;switch(e){case"root":return"function"===typeof n?n(t):n;case"button":return"function"===typeof r?r(t):r;case"label":return"function"===typeof i?i(t):i;case"icon":return"function"===typeof o?o(t):o;case"prefix":return"function"===typeof a?a(t):a;case"suffix":return"function"===typeof s?s(t):s;case"SubMenuExpandIcon":return"function"===typeof l?l(t):l;case"subMenuContent":return"function"===typeof u?u(t):u;default:return}}};t.useLayoutEffect((function(){setTimeout((function(){return null===W||void 0===W?void 0:W.update()}),O),S&&0===p&&V(!1)}),[S,p,T,O,W]),t.useEffect((function(){var e=function(e){var t,n,r;!U&&(null===(t=z.current)||void 0===t?void 0:t.contains(e))?V(!0):(N&&!(null===(n=e.closest(".menu-item"))||void 0===n?void 0:n.classList.contains("sub-menu"))||!(null===(r=H.current)||void 0===r?void 0:r.contains(e))&&U)&&V(!1)},t=function(t){e(t.target)},n=function(t){"Enter"===t.key?e(t.target):"Escape"===t.key&&V(!1)},r=function(){document.removeEventListener("click",t),document.removeEventListener("keyup",n)};return r(),S&&0===p&&(document.addEventListener("click",t,!1),document.addEventListener("keyup",n,!1)),function(){r()}}),[S,p,N,U]),t.useEffect((function(){f&&F(f)}),[]);var $=((r={})[jl]=y,r[Pl]=g,r[Rl]=null!==f&&void 0!==f?f:R,r);return t.createElement(Sf,{ref:n,className:cl(_l,El,$,o),menuItemStyles:G("root"),level:p,collapsed:S,rtl:T,disabled:g,active:y,buttonStyles:G("button"),rootStyles:b},t.createElement(Cf,ss({"data-testid":"".concat(Cl,"-test-id"),ref:z,title:u,className:cl(Cl,$),onClick:function(e){null===x||void 0===x||x(e),K()},onKeyUp:function(e){null===_||void 0===_||_(e),"Enter"===e.key&&K()},component:w,tabIndex:0},E),s&&t.createElement(Yl,{rtl:T,className:cl(Al,$),rootStyles:G("icon")},s),l&&t.createElement(Ql,{collapsed:S,transitionDuration:O,firstLevel:0===p,className:cl(Sl,$),rtl:T,rootStyles:G("prefix")},l),t.createElement($l,{className:cl(Tl,$),rootStyles:G("label")},a),c&&t.createElement(Xl,{collapsed:S,transitionDuration:O,firstLevel:0===p,className:cl(Ol,$),rootStyles:G("suffix")},c),t.createElement(Zl,{rtl:T,className:cl(Nl,$),collapsed:S,level:p,rootStyles:G("SubMenuExpandIcon")},I?I({level:p,disabled:g,active:y,open:null!==f&&void 0!==f?f:R}):S&&0===p?t.createElement(ec,null):t.createElement(Jl,{rtl:T,open:null!==f&&void 0!==f?f:R}))),t.createElement(Gl,{ref:H,openWhenCollapsed:U,open:null!==f&&void 0!==f?f:R,firstLevel:0===p,collapsed:S,defaultOpen:D,className:cl(Il,$),rootStyles:G("subMenuContent")},q.map((function(e){return t.cloneElement(e,ss(ss({},e.props),{level:p+1}))}))))})),Tf=Gu.li(xf||(xf=ls(["\n  display: inline-block;\n  width: 100%;\n  position: relative;\n\n  ",";\n\n  ",";\n\n  > ."," {\n    ",";\n\n    ",";\n  }\n"],["\n  display: inline-block;\n  width: 100%;\n  position: relative;\n\n  ",";\n\n  ",";\n\n  > ."," {\n    ",";\n\n    ",";\n  }\n"])),(function(e){return e.menuItemStyles}),(function(e){return e.rootStyles}),Cl,(function(e){var t=e.level,n=e.disabled,r=e.active,i=e.collapsed,o=e.rtl;return Ef({level:t,disabled:n,active:r,collapsed:i,rtl:o})}),(function(e){return e.buttonStyles})),Af=t.forwardRef((function(e,n){var r,i=e.children,o=e.icon,a=e.className,s=e.prefix,u=e.suffix,l=e.level,c=void 0===l?0:l,f=e.active,h=void 0!==f&&f,d=e.disabled,p=void 0!==d&&d,v=e.component,y=e.rootStyles,m=us(e,["children","icon","className","prefix","suffix","level","active","disabled","component","rootStyles"]),g=dl(),b=g.collapsed,w=g.transitionDuration,k=g.rtl,x=Wl().menuItemStyles,_=function(e){if(x){var t={level:c,disabled:p,active:h,isSubmenu:!1},n=x.root,r=x.button,i=x.label,o=x.icon,a=x.prefix,s=x.suffix;switch(e){case"root":return"function"===typeof n?n(t):n;case"button":return"function"===typeof r?r(t):r;case"label":return"function"===typeof i?i(t):i;case"icon":return"function"===typeof o?o(t):o;case"prefix":return"function"===typeof a?a(t):a;case"suffix":return"function"===typeof s?s(t):s;default:return}}},E=((r={})[jl]=h,r[Pl]=p,r);return t.createElement(Tf,{ref:n,className:cl(_l,E,a),menuItemStyles:_("root"),level:c,collapsed:b,rtl:k,disabled:p,active:h,buttonStyles:_("button"),rootStyles:y},t.createElement(Cf,ss({className:cl(Cl,E),"data-testid":"".concat(Cl,"-test-id"),component:v,tabIndex:0},m),o&&t.createElement(Yl,{rtl:k,className:cl(Al,E),rootStyles:_("icon")},o),s&&t.createElement(Ql,{collapsed:b,transitionDuration:w,firstLevel:0===c,className:cl(Sl,E),rtl:k,rootStyles:_("prefix")},s),t.createElement($l,{className:cl(Tl,E),rootStyles:_("label")}
2,i),u&&t.createElement(Xl,{collapsed:b,transitionDuration:w,firstLevel:0===c,className:cl(Ol,E),rootStyles:_("suffix")},u)))})),If=function(e){var n=e.children;return t.createElement(hl,null,n)},Nf=function(){var e=dl(),n=e.updateSidebarState,r=e.updateCollapseState,i=e.updateToggleState,o=e.collapsed,a=e.toggled,s=e.broken,u=e.rtl;return{collapseSidebar:t.useCallback((function(e){void 0===e?r():n({collapsed:e})}),[r,n]),toggleSidebar:t.useCallback((function(e){void 0===e?i():n({toggled:e})}),[i,n]),collapsed:!!o,broken:!!s,toggled:!!a,rtl:!!u}},Pf=Tr((function(){var e=(0,t.useContext)(va).authUser,n=Nf(),r=n.collapseSidebar,i=n.collapsed,o=Yr((0,t.useState)(!1),2),a=o[0],s=o[1],u=(0,t.useRef)(null),l=Yr((0,t.useState)(!1),2),c=l[0],f=l[1];return(0,t.useEffect)((function(){if(a&&u.current){var e=u.current.scrollHeight;u.current.style.height="".concat(e,"px")}else u.current&&(u.current.style.height="0")}),[a]),(0,t.useEffect)((function(){s(!i)}),[i]),(0,ea.jsx)("header",{className:"header",children:(0,ea.jsx)(ta,{children:(0,ea.jsxs)("div",{className:"nav--wrapper",children:[(0,ea.jsx)("div",{className:"mobile__menu--wrapper",children:(0,ea.jsx)("button",{className:"mobile__menu__btn ".concat(c?"is-animating":""),onClick:function(){f(!0),setTimeout((function(){r(!i),f(!1)}),300)},children:a?(0,ea.jsx)(as,{className:"mobile__menu__icon"}):(0,ea.jsx)(ts,{className:"mobile__menu__icon"})})}),(0,ea.jsx)(Ya,{}),e.isAuth?(0,ea.jsx)(qa,{}):(0,ea.jsx)(pa,{})]})})})})),jf=function(){return(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(Pf,{}),(0,ea.jsx)(t.Suspense,{fallback:null,children:(0,ea.jsx)("main",{children:(0,ea.jsx)(lo,{})})}),(0,ea.jsx)(zo,{position:"top-right",autoClose:500,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"light"})]})},Rf={"aria-busy":!0,role:"status"},Lf=n(7441),Mf=n(9613),Df=n.n(Mf);var Ff=function(e){function t(e,r,u,l,h){for(var d,p,v,y,w,x=0,_=0,E=0,C=0,S=0,P=0,R=v=d=0,M=0,D=0,F=0,B=0,U=u.length,V=U-1,q="",z="",H="",W="";M<U;){if(p=u.charCodeAt(M),M===V&&0!==_+C+E+x&&(0!==_&&(p=47===_?10:47),C=E=x=0,U++,V++),0===_+C+E+x){if(M===V&&(0<D&&(q=q.replace(f,"")),0<q.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:q+=u.charAt(M)}p=59}switch(p){case 123:for(d=(q=q.trim()).charCodeAt(0),v=1,B=++M;M<U;){switch(p=u.charCodeAt(M)){case 123:v++;break;case 125:v--;break;case 47:switch(p=u.charCodeAt(M+1)){case 42:case 47:e:{for(R=M+1;R<V;++R)switch(u.charCodeAt(R)){case 47:if(42===p&&42===u.charCodeAt(R-1)&&M+2!==R){M=R+1;break e}break;case 10:if(47===p){M=R+1;break e}}M=R}}break;case 91:p++;case 40:p++;case 34:case 39:for(;M++<V&&u.charCodeAt(M)!==p;);}if(0===v)break;M++}if(v=u.substring(B,M),0===d&&(d=(q=q.replace(c,"").trim()).charCodeAt(0)),64===d){switch(0<D&&(q=q.replace(f,"")),p=q.charCodeAt(1)){case 100:case 109:case 115:case 45:D=r;break;default:D=N}if(B=(v=t(r,D,v,p,h+1)).length,0<j&&(w=s(3,v,D=n(N,q,F),r,T,O,B,p,h,l),q=D.join(""),void 0!==w&&0===(B=(v=w.trim()).length)&&(p=0,v="")),0<B)switch(p){case 115:q=q.replace(k,a);case 100:case 109:case 45:v=q+"{"+v+"}";break;case 107:v=(q=q.replace(m,"$1 $2"))+"{"+v+"}",v=1===I||2===I&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=q+v,112===l&&(z+=v,v="")}else v=""}else v=t(r,n(r,q,F),v,l,h+1);H+=v,v=F=D=R=d=0,q="",p=u.charCodeAt(++M);break;case 125:case 59:if(1<(B=(q=(0<D?q.replace(f,""):q).trim()).length))switch(0===R&&(d=q.charCodeAt(0),45===d||96<d&&123>d)&&(B=(q=q.replace(" ",":")).length),0<j&&void 0!==(w=s(1,q,r,e,T,O,z.length,l,h,l))&&0===(B=(q=w.trim()).length)&&(q="\0\0"),d=q.charCodeAt(0),p=q.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){W+=q+u.charAt(M);break}default:58!==q.charCodeAt(B-1)&&(z+=i(q,d,p,q.charCodeAt(2)))}F=D=R=d=0,q="",p=u.charCodeAt(++M)}}switch(p){case 13:case 10:47===_?_=0:0===1+d&&107!==l&&0<q.length&&(D=1,q+="\0"),0<j*L&&s(0,q,r,e,T,O,z.length,l,h,l),O=1,T++;break;case 59:case 125:if(0===_+C+E+x){O++;break}default:switch(O++,y=u.charAt(M),p){case 9:case 32:if(0===C+x+_)switch(S){case 44:case 58:case 9:case 32:y="";break;default:32!==p&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===C+_+x&&(D=F=1,y="\f"+y);break;case 108:if(0===C+_+x+A&&0<R)switch(M-R){case 2:112===S&&58===u.charCodeAt(M-3)&&(A=S);case 8:111===P&&(A=P)}break;case 58:0===C+_+x&&(R=M);break;case 44:0===_+E+C+x&&(D=1,y+="\r");break;case 34:case 39:0===_&&(C=C===p?0:0===C?p:C);break;case 91:0===C+_+E&&x++;break;case 93:0===C+_+E&&x--;break;case 41:0===C+_+x&&E--;break;case 40:if(0===C+_+x){if(0===d)if(2*S+3*P===533);else d=1;E++}break;case 64:0===_+E+C+x+R+v&&(v=1);break;case 42:case 47:if(!(0<C+x+E))switch(_){case 0:switch(2*p+3*u.charCodeAt(M+1)){case 235:_=47;break;case 220:B=M,_=42}break;case 42:47===p&&42===S&&B+2!==M&&(33===u.charCodeAt(B+2)&&(z+=u.substring(B,M+1)),y="",_=0)}}0===_&&(q+=y)}P=S,S=p,M++}if(0<(B=z.length)){if(D=r,0<j&&(void 0!==(w=s(2,z,D,e,T,O,B,l,h,l))&&0===(z=w).length))return W+z+H;if(z=D.join(",")+"{"+z+"}",0!==I*A){switch(2!==I||o(z,2)||(A=0),A){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(g,"::-webkit-input-$1")+z.replace(g,"::-moz-$1")+z.replace(g,":-ms-input-$1")+z}A=0}}return W+z+H}function n(e,t,n){var i=t.trim().split(v);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[u++]=r(e[l]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>
vendor: 4,283 bytes, line 2
2r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===I||2===I&&o(u,1)?"-webkit-"+u+u:u}if(0===I||2===I&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(S,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,u,c){for(var f,h=0,d=t;h<j;++h)switch(f=P[h].call(l,e,d,n,r,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function u(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!==typeof e?I=1:(I=2,R=e):I=0),u}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<j){var i=s(-1,n,r,r,T,O,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var o=t(N,r,n,0,0);return 0<j&&(void 0!==(i=s(-2,o,r,r,T,O,o.length,0,0,0))&&(o=i)),"",A=0,O=T=1,o}var c=/^\0+/g,f=/[\0\r\f]/g,h=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,v=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,_=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,O=1,T=1,A=0,I=1,N=[],P=[],j=0,R=null,
vendor: 18,888 bytes, line 2
2L=0;return l.use=function e(t){switch(t){case void 0:case null:j=P.length=0;break;default:if("function"===typeof t)P[j++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else L=0|!!t}return e},l.set=u,void 0!==e&&u(e),l},Bf={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Uf=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},Vf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,qf=Uf((function(e){return Vf.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),zf=qf,Hf=n(2110),Wf=n.n(Hf);function Kf(){return(Kf=Object.assign||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}).apply(this,arguments)}var Gf=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},$f=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Lf.typeOf)(e)},Yf=Object.freeze([]),Qf=Object.freeze({});function Xf(e){return"function"==typeof e}function Zf(e){return e.displayName||e.name||"Component"}function Jf(e){return e&&"string"==typeof e.styledComponentId}var eh="undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.SC_ATTR)||"data-styled",th="undefined"!=typeof window&&"HTMLElement"in window,nh=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}&&(void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.REACT_APP_SC_DISABLE_SPEEDY:void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.SC_DISABLE_SPEEDY)));function rh(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var ih=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&rh(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),oh=new Map,ah=new Map,sh=1,uh=function(e){if(oh.has(e))return oh.get(e);for(;ah.has(sh);)sh++;var t=sh++;return oh.set(e,t),ah.set(t,e),t},lh=function(e){return ah.get(e)},ch=function(e,t){t>=sh&&(sh=t+1),oh.set(e,t),ah.set(t,e)},fh="style["+eh+'][data-styled-version="5.3.9"]',hh=new RegExp("^"+eh+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),dh=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},ph=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(hh);if(s){var u=0|parseInt(s[1],10),l=s[2];0!==u&&(ch(l,u),dh(e,l,s[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},vh=function(){return n.nc},yh=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(eh))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(eh,"active"),r.setAttribute("data-styled-version","5.3.9");var a=vh();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},mh=function(){function e(e){var t=this.element=yh(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}rh(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),gh=function(){function e(e){var t=this.element=yh(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),bh=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),wh=th,kh={isServer:!th,useCSSOMInjection:!nh},xh=function(){function e(e,t,n){void 0===e&&(e=Qf),void 0===t&&(t={}),this.options=Kf({},kh,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&th&&wh&&(wh=!1,function(e){for(var t=document.querySelectorAll(fh),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(eh)&&(ph(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return uh(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Kf({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new bh(i):r?new mh(i):new gh(i),new ih(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(uh(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(uh(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(uh(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=lh(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var u=eh+".g"+i+'[id="'+o+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+u+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),_h=/(a)(d)/gi,Eh=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ch(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Eh(t%52)+n;return(Eh(t%52)+n).replace(_h,"$1-$2")}var Sh=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Oh=function(e){return Sh(5381,e)};function Th(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Xf(n)&&!Jf(n))return!1}return!0}var Ah=Oh("5.3.9"),Ih=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Th(e),this.componentId=t,this.baseHash=Sh(Ah,t),this.baseStyle=n,xh.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=$h(this.rules,e,t,n).join(""),a=Ch(Sh(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,l=Sh(this.baseHash,n.hash),c="",f=0;f<u;f++){var h=this.rules[f];if("string"==typeof h)c+=h;else if(h){var d=$h(h,e,t,n),p=Array.isArray(d)?d.join(""):d;l=Sh(l,p+f),c+=p}}if(c){var v=Ch(l>>>0);if(!t.hasNameForId(r,v)){var y=n(c,"."+v,void 0,r);t.insertRules(r,v,y)}i.push(v)}}return i.join(" ")},e}(),Nh=/^\s*\/\/.*$/gm,Ph=[":","[",".","#"];function jh(e){var t,n,r,i,o=void 0===e?Qf:e,a=o.options,s=void 0===a?Qf:a,u=o.plugins,l=void 0===u?Yf:u,c=new Ff(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,u,l,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),d=function(e,r,o){return 0===r&&-1!==Ph.indexOf(o[n.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var u=e.replace(Nh,""),l=o&&a?a+" "+o+" { "+u+" }":u;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),c(a||!o?"":o,l)}return c.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,d))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),p.hash=l.length?l.reduce((function(e,t){return t.name||rh(15),Sh(e,t.name)}),5381).toString():"",p}var Rh=t.createContext(),Lh=(Rh.Consumer,t.createContext()),Mh=(Lh.Consumer,new xh),Dh=jh();function Fh(){return(0,t.useContext)(Rh)||Mh}function Bh(){return(0,t.useContext)(Lh)||Dh}function Uh(e){var n=(0,t.useState)(e.stylisPlugins),r=n[0],i=n[1],o=Fh(),a=(0,t.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=(0,t.useMemo)((function(){return jh({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,t.useEffect)((function(){Df()(r,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),t.createElement(Rh.Provider,{value:a},t.createElement(Lh.Provider,{value:s},e.children))}var Vh=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Dh);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return rh(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Dh),this.name+e.hash},e}(),qh=/([A-Z])/,zh=/([A-Z])/g,Hh=/^ms-/,Wh=function(e){return"-"+e.toLowerCase()};function Kh(e){return qh.test(e)?e.replace(zh,Wh).replace(Hh,"-ms-"):e}var Gh=function(e){return null==e||!1===e||""===e};function $h(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=$h(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return Gh(e)?"":Jf(e)?"."+e.styledComponentId:Xf(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:$h(e(t),t,n,r):e instanceof Vh?n?(e.inject(n,r),e.getName(r)):e:$f(e)?function e(t,n){var r,i,o=[];
vendor: 4,270 bytes, line 2
2for(var a in t)t.hasOwnProperty(a)&&!Gh(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Xf(t[a])?o.push(Kh(a)+":",t[a],";"):$f(t[a])?o.push.apply(o,e(t[a],a)):o.push(Kh(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in Bf?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var u}var Yh=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Qh(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Xf(e)||$f(e)?Yh($h(Gf(Yf,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Yh($h(Gf(e,n)))}new Set;var Xh=function(e,t,n){return void 0===n&&(n=Qf),e.theme!==n.theme&&e.theme||t||n.theme},Zh=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Jh=/(^-|-$)/g;function ed(e){return e.replace(Zh,"-").replace(Jh,"")}var td=function(e){return Ch(Oh(e)>>>0)};function nd(e){return"string"==typeof e&&!0}var rd=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},id=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function od(e,t,n){var r=e[n];rd(t)&&rd(r)?ad(r,t):e[n]=t}function ad(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(rd(a))for(var s in a)id(s)&&od(e,a[s],s)}return e}var sd=t.createContext();sd.Consumer;var ud={};function ld(e,n,r){var i=Jf(e),o=!nd(e),a=n.attrs,s=void 0===a?Yf:a,u=n.componentId,l=void 0===u?function(e,t){var n="string"!=typeof e?"sc":ed(e);ud[n]=(ud[n]||0)+1;var r=n+"-"+td("5.3.9"+n+ud[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):u,c=n.displayName,f=void 0===c?function(e){return nd(e)?"styled."+e:"Styled("+Zf(e)+")"}(e):c,h=n.displayName&&n.componentId?ed(n.displayName)+"-"+n.componentId:n.componentId||l,d=i&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,p=n.shouldForwardProp;i&&e.shouldForwardProp&&(p=n.shouldForwardProp?function(t,r,i){return e.shouldForwardProp(t,r,i)&&n.shouldForwardProp(t,r,i)}:e.shouldForwardProp);var v,y=new Ih(r,h,i?e.componentStyle:void 0),m=y.isStatic&&0===s.length,g=function(e,n){return function(e,n,r,i){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,f=e.target,h=function(e,t,n){void 0===e&&(e=Qf);var r=Kf({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in Xf(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(Xh(n,(0,t.useContext)(sd),s)||Qf,n,o),d=h[0],p=h[1],v=function(e,t,n,r){var i=Fh(),o=Bh();return t?e.generateAndInjectStyles(Qf,i,o):e.generateAndInjectStyles(n,i,o)}(a,i,d),y=r,m=p.$as||n.$as||p.as||n.as||f,g=nd(m),b=p!==n?Kf({},n,{},p):n,w={};for(var k in b)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?w.as=b[k]:(l?l(k,zf,m):!g||zf(k))&&(w[k]=b[k]));return n.style&&p.style!==n.style&&(w.style=Kf({},n.style,{},p.style)),w.className=Array.prototype.concat(u,c,v!==c?v:null,n.className,p.className).filter(Boolean).join(" "),w.ref=y,(0,t.createElement)(m,w)}(v,e,n,m)};return g.displayName=f,(v=t.forwardRef(g)).attrs=d,v.componentStyle=y,v.displayName=f,v.shouldForwardProp=p,v.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Yf,v.styledComponentId=h,v.target=i?e.target:e,v.withComponent=function(e){var t=n.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["componentId"]),o=t&&t+"-"+(nd(e)?e:ed(Zf(e)));return ld(e,Kf({},i,{attrs:d,componentId:o}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?ad({},e.defaultProps,t):t}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),o&&Wf()(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var cd=function(e){return function e(t,n,r){if(void 0===r&&(r=Qf),!(0,Lf.isValidElementType)(n))return rh(1,String(n));var i=function(){return t(n,r,Qh.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,Kf({},r,{},i))},i.attrs=function(i){return e(t,n,Kf({}
2,r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(ld,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){cd[e]=cd(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Th(e),xh.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var i=r($h(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&xh.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();function fd(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=Qh.apply(void 0,[e].concat(n)).join(""),o=td(i);return new Vh(o,i)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=vh();return"<style "+[n&&'nonce="'+n+'"',eh+'="true"','data-styled-version="5.3.9"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?rh(2):e._emitSheetCSS()}
2,this.getStyleElement=function(){var n;if(e.sealed)return rh(2);var r=((n={})[eh]="",n["data-styled-version"]="5.3.9",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),i=vh();return i&&(r.nonce=i),[t.createElement("style",Kf({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new xh({isServer:!0}),this.sealed=!1}var n=e.prototype;n.collectStyles=function(e){return this.sealed?rh(2):t.createElement(Uh,{sheet:this.instance},e)},n.interleaveWithNodeStream=function(e){return rh(3)}}();var hd,dd,pd=cd,vd=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},yd=242.776657104492,md=fd(hd||(hd=vd(["\n  12.5% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  43.75% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  100% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n"],["\n  12.5% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  43.75% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  100% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n"])),.14*yd,yd,.11*yd,.35*yd,yd,.35*yd,.01*yd,yd,.99*yd),gd=(pd.path(dd||(dd=vd(["\n  stroke-dasharray: ","px, ",";\n  stroke-dashoffset: 0;\n  animation: "," ","s linear infinite;\n"],["\n  stroke-dasharray: ","px, ",";\n  stroke-dashoffset: 0;\n  animation: "," ","s linear infinite;\n"])),.01*yd,yd,md,1.6),function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!==typeof n[e])return n[e];if(e&&e.indexOf(".")>0){for(var r=e.split("."),i=r.length,o=n[r[0]],a=1;null!=o&&a<i;)o=o[r[a]],a+=1;if("undefined"!==typeof o)return o}return t}});var bd,wd,kd,xd=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},_d=fd(bd||(bd=xd(["\n to {\n    transform: rotate(360deg);\n  }\n"],["\n to {\n    transform: rotate(360deg);\n  }\n"])));pd.svg(wd||(wd=xd(["\n  animation: "," 0.75s steps(12, end) infinite;\n  animation-duration: ","s;\n"],["\n  animation: "," 0.75s steps(12, end) infinite;\n  animation-duration: ","s;\n"])),_d,gd("speed","0.75")),pd.polyline(kd||(kd=xd(["\n  stroke-width: ","px;\n  stroke-linecap: round;\n\n  &:nth-child(12n + 0) {\n    stroke-opacity: 0.08;\n  }\n\n  &:nth-child(12n + 1) {\n    stroke-opacity: 0.17;\n  }\n\n  &:nth-child(12n + 2) {\n    stroke-opacity: 0.25;\n  }\n\n  &:nth-child(12n + 3) {\n    stroke-opacity: 0.33;\n  }\n\n  &:nth-child(12n + 4) {\n    stroke-opacity: 0.42;\n  }\n\n  &:nth-child(12n + 5) {\n    stroke-opacity: 0.5;\n  }\n\n  &:nth-child(12n + 6) {\n    stroke-opacity: 0.58;\n  }\n\n  &:nth-child(12n + 7) {\n    stroke-opacity: 0.66;\n  }\n\n  &:nth-child(12n + 8) {\n    stroke-opacity: 0.75;\n  }\n\n  &:nth-child(12n + 9) {\n    stroke-opacity: 0.83;\n  }\n\n  &:nth-child(12n + 11) {\n    stroke-opacity: 0.92;\n  }\n"],["\n  stroke-width: ","px;\n  stroke-linecap: round;\n\n  &:nth-child(12n + 0) {\n    stroke-opacity: 0.08;\n  }\n\n  &:nth-child(12n + 1) {\n    stroke-opacity: 0.17;\n  }\n\n  &:nth-child(12n + 2) {\n    stroke-opacity: 0.25;\n  }\n\n  &:nth-child(12n + 3) {\n    stroke-opacity: 0.33;\n  }\n\n  &:nth-child(12n + 4) {\n    stroke-opacity: 0.42;\n  }\n\n  &:nth-child(12n + 5) {\n    stroke-opacity: 0.5;\n  }\n\n  &:nth-child(12n + 6) {\n    stroke-opacity: 0.58;\n  }\n\n  &:nth-child(12n + 7) {\n    stroke-opacity: 0.66;\n  }\n\n  &:nth-child(12n + 8) {\n    stroke-opacity: 0.75;\n  }\n\n  &:nth-child(12n + 9) {\n    stroke-opacity: 0.83;\n  }\n\n  &:nth-child(12n + 11) {\n    stroke-opacity: 0.92;\n  }\n"])),(function(e){return e.width}));var Ed,Cd,Sd,Od=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Td=fd(Ed||(Ed=Od(["\n to {\n    stroke-dashoffset: 136;\n  }\n"],["\n to {\n    stroke-dashoffset: 136;\n  }\n"])));pd.polygon(Cd||(Cd=Od(["\n  stroke-dasharray: 17;\n  animation: "," 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;\n"],["\n  stroke-dasharray: 17;\n  animation: "," 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;\n"])),Td),pd.svg(Sd||(Sd=Od(["\n  transform-origin: 50% 65%;\n"],["\n  transform-origin: 50% 65%;\n"])));var Ad=function(){return Ad=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ad.apply(this,arguments)};function Id(e){var n=e.visible,r=void 0===n||n,i=e.width,o=void 0===i?"80":i,a=e.height,s=void 0===a?"80":a,u=e.colors,l=void 0===u?["#e15b64","#f47e60","#f8b26a","#abbd81","#849b87"]:u,c=e.wrapperClass,f=void 0===c?"":c,h=e.wrapperStyle,d=void 0===h?{}:h,p=e.ariaLabel,v=void 0===p?"color-ring-loading":p;return r?t.createElement("svg",Ad({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:o,height:s,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",className:f,style:d,"aria-label":v,"data-testid":"color-ring-svg"},Rf),t.createElement("defs",null,t.createElement("mask",{id:"ldio-4offds5dlws-mask"},t.createElement("circle",{cx:"50",cy:"50",r:"26",stroke:"#fff",strokeLinecap:"round",strokeDasharray:"122.52211349000194 40.840704496667314",strokeWidth:"9",transform:"rotate(198.018 50 50)"},t.createElement("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",keyTimes:"0;
21",dur:"1s",repeatCount:"indefinite"})))),t.createElement("g",{mask:"url(#ldio-4offds5dlws-mask)"},t.createElement("rect",{x:"14.5",y:"0",width:"15",height:"100",fill:l[0]},t.createElement("animate",{attributeName:"fill",values:l.join(";").toString(),keyTimes:"0;0.25;0.5;0.75;1",dur:"1s",repeatCount:"indefinite",begin:"-0.8s"})),t.createElement("rect",{x:"28.5",y:"0",width:"15",height:"100",fill:l[1]},t.createElement("animate",{attributeName:"fill",values:l.join(";").toString(),keyTimes:"0;0.25;0.5;0.75;1",dur:"1s",repeatCount:"indefinite",begin:"-0.6s"})),t.createElement("rect",{x:"42.5",y:"0",width:"15",height:"100",fill:l[2]},t.createElement("animate",{attributeName:"fill",values:l.join(";").toString(),keyTimes:"0;0.25;0.5;0.75;1",dur:"1s",repeatCount:"indefinite",begin:"-0.4s"})),t.createElement("rect",{x:"56.5",y:"0",width:"15",height:"100",fill:l[3]},t.createElement("animate",{attributeName:"fill",values:l.join(";").toString(),keyTimes:"0;0.25;0.5;0.75;1",dur:"1s",repeatCount:"indefinite",begin:"-0.2s"})),t.createElement("rect",{x:"70.5",y:"0",width:"15",height:"100",fill:l[4]},t.createElement("animate",{attributeName:"fill",values:l.join(";").toString(),keyTimes:"0;0.25;0.5;0.75;1",dur:"1s",repeatCount:"indefinite",begin:"0s"})))):null}var Nd=Tr((function(){return(0,t.useContext)(va).mainLoader.isLoading?(0,ea.jsx)("div",{className:"wrapper_loader",children:(0,ea.jsx)("div",{className:"loader",id:"loader",children:(0,ea.jsx)(Id,{visible:!0,height:"80",width:"80",ariaLabel:"blocks-loading",wrapperStyle:{},wrapperClass:"blocks-wrapper",colors:["#e15b64","#f47e60","#f8b26a","#abbd81","#849b87"]})})}):null})),Pd=Tr((function(e){var n=e.component,r=e.redirectTo,i=void 0===r?"/":r,o=e.guard,a=(0,t.useContext)(va).authUser;return o.handlePermission(a)?n:(0,ea.jsx)(uo,{to:i})})),jd=function(e){return e.isAuth},Rd={path:"/",label:"Home",getPath:function(){return this.path},handlePermission:function(){return!jd}},Ld={path:"/singup",label:"Singup",getPath:function(){return this.path},handlePermission:function(e){return!jd(e)}},Md={path:"/singin",label:"Singin",getPath:function(){return this.path},handlePermission:function(e){return!jd(e)}},Dd={path:"/notes/region?/:id?",getPath:function(e){return void 0===e?"/notes":"notes/region/".concat(e)},label:"All Notes",handlePermission:jd},Fd={path:"/viewer/:id",label:"Viewer",getPath:function(e){return e?this.path.replace(":id",e):this.path},handlePermission:jd},Bd={path:"/add-model",label:"Model",getPath:function(){return this.path},handlePermission:jd},Ud={path:"/create",label:"Create",getPath:function(){return this.path},handlePermission:jd},Vd={path:"/edit/:id",label:"Edit",getPath:function(e){return"/edit/".concat(e)},handlePermission:jd},qd=e,zd=n(2007),Hd=n.n(zd),Wd=n(77),Kd=n.n(Wd),Gd=n(2176),$d=n.n(Gd);function Yd(){return Yd=Object.assign||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},Yd.apply(this,arguments)}function Qd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xd(e,t)}
2function Xd(e,t){return Xd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xd(e,t)}function Zd(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var Jd={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},ep={rel:["amphtml","canonical","alternate"]},tp={type:["application/ld+json"]},np={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},rp=Object.keys(Jd).map((function(e){return Jd[e]})),ip={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},op=Object.keys(ip).reduce((function(e,t){return e[ip[t]]=t,e}),{}),ap=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},sp=function(e){var t=ap(e,Jd.TITLE),n=ap(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=ap(e,"defaultTitle");return t||r||void 0},up=function(e){return ap(e,"onChangeClientState")||function(){}},lp=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Yd({},e,t)}),{})},cp=function(e,t){return t.filter((function(e){return void 0!==e[Jd.BASE]})).map((function(e){return e[Jd.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i+=1){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},fp=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n,o=Object.keys(e),a=0;a<o.length;a+=1){var s=o[a],u=s.toLowerCase();-1===t.indexOf(u)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===u&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][l]&&(i[n][l]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a+=1){var s=o[a],u=Yd({},r[s],i[s]);r[s]=u}return e}),[]).reverse()},hp=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},dp=function(e){return Array.isArray(e)?e.join(""):e},pp=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},vp=function(e,t){var n;return Yd({},e,((n={})[t]=void 0,n))},yp=[Jd.NOSCRIPT,Jd.SCRIPT,Jd.STYLE],mp=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},gp=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},bp=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[ip[n]||n]=e[n],t}),t)},wp=function(e,n){return n.map((function(n,r){var i,o=((i={key:r})["data-rh"]=!0,i);return Object.keys(n).forEach((function(e){var t=ip[e]||e;"innerHTML"===t||"cssText"===t?o.dangerouslySetInnerHTML={__html:n.innerHTML||n.cssText}:o[t]=n[e]})),t.createElement(e,o)}))},kp=function(e,n,r){switch(e){case Jd.TITLE:return{toComponent:function(){return r=n.titleAttributes,(i={key:e=n.title})["data-rh"]=!0,o=bp(r,i),[t.createElement(Jd.TITLE,o,e)];var e,r,i,o},toString:function(){return function(e,t,n,r){var i=gp(n),o=dp(t);return i?"<"+e+' data-rh="true" '+i+">"+mp(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+mp(o,r)+"</"+e+">"}(e,n.title,n.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return bp(n)},toString:function(){return gp(n)}};default:return{toComponent:function(){return wp(e,n)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+mp(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===yp.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,n,r)}}}},xp=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.noscriptTags,a=e.styleTags,s=e.title,u=void 0===s?"":s,l=e.titleAttributes,c=e.linkTags,f=e.metaTags,h=e.scriptTags,d={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var p=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,i=pp(e.metaTags,np),o=pp(t,ep),a=pp(n,tp);return{priorityMethods:{toComponent:function(){return[].concat(wp(Jd.META,i.priority),wp(Jd.LINK,o.priority),wp(Jd.SCRIPT,a.priority))},toString:function(){return kp(Jd.META,i.priority,r)+" "+kp(Jd.LINK,o.priority,r)+" "+kp(Jd.SCRIPT,a.priority,r)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(e);
vendor: 6,138 bytes, line 2
2d=p.priorityMethods,c=p.linkTags,f=p.metaTags,h=p.scriptTags}return{priority:d,base:kp(Jd.BASE,t,r),bodyAttributes:kp("bodyAttributes",n,r),htmlAttributes:kp("htmlAttributes",i,r),link:kp(Jd.LINK,c,r),meta:kp(Jd.META,f,r),noscript:kp(Jd.NOSCRIPT,o,r),script:kp(Jd.SCRIPT,h,r),style:kp(Jd.STYLE,a,r),title:kp(Jd.TITLE,{title:u,titleAttributes:l},r)}},_p=[],Ep=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?_p:n.instances},add:function(e){(n.canUseDOM?_p:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?_p:n.instances).indexOf(e);(n.canUseDOM?_p:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=xp({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Cp=t.createContext({}),Sp=Hd().shape({setHelmet:Hd().func,helmetInstances:Hd().shape({get:Hd().func,add:Hd().func,remove:Hd().func})}),Op="undefined"!=typeof document,Tp=function(e){function n(t){var r;return(r=e.call(this,t)||this).helmetData=new Ep(r.props.context,n.canUseDOM),r}return Qd(n,e),n.prototype.render=function(){return t.createElement(Cp.Provider,{value:this.helmetData.value},this.props.children)},n}(t.Component);Tp.canUseDOM=Op,Tp.propTypes={context:Hd().shape({helmet:Hd().shape()}),children:Hd().node.isRequired},Tp.defaultProps={context:{}},Tp.displayName="HelmetProvider";var Ap=function(e,t){var n,r=document.head||document.querySelector(Jd.HEAD),i=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(i),a=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?r.innerHTML=t.innerHTML:"cssText"===i?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(i,void 0===t[i]?"":t[i]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):a.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:a}},Ip=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s+=1){var u=a[s],l=t[u]||"";n.getAttribute(u)!==l&&n.setAttribute(u,l),-1===i.indexOf(u)&&i.push(u);var c=o.indexOf(u);-1!==c&&o.splice(c,1)}for(var f=o.length-1;f>=0;f-=1)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==a.join(",")&&n.setAttribute("data-rh",a.join(","))}},Np=function(e,t){var n=e.baseTag,r=e.htmlAttributes,i=e.linkTags,o=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,c=e.title,f=e.titleAttributes;Ip(Jd.BODY,e.bodyAttributes),Ip(Jd.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=dp(e)),Ip(Jd.TITLE,t)}(c,f);var h={baseTag:Ap(Jd.BASE,n),linkTags:Ap(Jd.LINK,i),metaTags:Ap(Jd.META,o),noscriptTags:Ap(Jd.NOSCRIPT,a),scriptTags:Ap(Jd.SCRIPT,u),styleTags:Ap(Jd.STYLE,l)},d={},p={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(d[e]=n),r.length&&(p[e]=h[e].oldTags)})),t&&t(),s(e,d,p)},Pp=null,jp=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}Qd(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!Df()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,i=null,o=(e=n.helmetInstances.get().map((function(e){var t=Yd({},e.props);return delete t.context,t})),{baseTag:cp(["href"],e),bodyAttributes:lp("bodyAttributes",e),defer:ap(e,"defer"),encode:ap(e,"encodeSpecialCharacters"),htmlAttributes:lp("htmlAttributes",e),linkTags:fp(Jd.LINK,["rel","href"],e),metaTags:fp(Jd.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:fp(Jd.NOSCRIPT,["innerHTML"],e),onChangeClientState:up(e),scriptTags:fp(Jd.SCRIPT,["src","innerHTML"],e),styleTags:fp(Jd.STYLE,["cssText"],e),title:sp(e),titleAttributes:lp("titleAttributes",e),prioritizeSeoTags:hp(e,"prioritizeSeoTags")});Tp.canUseDOM?(t=o,Pp&&cancelAnimationFrame(Pp),t.defer?Pp=requestAnimationFrame((function(){Np(t,(function(){Pp=null}))})):(Np(t),Pp=null)):xp&&(i=xp(o)),r(i)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(t.Component);jp.propTypes={context:Sp.isRequired},jp.displayName="HelmetDispatcher";var Rp=["children"],Lp=["children"],Mp=function(e){function n(){return e.apply(this,arguments)||this}Qd(n,e);var r=n.prototype;return r.shouldComponentUpdate=function(e){return!Kd()(vp(this.props,"helmetData"),vp(e,"helmetData"))},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Jd.SCRIPT:case Jd.NOSCRIPT:return{innerHTML:t};case Jd.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return Yd({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Yd({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case Jd.TITLE:return Yd({},i,((t={})[r.type]=a,t.titleAttributes=Yd({},o),t));case Jd.BODY:return Yd({},i,{bodyAttributes:Yd({},o)});case Jd.HTML:return Yd({},i,{htmlAttributes:Yd({},o)});default:return Yd({},i,((n={})[r.type]=Yd({},o),n))}},r.mapArrayTypeChildrenToProps=function(e,t){var n=Yd({},t);return Object.keys(e).forEach((function(t){var r;n=Yd({},n,((r={})[t]=e[t],r))})),n}
2,r.warnOnInvalidChildren=function(e,t){return $d()(rp.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+rp.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),$d()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,n){var r=this,i={};return t.Children.forEach(e,(function(e){if(e&&e.props){var t=e.props,o=t.children,a=Zd(t,Rp),s=Object.keys(a).reduce((function(e,t){return e[op[t]||t]=a[t],e}),{}),u=e.type;switch("symbol"==typeof u?u=u.toString():r.warnOnInvalidChildren(e,o),u){case Jd.FRAGMENT:n=r.mapChildrenToProps(o,n);break;case Jd.LINK:case Jd.META:case Jd.NOSCRIPT:case Jd.SCRIPT:case Jd.STYLE:i=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:s,nestedChildren:o});break;default:n=r.mapObjectTypeChildren({child:e,newProps:n,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(i,n)},r.render=function(){var e=this.props,n=e.children,r=Zd(e,Lp),i=Yd({},r),o=r.helmetData;return n&&(i=this.mapChildrenToProps(n,i)),!o||o instanceof Ep||(o=new Ep(o.context,o.instances)),o?t.createElement(jp,Yd({},i,{context:o.value,helmetData:void 0})):t.createElement(Cp.Consumer,null,(function(e){return t.createElement(jp,Yd({},i,{context:e}))}))},n}(t.Component);Mp.propTypes={base:Hd().object,bodyAttributes:Hd().object,children:Hd().oneOfType([Hd().arrayOf(Hd().node),Hd().node]),defaultTitle:Hd().string,defer:Hd().bool,encodeSpecialCharacters:Hd().bool,htmlAttributes:Hd().object,link:Hd().arrayOf(Hd().object),meta:Hd().arrayOf(Hd().object),noscript:Hd().arrayOf(Hd().object),onChangeClientState:Hd().func,script:Hd().arrayOf(Hd().object),style:Hd().arrayOf(Hd().object),title:Hd().string,titleAttributes:Hd().object,titleTemplate:Hd().string,prioritizeSeoTags:Hd().bool,helmetData:Hd().object},Mp.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Mp.displayName="Helmet";var Dp={SYSTEM:{MUSCULOSKELETAL:"Musculoskeletal",CARDIOVASCULAR:"Cardiovascular",NEUROANATOMY:"Neuroanatomy",RESPIRATORY:"Respiratory",DIGESTIVE:"Digestive",URINARY:"Urinary",REPRODUCTIVE:"Reproductive"},REGION:{UPPER_LIMB:"Upper Limb",LOWER_LIMB:"Lower Limb",HEAD:"Head",NECK:"Neck",BACK:"Back",THORAX:"Thorax",ABDOMEN:"Abdomen",PELVIS:"Pelvis",NEUROANATOMY:"Neuroanatomy"},STRUCTURE:{BONE:"Bone",JOINT:"Joint",MUSCLE:"Muscle",VASCULATURE:"Vasculature",ORGAN:"Organ",NERVE:"Nerve"}};function Fp(){var e=Nf(),n=e.collapseSidebar,r=e.collapsed,i=$i();(0,t.useEffect)((function(){n(!0)}),[i.pathname,n]);var o=Dp.REGION;return(0,ea.jsxs)("div",{className:"sidebar",id:"sidebarId",children:[(0,ea.jsx)("div",{className:"sidebar_bg ".concat(!1===r?"active":""),onClick:function(){return n(!0)}}),(0,ea.jsx)(Ul,{defaultCollapsed:!0,defaultOpen:!1,collapsedWidth:"0",children:(0,ea.jsxs)(Hl,{closeOnClick:!1,children:[(0,ea.jsx)(Af,{className:"sub-menu",component:"div",children:(0,ea.jsx)(ca,{to:Ud.path,end:!0,children:Ud.label})}),(0,ea.jsxs)(Of,{label:"Notes",component:"div",children:[(0,ea.jsx)(Af,{className:"sub-menu",component:"div",children:(0,ea.jsx)(ca,{to:"/notes",end:!0,children:"All Notes"})}),Object.keys(o).map((function(e){return(0,ea.jsx)(Af,{className:"sub-menu",component:"div",children:(0,ea.jsx)(ca,{to:Dd.getPath(e),children:o[e]})},e)}))]})]})})]})}var Bp={container:{minHeight:"calc(100vh - 77.5px)",display:"flex",alignItems:"center",justifyContent:"center"},title:{fontWeight:500,fontSize:48,textAlign:"center"}};function Up(){return(0,ea.jsx)("div",{children:(0,ea.jsx)("h1",{style:Bp.title,children:"Welcome page"})})}function Vp(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function qp(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Vp(o,r,i,a,s,"next",e)}function s(e){Vp(o,r,i,a,s,"throw",e)}a(void 0)}))}}var zp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce((function(e,t){return e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"}),"")};function Hp(e){var t=e.name,n=e.label,r=void 0===n?"":n,i=e.type,o=void 0===i?"text":i,a=e.isRequired,s=zp();return(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)("input",{id:s,className:"auth__input",type:o,name:t}),(0,ea.jsxs)("label",{htmlFor:s,className:"auth__label",children:[r,a?(0,ea.jsx)("span",{className:"auth_require",children:"*"}):null]})]})}function Wp(){return(0,ea.jsx)("div",{className:"loader_circle"})}function Kp(e){var t=e.disabled,n=void 0!==t&&t,r=e.handlerClick,i=e.children,o=e.loading,a=void 0!==o&&o,s=e.className,u=void 0===s?"":s;return(0,ea.jsxs)("button",{disabled:n,onClick:r,className:"base_button ".concat(u),children:[a?(0,ea.jsx)(Wp,{}):null,i]})}var Gp=function(e){var t=e.name,n=e.email,r=e.password,i=e.password_confirm,o={};return t||(o.name="Name is required"),n?/\S+@\S+\.\S+/.test(n)||(o.email="Email is invali
2d"):o.email="Email is required",r?r.length<6&&(o.password="Password must be at least 6 characters long"):o.password="Password is required",i?i!==r&&(o.password_confirm="Passwords do not match"):o.password_confirm="Password confirmation is required",o},$p=function(e){var t=e.email,n=e.password,r={};return t?/\S+@\S+\.\S+/.test(t)||(r.email="Email is invalid"):r.email="Email is required",n?n.length<6&&(r.password="Password must be at least 6 characters long"):r.password="Password is required",r},Yp=function(e){for(var t="",n=0,r=["Error: ",",-starting-an-object-on-a-scalar-field"];n<r.length;n++){var i=r[n];t=e.replace(i,"")}return t},Qp=function(){return Date.now().toString(36)+Math.random().toString(36).substr(2)},Xp={"auth/wrong-password":"INVALID_PASSWORD","auth/invalid-value-(email)":"INVALID email","auth/user-not-found":"User not found"},Zp=Tr((function(){var e=(0,t.useContext)(va).authUser,n=Yr((0,t.useState)(!1),2),r=n[0],i=n[1],o=function(){var t=qp(ti().mark((function t(n){var r,o,a,s;return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),r=Object.fromEntries(Array.from(new FormData(n.target))),o=Gp(r),!(Object.keys(o).length>0)){t.next=6;break}return a=Object.values(o).join("\n"),t.abrupt("return",Jo.error(a));case 6:return t.prev=6,i(!0),t.next=10,e.createUserWithEmailAndPassword(r);case 10:if((s=t.sent).success){t.next=13;break}throw new Error(s.errorCode);case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(6),Jo.error(Xp[t.t0.message]);case 18:return t.prev=18,i(!1),t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[6,15,18,21]])})));return function(e){return t.apply(this,arguments)}}();return(0,ea.jsx)("div",{className:"auth--wrapper",children:(0,ea.jsxs)("div",{className:"auth_form--wrap",children:[(0,ea.jsx)("h2",{className:"auth__form__title",children:"Register"}),(0,ea.jsxs)("form",{className:"auth__form",onSubmit:o,autoComplete:"off",children:[(0,ea.jsx)("div",{className:"auth__item",children:(0,ea.jsx)(Hp,{name:"name",label:"Full name",isRequired:!0})}),(0,ea.jsx)("div",{className:"auth__item",children:(0,ea.jsx)(Hp,{name:"email",type:"email",label:"Email",isRequired:!0})}),(0,ea.jsx)("div",{className:"auth__item",children:(0,ea.jsx)(Hp,{name:"password",type:"password",label:"Password",isRequired:!0})}),(0,ea.jsx)("div",{className:"auth__item",children:(0,ea.jsx)(Hp,{name:"password_confirm",type:"password",label:"Confirm Password",isRequired:!0})}),(0,ea.jsx)(Kp,{loading:r,children:"Register"})]})]})})}));function Jp(){return(0,ea.jsxs)(Tp,{children:[(0,ea.jsx)(Mp,{children:(0,ea.jsx)("title",{children:"111"})}),(0,ea.jsx)(Zp,{})]})}var ev=Tr((function(){var e=(0,t.useContext)(va).authUser,n=Yr((0,t.useState)(!1),2),r=n[0],i=n[1],o=function(){var t=qp(ti().mark((function t(n){var r,o,a,s,u,l;return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),r=Object.fromEntries(Array.from(new FormData(n.target))),o=r.email,a=r.password,s=$p(r),!(Object.keys(s).length>0)){t.next=7;break}return u=Object.values(s).join("\n"),t.abrupt("return",Jo.error(u));case 7:return t.prev=7,i(!0),t.next=11,e.logIn(o,a);case 11:if((l=t.sent).success){t.next=14;break}throw new Error(l.errorCode);case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(7),Jo.error(Xp[t.t0.message]);case 19:return t.prev=19,i(!1),t.finish(19);case 22:case"end":return t.stop()}}),t,null,[[7,16,19,22]])})));return function(e){return t.apply(this,arguments)}}();return(0,ea.jsx)("div",{className:"auth--wrapper",children:(0,ea.jsxs)("div",{className:"auth_form--wrap",children:[(0,ea.jsx)("h2",{className:"auth__form__title",children:"Sing In"}),(0,ea.jsxs)("form",{className:"auth__form",onSubmit:o,autoComplete:"off",children:[(0,ea.jsx)("div",{className:"auth__item",children:(0,ea.jsx)(Hp,{name:"email",type:"email",label:"Email",isRequired:!0})}),(0,ea.jsx)("div",{className:"auth__item",children:(0,ea.jsx)(Hp,{name:"password",type:"password",label:"Password",isRequired:!0})}),(0,ea.jsx)(Kp,{loading:r,children:"Sign In"}),(0,ea.jsx)("div",{className:"singin__link--wrap",children:(0,ea.jsx)(la,{className:"singIn__link",to:"/singup",children:"Register"})})]})]})})}));function tv(){return(0,ea.jsx)(Tp,{children:(0,ea.jsxs)("div",{children:[(0,ea.jsx)(Mp,{children:(0,ea.jsx)("title",{children:"Sing In"})}),(0,ea.jsx)(ev,{})]})})}var nv,rv=function(){return(0,ea.jsx)(ta,{children:(0,ea.jsx)("div",{className:"notFound--wrapper",children:(0,ea.jsx)("h1",{className:"notFound",children:"404 Page not found"})})})},iv=["title","titleId"];function ov(){return ov=Object.assign||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},ov.apply(this,arguments)}function av(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sv(e,n){var r=e.title,i=e.titleId,o=av(e,iv);return t.createElement("svg",ov({focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,nv||(nv=t.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})))}var uv,lv=t.forwardRef(sv),cv=(n.p,["title","titleId"]);function fv(){return fv=Object.assign||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},fv.apply(this,arguments)}function hv(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dv(e,n){var r=e.title,i=e.titleId,o=hv(e,cv);return t.createElement("svg",fv({focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,uv||(uv=t.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"})))}var pv,vv=t.forwardRef(dv),yv=(n.p,["title","titleId"]);function mv(){return mv=Object.assign||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},mv.apply(this,arguments)}
2function gv(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bv(e,n){var r=e.title,i=e.titleId,o=gv(e,yv);return t.createElement("svg",mv({focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,pv||(pv=t.createElement("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"})))}var wv=t.forwardRef(bv);n.p;function kv(e){var t=e.onClose;return(0,ea.jsxs)("button",{type:"button",className:"btn-close",onClick:t,children:[(0,ea.jsx)("span",{className:"icon-cross"}),(0,ea.jsx)("span",{className:"visually-hidden"})]})}function xv(e){var t=e.content,n=void 0===t?"":t,r=e.onClose,i=e.onConfirm,o=e.onCancel,a=e.children,s=e.confirmButtonLabel,u=void 0===s?"Yes":s,l=e.cancelButtonLabel,c=void 0===l?"No":l,f=e.width,h=void 0===f?"auto":f,d=e.disabled,p=void 0!==d&&d;return(0,ea.jsxs)("div",{className:"confirm_modal",children:[(0,ea.jsx)("div",{className:"confirm_modal__bg"}),(0,ea.jsxs)("div",{className:"confirm_modal__main",children:[(0,ea.jsx)("div",{className:"confirm_modal__close",children:(0,ea.jsx)(kv,{onClose:r})}),(0,ea.jsx)("div",{className:"confirm_modal__content",style:{width:h},children:n||a}),(0,ea.jsxs)("div",{className:"confirm_modal__footer",children:[(0,ea.jsx)("button",{onClick:i,disabled:p,children:u}),""!==c?(0,ea.jsx)("button",{onClick:o,children:c}):null]})]})]})}var _v=function(e){var n=e.note,r=e.deleteNoteById,i=Yr((0,t.useState)(!1),2),o=i[0],a=i[1],s=function(){return a((function(e){return!e}))};return(0,ea.jsx)("li",{className:"note__item",children:(0,ea.jsxs)("div",{className:"note__item--wrap",children:[(0,ea.jsx)("h4",{className:"note__title",children:n.title}),(0,ea.jsxs)("div",{className:"note__navigation",children:[(0,ea.jsx)("button",{className:"note__btn",type:"button",onClick:function(){return a((function(e){return!e}))},children:(0,ea.jsx)(lv,{className:"note__icon"})}),o?(0,ea.jsxs)(xv,{onClose:s,onCancel:s,onConfirm:function(){r(n.id),a(!1)},children:['Are you sure you want to delete "',n.title,'" ?']}):null,(0,ea.jsx)(la,{className:"note__link",to:Vd.getPath(n.id),children:(0,ea.jsx)(vv,{className:"note__icon"})}),(0,ea.jsx)(la,{className:"note__link",to:"/viewer/".concat(n.id),children:(0,ea.jsx)(wv,{className:"note__icon"})})]})]})})};function Ev(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=qr(e)););return e}function Cv(){return Cv="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ev(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Cv.apply(this,arguments)}var Sv=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},Ov={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var o=e[i],a=i+1<e.length,s=a?e[i+1]:0,u=i+2<e.length,l=u?e[i+2]:0,c=o>>2,f=(3&o)<<4|s>>4,h=(15&s)<<2|l>>6,d=63&l;u||(d=64,a||(h=64)),r.push(n[c],n[f],n[h],n[d])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Sv(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{var s=e[n++],u=e[n++];
2t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&u)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,u=++i<e.length?n[e.charAt(i)]:64;if(++i,null==o||null==a||null==s||null==u)throw new Tv;var l=o<<2|a>>4;if(r.push(l),64!==s){var c=a<<4&240|s>>2;if(r.push(c),64!==u){var f=s<<6&192|u;r.push(f)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},Tv=function(e){Vr(n,e);var t=Kr(n);function n(){var e;return Lr(this,n),(e=t.apply(this,arguments)).name="DecodeBase64StringError",e}return Br(n)}(Xr(Error)),Av=function(e){return function(e){var t=Sv(e);return Ov.encodeByteArray(t,!0)}(e).replace(/\./g,"")},Iv=function(e){try{return Ov.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};var Nv=function(){return function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__},Pv=function(){try{return Nv()||function(){if("undefined"!==typeof process){var e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BIO_PUBLIC_KEY:"ade1c97a330684304f79430b5049f4bb0a0da7c4",REACT_APP_BIO_SECRET_KEY:"2e48cbad663179f94f80245cf290a6ca034084f3"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0}}()||function(){if("undefined"!==typeof document){var e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}var t=e&&Iv(e[1]);return t&&JSON.parse(t)}}()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},jv=function(e){var t,n;return null===(n=null===(t=Pv())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},Rv=function(){var e;return null===(e=Pv())||void 0===e?void 0:e.config},Lv=function(e){var t;return null===(t=Pv())||void 0===t?void 0:t["_".concat(e)]},Mv=function(){function e(){var t=this;Lr(this,e),this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return Br(e,[{key:"wrapCallback",value:function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}}}]),e}();function Dv(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var o=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[Av(JSON.stringify({alg:"none",type:"JWT"})),Av(JSON.stringify(o)),""].join(".")}function Fv(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function Bv(){try{return"object"===typeof indexedDB}catch(e){return!1}}var Uv=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i){var o;return Lr(this,n),(o=t.call(this,r)).code=e,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf(Hr(o),n.prototype),Error.captureStackTrace&&Error.captureStackTrace(Hr(o),Vv.prototype.create),o}return Br(n)}(Xr(Error)),Vv=function(){function e(t,n,r){Lr(this,e),this.service=t,this.serviceName=n,this.errors=r}return Br(e,[{key:"create",value:function(e){var t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?qv(r,t):"Error",o="".concat(this.serviceName,": ").concat(i," (").concat(n,")."),a=new Uv(n,o,t);return a}}]),e}();function qv(e,t){return e.replace(zv,(function(e,n){var r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}var zv=/\{\$([^}]+)}/g;function Hv(e,t){if(e===t)return!0;for(var n=Object.keys(e),r=Object.keys(t),i=0,o=n;i<o.length;i++){var a=o[i];if(!r.includes(a))return!1;var s=e[a],u=t[a];if(Wv(s)&&Wv(u)){if(!Hv(s,u))return!1}else if(s!==u)return!1}for(var l=0,c=r;l<c.length;l++){var f=c[l];if(!n.includes(f))return!1}return!0}function Wv(e){return null!==e&&"object"===typeof e}function Kv(e){for(var t=[],n=function(){var e=Yr(i[r],2),n=e[0],o=e[1];Array.isArray(o)?o.forEach((function(e){t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))},r=0,i=Object.entries(e);r<i.length;r++)n();return t.length?"&"+t.join("&"):""}function Gv(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=Yr(e.split("="),2),r=n[0],i=n[1];
2t[decodeURIComponent(r)]=decodeURIComponent(i)}})),t}function $v(e){var t=e.indexOf("?");if(!t)return"";var n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}var Yv=function(){function e(t,n){var r=this;Lr(this,e),this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then((function(){t(r)})).catch((function(e){r.error(e)}))}return Br(e,[{key:"next",value:function(e){this.forEachObserver((function(t){t.next(e)}))}},{key:"error",value:function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)}},{key:"complete",value:function(){this.forEachObserver((function(e){e.complete()})),this.close()}},{key:"subscribe",value:function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==typeof e||null===e)return!1;var n,r=Zr(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i in e&&"function"===typeof e[i])return!0}}catch(o){r.e(o)}finally{r.f()}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=Qv),void 0===r.error&&(r.error=Qv),void 0===r.complete&&(r.complete=Qv);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}})),this.observers.push(r),o}},{key:"unsubscribeOne",value:function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}},{key:"forEachObserver",value:function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)}},{key:"sendOne",value:function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}}))}},{key:"close",value:function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))}}]),e}();function Qv(){}function Xv(e){return e&&e._delegate?e._delegate:e}var Zv=function(){function e(t,n,r){Lr(this,e),this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return Br(e,[{key:"setInstantiationMode",value:function(e){return this.instantiationMode=e,this}},{key:"setMultipleInstances",value:function(e){return this.multipleInstances=e,this}},{key:"setServiceProps",value:function(e){return this.serviceProps=e,this}},{key:"setInstanceCreatedCallback",value:function(e){return this.onInstanceCreated=e,this}}]),e}(),Jv="[DEFAULT]",ey=function(){function e(t,n){Lr(this,e),this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return Br(e,[{key:"get",value:function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new Mv;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(i){}}return this.instancesDeferred.get(t).promise}},{key:"getImmediate",value:function(e){var t,n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}},{key:"getComponent",value:function(){return this.component}},{key:"setComponent",value:function(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:Jv})}catch(u){}var t,n=Zr(this.instancesDeferred.entries());try{for(n.s();!(t=n.n()).done;){var r=Yr(t.value,2),i=r[0],o=r[1],a=this.normalizeInstanceIdentifier(i);try{var s=this.getOrInitializeService({instanceIdentifier:a});o.resolve(s)}catch(u){}}}catch(l){n.e(l)}finally{n.f()}}}},{key:"clearInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jv;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}},{key:"delete",value:function(){var e=qp(ei.mark((function e(){var t;return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Array.from(this.instances.values()),e.next=3,Promise.all([].
2concat(Rr(t.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()}))),Rr(t.filter((function(e){return"_delete"in e})).map((function(e){return e._delete()})))));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isComponentSet",value:function(){return null!=this.component}},{key:"isInitialized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jv;return this.instances.has(e)}},{key:"getOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jv;return this.instancesOptions.get(e)||{}}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=void 0===t?{}:t,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error("".concat(this.name,"(").concat(r,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));var i,o=this.getOrInitializeService({instanceIdentifier:r,options:n}),a=Zr(this.instancesDeferred.entries());try{for(a.s();!(i=a.n()).done;){var s=Yr(i.value,2),u=s[0],l=s[1],c=this.normalizeInstanceIdentifier(u);r===c&&l.resolve(o)}}catch(f){a.e(f)}finally{a.f()}return o}},{key:"onInit",value:function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);var o=this.instances.get(r);return o&&e(o,r),function(){i.delete(e)}}},{key:"invokeOnInitCallbacks",value:function(e,t){var n=this.onInitCallbacks.get(t);if(n){var r,i=Zr(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;try{o(e,t)}catch(Ir){}}}catch(a){i.e(a)}finally{i.f()}}}},{key:"getOrInitializeService",value:function(e){var t=e.instanceIdentifier,n=e.options,r=void 0===n?{}:n,i=this.instances.get(t);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:ty(t),options:r}),this.instances.set(t,i),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(i,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,i)}catch(Ir){}return i||null}},{key:"normalizeInstanceIdentifier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jv;return this.component?this.component.multipleInstances?e:Jv:e}},{key:"shouldAutoInitialize",value:function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}]),e}();function ty(e){return e===Jv?void 0:e}var ny,ry,iy=function(){function e(t){Lr(this,e),this.name=t,this.providers=new Map}return Br(e,[{key:"addComponent",value:function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}},{key:"addOrOverwriteComponent",value:function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}},{key:"getProvider",value:function(e){if(this.providers.has(e))return this.providers.get(e);var t=new ey(e,this);return this.providers.set(e,t),t}},{key:"getProviders",value:function(){return Array.from(this.providers.values())}}]),e}(),oy=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(ry||(ry={}));var ay={debug:ry.DEBUG,verbose:ry.VERBOSE,info:ry.INFO,warn:ry.WARN,error:ry.ERROR,silent:ry.SILENT},sy=ry.INFO,uy=(yo(ny={},ry.DEBUG,"log"),yo(ny,ry.VERBOSE,"log"),yo(ny,ry.INFO,"info"),yo(ny,ry.WARN,"warn"),yo(ny,ry.ERROR,"error"),ny),ly=function(e,t){if(!(t<e.logLevel)){var n=(new Date).toISOString(),r=uy[t];if(!r)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var i,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(i=console)[r].apply(i,["[".concat(n,"]  ").concat(e.name,":")].concat(a))}},cy=function(){function e(t){Lr(this,e),this.name=t,this._logLevel=sy,this._logHandler=ly,this._userLogHandler=null,oy.push(this)}return Br(e,[{key:"logLevel",get:function(){return this._logLevel},set:function(e){if(!(e in ry))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}},{key:"setLogLevel",value:function(e){this._logLevel="string"===typeof e?ay[e]:e}},{key:"logHandler",get:function(){return this._logHandler},set:function(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}},{key:"userLogHandler",get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,ry.DEBUG].concat(t)),this._logHandler.apply(this,[this,ry.DEBUG].concat(t))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,ry.VERBOSE].concat(t)),this._logHandler.apply(this,[this,ry.VERBOSE].concat(t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,ry.INFO].concat(t)),this._logHandler.apply(this,[this,ry.INFO].concat(t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,ry.WARN].concat(t)),this._logHandler.apply(this,[this,ry.WARN].concat(t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,ry.ERROR].concat(t)),this._logHandler.apply(this,[this,ry.ERROR].concat(t))}}]),e}();var fy,hy;var dy=new WeakMap,py=new WeakMap,vy=new WeakMap,yy=new WeakMap,my=new WeakMap;var gy={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return py.get(e);if("objectStoreNames"===t)return e.objectStoreNames||vy.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ky(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function by(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(hy||(hy=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(xy(this),n),ky(dy.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
2return ky(e.apply(xy(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=e.call.apply(e,[xy(this),t].concat(r));return vy.set(o,t.sort?t.sort():[t]),ky(o)}}function wy(e){return"function"===typeof e?by(e):(e instanceof IDBTransaction&&function(e){if(!py.has(e)){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=function(){t(),r()},o=function(){n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));py.set(e,t)}}(e),t=e,(fy||(fy=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((function(e){return t instanceof e}))?new Proxy(e,gy):e);var t}function ky(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("success",i),e.removeEventListener("error",o)},i=function(){t(ky(e.result)),r()},o=function(){n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((function(t){t instanceof IDBCursor&&dy.set(t,e)})).catch((function(){})),my.set(t,e),t}(e);if(yy.has(e))return yy.get(e);var t=wy(e);return t!==e&&(yy.set(e,t),my.set(t,e)),t}var xy=function(e){return my.get(e)};var _y,Ey,Cy,Sy=["get","getKey","getAll","getAllKeys","count"],Oy=["put","add","delete","clear"],Ty=new Map;function Ay(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(Ty.get(t))return Ty.get(t);var n=t.replace(/FromIndex$/,""),r=t!==n,i=Oy.includes(n);if(n in(r?IDBIndex:IDBObjectStore).prototype&&(i||Sy.includes(n))){var o=function(){var e=qp(ei.mark((function e(t){var o,a,s,u,l,c,f=arguments;return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a=this.transaction(t,i?"readwrite":"readonly"),s=a.store,u=f.length,l=new Array(u>1?u-1:0),c=1;c<u;c++)l[c-1]=f[c];return r&&(s=s.index(l.shift())),e.next=6,Promise.all([(o=s)[n].apply(o,l),i&&a.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return Ty.set(t,o),o}}}_y=function(e){return go(go({},e),{},{get:function(t,n,r){return Ay(t,n)||e.get(t,n,r)},has:function(t,n){return!!Ay(t,n)||e.has(t,n)}})},gy=_y(gy);var Iy=function(){function e(t){Lr(this,e),this.container=t}return Br(e,[{key:"getPlatformInfoString",value:function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null})).filter((function(e){return e})).join(" ")}}]),e}();var Ny="@firebase/app",Py="0.9.7",jy=new cy("@firebase/app"),Ry="[DEFAULT]",Ly=(yo(Ey={},Ny,"fire-core"),yo(Ey,"@firebase/app-compat","fire-core-compat"),yo(Ey,"@firebase/analytics","fire-analytics"),yo(Ey,"@firebase/analytics-compat","fire-analytics-compat"),yo(Ey,"@firebase/app-check","fire-app-check"),yo(Ey,"@firebase/app-check-compat","fire-app-check-compat"),yo(Ey,"@firebase/auth","fire-auth"),yo(Ey,"@firebase/auth-compat","fire-auth-compat"),yo(Ey,"@firebase/database","fire-rtdb"),yo(Ey,"@firebase/database-compat","fire-rtdb-compat"),yo(Ey,"@firebase/functions","fire-fn"),yo(Ey,"@firebase/functions-compat","fire-fn-compat"),yo(Ey,"@firebase/installations","fire-iid"),yo(Ey,"@firebase/installations-compat","fire-iid-compat"),yo(Ey,"@firebase/messaging","fire-fcm"),yo(Ey,"@firebase/messaging-compat","fire-fcm-compat"),yo(Ey,"@firebase/performance","fire-perf"),yo(Ey,"@firebase/performance-compat","fire-perf-compat"),yo(Ey,"@firebase/remote-config","fire-rc"),yo(Ey,"@firebase/remote-config-compat","fire-rc-compat"),yo(Ey,"@firebase/storage","fire-gcs"),yo(Ey,"@firebase/storage-compat","fire-gcs-compat"),yo(Ey,"@firebase/firestore","fire-fst"),yo(Ey,"@firebase/firestore-compat","fire-fst-compat"),yo(Ey,"fire-js","fire-js"),yo(Ey,"firebase","fire-js-all"),Ey),My=new Map,Dy=new Map;function Fy(e,t){try{e.container.addComponent(t)}catch(n){jy.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function By(e){var t=e.name;if(Dy.has(t))return jy.debug("There were multiple attempts to register component ".concat(t,".")),!1;Dy.set(t,e);var n,r=Zr(My.values());try{for(r.s();!(n=r.n()).done;){Fy(n.value,e)}}catch(i){r.e(i)}finally{r.f()}return!0}function Uy(e,t){var n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}var Vy=(yo(Cy={},"no-app","No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()"),yo(Cy,"bad-app-name","Illegal App name: '{$appName}"),yo(Cy,"duplicate-app","Firebase App named '{$appName}' already exists with different options or config"),yo(Cy,"app-deleted","Firebase App named '{$appName}' already deleted"),yo(Cy,"no-options","Need to provide options, when not being deployed to hosting via source."),yo(Cy,"invalid-app-argument","firebase.{$appName}() takes either no argument or a Firebase App instance."),yo(Cy,"invalid-log-argument","First argument to `onLog` must be null or a function."),yo(Cy,"idb-open","Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}."),yo(Cy,"idb-get","Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}."),yo(Cy,"idb-set","Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}."),yo(Cy,"idb-delete","Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."),Cy),qy=new Vv("app","Firebase",Vy),zy=function(){function e(t,n,r){var i=this;Lr(this,e),this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Zv("app",(function(){return i}),"PUBLIC"))}return Br(e,[{key:"automaticDataCollectionEnabled",get:function(){return this.checkDestroyed(),this._automaticDataCollectionEnabled},set:function(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}},{key:"name",get:function(){return this.checkDestroyed(),this._name}},{key:"options",get:function(){return this.checkDestroyed(),this._options}},{key:"config",get:function(){return this.checkDestroyed(),this._config}},{key:"container",get:function(){return this._container}}
2,{key:"isDeleted",get:function(){return this._isDeleted},set:function(e){this._isDeleted=e}},{key:"checkDestroyed",value:function(){if(this.isDeleted)throw qy.create("app-deleted",{appName:this._name})}}]),e}(),Hy="9.19.1";function Wy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){var r=t;t={name:r}}var i=Object.assign({name:Ry,automaticDataCollectionEnabled:!1},t),o=i.name;if("string"!==typeof o||!o)throw qy.create("bad-app-name",{appName:String(o)});if(n||(n=Rv()),!n)throw qy.create("no-options");var a=My.get(o);if(a){if(Hv(n,a.options)&&Hv(i,a.config))return a;throw qy.create("duplicate-app",{appName:o})}var s,u=new iy(o),l=Zr(Dy.values());try{for(l.s();!(s=l.n()).done;){var c=s.value;u.addComponent(c)}}catch(h){l.e(h)}finally{l.f()}var f=new zy(n,i,u);return My.set(o,f),f}function Ky(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ry,t=My.get(e);if(!t&&e===Ry)return Wy();if(!t)throw qy.create("no-app",{appName:e});return t}function Gy(e,t,n){var r,i=null!==(r=Ly[e])&&void 0!==r?r:e;n&&(i+="-".concat(n));var o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){var s=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return o&&s.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),o&&a&&s.push("and"),a&&s.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void jy.warn(s.join(" "))}By(new Zv("".concat(i,"-version"),(function(){return{library:i,version:t}}),"VERSION"))}var $y="firebase-heartbeat-store",Yy=null;function Qy(){return Yy||(Yy=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,o=n.blocking,a=n.terminated,s=indexedDB.open(e,t),u=ky(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(ky(s.result),e.oldVersion,e.newVersion,ky(s.transaction))})),r&&s.addEventListener("blocked",(function(){return r()})),u.then((function(e){a&&e.addEventListener("close",(function(){return a()})),o&&e.addEventListener("versionchange",(function(){return o()}))})).catch((function(){})),u}("firebase-heartbeat-database",1,{upgrade:function(e,t){if(0===t)e.createObjectStore($y)}}).catch((function(e){throw qy.create("idb-open",{originalErrorMessage:e.message})}))),Yy}function Xy(e){return Zy.apply(this,arguments)}function Zy(){return Zy=qp(ei.mark((function e(t){var n,r;return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Qy();case 3:return n=e.sent,e.abrupt("return",n.transaction($y).objectStore($y).get(tm(t)));case 7:e.prev=7,e.t0=e.catch(0),e.t0 instanceof Uv?jy.warn(e.t0.message):(r=qy.create("idb-get",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),jy.warn(r.message));case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),Zy.apply(this,arguments)}function Jy(e,t){return em.apply(this,arguments)}function em(){return em=qp(ei.mark((function e(t,n){var r,i,o,a;return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Qy();case 3:return r=e.sent,i=r.transaction($y,"readwrite"),o=i.objectStore($y),e.next=8,o.put(n,tm(t));case 8:return e.abrupt("return",i.done);case 11:e.prev=11,e.t0=e.catch(0),e.t0 instanceof Uv?jy.warn(e.t0.message):(a=qy.create("idb-set",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),jy.warn(a.message));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),em.apply(this,arguments)}function tm(e){return"".concat(e.name,"!").concat(e.options.appId)}var nm=function(){function e(t){var n=this;Lr(this,e),this.container=t,this._heartbeatsCache=null;var r=this.container.getProvider("app").getImmediate();this._storage=new am(r),this._heartbeatsCachePromise=this._storage.read().then((function(e){return n._heartbeatsCache=e,e}))}return Br(e,[{key:"triggerHeartbeat",value:function(){var e=qp(ei.mark((function e(){var t,n,r;return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.container.getProvider("platform-logger").getImmediate(),n=t.getPlatformInfoString(),r=rm(),null!==this._heartbeatsCache){e.next=7;break}return e.next=6,this._heartbeatsCachePromise;case 6:this._heartbeatsCache=e.sent;case 7:if(this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((function(e){return e.date===r}))){e.next=11;break}return e.abrupt("return");case 11:this._heartbeatsCache.heartbeats.push({date:r,agent:n});case 12:return this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((function(e){var t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),e.abrupt("return",this._storage.overwrite(this._heartbeatsCache));case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getHeartbeatsHeader",value:function(){var e=qp(ei.mark((function e(){var t,n,r,i,o;return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this._heartbeatsCache){e.next=3;break}return e.next=3,this._heartbeatsCachePromise;case 3:if(null!==this._heartbeatsCache&&0!==this._heartbeatsCache.heartbeats.length){e.next=5;break}return e.abrupt("return","");case 5:if(t=rm(),n=im(this._heartbeatsCache.heartbeats),r=n.heartbeatsToSend,i=n.unsentEntries,o=Av(JSON.stringify({version:2,heartbeats:r})),this._heartbeatsCache.lastSentHeartbeatDate=t,!(i.length>0)){e.next=15;break}return this._heartbeatsCache.heartbeats=i,e.next=13,this._storage.overwrite(this._heartbeatsCache);case 13:e.next=17;break;case 15:this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache);case 17:return e.abrupt("return",o);case 18:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function rm(){return(new Date).toISOString().substring(0,10)}function im(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,r=[],i=e.slice(),o=Zr(e);try{var a=function(){var e=t.value,o=r.find((function(t){return t.agent===e.agent}));if(o){if(o.dates.push(e.date),sm(r)>n)return o.dates.pop(),"break"}else if(r.push({agent:e.agent,dates:[e.date]}),sm(r)>n)return r.pop(),"break";i=i.slice(1)};for(o.s();!(t=o.n()).done;){var s=a();if("break"===s)break}}catch(u){o.e(u)}finally{o.f()}return{heartbeatsToSend:r,unsentEntries:i}}var om,am=function(){function e(t){Lr(this,e),this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}return Br(e,[{key:"runIndexedDBEnvironmentCheck",value:function(){var e=qp(ei.mark((function e(){return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Bv()){e.next=4;break}return e.abrupt("return",!1);case 4:return e.abrupt("return",new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(o){t(o)}})).then((function(){return!0})).catch((function(){return!1})));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"read",value:function(){var e=qp(ei.mark((function e(){var t;return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return",{heartbeats:[]});case 7:return e.next=9,Xy(this.app);case 9:return t=e.sent,e.abrupt("return",t||{heartbeats:[]});case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}
2,{key:"overwrite",value:function(){var e=qp(ei.mark((function e(t){var n,r;return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",Jy(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:t.heartbeats}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"add",value:function(){var e=qp(ei.mark((function e(t){var n,r;return ei.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",Jy(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:[].concat(Rr(r.heartbeats),Rr(t.heartbeats))}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}();function sm(e){return Av(JSON.stringify({version:2,heartbeats:e})).length}om="",By(new Zv("platform-logger",(function(e){return new Iy(e)}),"PRIVATE")),By(new Zv("heartbeat",(function(e){return new nm(e)}),"PRIVATE")),Gy(Ny,Py,om),Gy(Ny,Py,"esm2017"),Gy("fire-js","");var um,lm="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},cm={},fm=fm||{},hm=lm||self;function dm(){}function pm(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function vm(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var ym="closure_uid_"+(1e9*Math.random()>>>0),mm=0;function gm(e,t,n){return e.call.apply(e.bind,arguments)}function bm(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function wm(e,t,n){return(wm=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?gm:bm).apply(null,arguments)}function km(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function xm(e,t){function n(){}n.prototype=t.prototype,e.X=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Wb=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function _m(){this.s=this.s,this.o=this.o}_m.prototype.s=!1,_m.prototype.na=function(){!this.s&&(this.s=!0,this.M(),0)&&function(e){Object.prototype.hasOwnProperty.call(e,ym)&&e[ym]||(e[ym]=++mm)}(this)},_m.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var Em=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1};function Cm(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function Sm(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(pm(r)){var i=e.length||0,o=r.length||0;e.length=i+o;for(var a=0;a<o;a++)e[i+a]=r[a]}else e.push(r)}}function Om(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}Om.prototype.h=function(){this.defaultPrevented=!0};var Tm=function(){if(!hm.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{hm.addEventListener("test",dm,t),hm.removeEventListener("test",dm,t)}catch(n){}return e}();function Am(e){return/^[\s\xa0]*$/.test(e)}var Im=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function Nm(e,t){return e<t?-1:e>t?1:0}function Pm(){var e=hm.navigator;return e&&(e=e.userAgent)?e:""}function jm(e){return-1!=Pm().indexOf(e)}function Rm(e){return Rm[" "](e),e}Rm[" "]=dm;var Lm,Mm=jm("Opera"),Dm=jm("Trident")||jm("MSIE"),Fm=jm("Edge"),Bm=Fm||Dm,Um=jm("Gecko")&&!(-1!=Pm().toLowerCase().indexOf("webkit")&&!jm("Edge"))&&!(jm("Trident")||jm("MSIE"))&&!jm("Edge"),Vm=-1!=Pm().toLowerCase().indexOf("webkit")&&!jm("Edge");function qm(){var e=hm.document;return e?e.documentMode:void 0}e:{var zm="",Hm=function(){var e=Pm();return Um?/rv:([^\);]+)(\)|;)/.exec(e):Fm?/Edge\/([\d\.]+)/.exec(e):Dm?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):Vm?/WebKit\/(\S+)/.exec(e):Mm?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(Hm&&(zm=Hm?Hm[1]:""),Dm){var Wm=qm();if(null!=Wm&&Wm>parseFloat(zm)){Lm=String(Wm);break e}}Lm=zm}var Km,Gm={};function $m(){return function(e){var t=Gm;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=e(9)}((function(){for(var e=0,t=Im(String(Lm)).split("."),n=Im("9").split("."),r=Math.max(t.length,n.length),i=0;0==e&&i<r;i++){var o=t[i]||"",a=n[i]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==o[0].length&&0==a[0].length)break;e=Nm(0==o[1].length?0:parseInt(o[1],10),0==a[1].length?0:parseInt(a[1],10))||Nm(0==o[2].length,0==a[2].length)||Nm(o[2],a[2]),o=o[3],a=a[3]}while(0==e)}return 0<=e}))}if(hm.document&&Dm){var Ym=qm();Km=Ym||(parseInt(Lm,10)||void 0)}else Km=void 0;var Qm=Km;function Xm(e,t){if(Om.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(Um){e:{try{Rm(t.nodeName);var i=!0;break e}catch(To){}i=!1}i||(t=null)}}
vendor: 10,328 bytes, line 2
2else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:Zm[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&Xm.X.h.call(this)}}xm(Xm,Om);var Zm={2:"touch",3:"pen",4:"mouse"};Xm.prototype.h=function(){Xm.X.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var Jm="closure_listenable_"+(1e6*Math.random()|0),eg=0;function tg(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=i,this.key=++eg,this.ba=this.ea=!1}function ng(e){e.ba=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function rg(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function ig(e){var t={};for(var n in e)t[n]=e[n];return t}var og="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ag(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<og.length;o++)n=og[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function sg(e){this.src=e,this.g={},this.h=0}function ug(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],o=Em(i,t);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(ng(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function lg(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.ba&&o.listener==t&&o.capture==!!n&&o.ha==r)return i}return-1}sg.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.g[o])||(e=this.g[o]=[],this.h++);var a=lg(e,t,r,i);return-1<a?(t=e[a],n||(t.ea=!1)):((t=new tg(t,this.src,o,!!r,i)).ea=n,e.push(t)),t};var cg="closure_lm_"+(1e6*Math.random()|0),fg={};function hg(e,t,n,r,i){if(r&&r.once)return pg(e,t,n,r,i);if(Array.isArray(t)){for(var o=0;o<t.length;o++)hg(e,t[o],n,r,i);return null}return n=kg(n),e&&e[Jm]?e.N(t,n,vm(r)?!!r.capture:!!r,i):dg(e,t,n,!1,r,i)}function dg(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=vm(i)?!!i.capture:!!i,s=bg(e);if(s||(e[cg]=s=new sg(e)),(n=s.add(t,n,r,a,o)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}var t=gg;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)Tm||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(mg(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function pg(e,t,n,r,i){if(Array.isArray(t)){for(var o=0;o<t.length;o++)pg(e,t[o],n,r,i);return null}return n=kg(n),e&&e[Jm]?e.O(t,n,vm(r)?!!r.capture:!!r,i):dg(e,t,n,!0,r,i)}function vg(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)vg(e,t[o],n,r,i);else r=vm(r)?!!r.capture:!!r,n=kg(n),e&&e[Jm]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=lg(o=e.g[t],n,r,i))&&(ng(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.g[t],e.h--)))):e&&(e=bg(e))&&(t=e.g[t.toString()],e=-1,t&&(e=lg(t,n,r,i)),(n=-1<e?t[e]:null)&&yg(n))}function yg(e){if("number"!==typeof e&&e&&!e.ba){var t=e.src;if(t&&t[Jm])ug(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(mg(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=bg(t))?(ug(n,e),0==n.h&&(n.src=null,t[cg]=null)):ng(e)}}}function mg(e){return e in fg?fg[e]:fg[e]="on"+e}function gg(e,t){if(e.ba)e=!0;else{t=new Xm(t,this);var n=e.listener,r=e.ha||e.src;e.ea&&yg(e),e=n.call(r,t)}return e}function bg(e){return(e=e[cg])instanceof sg?e:null}var wg="__closure_events_fn_"+(1e9*Math.random()>>>0);function kg(e){return"function"===typeof e?e:(e[wg]||(e[wg]=function(t){return e.handleEvent(t)}),e[wg])}function xg(){_m.call(this),this.i=new sg(this),this.P=this,this.I=null}function _g(e,t){var n,r=e.I;if(r)for(n=[];r;r=r.I)n.push(r);if(e=e.P,r=t.type||t,"string"===typeof t)t=new Om(t,e);else if(t instanceof Om)t.target=t.target||e;else{var i=t;ag(t=new Om(r,e),i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var a=t.g=n[o];i=Eg(a,r,!0,t)&&i}if(i=Eg(a=t.g=e,r,!0,t)&&i,i=Eg(a,r,!1,t)&&i,n)for(o=0;o<n.length;o++)i=Eg(a=t.g=n[o],r,!1,t)&&i}function Eg(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.ba&&a.capture==n){var s=a.listener,u=a.ha||a.src;a.ea&&ug(e.i,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}xm(xg,_m),xg.prototype[Jm]=!0,xg.prototype.removeEventListener=function(e,t,n,r){vg(this,e,t,n,r)},xg.prototype.M=function(){if(xg.X.M.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)ng(n[r]);delete t.g[e],t.h--}}this.I=null},xg.prototype.N=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},xg.prototype.O=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var Cg=hm.JSON.stringify;function Sg(){var e=Rg,t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var Og,Tg=function(){function e(){Lr(this,e),this.h=this.g=null}return Br(e,[{key:"add",value:function(e,t){var n=Ag.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}}]),e}(),Ag=new(function(){function e(t,n){Lr(this,e),this.i=t,this.j=n,this.h=0,this.g=null}return Br(e,[{key:"get",value:function(){var e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}]),e}())((function(){return new Ig}),(function(e){return e.reset()})),Ig=function(){function e(){Lr(this,e),this.next=this.g=this.h=null}return Br(e,[{key:"set",value:function(e,t){this.h=e,this.g=t,this.next=null}},{key:"reset",value:function(){this.next=this.g=this.h=null}}]),e}();function Ng(e){hm.setTimeout((function(){throw e}),0)}function Pg(e,t){Og||function(){var e=hm.Promise.resolve(void 0);Og=function(){e.then(Lg)}}(),jg||(Og(),jg=!0),Rg.add(e,t)}var jg=!1,Rg=new Tg;function Lg(){for(var e;e=Sg();){try{e.h.call(e.g)}catch(n){Ng(n)}var t=Ag;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}jg=!1}function Mg(e,t){xg.call(this),this.h=e||1,this.g=t||hm,this.j=wm(this.lb,this),this.l=Date.now()}function Dg(e){e.ca=!1,e.R&&(e.g.clearTimeout(e.R),e.R=null)}function Fg(e,t,n){if("function"===typeof e)n&&(e=wm(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=wm(e.handleEvent,e)}return 2147483647<Number(t)?-1:hm.setTimeout(e,t||0)}function Bg(e){e.g=Fg((function(){e.g=null,e.i&&(e.i=!1,Bg(e))}),e.j);var t=e.h;e.h=null,e.m.apply(null,t)}xm(Mg,xg),(um=Mg.prototype).ca=!1,um.R=null,um.lb=function(){if(this.ca){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.R=this.g.setTimeout(this.j,this.h-e):(this.R&&(this.g.clearTimeout(this.R),this.R=null),_g(this,"tick"),this.ca&&(Dg(this),this.start()))}},um.start=function(){this.ca=!0,this.R||(this.R=this.g.setTimeout(this.j,this.h),this.l=Date.now())},um.M=function(){Mg.X.M.call(this),Dg(this),delete this.g};var Ug=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;return Lr(this,n),(i=t.call(this)).m=e,i.j=r,i.h=null,i.i=!1,i.g=null,i}return Br(n,[{key:"l",value:function(e){this.h=arguments,this.g?this.i=!0:Bg(this)}},{key:"M",value:function(){Cv(qr(n.prototype),"M",this).call(this),this.g&&(hm.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}]),n}(_m);function Vg(e){_m.call(this),this.h=e,this.g={}}xm(Vg,_m);var qg=[];function zg(e,t,n,r){Array.isArray(n)||(n&&(qg[0]=n.toString()),n=qg);for(var i=0;i<n.length;i++){var o=hg(t,n[i],r||e.handleEvent,!1,e.h||e);if(!o)break;e.g[o.key]=o}}function Hg(e){rg(e.g,(function(e,t){this.g.hasOwnProperty(t)&&yg(e)}),e),e.g={}}function Wg(){this.g=!0}function Kg(e,t,n,r){e.info((function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var a=1;a<i.length;a++)i[a]=""}}}return Cg(n)}catch(s){return t}}(e,n)+(r?" "+r:"")}))}Vg.prototype.M=function(){Vg.X.M.call(this),Hg(this)},Vg.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Wg.prototype.Aa=function(){this.g=!1},Wg.prototype.info=function(){};var Gg={},$g=null;function Yg(){return $g=$g||new xg}function Qg(e){Om.call(this,Gg.Pa,e)}function Xg(e){var t=Yg();_g(t,new Qg(t))}function Zg(e,t){Om.call(this,Gg.STAT_EVENT,e),this.stat=t}function Jg(e){var t=Yg();_g(t,new Zg(t,e))}function eb(e,t){Om.call(this,Gg.Qa,e),this.size=t}function tb(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return hm.setTimeout((function(){e()}),t)}Gg.Pa="serverreachability",xm(Qg,Om),Gg.STAT_EVENT="statevent",xm(Zg,Om),Gg.Qa="timingevent",xm(eb,Om);var nb={NO_ERROR:0,mb:1,zb:2,yb:3,tb:4,xb:5,Ab:6,Ma:7,TIMEOUT:8,Db:9},rb={rb:"complete",Nb:"success",Na:"error",Ma:"abort",Fb:"ready",Gb:"readystatechange",TIMEOUT:"timeout",Bb:"incrementaldata",Eb:"progress",ub:"downloadprogress",Vb:"uploadprogress"};function ib(){}function ob(e){return e.h||(e.h=e.i())}function ab(){}ib.prototype.h=null;var sb,ub={OPEN:"a",qb:"b",Na:"c",Cb:"d"};function lb(){Om.call(this,"d")}function cb(){Om.call(this,"c")}function fb(){}function hb(e,t,n,r){this.l=e,this.j=t,this.m=n,this.U=r||1,this.S=new Vg(this),this.O=pb,e=Bm?125:void 0,this.T=new Mg(e),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.V=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.Y=-1,this.I=!1,this.N=0,this.L=null,this.$=this.J=this.Z=this.P=!1,this.h=new db}function db(){this.i=null,this.g="",this.h=!1}xm(lb,Om),xm(cb,Om),xm(fb,ib),fb.prototype.g=function(){return new XMLHttpRequest},fb.prototype.i=function(){return{}},sb=new fb;var pb=45e3,vb={},yb={};function mb(e,t,n){e.K=1,e.v=Mb(Nb(t)),e.s=n,e.P=!0,gb(e,null)}function gb(e,t){e.F=Date.now(),xb(e),e.A=Nb(e.v);var n=e.A,r=e.U;Array.isArray(r)||(r=[String(r)]),Yb(n.i,"t",r),e.C=0,n=e.l.H,e.h=new db,e.g=Yw(e.l,n?t:null,!e.s),0<e.N&&(e.L=new Ug
2(wm(e.La,e,e.g),e.N)),zg(e.S,e.g,"readystatechange",e.ib),t=e.H?ig(e.H):{},e.s?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.da(e.A,e.u,e.s,t)):(e.u="GET",e.g.da(e.A,e.u,null,t)),Xg(),function(e,t,n,r,i,o){e.info((function(){if(e.g)if(o)for(var a="",s=o.split("&"),u=0;u<s.length;u++){var l=s[u].split("=");if(1<l.length){var c=l[0];l=l[1];var f=c.split("_");a=2<=f.length&&"type"==f[1]?a+(c+"=")+l+"&":a+(c+"=redacted&")}}else a=null;else a=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+a}))}(e.j,e.u,e.A,e.m,e.U,e.s)}function bb(e){return!!e.g&&("GET"==e.u&&2!=e.K&&e.l.Da)}function wb(e,t,n){for(var r,i=!0;!e.I&&e.C<n.length;){if((r=kb(e,n))==yb){4==t&&(e.o=4,Jg(14),i=!1),Kg(e.j,e.m,null,"[Incomplete Response]");break}if(r==vb){e.o=4,Jg(15),Kg(e.j,e.m,n,"[Invalid Chunk]"),i=!1;break}Kg(e.j,e.m,r,null),Ob(e,r)}bb(e)&&r!=yb&&r!=vb&&(e.h.g="",e.C=0),4!=t||0!=n.length||e.h.h||(e.o=1,Jg(16),i=!1),e.i=e.i&&i,i?0<n.length&&!e.$&&(e.$=!0,(t=e.l).g==e&&t.$&&!t.K&&(t.j.info("Great, no buffering proxy detected. Bytes received: "+n.length),Vw(t),t.K=!0,Jg(11))):(Kg(e.j,e.m,n,"[Invalid Chunked Response]"),Sb(e),Cb(e))}function kb(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?yb:(n=Number(t.substring(n,r)),isNaN(n)?vb:(r+=1)+n>t.length?yb:(t=t.substr(r,n),e.C=r+n,t))}function xb(e){e.V=Date.now()+e.O,_b(e,e.O)}function _b(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=tb(wm(e.gb,e),t)}function Eb(e){e.B&&(hm.clearTimeout(e.B),e.B=null)}function Cb(e){0==e.l.G||e.I||Hw(e.l,e)}function Sb(e){Eb(e);var t=e.L;t&&"function"==typeof t.na&&t.na(),e.L=null,Dg(e.T),Hg(e.S),e.g&&(t=e.g,e.g=null,t.abort(),t.na())}function Ob(e,t){try{var n=e.l;if(0!=n.G&&(n.g==e||nw(n.h,e)))if(!e.J&&nw(n.h,e)&&3==n.G){try{var r=n.Fa.g.parse(t)}catch(o){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g){if(!(n.g.F+3e3<e.F))break e;zw(n),jw(n)}Uw(n),Jg(18)}}else n.Ba=i[1],0<n.Ba-n.T&&37500>i[2]&&n.L&&0==n.A&&!n.v&&(n.v=tb(wm(n.cb,n),6e3));if(1>=tw(n.h)&&n.ja){try{n.ja()}catch(o){}n.ja=void 0}}else Kw(n,11)}else if((e.J||n.g==e)&&zw(n),!Am(t))for(i=n.Fa.g.parse(t),t=0;t<i.length;t++){var o=i[t];if(n.T=o[0],o=o[1],2==n.G)if("c"==o[0]){n.I=o[1],n.ka=o[2];var a=o[3];null!=a&&(n.ma=a,n.j.info("VER="+n.ma));var s=o[4];null!=s&&(n.Ca=s,n.j.info("SVER="+n.Ca));var u=o[5];null!=u&&"number"===typeof u&&0<u&&(r=1.5*u,n.J=r,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;var l=e.g;if(l){var c=l.g?l.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(c){var f=r.h;f.g||-1==c.indexOf("spdy")&&-1==c.indexOf("quic")&&-1==c.indexOf("h2")||(f.j=f.l,f.g=new Set,f.h&&(rw(f,f.h),f.h=null))}if(r.D){var h=l.g?l.g.getResponseHeader("X-HTTP-Session-Id"):null;h&&(r.za=h,Lb(r.F,r.D,h))}}n.G=3,n.l&&n.l.xa(),n.$&&(n.P=Date.now()-e.F,n.j.info("Handshake RTT: "+n.P+"ms"));var d=e;if((r=n).sa=$w(r,r.H?r.ka:null,r.V),d.J){iw(r.h,d);var p=d,v=r.J;v&&p.setTimeout(v),p.B&&(Eb(p),xb(p)),r.g=d}else Bw(r);0<n.i.length&&Lw(n)}else"stop"!=o[0]&&"close"!=o[0]||Kw(n,7);else 3==n.G&&("stop"==o[0]||"close"==o[0]?"stop"==o[0]?Kw(n,7):Pw(n):"noop"!=o[0]&&n.l&&n.l.wa(o),n.A=0)}Xg()}catch(o){}}function Tb(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(pm(e)||"string"===typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.oa&&"function"==typeof e.oa)return e.oa();if(!e.W||"function"!=typeof e.W){if("undefined"!==typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!==typeof Set&&e instanceof Set)){if(pm(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}}(e),r=function(e){if(e.W&&"function"==typeof e.W)return e.W();if("undefined"!==typeof Map&&e instanceof Map||"undefined"!==typeof Set&&e instanceof Set)return Array.from(e.values());if("string"===typeof e)return e.split("");if(pm(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),i=r.length,o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}(um=hb.prototype).setTimeout=function(e){this.O=e},um.ib=function(e){e=e.target;var t=this.L;t&&3==Sw(e)?t.l():this.La(e)},um.La=function(e){try{if(e==this.g)e:{var t=Sw(this.g),n=this.g.Ea();this.g.aa();if(!(3>t)&&(3!=t||Bm||this.g&&(this.h.h||this.g.fa()||Ow(this.g)))){this.I||4!=t||7==n||Xg(),Eb(this);var r=this.g.aa();this.Y=r;t:if(bb(this)){var i=Ow(this.g);e="";var o=i.length,a=4==Sw(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){Sb(this),Cb(this);var s="";break t}this.h.i=new hm.TextDecoder}for(n=0;n<o;n++)this.h.h=!0,e+=this.h.i.decode(i[n],{stream:a&&n==o-1});i.splice(0,o),this.h.g+=e,this.C=0,s=this.h.g}else s=this.g.fa();if(this.i=200==r,function(e,t,n,r,i,o,a){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+o+" "+a}))}(this.j,this.u,this.A,this.m,this.U,t,r),this.i){if(this.Z&&!this.J){t:{if(this.g){var u,l=this.g;if((u=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Am(u)){var c=u;break t}}c=null}if(!(r=c)){this.i=!1,this.o=3,Jg(12),Sb(this),Cb(this);break e}Kg(this.j,this.m,r,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,Ob(this,r)}this.P?(wb(this,t,s),Bm&&this.i&&3==t&&(zg(this.S,this.T,"tick",this.hb),this.T.start())):(Kg(this.j,this.m,s,null),Ob(this,s)),4==t&&Sb(this),this.i&&!this.I&&(4==t?Hw(this.l,this):(this.i=!1,xb(this)))}else 400==r&&0<s.indexOf("Unknown SID")?(this.o=3,Jg(12)):(this.o=0,Jg(13)),Sb(this),Cb(this)}}}catch(t){}},um.hb=function(){if(this.g){var e=Sw(this.g),t=this.g.fa();this.C<t.length&&(Eb(this),wb(this,e,t),this.i&&4!=e&&xb(this))}},um.cancel=function(){this.I=!0,Sb(this)},um.gb=function(){this.B=null;var e=Date.now();0<=e-this.V?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.j,this.A),2!=this.K&&(Xg(),Jg(17)),Sb(this),this.o=2,Cb(this)):_b(this,this.V-e)};var Ab=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Ib(e,t){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,e instanceof Ib){this.h=void 0!==t?t:e.h,Pb(this,e.j),this.s=e.s,this.g=e.g,jb(this,e.m),this.l=e.l,t=e.i;var n=new Wb;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),Rb(this,n),this.o=e.o}else e&&(n=String(e).match(Ab))?(this.h=!!t,Pb(this,n[1]||"",!0),this.s=Db(n[2]||""),this.g=Db(n[3]||"",!0),jb(this,n[4]),this.l=Db(n[5]||"",!0),Rb(this,n[6]||"",!0),this.o=Db(n[7]||"")):(this.h=!!t,this.i=new Wb(null,this.h))}function Nb(e){return new Ib(e)}function Pb(e,t,n){e.j=n?Db(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function jb(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function Rb(e,t,n){t instanceof Wb?(e.i=t,function(e,t){t&&!e.j&&(Kb(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Gb(this,t),Yb(this,n,e))}),e)),e.j=t}(e.i,e.h)):(n||(t=Fb(t,zb)),e.i=new Wb(t,e.h))}
2function Lb(e,t,n){e.i.set(t,n)}function Mb(e){return Lb(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Db(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Fb(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Bb),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Bb(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Ib.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Fb(t,Ub,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(Fb(t,Ub,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(Fb(n,"/"==n.charAt(0)?qb:Vb,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.o)&&e.push("#",Fb(n,Hb)),e.join("")};var Ub=/[#\/\?@]/g,Vb=/[#\?:]/g,qb=/[#\?]/g,zb=/[#\?@]/g,Hb=/#/g;function Wb(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Kb(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Gb(e,t){Kb(e),t=Qb(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function $b(e,t){return Kb(e),t=Qb(e,t),e.g.has(t)}function Yb(e,t,n){Gb(e,t),0<n.length&&(e.i=null,e.g.set(Qb(e,t),Cm(n)),e.h+=n.length)}function Qb(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(um=Wb.prototype).add=function(e,t){Kb(this),this.i=null,e=Qb(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},um.forEach=function(e,t){Kb(this),this.g.forEach((function(n,r){n.forEach((function(n){e.call(t,n,r,this)}),this)}),this)},um.oa=function(){Kb(this);for(var e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},um.W=function(e){Kb(this);var t=[];if("string"===typeof e)$b(this,e)&&(t=t.concat(this.g.get(Qb(this,e))));else{e=Array.from(this.g.values());for(var n=0;n<e.length;n++)t=t.concat(e[n])}return t},um.set=function(e,t){return Kb(this),this.i=null,$b(this,e=Qb(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},um.get=function(e,t){return e&&0<(e=this.W(e)).length?String(e[0]):t},um.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var e=[],t=Array.from(this.g.keys()),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r)),o=this.W(r);for(r=0;r<o.length;r++){var a=i;""!==o[r]&&(a+="="+encodeURIComponent(String(o[r]))),e.push(a)}}return this.i=e.join("&")};var Xb=Br((function e(t,n){Lr(this,e),this.h=t,this.g=n}));function Zb(e){this.l=e||Jb,hm.PerformanceNavigationTiming?e=0<(e=hm.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(hm.g&&hm.g.Ga&&hm.g.Ga()&&hm.g.Ga().$b),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var Jb=10;function ew(e){return!!e.h||!!e.g&&e.g.size>=e.j}function tw(e){return e.h?1:e.g?e.g.size:0}function nw(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function rw(e,t){e.g?e.g.add(t):e.h=t}function iw(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function ow(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){var t,n=e.i,r=Zr(e.g.values());try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.concat(i.D)}}catch(o){r.e(o)}finally{r.f()}return n}return Cm(e.i)}function aw(){}function sw(){this.g=new aw}function uw(e,t,n){var r=n||"";try{Tb(e,(function(e,n){var i=e;vm(e)&&(i=Cg(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw t.push(r+"type="+encodeURIComponent("_badmap")),i}}function lw(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(To){}}function cw(e){this.l=e.ac||null,this.j=e.jb||!1}function fw(e,t){xg.call(this),this.D=e,this.u=t,this.m=void 0,this.readyState=hw,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}Zb.prototype.cancel=function(){if(this.i=ow(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){var e,t=Zr(this.g.values());try{for(t.s();!(e=t.n()).done;){e.value.cancel()}}catch(n){t.e(n)}finally{t.f()}this.g.clear()}},aw.prototype.stringify=function(e){return hm.JSON.stringify(e,void 0)},aw.prototype.parse=function(e){return hm.JSON.parse(e,void 0)},xm(cw,ib),cw.prototype.g=function(){return new fw(this.l,this.j)},cw.prototype.i=function(e){return function(){return e}}({}),xm(fw,xg);var hw=0;function dw(e){e.j.read().then(e.Ta.bind(e)).catch(e.ga.bind(e))}function pw(e){e.readyState=4,e.l=null,e.j=null,e.A=null,vw(e)}function vw(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(um=fw.prototype).open=function(e,t){if(this.readyState!=hw)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,vw(this)},um.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};
vendor: 5,461 bytes, line 2
2e&&(t.body=e),(this.D||hm).fetch(new Request(this.B,t)).then(this.Wa.bind(this),this.ga.bind(this))},um.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch((function(){})),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,pw(this)),this.readyState=hw},um.Wa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,vw(this)),this.g&&(this.readyState=3,vw(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ua.bind(this),this.ga.bind(this));else if("undefined"!==typeof hm.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;dw(this)}else e.text().then(this.Va.bind(this),this.ga.bind(this))},um.Ta=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?pw(this):vw(this),3==this.readyState&&dw(this)}},um.Va=function(e){this.g&&(this.response=this.responseText=e,pw(this))},um.Ua=function(e){this.g&&(this.response=e,pw(this))},um.ga=function(){this.g&&pw(this)},um.setRequestHeader=function(e,t){this.v.append(e,t)},um.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},um.getAllResponseHeaders=function(){if(!this.h)return"";for(var e=[],t=this.h.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(fw.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var yw=hm.JSON.parse;function mw(e){xg.call(this),this.headers=new Map,this.u=e||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=gw,this.K=this.L=!1}xm(mw,xg);var gw="",bw=/^https?$/i,ww=["POST","PUT"];function kw(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,xw(e),Ew(e)}function xw(e){e.D||(e.D=!0,_g(e,"complete"),_g(e,"error"))}function _w(e){if(e.h&&"undefined"!=typeof fm&&(!e.C[1]||4!=Sw(e)||2!=e.aa()))if(e.v&&4==Sw(e))Fg(e.Ha,0,e);else if(_g(e,"readystatechange"),4==Sw(e)){e.h=!1;try{var t,n=e.aa();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var o=String(e.H).match(Ab)[1]||null;if(!o&&hm.self&&hm.self.location){var a=hm.self.location.protocol;o=a.substr(0,a.length-1)}i=!bw.test(o?o.toLowerCase():"")}t=i}if(t)_g(e,"complete"),_g(e,"success");else{e.m=6;try{var s=2<Sw(e)?e.g.statusText:""}catch(Eo){s=""}e.j=s+" ["+e.aa()+"]",xw(e)}}finally{Ew(e)}}}function Ew(e,t){if(e.g){Cw(e);var n=e.g,r=e.C[0]?dm:null;e.g=null,e.C=null,t||_g(e,"ready");try{n.onreadystatechange=r}catch(i){}}}function Cw(e){e.g&&e.K&&(e.g.ontimeout=null),e.A&&(hm.clearTimeout(e.A),e.A=null)}function Sw(e){return e.g?e.g.readyState:0}function Ow(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.J){case gw:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(Lo){return null}}function Tw(e){var t="";return rg(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}function Aw(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=Tw(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):Lb(e,t,n))}function Iw(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Nw(e){this.Ca=0,this.i=[],this.j=new Wg,this.ka=this.sa=this.F=this.V=this.g=this.za=this.D=this.ia=this.o=this.S=this.s=null,this.ab=this.U=0,this.Za=Iw("failFast",!1,e),this.L=this.v=this.u=this.m=this.l=null,this.Y=!0,this.pa=this.Ba=this.T=-1,this.Z=this.A=this.C=0,this.Xa=Iw("baseRetryDelayMs",5e3,e),this.bb=Iw("retryDelaySeedMs",1e4,e),this.$a=Iw("forwardChannelMaxRetries",2,e),this.ta=Iw("forwardChannelRequestTimeoutMs",2e4,e),this.ra=e&&e.xmlHttpFactory||void 0,this.Da=e&&e.Zb||!1,this.J=void 0,this.H=e&&e.supportsCrossDomainXhr||!1,this.I="",this.h=new Zb(e&&e.concurrentRequestLimit),this.Fa=new sw,this.O=e&&e.fastHandshake||!1,this.N=e&&e.encodeInitMessageHeaders||!1,this.O&&this.N&&(this.N=!1),this.Ya=e&&e.Xb||!1,e&&e.Aa&&this.j.Aa(),e&&e.forceLongPolling&&(this.Y=!1),this.$=!this.O&&this.Y&&e&&e.detectBufferingProxy||!1,this.ja=void 0,this.P=0,this.K=!1,this.la=this.B=null}function Pw(e){if(Rw(e),3==e.G){var t=e.U++,n=Nb(e.F);Lb(n,"SID",e.I),Lb(n,"RID",t),Lb(n,"TYPE","terminate"),Dw(e,n),(t=new hb(e,e.j,t,void 0)).K=2,t.v=Mb(Nb(n)),n=!1,hm.navigator&&hm.navigator.sendBeacon&&(n=hm.navigator.sendBeacon(t.v.toString(),"")),!n&&hm.Image&&((new Image).src=t.v,n=!0),n||(t.g=Yw(t.l,null),t.g.da(t.v)),t.F=Date.now(),xb(t)}Gw(e)}function jw(e){e.g&&(Vw(e),e.g.cancel(),e.g=null)}function Rw(e){jw(e),e.u&&(hm.clearTimeout(e.u),e.u=null),zw(e),e.h.cancel(),e.m&&("number"===typeof e.m&&hm.clearTimeout(e.m),e.m=null)}function Lw(e){ew(e.h)||e.m||(e.m=!0,Pg(e.Ja,e),e.C=0)}function Mw(e,t){var n;n=t?t.m:e.U++;var r=Nb(e.F);Lb(r,"SID",e.I),Lb(r,"RID",n),Lb(r,"AID",e.T),Dw(e,r),e.o&&e.s&&Aw(r,e.o,e.s),n=new hb(e,e.j,n,e.C+1),null===e.o&&(n.H=e.s),t&&(e.i=t.D.concat(e.i)),t=Fw(e,n,1e3),n.setTimeout(
2Math.round(.5*e.ta)+Math.round(.5*e.ta*Math.random())),rw(e.h,n),mb(n,r,t)}function Dw(e,t){e.ia&&rg(e.ia,(function(e,n){Lb(t,n,e)})),e.l&&Tb({},(function(e,n){Lb(t,n,e)}))}function Fw(e,t,n){n=Math.min(e.i.length,n);var r=e.l?wm(e.l.Ra,e.l,e):null;e:for(var i=e.i,o=-1;;){var a=["count="+n];-1==o?0<n?(o=i[0].h,a.push("ofs="+o)):o=0:a.push("ofs="+o);for(var s=!0,u=0;u<n;u++){var l=i[u].h,c=i[u].g;if(0>(l-=o))o=Math.max(0,i[u].h-100),s=!1;else try{uw(c,a,"req"+l+"_")}catch(Yo){r&&r(c)}}if(s){r=a.join("&");break e}}return e=e.i.splice(0,n),t.D=e,r}function Bw(e){e.g||e.u||(e.Z=1,Pg(e.Ia,e),e.A=0)}function Uw(e){return!(e.g||e.u||3<=e.A)&&(e.Z++,e.u=tb(wm(e.Ia,e),Ww(e,e.A)),e.A++,!0)}function Vw(e){null!=e.B&&(hm.clearTimeout(e.B),e.B=null)}function qw(e){e.g=new hb(e,e.j,"rpc",e.Z),null===e.o&&(e.g.H=e.s),e.g.N=0;var t=Nb(e.sa);Lb(t,"RID","rpc"),Lb(t,"SID",e.I),Lb(t,"CI",e.L?"0":"1"),Lb(t,"AID",e.T),Lb(t,"TYPE","xmlhttp"),Dw(e,t),e.o&&e.s&&Aw(t,e.o,e.s),e.J&&e.g.setTimeout(e.J);var n=e.g;e=e.ka,n.K=1,n.v=Mb(Nb(t)),n.s=null,n.P=!0,gb(n,e)}function zw(e){null!=e.v&&(hm.clearTimeout(e.v),e.v=null)}function Hw(e,t){var n=null;if(e.g==t){zw(e),Vw(e),e.g=null;var r=2}else{if(!nw(e.h,t))return;n=t.D,iw(e.h,t),r=1}if(0!=e.G)if(e.pa=t.Y,t.i)if(1==r){n=t.s?t.s.length:0,t=Date.now()-t.F;var i=e.C;_g(r=Yg(),new eb(r,n)),Lw(e)}else Bw(e);else if(3==(i=t.o)||0==i&&0<e.pa||!(1==r&&function(e,t){return!(tw(e.h)>=e.h.j-(e.m?1:0))&&(e.m?(e.i=t.D.concat(e.i),!0):!(1==e.G||2==e.G||e.C>=(e.Za?0:e.$a))&&(e.m=tb(wm(e.Ja,e,t),Ww(e,e.C)),e.C++,!0))}(e,t)||2==r&&Uw(e)))switch(n&&0<n.length&&(t=e.h,t.i=t.i.concat(n)),i){case 1:Kw(e,5);break;case 4:Kw(e,10);break;case 3:Kw(e,6);break;default:Kw(e,2)}}function Ww(e,t){var n=e.Xa+Math.floor(Math.random()*e.bb);return e.l||(n*=2),n*t}function Kw(e,t){if(e.j.info("Error code "+t),2==t){var n=null;e.l&&(n=null);var r=wm(e.kb,e);n||(n=new Ib("//www.google.com/images/cleardot.gif"),hm.location&&"http"==hm.location.protocol||Pb(n,"https"),Mb(n)),function(e,t){var n=new Wg;if(hm.Image){var r=new Image;r.onload=km(lw,n,r,"TestLoadImage: loaded",!0,t),r.onerror=km(lw,n,r,"TestLoadImage: error",!1,t),r.onabort=km(lw,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=km(lw,n,r,"TestLoadImage: timeout",!1,t),hm.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else Jg(2);e.G=0,e.l&&e.l.va(t),Gw(e),Rw(e)}function Gw(e){if(e.G=0,e.la=[],e.l){var t=ow(e.h);0==t.length&&0==e.i.length||(Sm(e.la,t),Sm(e.la,e.i),e.h.i.length=0,Cm(e.i),e.i.length=0),e.l.ua()}}function $w(e,t,n){var r=n instanceof Ib?Nb(n):new Ib(n,void 0);if(""!=r.g)t&&(r.g=t+"."+r.g),jb(r,r.m);else{var i=hm.location;r=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;var o=new Ib(null,void 0);r&&Pb(o,r),t&&(o.g=t),i&&jb(o,i),n&&(o.l=n),r=o}return n=e.D,t=e.za,n&&t&&Lb(r,n,t),Lb(r,"VER",e.ma),Dw(e,r),r}function Yw(e,t,n){if(t&&!e.H)throw Error("Can't create secondary domain capable XhrIo object.");return(t=n&&e.Da&&!e.ra?new mw(new cw({jb:!0})):new mw(e.ra)).Ka(e.H),t}function Qw(){}function Xw(){if(Dm&&!(10<=Number(Qm)))throw Error("Environmental error: no available transport.")}function Zw(e,t){xg.call(this),this.g=new Nw(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.s=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.ya&&(e?e["X-WebChannel-Client-Profile"]=t.ya:e={"X-WebChannel-Client-Profile":t.ya}),this.g.S=e,(e=t&&t.Yb)&&!Am(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!Am(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new tk(this)}function Jw(e){lb.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function ek(){cb.call(this),this.status=1}function tk(e){this.g=e}(um=mw.prototype).Ka=function(e){this.L=e},um.da=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+e);t=t?t.toUpperCase():"GET",this.H=e,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():sb.g(),this.C=this.u?ob(this.u):ob(sb),this.g.onreadystatechange=wm(this.Ha,this);try{this.F=!0,this.g.open(t,String(e),!0),this.F=!1}catch(s){return void kw(this,s)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var i in r)n.set(i,r[i]);else{if("function"!==typeof r.keys||"function"!==typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));var o,a=Zr(r.keys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.set(s,r.get(s))}}catch(d){a.e(d)}finally{a.f()}}r=Array.from(n.keys()).find((function(e){return"content-type"==e.toLowerCase()})),i=hm.FormData&&e instanceof hm.FormData,!(0<=Em(ww,t))||r||i||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");var u,l=Zr(n);try{for(l.s();!(u=l.n()).done;){var c=Yr(u.value,2),f=c[0],h=c[1];this.g.setRequestHeader(f,h)}}
2catch(d){l.e(d)}finally{l.f()}this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{Cw(this),0<this.B&&((this.K=function(e){return Dm&&$m()&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=wm(this.qa,this)):this.A=Fg(this.qa,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(s){kw(this,s)}},um.qa=function(){"undefined"!=typeof fm&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,_g(this,"timeout"),this.abort(8))},um.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,_g(this,"complete"),_g(this,"abort"),Ew(this))},um.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Ew(this,!0)),mw.X.M.call(this)},um.Ha=function(){this.s||(this.F||this.v||this.l?_w(this):this.fb())},um.fb=function(){_w(this)},um.aa=function(){try{return 2<Sw(this)?this.g.status:-1}catch(Yd){return-1}},um.fa=function(){try{return this.g?this.g.responseText:""}catch(Yd){return""}},um.Sa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),yw(t)}},um.Ea=function(){return this.m},um.Oa=function(){return"string"===typeof this.j?this.j:String(this.j)},(um=Nw.prototype).ma=8,um.G=1,um.Ja=function(e){if(this.m)if(this.m=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;var t=new hb(this,this.j,e,void 0),n=this.s;if(this.S&&(n?ag(n=ig(n),this.S):n=this.S),null!==this.o||this.N||(t.H=n,n=null),this.O)e:{for(var r=0,i=0;i<this.i.length;i++){var o=this.i[i];if(void 0===(o="__data__"in o.g&&"string"===typeof(o=o.g.__data__)?o.length:void 0))break;if(4096<(r+=o)){r=i;break e}if(4096===r||i===this.i.length-1){r=i+1;break e}}r=1e3}else r=1e3;r=Fw(this,t,r),Lb(i=Nb(this.F),"RID",e),Lb(i,"CVER",22),this.D&&Lb(i,"X-HTTP-Session-Id",this.D),Dw(this,i),n&&(this.N?r="headers="+encodeURIComponent(String(Tw(n)))+"&"+r:this.o&&Aw(i,this.o,n)),rw(this.h,t),this.Ya&&Lb(i,"TYPE","init"),this.O?(Lb(i,"$req",r),Lb(i,"SID","null"),t.Z=!0,mb(t,i,null)):mb(t,i,r),this.G=2}}else 3==this.G&&(e?Mw(this,e):0==this.i.length||ew(this.h)||Mw(this))},um.Ia=function(){if(this.u=null,qw(this),this.$&&!(this.K||null==this.g||0>=this.P)){var e=2*this.P;this.j.info("BP detection timer enabled: "+e),this.B=tb(wm(this.eb,this),e)}},um.eb=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.L=!1,this.K=!0,Jg(10),jw(this),qw(this))},um.cb=function(){null!=this.v&&(this.v=null,jw(this),Uw(this),Jg(19))},um.kb=function(e){e?(this.j.info("Successfully pinged google.com"),Jg(2)):(this.j.info("Failed to ping google.com"),Jg(1))},(um=Qw.prototype).xa=function(){},um.wa=function(){},um.va=function(){},um.ua=function(){},um.Ra=function(){},Xw.prototype.g=function(e,t){return new Zw(e,t)},xm(Zw,xg),Zw.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.H=!0);var e=this.g,t=this.l,n=this.h||void 0;Jg(0),e.V=t,e.ia=n||{},e.L=e.Y,e.F=$w(e,null,e.V),Lw(e)},Zw.prototype.close=function(){Pw(this.g)},Zw.prototype.u=function(e){var t=this.g;if("string"===typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=Cg(e),e=n);t.i.push(new Xb(t.ab++,e)),3==t.G&&Lw(t)},Zw.prototype.M=function(){this.g.l=null,delete this.j,Pw(this.g),delete this.g,Zw.X.M.call(this)},xm(Jw,lb),xm(ek,cb),xm(tk,Qw),tk.prototype.xa=function(){_g(this.g,"a")},tk.prototype.wa=function(e){_g(this.g,new Jw(e))},tk.prototype.va=function(e){_g(this.g,new ek)},tk.prototype.ua=function(){_g(this.g,"b")},Xw.prototype.createWebChannel=Xw.prototype.g,Zw.prototype.send=Zw.prototype.u,Zw.prototype.open=Zw.prototype.m,Zw.prototype.close=Zw.prototype.close,nb.NO_ERROR=0,nb.TIMEOUT=8,nb.HTTP_ERROR=6,rb.COMPLETE="complete",ab.EventType=ub,ub.OPEN="a",ub.CLOSE="b",ub.ERROR="c",ub.MESSAGE="d",xg.prototype.listen=xg.prototype.N,mw.prototype.listenOnce=mw.prototype.O,mw.prototype.getLastError=mw.prototype.Oa,mw.prototype.getLastErrorCode=mw.prototype.Ea,mw.prototype.getStatus=mw.prototype.aa,mw.prototype.getResponseJson=mw.prototype.Sa,mw.prototype.getResponseText=mw.prototype.fa,mw.prototype.send=mw.prototype.da,mw.prototype.setWithCredentials=mw.prototype.Ka;var nk=cm.createWebChannelTransport=function(){return new Xw},rk=cm.getStatEventTarget=function(){return Yg()},ik=cm.ErrorCode=nb,ok=cm.EventType=rb,ak=cm.Event=Gg,sk=cm.Stat={sb:0,vb:1,wb:2,Pb:3,Ub:4,Rb:5,Sb:6,Qb:7,Ob:8,Tb:9,PROXY:10,NOPROXY:11,Mb:12,Ib:13,Jb:14,Hb:15,Kb:16,Lb:17,ob:18,nb:19,pb:20},uk=cm.FetchXmlHttpFactory=cw,lk=cm.WebChannel=ab,ck=cm.XhrIo=mw,fk="@firebase/firestore",hk=function(){function e(t){Lr(this,e),this.uid=t}return Br(e,[{key:"isAuthenticated",value:function(){return null!=this.uid}},{key:"toKey",value:function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}},{key:"isEqual",value:function(e){return e.uid===this.uid}}]),e}();hk.UNAUTHENTICATED=new hk(null),hk.GOOGLE_CREDENTIALS=new hk("google-credentials-uid"),hk.FIRST_PARTY=new hk("first-party-uid"),hk.MOCK_USER=new hk("mock-user");var dk="9.19.0",pk=new cy("@firebase/firestore");function vk(){return pk.logLevel}function yk(e){if(pk.logLevel<=ry.DEBUG){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=n.map(bk);
2pk.debug.apply(pk,["Firestore (".concat(dk,"): ").concat(e)].concat(Rr(i)))}}function mk(e){if(pk.logLevel<=ry.ERROR){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=n.map(bk);pk.error.apply(pk,["Firestore (".concat(dk,"): ").concat(e)].concat(Rr(i)))}}function gk(e){if(pk.logLevel<=ry.WARN){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=n.map(bk);pk.warn.apply(pk,["Firestore (".concat(dk,"): ").concat(e)].concat(Rr(i)))}}function bk(e){if("string"==typeof e)return e;try{return t=e,JSON.stringify(t)}catch(t){return e}var t}function wk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected state",t="FIRESTORE (".concat(dk,") INTERNAL ASSERTION FAILED: ")+e;throw mk(t),new Error(t)}function kk(e,t){e||wk()}function xk(e,t){return e}var _k={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},Ek=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;return Lr(this,n),(i=t.call(this,e,r)).code=e,i.message=r,i.toString=function(){return"".concat(i.name,": [code=").concat(i.code,"]: ").concat(i.message)},i}return Br(n)}(Uv),Ck=Br((function e(){var t=this;Lr(this,e),this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))})),Sk=Br((function e(t,n){Lr(this,e),this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(t))})),Ok=function(){function e(){Lr(this,e)}return Br(e,[{key:"getToken",value:function(){return Promise.resolve(null)}},{key:"invalidateToken",value:function(){}},{key:"start",value:function(e,t){e.enqueueRetryable((function(){return t(hk.UNAUTHENTICATED)}))}},{key:"shutdown",value:function(){}}]),e}(),Tk=function(){function e(t){Lr(this,e),this.token=t,this.changeListener=null}return Br(e,[{key:"getToken",value:function(){return Promise.resolve(this.token)}},{key:"invalidateToken",value:function(){}},{key:"start",value:function(e,t){var n=this;this.changeListener=t,e.enqueueRetryable((function(){return t(n.token.user)}))}},{key:"shutdown",value:function(){this.changeListener=null}}]),e}(),Ak=function(){function e(t){Lr(this,e),this.t=t,this.currentUser=hk.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}return Br(e,[{key:"start",value:function(e,t){var n=this,r=this.i,i=function(e){return n.i!==r?(r=n.i,t(e)):Promise.resolve()},o=new Ck;this.o=function(){n.i++,n.currentUser=n.u(),o.resolve(),o=new Ck,e.enqueueRetryable((function(){return i(n.currentUser)}))};var a=function(){var t=o;e.enqueueRetryable(qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.promise;case 2:return e.next=4,i(n.currentUser);case 4:case"end":return e.stop()}}),e)}))))},s=function(e){yk("FirebaseAuthCredentialsProvider","Auth detected"),n.auth=e,n.auth.addAuthTokenListener(n.o),a()};this.t.onInit((function(e){return s(e)})),setTimeout((function(){if(!n.auth){var e=n.t.getImmediate({optional:!0});e?s(e):(yk("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new Ck)}}),0),a()}},{key:"getToken",value:function(){var e=this,t=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return e.i!==t?(yk("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),e.getToken()):n?(kk("string"==typeof n.accessToken),new Sk(n.accessToken,e.currentUser)):null})):Promise.resolve(null)}},{key:"invalidateToken",value:function(){this.forceRefresh=!0}},{key:"shutdown",value:function(){this.auth&&this.auth.removeAuthTokenListener(this.o)}},{key:"u",value:function(){var e=this.auth&&this.auth.getUid();return kk(null===e||"string"==typeof e),new hk(e)}}]),e}(),Ik=function(){function e(t,n,r){Lr(this,e),this.h=t,this.l=n,this.m=r,this.type="FirstParty",this.user=hk.FIRST_PARTY,this.g=new Map}return Br(e,[{key:"p",value:function(){return this.m?this.m():null}},{key:"headers",get:function(){this.g.set("X-Goog-AuthUser",this.h);var e=this.p();return e&&this.g.set("Authorization",e),this.l&&this.g.set("X-Goog-Iam-Authorization-Token",this.l),this.g}}]),e}(),Nk=function(){function e(t,n,r){Lr(this,e),this.h=t,this.l=n,this.m=r}return Br(e,[{key:"getToken",value:function(){return Promise.resolve(new Ik(this.h,this.l,this.m))}},{key:"start",value:function(e,t){e.enqueueRetryable((function(){return t(hk.FIRST_PARTY)}))}},{key:"shutdown",value:function(){}},{key:"invalidateToken",value:function(){}}]),e}(),Pk=Br((function e(t){Lr(this,e),this.value=t,this.type="AppCheck",this.headers=new Map,t&&t.length>0&&this.headers.set("x-firebase-appcheck",this.value)})),jk=function(){function e(t){Lr(this,e),this.I=t,this.forceRefresh=!1,this.appCheck=null,this.T=null}return Br(e,[{key:"start",value:function(e,t){var n=this,r=function(e){null!=e.error&&yk("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message));var r=e.token!==n.T;return n.T=e.token,yk("FirebaseAppCheckTokenProvider","Received ".concat(r?"new":"existing"," token.")),r?t(e.token):Promise.resolve()};this.o=function(t){e.enqueueRetryable((function(){return r(t)}))};var i=function(e){yk("FirebaseAppCheckTokenProvider","AppCheck detected"),n.appCheck=e,n.appCheck.addTokenListener(n.o)};this.I.onInit((function(e){return i(e)})),setTimeout((function(){if(!n.appCheck){var e=n.I.getImmediate({optional:!0});e?i(e):yk("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}},{key:"getToken",value:function(){var e=this,t=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(t).then((function(t){return t?(kk("string"==typeof t.token),e.T=t.token,new Pk(t.token)):null})):Promise.resolve(null)}},{key:"invalidateToken",value:function(){this.forceRefresh=!0}},{key:"shutdown",value:function(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}]),e}();function Rk(e){var t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(var r=0;r<e;
2r++)n[r]=Math.floor(256*Math.random());return n}var Lk=function(){function e(){Lr(this,e)}return Br(e,null,[{key:"A",value:function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length,n="";n.length<20;)for(var r=Rk(40),i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%e.length));return n}}]),e}();function Mk(e,t){return e<t?-1:e>t?1:0}function Dk(e,t,n){return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}var Fk=function(){function e(t,n){if(Lr(this,e),this.seconds=t,this.nanoseconds=n,n<0)throw new Ek(_k.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new Ek(_k.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(t<-62135596800)throw new Ek(_k.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new Ek(_k.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return Br(e,[{key:"toDate",value:function(){return new Date(this.toMillis())}},{key:"toMillis",value:function(){return 1e3*this.seconds+this.nanoseconds/1e6}},{key:"_compareTo",value:function(e){return this.seconds===e.seconds?Mk(this.nanoseconds,e.nanoseconds):Mk(this.seconds,e.seconds)}},{key:"isEqual",value:function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}},{key:"toString",value:function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}},{key:"toJSON",value:function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}},{key:"valueOf",value:function(){var e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}],[{key:"now",value:function(){return e.fromMillis(Date.now())}},{key:"fromDate",value:function(t){return e.fromMillis(t.getTime())}},{key:"fromMillis",value:function(t){var n=Math.floor(t/1e3);return new e(n,Math.floor(1e6*(t-1e3*n)))}}]),e}(),Bk=function(){function e(t){Lr(this,e),this.timestamp=t}return Br(e,[{key:"compareTo",value:function(e){return this.timestamp._compareTo(e.timestamp)}},{key:"isEqual",value:function(e){return this.timestamp.isEqual(e.timestamp)}},{key:"toMicroseconds",value:function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}},{key:"toString",value:function(){return"SnapshotVersion("+this.timestamp.toString()+")"}},{key:"toTimestamp",value:function(){return this.timestamp}}],[{key:"fromTimestamp",value:function(t){return new e(t)}},{key:"min",value:function(){return new e(new Fk(0,0))}},{key:"max",value:function(){return new e(new Fk(253402300799,999999999))}}]),e}(),Uk=function(){function e(t,n,r){Lr(this,e),void 0===n?n=0:n>t.length&&wk(),void 0===r?r=t.length-n:r>t.length-n&&wk(),this.segments=t,this.offset=n,this.len=r}return Br(e,[{key:"length",get:function(){return this.len}},{key:"isEqual",value:function(t){return 0===e.comparator(this,t)}},{key:"child",value:function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((function(e){n.push(e)})):n.push(t),this.construct(n)}},{key:"limit",value:function(){return this.offset+this.length}},{key:"popFirst",value:function(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}},{key:"popLast",value:function(){return this.construct(this.segments,this.offset,this.length-1)}},{key:"firstSegment",value:function(){return this.segments[this.offset]}},{key:"lastSegment",value:function(){return this.get(this.length-1)}},{key:"get",value:function(e){return this.segments[this.offset+e]}},{key:"isEmpty",value:function(){return 0===this.length}},{key:"isPrefixOf",value:function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}},{key:"isImmediateParentOf",value:function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}},{key:"forEach",value:function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}},{key:"toArray",value:function(){return this.segments.slice(this.offset,this.limit())}}],[{key:"comparator",value:function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}]),e}(),Vk=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}
2return Br(n,[{key:"construct",value:function(e,t,r){return new n(e,t,r)}},{key:"canonicalString",value:function(){return this.toArray().join("/")}},{key:"toString",value:function(){return this.canonicalString()}}],[{key:"fromString",value:function(){for(var e=[],t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];if(s.indexOf("//")>=0)throw new Ek(_k.INVALID_ARGUMENT,"Invalid segment (".concat(s,"). Paths must not contain // in them."));e.push.apply(e,Rr(s.split("/").filter((function(e){return e.length>0}))))}return new n(e)}},{key:"emptyPath",value:function(){return new n([])}}]),n}(Uk),qk=/^[_a-zA-Z][_a-zA-Z0-9]*$/,zk=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}return Br(n,[{key:"construct",value:function(e,t,r){return new n(e,t,r)}},{key:"canonicalString",value:function(){return this.toArray().map((function(e){return e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),n.isValidIdentifier(e)||(e="`"+e+"`"),e})).join(".")}},{key:"toString",value:function(){return this.canonicalString()}},{key:"isKeyField",value:function(){return 1===this.length&&"__name__"===this.get(0)}}],[{key:"isValidIdentifier",value:function(e){return qk.test(e)}},{key:"keyField",value:function(){return new n(["__name__"])}},{key:"fromServerFormat",value:function(e){for(var t=[],r="",i=0,o=function(){if(0===r.length)throw new Ek(_k.INVALID_ARGUMENT,"Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"));t.push(r),r=""},a=!1;i<e.length;){var s=e[i];if("\\"===s){if(i+1===e.length)throw new Ek(_k.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var u=e[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new Ek(_k.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=u,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new Ek(_k.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new n(t)}},{key:"emptyPath",value:function(){return new n([])}}]),n}(Uk),Hk=function(){function e(t){Lr(this,e),this.path=t}return Br(e,[{key:"collectionGroup",get:function(){return this.path.popLast().lastSegment()}},{key:"hasCollectionId",value:function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}},{key:"getCollectionGroup",value:function(){return this.path.get(this.path.length-2)}},{key:"getCollectionPath",value:function(){return this.path.popLast()}},{key:"isEqual",value:function(e){return null!==e&&0===Vk.comparator(this.path,e.path)}},{key:"toString",value:function(){return this.path.toString()}}],[{key:"fromPath",value:function(t){return new e(Vk.fromString(t))}},{key:"fromName",value:function(t){return new e(Vk.fromString(t).popFirst(5))}},{key:"empty",value:function(){return new e(Vk.emptyPath())}},{key:"comparator",value:function(e,t){return Vk.comparator(e.path,t.path)}},{key:"isDocumentKey",value:function(e){return e.length%2==0}},{key:"fromSegments",value:function(t){return new e(new Vk(t.slice()))}}]),e}(),Wk=Br((function e(t,n,r,i){Lr(this,e),this.indexId=t,this.collectionGroup=n,this.fields=r,this.indexState=i}));Wk.UNKNOWN_ID=-1;function Kk(e,t){var n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,i=Bk.fromTimestamp(1e9===r?new Fk(n+1,0):new Fk(n,r));return new $k(i,Hk.empty(),t)}function Gk(e){return new $k(e.readTime,e.key,-1)}var $k=function(){function e(t,n,r){Lr(this,e),this.readTime=t,this.documentKey=n,this.largestBatchId=r}return Br(e,null,[{key:"min",value:function(){return new e(Bk.min(),Hk.empty(),-1)}},{key:"max",value:function(){return new e(Bk.max(),Hk.empty(),-1)}}]),e}();function Yk(e,t){var n=e.readTime.compareTo(t.readTime);return 0!==n?n:0!==(n=Hk.comparator(e.documentKey,t.documentKey))?n:Mk(e.largestBatchId,t.largestBatchId)}var Qk="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Xk=function(){function e(){Lr(this,e),this.onCommittedListeners=[]}return Br(e,[{key:"addOnCommittedListener",value:function(e){this.onCommittedListeners.push(e)}},{key:"raiseOnCommittedEvent",value:function(){this.onCommittedListeners.forEac
2h((function(e){return e()}))}}]),e}();function Zk(e){return Jk.apply(this,arguments)}function Jk(){return Jk=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.code===_k.FAILED_PRECONDITION&&t.message===Qk){e.next=2;break}throw t;case 2:yk("LocalStore","Unexpectedly lost primary lease");case 3:case"end":return e.stop()}}),e)}))),Jk.apply(this,arguments)}var ex=function(){function e(t){var n=this;Lr(this,e),this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t((function(e){n.isDone=!0,n.result=e,n.nextCallback&&n.nextCallback(e)}),(function(e){n.isDone=!0,n.error=e,n.catchCallback&&n.catchCallback(e)}))}return Br(e,[{key:"catch",value:function(e){return this.next(void 0,e)}},{key:"next",value:function(t,n){var r=this;return this.callbackAttached&&wk(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e((function(e,i){r.nextCallback=function(n){r.wrapSuccess(t,n).next(e,i)},r.catchCallback=function(t){r.wrapFailure(n,t).next(e,i)}}))}},{key:"toPromise",value:function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))}},{key:"wrapUserFunction",value:function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}}},{key:"wrapSuccess",value:function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.resolve(n)}},{key:"wrapFailure",value:function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.reject(n)}}],[{key:"resolve",value:function(t){return new e((function(e,n){e(t)}))}}
2,{key:"reject",value:function(t){return new e((function(e,n){n(t)}))}},{key:"waitFor",value:function(t){return new e((function(e,n){var r=0,i=0,o=!1;t.forEach((function(t){++r,t.next((function(){++i,o&&i===r&&e()}),(function(e){return n(e)}))})),o=!0,i===r&&e()}))}},{key:"or",value:function(t){var n,r=e.resolve(!1),i=Zr(t);try{var o=function(){var t=n.value;r=r.next((function(n){return n?e.resolve(n):t()}))};for(i.s();!(n=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}return r}},{key:"forEach",value:function(e,t){var n=this,r=[];return e.forEach((function(e,i){r.push(t.call(n,e,i))})),this.waitFor(r)}},{key:"mapArray",value:function(t,n){return new e((function(e,r){for(var i=t.length,o=new Array(i),a=0,s=function(s){var u=s;n(t[u]).next((function(t){o[u]=t,++a===i&&e(o)}),(function(e){return r(e)}))},u=0;u<i;u++)s(u)}))}},{key:"doWhile",value:function(t,n){return new e((function(e,r){!function i(){!0===t()?n().next((function(){i()}),r):e()}()}))}}]),e}();function tx(e){return"IndexedDbTransactionError"===e.name}var nx=function(){function e(t,n){var r=this;Lr(this,e),this.previousValue=t,n&&(n.sequenceNumberHandler=function(e){return r.ot(e)},this.ut=function(e){return n.writeSequenceNumber(e)})}return Br(e,[{key:"ot",value:function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}},{key:"next",value:function(){var e=++this.previousValue;return this.ut&&this.ut(e),e}}]),e}();function rx(e){return null==e}function ix(e){return 0===e&&1/e==-1/0}function ox(e){return"number"==typeof e&&Number.isInteger(e)&&!ix(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}nx.ct=-1;var ax=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments"].concat(["clientMetadata"]).concat(["remoteDocumentGlobal"]).concat(["collectionParents"]).concat(["bundles","namedQueries"]),sx=([].concat(Rr(ax),["documentOverlays"]),["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"]),ux=sx;[].concat(ux,["indexConfiguration","indexState","indexEntries"]);function lx(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function cx(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function fx(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var hx=function(){function e(t,n){Lr(this,e),this.comparator=t,this.root=n||px.EMPTY}return Br(e,[{key:"insert",value:function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,px.BLACK,null,null))}},{key:"remove",value:function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,px.BLACK,null,null))}},{key:"get",value:function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}},{key:"indexOf",value:function(e){for(var t=0,n=this.root;!n.isEmpty();){var r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}},{key:"isEmpty",value:function(){return this.root.isEmpty()}},{key:"size",get:function(){return this.root.size}},{key:"minKey",value:function(){return this.root.minKey()}},{key:"maxKey",value:function(){return this.root.maxKey()}},{key:"inorderTraversal",value:function(e){return this.root.inorderTraversal(e)}},{key:"forEach",value:function(e){this.inorderTraversal((function(t,n){return e(t,n),!1}))}},{key:"toString",value:function(){var e=[];return this.inorderTraversal((function(t,n){return e.push("".concat(t,":").concat(n)),!1})),"{".concat(e.join(", "),"}")}},{key:"reverseTraversal",value:function(e){return this.root.reverseTraversal(e)}},{key:"getIterator",value:function(){return new dx(this.root,null,this.comparator,!1)}},{key:"getIteratorFrom",value:function(e){return new dx(this.root,e,this.comparator,!1)}},{key:"getReverseIterator",value:function(){return new dx(this.root,null,this.comparator,!0)}},{key:"getReverseIteratorFrom",value:function(e){return new dx(this.root,e,this.comparator,!0)}}]),e}(),dx=function(){function e(t,n,r,i){Lr(this,e),this.isReverse=i,this.nodeStack=[];for(var o=1;!t.isEmpty();)if(o=n?r(t.key,n):1,n&&i&&(o*=-1),o<0)t=this.isReverse?t.left:t.right;else{if(0===o){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return Br(e,[{key:"getNext",value:function(){var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}},{key:"hasNext",value:function(){return this.nodeStack.length>0}},{key:"peek",value:function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}]),e}(),px=function(){function e(t,n,r,i,o){Lr(this,e),this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}
2return Br(e,[{key:"copy",value:function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)}},{key:"isEmpty",value:function(){return!1}},{key:"inorderTraversal",value:function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}},{key:"reverseTraversal",value:function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}},{key:"min",value:function(){return this.left.isEmpty()?this:this.left.min()}},{key:"minKey",value:function(){return this.min().key}},{key:"maxKey",value:function(){return this.right.isEmpty()?this.key:this.right.maxKey()}},{key:"insert",value:function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp()}},{key:"removeMin",value:function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()}},{key:"remove",value:function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(t,i.key)){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.fixUp()}},{key:"isRed",value:function(){return this.color}},{key:"fixUp",value:function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}},{key:"moveRedLeft",value:function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e}},{key:"moveRedRight",value:function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e}},{key:"rotateLeft",value:function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}},{key:"rotateRight",value:function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}},{key:"colorFlip",value:function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}},{key:"checkMaxDepth",value:function(){var e=this.check();return Math.pow(2,e)<=this.size+1}},{key:"check",value:function(){if(this.isRed()&&this.left.isRed())throw wk();if(this.right.isRed())throw wk();var e=this.left.check();if(e!==this.right.check())throw wk();return e+(this.isRed()?0:1)}}]),e}();px.EMPTY=null,px.RED=!0,px.BLACK=!1,px.EMPTY=new(function(){function e(){Lr(this,e),this.size=0}return Br(e,[{key:"key",get:function(){throw wk()}},{key:"value",get:function(){throw wk()}},{key:"color",get:function(){throw wk()}},{key:"left",get:function(){throw wk()}},{key:"right",get:function(){throw wk()}},{key:"copy",value:function(e,t,n,r,i){return this}},{key:"insert",value:function(e,t,n){return new px(e,t)}},{key:"remove",value:function(e,t){return this}},{key:"isEmpty",value:function(){return!0}},{key:"inorderTraversal",value:function(e){return!1}},{key:"reverseTraversal",value:function(e){return!1}},{key:"minKey",value:function(){return null}},{key:"maxKey",value:function(){return null}},{key:"isRed",value:function(){return!1}},{key:"checkMaxDepth",value:function(){return!0}},{key:"check",value:function(){return 0}}]),e}());var vx=function(){function e(t){Lr(this,e),this.comparator=t,this.data=new hx(this.comparator)}return Br(e,[{key:"has",value:function(e){return null!==this.data.get(e)}},{key:"first",value:function(){return this.data.minKey()}},{key:"last",value:function(){return this.data.maxKey()}},{key:"size",get:function(){return this.data.size}},{key:"indexOf",value:function(e){return this.data.indexOf(e)}}
2,{key:"forEach",value:function(e){this.data.inorderTraversal((function(t,n){return e(t),!1}))}},{key:"forEachInRange",value:function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}},{key:"forEachWhile",value:function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}},{key:"firstAfterOrEqual",value:function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}},{key:"getIterator",value:function(){return new yx(this.data.getIterator())}},{key:"getIteratorFrom",value:function(e){return new yx(this.data.getIteratorFrom(e))}},{key:"add",value:function(e){return this.copy(this.data.remove(e).insert(e,!0))}},{key:"delete",value:function(e){return this.has(e)?this.copy(this.data.remove(e)):this}},{key:"isEmpty",value:function(){return this.data.isEmpty()}},{key:"unionWith",value:function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach((function(e){t=t.add(e)})),t}},{key:"isEqual",value:function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),r=t.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0}},{key:"toArray",value:function(){var e=[];return this.forEach((function(t){e.push(t)})),e}},{key:"toString",value:function(){var e=[];return this.forEach((function(t){return e.push(t)})),"SortedSet("+e.toString()+")"}},{key:"copy",value:function(t){var n=new e(this.comparator);return n.data=t,n}}]),e}(),yx=function(){function e(t){Lr(this,e),this.iter=t}return Br(e,[{key:"getNext",value:function(){return this.iter.getNext().key}},{key:"hasNext",value:function(){return this.iter.hasNext()}}]),e}();var mx=function(){function e(t){Lr(this,e),this.fields=t,t.sort(zk.comparator)}return Br(e,[{key:"unionWith",value:function(t){var n,r=new vx(zk.comparator),i=Zr(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;r=r.add(o)}}catch(l){i.e(l)}finally{i.f()}var a,s=Zr(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;r=r.add(u)}}catch(l){s.e(l)}finally{s.f()}return new e(r.toArray())}},{key:"covers",value:function(e){var t,n=Zr(this.fields);try{for(n.s();!(t=n.n()).done;){if(t.value.isPrefixOf(e))return!0}}catch(r){n.e(r)}finally{n.f()}return!1}},{key:"isEqual",value:function(e){return Dk(this.fields,e.fields,(function(e,t){return e.isEqual(t)}))}}],[{key:"empty",value:function(){return new e([])}}]),e}(),gx=function(e){Vr(n,e);var t=Kr(n);function n(){var e;return Lr(this,n),(e=t.apply(this,arguments)).name="Base64DecodeError",e}return Br(n)}(Xr(Error));var bx=function(e){function t(e){Lr(this,t),this.binaryString=e}return Br(t,[{key:Symbol.iterator,value:function(){var e=this,t=0;return{next:function(){return t<e.binaryString.length?{value:e.binaryString.charCodeAt(t++),done:!1}:{value:void 0,done:!0}}}}},{key:"toBase64",value:function(){return e=this.binaryString,btoa(e);var e}},{key:"toUint8Array",value:function(){return function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}},{key:"approximateByteSize",value:function(){return 2*this.binaryString.length}},{key:"compareTo",value:function(e){return Mk(this.binaryString,e.binaryString)}},{key:"isEqual",value:function(e){return this.binaryString===e.binaryString}}],[{key:"fromBase64String",value:function(e){var n=function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new gx("Invalid base64 string: "+e):e}}(e);return new t(n)}},{key:"fromUint8Array",value:function(e){var n=function(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new t(n)}}]),t}();bx.EMPTY_BYTE_STRING=new bx("");var wx=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function kx(e){if(kk(!!e),"string"==typeof e){var t=0,n=wx.exec(e);if(kk(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e);return{seconds:Math.floor(i.getTime()/1e3),nanos:t}}return{seconds:xx(e.seconds),nanos:xx(e.nanos)}}function xx(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function _x(e){return"string"==typeof e?bx.fromBase64String(e):bx.fromUint8Array(e)}function Ex(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function Cx(e){var t=e.mapValue.fields.__previous_value__;return Ex(t)?Cx(t):t}function Sx(e){var t=kx(e.mapValue.fields.__local_write_time__.timestampValue);return new Fk(t.seconds,t.nanos)}var Ox=Br((function e(t,n,r,i,o,a,s,u){Lr(this,e),this.databaseId=t,this.appId=n,this.persistenceKey=r,this.host=i,this.ssl=o,this.forceLongPolling=a,this.autoDetectLongPolling=s,this.useFetchStreams=u})),Tx=function(){function e(t,n){Lr(this,e),this.projectId=t,this.database=n||"(default)"}return Br(e,[{key:"isDefaultDatabase",get:function(){return"(default)"===this.database}},{key:"isEqual",value:function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database}}],[{key:"empty",value:function(){return new e("","")}}]),e}(),Ax={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function Ix(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?Ex(e)?4:Hx(e)?9007199254740991:10:wk()}function Nx(e,t){if(e===t)return!0;var n=Ix(e);if(n!==Ix(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Sx(e).isEqual(Sx(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;var n=kx(e.timestampValue),r=kx(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return _x(e.bytesValue).isEqual(_x(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return xx(e.geoPointValue.latitude)===xx(t.geoPointValue.latitude)&&xx(e.geoPointValue.longitude)===xx(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return xx(e.integerValue)===xx(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){var n=xx(e.doubleValue),r=xx(t.doubleValue);return n===r?ix(n)===ix(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return Dk(e.arrayValue.values||[],t.arrayValue.values||[],Nx);case 10:return function(e,t){var n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(lx(n)!==lx(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!Nx(n[i],r[i])))return!1;return!0}(e,t);default:return wk()}}function Px(e,t){return void 0!==(e.values||[]).find((function(e){return Nx(e,t)}))}function jx(e,t){if(e===t)return 0;var n=Ix(e),r=Ix(t);if(n!==r)return Mk(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Mk(e.booleanValue,t.booleanValue);case 2:return function(e,t){var n=xx(e.integerValue||e.doubleValue),r=xx(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return Rx(e.timestampValue,t.timestampValue);case 4:return Rx(Sx(e),Sx(t));case 5:return Mk(e.stringValue,t.stringValue);case 6:return function(e,t){var n=_x(e),r=_x(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0;i<n.length&&i<r.length;i++){var o=Mk(n[i],r[i]);if(0!==o)return o}return Mk(n.length,r.length)}(e.referenceValue,t.referenceValue);
2case 8:return function(e,t){var n=Mk(xx(e.latitude),xx(t.latitude));return 0!==n?n:Mk(xx(e.longitude),xx(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){for(var n=e.values||[],r=t.values||[],i=0;i<n.length&&i<r.length;++i){var o=jx(n[i],r[i]);if(o)return o}return Mk(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){if(e===Ax.mapValue&&t===Ax.mapValue)return 0;if(e===Ax.mapValue)return 1;if(t===Ax.mapValue)return-1;var n=e.fields||{},r=Object.keys(n),i=t.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var a=0;a<r.length&&a<o.length;++a){var s=Mk(r[a],o[a]);if(0!==s)return s;var u=jx(n[r[a]],i[o[a]]);if(0!==u)return u}return Mk(r.length,o.length)}(e.mapValue,t.mapValue);default:throw wk()}}function Rx(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Mk(e,t);var n=kx(e),r=kx(t),i=Mk(n.seconds,r.seconds);return 0!==i?i:Mk(n.nanos,r.nanos)}function Lx(e){return Mx(e)}function Mx(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){var t=kx(e);return"time(".concat(t.seconds,",").concat(t.nanos,")")}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?_x(e.bytesValue).toBase64():"referenceValue"in e?(n=e.referenceValue,Hk.fromName(n).toString()):"geoPointValue"in e?"geo(".concat((t=e.geoPointValue).latitude,",").concat(t.longitude,")"):"arrayValue"in e?function(e){var t,n="[",r=!0,i=Zr(e.values||[]);try{for(i.s();!(t=i.n()).done;){var o=t.value;r?r=!1:n+=",",n+=Mx(o)}}catch(a){i.e(a)}finally{i.f()}return n+"]"}(e.arrayValue):"mapValue"in e?function(e){var t,n="{",r=!0,i=Zr(Object.keys(e.fields||{}).sort());try{for(i.s();!(t=i.n()).done;){var o=t.value;r?r=!1:n+=",",n+="".concat(o,":").concat(Mx(e.fields[o]))}}catch(a){i.e(a)}finally{i.f()}return n+"}"}(e.mapValue):wk();var t,n}function Dx(e,t){return{referenceValue:"projects/".concat(e.projectId,"/databases/").concat(e.database,"/documents/").concat(t.path.canonicalString())}}function Fx(e){return!!e&&"integerValue"in e}function Bx(e){return!!e&&"arrayValue"in e}function Ux(e){return!!e&&"nullValue"in e}function Vx(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function qx(e){return!!e&&"mapValue"in e}function zx(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){var t={mapValue:{fields:{}}};return cx(e.mapValue.fields,(function(e,n){return t.mapValue.fields[e]=zx(n)})),t}if(e.arrayValue){for(var n={arrayValue:{values:[]}},r=0;r<(e.arrayValue.values||[]).length;++r)n.arrayValue.values[r]=zx(e.arrayValue.values[r]);return n}return Object.assign({},e)}function Hx(e){return"__max__"===(((e.mapValue||{}).fields||{}).__type__||{}).stringValue}var Wx=function(){function e(t){Lr(this,e),this.value=t}return Br(e,[{key:"field",value:function(e){if(e.isEmpty())return this.value;for(var t=this.value,n=0;n<e.length-1;++n)if(!qx(t=(t.mapValue.fields||{})[e.get(n)]))return null;return(t=(t.mapValue.fields||{})[e.lastSegment()])||null}},{key:"set",value:function(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=zx(t)}},{key:"setAll",value:function(e){var t=this,n=zk.emptyPath(),r={},i=[];e.forEach((function(e,o){if(!n.isImmediateParentOf(o)){var a=t.getFieldsMap(n);t.applyChanges(a,r,i),r={},i=[],n=o.popLast()}e?r[o.lastSegment()]=zx(e):i.push(o.lastSegment())}));var o=this.getFieldsMap(n);this.applyChanges(o,r,i)}},{key:"delete",value:function(e){var t=this.field(e.popLast());qx(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}},{key:"isEqual",value:function(e){return Nx(this.value,e.value)}},{key:"getFieldsMap",value:function(e){var t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(var n=0;n<e.length;++n){var r=t.mapValue.fields[e.get(n)];qx(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}},{key:"applyChanges",value:function(e,t,n){cx(t,(function(t,n){return e[t]=n}));var r,i=Zr(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;delete e[o]}}catch(a){i.e(a)}finally{i.f()}}},{key:"clone",value:function(){return new e(zx(this.value))}}],[{key:"empty",value:function(){return new e({mapValue:{}})}}]),e}();function Kx(e){var t=[];return cx(e.fields,(function(e,n){var r=new zk([e]);if(qx(n)){var i=Kx(n.mapValue).fields;if(0===i.length)t.push(r);else{var o,a=Zr(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;t.push(r.child(s))}}catch(u){a.e(u)}finally{a.f()}}}else t.push(r)})),new mx(t)}var Gx=function(){function e(t,n,r,i,o,a,s){Lr(this,e),this.key=t,this.documentType=n,this.version=r,this.readTime=i,this.createTime=o,this.data=a,this.documentState=s}
2return Br(e,[{key:"convertToFoundDocument",value:function(e,t){return!this.createTime.isEqual(Bk.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}},{key:"convertToNoDocument",value:function(e){return this.version=e,this.documentType=2,this.data=Wx.empty(),this.documentState=0,this}},{key:"convertToUnknownDocument",value:function(e){return this.version=e,this.documentType=3,this.data=Wx.empty(),this.documentState=2,this}},{key:"setHasCommittedMutations",value:function(){return this.documentState=2,this}},{key:"setHasLocalMutations",value:function(){return this.documentState=1,this.version=Bk.min(),this}},{key:"setReadTime",value:function(e){return this.readTime=e,this}},{key:"hasLocalMutations",get:function(){return 1===this.documentState}},{key:"hasCommittedMutations",get:function(){return 2===this.documentState}},{key:"hasPendingWrites",get:function(){return this.hasLocalMutations||this.hasCommittedMutations}},{key:"isValidDocument",value:function(){return 0!==this.documentType}},{key:"isFoundDocument",value:function(){return 1===this.documentType}},{key:"isNoDocument",value:function(){return 2===this.documentType}},{key:"isUnknownDocument",value:function(){return 3===this.documentType}},{key:"isEqual",value:function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.documentType===t.documentType&&this.documentState===t.documentState&&this.data.isEqual(t.data)}},{key:"mutableCopy",value:function(){return new e(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}},{key:"toString",value:function(){return"Document(".concat(this.key,", ").concat(this.version,", ").concat(JSON.stringify(this.data.value),", {createTime: ").concat(this.createTime,"}), {documentType: ").concat(this.documentType,"}), {documentState: ").concat(this.documentState,"})")}}],[{key:"newInvalidDocument",value:function(t){return new e(t,0,Bk.min(),Bk.min(),Bk.min(),Wx.empty(),0)}},{key:"newFoundDocument",value:function(t,n,r,i){return new e(t,1,n,Bk.min(),r,i,0)}},{key:"newNoDocument",value:function(t,n){return new e(t,2,n,Bk.min(),Bk.min(),Wx.empty(),0)}},{key:"newUnknownDocument",value:function(t,n){return new e(t,3,n,Bk.min(),Bk.min(),Wx.empty(),2)}}]),e}(),$x=Br((function e(t,n){Lr(this,e),this.position=t,this.inclusive=n}));function Yx(e,t,n){for(var r=0,i=0;i<e.position.length;i++){var o=t[i],a=e.position[i];if(r=o.field.isKeyField()?Hk.comparator(Hk.fromName(a.referenceValue),n.key):jx(a,n.data.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return r}function Qx(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(var n=0;n<e.position.length;n++)if(!Nx(e.position[n],t.position[n]))return!1;return!0}var Xx=Br((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";Lr(this,e),this.field=t,this.dir=n}));function Zx(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}var Jx=Br((function e(){Lr(this,e)})),e_=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i){var o;return Lr(this,n),(o=t.call(this)).field=e,o.op=r,o.value=i,o}return Br(n,[{key:"matches",value:function(e){var t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(jx(t,this.value)):null!==t&&Ix(this.value)===Ix(t)&&this.matchesComparison(jx(t,this.value))}},{key:"matchesComparison",value:function(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return wk()}}},{key:"isInequality",value:function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}},{key:"getFlattenedFilters",value:function(){return[this]}},{key:"getFilters",value:function(){return[this]}},{key:"getFirstInequalityField",value:function(){return this.isInequality()?this.field:null}}],[{key:"create",value:function(e,t,r){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,r):new u_(e,t,r):"array-contains"===t?new h_(e,r):"in"===t?new d_(e,r):"not-in"===t?new p_(e,r):"array-contains-any"===t?new v_(e,r):new n(e,t,r)}},{key:"createKeyFieldInFilter",value:function(e,t,n){return"in"===t?new l_(e,n):new c_(e,n)}}]),n}(Jx),t_=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;return Lr(this,n),(i=t.call(this)).filters=e,i.op=r,i.ht=null,i}return Br(n,[{key:"matches",value:function(e){return n_(this)?void 0===this.filters.find((function(t){return!t.matches(e)})):void 0!==this.filters.find((function(t){return t.matches(e)}))}},{key:"getFlattenedFilters",value:function(){return null!==this.ht||(this.ht=this.filters.reduce((function(e,t){return e.concat(t.getFlattenedFilters())}),[])),this.ht}},{key:"getFilters",value:function(){return Object.assign([],this.filters)}},{key:"getFirstInequalityField",value:function(){var e=this.lt((function(e){return e.isInequality()}));return null!==e?e.field:null}},{key:"lt",value:function(e){var t,n=Zr(this.getFlattenedFilters());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e(r))return r}}catch(i){n.e(i)}finally{n.f()}return null}}],[{key:"create",value:function(e,t){return new n(e,t)}}]),n}(Jx);function n_(e){return"and"===e.op}function r_(e){return i_(e)&&n_(e)}function i_(e){var t,n=Zr(e.filters);try{for(n.s();!(t=n.n()).done;){if(t.value instanceof t_)return!1}}catch(r){n.e(r)}finally{n.f()}return!0}function o_(e){if(e instanceof e_)return e.field.canonicalString()+e.op.toString()+Lx(e.value);if(r_(e))return e.filters.map((function(e){return o_(e)})).join(",");var t=e.filters.map((function(e){return o_(e)})).join(",");return"".concat(e.op,"(").concat(t,")")}function a_(e,t){return e instanceof e_?function(e,t){return t instanceof e_&&e.op===t.op&&e.field.isEqual(t.field)&&Nx(e.value,t.value)}(e,t):e instanceof t_?function(e,t){return t instanceof t_&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce((function(e,n,r){return e&&a_(n,t.filters[r])}),!0)}(e,t):void wk()}function s_(e){return e instanceof e_?function(e){return"".concat(e.field.canonicalString()," ").concat(e.op," ").concat(Lx(e.value))}(e):e instanceof t_?function(e){return e.op.toString()+" {"+e.getFilters().map(s_).join(" ,")+"}"}(e):"Filter"}var u_=function(e){Vr(n,e);var t=Kr(n);
2function n(e,r,i){var o;return Lr(this,n),(o=t.call(this,e,r,i)).key=Hk.fromName(i.referenceValue),o}return Br(n,[{key:"matches",value:function(e){var t=Hk.comparator(e.key,this.key);return this.matchesComparison(t)}}]),n}(e_),l_=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;return Lr(this,n),(i=t.call(this,e,"in",r)).keys=f_("in",r),i}return Br(n,[{key:"matches",value:function(e){return this.keys.some((function(t){return t.isEqual(e.key)}))}}]),n}(e_),c_=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;return Lr(this,n),(i=t.call(this,e,"not-in",r)).keys=f_("not-in",r),i}return Br(n,[{key:"matches",value:function(e){return!this.keys.some((function(t){return t.isEqual(e.key)}))}}]),n}(e_);function f_(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(e){return Hk.fromName(e.referenceValue)}))}var h_=function(e){Vr(n,e);var t=Kr(n);function n(e,r){return Lr(this,n),t.call(this,e,"array-contains",r)}return Br(n,[{key:"matches",value:function(e){var t=e.data.field(this.field);return Bx(t)&&Px(t.arrayValue,this.value)}}]),n}(e_),d_=function(e){Vr(n,e);var t=Kr(n);function n(e,r){return Lr(this,n),t.call(this,e,"in",r)}return Br(n,[{key:"matches",value:function(e){var t=e.data.field(this.field);return null!==t&&Px(this.value.arrayValue,t)}}]),n}(e_),p_=function(e){Vr(n,e);var t=Kr(n);function n(e,r){return Lr(this,n),t.call(this,e,"not-in",r)}return Br(n,[{key:"matches",value:function(e){if(Px(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var t=e.data.field(this.field);return null!==t&&!Px(this.value.arrayValue,t)}}]),n}(e_),v_=function(e){Vr(n,e);var t=Kr(n);function n(e,r){return Lr(this,n),t.call(this,e,"array-contains-any",r)}return Br(n,[{key:"matches",value:function(e){var t=this,n=e.data.field(this.field);return!(!Bx(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(e){return Px(t.value.arrayValue,e)}))}}]),n}(e_),y_=Br((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;Lr(this,e),this.path=t,this.collectionGroup=n,this.orderBy=r,this.filters=i,this.limit=o,this.startAt=a,this.endAt=s,this.ft=null}));function m_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return new y_(e,t,n,r,i,o,a)}function g_(e){var t=xk(e);if(null===t.ft){var n=t.path.canonicalString();null!==t.collectionGroup&&(n+="|cg:"+t.collectionGroup),n+="|f:",n+=t.filters.map((function(e){return o_(e)})).join(","),n+="|ob:",n+=t.orderBy.map((function(e){return function(e){return e.field.canonicalString()+e.dir}(e)})).join(","),rx(t.limit)||(n+="|l:",n+=t.limit),t.startAt&&(n+="|lb:",n+=t.startAt.inclusive?"b:":"a:",n+=t.startAt.position.map((function(e){return Lx(e)})).join(",")),t.endAt&&(n+="|ub:",n+=t.endAt.inclusive?"a:":"b:",n+=t.endAt.position.map((function(e){return Lx(e)})).join(",")),t.ft=n}return t.ft}function b_(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(var n=0;n<e.orderBy.length;n++)if(!Zx(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(var r=0;r<e.filters.length;r++)if(!a_(e.filters[r],t.filters[r]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!Qx(e.startAt,t.startAt)&&Qx(e.endAt,t.endAt)}function w_(e){return Hk.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}var k_=Br((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"F",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;Lr(this,e),this.path=t,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=i,this.limit=o,this.limitType=a,this.startAt=s,this.endAt=u,this.dt=null,this.wt=null,this.startAt,this.endAt}));function x_(e,t,n,r,i,o,a,s){return new k_(e,t,n,r,i,o,a,s)}function __(e){return new k_(e)}function E_(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function C_(e){return e.explicitOrderBy.length>0?e.explicitOrderBy[0].field:null}function S_(e){var t,n=Zr(e.filters);try{for(n.s();!(t=n.n()).done;){var r=t.value.getFirstInequalityField();if(null!==r)return r}}catch(i){n.e(i)}finally{n.f()}return null}function O_(e){return null!==e.collectionGroup}function T_(e){var t=xk(e);if(null===t.dt){t.dt=[];var n=S_(t),r=C_(t);if(null!==n&&null===r)n.isKeyField()||t.dt.push(new Xx(n)),t.dt.push(new Xx(zk.keyField(),"asc"));else{var i,o=!1,a=Zr(t.explicitOrderBy);try{for(a.s();!(i=a.n()).done;){var s=i.value;t.dt.push(s),s.field.isKeyField()&&(o=!0)}}catch(l){a.e(l)}finally{a.f()}if(!o){var u=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";t.dt.push(new Xx(zk.keyField(),u))}}}return t.dt}function A_(e){var t=xk(e);if(!t.wt)if("F"===t.limitType)t.wt=m_(t.path,t.collectionGroup,T_(t),t.filters,t.limit,t.startAt,t.endAt);else{var n,r=[],i=Zr(T_(t));try{for(i.s();!(n=i.n()).done;){var o=n.value,a="desc"===o.dir?"asc":"desc";r.push(new Xx(o.field,a))}}catch(l){i.e(l)}finally{i.f()}var s=t.endAt?new $x(t.endAt.position,t.endAt.inclusive):null,u=t.
2startAt?new $x(t.startAt.position,t.startAt.inclusive):null;t.wt=m_(t.path,t.collectionGroup,r,t.filters,t.limit,s,u)}return t.wt}function I_(e,t){t.getFirstInequalityField(),S_(e);var n=e.filters.concat([t]);return new k_(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function N_(e,t,n){return new k_(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function P_(e,t){return b_(A_(e),A_(t))&&e.limitType===t.limitType}function j_(e){return"".concat(g_(A_(e)),"|lt:").concat(e.limitType)}function R_(e){return"Query(target=".concat(function(e){var t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: [".concat(e.filters.map((function(e){return s_(e)})).join(", "),"]")),rx(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: [".concat(e.orderBy.map((function(e){return function(e){return"".concat(e.field.canonicalString()," (").concat(e.dir,")")}(e)})).join(", "),"]")),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map((function(e){return Lx(e)})).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map((function(e){return Lx(e)})).join(",")),"Target(".concat(t,")")}(A_(e)),"; limitType=").concat(e.limitType,")")}function L_(e,t){return t.isFoundDocument()&&function(e,t){var n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):Hk.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){var n,r=Zr(T_(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.field.isKeyField()&&null===t.data.field(i.field))return!1}}catch(o){r.e(o)}finally{r.f()}return!0}(e,t)&&function(e,t){var n,r=Zr(e.filters);try{for(r.s();!(n=r.n()).done;){if(!n.value.matches(t))return!1}}catch(i){r.e(i)}finally{r.f()}return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){var r=Yx(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,T_(e),t))&&!(e.endAt&&!function(e,t,n){var r=Yx(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,T_(e),t))}(e,t)}function M_(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function D_(e){return function(t,n){var r,i=!1,o=Zr(T_(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=F_(a,t,n);if(0!==s)return s;i=i||a.field.isKeyField()}}catch(u){o.e(u)}finally{o.f()}return 0}}function F_(e,t,n){var r=e.field.isKeyField()?Hk.comparator(t.key,n.key):function(e,t,n){var r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?jx(r,i):wk()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return wk()}}var B_=function(){function e(t,n){Lr(this,e),this.mapKeyFn=t,this.equalsFn=n,this.inner={},this.innerSize=0}return Br(e,[{key:"get",value:function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n){var r,i=Zr(n);try{for(i.s();!(r=i.n()).done;){var o=Yr(r.value,2),a=o[0],s=o[1];if(this.equalsFn(a,e))return s}}catch(u){i.e(u)}finally{i.f()}}}},{key:"has",value:function(e){return void 0!==this.get(e)}},{key:"set",value:function(e,t){var n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(var i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t]),this.innerSize++}},{key:"delete",value:function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}},{key:"forEach",value:function(e){cx(this.inner,(function(t,n){var r,i=Zr(n);try{for(i.s();!(r=i.n()).done;){var o=Yr(r.value,2),a=o[0],s=o[1];e(a,s)}}catch(u){i.e(u)}finally{i.f()}}))}},{key:"isEmpty",value:function(){return fx(this.inner)}},{key:"size",value:function(){return this.innerSize}}]),e}(),U_=new hx(Hk.comparator);function V_(){return U_}var q_=new hx(Hk.comparator);function z_(){for(var e=q_,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];e=e.insert(a.key,a)}return e}function H_(e){var t=q_;return e.forEach((function(e,n){return t=t.insert(e,n.overlayedDocument)})),t}function W_(){return G_()}function K_(){return G_()}function G_(){return new B_((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)}))}var $_=new hx(Hk.comparator),Y_=new vx(Hk.comparator);function Q_(){for(var e=Y_,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];e=e.add(a)}return e}var X_=new vx(Mk);function Z_(){return X_}function J_(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:ix(t)?"-0":t}}function eE(e){return{integerValue:""+e}}function tE(e,t){return ox(t)?eE(t):J_(e,t)}var nE=Br((function e(){Lr(this,e),this._=void 0}));function rE(e,t,n){return e instanceof aE?function(e,t){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof sE?uE(e,t):e instanceof lE?cE(e,t):function(e,t){var n=oE(e,t),r=hE(n)+hE(e._t);return Fx(n)&&Fx(e._t)?eE(r):J_(e.serializer,r)}(e,t)}function iE(e,t,n){return e instanceof sE?uE(e,t):e instanceof lE?cE(e,t):n}function oE(e,t){return e instanceof fE?Fx(n=t)||function(e){return!!e&&"doubleValue"in e}(n)?t:{integerValue:0}:null;var n}var aE=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}return Br(n)}(nE),sE=function(e){Vr(n,e);var t=Kr(n);function n(e){var r;return Lr(this,n),(r=t.call(this)).elements=e,r}return Br(n)}(nE);function uE(e,t){var n,r=dE(t),i=Zr(e.elements);try{var o=function(){var e=n.value;r.some((function(t){return Nx(t,e)}))||r.push(e)};for(i.s();!(n=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}return{arrayValue:{values:r}}}var lE=function(e){Vr(n,e);var t=Kr(n);function n(e){var r;return Lr(this,n),(r=t.call(this)).elements=e,r}return Br(n)}(nE);function cE(e,t){var n,r=dE(t),i=Zr(e.elements);try{var o=function(){var e=n.value;r=r.filter((function(t){return!Nx(t,e)}))};for(i.s();!(n=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}return{arrayValue:{values:r}}}var fE=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;
2return Lr(this,n),(i=t.call(this)).serializer=e,i._t=r,i}return Br(n)}(nE);function hE(e){return xx(e.integerValue||e.doubleValue)}function dE(e){return Bx(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var pE=Br((function e(t,n){Lr(this,e),this.field=t,this.transform=n}));var vE=Br((function e(t,n){Lr(this,e),this.version=t,this.transformResults=n})),yE=function(){function e(t,n){Lr(this,e),this.updateTime=t,this.exists=n}return Br(e,[{key:"isNone",get:function(){return void 0===this.updateTime&&void 0===this.exists}},{key:"isEqual",value:function(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}],[{key:"none",value:function(){return new e}},{key:"exists",value:function(t){return new e(void 0,t)}},{key:"updateTime",value:function(t){return new e(t)}}]),e}();function mE(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}var gE=Br((function e(){Lr(this,e)}));function bE(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new NE(e.key,yE.none()):new EE(e.key,e.data,yE.none());var n,r=e.data,i=Wx.empty(),o=new vx(zk.comparator),a=Zr(t.fields);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(!o.has(s)){var u=r.field(s);null===u&&s.length>1&&(s=s.popLast(),u=r.field(s)),null===u?i.delete(s):i.set(s,u),o=o.add(s)}}}catch(l){a.e(l)}finally{a.f()}return new CE(e.key,i,new mx(o.toArray()),yE.none())}function wE(e,t,n){e instanceof EE?function(e,t,n){var r=e.value.clone(),i=OE(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof CE?function(e,t,n){if(mE(e.precondition,t)){var r=OE(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(SE(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}else t.convertToUnknownDocument(n.version)}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function kE(e,t,n,r){return e instanceof EE?function(e,t,n,r){if(!mE(e.precondition,t))return n;var i=e.value.clone(),o=TE(e.fieldTransforms,r,t);return i.setAll(o),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,r):e instanceof CE?function(e,t,n,r){if(!mE(e.precondition,t))return n;var i=TE(e.fieldTransforms,r,t),o=t.data;return o.setAll(SE(e)),o.setAll(i),t.convertToFoundDocument(t.version,o).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map((function(e){return e.field})))}(e,t,n,r):function(e,t,n){return mE(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function xE(e,t){var n,r=null,i=Zr(e.fieldTransforms);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=t.data.field(o.field),s=oE(o.transform,a||null);null!=s&&(null===r&&(r=Wx.empty()),r.set(o.field,s))}}catch(u){i.e(u)}finally{i.f()}return r||null}function _E(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&Dk(e,t,(function(e,t){return function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof sE&&t instanceof sE||e instanceof lE&&t instanceof lE?Dk(e.elements,t.elements,Nx):e instanceof fE&&t instanceof fE?Nx(e._t,t._t):e instanceof aE&&t instanceof aE}(e.transform,t.transform)}(e,t)}))}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}var EE=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return Lr(this,n),(o=t.call(this)).key=e,o.value=r,o.precondition=i,o.fieldTransforms=a,o.type=0,o}return Br(n,[{key:"getFieldMask",value:function(){return null}}]),n}(gE),CE=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i,o){var a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return Lr(this,n),(a=t.call(this)).key=e,a.data=r,a.fieldMask=i,a.precondition=o,a.fieldTransforms=s,a.type=1,a}return Br(n,[{key:"getFieldMask",value:function(){return this.fieldMask}}]),n}(gE);function SE(e){var t=new Map;return e.fieldMask.fields.forEach((function(n){if(!n.isEmpty()){var r=e.data.field(n);t.set(n,r)}})),t}function OE(e,t,n){var r=new Map;kk(e.length===n.length);for(var i=0;i<n.length;i++){var o=e[i],a=o.transform,s=t.data.field(o.field);r.set(o.field,iE(a,s,n[i]))}return r}
2function TE(e,t,n){var r,i=new Map,o=Zr(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.transform,u=n.data.field(a.field);i.set(a.field,rE(s,u,t))}}catch(l){o.e(l)}finally{o.f()}return i}var AE,IE,NE=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;return Lr(this,n),(i=t.call(this)).key=e,i.precondition=r,i.type=2,i.fieldTransforms=[],i}return Br(n,[{key:"getFieldMask",value:function(){return null}}]),n}(gE),PE=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;return Lr(this,n),(i=t.call(this)).key=e,i.precondition=r,i.type=3,i.fieldTransforms=[],i}return Br(n,[{key:"getFieldMask",value:function(){return null}}]),n}(gE),jE=function(){function e(t,n,r,i){Lr(this,e),this.batchId=t,this.localWriteTime=n,this.baseMutations=r,this.mutations=i}return Br(e,[{key:"applyToRemoteDocument",value:function(e,t){for(var n=t.mutationResults,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(e.key)&&wE(i,e,n[r])}}},{key:"applyToLocalView",value:function(e,t){var n,r=Zr(this.baseMutations);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.key.isEqual(e.key)&&(t=kE(i,e,t,this.localWriteTime))}}catch(u){r.e(u)}finally{r.f()}var o,a=Zr(this.mutations);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.key.isEqual(e.key)&&(t=kE(s,e,t,this.localWriteTime))}}catch(u){a.e(u)}finally{a.f()}return t}},{key:"applyToLocalDocumentSet",value:function(e,t){var n=this,r=K_();return this.mutations.forEach((function(i){var o=e.get(i.key),a=o.overlayedDocument,s=n.applyToLocalView(a,o.mutatedFields),u=bE(a,s=t.has(i.key)?null:s);null!==u&&r.set(i.key,u),a.isValidDocument()||a.convertToNoDocument(Bk.min())})),r}},{key:"keys",value:function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),Q_())}},{key:"isEqual",value:function(e){return this.batchId===e.batchId&&Dk(this.mutations,e.mutations,(function(e,t){return _E(e,t)}))&&Dk(this.baseMutations,e.baseMutations,(function(e,t){return _E(e,t)}))}}]),e}(),RE=function(){function e(t,n,r,i){Lr(this,e),this.batch=t,this.commitVersion=n,this.mutationResults=r,this.docVersions=i}return Br(e,null,[{key:"from",value:function(t,n,r){kk(t.mutations.length===r.length);for(var i=$_,o=t.mutations,a=0;a<o.length;a++)i=i.insert(o[a].key,r[a].version);return new e(t,n,r,i)}}]),e}(),LE=function(){function e(t,n){Lr(this,e),this.largestBatchId=t,this.mutation=n}return Br(e,[{key:"getKey",value:function(){return this.mutation.key}},{key:"isEqual",value:function(e){return null!==e&&this.mutation===e.mutation}},{key:"toString",value:function(){return"Overlay{\n      largestBatchId: ".concat(this.largestBatchId,",\n      mutation: ").concat(this.mutation.toString(),"\n    }")}}]),e}(),ME=Br((function e(t){Lr(this,e),this.count=t}));function DE(e){switch(e){default:return wk();case _k.CANCELLED:case _k.UNKNOWN:case _k.DEADLINE_EXCEEDED:case _k.RESOURCE_EXHAUSTED:case _k.INTERNAL:case _k.UNAVAILABLE:case _k.UNAUTHENTICATED:return!1;case _k.INVALID_ARGUMENT:case _k.NOT_FOUND:case _k.ALREADY_EXISTS:case _k.PERMISSION_DENIED:case _k.FAILED_PRECONDITION:case _k.ABORTED:case _k.OUT_OF_RANGE:case _k.UNIMPLEMENTED:case _k.DATA_LOSS:return!0}}function FE(e){if(void 0===e)return mk("GRPC error has no .code"),_k.UNKNOWN;switch(e){case AE.OK:return _k.OK;case AE.CANCELLED:return _k.CANCELLED;case AE.UNKNOWN:return _k.UNKNOWN;case AE.DEADLINE_EXCEEDED:return _k.DEADLINE_EXCEEDED;case AE.RESOURCE_EXHAUSTED:return _k.RESOURCE_EXHAUSTED;case AE.INTERNAL:return _k.INTERNAL;case AE.UNAVAILABLE:return _k.UNAVAILABLE;case AE.UNAUTHENTICATED:return _k.UNAUTHENTICATED;case AE.INVALID_ARGUMENT:return _k.INVALID_ARGUMENT;case AE.NOT_FOUND:return _k.NOT_FOUND;case AE.ALREADY_EXISTS:return _k.ALREADY_EXISTS;case AE.PERMISSION_DENIED:return _k.PERMISSION_DENIED;case AE.FAILED_PRECONDITION:return _k.FAILED_PRECONDITION;case AE.ABORTED:return _k.ABORTED;case AE.OUT_OF_RANGE:return _k.OUT_OF_RANGE;case AE.UNIMPLEMENTED:return _k.UNIMPLEMENTED;case AE.DATA_LOSS:return _k.DATA_LOSS;default:return wk()}}(IE=AE||(AE={}))[IE.OK=0]="OK",IE[IE.CANCELLED=1]="CANCELLED",IE[IE.UNKNOWN=2]="UNKNOWN",IE[IE.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",IE[IE.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",IE[IE.NOT_FOUND=5]="NOT_FOUND",IE[IE.ALREADY_EXISTS=6]="ALREADY_EXISTS",IE[IE.PERMISSION_DENIED=7]="PERMISSION_DENIED",IE[IE.UNAUTHENTICATED=16]="UNAUTHENTICATED",IE[IE.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",IE[IE.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",IE[IE.ABORTED=10]="ABORTED",IE[IE.OUT_OF_RANGE=11]="OUT_OF_RANGE",IE[IE.UNIMPLEMENT
2ED=12]="UNIMPLEMENTED",IE[IE.INTERNAL=13]="INTERNAL",IE[IE.UNAVAILABLE=14]="UNAVAILABLE",IE[IE.DATA_LOSS=15]="DATA_LOSS";var BE=function(){function e(){Lr(this,e),this.onExistenceFilterMismatchCallbacks=new Map}return Br(e,[{key:"onExistenceFilterMismatch",value:function(e){var t=this,n=Symbol();return this.onExistenceFilterMismatchCallbacks.set(n,e),function(){return t.onExistenceFilterMismatchCallbacks.delete(n)}}},{key:"notifyOnExistenceFilterMismatch",value:function(e){this.onExistenceFilterMismatchCallbacks.forEach((function(t){return t(e)}))}}],[{key:"instance",get:function(){return UE}},{key:"getOrCreateInstance",value:function(){return null===UE&&(UE=new e),UE}}]),e}(),UE=null,VE=function(){function e(t,n,r,i,o){Lr(this,e),this.snapshotVersion=t,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=i,this.resolvedLimboDocuments=o}return Br(e,null,[{key:"createSynthesizedRemoteEventForCurrentChange",value:function(t,n,r){var i=new Map;return i.set(t,qE.createSynthesizedTargetChangeForCurrentChange(t,n,r)),new e(Bk.min(),i,Z_(),V_(),Q_())}}]),e}(),qE=function(){function e(t,n,r,i,o){Lr(this,e),this.resumeToken=t,this.current=n,this.addedDocuments=r,this.modifiedDocuments=i,this.removedDocuments=o}return Br(e,null,[{key:"createSynthesizedTargetChangeForCurrentChange",value:function(t,n,r){return new e(r,n,Q_(),Q_(),Q_())}}]),e}(),zE=Br((function e(t,n,r,i){Lr(this,e),this.It=t,this.removedTargetIds=n,this.key=r,this.Tt=i})),HE=Br((function e(t,n){Lr(this,e),this.targetId=t,this.Et=n})),WE=Br((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bx.EMPTY_BYTE_STRING,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Lr(this,e),this.state=t,this.targetIds=n,this.resumeToken=r,this.cause=i})),KE=function(){function e(){Lr(this,e),this.At=0,this.Rt=YE(),this.vt=bx.EMPTY_BYTE_STRING,this.bt=!1,this.Pt=!0}return Br(e,[{key:"current",get:function(){return this.bt}},{key:"resumeToken",get:function(){return this.vt}},{key:"Vt",get:function(){return 0!==this.At}},{key:"St",get:function(){return this.Pt}},{key:"Dt",value:function(e){e.approximateByteSize()>0&&(this.Pt=!0,this.vt=e)}},{key:"Ct",value:function(){var e=Q_(),t=Q_(),n=Q_();return this.Rt.forEach((function(r,i){switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:wk()}})),new qE(this.vt,this.bt,e,t,n)}},{key:"xt",value:function(){this.Pt=!1,this.Rt=YE()}},{key:"Nt",value:function(e,t){this.Pt=!0,this.Rt=this.Rt.insert(e,t)}},{key:"kt",value:function(e){this.Pt=!0,this.Rt=this.Rt.remove(e)}},{key:"Ot",value:function(){this.At+=1}},{key:"$t",value:function(){this.At-=1}},{key:"Mt",value:function(){this.Pt=!0,this.bt=!0}}]),e}(),GE=function(){function e(t){Lr(this,e),this.Ft=t,this.Bt=new Map,this.Lt=V_(),this.qt=$E(),this.Ut=new vx(Mk)}return Br(e,[{key:"Kt",value:function(e){var t,n=Zr(e.It);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.Tt&&e.Tt.isFoundDocument()?this.Gt(r,e.Tt):this.Qt(r,e.key,e.Tt)}}catch(s){n.e(s)}finally{n.f()}var i,o=Zr(e.removedTargetIds);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.Qt(a,e.key,e.Tt)}}catch(s){o.e(s)}finally{o.f()}}},{key:"zt",value:function(e){var t=this;this.forEachTarget(e,(function(n){var r=t.jt(n);switch(e.state){case 0:t.Wt(n)&&r.Dt(e.resumeToken);break;case 1:r.$t(),r.Vt||r.xt(),r.Dt(e.resumeToken);break;case 2:r.$t(),r.Vt||t.removeTarget(n);break;case 3:t.Wt(n)&&(r.Mt(),r.Dt(e.resumeToken));break;case 4:t.Wt(n)&&(t.Ht(n),r.Dt(e.resumeToken));break;default:wk()}}))}},{key:"forEachTarget",value:function(e,t){var n=this;e.targetIds.length>0?e.targetIds.forEach(t):this.Bt.forEach((function(e,r){n.Wt(r)&&t(r)}))}},{key:"Jt",value:function(e){var t,n=e.targetId,r=e.Et.count,i=this.Yt(n);if(i){var o=i.target;if(w_(o))if(0===r){var a=new Hk(o.path);this.Qt(n,a,Gx.newNoDocument(a,Bk.min()))}else kk(1===r);else{var s=this.Zt(n);s!==r&&(this.Ht(n),this.Ut=this.Ut.add(n),null===(t=BE.instance)||void 0===t||t.notifyOnExistenceFilterMismatch({localCacheCount:s,existenceFilterCount:e.Et.count}))}}}},{key:"Xt",value:function(e){var t=this,n=new Map;this.Bt.forEach((function(r,i){var o=t.Yt(i);if(o){if(r.current&&w_(o.target)){var a=new Hk(o.target.path);null!==t.Lt.get(a)||t.te(i,a)||t.Qt(i,a,Gx.newNoDocument(a,e))}r.St&&(n.set(i,r.Ct()),r.xt())}}));var r=Q_();this.qt.forEach((function(e,n){var i=!0;
2n.forEachWhile((function(e){var n=t.Yt(e);return!n||2===n.purpose||(i=!1,!1)})),i&&(r=r.add(e))})),this.Lt.forEach((function(t,n){return n.setReadTime(e)}));var i=new VE(e,n,this.Ut,this.Lt,r);return this.Lt=V_(),this.qt=$E(),this.Ut=new vx(Mk),i}},{key:"Gt",value:function(e,t){if(this.Wt(e)){var n=this.te(e,t.key)?2:0;this.jt(e).Nt(t.key,n),this.Lt=this.Lt.insert(t.key,t),this.qt=this.qt.insert(t.key,this.ee(t.key).add(e))}}},{key:"Qt",value:function(e,t,n){if(this.Wt(e)){var r=this.jt(e);this.te(e,t)?r.Nt(t,1):r.kt(t),this.qt=this.qt.insert(t,this.ee(t).delete(e)),n&&(this.Lt=this.Lt.insert(t,n))}}},{key:"removeTarget",value:function(e){this.Bt.delete(e)}},{key:"Zt",value:function(e){var t=this.jt(e).Ct();return this.Ft.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}},{key:"Ot",value:function(e){this.jt(e).Ot()}},{key:"jt",value:function(e){var t=this.Bt.get(e);return t||(t=new KE,this.Bt.set(e,t)),t}},{key:"ee",value:function(e){var t=this.qt.get(e);return t||(t=new vx(Mk),this.qt=this.qt.insert(e,t)),t}},{key:"Wt",value:function(e){var t=null!==this.Yt(e);return t||yk("WatchChangeAggregator","Detected inactive target",e),t}},{key:"Yt",value:function(e){var t=this.Bt.get(e);return t&&t.Vt?null:this.Ft.ne(e)}},{key:"Ht",value:function(e){var t=this;this.Bt.set(e,new KE),this.Ft.getRemoteKeysForTarget(e).forEach((function(n){t.Qt(e,n,null)}))}},{key:"te",value:function(e,t){return this.Ft.getRemoteKeysForTarget(e).has(t)}}]),e}();function $E(){return new hx(Hk.comparator)}function YE(){return new hx(Hk.comparator)}var QE={asc:"ASCENDING",desc:"DESCENDING"},XE={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},ZE={and:"AND",or:"OR"},JE=Br((function e(t,n){Lr(this,e),this.databaseId=t,this.useProto3Json=n}));function eC(e,t){return e.useProto3Json?"".concat(new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z",""),".").concat(("000000000"+t.nanoseconds).slice(-9),"Z"):{seconds:""+t.seconds,nanos:t.nanoseconds}}function tC(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function nC(e,t){return eC(e,t.toTimestamp())}function rC(e){return kk(!!e),Bk.fromTimestamp(function(e){var t=kx(e);return new Fk(t.seconds,t.nanos)}(e))}function iC(e,t){return function(e){return new Vk(["projects",e.projectId,"databases",e.database])}(e).child("documents").child(t).canonicalString()}function oC(e){var t=Vk.fromString(e);return kk(CC(t)),t}function aC(e,t){return iC(e.databaseId,t.path)}function sC(e,t){var n=oC(t);if(n.get(1)!==e.databaseId.projectId)throw new Ek(_k.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new Ek(_k.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new Hk(fC(n))}function uC(e,t){return iC(e.databaseId,t)}function lC(e){var t=oC(e);return 4===t.length?Vk.emptyPath():fC(t)}function cC(e){return new Vk(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function fC(e){return kk(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function hC(e,t,n){return{name:aC(e,t),fields:n.value.mapValue.fields}}function dC(e,t){var n;if(t instanceof EE)n={update:hC(e,t.key,t.value)};else if(t instanceof NE)n={delete:aC(e,t.key)};else if(t instanceof CE)n={update:hC(e,t.key,t.data),updateMask:EC(t.fieldMask)};else{if(!(t instanceof PE))return wk();n={verify:aC(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((function(e){return function(e,t){var n=t.transform;if(n instanceof aE)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof sE)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof lE)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof fE)return{fieldPath:t.field.canonicalString(),increment:n._t};throw wk()}(0,e)}))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:nC(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:wk()}(e,t.precondition)),n}function pC(e,t){return{documents:[uC(e,t.path)]}}function vC(e,t){var n={structuredQuery:{}},r=t.path;null!==t.collectionGroup?(n.parent=uC(e,r),n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(n.parent=uC(e,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(e){if(0!==e.length)return _C(t_.create(e,"and"))}(t.filters);i&&(n.structuredQuery.where=i);var o=function(e){if(0!==e.length)return e.map((function(e){return function(e){return{field:kC(e.field),direction:gC(e.dir)}}(e)}))}(t.orderBy);o&&(n.structuredQuery.orderBy=o);var a,s=function(e,t){return e.useProto3Json||rx(t)?t:{value:t}}(e,t.limit);return null!==s&&(n.structuredQuery.limit=s),t.startAt&&(n.structuredQuery.startAt={before:(a=t.startAt).inclusive,values:a.position}),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),n}
2function yC(e){var t=lC(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){kk(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:t=t.child(o.collectionId)}var a=[];n.where&&(a=function(e){var t=mC(e);return t instanceof t_&&r_(t)?t.getFilters():[t]}(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(e){return function(e){return new Xx(xC(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)})));var u=null;n.limit&&(u=function(e){var t;return rx(t="object"==typeof e?e.value:e)?null:t}(n.limit));var l=null;n.startAt&&(l=function(e){var t=!!e.before,n=e.values||[];return new $x(n,t)}(n.startAt));var c=null;return n.endAt&&(c=function(e){var t=!e.before,n=e.values||[];return new $x(n,t)}(n.endAt)),x_(t,i,s,a,u,"F",l,c)}function mC(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":var t=xC(e.unaryFilter.field);return e_.create(t,"==",{doubleValue:NaN});case"IS_NULL":var n=xC(e.unaryFilter.field);return e_.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=xC(e.unaryFilter.field);return e_.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=xC(e.unaryFilter.field);return e_.create(i,"!=",{nullValue:"NULL_VALUE"});default:return wk()}}(e):void 0!==e.fieldFilter?function(e){return e_.create(xC(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return wk()}}(e.fieldFilter.op),e.fieldFilter.value)}(e):void 0!==e.compositeFilter?function(e){return t_.create(e.compositeFilter.filters.map((function(e){return mC(e)})),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return wk()}}(e.compositeFilter.op))}(e):wk()}function gC(e){return QE[e]}function bC(e){return XE[e]}function wC(e){return ZE[e]}function kC(e){return{fieldPath:e.canonicalString()}}function xC(e){return zk.fromServerFormat(e.fieldPath)}function _C(e){return e instanceof e_?function(e){if("=="===e.op){if(Vx(e.value))return{unaryFilter:{field:kC(e.field),op:"IS_NAN"}};if(Ux(e.value))return{unaryFilter:{field:kC(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(Vx(e.value))return{unaryFilter:{field:kC(e.field),op:"IS_NOT_NAN"}};if(Ux(e.value))return{unaryFilter:{field:kC(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:kC(e.field),op:bC(e.op),value:e.value}}}(e):e instanceof t_?function(e){var t=e.getFilters().map((function(e){return _C(e)}));return 1===t.length?t[0]:{compositeFilter:{op:wC(e.op),filters:t}}}(e):wk()}function EC(e){var t=[];return e.fields.forEach((function(e){return t.push(e.canonicalString())})),{fieldPaths:t}}function CC(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}var SC=function(){function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Bk.min(),a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Bk.min(),s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:bx.EMPTY_BYTE_STRING;Lr(this,e),this.target=t,this.targetId=n,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=a,this.resumeToken=s}return Br(e,[{key:"withSequenceNumber",value:function(t){return new e(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)}},{key:"withResumeToken",value:function(t,n){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)}},{key:"withLastLimboFreeSnapshotVersion",value:function(t){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken)}}]),e}(),OC=Br((function e(t){Lr(this,e),this.se=t}));function TC(e){var t=yC({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?N_(t,t.limit,"L"):t}var AC=function(){function e(){Lr(this,e)}return Br(e,[{key:"oe",value:function(e,t){this.ue(e,t),t.ce()}},{key:"ue",value:function(e,t){if("nullValue"in e)this.ae(t,5);else if("booleanValue"in e)this.ae(t,10),t.he(e.booleanValue?1:0);else if("integerValue"in e)this.ae(t,15),t.he(xx(e.integerValue));else if("doubleValue"in e){var n=xx(e.doubleValue);isNaN(n)?this.ae(t,13):(this.ae(t,15),ix(n)?t.he(0):t.he(n))}else if("timestampValue"in e){var r=e.timestampValue;this.ae(t,20),"string"==typeof r?t.le(r):(t.le("".concat(r.seconds||"")),t.he(r.nanos||0))}else if("stringValue"in e)this.fe(e.stringValue,t),this.de(t);else if("bytesValue"in e)this.ae(t,30),t.we(_x(e.bytesValue)),this.de(t);else if("referenceValue"in e)this._e(e.referenceValue,t);else if("geoPointValue"in e){var i=e.geoPointValue;this.ae(t,45),t.he(i.latitude||0),t.he(i.longitude||0)}else"mapValue"in e?Hx(e)?this.ae(t,Number.MAX_SAFE_INTEGER):(this.me(e.mapValue,t),this.de(t)):"arrayValue"in e?(this.ge(e.arrayValue,t),this.de(t)):wk()}},{key:"fe",value:function(e,t){this.ae(t,25),this.ye(e,t)}},{key:"ye",value:function(e,t){t.le(e)}},{key:"me",value:function(e,t){var n=e.fields||{};this.ae(t,55);for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r];this.fe(o,t),this.ue(n[o],t)}}},{key:"ge",value:function(e,t){var n=e.values||[];this.ae(t,50);var r,i=Zr(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;this.ue(o,t)}}catch(a){i.e(a)}finally{i.f()}}},{key:"_e",value:function(e,t){var n=this;this.ae(t,37),Hk.fromName(e).path.forEach((function(e){n.ae(t,60),n.ye(e,t)}))}},{key:"ae",value:function(e,t){e.he(t)}},{key:"de",value:function(e){e.he(2)}}]),e}();AC.pe=new AC;var IC=function(){function e(){Lr(this,e),this.He=new NC}return Br(e,[{key:"addToCollectionParentIndex",value:function(e,t){return this.He.add(t),ex.resolve()}},{key:"getCollectionParents",value:function(e,t){return ex.resolve(this.He.getEntries(t))}},{key:"addFieldIndex",value:function(e,t){return ex.resolve()}},{key:"deleteFieldIndex",value:function(e,t){return ex.resolve()}},{key:"getDocumentsMatchingTarget",value:function(e,t){return ex.resolve(null)}},{key:"getIndexType",value:function(e,t){return ex.resolve(0)}},{key:"getFieldIndexes",value:function(e,t){return ex.resolve([])}},{key:"getNextCollectionGroupToUpdate",value:function(e){return ex.resolve(null)}},{key:"getMinOffset",value:function(e,t){return ex.resolve($k.min())}},{key:"getMinOffsetFromCollectionGroup",value:function(e,t){return ex.resolve($k.min())}},{key:"updateCollectionGroup",value:function(e,t,n){return ex.resolve()}},{key:"updateIndexEntries",value:function(e,t){return ex.resolve()}}]),e}(),NC=function(){function e(){Lr(this,e),this.index={}}return Br(e,[{key:"add",value:function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new vx(Vk.comparator),i=!r.has(n);return this.index[t]=r.add(n),i}},{key:"has",value:function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}},{key:"getEntries",value:function(e){return(this.index[e]||new vx(Vk.comparator)).toArray()}}]),e}();new Uint8Array(0);var PC=function(){function e(t,n,r){Lr(this,e),this.cacheSizeCollectionThreshold=t,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}return Br(e,null,[{key:"withCacheSize",value:function(t){return new e(t,e.DEFAULT_COLLECTION_PE
2RCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}]),e}();PC.DEFAULT_COLLECTION_PERCENTILE=10,PC.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,PC.DEFAULT=new PC(41943040,PC.DEFAULT_COLLECTION_PERCENTILE,PC.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),PC.DISABLED=new PC(-1,0,0);var jC=function(){function e(t){Lr(this,e),this.Rn=t}return Br(e,[{key:"next",value:function(){return this.Rn+=2,this.Rn}}],[{key:"vn",value:function(){return new e(0)}},{key:"bn",value:function(){return new e(-1)}}]),e}();var RC=function(){function e(){Lr(this,e),this.changes=new B_((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),this.changesApplied=!1}return Br(e,[{key:"addEntry",value:function(e){this.assertNotApplied(),this.changes.set(e.key,e)}},{key:"removeEntry",value:function(e,t){this.assertNotApplied(),this.changes.set(e,Gx.newInvalidDocument(e).setReadTime(t))}},{key:"getEntry",value:function(e,t){this.assertNotApplied();var n=this.changes.get(t);return void 0!==n?ex.resolve(n):this.getFromCache(e,t)}},{key:"getEntries",value:function(e,t){return this.getAllFromCache(e,t)}},{key:"apply",value:function(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}},{key:"assertNotApplied",value:function(){}}]),e}();var LC=Br((function e(t,n){Lr(this,e),this.overlayedDocument=t,this.mutatedFields=n})),MC=function(){function e(t,n,r,i){Lr(this,e),this.remoteDocumentCache=t,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=i}return Br(e,[{key:"getDocument",value:function(e,t){var n=this,r=null;return this.documentOverlayCache.getOverlay(e,t).next((function(i){return r=i,n.remoteDocumentCache.getEntry(e,t)})).next((function(e){return null!==r&&kE(r.mutation,e,mx.empty(),Fk.now()),e}))}},{key:"getDocuments",value:function(e,t){var n=this;return this.remoteDocumentCache.getEntries(e,t).next((function(t){return n.getLocalViewOfDocuments(e,t,Q_()).next((function(){return t}))}))}},{key:"getLocalViewOfDocuments",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q_(),i=W_();return this.populateOverlays(e,i,t).next((function(){return n.computeViews(e,t,i,r).next((function(e){var t=z_();return e.forEach((function(e,n){t=t.insert(e,n.overlayedDocument)})),t}))}))}},{key:"getOverlayedDocuments",value:function(e,t){var n=this,r=W_();return this.populateOverlays(e,r,t).next((function(){return n.computeViews(e,t,r,Q_())}))}},{key:"populateOverlays",value:function(e,t,n){var r=[];return n.forEach((function(e){t.has(e)||r.push(e)})),this.documentOverlayCache.getOverlays(e,r).next((function(e){e.forEach((function(e,n){t.set(e,n)}))}))}},{key:"computeViews",value:function(e,t,n,r){var i=V_(),o=G_(),a=G_();return t.forEach((function(e,t){var a=n.get(t.key);r.has(t.key)&&(void 0===a||a.mutation instanceof CE)?i=i.insert(t.key,t):void 0!==a?(o.set(t.key,a.mutation.getFieldMask()),kE(a.mutation,t,a.mutation.getFieldMask(),Fk.now())):o.set(t.key,mx.empty())})),this.recalculateAndSaveOverlays(e,i).next((function(e){return e.forEach((function(e,t){return o.set(e,t)})),t.forEach((function(e,t){var n;return a.set(e,new LC(t,null!==(n=o.get(e))&&void 0!==n?n:null))})),a}))}},{key:"recalculateAndSaveOverlays",value:function(e,t){var n=this,r=G_(),i=new hx((function(e,t){return e-t})),o=Q_();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next((function(e){var n,o=Zr(e);try{var a=function(){var e=n.value;e.keys().forEach((function(n){var o=t.get(n);if(null!==o){var a=r.get(n)||mx.empty();a=e.applyToLocalView(o,a),r.set(n,a);var s=(i.get(e.batchId)||Q_()).add(n);i=i.insert(e.batchId,s)}}))};for(o.s();!(n=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}})).next((function(){for(var a=[],s=i.getReverseIterator(),u=function(){var i=s.getNext(),u=i.key,l=i.value,c=K_();l.forEach((function(e){if(!o.has(e)){var n=bE(t.get(e),r.get(e));null!==n&&c.set(e,n),o=o.add(e)}})),a.push(n.documentOverlayCache.saveOverlays(e,u,c))};s.hasNext();)u();return ex.waitFor(a)})).next((function(){return r}))}},{key:"recalculateAndSaveOverlaysForDocumentKeys",value:function(e,t){var n=this;return this.remoteDocumentCache.getEntries(e,t).next((function(t){return n.recalculateAndSaveOverlays(e,t)}))}},{key:"getDocumentsMatchingQuery",value:function(e,t,n){return function(e){return Hk.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):O_(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n):this.getDocumentsMatchingCollectionQuery(e,t,n)}},{key:"getNextDocuments",value:function(e,t,n,r){var i=this;return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next((function(o){var a=r-o.size>0?i.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-o.size):ex.resolve(W_()),s=-1,u=o;return a.next((function(t){return ex.forEach(t,(function(t,n){return s<n.largestBatchId&&(s=n.largestBatchId),o.get(t)?ex.resolve():i.remoteDocumentCache.getEntry(e,t).next((function(e){u=u.insert(t,e)}))}
2)).next((function(){return i.populateOverlays(e,t,o)})).next((function(){return i.computeViews(e,u,t,Q_())})).next((function(e){return{batchId:s,changes:H_(e)}}))}))}))}},{key:"getDocumentsMatchingDocumentQuery",value:function(e,t){return this.getDocument(e,new Hk(t)).next((function(e){var t=z_();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))}},{key:"getDocumentsMatchingCollectionGroupQuery",value:function(e,t,n){var r=this,i=t.collectionGroup,o=z_();return this.indexManager.getCollectionParents(e,i).next((function(a){return ex.forEach(a,(function(a){var s=function(e,t){return new k_(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,a.child(i));return r.getDocumentsMatchingCollectionQuery(e,s,n).next((function(e){e.forEach((function(e,t){o=o.insert(e,t)}))}))})).next((function(){return o}))}))}},{key:"getDocumentsMatchingCollectionQuery",value:function(e,t,n){var r,i=this;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next((function(o){return r=o,i.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,r)})).next((function(e){r.forEach((function(t,n){var r=n.getKey();null===e.get(r)&&(e=e.insert(r,Gx.newInvalidDocument(r)))}));var n=z_();return e.forEach((function(e,i){var o=r.get(e);void 0!==o&&kE(o.mutation,i,mx.empty(),Fk.now()),L_(t,i)&&(n=n.insert(e,i))})),n}))}}]),e}(),DC=function(){function e(t){Lr(this,e),this.serializer=t,this.Zn=new Map,this.Xn=new Map}return Br(e,[{key:"getBundleMetadata",value:function(e,t){return ex.resolve(this.Zn.get(t))}},{key:"saveBundleMetadata",value:function(e,t){var n;return this.Zn.set(t.id,{id:(n=t).id,version:n.version,createTime:rC(n.createTime)}),ex.resolve()}},{key:"getNamedQuery",value:function(e,t){return ex.resolve(this.Xn.get(t))}},{key:"saveNamedQuery",value:function(e,t){return this.Xn.set(t.name,function(e){return{name:e.name,query:TC(e.bundledQuery),readTime:rC(e.readTime)}}(t)),ex.resolve()}}]),e}(),FC=function(){function e(){Lr(this,e),this.overlays=new hx(Hk.comparator),this.ts=new Map}return Br(e,[{key:"getOverlay",value:function(e,t){return ex.resolve(this.overlays.get(t))}},{key:"getOverlays",value:function(e,t){var n=this,r=W_();return ex.forEach(t,(function(t){return n.getOverlay(e,t).next((function(e){null!==e&&r.set(t,e)}))})).next((function(){return r}))}},{key:"saveOverlays",value:function(e,t,n){var r=this;return n.forEach((function(n,i){r.re(e,t,i)})),ex.resolve()}},{key:"removeOverlaysForBatchId",value:function(e,t,n){var r=this,i=this.ts.get(n);return void 0!==i&&(i.forEach((function(e){return r.overlays=r.overlays.remove(e)})),this.ts.delete(n)),ex.resolve()}},{key:"getOverlaysForCollection",value:function(e,t,n){for(var r=W_(),i=t.length+1,o=new Hk(t.child("")),a=this.overlays.getIteratorFrom(o);a.hasNext();){var s=a.getNext().value,u=s.getKey();if(!t.isPrefixOf(u.path))break;u.path.length===i&&s.largestBatchId>n&&r.set(s.getKey(),s)}return ex.resolve(r)}},{key:"getOverlaysForCollectionGroup",value:function(e,t,n,r){for(var i=new hx((function(e,t){return e-t})),o=this.overlays.getIterator();o.hasNext();){var a=o.getNext().value;if(a.getKey().getCollectionGroup()===t&&a.largestBatchId>n){var s=i.get(a.largestBatchId);null===s&&(s=W_(),i=i.insert(a.largestBatchId,s)),s.set(a.getKey(),a)}}for(var u=W_(),l=i.getIterator();l.hasNext()&&(l.getNext().value.forEach((function(e,t){return u.set(e,t)})),!(u.size()>=r)););return ex.resolve(u)}},{key:"re",value:function(e,t,n){var r=this.overlays.get(n.key);if(null!==r){var i=this.ts.get(r.largestBatchId).delete(n.key);this.ts.set(r.largestBatchId,i)}this.overlays=this.overlays.insert(n.key,new LE(t,n));var o=this.ts.get(t);void 0===o&&(o=Q_(),this.ts.set(t,o)),this.ts.set(t,o.add(n.key))}}]),e}(),BC=function(){function e(){Lr(this,e),this.es=new vx(UC.ns),this.ss=new vx(UC.rs)}return Br(e,[{key:"isEmpty",value:function(){return this.es.isEmpty()}},{key:"addReference",value:function(e,t){var n=new UC(e,t);this.es=this.es.add(n),this.ss=this.ss.add(n)}},{key:"os",value:function(e,t){var n=this;e.forEach((function(e){return n.addReference(e,t)}))}},{key:"removeReference",value:function(e,t){this.us(new UC(e,t))}},{key:"cs",value:function(e,t){var n=this;e.forEach((function(e){return n.removeReference(e,t)}))}},{key:"hs",value:function(e){var t=this,n=new Hk(new Vk([])),r=new 
2UC(n,e),i=new UC(n,e+1),o=[];return this.ss.forEachInRange([r,i],(function(e){t.us(e),o.push(e.key)})),o}},{key:"ls",value:function(){var e=this;this.es.forEach((function(t){return e.us(t)}))}},{key:"us",value:function(e){this.es=this.es.delete(e),this.ss=this.ss.delete(e)}},{key:"fs",value:function(e){var t=new Hk(new Vk([])),n=new UC(t,e),r=new UC(t,e+1),i=Q_();return this.ss.forEachInRange([n,r],(function(e){i=i.add(e.key)})),i}},{key:"containsKey",value:function(e){var t=new UC(e,0),n=this.es.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}]),e}(),UC=function(){function e(t,n){Lr(this,e),this.key=t,this.ds=n}return Br(e,null,[{key:"ns",value:function(e,t){return Hk.comparator(e.key,t.key)||Mk(e.ds,t.ds)}},{key:"rs",value:function(e,t){return Mk(e.ds,t.ds)||Hk.comparator(e.key,t.key)}}]),e}(),VC=function(){function e(t,n){Lr(this,e),this.indexManager=t,this.referenceDelegate=n,this.mutationQueue=[],this.ws=1,this._s=new vx(UC.ns)}return Br(e,[{key:"checkEmpty",value:function(e){return ex.resolve(0===this.mutationQueue.length)}},{key:"addMutationBatch",value:function(e,t,n,r){var i=this.ws;this.ws++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];var o=new jE(i,t,n,r);this.mutationQueue.push(o);var a,s=Zr(r);try{for(s.s();!(a=s.n()).done;){var u=a.value;this._s=this._s.add(new UC(u.key,i)),this.indexManager.addToCollectionParentIndex(e,u.key.path.popLast())}}catch(l){s.e(l)}finally{s.f()}return ex.resolve(o)}},{key:"lookupMutationBatch",value:function(e,t){return ex.resolve(this.gs(t))}},{key:"getNextMutationBatchAfterBatchId",value:function(e,t){var n=t+1,r=this.ys(n),i=r<0?0:r;return ex.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}},{key:"getHighestUnacknowledgedBatchId",value:function(){return ex.resolve(0===this.mutationQueue.length?-1:this.ws-1)}},{key:"getAllMutationBatches",value:function(e){return ex.resolve(this.mutationQueue.slice())}},{key:"getAllMutationBatchesAffectingDocumentKey",value:function(e,t){var n=this,r=new UC(t,0),i=new UC(t,Number.POSITIVE_INFINITY),o=[];return this._s.forEachInRange([r,i],(function(e){var t=n.gs(e.ds);o.push(t)})),ex.resolve(o)}},{key:"getAllMutationBatchesAffectingDocumentKeys",value:function(e,t){var n=this,r=new vx(Mk);return t.forEach((function(e){var t=new UC(e,0),i=new UC(e,Number.POSITIVE_INFINITY);n._s.forEachInRange([t,i],(function(e){r=r.add(e.ds)}))})),ex.resolve(this.ps(r))}},{key:"getAllMutationBatchesAffectingQuery",value:function(e,t){var n=t.path,r=n.length+1,i=n;Hk.isDocumentKey(i)||(i=i.child(""));var o=new UC(new Hk(i),0),a=new vx(Mk);return this._s.forEachWhile((function(e){var t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(a=a.add(e.ds)),!0)}),o),ex.resolve(this.ps(a))}},{key:"ps",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t.gs(e);null!==r&&n.push(r)})),n}},{key:"removeMutationBatch",value:function(e,t){var n=this;kk(0===this.Is(t.batchId,"removed")),this.mutationQueue.shift();var r=this._s;return ex.forEach(t.mutations,(function(i){var o=new UC(i.key,t.batchId);return r=r.delete(o),n.referenceDelegate.markPotentiallyOrphaned(e,i.key)})).next((function(){n._s=r}))}},{key:"En",value:function(e){}},{key:"containsKey",value:function(e,t){var n=new UC(t,0),r=this._s.firstAfterOrEqual(n);return ex.resolve(t.isEqual(r&&r.key))}},{key:"performConsistencyCheck",value:function(e){return this.mutationQueue.length,ex.resolve()}},{key:"Is",value:function(e,t){return this.ys(e)}},{key:"ys",value:function(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}},{key:"gs",value:function(e){var t=this.ys(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}]),e}(),qC=function(){function e(t){Lr(this,e),this.Ts=t,this.docs=new hx(Hk.comparator),this.size=0}return Br(e,[{key:"setIndexManager",value:function(e){this.indexManager=e}},{key:"addEntry",value:function(e,t){var n=t.key,r=this.docs.get(n),i=r?r.size:0,o=this.Ts(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:o}),this.size+=o-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}},{key:"removeEntry",value:function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}},{key:"getEntry",value:function(e,t){var n=this.docs.get(t);return ex.resolve(n?n.document.mutableCopy():Gx.newInvalidDocument(t))}},{key:"getEntries",value:function(e,t){var n=this,r=V_();return t.forEach((function(e){var t=n.docs.get(e);r=r.insert(e,t?t.document.mutableCopy():Gx.newInvalidDocument(e))})),ex.resolve(r)}},{key:"getDocumentsMatchingQuery",value:function(e,t,n,r){for(var i=V_(),o=t.path,a=new Hk(o.child("")),s=this.docs.getIteratorFrom(a);s.hasNext();){var u=s.getNext(),l=u.key,c=u.value.document;if(!o.isPrefixOf(l.path))break;l.path.length>o.length+1||Yk(Gk(c),n)<=0||(r.has(c.key)||L_(t,c))&&(i=i.insert(c.key,c.mutableCopy()))}return ex.resolve(i)}},{key:"getAllFromCollectionGroup",value:function(e,t,n,r){wk()}},{key:"Es",value:function(e,t){return ex.forEach(this.docs,(function(e){return t(e)}))}},{key:"newChangeBuffer",value:function(e){return new zC(this)}},{key:"getSize",value:function(e){return ex.resolve(this.size)}}]),e}(),zC=function(e){Vr(n,e);var t=Kr(n);function n(e){var r;return Lr(this,n),(r=t.call(this)).Jn=e,r}return Br(n,[{key:"applyChanges",value:function(e){var t=this,n=[];
2return this.changes.forEach((function(r,i){i.isValidDocument()?n.push(t.Jn.addEntry(e,i)):t.Jn.removeEntry(r)})),ex.waitFor(n)}},{key:"getFromCache",value:function(e,t){return this.Jn.getEntry(e,t)}},{key:"getAllFromCache",value:function(e,t){return this.Jn.getEntries(e,t)}}]),n}(RC),HC=function(){function e(t){Lr(this,e),this.persistence=t,this.As=new B_((function(e){return g_(e)}),b_),this.lastRemoteSnapshotVersion=Bk.min(),this.highestTargetId=0,this.Rs=0,this.vs=new BC,this.targetCount=0,this.bs=jC.vn()}return Br(e,[{key:"forEachTarget",value:function(e,t){return this.As.forEach((function(e,n){return t(n)})),ex.resolve()}},{key:"getLastRemoteSnapshotVersion",value:function(e){return ex.resolve(this.lastRemoteSnapshotVersion)}},{key:"getHighestSequenceNumber",value:function(e){return ex.resolve(this.Rs)}},{key:"allocateTargetId",value:function(e){return this.highestTargetId=this.bs.next(),ex.resolve(this.highestTargetId)}},{key:"setTargetsMetadata",value:function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.Rs&&(this.Rs=t),ex.resolve()}},{key:"Sn",value:function(e){this.As.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.bs=new jC(t),this.highestTargetId=t),e.sequenceNumber>this.Rs&&(this.Rs=e.sequenceNumber)}},{key:"addTargetData",value:function(e,t){return this.Sn(t),this.targetCount+=1,ex.resolve()}},{key:"updateTargetData",value:function(e,t){return this.Sn(t),ex.resolve()}},{key:"removeTargetData",value:function(e,t){return this.As.delete(t.target),this.vs.hs(t.targetId),this.targetCount-=1,ex.resolve()}},{key:"removeTargets",value:function(e,t,n){var r=this,i=0,o=[];return this.As.forEach((function(a,s){s.sequenceNumber<=t&&null===n.get(s.targetId)&&(r.As.delete(a),o.push(r.removeMatchingKeysForTargetId(e,s.targetId)),i++)})),ex.waitFor(o).next((function(){return i}))}},{key:"getTargetCount",value:function(e){return ex.resolve(this.targetCount)}},{key:"getTargetData",value:function(e,t){var n=this.As.get(t)||null;return ex.resolve(n)}},{key:"addMatchingKeys",value:function(e,t,n){return this.vs.os(t,n),ex.resolve()}},{key:"removeMatchingKeys",value:function(e,t,n){this.vs.cs(t,n);var r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((function(t){i.push(r.markPotentiallyOrphaned(e,t))})),ex.waitFor(i)}},{key:"removeMatchingKeysForTargetId",value:function(e,t){return this.vs.hs(t),ex.resolve()}},{key:"getMatchingKeysForTargetId",value:function(e,t){var n=this.vs.fs(t);return ex.resolve(n)}},{key:"containsKey",value:function(e,t){return ex.resolve(this.vs.containsKey(t))}}]),e}(),WC=function(){function e(t,n){var r=this;Lr(this,e),this.Ps={},this.overlays={},this.Vs=new nx(0),this.Ss=!1,this.Ss=!0,this.referenceDelegate=t(this),this.Ds=new HC(this),this.indexManager=new IC,this.remoteDocumentCache=new qC((function(e){return r.referenceDelegate.Cs(e)})),this.serializer=new OC(n),this.xs=new DC(this.serializer)}return Br(e,[{key:"start",value:function(){return Promise.resolve()}},{key:"shutdown",value:function(){return this.Ss=!1,Promise.resolve()}},{key:"started",get:function(){return this.Ss}},{key:"setDatabaseDeletedListener",value:function(){}},{key:"setNetworkEnabled",value:function(){}},{key:"getIndexManager",value:function(e){return this.indexManager}},{key:"getDocumentOverlayCache",value:function(e){var t=this.overlays[e.toKey()];return t||(t=new FC,this.overlays[e.toKey()]=t),t}},{key:"getMutationQueue",value:function(e,t){var n=this.Ps[e.toKey()];return n||(n=new VC(t,this.referenceDelegate),this.Ps[e.toKey()]=n),n}},{key:"getTargetCache",value:function(){return this.Ds}},{key:"getRemoteDocumentCache",value:function(){return this.remoteDocumentCache}},{key:"getBundleCache",value:function(){return this.xs}},{key:"runTransaction",value:function(e,t,n){var r=this;yk("MemoryPersistence","Starting transaction:",e);var i=new KC(this.Vs.next());return this.referenceDelegate.Ns(),n(i).next((function(e){return r.referenceDelegate.ks(i).next((function(){return e}))})).toPromise().then((function(e){return i.raiseOnCommittedEvent(),e}))}},{key:"Os",value:function(e,t){return ex.or(Object.values(this.Ps).map((function(n){return function(){return n.containsKey(e,t)}})))}}]),e}(),KC=function(e){Vr(n,e);var t=Kr(n);function n(e){var r;return Lr(this,n),(r=t.call(this)).currentSequenceNumber=e,r}return Br(n)}(Xk),GC=function(){function e(t){Lr(this,e),this.persistence=t,this.$s=new BC,this.Ms=null}return Br(e,[{key:"Bs",get:function(){if(this.Ms)return this.Ms;throw wk()}},{key:"addReference",value:function(e,t,n){return this.$s.addReference(n,t),this.Bs.delete(n.toString()),ex.resolve()}},{key:"removeReference",value:function(e,t,n){return this.$s.removeReference(n,t),this.Bs.add(n.toString()),ex.resolve()}},{key:"markPotentiallyOrphaned",value:function(e,t){return this.Bs.add(t.toString()),ex.resolve()}},{key:"removeTarget",value:function(e,t){var n=this;
2this.$s.hs(t.targetId).forEach((function(e){return n.Bs.add(e.toString())}));var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next((function(e){e.forEach((function(e){return n.Bs.add(e.toString())}))})).next((function(){return r.removeTargetData(e,t)}))}},{key:"Ns",value:function(){this.Ms=new Set}},{key:"ks",value:function(e){var t=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ex.forEach(this.Bs,(function(r){var i=Hk.fromPath(r);return t.Ls(e,i).next((function(e){e||n.removeEntry(i,Bk.min())}))})).next((function(){return t.Ms=null,n.apply(e)}))}},{key:"updateLimboDocument",value:function(e,t){var n=this;return this.Ls(e,t).next((function(e){e?n.Bs.delete(t.toString()):n.Bs.add(t.toString())}))}},{key:"Cs",value:function(e){return 0}},{key:"Ls",value:function(e,t){var n=this;return ex.or([function(){return ex.resolve(n.$s.containsKey(t))},function(){return n.persistence.getTargetCache().containsKey(e,t)},function(){return n.persistence.Os(e,t)}])}}],[{key:"Fs",value:function(t){return new e(t)}}]),e}();var $C=function(){function e(t,n,r,i){Lr(this,e),this.targetId=t,this.fromCache=n,this.Vi=r,this.Si=i}return Br(e,null,[{key:"Di",value:function(t,n){var r,i=Q_(),o=Q_(),a=Zr(n.docChanges);try{for(a.s();!(r=a.n()).done;){var s=r.value;switch(s.type){case 0:i=i.add(s.doc.key);break;case 1:o=o.add(s.doc.key)}}}catch(u){a.e(u)}finally{a.f()}return new e(t,n.fromCache,i,o)}}]),e}(),YC=function(){function e(){Lr(this,e),this.Ci=!1}return Br(e,[{key:"initialize",value:function(e,t){this.xi=e,this.indexManager=t,this.Ci=!0}},{key:"getDocumentsMatchingQuery",value:function(e,t,n,r){var i=this;return this.Ni(e,t).next((function(o){return o||i.ki(e,t,r,n)})).next((function(n){return n||i.Oi(e,t)}))}},{key:"Ni",value:function(e,t){var n=this;if(E_(t))return ex.resolve(null);var r=A_(t);return this.indexManager.getIndexType(e,r).next((function(i){return 0===i?null:(null!==t.limit&&1===i&&(t=N_(t,null,"F"),r=A_(t)),n.indexManager.getDocumentsMatchingTarget(e,r).next((function(i){var o=Q_.apply(void 0,Rr(i));return n.xi.getDocuments(e,o).next((function(i){return n.indexManager.getMinOffset(e,r).next((function(r){var a=n.$i(t,i);return n.Mi(t,a,o,r.readTime)?n.Ni(e,N_(t,null,"F")):n.Fi(e,a,t,r)}))}))})))}))}},{key:"ki",value:function(e,t,n,r){var i=this;return E_(t)||r.isEqual(Bk.min())?this.Oi(e,t):this.xi.getDocuments(e,n).next((function(o){var a=i.$i(t,o);return i.Mi(t,a,n,r)?i.Oi(e,t):(vk()<=ry.DEBUG&&yk("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),R_(t)),i.Fi(e,a,t,Kk(r,-1)))}))}},{key:"$i",value:function(e,t){var n=new vx(D_(e));return t.forEach((function(t,r){L_(e,r)&&(n=n.add(r))})),n}},{key:"Mi",value:function(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;var i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}},{key:"Oi",value:function(e,t){return vk()<=ry.DEBUG&&yk("QueryEngine","Using full collection scan to execute query:",R_(t)),this.xi.getDocumentsMatchingQuery(e,t,$k.min())}},{key:"Fi",value:function(e,t,n,r){return this.xi.getDocumentsMatchingQuery(e,n,r).next((function(e){return t.forEach((function(t){e=e.insert(t.key,t)})),e}))}}]),e}(),QC=function(){function e(t,n,r,i){Lr(this,e),this.persistence=t,this.Bi=n,this.serializer=i,this.Li=new hx(Mk),this.qi=new B_((function(e){return g_(e)}),b_),this.Ui=new Map,this.Ki=t.getRemoteDocumentCache(),this.Ds=t.getTargetCache(),this.xs=t.getBundleCache(),this.Gi(r)}return Br(e,[{key:"Gi",value:function(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new MC(this.Ki,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Ki.setIndexManager(this.indexManager),this.Bi.initialize(this.localDocuments,this.indexManager)}},{key:"collectGarbage",value:function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return e.collect(n,t.Li)}))}}]),e}();function XC(e,t,n,r){return new QC(e,t,n,r)}function ZC(e,t){return JC.apply(this,arguments)}function JC(){return JC=qp(ti().mark((function e(t,n){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=xk(t),e.next=3,r.persistence.runTransaction("Handle user change","readonly",(function(e){var t;
2return r.mutationQueue.getAllMutationBatches(e).next((function(i){return t=i,r.Gi(n),r.mutationQueue.getAllMutationBatches(e)})).next((function(n){var i,o=[],a=[],s=Q_(),u=Zr(t);try{for(u.s();!(i=u.n()).done;){var l=i.value;o.push(l.batchId);var c,f=Zr(l.mutations);try{for(f.s();!(c=f.n()).done;){var h=c.value;s=s.add(h.key)}}catch(b){f.e(b)}finally{f.f()}}}catch(b){u.e(b)}finally{u.f()}var d,p=Zr(n);try{for(p.s();!(d=p.n()).done;){var v=d.value;a.push(v.batchId);var y,m=Zr(v.mutations);try{for(m.s();!(y=m.n()).done;){var g=y.value;s=s.add(g.key)}}catch(b){m.e(b)}finally{m.f()}}}catch(b){p.e(b)}finally{p.f()}return r.localDocuments.getDocuments(e,s).next((function(e){return{Qi:e,removedBatchIds:o,addedBatchIds:a}}))}))}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),JC.apply(this,arguments)}function eS(e,t){var n=xk(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(e){var r=t.batch.keys(),i=n.Ki.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){var i=n.batch,o=i.keys(),a=ex.resolve();return o.forEach((function(e){a=a.next((function(){return r.getEntry(t,e)})).next((function(t){var o=n.docVersions.get(e);kk(null!==o),t.version.compareTo(o)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))}))})),a.next((function(){return e.mutationQueue.removeMutationBatch(t,i)}))}(n,e,t,i).next((function(){return i.apply(e)}
2)).next((function(){return n.mutationQueue.performConsistencyCheck(e)})).next((function(){return n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId)})).next((function(){return n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){for(var t=Q_(),n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t))})).next((function(){return n.localDocuments.getDocuments(e,r)}))}))}function tS(e){var t=xk(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.Ds.getLastRemoteSnapshotVersion(e)}))}function nS(e,t){var n=xk(e),r=t.snapshotVersion,i=n.Li;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(function(e){var o=n.Ki.newChangeBuffer({trackRemovals:!0});i=n.Li;var a=[];t.targetChanges.forEach((function(o,s){var u=i.get(s);if(u){a.push(n.Ds.removeMatchingKeys(e,o.removedDocuments,s).next((function(){return n.Ds.addMatchingKeys(e,o.addedDocuments,s)})));var l=u.withSequenceNumber(e.currentSequenceNumber);t.targetMismatches.has(s)?l=l.withResumeToken(bx.EMPTY_BYTE_STRING,Bk.min()).withLastLimboFreeSnapshotVersion(Bk.min()):o.resumeToken.approximateByteSize()>0&&(l=l.withResumeToken(o.resumeToken,r)),i=i.insert(s,l),function(e,t,n){return 0===e.resumeToken.approximateByteSize()||(t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0)}(u,l,o)&&a.push(n.Ds.updateTargetData(e,l))}}));var s=V_(),u=Q_();if(t.documentUpdates.forEach((function(r){t.resolvedLimboDocuments.has(r)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),a.push(rS(e,o,t.documentUpdates).next((function(e){s=e.zi,u=e.ji}))),!r.isEqual(Bk.min())){var l=n.Ds.getLastRemoteSnapshotVersion(e).next((function(t){return n.Ds.setTargetsMetadata(e,e.currentSequenceNumber,r)}));a.push(l)}return ex.waitFor(a).next((function(){return o.apply(e)})).next((function(){return n.localDocuments.getLocalViewOfDocuments(e,s,u)})).next((function(){return s}))})).then((function(e){return n.Li=i,e}))}function rS(e,t,n){var r=Q_(),i=Q_();return n.forEach((function(e){return r=r.add(e)})),t.getEntries(e,r).next((function(e){var r=V_();return n.forEach((function(n,o){var a=e.get(n);o.isFoundDocument()!==a.isFoundDocument()&&(i=i.add(n)),o.isNoDocument()&&o.version.isEqual(Bk.min())?(t.removeEntry(n,o.readTime),r=r.insert(n,o)):!a.isValidDocument()||o.version.compareTo(a.version)>0||0===o.version.compareTo(a.version)&&a.hasPendingWrites?(t.addEntry(o),r=r.insert(n,o)):yk("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",o.version)})),{zi:r,ji:i}}))}function iS(e,t){var n=xk(e);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(e){return void 0===t&&(t=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t)}))}function oS(e,t){var n=xk(e);return n.persistence.runTransaction("Allocate target","readwrite",(function(e){var r;return n.Ds.getTargetData(e,t).next((function(i){return i?(r=i,ex.resolve(r)):n.Ds.allocateTargetId(e).next((function(i){return r=new SC(t,i,0,e.currentSequenceNumber),n.Ds.addTargetData(e,r).next((function(){return r}))}))}))})).then((function(e){var r=n.Li.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.Li=n.Li.insert(e.targetId,e),n.qi.set(t,e.targetId)),e}))}function aS(e,t,n){return sS.apply(this,arguments)}function sS(){return sS=qp(ti().mark((function e(t,n,r){var i,o,a;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=xk(t),o=i.Li.get(n),a=r?"readwrite":"readwrite-primary",e.prev=1,e.t0=r,e.t0){e.next=6;break}return e.next=6,i.persistence.runTransaction("Release target",a,(function(e){return i.persistence.referenceDelegate.removeTarget(e,o)}));case 6:e.next=13;break;case 8:if(e.prev=8,e.t1=e.catch(1),tx(e.t1)){e.next=12;break}throw e.t1;case 12:yk("LocalStore","Failed to update sequence numbers for target ".concat(n,": ").concat(e.t1));case 13:i.Li=i.Li.remove(n),i.qi.delete(o.target);case 14:case"end":return e.stop()}}),e,null,[[1,8]])}))),sS.apply(this,arguments)}
2function uS(e,t,n){var r=xk(e),i=Bk.min(),o=Q_();return r.persistence.runTransaction("Execute query","readonly",(function(e){return function(e,t,n){var r=xk(e),i=r.qi.get(n);return void 0!==i?ex.resolve(r.Li.get(i)):r.Ds.getTargetData(t,n)}(r,e,A_(t)).next((function(t){if(t)return i=t.lastLimboFreeSnapshotVersion,r.Ds.getMatchingKeysForTargetId(e,t.targetId).next((function(e){o=e}))})).next((function(){return r.Bi.getDocumentsMatchingQuery(e,t,n?i:Bk.min(),n?o:Q_())})).next((function(e){return lS(r,M_(t),e),{documents:e,Wi:o}}))}))}function lS(e,t,n){var r=e.Ui.get(t)||Bk.min();n.forEach((function(e,t){t.readTime.compareTo(r)>0&&(r=t.readTime)})),e.Ui.set(t,r)}var cS=function(){function e(){Lr(this,e),this.activeTargetIds=Z_()}return Br(e,[{key:"tr",value:function(e){this.activeTargetIds=this.activeTargetIds.add(e)}},{key:"er",value:function(e){this.activeTargetIds=this.activeTargetIds.delete(e)}},{key:"Xi",value:function(){var e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}]),e}(),fS=function(){function e(){Lr(this,e),this.Br=new cS,this.Lr={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return Br(e,[{key:"addPendingMutation",value:function(e){}},{key:"updateMutationState",value:function(e,t,n){}},{key:"addLocalQueryTarget",value:function(e){return this.Br.tr(e),this.Lr[e]||"not-current"}},{key:"updateQueryState",value:function(e,t,n){this.Lr[e]=t}},{key:"removeLocalQueryTarget",value:function(e){this.Br.er(e)}},{key:"isLocalQueryTarget",value:function(e){return this.Br.activeTargetIds.has(e)}},{key:"clearQueryState",value:function(e){delete this.Lr[e]}},{key:"getAllActiveQueryTargets",value:function(){return this.Br.activeTargetIds}},{key:"isActiveQueryTarget",value:function(e){return this.Br.activeTargetIds.has(e)}},{key:"start",value:function(){return this.Br=new cS,Promise.resolve()}},{key:"handleUserChange",value:function(e,t,n){}},{key:"setOnlineState",value:function(e){}},{key:"shutdown",value:function(){}},{key:"writeSequenceNumber",value:function(e){}},{key:"notifyBundleLoaded",value:function(e){}}]),e}(),hS=function(){function e(){Lr(this,e)}return Br(e,[{key:"qr",value:function(e){}},{key:"shutdown",value:function(){}}]),e}(),dS=function(){function e(){var t=this;Lr(this,e),this.Ur=function(){return t.Kr()},this.Gr=function(){return t.Qr()},this.zr=[],this.jr()}return Br(e,[{key:"qr",value:function(e){this.zr.push(e)}},{key:"shutdown",value:function(){window.removeEventListener("online",this.Ur),window.removeEventListener("offline",this.Gr)}},{key:"jr",value:function(){window.addEventListener("online",this.Ur),window.addEventListener("offline",this.Gr)}},{key:"Kr",value:function(){yk("ConnectivityMonitor","Network connectivity changed: AVAILABLE");var e,t=Zr(this.zr);try{for(t.s();!(e=t.n()).done;){(0,e.value)(0)}}catch(n){t.e(n)}finally{t.f()}}},{key:"Qr",value:function(){yk("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");var e,t=Zr(this.zr);try{for(t.s();!(e=t.n()).done;){(0,e.value)(1)}}catch(n){t.e(n)}finally{t.f()}}}],[{key:"D",value:function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}]),e}(),pS=null;function vS(){return null===pS?pS=268435456+Math.round(2147483648*Math.random()):pS++,"0x"+pS.toString(16)}var yS={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"},mS=function(){function e(t){Lr(this,e),this.Wr=t.Wr,this.Hr=t.Hr}return Br(e,[{key:"Jr",value:function(e){this.Yr=e}},{key:"Zr",value:function(e){this.Xr=e}},{key:"onMessage",value:function(e){this.eo=e}},{key:"close",value:function(){this.Hr()}},{key:"send",value:function(e){this.Wr(e)}},{key:"no",value:function(){this.Yr()}},{key:"so",value:function(e){this.Xr(e)}},{key:"io",value:function(e){this.eo(e)}}]),e}(),gS="WebChannelConnection",bS=function(e){Vr(n,e);var t=Kr(n);function n(e){var r;return Lr(this,n),(r=t.call(this,e)).forceLongPolling=e.forceLongPolling,r.autoDetectLongPolling=e.autoDetectLongPolling,r.useFetchStreams=e.useFetchStreams,r}return Br(n,[{key:"lo",value:function(e,t,n,r){var i=vS();return new Promise((function(o,a){var s=new ck;s.setWithCredentials(!0),s.listenOnce(ok.COMPLETE,(function(){try{
2switch(s.getLastErrorCode()){case ik.NO_ERROR:var t=s.getResponseJson();yk(gS,"XHR for RPC '".concat(e,"' ").concat(i," received:"),JSON.stringify(t)),o(t);break;case ik.TIMEOUT:yk(gS,"RPC '".concat(e,"' ").concat(i," timed out")),a(new Ek(_k.DEADLINE_EXCEEDED,"Request time out"));break;case ik.HTTP_ERROR:var n=s.getStatus();if(yk(gS,"RPC '".concat(e,"' ").concat(i," failed with status:"),n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson();Array.isArray(r)&&(r=r[0]);var u=null==r?void 0:r.error;if(u&&u.status&&u.message){var l=function(e){var t=e.toLowerCase().replace(/_/g,"-");return Object.values(_k).indexOf(t)>=0?t:_k.UNKNOWN}(u.status);a(new Ek(l,u.message))}else a(new Ek(_k.UNKNOWN,"Server responded with status "+s.getStatus()))}else a(new Ek(_k.UNAVAILABLE,"Connection failed."));break;default:wk()}}finally{yk(gS,"RPC '".concat(e,"' ").concat(i," completed."))}}));var u=JSON.stringify(r);yk(gS,"RPC '".concat(e,"' ").concat(i," sending request:"),r),s.send(t,"POST",u,n,15)}))}},{key:"wo",value:function(e,t,n){var r=vS(),i=[this.ro,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=nk(),a=rk(),s={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/".concat(this.databaseId.projectId,"/databases/").concat(this.databaseId.database)},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(s.xmlHttpFactory=new uk({})),this.ho(s.initMessageHeaders,t,n),s.encodeInitMessageHeaders=!0;var u=i.join("");yk(gS,"Creating RPC '".concat(e,"' stream ").concat(r,": ").concat(u),s);var l=o.createWebChannel(u,s),c=!1,f=!1,h=new mS({Wr:function(t){f?yk(gS,"Not sending because RPC '".concat(e,"' stream ").concat(r," is closed:"),t):(c||(yk(gS,"Opening RPC '".concat(e,"' stream ").concat(r," transport.")),l.open(),c=!0),yk(gS,"RPC '".concat(e,"' stream ").concat(r," sending:"),t),l.send(t))},Hr:function(){return l.close()}}),d=function(e,t,n){e.listen(t,(function(e){try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))};return d(l,lk.EventType.OPEN,(function(){f||yk(gS,"RPC '".concat(e,"' stream ").concat(r," transport opened."))})),d(l,lk.EventType.CLOSE,(function(){f||(f=!0,yk(gS,"RPC '".concat(e,"' stream ").concat(r," transport closed")),h.so())})),d(l,lk.EventType.ERROR,(function(t){f||(f=!0,gk(gS,"RPC '".concat(e,"' stream ").concat(r," transport errored:"),t),h.so(new Ek(_k.UNAVAILABLE,"The operation could not be completed")))})),d(l,lk.EventType.MESSAGE,(function(t){var n;if(!f){var i=t.data[0];kk(!!i);var o=i,a=o.error||(null===(n=o[0])||void 0===n?void 0:n.error);if(a){yk(gS,"RPC '".concat(e,"' stream ").concat(r," received error:"),a);var s=a.status,u=function(e){var t=AE[e];if(void 0!==t)return FE(t)}(s),c=a.message;void 0===u&&(u=_k.INTERNAL,c="Unknown error status: "+s+" with message "+a.message),f=!0,h.so(new Ek(u,c)),l.close()}else yk(gS,"RPC '".concat(e,"' stream ").concat(r," received:"),i),h.io(i)}})),d(a,ak.STAT_EVENT,(function(t){t.stat===sk.PROXY?yk(gS,"RPC '".concat(e,"' stream ").concat(r," detected buffering proxy")):t.stat===sk.NOPROXY&&yk(gS,"RPC '".concat(e,"' stream ").concat(r," detected no buffering proxy"))})),setTimeout((function(){h.no()}),0),h}}]),n}(function(){function e(t){Lr(this,e),this.databaseInfo=t,this.databaseId=t.databaseId;var n=t.ssl?"https":"http";this.ro=n+"://"+t.host,this.oo="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return Br(e,[{key:"uo",get:function(){return!1}},{key:"co",value:function(e,t,n,r,i){var o=vS(),a=this.ao(e,t);yk("RestConnection","Sending RPC '".concat(e,"' ").concat(o,":"),a,n);var s={};return this.ho(s,r,i),this.lo(e,a,s,n).then((function(t){return yk("RestConnection","Received RPC '".concat(e,"' ").concat(o,": "),t),t}),(function(t){throw gk("RestConnection","RPC '".concat(e,"' ").concat(o," failed with error: "),t,"url: ",a,"request:",n),t}))}},{key:"fo",value:function(e,t,n,r,i,o){return this.co(e,t,n,r,i)}},{key:"ho",value:function(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+dk,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEac
2h((function(t,n){return e[n]=t})),n&&n.headers.forEach((function(t,n){return e[n]=t}))}},{key:"ao",value:function(e,t){var n=yS[e];return"".concat(this.ro,"/v1/").concat(t,":").concat(n)}}]),e}());function wS(){return"undefined"!=typeof document?document:null}function kS(e){return new JE(e,!0)}var xS=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;Lr(this,e),this.Ws=t,this.timerId=n,this._o=r,this.mo=i,this.yo=o,this.po=0,this.Io=null,this.To=Date.now(),this.reset()}return Br(e,[{key:"reset",value:function(){this.po=0}},{key:"Eo",value:function(){this.po=this.yo}},{key:"Ao",value:function(e){var t=this;this.cancel();var n=Math.floor(this.po+this.Ro()),r=Math.max(0,Date.now()-this.To),i=Math.max(0,n-r);i>0&&yk("ExponentialBackoff","Backing off for ".concat(i," ms (base delay: ").concat(this.po," ms, delay with jitter: ").concat(n," ms, last attempt: ").concat(r," ms ago)")),this.Io=this.Ws.enqueueAfterDelay(this.timerId,i,(function(){return t.To=Date.now(),e()})),this.po*=this.mo,this.po<this._o&&(this.po=this._o),this.po>this.yo&&(this.po=this.yo)}},{key:"vo",value:function(){null!==this.Io&&(this.Io.skipDelay(),this.Io=null)}},{key:"cancel",value:function(){null!==this.Io&&(this.Io.cancel(),this.Io=null)}},{key:"Ro",value:function(){return(Math.random()-.5)*this.po}}]),e}(),_S=function(){function e(t,n,r,i,o,a,s,u){Lr(this,e),this.Ws=t,this.bo=r,this.Po=i,this.connection=o,this.authCredentialsProvider=a,this.appCheckCredentialsProvider=s,this.listener=u,this.state=0,this.Vo=0,this.So=null,this.Do=null,this.stream=null,this.Co=new xS(t,n)}return Br(e,[{key:"xo",value:function(){return 1===this.state||5===this.state||this.No()}},{key:"No",value:function(){return 2===this.state||3===this.state}},{key:"start",value:function(){4!==this.state?this.auth():this.ko()}},{key:"stop",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.xo(),!e.t0){e.next=4;break}return e.next=4,this.close(0);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Oo",value:function(){this.state=0,this.Co.reset()}},{key:"$o",value:function(){var e=this;this.No()&&null===this.So&&(this.So=this.Ws.enqueueAfterDelay(this.bo,6e4,(function(){return e.Mo()})))}},{key:"Fo",value:function(e){this.Bo(),this.stream.send(e)}},{key:"Mo",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.No()){e.next=2;break}return e.abrupt("return",this.close(0));case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Bo",value:function(){this.So&&(this.So.cancel(),this.So=null)}},{key:"Lo",value:function(){this.Do&&(this.Do.cancel(),this.Do=null)}},{key:"close",value:function(){var e=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.Bo(),this.Lo(),this.Co.cancel(),this.Vo++,4!==t?this.Co.reset():n&&n.code===_k.RESOURCE_EXHAUSTED?(mk(n.toString()),mk("Using maximum backoff delay to prevent overloading the backend."),this.Co.Eo()):n&&n.code===_k.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.qo(),this.stream.close(),this.stream=null),this.state=t,e.next=9,this.listener.Zr(n);case 9:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"qo",value:function(){}},{key:"auth",value:function(){var e=this;this.state=1;var t=this.Uo(this.Vo),n=this.Vo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((function(t){var r=Yr(t,2),i=r[0],o=r[1];e.Vo===n&&e.Ko(i,o)}),(function(n){t((function(){var t=new Ek(_k.UNKNOWN,"Fetching auth token failed: "+n.message);return e.Go(t)}))}))}},{key:"Ko",value:function(e,t){var n=this,r=this.Uo(this.Vo);this.stream=this.Qo(e,t),this.stream.Jr((function(){r((function(){return n.state=2,n.Do=n.Ws.enqueueAfterDelay(n.Po,1e4,(function(){return n.No()&&(n.state=3),Promise.resolve()})),n.listener.Jr()}))})),this.stream.Zr((function(e){r((function(){return n.Go(e)}))})),this.stream.onMessage((function(e){r((function(){return n.onMessage(e)}))}))}},{key:"ko",value:function(){var e=this;this.state=5,this.Co.Ao(qp(ti().mark((function t(){return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.state=0,e.start();case 1:case"end":return t.stop()}}),t)}))))}},{key:"Go",value:function(e){return yk("PersistentStream","close with error: ".concat(e)),this.stream=null,this.close(4,e)}},{key:"Uo",value:function(e){var t=this;return function(n){t.Ws.enqueueAndForget((function(){return t.Vo===e?n():(yk("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}}}]),e}(),ES=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i,o,a,s){var u;return Lr(this,n),(u=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",r,i,o,s)).serializer
2=a,u}return Br(n,[{key:"Qo",value:function(e,t){return this.connection.wo("Listen",e,t)}},{key:"onMessage",value:function(e){this.Co.reset();var t=function(e,t){var n;if("targetChange"in t){t.targetChange;var r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:wk()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],o=function(e,t){return e.useProto3Json?(kk(void 0===t||"string"==typeof t),bx.fromBase64String(t||"")):(kk(void 0===t||t instanceof Uint8Array),bx.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),a=t.targetChange.cause,s=a&&function(e){var t=void 0===e.code?_k.UNKNOWN:FE(e.code);return new Ek(t,e.message||"")}(a);n=new WE(r,i,o,s||null)}else if("documentChange"in t){t.documentChange;var u=t.documentChange;u.document,u.document.name,u.document.updateTime;var l=sC(e,u.document.name),c=rC(u.document.updateTime),f=u.document.createTime?rC(u.document.createTime):Bk.min(),h=new Wx({mapValue:{fields:u.document.fields}}),d=Gx.newFoundDocument(l,c,f,h),p=u.targetIds||[],v=u.removedTargetIds||[];n=new zE(p,v,d.key,d)}else if("documentDelete"in t){t.documentDelete;var y=t.documentDelete;y.document;var m=sC(e,y.document),g=y.readTime?rC(y.readTime):Bk.min(),b=Gx.newNoDocument(m,g),w=y.removedTargetIds||[];n=new zE([],w,b.key,b)}else if("documentRemove"in t){t.documentRemove;var k=t.documentRemove;k.document;var x=sC(e,k.document),_=k.removedTargetIds||[];n=new zE([],_,x,null)}else{if(!("filter"in t))return wk();t.filter;var E=t.filter;E.targetId;var C=E.count||0,S=new ME(C),O=E.targetId;n=new HE(O,S)}return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return Bk.min();var t=e.targetChange;return t.targetIds&&t.targetIds.length?Bk.min():t.readTime?rC(t.readTime):Bk.min()}(e);return this.listener.zo(t,n)}},{key:"jo",value:function(e){var t={};t.database=cC(this.serializer),t.addTarget=function(e,t){var n,r=t.target;return(n=w_(r)?{documents:pC(e,r)}:{query:vC(e,r)}).targetId=t.targetId,t.resumeToken.approximateByteSize()>0?n.resumeToken=tC(e,t.resumeToken):t.snapshotVersion.compareTo(Bk.min())>0&&(n.readTime=eC(e,t.snapshotVersion.toTimestamp())),n}(this.serializer,e);var n=function(e,t){var n=function(e,t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return wk()}}(0,t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.Fo(t)}},{key:"Wo",value:function(e){var t={};t.database=cC(this.serializer),t.removeTarget=e,this.Fo(t)}}]),n}(_S),CS=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i,o,a,s){var u;return Lr(this,n),(u=t.call(this,e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",r,i,o,s)).serializer=a,u.Ho=!1,u}return Br(n,[{key:"Jo",get:function(){return this.Ho}},{key:"start",value:function(){this.Ho=!1,this.lastStreamToken=void 0,Cv(qr(n.prototype),"start",this).call(this)}},{key:"qo",value:function(){this.Ho&&this.Yo([])}},{key:"Qo",value:function(e,t){return this.connection.wo("Write",e,t)}},{key:"onMessage",value:function(e){if(kk(!!e.streamToken),this.lastStreamToken=e.streamToken,this.Ho){this.Co.reset();var t=function(e,t){return e&&e.length>0?(kk(void 0!==t),e.map((function(e){return function(e,t){var n=e.updateTime?rC(e.updateTime):rC(t);return n.isEqual(Bk.min())&&(n=rC(t)),new vE(n,e.transformResults||[])}(e,t)}))):[]}(e.writeResults,e.commitTime),n=rC(e.commitTime);return this.listener.Zo(n,t)}return kk(!e.writeResults||0===e.writeResults.length),this.Ho=!0,this.listener.Xo()}},{key:"tu",value:function(){var e={};e.database=cC(this.serializer),this.Fo(e)}},{key:"Yo",value:function(e){var t=this,n={streamToken:this.lastStreamToken,writes:e.map((function(e){return dC(t.serializer,e)}))};this.Fo(n)}}]),n}(_S),SS=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i,o){var a;return Lr(this,n),(a=t.call(this)).authCredentials=e,a.appCheckCredentials=r,a.connection=i,a.serializer=o,a.eu=!1,a}return Br(n,[{key:"nu",value:function(){if(this.eu)throw new Ek(_k.FAILED_PRECONDITION,"The client has already been terminated.")}},{key:"co",value:function(e,t,n){var r=this;return this.nu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((function(i){var o=Yr(i,2),a=o[0],s=o[1];return r.connection.co(e,t,n,a,s)})).catch((function(e){throw"FirebaseError"===e.name?(e.code===_k.UNAUTHENTICATED&&(r.authCredentials.invalidateToken(),r.appCheckCredentials.invalidateToken()),e):new Ek(_k.UNKNOWN,e.toString())}))}},{key:"fo",value:function(e,t,n,r){var i=this;return this.nu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((function(o){var a=Yr(o,2),s=a[0],u=a[1];return i.connection.fo(e,t,n,s,u,r)}
2)).catch((function(e){throw"FirebaseError"===e.name?(e.code===_k.UNAUTHENTICATED&&(i.authCredentials.invalidateToken(),i.appCheckCredentials.invalidateToken()),e):new Ek(_k.UNKNOWN,e.toString())}))}},{key:"terminate",value:function(){this.eu=!0}}]),n}(function(){return Br((function e(){Lr(this,e)}))}());var OS=function(){function e(t,n){Lr(this,e),this.asyncQueue=t,this.onlineStateHandler=n,this.state="Unknown",this.su=0,this.iu=null,this.ru=!0}return Br(e,[{key:"ou",value:function(){var e=this;0===this.su&&(this.uu("Unknown"),this.iu=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(function(){return e.iu=null,e.cu("Backend didn't respond within 10 seconds."),e.uu("Offline"),Promise.resolve()})))}},{key:"au",value:function(e){"Online"===this.state?this.uu("Unknown"):(this.su++,this.su>=1&&(this.hu(),this.cu("Connection failed 1 times. Most recent error: ".concat(e.toString())),this.uu("Offline")))}},{key:"set",value:function(e){this.hu(),this.su=0,"Online"===e&&(this.ru=!1),this.uu(e)}},{key:"uu",value:function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}},{key:"cu",value:function(e){var t="Could not reach Cloud Firestore backend. ".concat(e,"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.");this.ru?(mk(t),this.ru=!1):yk("OnlineStateTracker",t)}},{key:"hu",value:function(){null!==this.iu&&(this.iu.cancel(),this.iu=null)}}]),e}(),TS=Br((function e(t,n,r,i,o){var a=this;Lr(this,e),this.localStore=t,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.lu=[],this.fu=new Map,this.du=new Set,this.wu=[],this._u=o,this._u.qr((function(e){r.enqueueAndForget(qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=BS(a),!e.t0){e.next=5;break}return yk("RemoteStore","Restarting streams for network reachability change."),e.next=5,function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=xk(t)).du.add(4),e.next=4,NS(n);case 4:return n.mu.set("Unknown"),n.du.delete(4),e.next=8,AS(n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()(a);case 5:case"end":return e.stop()}}),e)}))))})),this.mu=new OS(r,i)}));function AS(e){return IS.apply(this,arguments)}function IS(){return IS=qp(ti().mark((function e(t){var n,r,i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!BS(t)){e.next=18;break}n=Zr(t.wu),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=10;break}return i=r.value,e.next=8,i(!0);case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[2,12,15,18]])}))),IS.apply(this,arguments)}function NS(e){return PS.apply(this,arguments)}function PS(){return PS=qp(ti().mark((function e(t){var n,r,i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Zr(t.wu),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return i=r.value,e.next=7,i(!1);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))),PS.apply(this,arguments)}function jS(e,t){var n=xk(e);n.fu.has(t.targetId)||(n.fu.set(t.targetId,t),FS(n)?DS(n):pO(n).No()&&LS(n,t))}function RS(e,t){var n=xk(e),r=pO(n);n.fu.delete(t),r.No()&&MS(n,t),0===n.fu.size&&(r.No()?r.$o():BS(n)&&n.mu.set("Unknown"))}function LS(e,t){e.gu.Ot(t.targetId),pO(e).jo(t)}function MS(e,t){e.gu.Ot(t),pO(e).Wo(t)}function DS(e){e.gu=new GE({getRemoteKeysForTarget:function(t){return e.remoteSyncer.getRemoteKeysForTarget(t)},ne:function(t){return e.fu.get(t)||null}}),pO(e).start(),e.mu.ou()}function FS(e){return BS(e)&&!pO(e).xo()&&e.fu.size>0}function BS(e){return 0===xk(e).du.size}function US(e){e.gu=void 0}function VS(e){return qS.apply(this,arguments)}function qS(){return qS=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.fu.forEach((function(e,n){LS(t,e)}));case 1:case"end":return e.stop()}}),e)}))),qS.apply(this,arguments)}function zS(e,t){return HS.apply(this,arguments)}function HS(){return HS=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:US(t),FS(t)?(t.mu.au(n),DS(t)):t.mu.set("Unknown");case 1:case"end":return e.stop()}}),e)}))),HS.apply(this,arguments)}function WS(e,t,n){return KS.apply(this,arguments)}function KS(){return KS=qp(ti().mark((function e(t,n,r){var i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.mu.set("Online"),!(n instanceof WE&&2===n.state&&n.cause)){e.next=13;break}return e.prev=1,e.next=4,function(){var e=qp(ti().mark((function e(t,n){var r,i,o,a;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.cause,i=Zr(n.targetIds),e.prev=2,i.s();case 4:if((o=i.n()).done){e.next=14;break}if(a=o.value,e.t0=t.fu.has(a),!e.t0){e.next=12;break}return e.next=10,t.remoteSyncer.rejectListen(a,r);case 10:t.fu.delete(a),t.gu.removeTarget(a);case 12:e.next=4;break;case 14:e.next=19;break;case 16:e.prev=16,e.t1=e.catch(2),i.e(e.t1);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[2,16,19,22]])})));return function(t,n){return e.apply(this,arguments)}}()(t,n);case 4:e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(1),yk("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),e.t0),e.next=11,GS(t,e.t0);case 11:case 22:e.next=29;break;case 13:if(n instanceof zE?t.gu.Kt(n):n instanceof HE?t.gu.Jt(n):t.gu.zt(n),r.isEqual(Bk.min())){e.next=29;break}return e.prev=14,e.next=17,tS(t.localStore);case 17:if(i=e.sent,e.t1=r.compareTo(i)>=0,!e.t1){e.next=22;break}return e.next=22,function(e,t){var n=e.gu.Xt(t);
2return n.targetChanges.forEach((function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=e.fu.get(r);i&&e.fu.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach((function(t){var n=e.fu.get(t);if(n){e.fu.set(t,n.withResumeToken(bx.EMPTY_BYTE_STRING,n.snapshotVersion)),MS(e,t);var r=new SC(n.target,t,1,n.sequenceNumber);LS(e,r)}})),e.remoteSyncer.applyRemoteEvent(n)}(t,r);case 24:return e.prev=24,e.t2=e.catch(14),yk("RemoteStore","Failed to raise snapshot:",e.t2),e.next=29,GS(t,e.t2);case 29:case"end":return e.stop()}}),e,null,[[1,6],[14,24]])}))),KS.apply(this,arguments)}function GS(e,t,n){return $S.apply(this,arguments)}function $S(){return $S=qp(ti().mark((function e(t,n,r){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(tx(n)){e.next=2;break}throw n;case 2:return t.du.add(1),e.next=5,NS(t);case 5:t.mu.set("Offline"),r||(r=function(){return tS(t.localStore)}),t.asyncQueue.enqueueRetryable(qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return yk("RemoteStore","Retrying IndexedDB access"),e.next=3,r();case 3:return t.du.delete(1),e.next=6,AS(t);case 6:case"end":return e.stop()}}),e)}))));case 8:case"end":return e.stop()}}),e)}))),$S.apply(this,arguments)}function YS(e,t){return t().catch((function(n){return GS(e,n,t)}))}function QS(e){return XS.apply(this,arguments)}function XS(){return XS=qp(ti().mark((function e(t){var n,r,i,o;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=xk(t),r=vO(n),i=n.lu.length>0?n.lu[n.lu.length-1].batchId:-1;case 2:if(!ZS(n)){e.next=19;break}return e.prev=3,e.next=6,iS(n.localStore,i);case 6:if(null!==(o=e.sent)){e.next=10;break}return 0===n.lu.length&&r.$o(),e.abrupt("break",19);case 10:i=o.batchId,JS(n,o),e.next=17;break;case 13:return e.prev=13,e.t0=e.catch(3),e.next=17,GS(n,e.t0);case 17:e.next=2;break;case 19:eO(n)&&tO(n);case 20:case"end":return e.stop()}}),e,null,[[3,13]])}))),XS.apply(this,arguments)}function ZS(e){return BS(e)&&e.lu.length<10}function JS(e,t){e.lu.push(t);var n=vO(e);n.No()&&n.Jo&&n.Yo(t.mutations)}function eO(e){return BS(e)&&!vO(e).xo()&&e.lu.length>0}function tO(e){vO(e).start()}function nO(e){return rO.apply(this,arguments)}function rO(){return rO=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:vO(t).tu();case 1:case"end":return e.stop()}}),e)}))),rO.apply(this,arguments)}function iO(e){return oO.apply(this,arguments)}function oO(){return oO=qp(ti().mark((function e(t){var n,r,i,o;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=vO(t),r=Zr(t.lu);try{for(r.s();!(i=r.n()).done;)o=i.value,n.Yo(o.mutations)}catch(a){r.e(a)}finally{r.f()}case 3:case"end":return e.stop()}}),e)}))),oO.apply(this,arguments)}function aO(e,t,n){return sO.apply(this,arguments)}function sO(){return sO=qp(ti().mark((function e(t,n,r){var i,o;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.lu.shift(),o=RE.from(i,n,r),e.next=3,YS(t,(function(){return t.remoteSyncer.applySuccessfulWrite(o)}));case 3:return e.next=5,QS(t);case 5:case"end":return e.stop()}}),e)}))),sO.apply(this,arguments)}function uO(e,t){return lO.apply(this,arguments)}function lO(){return lO=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=n&&vO(t).Jo,!e.t0){e.next=4;break}return e.next=4,function(){var e=qp(ti().mark((function e(t,n){var r,i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!DE(i=n.code)||i===_k.ABORTED){e.next=7;break}return r=t.lu.shift(),vO(t).Oo(),e.next=5,YS(t,(function(){return t.remoteSyncer.rejectFailedWrite(r.batchId,n)}));case 5:return e.next=7,QS(t);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(t,n);case 4:eO(t)&&tO(t);case 5:case"end":return e.stop()}}),e)}))),lO.apply(this,arguments)}function cO(e,t){return fO.apply(this,arguments)}function fO(){return fO=qp(ti().mark((function e(t,n){var r,i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=xk(t)).asyncQueue.verifyOperationInProgress(),yk("RemoteStore","RemoteStore received new credentials"),i=BS(r),r.du.add(3),e.next=6,NS(r);case 6:return i&&r.mu.set("Unknown"),e.next=9,r.remoteSyncer.handleCredentialChange(n);case 9:return r.du.delete(3),e.next=12,AS(r);case 12:case"end":return e.stop()}}),e)}))),fO.apply(this,arguments)}function hO(e,t){return dO.apply(this,arguments)}function dO(){return dO=qp(ti().mark((function e(t,n){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=xk(t),!n){e.next=7;break}return r.du.delete(2),e.next=5,AS(r);case 5:e.next=13;break;case 7:if(e.t0=n,e.t0){e.next=13;break}return r.du.add(2),e.next=12,NS(r);case 12:r.mu.set("Unknown");case 13:case"end":return e.stop()}}),e)}))),dO.apply(this,arguments)}function pO(e){return e.yu||(e.yu=function(e,t,n){var r=xk(e);return r.nu(),new ES(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Jr:VS.bind(null,e),Zr:zS.bind(null,e),zo:WS.bind(null,e)}),e.wu.push(function(){var t=qp(ti().mark((function t(n){return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=4;break}e.yu.Oo(),FS(e)?DS(e):e.mu.set("Unknown"),t.next=7;break;case 4:return t.next=6,e.yu.stop();case 6:US(e);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),e.yu}function vO(e){return e.pu||(e.pu=function(e,t,n){var r=xk(e);return r.nu(),new CS(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Jr:nO.bind(null,e),Zr:uO.bind(null,e),Xo:iO.bind(null,e),Zo:aO.bind(null,e)}),e.wu.push(function(){var t=qp(ti().mark((function t(n){return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=6;break}return e.pu.Oo(),t.next=4,QS(e);case 4:t.next=9;break;case 6:return t.next=8,e.pu.stop();case 8:e.lu.length>0&&(yk("RemoteStore","Stopping write stream with ".concat(e.lu.length," pending writes")),e.lu=[]);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),e.pu}var yO=function(){function e(t,n,r,i,o){Lr(this,e),this.asyncQueue=t,this.timerId=n,this.targetTimeMs=r,this.op=i,this.removalCallback=o,this.deferred=new Ck,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((function(e){}))}return Br(e,[{key:"start",value:function(e){var t=this;this.timerHandle=setTimeout((function(){return t.handleDelayElapsed()}),e)}},{key:"skipDelay",value:function(){return this.handleDelayElapsed()}},{key:"cancel",value:function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Ek(_k.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}},{key:"handleDelayElapsed",value:function(){var e=this;this.asyncQueue.enqueueAndForget((function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then((function(t){return e.deferred.resolve(t)}))):Promise.resolve()}))}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}))}],[{key:"createAndSchedule",value:function(t,n,r,i,o){var a=new e(t,n,Date.now()+r,i,o);return a.start(r),a}}]),e}();function mO(e,t){if(mk("AsyncQueue","".concat(t,": ").concat(e)),tx(e))return new Ek(_k.UNAVAILABLE,"".concat(t,": ").concat(e));throw e}var gO=function(){function e(t){Lr(this,e),this.comparator=t?function(e,n){return t(e,n)||Hk.comparator(e.key,n.key)}:function(e,t){return Hk.comparator(e.key,t.key)},this.keyedMap=z_(),this.sortedSet=new hx(this.comparator)}return Br(e,[{key:"has",value:function(e){return null!=this.keyedMap.get(e)}},{key:"get",value:function(e){return this.keyedMap.get(e)}},{key:"first",value:function(){return this.sortedSet.minKey()}},{key:"last",value:function(){return this.sortedSet.maxKey()}},{key:"isEmpty",value:function(){return this.sortedSet.isEmpty()}},{key:"indexOf",value:function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}},{key:"size",get:function(){return this.sortedSet.size}}
2,{key:"forEach",value:function(e){this.sortedSet.inorderTraversal((function(t,n){return e(t),!1}))}},{key:"add",value:function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}},{key:"delete",value:function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}},{key:"isEqual",value:function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.sortedSet.getIterator(),r=t.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0}},{key:"toString",value:function(){var e=[];return this.forEach((function(t){e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}},{key:"copy",value:function(t,n){var r=new e;return r.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r}}],[{key:"emptySet",value:function(t){return new e(t.comparator)}}]),e}(),bO=function(){function e(){Lr(this,e),this.Iu=new hx(Hk.comparator)}return Br(e,[{key:"track",value:function(e){var t=e.doc.key,n=this.Iu.get(t);n?0!==e.type&&3===n.type?this.Iu=this.Iu.insert(t,e):3===e.type&&1!==n.type?this.Iu=this.Iu.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.Iu=this.Iu.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.Iu=this.Iu.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.Iu=this.Iu.remove(t):1===e.type&&2===n.type?this.Iu=this.Iu.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.Iu=this.Iu.insert(t,{type:2,doc:e.doc}):wk():this.Iu=this.Iu.insert(t,e)}},{key:"Tu",value:function(){var e=[];return this.Iu.inorderTraversal((function(t,n){e.push(n)})),e}}]),e}(),wO=function(){function e(t,n,r,i,o,a,s,u,l){Lr(this,e),this.query=t,this.docs=n,this.oldDocs=r,this.docChanges=i,this.mutatedKeys=o,this.fromCache=a,this.syncStateChanged=s,this.excludesMetadataChanges=u,this.hasCachedResults=l}return Br(e,[{key:"hasPendingWrites",get:function(){return!this.mutatedKeys.isEmpty()}},{key:"isEqual",value:function(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&P_(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0}}],[{key:"fromInitialDocuments",value:function(t,n,r,i,o){var a=[];return n.forEach((function(e){a.push({type:0,doc:e})})),new e(t,n,gO.emptySet(n),a,r,i,!0,!1,o)}}]),e}(),kO=Br((function e(){Lr(this,e),this.Eu=void 0,this.listeners=[]})),xO=Br((function e(){Lr(this,e),this.queries=new B_((function(e){return j_(e)}),P_),this.onlineState="Unknown",this.Au=new Set}));function _O(e,t){return EO.apply(this,arguments)}function EO(){return EO=qp(ti().mark((function e(t,n){var r,i,o,a,s;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=xk(t),i=n.query,o=!1,(a=r.queries.get(i))||(o=!0,a=new kO),!o){e.next=13;break}return e.prev=3,e.next=6,r.onListen(i);case 6:a.Eu=e.sent,e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),s=mO(e.t0,"Initialization of query '".concat(R_(n.query),"' failed")),e.abrupt("return",void n.onError(s));case 13:r.queries.set(i,a),a.listeners.push(n),n.Ru(r.onlineState),a.Eu&&n.vu(a.Eu)&&AO(r);case 14:case"end":return e.stop()}}),e,null,[[3,9]])}))),EO.apply(this,arguments)}function CO(e,t){return SO.apply(this,arguments)}function SO(){return SO=qp(ti().mark((function e(t,n){var r,i,o,a,s;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=xk(t),i=n.query,o=!1,(a=r.queries.get(i))&&(s=a.listeners.indexOf(n))>=0&&(a.listeners.splice(s,1),o=0===a.listeners.length),!o){e.next=6;break}return e.abrupt("return",(r.queries.delete(i),r.onUnlisten(i)));case 6:case"end":return e.stop()}}),e)}))),SO.apply(this,arguments)}function OO(e,t){var n,r=xk(e),i=!1,o=Zr(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a.query,u=r.queries.get(s);if(u){var l,c=Zr(u.listeners);try{for(c.s();!(l=c.n()).done;){l.value.vu(a)&&(i=!0)}}catch(f){c.e(f)}finally{c.f()}u.Eu=a}}}catch(f){o.e(f)}finally{o.f()}i&&AO(r)}function TO(e,t,n){var r=xk(e),i=r.queries.get(t);if(i){var o,a=Zr(i.listeners);try{for(a.s();!(o=a.n()).done;){o.value.onError(n)}}catch(s){a.e(s)}finally{a.f()}}r.queries.delete(t)}function AO(e){e.Au.forEach((function(e){e.next()}))}var IO=function(){function e(t,n,r){Lr(this,e),this.query=t,this.bu=n,this.Pu=!1,this.Vu=null,this.onlineState="Unknown",this.options=r||{}}return Br(e,[{key:"vu",value:function(e){if(!this.options.includeMetadataChanges){var t,n=[],r=Zr(e.docChanges);try{for(r.s();!(t=r.n()).done;){var i=t.value;3!==i.type&&n.push(i)}}catch(a){r.e(a)}finally{r.f()}e=new wO(e.query,e.docs,e.oldDocs,n,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}var o=!1;return this.Pu?this.Su(e)&&(this.bu.next(e),o=!0):this.Du(e,this.onlineState)&&(this.Cu(e),o=!0),this.Vu=e,o}},{key:"onError",value:function(e){this.bu.error(e)}},{key:"Ru",value:function(e){this.onlineState=e;var t=!1;return this.Vu&&!this.Pu&&this.Du(this.Vu,e)&&(this.Cu(this.Vu),t=!0),t}},{key:"Du",value:function(e,t){if(!e.fromCache)return!0;var n="Offline"!==t;return(!this.options.xu||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}},{key:"Su",value:function(e){if(e.docChanges.length>0)return!0;var t=this.Vu&&this.Vu.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}},{key:"Cu",value:function(e){e=wO.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Pu=!0,this.bu.next(e)}}]),e}();var NO=Br((function e(t){Lr(this,e),this.key=t})),PO=Br((function e(t){Lr(this,e),this.key=t})),jO=function(){function e(t,n){Lr(this,e),this.query=t,this.Lu=n,this.qu=null,this.hasCachedResults=!1,this.current=!1,this.Uu=Q_(),this.mutatedKeys=Q_(),this.Ku=D_(t),this.Gu=new gO(this.Ku)}return Br(e,[{key:"Qu",get:function(){return this.Lu}},{key:"zu",value:function(e,t){var n=this,r=t?t.ju:new bO,i=t?t.Gu:this.Gu,o=t?t.mutatedKeys:this.mutatedKeys,a=i,s=!1,u="F"===this.query.limitType&&i.size===this.query.limit?i.last(
2):null,l="L"===this.query.limitType&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((function(e,t){var c=i.get(e),f=L_(n.query,t)?t:null,h=!!c&&n.mutatedKeys.has(c.key),d=!!f&&(f.hasLocalMutations||n.mutatedKeys.has(f.key)&&f.hasCommittedMutations),p=!1;c&&f?c.data.isEqual(f.data)?h!==d&&(r.track({type:3,doc:f}),p=!0):n.Wu(c,f)||(r.track({type:2,doc:f}),p=!0,(u&&n.Ku(f,u)>0||l&&n.Ku(f,l)<0)&&(s=!0)):!c&&f?(r.track({type:0,doc:f}),p=!0):c&&!f&&(r.track({type:1,doc:c}),p=!0,(u||l)&&(s=!0)),p&&(f?(a=a.add(f),o=d?o.add(e):o.delete(e)):(a=a.delete(e),o=o.delete(e)))})),null!==this.query.limit)for(;a.size>this.query.limit;){var c="F"===this.query.limitType?a.last():a.first();a=a.delete(c.key),o=o.delete(c.key),r.track({type:1,doc:c})}return{Gu:a,ju:r,Mi:s,mutatedKeys:o}}},{key:"Wu",value:function(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}},{key:"applyChanges",value:function(e,t,n){var r=this,i=this.Gu;this.Gu=e.Gu,this.mutatedKeys=e.mutatedKeys;var o=e.ju.Tu();o.sort((function(e,t){return function(e,t){var n=function(e){switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return wk()}};return n(e)-n(t)}(e.type,t.type)||r.Ku(e.doc,t.doc)})),this.Hu(n);var a=t?this.Ju():[],s=0===this.Uu.size&&this.current?1:0,u=s!==this.qu;return this.qu=s,0!==o.length||u?{snapshot:new wO(this.query,e.Gu,i,o,e.mutatedKeys,0===s,u,!1,!!n&&n.resumeToken.approximateByteSize()>0),Yu:a}:{Yu:a}}},{key:"Ru",value:function(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Gu:this.Gu,ju:new bO,mutatedKeys:this.mutatedKeys,Mi:!1},!1)):{Yu:[]}}},{key:"Zu",value:function(e){return!this.Lu.has(e)&&!!this.Gu.has(e)&&!this.Gu.get(e).hasLocalMutations}},{key:"Hu",value:function(e){var t=this;e&&(e.addedDocuments.forEach((function(e){return t.Lu=t.Lu.add(e)})),e.modifiedDocuments.forEach((function(e){})),e.removedDocuments.forEach((function(e){return t.Lu=t.Lu.delete(e)})),this.current=e.current)}},{key:"Ju",value:function(){var e=this;if(!this.current)return[];var t=this.Uu;this.Uu=Q_(),this.Gu.forEach((function(t){e.Zu(t.key)&&(e.Uu=e.Uu.add(t.key))}));var n=[];return t.forEach((function(t){e.Uu.has(t)||n.push(new PO(t))})),this.Uu.forEach((function(e){t.has(e)||n.push(new NO(e))})),n}},{key:"Xu",value:function(e){this.Lu=e.Wi,this.Uu=Q_();var t=this.zu(e.documents);return this.applyChanges(t,!0)}},{key:"tc",value:function(){return wO.fromInitialDocuments(this.query,this.Gu,this.mutatedKeys,0===this.qu,this.hasCachedResults)}}]),e}(),RO=Br((function e(t,n,r){Lr(this,e),this.query=t,this.targetId=n,this.view=r})),LO=Br((function e(t){Lr(this,e),this.key=t,this.ec=!1})),MO=function(){function e(t,n,r,i,o,a){Lr(this,e),this.localStore=t,this.remoteStore=n,this.eventManager=r,this.sharedClientState=i,this.currentUser=o,this.maxConcurrentLimboResolutions=a,this.nc={},this.sc=new B_((function(e){return j_(e)}),P_),this.ic=new Map,this.rc=new Set,this.oc=new hx(Hk.comparator),this.uc=new Map,this.cc=new BC,this.ac={},this.hc=new Map,this.lc=jC.bn(),this.onlineState="Unknown",this.fc=void 0}return Br(e,[{key:"isPrimaryClient",get:function(){return!0===this.fc}}]),e}();function DO(e,t){return FO.apply(this,arguments)}function FO(){return FO=qp(ti().mark((function e(t,n){var r,i,o,a,s,u;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=hT(t),!(a=r.sc.get(n))){e.next=6;break}
2i=a.targetId,r.sharedClientState.addLocalQueryTarget(i),o=a.view.tc(),e.next=15;break;case 6:return e.next=8,oS(r.localStore,A_(n));case 8:return s=e.sent,r.isPrimaryClient&&jS(r.remoteStore,s),u=r.sharedClientState.addLocalQueryTarget(s.targetId),i=s.targetId,e.next=14,BO(r,n,i,"current"===u,s.resumeToken);case 14:o=e.sent;case 15:return e.abrupt("return",o);case 16:case"end":return e.stop()}}),e)}))),FO.apply(this,arguments)}function BO(e,t,n,r,i){return UO.apply(this,arguments)}function UO(){return UO=qp(ti().mark((function e(t,n,r,i,o){var a,s,u,l,c,f;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.dc=function(e,n,r){return function(){var e=qp(ti().mark((function e(t,n,r,i){var o,a,s;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.view.zu(r),e.t0=o.Mi,!e.t0){e.next=6;break}return e.next=5,uS(t.localStore,n.query,!1).then((function(e){var t=e.documents;return n.view.zu(t,o)}));case 5:o=e.sent;case 6:return a=i&&i.targetChanges.get(n.targetId),s=n.view.applyChanges(o,t.isPrimaryClient,a),e.abrupt("return",(iT(t,n.targetId,s.Yu),s.snapshot));case 8:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}()(t,e,n,r)},e.next=3,uS(t.localStore,n,!0);case 3:return a=e.sent,s=new jO(n,a.Wi),u=s.zu(a.documents),l=qE.createSynthesizedTargetChangeForCurrentChange(r,i&&"Offline"!==t.onlineState,o),c=s.applyChanges(u,t.isPrimaryClient,l),iT(t,r,c.Yu),f=new RO(n,r,s),e.abrupt("return",(t.sc.set(n,f),t.ic.has(r)?t.ic.get(r).push(n):t.ic.set(r,[n]),c.snapshot));case 11:case"end":return e.stop()}}),e)}))),UO.apply(this,arguments)}function VO(e,t){return qO.apply(this,arguments)}function qO(){return qO=qp(ti().mark((function e(t,n){var r,i,o;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=xk(t),i=r.sc.get(n),!((o=r.ic.get(i.targetId)).length>1)){e.next=3;break}return e.abrupt("return",(r.ic.set(i.targetId,o.filter((function(e){return!P_(e,n)}))),void r.sc.delete(n)));case 3:if(!r.isPrimaryClient){e.next=11;break}if(r.sharedClientState.removeLocalQueryTarget(i.targetId),e.t0=r.sharedClientState.isActiveQueryTarget(i.targetId),e.t0){e.next=9;break}return e.next=9,aS(r.localStore,i.targetId,!1).then((function(){r.sharedClientState.clearQueryState(i.targetId),RS(r.remoteStore,i.targetId),nT(r,i.targetId)})).catch(Zk);case 9:e.next=14;break;case 11:return nT(r,i.targetId),e.next=14,aS(r.localStore,i.targetId,!0);case 14:case"end":return e.stop()}}),e)}))),qO.apply(this,arguments)}function zO(e,t,n){return HO.apply(this,arguments)}function HO(){return HO=qp(ti().mark((function e(t,n,r){var i,o,a;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=dT(t),e.prev=1,e.next=4,function(e,t){var n,r,i=xk(e),o=Fk.now(),a=t.reduce((function(e,t){return e.add(t.key)}),Q_());return i.persistence.runTransaction("Locally write mutations","readwrite",(function(e){var s=V_(),u=Q_();return i.Ki.getEntries(e,a).next((function(e){(s=e).forEach((function(e,t){t.isValidDocument()||(u=u.add(e))}))})).next((function(){return i.localDocuments.getOverlayedDocuments(e,s)})).next((function(r){n=r;var a,s=[],u=Zr(t);try{for(u.s();!(a=u.n()).done;){var l=a.value,c=xE(l,n.get(l.key).overlayedDocument);null!=c&&s.push(new CE(l.key,c,Kx(c.value.mapValue),yE.exists(!0)))}}catch(f){u.e(f)}finally{u.f()}
2return i.mutationQueue.addMutationBatch(e,o,s,t)})).next((function(t){r=t;var o=t.applyToLocalDocumentSet(n,u);return i.documentOverlayCache.saveOverlays(e,t.batchId,o)}))})).then((function(){return{batchId:r.batchId,changes:H_(n)}}))}(i.localStore,n);case 4:return o=e.sent,i.sharedClientState.addPendingMutation(o.batchId),function(e,t,n){var r=e.ac[e.currentUser.toKey()];r||(r=new hx(Mk)),r=r.insert(t,n),e.ac[e.currentUser.toKey()]=r}(i,o.batchId,r),e.next=9,sT(i,o.changes);case 9:return e.next=11,QS(i.remoteStore);case 11:e.next=17;break;case 13:e.prev=13,e.t0=e.catch(1),a=mO(e.t0,"Failed to persist write"),r.reject(a);case 17:case"end":return e.stop()}}),e,null,[[1,13]])}))),HO.apply(this,arguments)}function WO(e,t){return KO.apply(this,arguments)}function KO(){return KO=qp(ti().mark((function e(t,n){var r,i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=xk(t),e.prev=1,e.next=4,nS(r.localStore,n);case 4:return i=e.sent,n.targetChanges.forEach((function(e,t){var n=r.uc.get(t);n&&(kk(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?n.ec=!0:e.modifiedDocuments.size>0?kk(n.ec):e.removedDocuments.size>0&&(kk(n.ec),n.ec=!1))})),e.next=8,sT(r,i,n);case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(1),e.next=14,Zk(e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,10]])}))),KO.apply(this,arguments)}function GO(e,t,n){var r=xk(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.sc.forEach((function(e,n){var r=n.view.Ru(t);r.snapshot&&i.push(r.snapshot)})),function(e,t){var n=xk(e);n.onlineState=t;var r=!1;n.queries.forEach((function(e,n){var i,o=Zr(n.listeners);try{for(o.s();!(i=o.n()).done;){i.value.Ru(t)&&(r=!0)}}catch(a){o.e(a)}finally{o.f()}})),r&&AO(n)}(r.eventManager,t),i.length&&r.nc.zo(i),r.onlineState=t,r.isPrimaryClient&&r.sharedCl
2ientState.setOnlineState(t)}}function $O(e,t,n){return YO.apply(this,arguments)}function YO(){return YO=qp(ti().mark((function e(t,n,r){var i,o,a,s,u,l;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=xk(t)).sharedClientState.updateQueryState(n,"rejected",r),o=i.uc.get(n),!(a=o&&o.key)){e.next=14;break}return s=(s=new hx(Hk.comparator)).insert(a,Gx.newNoDocument(a,Bk.min())),u=Q_().add(a),l=new VE(Bk.min(),new Map,new vx(Mk),s,u),e.next=9,WO(i,l);case 9:i.oc=i.oc.remove(a),i.uc.delete(n),aT(i),e.next=16;break;case 14:return e.next=16,aS(i.localStore,n,!1).then((function(){return nT(i,n,r)})).catch(Zk);case 16:case"end":return e.stop()}}),e)}))),YO.apply(this,arguments)}function QO(e,t){return XO.apply(this,arguments)}function XO(){return XO=qp(ti().mark((function e(t,n){var r,i,o;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=xk(t),i=n.batch.batchId,e.prev=1,e.next=4,eS(r.localStore,n);case 4:return o=e.sent,tT(r,i,null),eT(r,i),r.sharedClientState.updateMutationState(i,"acknowledged"),e.next=10,sT(r,o);case 10:e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(1),e.next=16,Zk(e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,12]])}))),XO.apply(this,arguments)}function ZO(e,t,n){return JO.apply(this,arguments)}function JO(){return JO=qp(ti().mark((function e(t,n,r){var i,o;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=xk(t),e.prev=1,e.next=4,function(e,t){var n=xk(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",(function(e){var r;
2return n.mutationQueue.lookupMutationBatch(e,t).next((function(t){return kk(null!==t),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t)})).next((function(){return n.mutationQueue.performConsistencyCheck(e)})).next((function(){return n.documentOverlayCache.removeOverlaysForBatchId(e,r,t)})).next((function(){return n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r)})).next((function(){return n.localDocuments.getDocuments(e,r)}))}))}(i.localStore,n);case 4:return o=e.sent,tT(i,n,r),eT(i,n),i.sharedClientState.updateMutationState(n,"rejected",r),e.next=10,sT(i,o);case 10:e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(1),e.next=16,Zk(e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,12]])}))),JO.apply(this,arguments)}function eT(e,t){(e.hc.get(t)||[]).forEach((function(e){e.resolve()})),e.hc.delete(t)}function tT(e,t,n){var r=xk(e),i=r.ac[r.currentUser.toKey()];if(i){var o=i.get(t);o&&(n?o.reject(n):o.resolve(),i=i.remove(t)),r.ac[r.currentUser.toKey()]=i}}function nT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.sharedClientState.removeLocalQueryTarget(t);var r,i=Zr(e.ic.get(t));try{for(i.s();!(r=i.n()).done;){var o=r.value;e.sc.delete(o),n&&e.nc.wc(o,n)}}catch(a){i.e(a)}finally{i.f()}e.ic.delete(t),e.isPrimaryClient&&e.cc.hs(t).forEach((function(t){e.cc.containsKey(t)||rT(e,t)}))}function rT(e,t){e.rc.delete(t.path.canonicalString());var n=e.oc.get(t);null!==n&&(RS(e.remoteStore,n),e.oc=e.oc.remove(t),e.uc.delete(n),aT(e))}function iT(e,t,n){var r,i=Zr(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;o instanceof NO?(e.cc.addReference(o.key,t),oT(e,o)):o instanceof PO?(yk("SyncEngine","Document no longer in limbo: "+o.key),e.cc.removeReference(o.key,t),e.cc.containsKey(o.key)||rT(e,o.key)):wk()}}catch(a){i.e(a)}finally{i.f()}}function oT(e,t){var n=t.key,r=n.path.canonicalString();e.oc.get(n)||e.rc.has(r)||(yk("SyncEngine","New document in limbo: "+n),e.rc.add(r),aT(e))}function aT(e){for(;e.rc.size>0&&e.oc.size<e.maxConcurrentLimboResolutions;){var t=e.rc.values().next().value;e.rc.delete(t);var n=new Hk(Vk.fromString(t)),r=e.lc.next();e.uc.set(r,new LO(n)),e.oc=e.oc.insert(n,r),jS(e.remoteStore,new SC(A_(__(n.path)),r,2,nx.ct))}}function sT(e,t,n){return uT.apply(this,arguments)}function uT(){return uT=qp(ti().mark((function e(t,n,r){var i,o,a,s;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=xk(t),o=[],a=[],s=[],e.t0=i.sc.isEmpty(),e.t0){e.next=9;break}return i.sc.forEach((function(e,t){s.push(i.dc(t,n,r).then((function(e){if((e||r)&&i.isPrimaryClient&&i.sharedClientState.updateQueryState(t.targetId,(null==e?void 0:e.fromCache)?"not-current":"current"),e){o.push(e);var n=$C.Di(t.targetId,e);a.push(n)}})))})),e.next=6,Promise.all(s);case 6:return i.nc.zo(o),e.next=9,function(){var e=qp(ti().mark((function e(t,n){var r,i,o,a,s,u,l,c;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=xk(t),e.prev=1,e.next=4,r.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return ex.forEach(n,(function(t){return ex.forEach(t.Vi,(function(n){return r.persistence.referenceDelegate.addReference(e,t.targetId,n)})).next((function(){return ex.forEach(t.Si,(function(n){return r.persistence.referenceDelegate.removeReference(e,t.targetId,n)}))}))}))}));case 4:e.next=11;break;case 6:if(e.prev=6,e.t0=e.catch(1),tx(e.t0)){e.next=10;break}throw e.t0;case 10:yk("LocalStore","Failed to update sequence numbers: "+e.t0);case 11:i=Zr(n);try{for(i.s();!(o=i.n()).done;)a=o.value,s=a.targetId,a.fromCache||(u=r.Li.get(s),l=u.snapshotVersion,c=u.withLastLimboFreeSnapshotVersion(l),r.Li=r.Li.insert(s,c))}catch(f){i.e(f)}finally{i.f()}case 13:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n){return e.apply(this,arguments)}}()(i.localStore,a);case 9:case"end":return e.stop()}}),e)}))),uT.apply(this,arguments)}function lT(e,t){return cT.apply(this,arguments)}function cT(){return cT=qp(ti().mark((function e(t,n){var r,i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=xk(t)).currentUser.isEqual(n)){e.next=11;break}
2return yk("SyncEngine","User change. New user:",n.toKey()),e.next=5,ZC(r.localStore,n);case 5:return i=e.sent,r.currentUser=n,function(e,t){e.hc.forEach((function(e){e.forEach((function(e){e.reject(new Ek(_k.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))}))})),e.hc.clear()}(r),r.sharedClientState.handleUserChange(n,i.removedBatchIds,i.addedBatchIds),e.next=11,sT(r,i.Qi);case 11:case"end":return e.stop()}}),e)}))),cT.apply(this,arguments)}function fT(e,t){var n=xk(e),r=n.uc.get(t);if(r&&r.ec)return Q_().add(r.key);var i=Q_(),o=n.ic.get(t);if(!o)return i;var a,s=Zr(o);try{for(s.s();!(a=s.n()).done;){var u=a.value,l=n.sc.get(u);i=i.unionWith(l.view.Qu)}}catch(c){s.e(c)}finally{s.f()}return i}function hT(e){var t=xk(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=WO.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=fT.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=$O.bind(null,t),t.nc.zo=OO.bind(null,t.eventManager),t.nc.wc=TO.bind(null,t.eventManager),t}function dT(e){var t=xk(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=QO.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=ZO.bind(null,t),t}var pT=function(){function e(){Lr(this,e),this.synchronizeTabs=!1}return Br(e,[{key:"initialize",value:function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.serializer=kS(t.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(t),this.persistence=this.createPersistence(t),e.next=5,this.persistence.start();case 5:this.localStore=this.createLocalStore(t),this.gcScheduler=this.createGarbageCollectionScheduler(t,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(t,this.localStore);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createGarbageCollectionScheduler",value:function(e,t){return null}},{key:"createIndexBackfillerScheduler",value:function(e,t){return null}},{key:"createLocalStore",value:function(e){return XC(this.persistence,new YC,e.initialUser,this.serializer)}},{key:"createPersistence",value:function(e){return new WC(GC.Fs,this.serializer)}},{key:"createSharedClientState",value:function(e){return new fS}},{key:"terminate",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.gcScheduler&&this.gcScheduler.stop(),e.next=3,this.sharedClientState.shutdown();case 3:return e.next=5,this.persistence.shutdown();case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),vT=function(){function e(){Lr(this,e)}return Br(e,[{key:"initialize",value:function(){var e=qp(ti().mark((function e(t,n){var r=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.localStore,e.t0){e.next=12;break}return this.localStore=t.localStore,this.sharedClientState=t.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(e){return GO(r.syncEngine,e,1)},this.remoteStore.remoteSyncer.handleCredentialChange=lT.bind(null,this.syncEngine),e.next=12,hO(this.remoteStore,this.syncEngine.isPrimaryClient);case 12:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"createEventManager",value:function(e){return new xO}},{key:"createDatastore",value:function(e){var t,n=kS(e.databaseInfo.databaseId),r=(t=e.databaseInfo,new bS(t));return function(e,t,n,r){return new SS(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,r,n)}},{key:"createRemoteStore",value:function(e){var t,n,r,i,o,a=this;return t=this.localStore,n=this.datastore,r=e.asyncQueue,i=function(e){return GO(a.syncEngine,e,0)},o=dS.D()?new dS:new hS,new TS(t,n,r,i,o)}},{key:"createSyncEngine",value:function(e,t){return function(e,t,n,r,i,o,a){var s=new MO(e,t,n,r,i,o);return a&&(s.fc=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedCl
2ientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}},{key:"terminate",value:function(){return function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=xk(t),yk("RemoteStore","RemoteStore shutting down."),n.du.add(5),e.next=5,NS(n);case 5:n._u.shutdown(),n.mu.set("Unknown");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()(this.remoteStore)}}]),e}();var yT=function(){function e(t){Lr(this,e),this.observer=t,this.muted=!1}return Br(e,[{key:"next",value:function(e){this.observer.next&&this.gc(this.observer.next,e)}},{key:"error",value:function(e){this.observer.error?this.gc(this.observer.error,e):mk("Uncaught Error in snapshot listener:",e.toString())}},{key:"yc",value:function(){this.muted=!0}},{key:"gc",value:function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)}}]),e}(),mT=function(){function e(t,n,r,i){var o=this;Lr(this,e),this.authCredentials=t,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=i,this.user=hk.UNAUTHENTICATED,this.clientId=Lk.A(),this.authCredentialListener=function(){return Promise.resolve()},this.appCheckCredentialListener=function(){return Promise.resolve()},this.authCredentials.start(r,function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return yk("FirestoreClient","Received user=",t.uid),e.next=3,o.authCredentialListener(t);case 3:o.user=t;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.appCheckCredentials.start(r,(function(e){return yk("FirestoreClient","Received new app check token=",e),o.appCheckCredentialListener(e,o.user)}))}return Br(e,[{key:"getConfiguration",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100});case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setCredentialChangeListener",value:function(e){this.authCredentialListener=e}},{key:"setAppCheckTokenChangeListener",value:function(e){this.appCheckCredentialListener=e}},{key:"verifyNotTerminated",value:function(){if(this.asyncQueue.isShuttingDown)throw new Ek(_k.FAILED_PRECONDITION,"The client has already been terminated.")}},{key:"terminate",value:function(){var e=this;this.asyncQueue.enterRestrictedMode();var t=new Ck;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(qp(ti().mark((function n(){var r;return ti().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,n.t0=e._onlineComponents,!n.t0){n.next=5;break}return n.next=5,e._onlineComponents.terminate();case 5:if(n.t1=e._offlineComponents,!n.t1){n.next=9;break}return n.next=9,e._offlineComponents.terminate();case 9:e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve(),n.next=18;break;case 14:n.prev=14,n.t2=n.catch(0),r=mO(n.t2,"Failed to shutdown persistence"),t.reject(r);case 18:case"end":return n.stop()}}),n,null,[[0,14]])})))),t.promise}}]),e}();function gT(e,t){return bT.apply(this,arguments)}function bT(){return bT=qp(ti().mark((function e(t,n){var r,i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.asyncQueue.verifyOperationInProgress(),yk("FirestoreClient","Initializing OfflineComponentProvider"),e.next=3,t.getConfiguration();case 3:return r=e.sent,e.next=6,n.initialize(r);case 6:i=r.initialUser,t.setCredentialChangeListener(function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=i.isEqual(t),e.t0){e.next=5;break}return e.next=4,ZC(n.localStore,t);case 4:i=t;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener((function(){return t.terminate()})),t._offlineComponents=n;case 8:case"end":return e.stop()}}),e)}))),bT.apply(this,arguments)}function wT(e,t){return kT.apply(this,arguments)}function kT(){return kT=qp(ti().mark((function e(t,n){var r,i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.asyncQueue.verifyOperationInProgress(),e.next=3,_T(t);case 3:return r=e.sent,yk("FirestoreClient","Initializing OnlineComponentProvider"),e.next=7,t.getConfiguration();case 7:return i=e.sent,e.next=10,n.initialize(r,i);case 10:t.setCredentialChangeListener((function(e){return cO(n.remoteStore,e)})),t.setAppCheckTokenChangeListener((function(e,t){return cO(n.remoteStore,t)})),t._onlineComponents=n;case 13:case"end":return e.stop()}}),e)}))),kT.apply(this,arguments)}function xT(e){return"FirebaseError"===e.name?e.code===_k.FAILED_PRECONDITION||e.code===_k.UNIMPLEMENT
2ED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}function _T(e){return ET.apply(this,arguments)}function ET(){return ET=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t._offlineComponents){e.next=21;break}if(!t._uninitializedComponentsProvider){e.next=18;break}return yk("FirestoreClient","Using user provided OfflineComponentProvider"),e.prev=3,e.next=6,gT(t,t._uninitializedComponentsProvider._offline);case 6:e.next=16;break;case 8:if(e.prev=8,e.t0=e.catch(3),xT(n=e.t0)){e.next=13;break}throw n;case 13:return gk("Error using user provided cache. Falling back to memory cache: "+n),e.next=16,gT(t,new pT);case 16:e.next=21;break;case 18:return yk("FirestoreClient","Using default OfflineComponentProvider"),e.next=21,gT(t,new pT);case 21:return e.abrupt("return",t._offlineComponents);case 22:case"end":return e.stop()}}),e,null,[[3,8]])}))),ET.apply(this,arguments)}function CT(e){return ST.apply(this,arguments)}function ST(){return ST=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t._onlineComponents,e.t0){e.next=11;break}if(!t._uninitializedComponentsProvider){e.next=8;break}return yk("FirestoreClient","Using user provided OnlineComponentProvider"),e.next=6,wT(t,t._uninitializedComponentsProvider._online);case 6:e.next=11;break;case 8:return yk("FirestoreClient","Using default OnlineComponentProvider"),e.next=11,wT(t,new vT);case 11:return e.abrupt("return",t._onlineComponents);case 12:case"end":return e.stop()}}),e)}))),ST.apply(this,arguments)}function OT(e){return CT(e).then((function(e){return e.syncEngine}))}function TT(e){return AT.apply(this,arguments)}function AT(){return AT=qp(ti().mark((function e(t){var n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,CT(t);case 2:return n=e.sent,r=n.eventManager,e.abrupt("return",(r.onListen=DO.bind(null,n.syncEngine),r.onUnlisten=VO.bind(null,n.syncEngine),r));case 5:case"end":return e.stop()}}),e)}))),AT.apply(this,arguments)}function IT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Ck;return e.asyncQueue.enqueueAndForget(qp(ti().mark((function i(){return ti().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.t0=function(e,t,n,r,i){var o=new yT({next:function(o){t.enqueueAndForget((function(){return CO(e,a)}));var s=o.docs.has(n);!s&&o.fromCache?i.reject(new Ek(_k.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&o.fromCache&&r&&"server"===r.source?i.reject(new Ek(_k.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(e){return i.reject(e)}}),a=new IO(__(n.path),o,{includeMetadataChanges:!0,xu:!0});return _O(e,a)},i.next=3,TT(e);case 3:return i.t1=i.sent,i.t2=e.asyncQueue,i.t3=t,i.t4=n,i.t5=r,i.abrupt("return",(0,i.t0)(i.t1,i.t2,i.t3,i.t4,i.t5));case 9:case"end":return i.stop()}}),i)})))),r.promise}function NT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Ck;return e.asyncQueue.enqueueAndForget(qp(ti().mark((function i(){return ti().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.t0=function(e,t,n,r,i){var o=new yT({next:function(n){t.enqueueAndForget((function(){return CO(e,a)})),n.fromCache&&"server"===r.source?i.reject(new Ek(_k.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(e){return i.reject(e)}}),a=new IO(n,o,{includeMetadataChanges:!0,xu:!0});return _O(e,a)},i.next=3,TT(e);case 3:return i.t1=i.sent,i.t2=e.asyncQueue,i.t3=t,i.t4=n,i.t5=r,i.abrupt("return",(0,i.t0)(i.t1,i.t2,i.t3,i.t4,i.t5));case 9:case"end":return i.stop()}}),i)})))),r.promise}var PT=new Map;function jT(e,t,n){if(!n)throw new Ek(_k.INVALID_ARGUMENT,"Function ".concat(e,"() cannot be called with an empty ").concat(t,"."))}function RT(e){if(!Hk.isDocumentKey(e))throw new Ek(_k.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(e," has ").concat(e.length,"."))}function LT(e){if(Hk.isDocumentKey(e))throw new Ek(_k.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(e," has ").concat(e.length,"."))}function MT(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e="".concat(e.substring(0,20),"...")),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){return e.constructor?e.constructor.name:null}(e);return t?"a custom ".concat(t," object"):"an object"}return"function"==typeof e?"a function":wk()}function DT(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new Ek(_k.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=MT(e);throw new Ek(_k.INVALID_ARGUMENT,"Expected type '".concat(t.name,"', but it was: ").concat(n))}return e}var FT=function(){function e(t){var n;if(Lr(this,e),void 0===t.host){if(void 0!==t.ssl)throw new Ek(_k.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(n=t.ssl)||void 0===n||n;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,this.cache=t.localCache,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new Ek(_k.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.useFetchStreams=!!t.useFetchStreams,function(e,t,n,r){if(!0===t&&!0===r)throw new Ek(_k.INVALID_ARGUMENT,"".concat(e," and ").concat(n," cannot be used together."))}("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return Br(e,[{key:"isEqual",value:function(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}]),e}(),BT=function(){function e(t,n,r,i){Lr(this,e),this._authCredentials=t,this._appCheckCredentials=n,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new FT({}),this._settingsFrozen=!1}return Br(e,[{key:"app",get:function(){if(!this._app)throw new Ek(_k.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}},{key:"_initialized",get:function(){return this._settingsFrozen}},{key:"_terminated",get:function(){return void 0!==this._terminateTask}},{key:"_setSettings",value:function(e){if(this._settingsFrozen)throw new Ek(_k.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new FT(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new Ok;switch(e.type){case"firstParty":return new Nk(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new Ek(_k.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
2d credential type")}}(e.credentials))}},{key:"_getSettings",value:function(){return this._settings}},{key:"_freezeSettings",value:function(){return this._settingsFrozen=!0,this._settings}},{key:"_delete",value:function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}},{key:"toJSON",value:function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}},{key:"_terminate",value:function(){return function(e){var t=PT.get(e);t&&(yk("ComponentProvider","Removing Datastore"),PT.delete(e),t.terminate())}(this),Promise.resolve()}}]),e}();function UT(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=(e=DT(e,BT))._getSettings();if("firestore.googleapis.com"!==o.host&&o.host!==t&&gk("Host has been set in both settings() and useEmulator(), emulator host will be used"),e._setSettings(Object.assign(Object.assign({},o),{host:"".concat(t,":").concat(n),ssl:!1})),i.mockUserToken){var a,s;if("string"==typeof i.mockUserToken)a=i.mockUserToken,s=hk.MOCK_USER;else{a=Dv(i.mockUserToken,null===(r=e._app)||void 0===r?void 0:r.options.projectId);var u=i.mockUserToken.sub||i.mockUserToken.user_id;if(!u)throw new Ek(_k.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");s=new hk(u)}e._authCredentials=new Tk(new Sk(a,s))}}var VT=function(){function e(t,n,r){Lr(this,e),this.converter=n,this._key=r,this.type="document",this.firestore=t}return Br(e,[{key:"_path",get:function(){return this._key.path}},{key:"id",get:function(){return this._key.path.lastSegment()}},{key:"path",get:function(){return this._key.path.canonicalString()}},{key:"parent",get:function(){return new zT(this.firestore,this.converter,this._key.path.popLast())}},{key:"withConverter",value:function(t){return new e(this.firestore,t,this._key)}}]),e}(),qT=function(){function e(t,n,r){Lr(this,e),this.converter=n,this._query=r,this.type="query",this.firestore=t}return Br(e,[{key:"withConverter",value:function(t){return new e(this.firestore,t,this._query)}}]),e}(),zT=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i){var o;return Lr(this,n),(o=t.call(this,e,r,__(i)))._path=i,o.type="collection",o}return Br(n,[{key:"id",get:function(){return this._query.path.lastSegment()}},{key:"path",get:function(){return this._query.path.canonicalString()}},{key:"parent",get:function(){var e=this._path.popLast();return e.isEmpty()?null:new VT(this.firestore,null,new Hk(e))}},{key:"withConverter",value:function(e){return new n(this.firestore,e,this._path)}}]),n}(qT);function HT(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=Xv(e),jT("collection","path",t),e instanceof BT){var o=Vk.fromString.apply(Vk,[t].concat(r));return LT(o),new zT(e,null,o)}if(!(e instanceof VT||e instanceof zT))throw new Ek(_k.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");var a=e._path.child(Vk.fromString.apply(Vk,[t].concat(r)));return LT(a),new zT(e.firestore,null,a)}function WT(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=Xv(e),1===arguments.length&&(t=Lk.A()),jT("doc","path",t),e instanceof BT){var o=Vk.fromString.apply(Vk,[t].concat(r));return RT(o),new VT(e,null,new Hk(o))}if(!(e instanceof VT||e instanceof zT))throw new Ek(_k.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");var a=e._path.child(Vk.fromString.apply(Vk,[t].concat(r)));return RT(a),new VT(e.firestore,e instanceof zT?e.converter:null,new Hk(a))}var KT=function(){function e(){var t=this;Lr(this,e),this.Nc=Promise.resolve(),this.kc=[],this.Oc=!1,this.$c=[],this.Mc=null,this.Fc=!1,this.Bc=!1,this.Lc=[],this.Co=new xS(this,"async_queue_retry"),this.qc=function(){var e=wS();e&&yk("AsyncQueue","Visibility state changed to "+e.visibilityState),t.Co.vo()};var n=wS();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.qc)}return Br(e,[{key:"isShuttingDown",get:function(){return this.Oc}},{key:"enqueueAndForget",value:function(e){this.enqueue(e)}},{key:"enqueueAndForgetEvenWhileRestricted",value:function(e){this.Uc(),this.Kc(e)}},{key:"enterRestrictedMode",value:function(e){if(!this.Oc){this.Oc=!0,this.Bc=e||!1;var t=wS();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.qc)}}},{key:"enqueue",value:function(e){var t=this;if(this.Uc(),this.Oc)return new Promise((function(){}));var n=new Ck;return this.Kc((function(){return t.Oc&&t.Bc?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)})).then((function(){return n.promise}))}},{key:"enqueueRetryable",value:function(e){var t=this;this.enqueueAndForget((function(){return t.kc.push(e),t.Gc()}))}},{key:"Gc",value:function(){var e=qp(ti().mark((function e(){var t=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===this.kc.length){e.next=14;break}return e.prev=1,e.next=4,this.kc[0]();case 4:this.kc.shift(),this.Co.reset(),e.next=13;break;case 8:if(e.prev=8,e.t0=e.catch(1),tx(e.t0)){e.next=12;break}throw e.t0;case 12:yk("AsyncQueue","Operation failed with retryable error: "+e.t0);case 13:this.kc.length>0&&this.Co.Ao((function(){return t.Gc()}));case 14:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"Kc",value:function(e){var t=this,n=this.Nc.then((function(){return t.Fc=!0,e().catch((function(e){t.Mc=e,t.Fc=!1;var n=function(e){var t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e);throw mk("INTERNAL UNHANDLED ERROR: ",n),e})).then((function(e){return t.Fc=!1,e}))}));return this.Nc=n,n}},{key:"enqueueAfterDelay",value:function(e,t,n){var r=this;this.Uc(),this.Lc.indexOf(e)>-1&&(t=0);var i=yO.createAndSchedule(this,e,t,n,(function(e){return r.Qc(e)}));return this.$c.push(i),i}},{key:"Uc",value:function(){this.Mc&&wk()}},{key:"verifyOperationInProgress",value:function(){}},{key:"zc",value:function(){var e=qp(ti().mark((function e(){var t;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.Nc,e.next=3,t;case 3:if(t!==this.Nc){e.next=0;break}case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"jc",value:function(e){var t,n=Zr(this.$c);try{for(n.s();!(t=n.n()).done;){if(t.value.timerId===e)return!0}}catch(r){n.e(r)}finally{n.f()}return!1}},{key:"Wc",value:function(e){var t=this;return this.zc().then((function(){t.$c.sort((function(e,t){return e.targetTimeMs-t.targetTimeMs}));var n,r=Zr(t.$c);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.skipDelay(),"all"!==e&&i.timerId===e)break}}catch(o){r.e(o)}finally{r.f()}return t.zc()}))}},{key:"Hc",value:function(e){this.Lc.push(e)}},{key:"Qc",value:function(e){var t=this.$c.indexOf(e);this.$c.splice(t,1)}}]),e}();var GT=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i,o){var a;return Lr(this,n),(a=t.call(this,e,r,i,o)).type="firestore",a._queue=new KT,a._persistenceKey=(null==o?void 0:o.name)||"[DEFAULT]",a}return Br(n,[{key:"_terminate",value:function(){return this._firestoreClient||YT(this),this._firestoreClient.terminate()}}]),n}(BT);function $T(e){return e._firestoreClient||YT(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function YT(e){var t,n,r,i=e._freezeSettings(),o=function(e,t,n,r){return new Ox(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,i);e._firestoreClient=new mT(e._authCredentials,e._appCheckCredentials,e._queue,o),(null===(n=i.cache)||void 0===n?void 0:n._offlineComponentProvider)&&(null===(r=i.cache)||void 0===r?void 0:r._onlineComponentProvider)&&(e._firestoreClient._uninitializedComponentsProvider={_offlineKind:i.cache.kind,_offline:i.cache._offlineComponentProvider,_online:i.cache._onlineComponentProvider})}var QT=function(){function e(t){Lr(this,e),this._byteString=t}return Br(e,[{key:"toBase64",value:function(){return this._byteString.toBase64()}},{key:"toUint8Array",value:function(){return this._byteString.toUint8Array()}},{key:"toString",value:function(){return"Bytes(base64: "+this.toBase64()+")"}},{key:"isEqual",value:function(e){return this._byteString.isEqual(e._byteString)}}],[{key:"fromBase64String",value:function(t){try{return new e(bx.fromBase64String(t))}catch(t){throw new Ek(_k.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}},{key:"fromUint8Array",value:function(t){return new e(bx.fromUint8Array(t))}}]),e}(),XT=function(){function e(){Lr(this,e);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0;i<n.length;++i)if(0===n[i].length)throw new Ek(_k.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new zk(n)}return Br(e,[{key:"isEqual",value:function(e){return this._internalPath.isEqual(e._internalPath)}}]),e}();var ZT=Br((function e(t){Lr(this,e),this._methodName=t})),JT=function(){function e(t,n){if(Lr(this,e),!isFinite(t)||t<-90||t>90)throw new Ek(_k.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(n)||n<-180||n>180)throw new Ek(_k.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=t,this._long=n}return Br(e,[{key:"latitude",get:function(){return this._lat}},{key:"longitude",get:function(){return this._long}},{key:"isEqual",value:function(e){return this._lat===e._lat&&this._long===e._long}},{key:"toJSON",value:function(){return{latitude:this._lat,longitude:this._long}}},{key:"_compareTo",value:function(e){return Mk(this._lat,e._lat)||Mk(this._long,e._long)}}]),e}(),eA=/^__.*__$/,tA=function(){function e(t,n,r){Lr(this,e),this.data=t,this.fieldMask=n,this.fieldTransforms=r}return Br(e,[{key:"toMutation",value:function(e,t){return null!==this.fieldMask?new CE(e,this.data,this.fieldMask,t,this.fieldTransforms):new EE(e,this.data,t,this.fieldTransforms)}}]),e}(),nA=function(){function e(t,n,r){Lr(this,e),this.data=t,this.fieldMask=n,this.fieldTransforms=r}return Br(e,[{key:"toMutation",value:function(e,t){return new CE(e,this.data,this.fieldMask,t,this.fieldTransforms)}}]),e}();function rA(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw wk()}}var iA=function(){function e(t,n,r,i,o,a){Lr(this,e),this.settings=t,this.databaseId=n,this.serializer
2=r,this.ignoreUndefinedProperties=i,void 0===o&&this.Jc(),this.fieldTransforms=o||[],this.fieldMask=a||[]}return Br(e,[{key:"path",get:function(){return this.settings.path}},{key:"Yc",get:function(){return this.settings.Yc}},{key:"Zc",value:function(t){return new e(Object.assign(Object.assign({},this.settings),t),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}},{key:"Xc",value:function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Zc({path:n,ta:!1});return r.ea(e),r}},{key:"na",value:function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Zc({path:n,ta:!1});return r.Jc(),r}},{key:"sa",value:function(e){return this.Zc({path:void 0,ta:!0})}},{key:"ia",value:function(e){return wA(e,this.settings.methodName,this.settings.ra||!1,this.path,this.settings.oa)}},{key:"contains",value:function(e){return void 0!==this.fieldMask.find((function(t){return e.isPrefixOf(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.isPrefixOf(t.field)}))}},{key:"Jc",value:function(){if(this.path)for(var e=0;e<this.path.length;e++)this.ea(this.path.get(e))}},{key:"ea",value:function(e){if(0===e.length)throw this.ia("Document fields must not be empty");if(rA(this.Yc)&&eA.test(e))throw this.ia('Document fields cannot begin and end with "__"')}}]),e}(),oA=function(){function e(t,n,r){Lr(this,e),this.databaseId=t,this.ignoreUndefinedProperties=n,this.serializer=r||kS(t)}return Br(e,[{key:"ua",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new iA({Yc:e,methodName:t,oa:n,path:zk.emptyPath(),ta:!1,ra:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}]),e}();function aA(e){var t=e._freezeSettings(),n=kS(e._databaseId);return new oA(e._databaseId,!!t.ignoreUndefinedProperties,n)}function sA(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=e.ua(o.merge||o.mergeFields?2:0,t,n,i);yA("Data must be an object, but it was:",a,r);var s,u,l=pA(r,a);if(o.merge)s=new mx(a.fieldMask),u=a.fieldTransforms;else if(o.mergeFields){var c,f=[],h=Zr(o.mergeFields);try{for(h.s();!(c=h.n()).done;){var d=c.value,p=mA(t,d,n);if(!a.contains(p))throw new Ek(_k.INVALID_ARGUMENT,"Field '".concat(p,"' is specified in your field mask but missing from your input data."));kA(f,p)||f.push(p)}}catch(v){h.e(v)}finally{h.f()}s=new mx(f),u=a.fieldTransforms.filter((function(e){return s.covers(e.field)}))}else s=null,u=a.fieldTransforms;return new tA(new Wx(l),s,u)}var uA=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}return Br(n,[{key:"_toFieldTransform",value:function(e){if(2!==e.Yc)throw 1===e.Yc?e.ia("".concat(this._methodName,"() can only appear at the top level of your update data")):e.ia("".concat(this._methodName,"() cannot be used with set() unless you pass {merge:true}"));return e.fieldMask.push(e.path),null}},{key:"isEqual",value:function(e){return e instanceof n}}]),n}(ZT);var lA=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}return Br(n,[{key:"_toFieldTransform",value:function(e){return new pE(e.path,new aE)}},{key:"isEqual",value:function(e){return e instanceof n}}]),n}(ZT);function cA(e,t,n,r){var i=e.ua(1,t,n);yA("Data must be an object, but it was:",i,r);var o=[],a=Wx.empty();cx(r,(function(e,r){var s=bA(t,e,n);r=Xv(r);var u=i.na(s);if(r instanceof uA)o.push(s);else{var l=dA(r,u);null!=l&&(o.push(s),a.set(s,l))}}));var s=new mx(o);return new nA(a,s,i.fieldTransforms)}function fA(e,t,n,r,i,o){var a=e.ua(1,t,n),s=[mA(t,r,n)],u=[i];if(o.length%2!=0)throw new Ek(_k.INVALID_ARGUMENT,"Function ".concat(t,"() needs to be called with an even number of arguments that alternate between field names and values."));for(var l=0;l<o.length;l+=2)s.push(mA(t,o[l])),u.push(o[l+1]);for(var c=[],f=Wx.empty(),h=s.length-1;h>=0;--h)if(!kA(c,s[h])){var d=s[h],p=u[h];p=Xv(p);var v=a.na(d);if(p instanceof uA)c.push(d);else{var y=dA(p,v);null!=y&&(c.push(d),f.set(d,y))}}var m=new mx(c);return new nA(f,m,a.fieldTransforms)}function hA(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return dA(n,e.ua(r?4:3,t))}function dA(e,t){if(vA(e=Xv(e)))return yA("Unsupported field value:",t,e),pA(e,t);if(e instanceof ZT)return function(e,t){if(!rA(t.Yc))throw t.ia("".concat(e._methodName,"() can only be used with update(
2) and set()"));if(!t.path)throw t.ia("".concat(e._methodName,"() is not currently supported inside arrays"));var n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.ta&&4!==t.Yc)throw t.ia("Nested arrays are not supported");return function(e,t){var n,r=[],i=0,o=Zr(e);try{for(o.s();!(n=o.n()).done;){var a=dA(n.value,t.sa(i));null==a&&(a={nullValue:"NULL_VALUE"}),r.push(a),i++}}catch(s){o.e(s)}finally{o.f()}return{arrayValue:{values:r}}}(e,t)}return function(e,t){if(null===(e=Xv(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return tE(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){var n=Fk.fromDate(e);return{timestampValue:eC(t.serializer,n)}}if(e instanceof Fk){var r=new Fk(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:eC(t.serializer,r)}}if(e instanceof JT)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof QT)return{bytesValue:tC(t.serializer,e._byteString)};if(e instanceof VT){var i=t.databaseId,o=e.firestore._databaseId;if(!o.isEqual(i))throw t.ia("Document reference is for database ".concat(o.projectId,"/").concat(o.database," but should be for database ").concat(i.projectId,"/").concat(i.database));return{referenceValue:iC(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.ia("Unsupported field value: ".concat(MT(e)))}(e,t)}function pA(e,t){var n={};return fx(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):cx(e,(function(e,r){var i=dA(r,t.Xc(e));null!=i&&(n[e]=i)})),{mapValue:{fields:n}}}function vA(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof Fk||e instanceof JT||e instanceof QT||e instanceof VT||e instanceof ZT)}function yA(e,t,n){if(!vA(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){var r=MT(n);throw"an object"===r?t.ia(e+" a custom object"):t.ia(e+" "+r)}}function mA(e,t,n){if((t=Xv(t))instanceof XT)return t._internalPath;if("string"==typeof t)return bA(e,t);throw wA("Field path arguments must be of type string or ",e,!1,void 0,n)}var gA=new RegExp("[~\\*/\\[\\]]");function bA(e,t,n){if(t.search(gA)>=0)throw wA("Invalid field path (".concat(t,"). Paths must not contain '~', '*', '/', '[', or ']'"),e,!1,void 0,n);try{return Qr(XT,Rr(t.split(".")))._internalPath}catch(r){throw wA("Invalid field path (".concat(t,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"),e,!1,void 0,n)}}function wA(e,t,n,r,i){var o=r&&!r.isEmpty(),a=void 0!==i,s="Function ".concat(t,"() called with invalid data");n&&(s+=" (via `toFirestore()`)"),s+=". ";var u="";return(o||a)&&(u+=" (found",o&&(u+=" in field ".concat(r)),a&&(u+=" in document ".concat(i)),u+=")"),new Ek(_k.INVALID_ARGUMENT,s+e+u)}function kA(e,t){return e.some((function(e){return e.isEqual(t)}))}var xA=function(){function e(t,n,r,i,o){Lr(this,e),this._firestore=t,this._userDataWriter=n,this._key=r,this._document=i,this._converter=o}return Br(e,[{key:"id",get:function(){return this._key.path.lastSegment()}},{key:"ref",get:function(){return new VT(this._firestore,this._converter,this._key)}},{key:"exists",value:function(){return null!==this._document}},{key:"data",value:function(){if(this._document){if(this._converter){var e=new _A(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}},{key:"get",value:function(e){if(this._document){var t=this._document.data.field(EA("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}]),e}(),_A=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}return Br(n,[{key:"data",value:function(){return Cv(qr(n.prototype),"data",this).call(this)}}]),n}(xA);function EA(e,t){return"string"==typeof t?bA(e,t):t instanceof XT?t._internalPath:t._delegate._internalPath}function CA(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new Ek(_k.UNIMPLEMENT
2ED,"limitToLast() queries require specifying at least one orderBy() clause")}var SA=Br((function e(){Lr(this,e)})),OA=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}return Br(n)}(SA);function TA(e,t){for(var n=[],r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];t instanceof SA&&n.push(t),function(e){var t=e.filter((function(e){return e instanceof IA})).length,n=e.filter((function(e){return e instanceof AA})).length;if(t>1||t>0&&n>0)throw new Ek(_k.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(n=n.concat(i));var a,s=Zr(n);try{for(s.s();!(a=s.n()).done;){var u=a.value;e=u._apply(e)}}catch(l){s.e(l)}finally{s.f()}return e}var AA=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i){var o;return Lr(this,n),(o=t.call(this))._field=e,o._op=r,o._value=i,o.type="where",o}return Br(n,[{key:"_apply",value:function(e){var t=this._parse(e);return LA(e._query,t),new qT(e.firestore,e.converter,I_(e._query,t))}},{key:"_parse",value:function(e){var t=aA(e.firestore),n=function(e,t,n,r,i,o,a){var s;if(i.isKeyField()){if("array-contains"===o||"array-contains-any"===o)throw new Ek(_k.INVALID_ARGUMENT,"Invalid Query. You can't perform '".concat(o,"' queries on documentId()."));if("in"===o||"not-in"===o){RA(a,o);var u,l=[],c=Zr(a);try{for(c.s();!(u=c.n()).done;){var f=u.value;l.push(jA(r,e,f))}}catch(h){c.e(h)}finally{c.f()}s={arrayValue:{values:l}}}else s=jA(r,e,a)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||RA(a,o),s=hA(n,"where",a,"in"===o||"not-in"===o);return e_.create(i,o,s)}(e._query,0,t,e.firestore._databaseId,this._field,this._op,this._value);return n}}],[{key:"_create",value:function(e,t,r){return new n(e,t,r)}}]),n}(OA);var IA=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;return Lr(this,n),(i=t.call(this)).type=e,i._queryConstraints=r,i}return Br(n,[{key:"_parse",value:function(e){var t=this._queryConstraints.map((function(t){return t._parse(e)})).filter((function(e){return e.getFilters().length>0}));return 1===t.length?t[0]:t_.create(t,this._getOperator())}},{key:"_apply",value:function(e){var t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){var n,r=e,i=Zr(t.getFlattenedFilters());try{for(i.s();!(n=i.n()).done;){var o=n.value;LA(r,o),r=I_(r,o)}}catch(a){i.e(a)}finally{i.f()}}(e._query,t),new qT(e.firestore,e.converter,I_(e._query,t)))}},{key:"_getQueryConstraints",value:function(){return this._queryConstraints}},{key:"_getOperator",value:function(){return"and"===this.type?"and":"or"}}],[{key:"_create",value:function(e,t){return new n(e,t)}}]),n}(SA);var NA=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i;return Lr(this,n),(i=t.call(this))._field=e,i._direction=r,i.type="orderBy",i}return Br(n,[{key:"_apply",value:function(e){var t=function(e,t,n){if(null!==e.startAt)throw new Ek(_k.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new Ek(_k.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new Xx(t,n);return function(e,t){if(null===C_(e)){var n=S_(e);null!==n&&MA(e,n,t.field)}}(e,r),r}(e._query,this._field,this._direction);return new qT(e.firestore,e.converter,function(e,t){var n=e.explicitOrderBy.concat([t]);return new k_(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}],[{key:"_create",value:function(e,t){return new n(e,t)}}]),n}(OA);function PA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",n=t,r=EA("orderBy",e);return NA._create(r,n)}function jA(e,t,n){if("string"==typeof(n=Xv(n))){if(""===n)throw new Ek(_k.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!O_(t)&&-1!==n.indexOf("/"))throw new Ek(_k.INVALID_ARGUMENT,"Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n,"' contains a '/' character."));var r=t.path.child(Vk.fromString(n));if(!Hk.isDocumentKey(r))throw new Ek(_k.INVALID_ARGUMENT,"Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '".concat(r,"' is not because it has an odd number of segments (").concat(r.length,")."));return Dx(e,new Hk(r))}if(n instanceof VT)return Dx(e,n._key);throw new Ek(_k.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ".concat(MT(n),"."))}function RA(e,t){if(!Array.isArray(e)||0===e.length)throw new Ek(_k.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '".concat(t.toString(),"' filters."))}function LA(e,t){if(t.isInequality()){var n=S_(e),r=t.field;if(null!==n&&!n.isEqual(r))throw new Ek(_k.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '".concat(n.toString(),"' and '").concat(r.toString(),"'"));var i=C_(e);null!==i&&MA(e,r,i)}var o=function(e,t){var n,r=Zr(e);try{for(r.s();!(n=r.n()).done;){var i,o=Zr(n.value.getFlattenedFilters());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(t.indexOf(a.op)>=0)return a.op}}catch(s){o.e(s)}finally{o.f()}}}catch(s){r.e(s)}finally{r.f()}return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==o)throw o===t.op?new Ek(_k.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '".concat(t.op.toString(),"' filter.")):new Ek(_k.INVALID_ARGUMENT,"Invalid query. You cannot use '".concat(t.op.toString(),"' filters with '").concat(o.toString(),"' filters."))}function MA(e,t,n){if(!n.isEqual(t))throw new Ek(_k.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '".concat(t.toString(),"' and so you must also use '").concat(t.toString(),"' as your first argument to orderBy(), but your first orderBy() is on field '").concat(n.toString(),"' instead."))}var DA=function(){function e(){Lr(this,e)}
2return Br(e,[{key:"convertValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(Ix(e)){case 0:return null;case 1:return e.booleanValue;case 2:return xx(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(_x(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw wk()}}},{key:"convertObject",value:function(e,t){var n=this,r={};return cx(e.fields,(function(e,i){r[e]=n.convertValue(i,t)})),r}},{key:"convertGeoPoint",value:function(e){return new JT(xx(e.latitude),xx(e.longitude))}},{key:"convertArray",value:function(e,t){var n=this;return(e.values||[]).map((function(e){return n.convertValue(e,t)}))}},{key:"convertServerTimestamp",value:function(e,t){switch(t){case"previous":var n=Cx(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Sx(e));default:return null}}},{key:"convertTimestamp",value:function(e){var t=kx(e);return new Fk(t.seconds,t.nanos)}},{key:"convertDocumentKey",value:function(e,t){var n=Vk.fromString(e);kk(CC(n));var r=new Tx(n.get(1),n.get(3)),i=new Hk(n.popFirst(5));return r.isEqual(t)||mk("Document ".concat(i," contains a document reference within a different database (").concat(r.projectId,"/").concat(r.database,") which is not supported. It will be treated as a reference in the current database (").concat(t.projectId,"/").concat(t.database,") instead.")),i}}]),e}();function FA(e,t,n){return e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t}var BA=function(){function e(t,n){Lr(this,e),this.hasPendingWrites=t,this.fromCache=n}return Br(e,[{key:"isEqual",value:function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}]),e}(),UA=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i,o,a,s){var u;return Lr(this,n),(u=t.call(this,e,r,i,o,s))._firestore=e,u._firestoreImpl=e,u.metadata=a,u}return Br(n,[{key:"exists",value:function(){return Cv(qr(n.prototype),"exists",this).call(this)}},{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._document){if(this._converter){var t=new VA(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._document){var n=this._document.data.field(EA("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}}]),n}(xA),VA=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}return Br(n,[{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Cv(qr(n.prototype),"data",this).call(this,e)}}]),n}(UA),qA=function(){function e(t,n,r,i){Lr(this,e),this._firestore=t,this._userDataWriter=n,this._snapshot=i,this.metadata=new BA(i.hasPendingWrites,i.fromCache),this.query=r}return Br(e,[{key:"docs",get:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e}},{key:"size",get:function(){return this._snapshot.docs.size}},{key:"empty",get:function(){return 0===this.size}},{key:"forEach",value:function(e,t){var n=this;this._snapshot.docs.forEach((function(r){e.call(t,new VA(n._firestore,n._userDataWriter,r.key,r,new BA(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))}))}},{key:"docChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Ek(_k.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){var n=0;return e._snapshot.docChanges.map((function(t){var r=new VA(e._firestore,e._userDataWriter,t.doc.key,t.doc,new BA(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);return t.doc,{type:"added",doc:r,oldIndex:-1,newIndex:n++}}))}var r=e._snapshot.oldDocs;return e._snapshot.docChanges.filter((function(e){return t||3!==e.type})).map((function(t){var n=new VA(e._firestore,e._userDataWriter,t.doc.key,t.doc,new BA(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,o=-1;return 0!==t.type&&(i=r.indexOf(t.doc.key),r=r.delete(t.doc.key)),1!==t.type&&(o=(r=r.add(t.doc)).indexOf(t.doc.key)),{type:zA(t.type),doc:n,oldIndex:i,newIndex:o}}))}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}]),e}();function zA(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return wk()}}function HA(e){e=DT(e,VT);var t=DT(e.firestore,GT);return IT($T(t),e._key).then((function(n){return QA(t,e,n)}
2))}var WA=function(e){Vr(n,e);var t=Kr(n);function n(e){var r;return Lr(this,n),(r=t.call(this)).firestore=e,r}return Br(n,[{key:"convertBytes",value:function(e){return new QT(e)}},{key:"convertReference",value:function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return new VT(this.firestore,null,t)}}]),n}(DA);function KA(e){e=DT(e,qT);var t=DT(e.firestore,GT),n=$T(t),r=new WA(t);return CA(e._query),NT(n,e._query).then((function(n){return new qA(t,r,e,n)}))}function GA(e){return YA(DT(e.firestore,GT),[new NE(e._key,yE.none())])}function $A(e,t){var n=DT(e.firestore,GT),r=WT(e),i=FA(e.converter,t);return YA(n,[sA(aA(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,yE.exists(!1))]).then((function(){return r}))}function YA(e,t){return function(e,t){var n=new Ck;return e.asyncQueue.enqueueAndForget(qp(ti().mark((function r(){return ti().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=zO,r.next=3,OT(e);case 3:return r.t1=r.sent,r.t2=t,r.t3=n,r.abrupt("return",(0,r.t0)(r.t1,r.t2,r.t3));case 7:case"end":return r.stop()}}),r)})))),n.promise}($T(e),t)}function QA(e,t,n){var r=n.docs.get(t._key),i=new WA(e);return new UA(e,i,t._key,r,new BA(n.hasPendingWrites,n.fromCache),t.converter)}var XA=function(){function e(t,n){Lr(this,e),this._firestore=t,this._commitHandler=n,this._mutations=[],this._committed=!1,this._dataReader=aA(t)}return Br(e,[{key:"set",value:function(e,t,n){this._verifyNotCommitted();var r=ZA(e,this._firestore),i=FA(r.converter,t,n),o=sA(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,yE.none())),this}},{key:"update",value:function(e,t,n){this._verifyNotCommitted();for(var r,i=ZA(e,this._firestore),o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return r="string"==typeof(t=Xv(t))||t instanceof XT?fA(this._dataReader,"WriteBatch.update",i._key,t,n,a):cA(this._dataReader,"WriteBatch.update",i._key,t),this._mutations.push(r.toMutation(i._key,yE.exists(!0))),this}},{key:"delete",value:function(e){this._verifyNotCommitted();var t=ZA(e,this._firestore);return this._mutations=this._mutations.concat(new NE(t._key,yE.none())),this}},{key:"commit",value:function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}},{key:"_verifyNotCommitted",value:function(){if(this._committed)throw new Ek(_k.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}]),e}();function ZA(e,t){if((e=Xv(e)).firestore!==t)throw new Ek(_k.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}function JA(e){return $T(e=DT(e,GT)),new XA(e,(function(t){return YA(e,t)}))}!function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];dk="9.19.1",By(new Zv("firestore",(function(e,n){var r=n.instanceIdentifier,i=n.options,o=e.getProvider("app").getImmediate(),a=new GT(new Ak(e.getProvider("auth-internal")),new jk(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new Ek(_k.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Tx(e.options.projectId,t)}(o,r),o);return i=Object.assign({useFetchStreams:t},i),a._setSettings(i),a}),"PUBLIC").setMultipleInstances(!0)),Gy(fk,"3.10.0",e),Gy(fk,"3.10.0","esm2017")}();Gy("firebase","9.19.1","app");function eI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;var tI;Object.create;function nI(){return yo({},"dependent-sdk-initialized-before-auth","Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.")}var rI=nI,iI=new Vv("auth","Firebase",nI()),oI=new cy("@firebase/auth");function aI(e){if(oI.logLevel<=ry.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];
2oI.error.apply(oI,["Auth (".concat(Hy,"): ").concat(e)].concat(n))}}function sI(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw cI.apply(void 0,[e].concat(n))}function uI(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return cI.apply(void 0,[e].concat(n))}function lI(e,t,n){var r=Object.assign(Object.assign({},rI()),yo({},t,n));return new Vv("auth","Firebase",r).create(t,{appName:e.name})}function cI(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!==typeof e){var i,o=n[0],a=Rr(n.slice(1));return a[0]&&(a[0].appName=e.name),(i=e._errorFactory).create.apply(i,[o].concat(Rr(a)))}return iI.create.apply(iI,[e].concat(n))}function fI(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];throw cI.apply(void 0,[t].concat(r))}}function hI(e){var t="INTERNAL ASSERTION FAILED: "+e;throw aI(t),new Error(t)}function dI(e,t){e||hI(t)}var pI=new Map;function vI(e){dI(e instanceof Function,"Expected a class definition");var t=pI.get(e);return t?(dI(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,pI.set(e,t),t)}function yI(e,t){var n=Uy(e,"auth");if(n.isInitialized()){var r=n.getImmediate();if(Hv(n.getOptions(),null!==t&&void 0!==t?t:{}))return r;sI(r,"already-initialized")}return n.initialize({options:t})}function mI(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function gI(){return"http:"===bI()||"https:"===bI()}function bI(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}function wI(){return!("undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(gI()||function(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}()||"connection"in navigator))||navigator.onLine}var kI=function(){function e(t,n){Lr(this,e),this.shortDelay=t,this.longDelay=n,dI(n>t,"Short delay should be less than long delay!"),this.isMobile="undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Fv())||"object"===typeof navigator&&"ReactNative"===navigator.product}return Br(e,[{key:"get",value:function(){return wI()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}]),e}();function xI(e,t){dI(e.emulator,"Emulator should always be set here");var n=e.emulator.url;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}var _I=function(){function e(){Lr(this,e)}return Br(e,null,[{key:"initialize",value:function(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}},{key:"fetch",value:function(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:void hI("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"headers",value:function(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:void hI("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"response",value:function(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:void hI("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}]),e}(),EI=(yo(tI={},"CREDENTIAL_MISMATCH","custom-token-mismatch"),yo(tI,"MISSING_CUSTOM_TOKEN","internal-error"),yo(tI,"INVALID_IDENTIFIER","invalid-email"),yo(tI,"MISSING_CONTINUE_URI","internal-error"),yo(tI,"INVALID_PASSWORD","wrong-password"),yo(tI,"MISSING_PASSWORD","missing-password"),yo(tI,"EMAIL_EXISTS","email-already-in-use"),yo(tI,"PASSWORD_LOGIN_DISABLED","operation-not-allowed"),yo(tI,"INVALID_IDP_RESPONSE","invalid-credential"),yo(tI,"INVALID_PENDING_TOKEN","invalid-credential"),yo(tI,"FEDERATED_USER_ID_ALREADY_LINKED","credential-already-in-use"),yo(tI,"MISSING_REQ_TYPE","internal-error"),yo(tI,"EMAIL_NOT_FOUND","user-not-found"),yo(tI,"RESET_PASSWORD_EXCEED_LIMIT","too-many-requests"),yo(tI,"EXPIRED_OOB_CODE","expired-action-code"),yo(tI,"INVALID_OOB_CODE","invali
2d-action-code"),yo(tI,"MISSING_OOB_CODE","internal-error"),yo(tI,"CREDENTIAL_TOO_OLD_LOGIN_AGAIN","requires-recent-login"),yo(tI,"INVALID_ID_TOKEN","invalid-user-token"),yo(tI,"TOKEN_EXPIRED","user-token-expired"),yo(tI,"USER_NOT_FOUND","user-token-expired"),yo(tI,"TOO_MANY_ATTEMPTS_TRY_LATER","too-many-requests"),yo(tI,"INVALID_CODE","invalid-verification-code"),yo(tI,"INVALID_SESSION_INFO","invalid-verification-id"),yo(tI,"INVALID_TEMPORARY_PROOF","invalid-credential"),yo(tI,"MISSING_SESSION_INFO","missing-verification-id"),yo(tI,"SESSION_EXPIRED","code-expired"),yo(tI,"MISSING_ANDROID_PACKAGE_NAME","missing-android-pkg-name"),yo(tI,"UNAUTHORIZED_DOMAIN","unauthorized-continue-uri"),yo(tI,"INVALID_OAUTH_CLIENT_ID","invalid-oauth-client-id"),yo(tI,"ADMIN_ONLY_OPERATION","admin-restricted-operation"),yo(tI,"INVALID_MFA_PENDING_CREDENTIAL","invalid-multi-factor-session"),yo(tI,"MFA_ENROLLMENT_NOT_FOUND","multi-factor-info-not-found"),yo(tI,"MISSING_MFA_ENROLLMENT_ID","missing-multi-factor-info"),yo(tI,"MISSING_MFA_PENDING_CREDENTIAL","missing-multi-factor-session"),yo(tI,"SECOND_FACTOR_EXISTS","second-factor-already-in-use"),yo(tI,"SECOND_FACTOR_LIMIT_EXCEEDED","maximum-second-factor-count-exceeded"),yo(tI,"BLOCKING_FUNCTION_ERROR_RESPONSE","internal-error"),tI),CI=new kI(3e4,6e4);function SI(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}function OI(e,t,n,r){return TI.apply(this,arguments)}function TI(){return TI=qp(ti().mark((function e(t,n,r,i){var o,a=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>4&&void 0!==a[4]?a[4]:{},e.abrupt("return",AI(t,o,qp(ti().mark((function e(){var o,a,s,u;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},a={},i&&("GET"===n?a=i:o={body:JSON.stringify(i)}),s=Kv(Object.assign({key:t.config.apiKey},a)).slice(1),e.next=6,t._getAdditionalHeaders();case 6:return(u=e.sent)["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode),e.abrupt("return",_I.fetch()(jI(t,t.config.apiHost,r,s),Object.assign({method:n,headers:u,referrerPolicy:"no-referrer"},o)));case 10:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e)}))),TI.apply(this,arguments)}function AI(e,t,n){return II.apply(this,arguments)}function II(){return II=qp(ti().mark((function e(t,n,r){var i,o,a,s,u,l,c,f,h,d;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t._canInitEmulator=!1,i=Object.assign(Object.assign({},EI),n),e.prev=2,o=new RI(t),e.next=6,Promise.race([r(),o.promise]);case 6:return a=e.sent,o.clearNetworkTimeout(),e.next=10,a.json();case 10:if(!("needConfirmation"in(s=e.sent))){e.next=13;break}throw LI(t,"account-exists-with-different-credential",s);case 13:if(!a.ok||"errorMessage"in s){e.next=17;break}return e.abrupt("return",s);case 17:if(u=a.ok?s.errorMessage:s.error.message,l=u.split(" : "),c=Yr(l,2),f=c[0],h=c[1],"FEDERATED_USER_ID_ALREADY_LINKED"!==f){e.next=23;break}throw LI(t,"credential-already-in-use",s);case 23:if("EMAIL_EXISTS"!==f){e.next=27;break}throw LI(t,"email-already-in-use",s);case 27:if("USER_DISABLED"!==f){e.next=29;break}throw LI(t,"user-disabled",s);case 29:if(d=i[f]||f.toLowerCase().replace(/[_\s]+/g,"-"),!h){e.next=34;break}throw lI(t,d,h);case 34:sI(t,d);case 35:e.next=42;break;case 37:if(e.prev=37,e.t0=e.catch(2),!(e.t0 instanceof Uv)){e.next=41;break}throw e.t0;case 41:sI(t,"network-request-failed",{message:String(e.t0)});case 42:case"end":return e.stop()}}),e,null,[[2,37]])}))),II.apply(this,arguments)}function NI(e,t,n,r){return PI.apply(this,arguments)}function PI(){return PI=qp(ti().mark((function e(t,n,r,i){var o,a,s=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=s.length>4&&void 0!==s[4]?s[4]:{},e.next=3,OI(t,n,r,i,o);case 3:return"mfaPendingCredential"in(a=e.sent)&&sI(t,"multi-factor-auth-required",{_serverResponse:a}),e.abrupt("return",a);case 6:case"end":return e.stop()}}),e)}))),PI.apply(this,arguments)}function jI(e,t,n,r){var i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?xI(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}var RI=function(){function e(t){var n=this;Lr(this,e),this.auth=t,this.timer=null,this.promise=new Promise((function(e,t){n.timer=setTimeout((function(){return t(uI(n.auth,"network-request-failed"))}),CI.get())}))}return Br(e,[{key:"clearNetworkTimeout",value:function(){clearTimeout(this.timer)}}]),e}();
2function LI(e,t,n){var r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);var i=uI(e,t,r);return i.customData._tokenResponse=n,i}function MI(e,t){return DI.apply(this,arguments)}function DI(){return DI=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",OI(t,"POST","/v1/accounts:delete",n));case 1:case"end":return e.stop()}}),e)}))),DI.apply(this,arguments)}function FI(e,t){return BI.apply(this,arguments)}function BI(){return BI=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",OI(t,"POST","/v1/accounts:lookup",n));case 1:case"end":return e.stop()}}),e)}))),BI.apply(this,arguments)}function UI(e){if(e)try{var t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(n){}}function VI(){return VI=qp(ti().mark((function e(t){var n,r,i,o,a,s,u=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]&&u[1],r=Xv(t),e.next=4,r.getIdToken(n);case 4:return i=e.sent,fI((o=zI(i))&&o.exp&&o.auth_time&&o.iat,r.auth,"internal-error"),a="object"===typeof o.firebase?o.firebase:void 0,s=null===a||void 0===a?void 0:a.sign_in_provider,e.abrupt("return",{claims:o,token:i,authTime:UI(qI(o.auth_time)),issuedAtTime:UI(qI(o.iat)),expirationTime:UI(qI(o.exp)),signInProvider:s||null,signInSecondFactor:(null===a||void 0===a?void 0:a.sign_in_second_factor)||null});case 10:case"end":return e.stop()}}),e)}))),VI.apply(this,arguments)}function qI(e){return 1e3*Number(e)}function zI(e){var t=Yr(e.split("."),3),n=t[0],r=t[1],i=t[2];if(void 0===n||void 0===r||void 0===i)return aI("JWT malformed, contained fewer than 3 sections"),null;try{var o=Iv(r);return o?JSON.parse(o):(aI("Failed to decode base64 JWT payload"),null)}catch(a){return aI("Caught error parsing JWT payload as JSON",null===a||void 0===a?void 0:a.toString()),null}}function HI(e,t){return WI.apply(this,arguments)}function WI(){return WI=qp(ti().mark((function e(t,n){var r=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.length>2&&void 0!==r[2]&&r[2])){e.next=3;break}return e.abrupt("return",n);case 3:return e.prev=3,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),!(e.t0 instanceof Uv&&KI(e.t0))){e.next=15;break}if(t.auth.currentUser!==t){e.next=15;break}return e.next=15,t.auth.signOut();case 15:throw e.t0;case 16:case"end":return e.stop()}}),e,null,[[3,9]])}))),WI.apply(this,arguments)}function KI(e){var t=e.code;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}var GI=function(){function e(t){Lr(this,e),this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}return Br(e,[{key:"_start",value:function(){this.isRunning||(this.isRunning=!0,this.schedule())}},{key:"_stop",value:function(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}},{key:"getInterval",value:function(e){var t;if(e){var n=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),n}this.errorBackoff=3e4;var r=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,r)}},{key:"schedule",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isRunning){var n=this.getInterval(t);this.timerId=setTimeout(qp(ti().mark((function t(){return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.iteration();case 2:case"end":return t.stop()}}),t)}))),n)}}},{key:"iteration",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.user.getIdToken(!0);case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")&&this.schedule(!0),e.abrupt("return");case 9:this.schedule();case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(){return e.apply(this,arguments)}}()}]),e}(),$I=function(){function e(t,n){Lr(this,e),this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}return Br(e,[{key:"_initializeTime",value:function(){this.lastSignInTime=UI(this.lastLoginAt),this.creationTime=UI(this.createdAt)}},{key:"_copy",value:function(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}},{key:"toJSON",value:function(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}]),e}();function YI(e){return QI.apply(this,arguments)}function QI(){return QI=qp(ti().mark((function e(t){var n,r,i,o,a,s,u,l,c,f,h;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.auth,e.next=3,t.getIdToken();case 3:return i=e.sent,e.next=6,HI(t,FI(r,{idToken:i}));case 6:fI(null===(o=e.sent)||void 0===o?void 0:o.users.length,r,"internal-error"),a=o.users[0],t._notifyReloadListener(a),s=(null===(n=a.providerUserInfo)||void 0===n?void 0:n.length)?JI(a.providerUserInfo):[],u=ZI(t.providerData,s),l=t.isAnonymous,c=!(t.email&&a.passwordHash)&&!(null===u||void 0===u?void 0:u.length),f=!!l&&c,h={uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:u,metadata:new $I(a.createdAt,a.lastLoginAt),isAnonymous:f},Object.assign(t,h);case 17:case"end":return e.stop()}}),e)}))),QI.apply(this,arguments)}function XI(){return(XI=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Xv(t),e.next=3,YI(n);case 3:return e.next=5,n.auth._persistUserIfCurrent(n);case 5:n.auth._notifyListenersIfCurrent(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ZI(e,t){var n=e.filter((function(e){return!t.some((function(t){return t.providerId===e.providerId}))}));return[].concat(Rr(n),Rr(t))}function JI(e){return e.map((function(e){var t=e.providerId,n=eI(e,["providerId"]);
2return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))}function eN(e,t){return tN.apply(this,arguments)}function tN(){return tN=qp(ti().mark((function e(t,n){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,AI(t,{},qp(ti().mark((function e(){var r,i,o,a,s,u;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Kv({grant_type:"refresh_token",refresh_token:n}).slice(1),i=t.config,o=i.tokenApiHost,a=i.apiKey,s=jI(t,o,"/v1/token","key=".concat(a)),e.next=5,t._getAdditionalHeaders();case 5:return(u=e.sent)["Content-Type"]="application/x-www-form-urlencoded",e.abrupt("return",_I.fetch()(s,{method:"POST",headers:u,body:r}));case 8:case"end":return e.stop()}}),e)}))));case 2:return r=e.sent,e.abrupt("return",{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token});case 4:case"end":return e.stop()}}),e)}))),tN.apply(this,arguments)}var nN=function(){function e(){Lr(this,e),this.refreshToken=null,this.accessToken=null,this.expirationTime=null}return Br(e,[{key:"isExpired",get:function(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}},{key:"updateFromServerResponse",value:function(e){fI(e.idToken,"internal-error"),fI("undefined"!==typeof e.idToken,"internal-error"),fI("undefined"!==typeof e.refreshToken,"internal-error");var t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):function(e){var t=zI(e);return fI(t,"internal-error"),fI("undefined"!==typeof t.exp,"internal-error"),fI("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}},{key:"getToken",value:function(){var e=qp(ti().mark((function e(t){var n,r=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]&&r[1],fI(!this.accessToken||this.refreshToken,t,"user-token-expired"),n||!this.accessToken||this.isExpired){e.next=4;break}return e.abrupt("return",this.accessToken);case 4:if(!this.refreshToken){e.next=8;break}return e.next=7,this.refresh(t,this.refreshToken);case 7:return e.abrupt("return",this.accessToken);case 8:return e.abrupt("return",null);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"clearRefreshToken",value:function(){this.refreshToken=null}},{key:"refresh",value:function(){var e=qp(ti().mark((function e(t,n){var r,i,o,a;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eN(t,n);case 2:r=e.sent,i=r.accessToken,o=r.refreshToken,a=r.expiresIn,this.updateTokensAndExpiration(i,o,Number(a));case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"updateTokensAndExpiration",value:function(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}},{key:"toJSON",value:function(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}},{key:"_assign",value:function(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}},{key:"_clone",value:function(){return Object.assign(new e,this.toJSON())}},{key:"_performRefresh",value:function(){return hI("not implemented")}}],[{key:"fromJSON",value:function(t,n){var r=n.refreshToken,i=n.accessToken,o=n.expirationTime,a=new e;return r&&(fI("string"===typeof r,"internal-error",{appName:t}),a.refreshToken=r),i&&(fI("string"===typeof i,"internal-error",{appName:t}),a.accessToken=i),o&&(fI("number"===typeof o,"internal-error",{appName:t}),a.expirationTime=o),a}}]),e}();function rN(e,t){fI("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}var iN=function(){function e(t){Lr(this,e);var n=t.uid,r=t.auth,i=t.stsTokenManager,o=eI(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new GI(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?Rr(o.providerData):[],this.metadata=new $I(o.createdAt||void 0,o.lastLoginAt||void 0)}return Br(e,[{key:"getIdToken",value:function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,HI(this,this.stsTokenManager.getToken(this.auth,t));case 2:if(fI(n=e.sent,this.auth,"internal-error"),this.accessToken===n){e.next=9;break}return this.accessToken=n,e.next=8,this.auth._persistUserIfCurrent(this);case 8:this.auth._notifyListenersIfCurrent(this);case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getIdTokenResult",value:function(e){return function(e){return VI.apply(this,arguments)}(this,e)}},{key:"reload",value:function(){return function(e){return XI.apply(this,arguments)}(this)}},{key:"_assign",value:function(e){this!==e&&(fI(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
2otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((function(e){return Object.assign({},e)})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}},{key:"_clone",value:function(t){var n=new e(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}},{key:"_onReload",value:function(e){fI(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}},{key:"_notifyReloadListener",value:function(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}},{key:"_startProactiveRefresh",value:function(){this.proactiveRefresh._start()}},{key:"_stopProactiveRefresh",value:function(){this.proactiveRefresh._stop()}},{key:"_updateTokensIfNecessary",value:function(){var e=qp(ti().mark((function e(t){var n,r,i=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],r=!1,t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),!n){e.next=6;break}return e.next=6,YI(this);case 6:return e.next=8,this.auth._persistUserIfCurrent(this);case 8:r&&this.auth._notifyListenersIfCurrent(this);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=qp(ti().mark((function e(){var t;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getIdToken();case 2:return t=e.sent,e.next=5,HI(this,MI(this.auth,{idToken:t}));case 5:return this.stsTokenManager.clearRefreshToken(),e.abrupt("return",this.auth.signOut());case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"toJSON",value:function(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((function(e){return Object.assign({},e)})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}},{key:"refreshToken",get:function(){return this.stsTokenManager.refreshToken||""}}],[{key:"_fromJSON",value:function(t,n){var r,i,o,a,s,u,l,c,f=null!==(r=n.displayName)&&void 0!==r?r:void 0,h=null!==(i=n.email)&&void 0!==i?i:void 0,d=null!==(o=n.phoneNumber)&&void 0!==o?o:void 0,p=null!==(a=n.photoURL)&&void 0!==a?a:void 0,v=null!==(s=n.tenantId)&&void 0!==s?s:void 0,y=null!==(u=n._redirectEventId)&&void 0!==u?u:void 0,m=null!==(l=n.createdAt)&&void 0!==l?l:void 0,g=null!==(c=n.lastLoginAt)&&void 0!==c?c:void 0,b=n.uid,w=n.emailVerified,k=n.isAnonymous,x=n.providerData,_=n.stsTokenManager;fI(b&&_,t,"internal-error");var E=nN.fromJSON(this.name,_);fI("string"===typeof b,t,"internal-error"),rN(f,t.name),rN(h,t.name),fI("boolean"===typeof w,t,"internal-error"),fI("boolean"===typeof k,t,"internal-error"),rN(d,t.name),rN(p,t.name),rN(v,t.name),rN(y,t.name),rN(m,t.name),rN(g,t.name);var C=new e({uid:b,auth:t,email:h,emailVerified:w,displayName:f,isAnonymous:k,photoURL:p,phoneNumber:d,tenantId:v,stsTokenManager:E,createdAt:m,lastLoginAt:g});return x&&Array.isArray(x)&&(C.providerData=x.map((function(e){return Object.assign({},e)}))),y&&(C._redirectEventId=y),C}},{key:"_fromIdTokenResponse",value:function(){var t=qp(ti().mark((function t(n,r){var i,o,a,s=arguments;return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=s.length>2&&void 0!==s[2]&&s[2],(o=new nN).updateFromServerResponse(r),a=new e({uid:r.localId,auth:n,stsTokenManager:o,isAnonymous:i}),t.next=6,YI(a);case 6:return t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}]),e}(),oN=function(){function e(){Lr(this,e),this.type="NONE",this.storage={}}return Br(e,[{key:"_isAvailable",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.storage[t]=n;case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.storage[t],e.abrupt("return",void 0===n?null:n);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:delete this.storage[t];case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),e}();oN.type="NONE";var aN=oN;function sN(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}var uN=function(){function e(t,n,r){Lr(this,e),this.persistence=t,this.auth=n,this.userKey=r;var i=this.auth,o=i.config,a=i.name;this.fullUserKey=sN(this.userKey,o.apiKey,a),this.fullPersistenceKey=sN("persistence",o.apiKey,a),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}return Br(e,[{key:"setCurrentUser",value:function(e){return this.persistence._set(this.fullUserKey,e.toJSON())}},{key:"getCurrentUser",value:function(){var e=qp(ti().mark((function e(){var t;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.persistence._get(this.fullUserKey);case 2:return t=e.sent,e.abrupt("return",t?iN._fromJSON(this.auth,t):null);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeCurrentUser",value:function(){return this.persistence._remove(this.fullUserKey)}},{key:"savePersistenceForRedirect",value:function(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}},{key:"setPersistence",value:function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistence!==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.getCurrentUser();case 4:return n=e.sent,e.next=7,this.removeCurrentUser();case 7:if(this.persistence=t,!n){e.next=10;break}return e.abrupt("return",this.setCurrentUser(n));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}}],[{key:"create",value:function(){var t=qp(ti().mark((function t(n,r){var i,o,a,s,u,l,c,f,h,d,p,v=arguments;return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=v.length>2&&void 0!==v[2]?v[2]:"authUser",r.length){t.next=3;break}return t.abrupt("return",new e(vI(aN),n,i));case 3:return t.next=5,Promise.all(r.map(function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._isAvailable();case 2:if(!e.sent){e.next=4;break}return e.abrupt("return",t);case 4:return e.abrupt("return",void 0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:o=t.sent.filter((function(e){return e})),a=o[0]||vI(aN),s=sN(i,n.config.apiKey,n.name),u=null,l=Zr(r),t.prev=10,l.s();case 12:if((c=l.n()).done){t.next=29;break}return f=c.value,t.prev=14,t.next=17,f._get(s);case 17:if(!(h=t.sent)){t.next=23;break}return d=iN._fromJSON(n,h),f!==a&&(u=d),a=f,t.abrupt("break",29);case 23:t.next=27;break;case 25:t.prev=25,t.t0=t.catch(14);case 27:t.next=12;break;case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(10),l.e(t.t1);case 34:return t.prev=34,l.f(),t.finish(34);case 37:if(p=o.filter((function(e){return e._shouldAllowMigration})),a._shouldAllowMigration&&p.length){t.next=40;break}return t.abrupt("return",new e(a,n,i));case 40:if(a=p[0],!u){t.next=44;break}return t.next=44,a._set(s,u.toJSON());case 44:return t.next=46,Promise.all(r.map(function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===a){e.next=8;break}return e.prev=1,e.next=4,t._remove(s);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}()));case 46:return t.abrupt("return",new e(a,n,i));case 47:case"end":return t.stop()}}),t,null,[[10,31,34,37],[14,25]])})));return function(e,n){return t.apply(this,arguments)}}()}]),e}();function lN(e){var t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(dN(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(cN(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(vN(t))return"Blackberry";if(yN(t))return"Webos";if(fN(t))return"Safari";if((t.includes("chrome/")||hN(t))&&!t.includes("edge/"))return"Chrome";if(pN(t))return"Android";var n=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);return 2===(null===n||void 0===n?void 0:n.length)?n[1]:"Other"}function cN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv();return/firefox\//i.test(e)}function fN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv(),t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function hN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv();return/crios\//i.test(e)}function dN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv();return/iemobile/i.test(e)}function pN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv();return/android/i.test(e)}function vN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv();return/blackberry/i.test(e)}function yN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv();return/webos/i.test(e)}function mN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function gN(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv();return mN(t)&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}function bN(){return function(){var e=Fv();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()&&10===document.documentMode}function wN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fv();return mN(e)||pN(e)||yN(e)||vN(e)||/windows phone/i.test(e)||dN(e)}function kN(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=lN(Fv());break;case"Worker":t="".concat(lN(Fv()),"-").concat(e);break;default:t=e}var r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(Hy,"/").concat(r)}var xN=function(){function e(t){Lr(this,e),this.auth=t,this.queue=[]}return Br(e,[{key:"pushCallback",value:function(e,t){var n=this,r=function(t){return new Promise((function(n,r){try{n(e(t))}catch(i){r(i)}}))};r.onAbort=t,this.queue.push(r);var i=this.queue.length-1;return function(){n.queue[i]=function(){return Promise.resolve()}}}},{key:"runMiddleware",value:function(){var e=qp(ti().mark((function e(t){var n,r,i,o,a,s,u;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.auth.currentUser!==t){e.next=2;break}return e.abrupt("return");case 2:n=[],e.prev=3,r=Zr(this.queue),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=14;break}return o=i.value,e.next=11,o(t);case 11:o.onAbort&&n.push(o.onAbort);case 12:e.next=7;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:e.next=30;break;case 24:e.prev=24,e.t1=e.catch(3),n.reverse(),a=Zr(n);try{for(a.s();!(s=a.n()).done;){u=s.value;try{u()}catch(Do){}}}catch(l){a.e(l)}finally{a.f()}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===e.t1||void 0===e.t1?void 0:e.t1.message});case 30:case"end":return e.stop()}}),e,this,[[3,24],[5,16,19,22]])})));return function(t){return e.apply(this,arguments)}}()}]),e}(),_N=function(){function e(t,n,r){Lr(this,e),this.app=t,this.heartbeatServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new CN(this),this.idTokenSubscription=new CN(this),this.beforeStateQueue=new xN(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=iI,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=r.sdkClientVersion}return Br(e,[{key:"_initializeWithPersistence",value:function(e,t){var n=this;return t&&(this._popupRedirectResolver=vI(t)),this._initializationPromise=this.queue(qp(ti().mark((function r(){var i,o;return ti().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n._deleted){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,uN.create(n,e);case 4:if(n.persistenceManager=r.sent,!n._deleted){r.next=7;break}return r.abrupt("return");case 7:if(!(null===(i=n._popupRedirectResolver)||void 0===i?void 0:i._shouldInitProactively)){r.next=15;break}return r.prev=8,r.next=11,n._popupRedirectResolver._initialize(n);case 11:r.next=15;break;case 13:r.prev=13,r.t0=r.catch(8);case 15:return r.next=17,n.initializeCurrentUser(t);case 17:if(n.lastNotifiedUid=(null===(o=n.currentUser)||void 0===o?void 0:o.uid)||null,!n._deleted){r.next=20;break}return r.abrupt("return");case 20:n._isInitialized=!0;case 21:case"end":return r.stop()}}),r,null,[[8,13]])})))),this._initializationPromise}},{key:"_onStorageEvent",value:function(){var e=qp(ti().mark((function e(){var t;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._deleted){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.assertedPersistence.getCurrentUser();case 4:if(t=e.sent,this.currentUser||t){e.next=7;break}return e.abrupt("return");case 7:if(!this.currentUser||!t||this.currentUser.uid!==t.uid){e.next=12;break}return this._currentUser._assign(t),e.next=11,this.currentUser.getIdToken();case 11:return e.abrupt("return");case 12:return e.next=14,this._updateCurrentUser(t,!0);case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeCurrentUser",value:function(){var e=qp(ti().mark((function e(t){var n,r,i,o,a,s,u;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.assertedPersistence.getCurrentUser();case 2:if(r=e.sent,i=r,o=!1,!t||!this.config.authDomain){e.next=14;break}return e.next=8,this.getOrInitRedirectPersistenceManager();case 8:return a=null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId,s=null===i||void 0===i?void 0:i._redirectEventId,e.next=12,this.tryRedirectSignIn(t);case 12:u=e.sent,a&&a!==s||!(null===u||void 0===u?void 0:u.user)||(i=u.user,o=!0);case 14:if(i){e.next=16;break}return e.abrupt("return",this.directlySetCurrentUser(null));
2case 16:if(i._redirectEventId){e.next=32;break}if(!o){e.next=27;break}return e.prev=18,e.next=21,this.beforeStateQueue.runMiddleware(i);case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(18),i=r,this._popupRedirectResolver._overrideRedirectResult(this,(function(){return Promise.reject(e.t0)}));case 27:if(!i){e.next=31;break}return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(i));case 31:return e.abrupt("return",this.directlySetCurrentUser(null));case 32:return fI(this._popupRedirectResolver,this,"argument-error"),e.next=35,this.getOrInitRedirectPersistenceManager();case 35:if(!this.redirectUser||this.redirectUser._redirectEventId!==i._redirectEventId){e.next=37;break}return e.abrupt("return",this.directlySetCurrentUser(i));case 37:return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(i));case 38:case"end":return e.stop()}}),e,this,[[18,23]])})));return function(t){return e.apply(this,arguments)}}()},{key:"tryRedirectSignIn",value:function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null,e.prev=1,e.next=4,this._popupRedirectResolver._completeRedirectFn(this,t,!0);case 4:n=e.sent,e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this._setRedirectUser(null);case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"reloadAndSetCurrentUserOrClear",value:function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,YI(t);case 3:e.next=9;break;case 5:if(e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")){e.next=9;break}return e.abrupt("return",this.directlySetCurrentUser(null));case 9:return e.abrupt("return",this.directlySetCurrentUser(t));case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()},{key:"useDeviceLanguage",value:function(){this.languageCode=function(){if("undefined"===typeof navigator)return null;var e=navigator;return e.languages&&e.languages[0]||e.language||null}()}},{key:"_delete",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._deleted=!0;case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateCurrentUser",value:function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t?Xv(t):null)&&fI(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),e.abrupt("return",this._updateCurrentUser(n&&n._clone(this)));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_updateCurrentUser",value:function(){var e=qp(ti().mark((function e(t){var n,r=this,i=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],!this._deleted){e.next=3;break}return e.abrupt("return");case 3:if(t&&fI(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n){e.next=7;break}return e.next=7,this.beforeStateQueue.runMiddleware(t);case 7:return e.abrupt("return",this.queue(qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.directlySetCurrentUser(t);case 2:r.notifyAuthListeners();case 3:case"end":return e.stop()}}),e)})))));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.beforeStateQueue.runMiddleware(null);case 2:if(!this.redirectPersistenceManager&&!this._popupRedirectResolver){e.next=5;break}return e.next=5,this._setRedirectUser(null);case 5:return e.abrupt("return",this._updateCurrentUser(null,!0));case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPersistence",value:function(e){var t=this;return this.queue(qp(ti().mark((function n(){return ti().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.assertedPersistence.setPersistence(vI(e));case 2:case"end":return n.stop()}}),n)}))))}},{key:"_getPersistence",value:function(){return this.assertedPersistence.persistence.type}},{key:"_updateErrorMap",value:function(e){this._errorFactory=new Vv("auth","Firebase",e())}},{key:"onAuthStateChanged",value:function(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}},{key:"beforeAuthStateChanged",value:function(e,t){return this.beforeStateQueue.pushCallback(e,t)}},{key:"onIdTokenChanged",value:function(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}},{key:"toJSON",value:function(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}},{key:"_setRedirectUser",value:function(){var e=qp(ti().mark((function e(t,n){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getOrInitRedirectPersistenceManager(n);case 2:return r=e.sent,e.abrupt("return",null===t?r.removeCurrentUser():r.setCurrentUser(t));case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getOrInitRedirectPersistenceManager",value:function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.redirectPersistenceManager){e.next=9;break}return fI(n=t&&vI(t)||this._popupRedirectResolver,this,"argument-error"),e.next=5,uN.create(this,[vI(n._redirectPersistence)],"redirectUser");case 5:return this.redirectPersistenceManager=e.sent,e.next=8,this.redirectPersistenceManager.getCurrentUser();case 8:this.redirectUser=e.sent;case 9:return e.abrupt("return",this.redirectPersistenceManager);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_redirectUserForId",value:function(){var e=qp(ti().mark((function e(t){var n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isInitialized){e.next=3;break}return e.next=3,this.queue(qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))));case 3:if((null===(n=this._currentUser)||void 0===n?void 0:n._redirectEventId)!==t){e.next=5;break}return e.abrupt("return",this._currentUser);case 5:if((null===(r=this.redirectUser)||void 0===r?void 0:r._redirectEventId)!==t){e.next=7;break}return e.abrupt("return",this.redirectUser);case 7:return e.abrupt("return",null);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_persistUserIfCurrent",value:function(){var e=qp(ti().mark((function e(t){var n=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==this.currentUser){e.next=2;break}return e.abrupt("return",this.queue(qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.directlySetCurrentUser(t));case 1:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_notifyListenersIfCurrent",value:function(e){e===this.currentUser&&this.notifyAuthListeners()}},{key:"_key",value:function(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}},{key:"_startProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}},{key:"_stopProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}},{key:"_currentUser",get:function(){return this.currentUser}},{key:"notifyAuthListeners",value:function(){var e,t;if(this._isInitialized){this.idTokenSubscription.next(this.currentUser);var n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}}},{key:"registerStateListener",value:function(e,t,n,r){var i=this;if(this._deleted)return function(){};var o="function"===typeof t?t:t.next.bind(t),a=this._isInitialized?Promise.resolve():this._initializationPromise;return fI(a,this,"internal-error"),a.then((function(){return o(i.currentUser)})),"function"===typeof t?e.addObserver(t,n,r):e.addObserver(t)}},{key:"directlySetCurrentUser",value:function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,!t){e.next=8;break}return e.next=6,this.assertedPersistence.setCurrentUser(t);case 6:e.next=10;break;case 8:return e.next=10,this.assertedPersistence.removeCurrentUser();case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"queue",value:function(e){return this.operations=this.operations.then(e,e),this.operations}},{key:"assertedPersistence",get:function(){return fI(this.persistenceManager,this,"internal-error"),this.persistenceManager}},{key:"_logFramework",value:function(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=kN(this.config.clientPlatform,this._getFrameworks()))}},{key:"_getFrameworks",value:function(){return this.frameworks}},{key:"_getAdditionalHeaders",value:function(){var e=qp(ti().mark((function e(){var t,n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=yo({},"X-Client-Version",this.clientVersion),this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId),e.next=4,null===(t=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader();case 4:return(r=e.sent)&&(n["X-Firebase-Client"]=r),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function EN(e){return Xv(e)}var CN=function(){function e(t){var n=this;Lr(this,e),this.auth=t,this.observer=null,this.addObserver=function(e,t){var n=new Yv(e,t);return n.subscribe.bind(n)}((function(e){return n.observer=e}))}return Br(e,[{key:"next",get:function(){return fI(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}]),e}();function SN(e,t,n){var r=EN(e);fI(r._canInitEmulator,r,"emulator-config-failed"),fI(/^https?:\/\//.test(t),r,"invali
2d-emulator-scheme");var i=!!(null===n||void 0===n?void 0:n.disableWarnings),o=ON(t),a=function(e){var t=ON(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};var r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){var o=i[1];return{host:o,port:TN(r.substr(o.length+1))}}var a=Yr(r.split(":"),2);return{host:a[0],port:TN(a[1])}}(t),s=a.host,u=a.port,l=null===u?"":":".concat(u);r.config.emulator={url:"".concat(o,"//").concat(s).concat(l,"/")},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:u,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){var e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function ON(e){var t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function TN(e){if(!e)return null;var t=Number(e);return isNaN(t)?null:t}var AN=function(){function e(t,n){Lr(this,e),this.providerId=t,this.signInMethod=n}return Br(e,[{key:"toJSON",value:function(){return hI("not implemented")}},{key:"_getIdTokenResponse",value:function(e){return hI("not implemented")}},{key:"_linkToIdToken",value:function(e,t){return hI("not implemented")}},{key:"_getReauthenticationResolver",value:function(e){return hI("not implemented")}}]),e}();function IN(e,t){return NN.apply(this,arguments)}function NN(){return NN=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",OI(t,"POST","/v1/accounts:update",n));case 1:case"end":return e.stop()}}),e)}))),NN.apply(this,arguments)}function PN(e,t){return jN.apply(this,arguments)}function jN(){return jN=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",NI(t,"POST","/v1/accounts:signInWithPassword",SI(t,n)));case 1:case"end":return e.stop()}}),e)}))),jN.apply(this,arguments)}function RN(e,t){return LN.apply(this,arguments)}function LN(){return LN=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",NI(t,"POST","/v1/accounts:signInWithEmailLink",SI(t,n)));case 1:case"end":return e.stop()}}),e)}))),LN.apply(this,arguments)}function MN(e,t){return DN.apply(this,arguments)}function DN(){return DN=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",NI(t,"POST","/v1/accounts:signInWithEmailLink",SI(t,n)));case 1:case"end":return e.stop()}}),e)}))),DN.apply(this,arguments)}var FN=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Lr(this,n),(o=t.call(this,"password",i))._email=e,o._password=r,o._tenantId=a,o}return Br(n,[{key:"toJSON",value:function(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}},{key:"_getIdTokenResponse",value:function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?4:5;break;case 3:return e.abrupt("return",PN(t,{returnSecureToken:!0,email:this._email,password:this._password}));case 4:return e.abrupt("return",RN(t,{email:this._email,oobCode:this._password}));case 5:sI(t,"internal-error");case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_linkToIdToken",value:function(){var e=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?4:5;break;case 3:return e.abrupt("return",IN(t,{idToken:n,returnSecureToken:!0,email:this._email,password:this._password}));case 4:return e.abrupt("return",MN(t,{idToken:n,email:this._email,oobCode:this._password}));case 5:sI(t,"internal-error");case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_getReauthenticationResolver",value:function(e){return this._getIdTokenResponse(e)}}],[{key:"_fromEmailAndPassword",value:function(e,t){return new n(e,t,"password")}},{key:"_fromEmailAndCode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new n(e,t,"emailLink",r)}},{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}}]),n}(AN);function BN(e,t){return UN.apply(this,arguments)}function UN(){return UN=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",NI(t,"POST","/v1/accounts:signInWithIdp",SI(t,n)));case 1:case"end":return e.stop()}}),e)}))),UN.apply(this,arguments)}var VN=function(e){Vr(n,e);var t=Kr(n);function n(){var e;return Lr(this,n),(e=t.apply(this,arguments)).pendingToken=null,e}return Br(n,[{key:"toJSON",value:function(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
2once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}},{key:"_getIdTokenResponse",value:function(e){return BN(e,this.buildRequest())}},{key:"_linkToIdToken",value:function(e,t){var n=this.buildRequest();return n.idToken=t,BN(e,n)}},{key:"_getReauthenticationResolver",value:function(e){var t=this.buildRequest();return t.autoCreate=!1,BN(e,t)}},{key:"buildRequest",value:function(){var e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{var t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=Kv(t)}return e}}],[{key:"_fromParams",value:function(e){var t=new n(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):sI("argument-error"),t}},{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e,r=t.providerId,i=t.signInMethod,o=eI(t,["providerId","signInMethod"]);if(!r||!i)return null;var a=new n(r,i);return a.idToken=o.idToken||void 0,a.accessToken=o.accessToken||void 0,a.secret=o.secret,a.nonce=o.nonce,a.pendingToken=o.pendingToken||null,a}}]),n}(AN);function qN(e,t){return zN.apply(this,arguments)}function zN(){return zN=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",OI(t,"POST","/v1/accounts:sendVerificationCode",SI(t,n)));case 1:case"end":return e.stop()}}),e)}))),zN.apply(this,arguments)}function HN(){return HN=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",NI(t,"POST","/v1/accounts:signInWithPhoneNumber",SI(t,n)));case 1:case"end":return e.stop()}}),e)}))),HN.apply(this,arguments)}function WN(){return WN=qp(ti().mark((function e(t,n){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,NI(t,"POST","/v1/accounts:signInWithPhoneNumber",SI(t,n));case 2:if(!(r=e.sent).temporaryProof){e.next=5;break}throw LI(t,"account-exists-with-different-credential",r);case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))),WN.apply(this,arguments)}var KN=yo({},"USER_NOT_FOUND","user-not-found");function GN(){return GN=qp(ti().mark((function e(t,n){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.assign(Object.assign({},n),{operation:"REAUTH"}),e.abrupt("return",NI(t,"POST","/v1/accounts:signInWithPhoneNumber",SI(t,r),KN));case 2:case"end":return e.stop()}}),e)}))),GN.apply(this,arguments)}var $N=function(e){Vr(n,e);var t=Kr(n);function n(e){var r;return Lr(this,n),(r=t.call(this,"phone","phone")).params=e,r}return Br(n,[{key:"_getIdTokenResponse",value:function(e){return function(e,t){return HN.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_linkToIdToken",value:function(e,t){return function(e,t){return WN.apply(this,arguments)}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}},{key:"_getReauthenticationResolver",value:function(e){return function(e,t){return GN.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_makeVerificationRequest",value:function(){var e=this.params,t=e.temporaryProof,n=e.phoneNumber,r=e.verificationId,i=e.verificationCode;return t&&n?{temporaryProof:t,phoneNumber:n}:{sessionInfo:r,code:i}}},{key:"toJSON",value:function(){var e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}}],[{key:"_fromVerification",value:function(e,t){return new n({verificationId:e,verificationCode:t})}}
2,{key:"_fromTokenResponse",value:function(e,t){return new n({phoneNumber:e,temporaryProof:t})}},{key:"fromJSON",value:function(e){"string"===typeof e&&(e=JSON.parse(e));var t=e,r=t.verificationId,i=t.verificationCode,o=t.phoneNumber,a=t.temporaryProof;return i||r||o||a?new n({verificationId:r,verificationCode:i,phoneNumber:o,temporaryProof:a}):null}}]),n}(AN);var YN=function(){function e(t){var n,r,i,o,a,s;Lr(this,e);var u=Gv($v(t)),l=null!==(n=u.apiKey)&&void 0!==n?n:null,c=null!==(r=u.oobCode)&&void 0!==r?r:null,f=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(i=u.mode)&&void 0!==i?i:null);fI(l&&c&&f,"argument-error"),this.apiKey=l,this.operation=f,this.code=c,this.continueUrl=null!==(o=u.continueUrl)&&void 0!==o?o:null,this.languageCode=null!==(a=u.languageCode)&&void 0!==a?a:null,this.tenantId=null!==(s=u.tenantId)&&void 0!==s?s:null}return Br(e,null,[{key:"parseLink",value:function(t){var n=function(e){var t=Gv($v(e)).link,n=t?Gv($v(t)).deep_link_id:null,r=Gv($v(e)).deep_link_id;return(r?Gv($v(r)).link:null)||r||n||t||e}(t);try{return new e(n)}catch(Ir){return null}}}]),e}();var QN=function(){function e(){Lr(this,e),this.providerId=e.PROVIDER_ID}return Br(e,null,[{key:"credential",value:function(e,t){return FN._fromEmailAndPassword(e,t)}},{key:"credentialWithLink",value:function(e,t){var n=YN.parseLink(t);return fI(n,"argument-error"),FN._fromEmailAndCode(e,n.code,n.tenantId)}}]),e}();QN.PROVIDER_ID="password",QN.EMAIL_PASSWORD_SIGN_IN_METHOD="password",QN.EMAIL_LINK_SIGN_IN_METHOD="emailLink";var XN=function(){function e(t){Lr(this,e),this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}return Br(e,[{key:"setDefaultLanguage",value:function(e){this.defaultLanguageCode=e}},{key:"setCustomParameters",value:function(e){return this.customParameters=e,this}},{key:"getCustomParameters",value:function(){return this.customParameters}}]),e}(),ZN=function(e){Vr(n,e);var t=Kr(n);function n(){var e;return Lr(this,n),(e=t.apply(this,arguments)).scopes=[],e}return Br(n,[{key:"addScope",value:function(e){return this.scopes.includes(e)||this.scopes.push(e),this}},{key:"getScopes",value:function(){return Rr(this.scopes)}}]),n}(XN),JN=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.call(this,"facebook.com")}return Br(n,null,[{key:"credential",value:function(e){return VN._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(Ir){return null}}}]),n}(ZN);JN.FACEBOOK_SIGN_IN_METHOD="facebook.com",JN.PROVIDER_ID="facebook.com";var eP=function(e){Vr(n,e);var t=Kr(n);function n(){var e;return Lr(this,n),(e=t.call(this,"google.com")).addScope("profile"),e}return Br(n,null,[{key:"credential",value:function(e,t){return VN._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthIdToken,i=t.oauthAccessToken;if(!r&&!i)return null;try{return n.credential(r,i)}catch(Ir){return null}}}]),n}(ZN);eP.GOOGLE_SIGN_IN_METHOD="google.com",eP.PROVIDER_ID="google.com";var tP=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.call(this,"github.com")}return Br(n,null,[{key:"credential",value:function(e){return VN._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GITHUB_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(Ir){return null}}}]),n}(ZN);tP.GITHUB_SIGN_IN_METHOD="github.com",tP.PROVIDER_ID="github.com";var nP=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.call(this,"twitter.com")}return Br(n,null,[{key:"credential",value:function(e,t){return VN._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthAccessToken,i=t.oauthTokenSecret;if(!r||!i)return null;try{return n.credential(r,i)}catch(Ir){return null}}}]),n}(ZN);function rP(e,t){return iP.apply(this,arguments)}function iP(){return iP=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",NI(t,"POST","/v1/accounts:signUp",SI(t,n)));case 1:case"end":return e.stop()}}),e)}))),iP.apply(this,arguments)}nP.TWITTER_SIGN_IN_METHOD="twitter.com",nP.PROVIDER_ID="twitter.com";var oP=function(){function e(t){Lr(this,e),this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._token
2Response,this.operationType=t.operationType}return Br(e,null,[{key:"_fromIdTokenResponse",value:function(){var t=qp(ti().mark((function t(n,r,i){var o,a,s,u,l=arguments;return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=l.length>3&&void 0!==l[3]&&l[3],t.next=3,iN._fromIdTokenResponse(n,i,o);case 3:return a=t.sent,s=aP(i),u=new e({user:a,providerId:s,_tokenResponse:i,operationType:r}),t.abrupt("return",u);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"_forOperation",value:function(){var t=qp(ti().mark((function t(n,r,i){var o;return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._updateTokensIfNecessary(i,!0);case 2:return o=aP(i),t.abrupt("return",new e({user:n,providerId:o,_tokenResponse:i,operationType:r}));case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()}]),e}();function aP(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}var sP=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i,o){var a,s;return Lr(this,n),(a=t.call(this,r.code,r.message)).operationType=i,a.user=o,Object.setPrototypeOf(Hr(a),n.prototype),a.customData={appName:e.name,tenantId:null!==(s=e.tenantId)&&void 0!==s?s:void 0,_serverResponse:r.customData._serverResponse,operationType:i},a}return Br(n,null,[{key:"_fromErrorAndOperation",value:function(e,t,r,i){return new n(e,t,r,i)}}]),n}(Uv);function uP(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((function(n){if(n.code==="auth/".concat("multi-factor-auth-required"))throw sP._fromErrorAndOperation(e,n,t,r);throw n}))}function lP(e,t){return cP.apply(this,arguments)}function cP(){return cP=qp(ti().mark((function e(t,n){var r,i,o=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]&&o[2],e.t0=HI,e.t1=t,e.t2=n,e.t3=t.auth,e.next=7,t.getIdToken();case 7:return e.t4=e.sent,e.t5=e.t2._linkToIdToken.call(e.t2,e.t3,e.t4),e.t6=r,e.next=12,(0,e.t0)(e.t1,e.t5,e.t6);case 12:return i=e.sent,e.abrupt("return",oP._forOperation(t,"link",i));case 14:case"end":return e.stop()}}),e)}))),cP.apply(this,arguments)}function fP(e,t){return hP.apply(this,arguments)}function hP(){return hP=qp(ti().mark((function e(t,n){var r,i,o,a,s,u,l=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>2&&void 0!==l[2]&&l[2],i=t.auth,o="reauthenticate",e.prev=3,e.next=6,HI(t,uP(i,o,n,t),r);case 6:return fI((a=e.sent).idToken,i,"internal-error"),fI(s=zI(a.idToken),i,"internal-error"),u=s.sub,fI(t.uid===u,i,"user-mismatch"),e.abrupt("return",oP._forOperation(t,o,a));case 15:throw e.prev=15,e.t0=e.catch(3),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("user-not-found")&&sI(i,"user-mismatch"),e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,15]])}))),hP.apply(this,arguments)}function dP(e,t){return pP.apply(this,arguments)}function pP(){return pP=qp(ti().mark((function e(t,n){var r,i,o,a,s=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>2&&void 0!==s[2]&&s[2],i="signIn",e.next=4,uP(t,i,n);case 4:return o=e.sent,e.next=7,oP._fromIdTokenResponse(t,i,o);case 7:if(a=e.sent,r){e.next=11;break}return e.next=11,t._updateCurrentUser(a.user);case 11:return e.abrupt("return",a);case 12:case"end":return e.stop()}}),e)}))),pP.apply(this,arguments)}function vP(e,t){return yP.apply(this,arguments)}function yP(){return yP=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",dP(EN(t),n));case 1:case"end":return e.stop()}}),e)}))),yP.apply(this,arguments)}function mP(e,t,n){return gP.apply(this,arguments)}function gP(){return gP=qp(ti().mark((function e(t,n,r){var i,o,a;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=EN(t),e.next=3,rP(i,{returnSecureToken:!0,email:n,password:r});case 3:return o=e.sent,e.next=6,oP._fromIdTokenResponse(i,"signIn",o);case 6:return a=e.sent,e.next=9,i._updateCurrentUser(a.user);case 9:return e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)}))),gP.apply(this,arguments)}function bP(e,t,n){return vP(Xv(e),QN.credential(t,n))}function wP(e,t,n,r){return Xv(e).onIdTokenChanged(t,n,r)}function kP(e,t,n){return Xv(e).beforeAuthStateChanged(t,n)}function xP(e){return Xv(e).signOut()}function _P(e,t){return OI(e,"POST","/v2/accounts/mfaEnrollment:start",SI(e,t))}function EP(e,t){return OI(e,"POST","/v2/accounts/mfaEnrollment:start",SI(e,t))}function CP(e,t){return OI(e,"POST","/v2/accounts/mfaEnrollment:finalize",SI(e,t))}new WeakMap;var SP="__sak",OP=function(){function e(t,n){Lr(this,e),this.storageRetriever=t,this.type=n}return Br(e,[{key:"_isAvailable",value:function(){try{return this.storage?(this.storage.setItem(SP,"1"),this.storage.removeItem(SP),Promise.resolve(!0)):Promise.resolve(!1)}catch(Ir){return Promise.resolve(!1)}}},{key:"_set",value:function(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}},{key:"_get",value:function(e){var t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}},{key:"_remove",value:function(e){return this.storage.removeItem(e),Promise.resolve()}},{key:"storage",get:function(){return this.storageRetriever()}}]),e}();var TP=function(e){Vr(n,e);var t=Kr(n);function n(){var e;return Lr(this,n),(e=t.call(this,(function(){return window.localStorage}),"LOCAL")).boundEventHandler=function(t,n){return e.onStorageEvent(t,n)},e.listeners={},e.localCache={},e.pollTimer=null,e.safariLocalStorageNotSynced=function(){var e=Fv();return fN(e)||mN(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),e.fallbackToPolling=wN(),e._shouldAllowMigration=!0,e}return Br(n,[{key:"forAllChangedKeys",value:function(e){for(var t=0,n=Object.keys(this.listeners);t<n.length;t++){var r=n[t],i=this.storage.getItem(r),o=this.localCache[r];i!==o&&e(r,o,i)}}},{key:"onStorageEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.key){var r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){var i=this.storage.getItem(r);if(e.newValue!==i)null!==e.newValue?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}var o=function(){var e=t.storage.getItem(r);(n||t.localCache[r]!==e)&&t.notifyListeners(r,e)},a=this.storage.getItem(r);bN()&&a!==e.newValue&&e.newValue!==e.oldValue?setTimeout(o,10):o()}else this.forAllChangedKeys((function(e,n,r){t.notifyListeners(e,r)}))}},{key:"notifyListeners",value:function(e,t){this.localCache[e]=t;var n=this.listeners[e];if(n)for(var r=0,i=Array.from(n);r<i.length;r++){(0,i[r])(t?JSON.parse(t):t)}}},{key:"startPolling",value:function(){var e=this;this.stopPolling(),this.pollTimer=setInterval((function(){e.forAllChangedKeys((function(t,n,r){e.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)}))}),1e3)}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"attachListener",value:function(){window.addEventListener("storage",this.boundEventHandler)}},{key:"detachListener",value:function(){window.removeEventListener("storage",this.boundEventHandler)}},{key:"_addListener",value:function(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}},{key:"_removeListener",value:function(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}},{key:"_set",value:function(){var e=qp(ti().mark((function e(t,r){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Cv(qr(n.prototype),"_set",this).call(this,t,r);case 2:this.localCache[t]=JSON.stringify(r);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=qp(ti().mark((function e(t){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Cv(qr(n.prototype),"_get",this).call(this,t);case 2:return r=e.sent,this.localCache[t]=JSON.stringify(r),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Cv(qr(n.prototype),"_remove",this).call(this,t);case 2:delete this.localCache[t];case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(OP);TP.type="LOCAL";var AP=TP,IP=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.call(this,(function(){return window.sessionStorage}),"SESSION")}return Br(n,[{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),n}(OP);IP.type="SESSION";var NP=IP;function PP(e){return Promise.all(e.map(function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return n=e.sent,e.abrupt("return",{fulfilled:!0,value:n});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{fulfilled:!1,reason:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()))}var jP=function(){function e(t){Lr(this,e),this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}return Br(e,[{key:"isListeningto",value:function(e){return this.eventTarget===e}},{key:"handleEvent",value:function(){var e=qp(ti().mark((function e(t){var n,r,i,o,a,s,u,l;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=t).data,i=r.eventId,o=r.eventType,a=r.data,null===(s=this.handlersMap[o])||void 0===s?void 0:s.size){e.next=5;break}return e.abrupt("return");case 5:return n.ports[0].postMessage({status:"ack",eventId:i,eventType:o}),u=Array.from(s).map(function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(n.origin,a));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,PP(u);case 9:l=e.sent,n.ports[0].postMessage({status:"done",eventId:i,eventType:o,response:l});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_subscribe",value:function(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}},{key:"_unsubscribe",value:function(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}],[{key:"_getInstance",value:function(t){var n=this.receivers.find((function(e){return e.isListeningto(t)}));if(n)return n;var r=new e(t);return this.receivers.push(r),r}}]),e}();function RP(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="",r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}jP.receivers=[];var LP=function(){function e(t){Lr(this,e),this.target=t,this.handlers=new Set}return Br(e,[{key:"removeMessageHandler",value:function(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}},{key:"_send",value:function(){var e=qp(ti().mark((function e(t,n){var r,i,o,a,s=this,u=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:50,i="undefined"!==typeof MessageChannel?new MessageChannel:null){e.next=4;break}throw new Error("connection_unavailable");case 4:return e.abrupt("return",new Promise((function(e,u){var l=RP("",20);i.port1.start();var c=setTimeout((function(){u(new Error("unsupported_event"))}),r);a={messageChannel:i,onMessage:function(t){var n=t;if(n.data.eventId===l)switch(n.data.status){case"ack":clearTimeout(c),o=setTimeout((function(){u(new Error("timeout"))}),3e3);break;case"done":clearTimeout(o),e(n.data.response);break;default:clearTimeout(c),clearTimeout(o),u(new Error("invalid_response"))}}},s.handlers.add(a),i.port1.addEventListener("message",a.onMessage),s.target.postMessage({eventType:t,eventId:l,data:n},[i.port2])})).finally((function(){a&&s.removeMessageHandler(a)})));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}();function MP(){return window}
2function DP(){return"undefined"!==typeof MP().WorkerGlobalScope&&"function"===typeof MP().importScripts}function FP(){return BP.apply(this,arguments)}function BP(){return(BP=qp(ti().mark((function e(){var t;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===navigator||void 0===navigator?void 0:navigator.serviceWorker){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,navigator.serviceWorker.ready;case 5:return t=e.sent,e.abrupt("return",t.active);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function UP(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}var VP="firebaseLocalStorageDb",qP="firebaseLocalStorage",zP="fbase_key",HP=function(){function e(t){Lr(this,e),this.request=t}return Br(e,[{key:"toPromise",value:function(){var e=this;return new Promise((function(t,n){e.request.addEventListener("success",(function(){t(e.request.result)})),e.request.addEventListener("error",(function(){n(e.request.error)}))}))}}]),e}();function WP(e,t){return e.transaction([qP],t?"readwrite":"readonly").objectStore(qP)}function KP(){var e=indexedDB.deleteDatabase(VP);return new HP(e).toPromise()}function GP(){var e=indexedDB.open(VP,1);return new Promise((function(t,n){e.addEventListener("error",(function(){n(e.error)})),e.addEventListener("upgradeneeded",(function(){var t=e.result;try{t.createObjectStore(qP,{keyPath:zP})}catch(r){n(r)}})),e.addEventListener("success",qp(ti().mark((function n(){var r;return ti().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((r=e.result).objectStoreNames.contains(qP)){n.next=12;break}return r.close(),n.next=5,KP();case 5:return n.t0=t,n.next=8,GP();case 8:n.t1=n.sent,(0,n.t0)(n.t1),n.next=13;break;case 12:t(r);case 13:case"end":return n.stop()}}),n)}))))}))}function $P(e,t,n){return YP.apply(this,arguments)}function YP(){return YP=qp(ti().mark((function e(t,n,r){var i,o;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=WP(t,!0).put((yo(i={},zP,n),yo(i,"value",r),i)),e.abrupt("return",new HP(o).toPromise());case 2:case"end":return e.stop()}}),e)}))),YP.apply(this,arguments)}function QP(e,t){return XP.apply(this,arguments)}function XP(){return XP=qp(ti().mark((function e(t,n){var r,i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=WP(t,!1).get(n),e.next=3,new HP(r).toPromise();case 3:return i=e.sent,e.abrupt("return",void 0===i?null:i.value);case 5:case"end":return e.stop()}}),e)}))),XP.apply(this,arguments)}function ZP(e,t){var n=WP(e,!0).delete(t);return new HP(n).toPromise()}var JP=function(){function e(){Lr(this,e),this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((function(){}),(function(){}))}return Br(e,[{key:"_openDb",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return",this.db);case 2:return e.next=4,GP();case 4:return this.db=e.sent,e.abrupt("return",this.db);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_withRetries",value:function(){var e=qp(ti().mark((function e(t){var n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:return e.prev=2,e.next=5,this._openDb();case 5:return r=e.sent,e.next=8,t(r);case 8:return e.abrupt("return",e.sent);case 11:if(e.prev=11,e.t0=e.catch(2),!(n++>3)){e.next=15;break}throw e.t0;case 15:this.db&&(this.db.close(),this.db=void 0);case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e,this,[[2,11]])})));return function(t){return e.apply(this,arguments)}}()},{key:"initializeServiceWorkerMessaging",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",DP()?this.initializeReceiver():this.initializeSender());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeReceiver",value:function(){var e=qp(ti().mark((function e(){var t=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.receiver=jP._getInstance(DP()?self:null),this.receiver._subscribe("keyChanged",function(){var e=qp(ti().mark((function e(n,r){var i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._poll();case 2:return i=e.sent,e.abrupt("return",{keyProcessed:i.includes(r.key)});case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),this.receiver._subscribe("ping",function(){var e=qp(ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",["keyChanged"]);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeSender",value:function(){var e=qp(ti().mark((function e(){var t,n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,FP();case 2:if(this.activeServiceWorker=e.sent,this.activeServiceWorker){e.next=5;break}return e.abrupt("return");case 5:return this.sender=new LP(this.activeServiceWorker),e.next=8,this.sender._send("ping",{},800);case 8:if(r=e.sent){e.next=11;break}return e.abrupt("return");case 11:(null===(t=r[0])||void 0===t?void 0:t.fulfilled)&&(null===(n=r[0])||void 0===n?void 0:n.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0);case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notifyServiceWorker",value:function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sender&&this.activeServiceWorker&&UP()===this.activeServiceWorker){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50);case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:case"end":return e.stop()}}),e,this,[[2,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_isAvailable",value:function(){var e=qp(ti().mark((function e(){var t;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,indexedDB){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,GP();case 5:return t=e.sent,e.next=8,$P(t,SP,"1");case 8:return e.next=10,ZP(t,SP);case 10:return e.abrupt("return",!0);case 13:e.prev=13,e.t0=e.catch(0);case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}()},{key:"_withPendingWrite",value:function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.pendingWrites++,e.prev=1,e.next=4,t();case 4:return e.prev=4,this.pendingWrites--,e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[1,,4,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=qp(ti().mark((function e(t,n){var r=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._withRetries((function(e){return $P(e,t,n)}));case 2:return r.localCache[t]=n,e.abrupt("return",r.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){return QP(e,t)}));case 2:return n=e.sent,this.localCache[t]=n,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=qp(ti().mark((function e(t){var n=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._withRetries((function(e){return ZP(e,t)}));case 2:return delete n.localCache[t],e.abrupt("return",n.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_poll",value:function(){var e=qp(ti().mark((function e(){var t,n,r,i,o,a,s,u,l,c,f;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){var t=WP(e,!1).getAll();
2return new HP(t).toPromise()}));case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",[]);case 5:if(0===this.pendingWrites){e.next=7;break}return e.abrupt("return",[]);case 7:n=[],r=new Set,i=Zr(t);try{for(i.s();!(o=i.n()).done;)a=o.value,s=a.fbase_key,u=a.value,r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(u)&&(this.notifyListeners(s,u),n.push(s))}catch(h){i.e(h)}finally{i.f()}for(l=0,c=Object.keys(this.localCache);l<c.length;l++)f=c[l],this.localCache[f]&&!r.has(f)&&(this.notifyListeners(f,null),n.push(f));return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notifyListeners",value:function(e,t){this.localCache[e]=t;var n=this.listeners[e];if(n)for(var r=0,i=Array.from(n);r<i.length;r++){(0,i[r])(t)}}},{key:"startPolling",value:function(){var e=this;this.stopPolling(),this.pollTimer=setInterval(qp(ti().mark((function t(){return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._poll());case 1:case"end":return t.stop()}}),t)}))),800)}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"_addListener",value:function(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}},{key:"_removeListener",value:function(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}]),e}();JP.type="LOCAL";var ej=JP;function tj(e,t){return OI(e,"POST","/v2/accounts/mfaSignIn:start",SI(e,t))}function nj(e,t){return OI(e,"POST","/v2/accounts/mfaSignIn:finalize",SI(e,t))}function rj(e){return new Promise((function(t,n){var r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=function(e){var t=uI("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)}))}function ij(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}ij("rcb"),new kI(3e4,6e4);var oj="recaptcha";function aj(e,t,n){return sj.apply(this,arguments)}function sj(){return sj=qp(ti().mark((function e(t,n,r){var i,o,a,s,u,l,c,f,h;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.verify();case 2:if(o=e.sent,e.prev=3,fI("string"===typeof o,t,"argument-error"),fI(r.type===oj,t,"argument-error"),!("session"in(a="string"===typeof n?{phoneNumber:n}:n))){e.next=26;break}if(s=a.session,!("phoneNumber"in a)){e.next=17;break}return fI("enroll"===s.type,t,"internal-error"),e.next=13,_P(t,{idToken:s.credential,phoneEnrollmentInfo:{phoneNumber:a.phoneNumber,recaptchaToken:o}});case 13:return u=e.sent,e.abrupt("return",u.phoneSessionInfo.sessionInfo);case 17:return fI("signin"===s.type,t,"internal-error"),fI(l=(null===(i=a.multiFactorHint)||void 0===i?void 0:i.uid)||a.multiFactorUid,t,"missing-multi-factor-info"),e.next=22,tj(t,{mfaPendingCredential:s.credential,mfaEnrollmentId:l,phoneSignInInfo:{recaptchaToken:o}});case 22:return c=e.sent,e.abrupt("return",c.phoneResponseInfo.sessionInfo);case 24:e.next=31;break;case 26:return e.next=28,qN(t,{phoneNumber:a.phoneNumber,recaptchaToken:o});case 28:return f=e.sent,h=f.sessionInfo,e.abrupt("return",h);case 31:return e.prev=31,r._reset(),e.finish(31);case 34:case"end":return e.stop()}}),e,null,[[3,,31,34]])}))),sj.apply(this,arguments)}var uj=function(){function e(t){Lr(this,e),this.providerId=e.PROVIDER_ID,this.auth=EN(t)}return Br(e,[{key:"verifyPhoneNumber",value:function(e,t){return aj(this.auth,e,Xv(t))}}],[{key:"credential",value:function(e,t){return $N._fromVerification(e,t)}},{key:"credentialFromResult",value:function(t){var n=t;return e.credentialFromTaggedObject(n)}},{key:"credentialFromError",value:function(t){return e.credentialFromTaggedObject(t.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var n=t.phoneNumber,r=t.temporaryProof;return n&&r?$N._fromTokenResponse(n,r):null}}]),e}();function lj(e,t){return t?vI(t):(fI(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}
2uj.PROVIDER_ID="phone",uj.PHONE_SIGN_IN_METHOD="phone";var cj=function(e){Vr(n,e);var t=Kr(n);function n(e){var r;return Lr(this,n),(r=t.call(this,"custom","custom")).params=e,r}return Br(n,[{key:"_getIdTokenResponse",value:function(e){return BN(e,this._buildIdpRequest())}},{key:"_linkToIdToken",value:function(e,t){return BN(e,this._buildIdpRequest(t))}},{key:"_getReauthenticationResolver",value:function(e){return BN(e,this._buildIdpRequest())}},{key:"_buildIdpRequest",value:function(e){var t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}]),n}(AN);function fj(e){return dP(e.auth,new cj(e),e.bypassAuthState)}function hj(e){var t=e.auth,n=e.user;return fI(n,t,"internal-error"),fP(n,new cj(e),e.bypassAuthState)}function dj(e){return pj.apply(this,arguments)}function pj(){return pj=qp(ti().mark((function e(t){var n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.auth,fI(r=t.user,n,"internal-error"),e.abrupt("return",lP(r,new cj(t),t.bypassAuthState));case 3:case"end":return e.stop()}}),e)}))),pj.apply(this,arguments)}var vj=function(){function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Lr(this,e),this.auth=t,this.resolver=r,this.user=i,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}return Br(e,[{key:"execute",value:function(){var e=this;return new Promise(function(){var t=qp(ti().mark((function t(n,r){return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.pendingPromise={resolve:n,reject:r},t.prev=1,t.next=4,e.resolver._initialize(e.auth);case 4:return e.eventManager=t.sent,t.next=7,e.onExecution();case 7:e.eventManager.registerConsumer(e),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),e.reject(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"onAuthEvent",value:function(){var e=qp(ti().mark((function e(t){var n,r,i,o,a,s,u;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.urlResponse,r=t.sessionId,i=t.postBody,o=t.tenantId,a=t.error,s=t.type,!a){e.next=4;break}return this.reject(a),e.abrupt("return");case 4:return u={auth:this.auth,requestUri:n,sessionId:r,tenantId:o||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState},e.prev=5,e.t0=this,e.next=9,this.getIdpTask(s)(u);case 9:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=16;break;case 13:e.prev=13,e.t2=e.catch(5),this.reject(e.t2);case 16:case"end":return e.stop()}}),e,this,[[5,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"onError",value:function(e){this.reject(e)}},{key:"getIdpTask",value:function(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return fj;case"linkViaPopup":case"linkViaRedirect":return dj;case"reauthViaPopup":case"reauthViaRedirect":return hj;default:sI(this.auth,"internal-error")}}},{key:"resolve",value:function(e){dI(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}},{key:"reject",value:function(e){dI(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}},{key:"unregisterAndCleanUp",value:function(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}]),e}(),yj=new kI(2e3,1e4);var mj=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i,o,a){var s;return Lr(this,n),(s=t.call(this,e,r,o,a)).provider=i,s.authWindow=null,s.pollId=null,n.currentPopupAction&&n.currentPopupAction.cancel(),n.currentPopupAction=Hr(s),s}return Br(n,[{key:"executeNotNull",value:function(){var e=qp(ti().mark((function e(){var t;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.execute();case 2:return fI(t=e.sent,this.auth,"internal-error"),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=qp(ti().mark((function e(){var t,n=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return dI(1===this.filter.length,"Popup operations only handle one event"),t=RP(),e.next=4,this.resolver._openPopup(this.auth,this.provider,this.filter[0],t);case 4:this.authWindow=e.sent,this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch((function(e){n.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(function(e){e||n.reject(uI(n.auth,"web-storage-unsupported"))})),this.pollUserCancellation();case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"eventId",get:function(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}},{key:"cancel",value:function(){this.reject(uI(this.auth,"cancelled-popup-request"))}},{key:"cleanUp",value:function(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,n.currentPopupAction=null}},{key:"pollUserCancellation",value:function(){var e=this;!function t(){var n,r;(null===(r=null===(n=e.authWindow)||void 0===n?void 0:n.window)||void 0===r?void 0:r.closed)?e.pollId=window.setTimeout((function(){e.pollId=null,e.reject(uI(e.auth,"popup-closed-by-user"))}),2e3):e.pollId=window.setTimeout(t,yj.get())}()}}]),n}(vj);mj.currentPopupAction=null;var gj=new Map,bj=function(e){Vr(n,e);var t=Kr(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Lr(this,n),(i=t.call(this,e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],r,void 0,o)).eventId=null,i}return Br(n,[{key:"execute",value:function(){var e=qp(ti().mark((function e(){var t,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=gj.get(this.auth._key())){e.next=21;break}return e.prev=2,e.next=5,wj(this.resolver,this.auth);case 5:if(!e.sent){e.next=12;break}return e.next=9,Cv(qr(n.prototype),"execute",this).call(this);case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=null;case 13:r=e.t0,t=function(){return Promise.resolve(r)},e.next=20;break;case 17:e.prev=17,e.t1=e.catch(2),t=function(){return Promise.reject(e.t1)};case 20:gj.set(this.auth._key(),t);case 21:return this.bypassAuthState||gj.set(this.auth._key(),(function(){return Promise.resolve(null)})),e.abrupt("return",t());case 23:case"end":return e.stop()}}),e,this,[[2,17]])})));return function(){return e.apply(this,arguments)}}()},{key:"onAuthEvent",value:function(){var e=qp(ti().mark((function e(t){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("signInViaRedirect"!==t.type){e.next=4;break}return e.abrupt("return",Cv(qr(n.prototype),"onAuthEvent",this).call(this,t));case 4:if("unknown"!==t.type){e.next=7;break}return this.resolve(null),e.abrupt("return");
2case 7:if(!t.eventId){e.next=17;break}return e.next=10,this.auth._redirectUserForId(t.eventId);case 10:if(!(r=e.sent)){e.next=16;break}return this.user=r,e.abrupt("return",Cv(qr(n.prototype),"onAuthEvent",this).call(this,t));case 16:this.resolve(null);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"cleanUp",value:function(){}}]),n}(vj);function wj(e,t){return kj.apply(this,arguments)}function kj(){return kj=qp(ti().mark((function e(t,n){var r,i,o;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ej(n),i=_j(t),e.next=4,i._isAvailable();case 4:if(e.sent){e.next=6;break}return e.abrupt("return",!1);case 6:return e.next=8,i._get(r);case 8:return e.t0=e.sent,o="true"===e.t0,e.next=12,i._remove(r);case 12:return e.abrupt("return",o);case 13:case"end":return e.stop()}}),e)}))),kj.apply(this,arguments)}function xj(e,t){gj.set(e._key(),t)}function _j(e){return vI(e._redirectPersistence)}function Ej(e){return sN("pendingRedirect",e.config.apiKey,e.name)}function Cj(e,t){return Sj.apply(this,arguments)}function Sj(){return Sj=qp(ti().mark((function e(t,n){var r,i,o,a,s,u=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]&&u[2],i=EN(t),o=lj(i,n),a=new bj(i,o,r),e.next=6,a.execute();case 6:if(!(s=e.sent)||r){e.next=13;break}return delete s.user._redirectEventId,e.next=11,i._persistUserIfCurrent(s.user);case 11:return e.next=13,i._setRedirectUser(null,n);case 13:return e.abrupt("return",s);case 14:case"end":return e.stop()}}),e)}))),Sj.apply(this,arguments)}var Oj=function(){function e(t){Lr(this,e),this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}return Br(e,[{key:"registerConsumer",value:function(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}},{key:"unregisterConsumer",value:function(e){this.consumers.delete(e)}},{key:"onEvent",value:function(e){var t=this;if(this.hasEventBeenHandled(e))return!1;var n=!1;return this.consumers.forEach((function(r){t.isEventForConsumer(e,r)&&(n=!0,t.sendToConsumer(e,r),t.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Aj(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}},{key:"sendToConsumer",value:function(e,t){var n;if(e.error&&!Aj(e)){var r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(uI(this.auth,r))}else t.onAuthEvent(e)}},{key:"isEventForConsumer",value:function(e,t){var n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}},{key:"hasEventBeenHandled",value:function(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Tj(e))}},{key:"saveEventToCache",value:function(e){this.cachedEventUids.add(Tj(e)),this.lastProcessedEventTime=Date.now()}}]),e}();function Tj(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((function(e){return e})).join("-")}function Aj(e){var t=e.type,n=e.error;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}function Ij(e){return Nj.apply(this,arguments)}function Nj(){return Nj=qp(ti().mark((function e(t){var n,r=arguments;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.abrupt("return",OI(t,"GET","/v1/projects",n));case 2:case"end":return e.stop()}}),e)}))),Nj.apply(this,arguments)}var Pj=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,jj=/^https?/;function Rj(){return Rj=qp(ti().mark((function e(t){var n,r,i,o,a;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.config.emulator){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Ij(t);case 4:n=e.sent,r=n.authorizedDomains,i=Zr(r),e.prev=7,i.s();case 9:if((o=i.n()).done){e.next=20;break}if(a=o.value,e.prev=11,!Lj(a)){e.next=14;break}return e.abrupt("return");case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(11);case 18:e.next=9;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(7),i.e(e.t1);case 25:return e.prev=25,i.f(),e.finish(25);case 28:sI(t,"unauthorized-domain");case 29:case"end":return e.stop()}}),e,null,[[7,22,25,28],[11,16]])}))),Rj.apply(this,arguments)}function Lj(e){var t=mI(),n=new URL(t),r=n.protocol,i=n.hostname;if(e.startsWith("chrome-extension://")){var o=new URL(e);return""===o.hostname&&""===i?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&o.hostname===i}if(!jj.test(r))return!1;if(Pj.test(e))return i===e;var a=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+a+"|"+a+")$","i").test(i)}
2var Mj=new kI(3e4,6e4);function Dj(){var e=MP().___jsl;if(null===e||void 0===e?void 0:e.H)for(var t=0,n=Object.keys(e.H);t<n.length;t++){var r=n[t];if(e.H[r].r=e.H[r].r||[],e.H[r].L=e.H[r].L||[],e.H[r].r=Rr(e.H[r].L),e.CP)for(var i=0;i<e.CP.length;i++)e.CP[i]=null}}var Fj=null;function Bj(e){return Fj=Fj||function(e){return new Promise((function(t,n){var r,i,o;function a(){Dj(),gapi.load("gapi.iframes",{callback:function(){t(gapi.iframes.getContext())},ontimeout:function(){Dj(),n(uI(e,"network-request-failed"))},timeout:Mj.get()})}if(null===(i=null===(r=MP().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(o=MP().gapi)||void 0===o?void 0:o.load)){var s=ij("iframefcb");return MP()[s]=function(){gapi.load?a():n(uI(e,"network-request-failed"))},rj("https://apis.google.com/js/api.js?onload=".concat(s)).catch((function(e){return n(e)}))}a()}})).catch((function(e){throw Fj=null,e}))}(e),Fj}var Uj=new kI(5e3,15e3),Vj={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},qj=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function zj(e){var t=e.config;fI(t.authDomain,e,"auth-domain-config-required");var n=t.emulator?xI(t,"emulator/auth/iframe"):"https://".concat(e.config.authDomain,"/").concat("__/auth/iframe"),r={apiKey:t.apiKey,appName:e.name,v:Hy},i=qj.get(e.config.apiHost);i&&(r.eid=i);var o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),"".concat(n,"?").concat(Kv(r).slice(1))}function Hj(e){return Wj.apply(this,arguments)}function Wj(){return Wj=qp(ti().mark((function e(t){var n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bj(t);case 2:return n=e.sent,fI(r=MP().gapi,t,"internal-error"),e.abrupt("return",n.open({where:document.body,url:zj(t),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Vj,dontclear:!0},(function(e){return new Promise(function(){var n=qp(ti().mark((function n(r,i){var o,a,s;return ti().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=function(){MP().clearTimeout(a),r(e)},n.next=3,e.restyle({setHideOnLeave:!1});case 3:o=uI(t,"network-request-failed"),a=MP().setTimeout((function(){i(o)}),Uj.get()),e.ping(s).then(s,(function(){i(o)}));case 6:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())})));case 6:case"end":return e.stop()}}),e)}))),Wj.apply(this,arguments)}var Kj={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},Gj="_blank",$j="http://localhost",Yj=function(){function e(t){Lr(this,e),this.window=t,this.associatedEvent=null}return Br(e,[{key:"close",value:function(){if(this.window)try{this.window.close()}catch(e){}}}]),e}();function Qj(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600,o=Math.max((window.screen.availHeight-i)/2,0).toString(),a=Math.max((window.screen.availWidth-r)/2,0).toString(),s="",u=Object.assign(Object.assign({},Kj),{width:r.toString(),height:i.toString(),top:o,left:a}),l=Fv().toLowerCase();n&&(s=hN(l)?Gj:n),cN(l)&&(t=t||$j,u.scrollbars="yes");var c=Object.entries(u).reduce((function(e,t){var n=Yr(t,2),r=n[0],i=n[1];return"".concat(e).concat(r,"=").concat(i,",")}),"");if(gN(l)&&"_self"!==s)return Xj(t||"",s),new Yj(null);var f=window.open(t||"",s,c);fI(f,e,"popup-blocked");try{f.focus()}catch(h){}return new Yj(f)}function Xj(e,t){var n=document.createElement("a");n.href=e,n.target=t;var r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}var Zj="__/auth/handler",Jj="emulator/auth/handler";function eR(e,t,n,r,i,o){fI(e.config.authDomain,e,"auth-domain-config-required"),fI(e.config.apiKey,e,"invalid-api-key");var a={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Hy,eventId:i};if(t instanceof XN){t.setDefaultLanguage(e.languageCode),a.providerId=t.providerId||"",function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(t.getCustomParameters())||(a.customParameters=JSON.stringify(t.getCustomParameters()));for(var s=0,u=Object.entries(o||{});s<u.length;s++){var l=Yr(u[s],2),c=l[0],f=l[1];a[c]=f}}if(t instanceof ZN){var h=t.getScopes().filter((function(e){return""!==e}));h.length>0&&(a.scopes=h.join(","))}e.tenantId&&(a.tid=e.tenantId);for(var d=a,p=0,v=Object.keys(d);p<v.length;p++){var y=v[p];void 0===d[y]&&delete d[y]}return"".concat(function(e){var t=e.config;if(!t.emulator)return"https://".concat(t.authDomain,"/").concat(Zj);return xI(t,Jj)}(e),"?").concat(Kv(d).slice(1))}var tR="webStorageSupport",nR=function(){function e(){Lr(this,e),this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=NP,this._completeRedirectFn=Cj,this._overrideRedirectResult=xj}return Br(e,[{key:"_openPopup",value:function(){var e=qp(ti().mark((function e(t,n,r,i){var o,a;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return dI(null===(o=this.eventManagers[t._key()])||void 0===o?void 0:o.manager,"_initialize() not called before _openPopup()"),a=eR(t,n,r,mI(),i),e.abrupt("return",Qj(t,a,RP()));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_openRedirect",value:function(){var e=qp(ti().mark((function e(t,n,r,i){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._originValidation(t);case 2:return o=eR(t,n,r,mI(),i),MP().location.href=o,e.abrupt("return",new Promise((function(){})));case 4:case"end":return e.stop()}var o}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_initialize",value:function(e){var t=this,n=e._key();if(this.eventManagers[n]){var r=this.eventManagers[n],i=r.manager,o=r.promise;return i?Promise.resolve(i):(dI(o,"If manager is not set, promise should be"),o)}var a=this.initAndGetManager(e);return this.eventManagers[n]={promise:a},a.catch((function(){delete t.eventManagers[n]})),a}},{key:"initAndGetManager",value:function(){var e=qp(ti().mark((function e(t){var n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hj(t);case 2:return n=e.sent,r=new Oj(t),n.register("authEvent",(function(e){return fI(null===e||void 0===e?void 0:e.authEvent,t,"invali
2d-auth-event"),{status:r.onEvent(e.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_isIframeWebStorageSupported",value:function(e,t){this.iframes[e._key()].send(tR,{type:tR},(function(n){var r,i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.webStorageSupport;void 0!==i&&t(!!i),sI(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}},{key:"_originValidation",value:function(e){var t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=function(e){return Rj.apply(this,arguments)}(e)),this.originValidationPromises[t]}},{key:"_shouldInitProactively",get:function(){return wN()||fN()||mN()}}]),e}(),rR=nR,iR=function(){function e(t){Lr(this,e),this.factorId=t}return Br(e,[{key:"_process",value:function(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return hI("unexpected MultiFactorSessionType")}}}]),e}(),oR=function(e){Vr(n,e);var t=Kr(n);function n(e){var r;return Lr(this,n),(r=t.call(this,"phone")).credential=e,r}return Br(n,[{key:"_finalizeEnroll",value:function(e,t,n){return function(e,t){return OI(e,"POST","/v2/accounts/mfaEnrollment:finalize",SI(e,t))}(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}},{key:"_finalizeSignIn",value:function(e,t){return function(e,t){return OI(e,"POST","/v2/accounts/mfaSignIn:finalize",SI(e,t))}(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}],[{key:"_fromCredential",value:function(e){return new n(e)}}]),n}(iR);(function(){function e(){Lr(this,e)}return Br(e,null,[{key:"assertion",value:function(e){return oR._fromCredential(e)}}]),e}()).FACTOR_ID="phone";var aR=function(){function e(){Lr(this,e)}return Br(e,null,[{key:"assertionForEnrollment",value:function(e,t){return sR._fromSecret(e,t)}},{key:"assertionForSignIn",value:function(e,t){return sR._fromEnrollmentId(e,t)}},{key:"generateSecret",value:function(){var e=qp(ti().mark((function e(t){var n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fI("undefined"!==typeof(n=t).auth,"internal-error"),e.next=4,EP(n.auth,{idToken:n.credential,totpEnrollmentInfo:{}});case 4:return r=e.sent,e.abrupt("return",uR._fromStartTotpMfaEnrollmentResponse(r,n.auth));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]),e}();aR.FACTOR_ID="totp";var sR=function(e){Vr(n,e);var t=Kr(n);function n(e,r,i){var o;return Lr(this,n),(o=t.call(this,"totp")).otp=e,o.enrollmentId=r,o.secret=i,o}return Br(n,[{key:"_finalizeEnroll",value:function(){var e=qp(ti().mark((function e(t,n,r){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fI("undefined"!==typeof this.secret,t,"argument-error"),e.abrupt("return",CP(t,{idToken:n,displayName:r,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)}));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_finalizeSignIn",value:function(){var e=qp(ti().mark((function e(t,n){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fI(void 0!==this.enrollmentId&&void 0!==this.otp,t,"argument-error"),r={verificationCode:this.otp},e.abrupt("return",nj(t,{mfaPendingCredential:n,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:r}));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}],[{key:"_fromSecret",value:function(e,t){return new n(t,void 0,e)}},{key:"_fromEnrollmentId",value:function(e,t){return new n(t,e)}}]),n}(iR),uR=function(){function e(t,n,r,i,o,a,s){Lr(this,e),this.sessionInfo=a,this.auth=s,this.secretKey=t,this.hashingAlgorithm=n,this.codeLength=r,this.codeIntervalSeconds=i,this.enrollmentCompletionDeadline=o}return Br(e,[{key:"_makeTotpVerificationInfo",value:function(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}},{key:"generateQrCodeUrl",value:function(e,t){var n,r=!1;return(lR(e)||lR(t))&&(r=!0),r&&(lR(e)&&(e=(null===(n=this.auth.currentUser)||void 0===n?void 0:n.email)||"unknownuser"),lR(t)&&(t=this.auth.name)),"otpauth://totp/".concat(t,":").concat(e,"?secret=").concat(this.secretKey,"&issuer=").concat(t,"&algorithm=").concat(this.hashingAlgorithm,"&digits=").concat(this.codeLength)}}],[{key:"_fromStartTotpMfaEnrollmentResponse",value:function(t,n){return new e(t.totpSessionInfo.sharedSecretKey,t.totpSessionInfo.hashingAlgorithm,t.totpSessionInfo.verificationCodeLength,t.totpSessionInfo.peri
2odSec,new Date(t.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),t.totpSessionInfo.sessionInfo,n)}}]),e}();function lR(e){return"undefined"===typeof e||0===(null===e||void 0===e?void 0:e.length)}var cR="@firebase/auth",fR="0.22.0",hR=function(){function e(t){Lr(this,e),this.auth=t,this.internalListeners=new Map}return Br(e,[{key:"getUid",value:function(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}},{key:"getToken",value:function(){var e=qp(ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.assertAuthConfigured(),e.next=3,this.auth._initializationPromise;case 3:if(this.auth.currentUser){e.next=5;break}return e.abrupt("return",null);case 5:return e.next=7,this.auth.currentUser.getIdToken(t);case 7:return n=e.sent,e.abrupt("return",{accessToken:n});case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"addAuthTokenListener",value:function(e){if(this.assertAuthConfigured(),!this.internalListeners.has(e)){var t=this.auth.onIdTokenChanged((function(t){e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}}},{key:"removeAuthTokenListener",value:function(e){this.assertAuthConfigured();var t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}},{key:"assertAuthConfigured",value:function(){fI(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}},{key:"updateProactiveRefresh",value:function(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}]),e}();var dR,pR=Lv("authIdTokenMaxAge")||300,vR=null,yR=function(e){return function(){var t=qp(ti().mark((function t(n){var r,i,o;return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=n,!t.t0){t.next=5;break}return t.next=4,n.getIdTokenResult();case 4:t.t0=t.sent;case 5:if(r=t.t0,!((i=r&&((new Date).getTime()-Date.parse(r.issuedAtTime))/1e3)&&i>pR)){t.next=9;break}return t.abrupt("return");case 9:if(o=null===r||void 0===r?void 0:r.token,vR!==o){t.next=12;break}return t.abrupt("return");case 12:return vR=o,t.next=15,fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:"Bearer ".concat(o)}:{}});case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};dR="Browser",By(new Zv("auth",(function(e,t){var n=t.options,r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=r.options,a=o.apiKey,s=o.authDomain;return function(e,t){fI(a&&!a.includes(":"),"invalid-api-key",{appName:e.name}),fI(!(null===s||void 0===s?void 0:s.includes(":")),"argument-error",{appName:e.name});var r={apiKey:a,authDomain:s,clientPlatform:dR,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:kN(dR)},i=new _N(e,t,r);return function(e,t){var n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(vI);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(i,n),i}(r,i)}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((function(e,t,n){e.getProvider("auth-internal").initialize()}))),By(new Zv("auth-internal",(function(e){return function(e){return new hR(e)}(EN(e.getProvider("auth").getImmediate()))}),"PRIVATE").setInstantiationMode("EXPLICIT")),Gy(cR,fR,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(dR)),Gy(cR,fR,"esm2017");var mR,gR=Wy({apiKey:"AIzaSyBYucVOAHZmVbDSZFjLvKM6dAO4CBfH_Uo",authDomain:"anatomyappcp1.clinicalphysio.com",databaseURL:"https://anatomyappcp1.clinicalphysio.com/",projectId:"anatomi-412f1",storageBucket:"anatomi-412f1.appspot.com",messagingSenderId:"809001845026",appId:"1:809001845026:web:b29acecd884e1ea952257b"}),bR=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ky(),t=Uy(e,"auth");if(t.isInitialized())return t.getImmediate();var n=yI(e,{popupRedirectResolver:rR,persistence:[ej,AP,NP]}),r=Lv("authTokenSyncURL");if(r){var i=yR(r);kP(n,i,(function(){return i(n.currentUser)})),wP(n,(function(e){return i(e)}))}var o=jv("auth");return o&&SN(n,"http://".concat(o)),n}(gR),wR=function(e,t){var n="string"==typeof e?e:t||"(default)",r=Uy("object"==typeof e?e:Ky(),"firestore").getImmediate({identifier:n});if(!r._initialized){var i=function(e){var t=jv(e);if(t){var n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error("Invalid host ".concat(t," with no separate hostname and port!"));var r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]}}("firestore");i&&UT.apply(void 0,[r].concat(Rr(i)))}return r}(gR),kR=Tr((function(){var e,n=(0,t.useContext)(va).notes,r=function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.removeNoteById(t),e.next=3,GA(WT(wR,"n
2ote_sets",t));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,ea.jsx)("div",{className:"note--wrapper",children:(0,ea.jsxs)("ul",{className:"note__list",children:[n.listNotes.map((function(e){return(0,ea.jsx)(_v,{note:e,deleteNoteById:r},e.id)})),0===(null===(e=n.listNotes)||void 0===e?void 0:e.length)&&!1===n.loading?(0,ea.jsx)("h2",{children:"No notes available"}):null]})})})),xR=["title","titleId"];function _R(){return _R=Object.assign||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},_R.apply(this,arguments)}function ER(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function CR(e,n){var r=e.title,i=e.titleId,o=ER(e,xR);return t.createElement("svg",_R({focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,mR||(mR=t.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})))}var SR=t.forwardRef(CR),OR=(n.p,zp()),TR=function(e){var t=e.handleChange,n=e.value;return(0,ea.jsxs)("div",{className:"filter--wrapper",children:[(0,ea.jsx)("label",{className:"filter__label",htmlFor:OR,children:"Search"}),(0,ea.jsx)("input",{className:"filter__input",id:OR,type:"text",name:"filter",value:n,onChange:function(e){return t(e.target.value)}}),(0,ea.jsx)("div",{className:"filter__icon--wrap",children:(0,ea.jsx)(SR,{className:"filter__icon"})})]})},AR=Tr((function(){var e=(0,t.useContext)(va).notes,n=Xi().id;(0,t.useEffect)((function(){e.setSearch(""),e.getLearns(n)}),[n,e]);return(0,ea.jsxs)("div",{className:"container",children:[(0,ea.jsx)(TR,{handleChange:function(t){return e.setSearch(t)},value:e.textSearch}),(0,ea.jsx)(kR,{})]})})),IR=function(){function e(t){var n=t.content,r=t.id,i=void 0===r?null:r,o=t.order,a=t.scene,s=t.title,u=t.parentId;Lr(this,e),this.content=n,this.id=i,this.order=o,this.scene=a,this.title=s,this.actions=[],this.parentId=u,pn(this),Bt(this,"actions",this.getActions.bind(this))}return Br(e,[{key:"getActions",value:ti().mark((function e(){var t,n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.actions.length){e.next=7;break}return e.next=3,KA(TA(HT(wR,"note_sets",this.parentId,"notes",this.id,"actions"),PA("order")));case 3:t=e.sent,n=[],t.forEach((function(e){return n.push(e.data())})),this.actions=n;case 7:case"end":return e.stop()}}),e,this)}))}]),e}(),NR=function(){function e(t){var n=t.last_modified,r=void 0===n?null:n,i=t.region,o=t.structure,a=void 0===o?"":o,s=t.system,u=void 0===s?"":s,l=t.tags,c=void 0===l?[]:l,f=t.title,h=t.uid,d=void 0===h?null:h,p=t.id,v=void 0===p?null:p;Lr(this,e),this.last_modified=r,this.region=i,this.structure=a,this.system=u,this.tags=c,this.title=f,this.uid=d,this.id=v,this.notes=[],pn(this)}return Br(e,[{key:"getSubCollection",value:ti().mark((function e(){var t,n,r=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this.id){e.next=7;break}return e.next=3,KA(TA(HT(wR,"note_sets",this.id,"notes"),PA("order")));case 3:t=e.sent,n=[],t.forEach((function(e){return n.push(new IR(go(go({},e.data()),{},{id:e.id,parentId:r.id})))})),this.notes=n;case 7:case"end":return e.stop()}}),e,this)}))},{key:"addNewNote",value:function(e){this.notes.push(new IR({content:"",id:null,order:this.notes.length,title:"",parentId:this.id}))}}]),e}(),PR=function(){function e(){Lr(this,e),this.learn={},this.selectedIndex=0,pn(this)}return Br(e,[{key:"listNotes",get:function(){var e;return(null===(e=this.learn)||void 0===e?void 0:e.notes)||[]}},{key:"lengthNotes",get:function(){var e,t;return(null===(e=this.learn)||void 0===e||null===(t=e.notes)||void 0===t?void 0:t.length)||0}},{key:"nextNote",value:function(){this.selectedIndex<this.lengthNotes-1&&(this.selectedIndex=this.selectedIndex+1)}},{key:"reset",value:function(){this.selectedIndex=0}},{key:"prevNote",value:function(){this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}},{key:"noteSelected",get:function(){return Array.isArray(null===this||void 0===this?void 0:this.learn.notes)?this.learn.notes[this.selectedIndex]:null}},{key:"title",get:function(){var e;return(null===(e=this.learn)||void 0===e?void 0:e.title)||""}},{key:"getSubCollection",value:ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.learn.getSubCollection();case 2:case"end":return e.stop()}}),e,this)}))},{key:"getSingleLearnById",value:ti().mark((function e(t){var n;return ti().wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:return e.next=2,HA(WT(wR,"note_sets",t));case 2:return n=e.sent,this.learn=new NR(go(go({},n.data()),{},{id:n.id})),e.next=6,this.learn.getSubCollection();case 6:case"end":return e.stop()}}),e,this)}))}]),e}(),jR={_readyHuman:function(e,t){this.api&&(e.send("scene.ready",t),e.send("annotations.info",(function(t){for(var n in t)e.send("annotations.destroy",n)})))},resetColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)this.api.send("scene.colorObject",{objectId:t,tintColor:!1,opacity:!1})},setColor:function(e,t){this.api.send("scene.colorObject",{objectId:e,tintColor:[t.r/255,t.g/255,t.b/255],opacity:t.a,contrast:!1})},setAllColors:function(e){for(var t in e)this.setColor(t,e[t])},_updateCamera:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=go({},t.objectsSelected);if(this.resetColor(null===r||void 0===r?void 0:r.colors),this.setAllColors(null===t||void 0===t?void 0:t.colors),null!==r&&void 0!==r&&r.objectsSelected)for(var o in r.objectsSelected)t.objectsSelected[o]!==r.objectsSelected[o]&&(i[o]=!r.objectsSelected[o]);var a=go({},t.objectsShown);if(null!==r&&void 0!==r&&r.objectsShown)for(var s in r.objectsShown)t.objectsShown[s]!==r.objectsShown[s]&&(a[s]=!r.objectsShown[s]);e.send("scene.selectObjects",i),e.send("scene.showObjects",a),e.send("camera.set",go(go({},t.camera),{},{animate:!0,animationDuration:4})),e.send("annotations.info",(function(r){n._sendAnnotations(e,t,r)}))},_restoreObjectShown:function(e){var t={};for(var n in e)t[n]=!1;return t},_sendAnnotations:function(e,t,n){if(Object.keys(n).length)for(var r in n)e.send("annotations.destroy",r);if(t.labels&&t.labels.length>0){var i,o=Zr(t.labels);try{for(o.s();!(i=o.n()).done;){var a=i.value;e.send("labels.create",{objectId:a.objectId,annotationId:a.id,title:a.title,position:a.pos,theme:"studioNext",description:a.description,labelOffset:a.offset})}}catch(s){o.e(s)}finally{o.f()}}}},RR=function(){function e(){Lr(this,e),this.currentAction=null,this.note=null,this.prevSelectedAction=null,Object.assign(this,jR),pn(this)}return Br(e,[{key:"init",value:function(){this.human=new window.HumanAPI("myWidget")}},{key:"api",get:function(){return this.human}},{key:"updateNote",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.setPrevAction(),this.currentAction=t,this.note=e}},{key:"reset",value:function(){this.setPrevAction(),this.currentAction=0,this.updateCamera()}},{key:"setPrevAction",value:function(){this.prevSelectedAction=this.listActions[this.currentAction]||{}}},{key:"setIndexActiveAction",value:function(e){e>=0&&e<this.listActions.length&&(this.setPrevAction(),this.currentAction=e,this.updateCamera())}},{key:"listActions",get:function(){var e;return(null===(e=this.note)||void 0===e?void 0:e.actions)||[]}},{key:"updateCamera",value:function(){var e=this.listActions[this.currentAction];void 0!==e&&e!==this.prevSelectedAction&&this._updateCamera(this.human,e,this.prevSelectedAction)}},{key:"setActionById",value:function(e){var t=this.listActions.findIndex((function(t){return t.id===e}));-1!==t&&(this.setPrevAction(),this.currentAction=t,this.updateCamera())}},{key:"nextAction",value:function(){this.currentAction+1>=this.listActions.length||(this.setPrevAction(),this.currentAction=this.currentAction+1,this.updateCamera())}},{key:"prevAction",value:function(){this.currentAction-1<0||(this.setPrevAction(),this.currentAction=this.currentAction-1,this.updateCamera())}}]),e}(),LR=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function MR(){return MR=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},MR.apply(this,arguments)}var DR=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 2,665 bytes, line 2
2,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),FR=Math.abs,BR=String.fromCharCode,UR=Object.assign;function VR(e){return e.trim()}function qR(e,t,n){return e.replace(t,n)}function zR(e,t){return e.indexOf(t)}function HR(e,t){return 0|e.charCodeAt(t)}function WR(e,t,n){return e.slice(t,n)}function KR(e){return e.length}function GR(e){return e.length}function $R(e,t){return t.push(e),e}var YR=1,QR=1,XR=0,ZR=0,JR=0,eL="";function tL(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:YR,column:QR,length:a,return:""}}function nL(e,t){return UR(tL("",null,null,"",null,null,0),e,{length:-e.length},t)}function rL(){return JR=ZR<XR?HR(eL,ZR++):0,QR++,10===JR&&(QR=1,YR++),JR}function iL(){return HR(eL,ZR)}function oL(){return ZR}function aL(e,t){return WR(eL,e,t)}function sL(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function uL(e){return YR=QR=1,XR=KR(eL=e),ZR=0,[]}function lL(e){return eL="",e}function cL(e){return VR(aL(ZR-1,dL(91===e?e+2:40===e?e+1:e)))}function fL(e){for(;(JR=iL())&&JR<33;)rL();return sL(e)>2||sL(JR)>3?"":" "}function hL(e,t){for(;--t&&rL()&&!(JR<48||JR>102||JR>57&&JR<65||JR>70&&JR<97););return aL(e,oL()+(t<6&&32==iL()&&32==rL()))}function dL(e){for(;rL();)switch(JR){case e:return ZR;case 34:case 39:34!==e&&39!==e&&dL(JR);break;case 40:41===e&&dL(e);break;case 92:rL()}return ZR}function pL(e,t){for(;rL()&&e+JR!==57&&(e+JR!==84||47!==iL()););return"/*"+aL(t,ZR-1)+"*"+BR(47===e?e:rL())}function vL(e){for(;!sL(iL());)rL();return aL(e,ZR)}var yL="-ms-",mL="-moz-",gL="-webkit-",bL="comm",wL="rule",kL="decl",xL="@keyframes";function _L(e,t){for(var n="",r=GR(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function EL(e,t,n,r){switch(e.type){case"@import":case kL:return e.return=e.return||e.value;case bL:return"";case xL:return e.return=e.value+"{"+_L(e.children,r)+"}";case wL:e.value=e.props.join(",")}return KR(n=_L(e.children,r))?e.return=e.value+"{"+n+"}":""}function CL(e){return function(t){t.root||(t=t.return)&&e(t)}}function SL(e){return lL(OL("",null,null,null,[""],e=uL(e),0,[0],e))}function OL(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,f=a,h=0,d=0,p=0,v=1,y=1,m=1,g=0,b="",w=i,k=o,x=r,_=b;y;)switch(p=g,g=rL()){case 40:if(108!=p&&58==HR(_,f-1)){-1!=zR(_+=qR(cL(g),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:_+=cL(g);break;case 9:case 10:case 13:case 32:_+=fL(p);break;case 92:_+=hL(oL()-1,7);continue;
vendor: 5,926 bytes, line 2
2case 47:switch(iL()){case 42:case 47:$R(AL(pL(rL(),oL()),t,n),u);break;default:_+="/"}break;case 123*v:s[l++]=KR(_)*m;case 125*v:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+c:d>0&&KR(_)-f&&$R(d>32?IL(_+";",r,n,f-1):IL(qR(_," ","")+";",r,n,f-2),u);break;case 59:_+=";";default:if($R(x=TL(_,t,n,l,c,i,s,b,w=[],k=[],f),o),123===g)if(0===c)OL(_,t,x,x,w,o,f,s,k);else switch(99===h&&110===HR(_,3)?100:h){case 100:case 109:case 115:OL(e,x,x,r&&$R(TL(e,x,x,0,0,i,s,b,i,w=[],f),k),i,k,f,s,r?w:k);break;default:OL(_,x,x,x,[""],k,0,s,k)}}l=c=d=0,v=m=1,b=_="",f=a;break;case 58:f=1+KR(_),d=p;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==(JR=ZR>0?HR(eL,--ZR):0,QR--,10===JR&&(QR=1,YR--),JR))continue;switch(_+=BR(g),g*v){case 38:m=c>0?1:(_+="\f",-1);break;case 44:s[l++]=(KR(_)-1)*m,m=1;break;case 64:45===iL()&&(_+=cL(rL())),h=iL(),c=f=KR(b=_+=vL(oL())),g++;break;case 45:45===p&&2==KR(_)&&(v=0)}}return o}function TL(e,t,n,r,i,o,a,s,u,l,c){for(var f=i-1,h=0===i?o:[""],d=GR(h),p=0,v=0,y=0;p<r;++p)for(var m=0,g=WR(e,f+1,f=FR(v=a[p])),b=e;m<d;++m)(b=VR(v>0?h[m]+" "+g:qR(g,/&\f/g,h[m])))&&(u[y++]=b);return tL(e,t,n,0===i?wL:s,u,l,c)}function AL(e,t,n){return tL(e,t,n,bL,BR(JR),WR(e,2,-2),0)}function IL(e,t,n,r){return tL(e,t,n,kL,WR(e,0,r),WR(e,r+1,-1),r)}var NL=function(e,t,n){for(var r=0,i=0;r=i,i=iL(),38===r&&12===i&&(t[n]=1),!sL(i);)rL();return aL(e,ZR)},PL=function(e,t){return lL(function(e,t){var n=-1,r=44;do{switch(sL(r)){case 0:38===r&&12===iL()&&(t[n]=1),e[n]+=NL(ZR-1,t,n);break;case 2:e[n]+=cL(r);break;case 4:if(44===r){e[++n]=58===iL()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=BR(r)}}while(r=rL());return e}(uL(e),t))},jL=new WeakMap,RL=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||jL.get(n))&&!r){jL.set(e,!0);for(var i=[],o=PL(t,i),a=n.props,s=0,u=0;s<o.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},LL=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ML(e,t){switch(function(e,t){return 45^HR(e,0)?(((t<<2^HR(e,0))<<2^HR(e,1))<<2^HR(e,2))<<2^HR(e,3):0}(e,t)){case 5103:return"-webkit-print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gL+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gL+e+mL+e+yL+e+e;case 6828:case 4268:return gL+e+yL+e+e;case 6165:return gL+e+yL+"flex-"+e+e;case 5187:return gL+e+qR(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return gL+e+yL+"flex-item-"+qR(e,/flex-|-self/,"")+e;case 4675:return gL+e+yL+"flex-line-pack"+qR(e,/align-content|flex-|-self/,"")+e;case 5548:return gL+e+yL+qR(e,"shrink","negative")+e;case 5292:return gL+e+yL+qR(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+qR(e,"-grow","")+gL+e+yL+qR(e,"grow","positive")+e;case 4554:return gL+qR(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return qR(qR(qR(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return qR(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return qR(qR(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+gL+e+e;case 4095:case 3583:case 4068:case 2532:return qR(e,/(.+)-inline(.+)/,"-webkit-$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(KR(e)-1-t>6)switch(HR(e,t+1)){case 109:if(45!==HR(e,t+4))break;case 102:return qR(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==HR(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zR(e,"stretch")?ML(qR(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==HR(e,t+1))break;case 6444:switch(HR(e,KR(e)-3-(~zR(e,"!important")&&10))){case 107:return qR(e,":",":-webkit-")+e;case 101:return qR(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===HR(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(HR(e,t+11)){case 114:return gL+e+yL+qR(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gL+e+yL+qR(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gL+e+yL+qR(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gL+e+yL+e+e}return e}var DL=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kL:e.return=ML(e.value,e.length);break;case xL:return _L([nL(e,{value:qR(e.value,"@","@-webkit-")})],r);case wL:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _L([nL(e,{props:[qR(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return _L([nL(e,{props:[qR(t,/:(plac\w+)/,":-webkit-input-$1")]}),nL(e,{props:[qR(t,/:(plac\w+)/,":-moz-$1")]}),nL(e,{props:[qR(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],FL=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||DL;var i,o,a={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var u=[RL,LL];var l,c=[EL,CL((function(e){l.insert(e)}))],f=function(e){var t=GR(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}(u.concat(r,c));o=function(e,t,n,r){l=n,function(e){_L(SL(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};
2var h={key:t,sheet:new DR({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h};var BL=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var UL=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},VL={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qL=/[A-Z]|^ms/g,zL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HL=function(e){return 45===e.charCodeAt(1)},WL=function(e){return null!=e&&"boolean"!==typeof e},KL=Uf((function(e){return HL(e)?e:e.replace(qL,"-$&").toLowerCase()})),GL=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(zL,(function(e,t,n){return YL={name:t,styles:n,next:YL},t}))}return 1===VL[e]||HL(e)||"number"!==typeof t||0===t?t:t+"px"};function $L(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return YL={name:n.name,styles:n.styles,next:YL},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)YL={name:r.name,styles:r.styles,next:YL},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=$L(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":WL(a)&&(r+=KL(o)+":"+GL(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=$L(e,t,a);switch(o){case"animation":case"animationName":r+=KL(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)WL(a[u])&&(r+=KL(o)+":"+GL(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=YL,o=n(e);return YL=i,$L(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var YL,QL=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var XL=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";YL=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=$L(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=$L(n,t,e[a]),r&&(i+=o[a]);QL.lastIndex=0;for(var s,u="";null!==(s=QL.exec(i));)u+="-"+s[1];return{name:UL(i)+u,styles:i,next:YL}},ZL=!!r.useInsertionEffect&&r.useInsertionEffect,JL=ZL||function(e){return e()},eM=(ZL||t.useLayoutEffect,{}.hasOwnProperty),tM=(0,t.createContext)("undefined"!==typeof HTMLElement?FL({key:"css"}):null);tM.Provider;var nM=function(e){return(0,t.forwardRef)((function(n,r){var i=(0,t.useContext)(tM);return e(n,i,r)}))},rM=(0,t.createContext)({});var iM="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",oM=function(e,t){var n={};for(var r in t)eM.call(t,r)&&(n[r]=t[r]);return n.__EMOTION_TYPE_PLEASE_DO_NOT_USE__=e,n},aM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;BL(t,n,r);JL((function(){return function(e,t,n){BL(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)}));return null},sM=nM((function(e,n,r){var i=e.css;"string"===typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,a=[i],s="";"string"===typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,a,e.className):null!=e.className&&(s=e.className+" ");var u=XL(a,void 0,(0,t.useContext)(rM));s+=n.key+"-"+u.name;var l={};for(var c in e)eM.call(e,c)&&"css"!==c&&c!==iM&&(l[c]=e[c]);return l.ref=r,l.className=s,(0,t.createElement)(t.Fragment,null,(0,t.createElement)(aM,{cache:n,serialized:u,isStringTag:"string"===typeof o}),(0,t.createElement)(o,l))}));var uM=function(e,n){var r=arguments;if(null==n||!eM.call(n,"css"))return t.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=sM,o[1]=oM(e,n);for(var a=2;a<i;a++)o[a]=r[a];return t.createElement.apply(null,o)};function lM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return XL(t)}function cM(e){return go(go({},e),{}
2,{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}Math.min,Math.max;var fM=["top","right","bottom","left"];fM.reduce((function(e,t){return e.concat(t,t+"-start",t+"-end")}),[]);var hM;function dM(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pM(e){return dM(e).getComputedStyle(e)}function vM(e){return e instanceof dM(e).Node}function yM(e){return vM(e)?(e.nodeName||"").toLowerCase():""}function mM(){if(hM)return hM;var e=navigator.userAgentData;return e&&Array.isArray(e.brands)?hM=e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function gM(e){return e instanceof dM(e).HTMLElement}function bM(e){return e instanceof dM(e).Element}function wM(e){return"undefined"!=typeof ShadowRoot&&(e instanceof dM(e).ShadowRoot||e instanceof ShadowRoot)}function kM(e){var t=pM(e),n=t.overflow,r=t.overflowX,i=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!["inline","contents"].includes(o)}function xM(){return/^((?!chrome|android).)*safari/i.test(mM())}function _M(e){return["html","body","#document"].includes(yM(e))}Math.min,Math.max;var EM=Math.round;function CM(e){var t=pM(e),n=parseFloat(t.width),r=parseFloat(t.height),i=gM(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=EM(n)!==o||EM(r)!==a;return s&&(n=o,r=a),{width:n,height:r,fallback:s}}function SM(e){return bM(e)?e:e.contextElement}var OM={x:1,y:1};function TM(e){var t=SM(e);if(!gM(t))return OM;var n=t.getBoundingClientRect(),r=CM(t),i=r.width,o=r.height,a=r.fallback,s=(a?EM(n.width):n.width)/i,u=(a?EM(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}function AM(e,t,n,r){var i,o;void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),s=SM(e),u=OM;t&&(r?bM(r)&&(u=TM(r)):u=TM(e));var l=s?dM(s):window,c=xM()&&n,f=(a.left+(c&&(null==(i=l.visualVie
2wport)?void 0:i.offsetLeft)||0))/u.x,h=(a.top+(c&&(null==(o=l.visualViewport)?void 0:o.offsetTop)||0))/u.y,d=a.width/u.x,p=a.height/u.y;if(s)for(var v=dM(s),y=r&&bM(r)?dM(r):r,m=v.frameElement;m&&r&&y!==v;){var g=TM(m),b=m.getBoundingClientRect(),w=getComputedStyle(m);b.x+=(m.clientLeft+parseFloat(w.paddingLeft))*g.x,b.y+=(m.clientTop+parseFloat(w.paddingTop))*g.y,f*=g.x,h*=g.y,d*=g.x,p*=g.y,f+=b.x,h+=b.y,m=dM(m).frameElement}return cM({width:d,height:p,x:f,y:h})}function IM(e){return((vM(e)?e.ownerDocument:e.document)||window.document).documentElement}function NM(e){if("html"===yM(e))return e;var t=e.assignedSlot||e.parentNode||wM(e)&&e.host||IM(e);return wM(t)?t.host:t}function PM(e){var t=NM(e);return _M(t)?t.ownerDocument.body:gM(t)&&kM(t)?t:PM(t)}function jM(e,t){var n;void 0===t&&(t=[]);var r=PM(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=dM(r);return i?t.concat(o,o.visualViewport||[],kM(r)?r:[]):t.concat(r,jM(r))}var RM=t.useLayoutEffect,LM=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],MM=function(){};function DM(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function FM(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(DM(e,a)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var BM=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Mr(e)&&null!==e?[e]:[];var t},UM=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,go({},bo(e,LM))},VM=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!==n&&void 0!==n?n:{},o(t,e),a)}};function qM(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function zM(e){return qM(e)?window.pageYOffset:e.scrollTop}function HM(e,t){qM(e)?window.scrollTo(0,t):e.scrollTop=t}function WM(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function KM(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:MM,i=zM(e),o=t-i,a=10,s=0;function u(){var t=WM(s+=a,i,o,n);HM(e,t),s<n?window.requestAnimationFrame(u):r(e)}u()}function GM(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?HM(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&HM(e,Math.max(t.offsetTop-i,0))}function $M(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var YM=!1,QM={get passive(){return YM=!0}},XM="undefined"!==typeof window?window:{};XM.addEventListener&&XM.removeEventListener&&(XM.addEventListener("p",MM,QM),XM.removeEventListener("p",MM,!1));var ZM=YM;function JM(e){return null!=e}function eD(e,t,n){return e?t:n}function tD(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),h=f.bottom,d=f.height,p=f.top,v=n.offsetParent.getBoundingClientRect().top,y=a?window.innerHeight:function(e){return qM(e)?window.innerHeight:e.clientHeight}(u),m=zM(u),g=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=v-b,k=y-p,x=w+m,_=c-m-p,E=h-y+m+g,C=m+p-b,S=160;switch(i){case"auto":case"bottom":if(k>=d)return{placement:"bottom",maxHeight:t};if(_>=d&&!a)return o&&KM(u,E,S),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&k>=r)return o&&KM(u,E,S),{placement:"bottom",maxHeight:a?k-g:_-g};if("auto"===i||a){var O=t,T=a?w:x;return T>=r&&(O=Math.min(T-g-s,t)),{placement:"top",maxHeight:O}}if("bottom"===i)return o&&HM(u,E),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(x>=d&&!a)return o&&KM(u,C,S),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var A=t;return(!a&&x>=r||a&&w>=r)&&(A=a?w-b:x-b),o&&KM(u,C,S),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}var nD=function(e){return"auto"===e?"bottom":e},rD=(0,t.createContext)(null),iD=function(e){var n=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,u=e.theme,l=((0,t.useContext)(rD)||{}).setPortalPlacement,c=(0,t.useRef)(null),f=Yr((0,t.useState)(i),2),h=f[0],d=f[1],p=Yr((0,t.useState)(null),2),v=p[0],y=p[1],m=u.spacing.controlHeight;return RM((function(){var e=c.current;if(e){var t="fixed"===a,n=tD({maxHeight:i,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:m});d(n.maxHeight),y(n.placement),null===l||void 0===l||l(n.placement)}}),[i,o,a,s,r,l,m]),n({ref:c,placerProps:go(go({},e),{},{placement:v||nD(o),maxHeight:h})})},oD=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return go({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},aD=oD,sD=oD,uD=function(e){var t=e.children,n=e.innerProps;return uM("div",MR({},VM(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};uD.defaultProps={children:"No options"};var lD=function(e){var t=e.children,n=e.innerProps;return uM("div",MR({},VM(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};lD.defaultProps={children:"Loading..."};var cD,fD=["size"];var hD,dD,pD={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},vD=function(e){var t=e.size,n=bo(e,fD);
2return uM("svg",MR({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:pD},n))},yD=function(e){return uM(vD,MR({size:20},e),uM("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},mD=function(e){return uM(vD,MR({size:20},e),uM("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gD=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return go({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},bD=gD,wD=gD,kD=function(){var e=lM.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(cD||(hD=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],dD||(dD=hD.slice(0)),cD=Object.freeze(Object.defineProperties(hD,{raw:{value:Object.freeze(dD)}})))),xD=function(e){var t=e.delay,n=e.offset;return uM("span",{css:lM({animation:"".concat(kD," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},_D=function(e){var t=e.innerProps,n=e.isRtl;return uM("div",MR({},VM(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),uM(xD,{delay:0,offset:n}),uM(xD,{delay:160,offset:!0}),uM(xD,{delay:320,offset:!n}))};_D.defaultProps={size:4};var ED=["data"],CD=["innerRef","isDisabled","isHidden","inputClassName"],SD={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},OD={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":go({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},SD)},TD=function(e){return go({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},SD)},AD=function(e){var t=e.children,n=e.innerProps;return uM("div",n,t)};var ID={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return uM("div",MR({},VM(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||uM(yD,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return uM("div",MR({ref:i},VM(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return uM("div",MR({},VM(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||uM(mD,null))},DownChevron:mD,CrossIcon:yD,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,l=e.theme,c=e.selectProps;return uM("div",MR({},VM(e,"group",{group:!0}),s),uM(o,MR({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:i,cx:n}),u),uM("div",null,t))},GroupHeading:function(e){var t=UM(e);t.data;var n=bo(t,ED);return uM("div",MR({},VM(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return uM("div",MR({},VM(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return uM("span",MR({},t,VM(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=UM(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,s=r.inputClassName,u=bo(r,CD);return uM("div",MR({},VM(e,"input",{"input-container":!0}),{"data-value":n||""}),uM("input",MR({className:t({input:!0},s),ref:i,style:TD(a),disabled:o},u)))},LoadingIndicator:_D,Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return uM("div",MR({},VM(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return uM("div",MR({},VM(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var n=e.appendTo,r=e.children,i=e.controlElement,o=e.innerProps,a=e.menuPlacement,s=e.menuPosition,u=(0,t.useRef)(null),l=(0,t.useRef)(null),c=Yr((0,t.useState)(nD(a)),2),f=c[0],h=c[1],d=(0,t.useMemo)((function(){return{setPortalPlacement:h}}),[]),p=Yr((0,t.useState)(null),2),v=p[0],y=p[1],m=(0,t.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===s?0:window.pageYOffset,n=e[f]+t;n===(null===v||void 0===v?void 0:v.offset)&&e.left===(null===v||void 0===v?void 0:v.rect.left)&&e.width===(null===v||void 0===v?void 0:v.rect.width)||y({offset:n,rect:e})}}),[i,s,f,null===v||void 0===v?void 0:v.offset,null===v||void 0===v?void 0:v.rect.left,null===v||void 0===v?void 0:v.rect.width]);RM((function(){m()}),[m]);var g=(0,t.useCallback)((function(){"function"===typeof l.current&&(l.current(),l.current=null),i&&u.current&&(l.current=function(e,t,n,r){void 0===r&&(r={});var i=r,o=i.ancestorScroll,a=void 0===o||o,s=i.ancestorResize,u=void 0===s||s,l=i.elementResize,c=void 0===l||l,f=i.animationFrame,h=void 0!==f&&f,d=a&&!h,p=d||u?[].concat(Rr(bM(e)?jM(e):e.contextElement?jM(e.contextElement):[]),Rr(jM(t))):[];p.forEach((function(e){d&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)}));var v,y=null;c&&(y=new ResizeObserver((function(){n()})),bM(e)&&!h&&y.observe(e),bM(e)||!e.contextElement||h||y.observe(e.contextElement),y.observe(t));var m=h?AM(e):null;return h&&function t(){var r=AM(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,v=requestAnimationFrame(t)}(),n(),function(){var e;p.forEach((function(e){d&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)})),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(v)}}(i,u.current,m,{elementResize:"ResizeObserver"in window}))}),[i,m]);RM((function(){g()}),[g]);var b=(0,t.useCallback)((function(e){u.current=e,g()}),[g]);if(!n&&"fixed"!==s||!v)return null;var w=uM("div",MR({ref:b},VM(go(go({},e),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return uM(rD.Provider,{value:d},n?(0,dr.createPortal)(w,n):w)},LoadingMessage:lD,NoOptionsMessage:uD,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,u=n.Container,l=n.Label,c=n.Remove;return uM(u,{data:r,innerProps:go(go({},VM(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},uM(l,{data:r,innerProps:go({},VM(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),uM(c,{data:r,innerProps:go(go({},VM(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:AD,MultiValueLabel:AD,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return uM("div",MR({role:"button"},n),t||uM(yD,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return uM("div",MR({},VM(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return uM("div",MR({},VM(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return uM("div",MR({},VM(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return uM("div",MR({},VM(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return uM("div",MR({},VM(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},ND=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function PD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||ND(r)&&ND(i)))return!1;var r,i;return!0}for(var jD={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},RD=function(e){return uM("span",MR({css:jD},e))},LD={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;
2switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(l(a,n),".");if("menu"===t){var c=s?" disabled":"",f="".concat(u?"selected":"focused").concat(c);return"option ".concat(o," ").concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},MD=function(e){var n=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,o=e.focusableOptions,a=e.isFocused,s=e.selectValue,u=e.selectProps,l=e.id,c=u.ariaLiveMessages,f=u.getOptionLabel,h=u.inputValue,d=u.isMulti,p=u.isOptionDisabled,v=u.isSearchable,y=u.menuIsOpen,m=u.options,g=u.screenReaderStatus,b=u.tabSelectsValue,w=u["aria-label"],k=u["aria-live"],x=(0,t.useMemo)((function(){return go(go({},LD),c||{})}),[c]),_=(0,t.useMemo)((function(){var e,t="";if(n&&x.onChange){var r=n.option,i=n.options,o=n.removedValue,a=n.removedValues,u=n.value,l=o||r||(e=u,Array.isArray(e)?null:e),c=l?f(l):"",h=i||a||void 0,d=h?h.map(f):[],v=go({isDisabled:l&&p(l,s),label:c,labels:d},n);t=x.onChange(v)}return t}),[n,x,p,s,f]),E=(0,t.useMemo)((function(){var e="",t=r||i,n=!!(r&&s&&s.includes(r));if(t&&x.onFocus){var a={focused:t,label:f(t),isDisabled:p(t,s),isSelected:n,options:o,context:t===r?"menu":"value",selectValue:s};e=x.onFocus(a)}return e}),[r,i,f,p,x,o,s]),C=(0,t.useMemo)((function(){var e="";if(y&&m.length&&x.onFilter){var t=g({count:o.length});e=x.onFilter({inputValue:h,resultsMessage:t})}return e}),[o,h,y,x,m,g]),S=(0,t.useMemo)((function(){var e="";if(x.guidance){var t=i?"value":y?"menu":"input";e=x.guidance({"aria-label":w,context:t,isDisabled:r&&p(r,s),isMulti:d,isSearchable:v,tabSelectsValue:b})}return e}),[w,r,i,d,p,v,y,x,s,b]),O="".concat(E," ").concat(C," ").concat(S),T=uM(t.Fragment,null,uM("span",{id:"aria-selection"},_),uM("span",{id:"aria-context"},O)),A="initial-input-focus"===(null===n||void 0===n?void 0:n.action);return uM(t.Fragment,null,uM(RD,{id:l},A&&T),uM(RD,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text"},a&&!A&&T))},DD=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"}
vendor: 39,111 bytes, line 2
2,{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],FD=new RegExp("["+DD.map((function(e){return e.letters})).join("")+"]","g"),BD={},UD=0;UD<DD.length;UD++)for(var VD=DD[UD],qD=0;qD<VD.letters.length;qD++)BD[VD.letters[qD]]=VD.base;var zD=function(e){return e.replace(FD,(function(e){return BD[e]}))},HD=function(e,t){void 0===t&&(t=PD);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(zD),WD=function(e){return e.replace(/^\s+|\s+$/g,"")},KD=function(e){return"".concat(e.label," ").concat(e.value)},GD=["innerRef"];function $D(e){var t=e.innerRef,n=function(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=Object.entries(e).filter((function(e){var t=Yr(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=Yr(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(bo(e,GD),"onExited","in","enter","exit","appear");return uM("input",MR({ref:t},n,{css:lM({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var YD=["boxSizing","height","overflow","paddingRight","position"],QD={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function XD(e){e.preventDefault()}function ZD(e){e.stopPropagation()}function JD(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function eF(){return"ontouchstart"in window||navigator.maxTouchPoints}var tF=!("undefined"===typeof window||!window.document||!window.document.createElement),nF=0,rF={capture:!1,passive:!1};var iF=function(){return document.activeElement&&document.activeElement.blur()},oF={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function aF(e){var n=e.children,r=e.lockEnabled,i=e.captureEnabled,o=function(e){var n=e.isEnabled,r=e.onBottomArrive,i=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,s=(0,t.useRef)(!1),u=(0,t.useRef)(!1),l=(0,t.useRef)(0),c=(0,t.useRef)(null),f=(0,t.useCallback)((function(e,t){if(null!==c.current){var n=c.current,l=n.scrollTop,f=n.scrollHeight,h=n.clientHeight,d=c.current,p=t>0,v=f-h-l,y=!1;v>t&&s.current&&(i&&i(e),s.current=!1),p&&u.current&&(a&&a(e),u.current=!1),p&&t>v?(r&&!s.current&&r(e),d.scrollTop=f,y=!0,s.current=!0):!p&&-t>l&&(o&&!u.current&&o(e),d.scrollTop=0,y=!0,u.current=!0),y&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[r,i,o,a]),h=(0,t.useCallback)((function(e){f(e,e.deltaY)}),[f]),d=(0,t.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),p=(0,t.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;f(e,t)}),[f]),v=(0,t.useCallback)((function(e){if(e){var t=!!ZM&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",p,t)}}),[p,d,h]),y=(0,t.useCallback)((function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",p,!1))}),[p,d,h]);return(0,t.useEffect)((function(){if(n){var e=c.current;return v(e),function(){y(e)}}}),[n,v,y]),function(e){c.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var n=e.isEnabled,r=e.accountForScrollbars,i=void 0===r||r,o=(0,t.useRef)({}),a=(0,t.useRef)(null),s=(0,t.useCallback)((function(e){if(tF){var t=document.body,n=t&&t.style;if(i&&YD.forEach((function(e){var t=n&&n[e];o.current[e]=t})),i&&nF<1){var r=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(QD).forEach((function(e){var t=QD[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&eF()&&(t.addEventListener("touchmove",XD,rF),e&&(e.addEventListener("touchstart",JD,rF),e.addEventListener("touchmove",ZD,rF))),nF+=1}}),[i]),u=(0,t.useCallback)((function(e){if(tF){var t=document.body,n=t&&t.style;nF=Math.max(nF-1,0),i&&nF<1&&YD.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&eF()&&(t.removeEventListener("touchmove",XD,rF),e&&(e.removeEventListener("touchstart",JD,rF),e.removeEventListener("touchmove",ZD,rF)))}}),[i]);return(0,t.useEffect)((function(){if(n){var e=a.current;return s(e),function(){u(e)}}}),[n,s,u]),function(e){a.current=e}}({isEnabled:r});return uM(t.Fragment,null,r&&uM("div",{onClick:iF,css:oF}),n((function(e){o(e),a(e)})))}var sF={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},uF=function(e){var t=e.name,n=e.onFocus;return uM("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:sF,value:"",onChange:function(){}})},lF={clearIndicator:wD,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return go({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:bD,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return go({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return go({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return go(go({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},OD),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return go({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:sD,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return go((yo(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),yo(n,"position","absolute"),yo(n,"width","100%"),yo(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return go({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return go({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return go({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return go({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:aD,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return go({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return go({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return go({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return go({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var cF,fF={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},hF={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:$M(),captureMenuScroll:!$M(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=go({ignoreCase:!0,ignoreAccents:!0,stringify:KD,trim:!0,matchFrom:"any"},cF),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,u=a?WD(t):t,l=a?WD(o(e)):o(e);return r&&(u=u.toLowerCase(),l=l.toLowerCase()),i&&(u=HD(u),l=zD(l)),"start"===s?l.substr(0,u.length)===u:l.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function dF(e,t,n,r){return{type:"option",data:t,isDisabled:bF(e,t,n),isSelected:wF(e,t,n),label:mF(e,t),value:gF(e,t),index:r}}function pF(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return dF(e,n,t,r)})).filter((function(t){return yF(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=dF(e,n,t,r);return yF(e,o)?o:void 0})).filter(JM)}function vF(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Rr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function yF(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!xF(e)||!o)&&kF(e,{label:a,value:s,data:i},r)}var mF=function(e,t){return e.getOptionLabel(t)},gF=function(e,t){return e.getOptionValue(t)};function bF(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function wF(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=gF(e,t);return n.some((function(t){return gF(e,t)===r}))}function kF(e,t,n){return!e.filterOption||e.filterOption(t,n)}var xF=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_F=1,EF=function(e){Vr(r,e);var n=Kr(r);function r(e){var t;if(Lr(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat(Rr(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==i})),a=eD(n,o,o[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(eD(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),o=eD(e,i,i[0]||null);t.onChange(o,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return FM.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return mF(t.props,e)},t.getOptionValue=function(e){return gF(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=lF[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,go(go({},ID),e.components);var e},t.buildCategorizedOptions=function(){return pF(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return vF(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:go({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"===typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&qM(e.target)&&t.props.onMenuClose():"function"===typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return xF(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,f=n.tabSelectsValue,h=n.openMenuOnFocus,d=t.state,p=d.focusedOption,v=d.focusedValue,y=d.selectValue;if(!u&&("function"!==typeof c||(c(e),!e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)t.removeValue(v);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!f||!p||h&&t.isOptionSelected(p,y))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(l){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++_F),t.state.selectValue=BM(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.buildFocusableOptions(),o=i.indexOf(t.state.selectValue[0]);t.state.focusedOption=i[o]}return t}return Br(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&GM(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(GM(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(fF):go(go({},fF),this.props.theme):fF}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return bF(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return wF(this.props,e,t)}},{key:"filterOption",value:function(e,t){return kF(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,r=e.isSearchable,i=e.inputId,o=e.inputValue,a=e.tabIndex,s=e.form,u=e.menuIsOpen,l=e.required,c=this.getComponents().Input,f=this.state,h=f.inputIsHidden,d=f.ariaSelection,p=this.commonProps,v=i||this.getElementId("input"),y=go(go(go({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox"},u&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===d||void 0===d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?t.createElement(c,MR({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:n,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:o},y)):t.createElement($D,MR({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:MM,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:s,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,o=n.MultiValueLabel,a=n.MultiValueRemove,s=n.SingleValue,u=n.Placeholder,l=this.commonProps,c=this.props,f=c.controlShouldRenderValue,h=c.isDisabled,d=c.isMulti,p=c.inputValue,v=c.placeholder,y=this.state,m=y.selectValue,g=y.focusedValue,b=y.isFocused;if(!this.hasValue()||!f)return p?null:t.createElement(u,MR({},l,{key:"placeholder",isDisabled:h,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),v);if(d)return m.map((function(n,s){var u=n===g,c="".concat(e.getOptionLabel(n),"-").concat(e.getOptionValue(n));return t.createElement(r,MR({},l,{components:{Container:i,Label:o,Remove:a},isFocused:u,isDisabled:h,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),e.formatOptionLabel(n,"value"))}));if(p)return null;var w=m[0];return t.createElement(s,MR({},l,{data:w,isDisabled:h}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t.createElement(e,MR({},n,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!e||!o)return null;return t.createElement(e,MR({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return t.createElement(r,MR({},i,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t.createElement(e,MR({},n,{innerProps:o,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,a=n.MenuList,s=n.MenuPortal,u=n.LoadingMessage,l=n.NoOptionsMessage,c=n.Option,f=this.commonProps,h=this.state.focusedOption,d=this.props,p=d.captureMenuScroll,v=d.inputValue,y=d.isLoading,m=d.loadingMessage,g=d.minMenuHeight,b=d.maxMenuHeight,w=d.menuIsOpen,k=d.menuPlacement,x=d.menuPosition,_=d.menuPortalTarget,E=d.menuShouldBlockScroll,C=d.menuShouldScrollIntoView,S=d.noOptionsMessage,O=d.onMenuScrollToTop,T=d.onMenuScrollToBottom;if(!w)return null;var A,I=function(n,r){var i=n.type,o=n.data,a=n.isDisabled,s=n.isSelected,u=n.label,l=n.value,d=h===o,p=a?void 0:function(){return e.onOptionHover(o)},v=a?void 0:function(){return e.selectOption(o)},y="".concat(e.getElementId("option"),"-").concat(r),m={id:y,onClick:v,onMouseMove:p,onMouseOver:p,tabIndex:-1};return t.createElement(c,MR({},f,{innerProps:m,data:o,isDisabled:a,isSelected:s,key:y,label:u,type:i,value:l,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map((function(n){if("group"===n.type){var o=n.data,a=n.options,s=n.index,u="".concat(e.getElementId("group"),"-").concat(s),l="".concat(u,"-heading");return t.createElement(r,MR({},f,{key:u,data:o,options:a,Heading:i,headingProps:{id:l,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return I(e,"".concat(s,"-").concat(e.index))})))}if("option"===n.type)return I(n,"".concat(n.index))}));else if(y){var N=m({inputValue:v});if(null===N)return null;A=t.createElement(u,f,N)}else{var P=S({inputValue:v});if(null===P)return null;A=t.createElement(l,f,P)}var j={minMenuHeight:g,maxMenuHeight:b,menuPlacement:k,menuPosition:x,menuShouldScrollIntoView:C},R=t.createElement(iD,MR({},f,j),(function(n){var r=n.ref,i=n.placerProps,s=i.placement,u=i.maxHeight;return t.createElement(o,MR({},f,j,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:y,placement:s}),t.createElement(aF,{captureEnabled:p,onTopArrive:O,onBottomArrive:T,lockEnabled:E},(function(n){return t.createElement(a,MR({},f,{innerRef:function(t){e.getMenuListRef(t),n(t)},isLoading:y,maxHeight:u,focusedOption:h}),A)})))}));return _||"fixed"===x?t.createElement(s,MR({},f,{appendTo:_,controlElement:this.controlRef,menuPlacement:k,menuPosition:x}),R):R}},{key:"renderFormField",value:function(){var e=this,n=this.props,r=n.delimiter,i=n.isDisabled,o=n.isMulti,a=n.name,s=n.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!i)return t.createElement(uF,{name:a,onFocus:this.onValueInputFocus});if(a&&!i){if(o){if(r){var l=u.map((function(t){return e.getOptionValue(t)})).join(r);return t.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(n,r){return t.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:e.getOptionValue(n)})})):t.createElement("input",{name:a,type:"hidden",value:""});return t.createElement("div",null,c)}var f=u[0]?this.getOptionValue(u[0]):"";return t.createElement("input",{name:a,type:"hidden",value:f})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,o=n.focusedValue,a=n.isFocused,s=n.selectValue,u=this.getFocusableOptions();return t.createElement(MD,MR({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:o,isFocused:a,selectValue:s,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),n=e.Control,r=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,u=a.id,l=a.isDisabled,c=a.menuIsOpen,f=this.state.isFocused,h=this.commonProps=this.getCommonProps();return t.createElement(i,MR({},h,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:f}),this.renderLiveRegion(),t.createElement(n,MR({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:f,menuIsOpen:c}),t.createElement(o,MR({},h,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),t.createElement(r,MR({},h,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=e.options,l=e.value,c=e.menuIsOpen,f=e.inputValue,h=e.isMulti,d=BM(l),p={};if(n&&(l!==n.value||u!==n.options||c!==n.menuIsOpen||f!==n.inputValue)){var v=c?function(e,t){return vF(pF(e,t))}(e,d):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null,m=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);p={selectValue:d,focusedOption:m,focusedValue:y,clearFocusValueOnUpdate:!1}}var g=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},b=o,w=a&&s;return a&&!w&&(b={value:eD(h,d,d[0]||null),options:d,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null===o||void 0===o?void 0:o.action)&&(b=null),go(go(go({},p),g),{},{prevProps:e,ariaSelection:b,prevWasFocused:w})}}]),r}(t.Component);EF.defaultProps=hF;
2var CF=(0,t.forwardRef)((function(e,n){var r=function(e){var n=e.defaultInputValue,r=void 0===n?"":n,i=e.defaultMenuIsOpen,o=void 0!==i&&i,a=e.defaultValue,s=void 0===a?null:a,u=e.inputValue,l=e.menuIsOpen,c=e.onChange,f=e.onInputChange,h=e.onMenuClose,d=e.onMenuOpen,p=e.value,v=bo(e,LR),y=Yr((0,t.useState)(void 0!==u?u:r),2),m=y[0],g=y[1],b=Yr((0,t.useState)(void 0!==l?l:o),2),w=b[0],k=b[1],x=Yr((0,t.useState)(void 0!==p?p:s),2),_=x[0],E=x[1],C=(0,t.useCallback)((function(e,t){"function"===typeof c&&c(e,t),E(e)}),[c]),S=(0,t.useCallback)((function(e,t){var n;"function"===typeof f&&(n=f(e,t)),g(void 0!==n?n:e)}),[f]),O=(0,t.useCallback)((function(){"function"===typeof d&&d(),k(!0)}),[d]),T=(0,t.useCallback)((function(){"function"===typeof h&&h(),k(!1)}),[h]),A=void 0!==u?u:m,I=void 0!==l?l:w,N=void 0!==p?p:_;return go(go({},v),{},{inputValue:A,menuIsOpen:I,onChange:C,onInputChange:S,onMenuClose:T,onMenuOpen:O,value:N})}(e);return t.createElement(EF,MR({ref:n},r))})),SF=CF;function OF(){return(0,ea.jsx)("svg",{width:"7",height:"12",viewBox:"0 0 7 12",xmlns:"http://www.w3.org/2000/svg",children:(0,ea.jsx)("path",{d:"M6.1982 1.83742e-06C6.39692 0.000486321 6.58837 0.0699854 6.73543 0.195009C6.89246 0.328465 6.98654 0.514709 6.99706 0.712923C7.00758 0.911136 6.93368 1.10514 6.79155 1.25249L2.173 6L6.79155 10.7475C6.91956 10.8966 6.98185 11.0858 6.96568 11.2765C6.9495 11.4671 6.85609 11.6447 6.70453 11.7731C6.55298 11.9014 6.35472 11.9708 6.15031 11.967C5.94591 11.9631 5.75079 11.8864 5.60484 11.7525L-0.00798984 6L5.60484 0.247515C5.67981 0.16982 5.77133 0.10763 5.87352 0.0650043C5.97571 0.0223779 6.08631 0.000248829 6.1982 1.83742e-06Z"})})}function TF(){return(0,ea.jsx)("svg",{width:"7",height:"12",viewBox:"0 0 7 12",xmlns:"http://www.w3.org/2000/svg",children:(0,ea.jsx)("path",{d:"M0.8018 12C0.603077 11.9995 0.411628 11.93 0.264574 11.805C0.107539 11.6715 0.0134608 11.4853 0.00294035 11.2871C-0.00758011 11.0889 0.0663217 10.8949 0.208452 10.7475L4.827 6L0.208452 1.25249C0.0804381 1.10338 0.0181473 0.914171 0.0343231 0.723539C0.0504989 0.532907 0.14391 0.355261 0.295467 0.226911C0.447023 0.0985613 0.645281 0.0292225 0.849688 0.0330482C1.05409 0.0368739 1.24921 0.113593 1.39516 0.247511L7.00799 6L1.39516 11.7525C1.32019 11.8302 1.22867 11.8924 1.12648 11.935C1.02429 11.9776 0.913691 11.9998 0.8018 12Z"})})}function AF(e){var t=e.handlerClick,n=e.position,r=void 0===n?"left":n,i=e.style;return(0,ea.jsx)("button",{onClick:t,className:"arrow_button",style:i,children:"left"===r?(0,ea.jsx)(OF,{}):(0,ea.jsx)(TF,{})})}function IF(e){var t=e.current,n=e.count,r=e.label,i=void 0===r?"Label":r,o=e.handlerPrev,a=e.handlerNext;return(0,ea.jsxs)("div",{className:"group-button-pagination",children:[(0,ea.jsx)(AF,{handlerClick:o,style:{opacity:0===t?.3:1}}),(0,ea.jsxs)("div",{className:"group-button-pagination__label",children:[i," ",t+1,"/",n]}),(0,ea.jsx)(AF,{handlerClick:a,position:"right",style:{opacity:t===n-1?.3:1}})]})}function NF(e){var n=e.title,r=e.currentAction,i=e.listActions,o=e.handlerPrev,a=e.handlerNext,s=e.handlerSelect,u=(0,t.useMemo)((function(){return i.map((function(e,t){return{value:t,label:e.title}}))}),[i]),l=u[r]||null,c=null===i||void 0===i?void 0:i.length;return(0,ea.jsxs)("header",{className:"header-page",children:[(0,ea.jsx)("h3",{className:"header-page__title",children:n}),(0,ea.jsx)(SF,{className:"header-page__select",value:l,options:u,onChange:function(e){var t=e.value;return s(t)}}),c>0?(0,ea.jsx)(IF,{handlerPrev:o,handlerNext:a,count:null===i||void 0===i?void 0:i.length,current:r}):null]})}function PF(e){var n=e.content,r=e.humanApi,i=e.children,o=(0,t.useRef)(null),a=(0,t.useCallback)((function(e){var t=e.target;t.classList.contains("action-item")&&r.setActionById(t.dataset.key)}),[r]);return(0,t.useEffect)((function(){var e=o.current;return o.current&&e.addEventListener("click",a),function(){return null===e||void 0===e?void 0:e.removeEventListener("click",a)}}),[a]),(0,ea.jsx)(ea.Fragment,{children:(0,ea.jsxs)("div",{ref:o,className:"typography-component",children:[i,(0,ea.jsx)("div",{dangerouslySetInnerHTML:{__html:n}})]})})}var jF={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},RF=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],LF=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],MF=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],DF="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{}
2,FF="fullscreenEnabled"in DF&&Object.keys(jF)||RF[0]in DF&&RF||LF[0]in DF&&LF||MF[0]in DF&&MF||[],BF={requestFullscreen:function(e){return e[FF[jF.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[FF[jF.requestFullscreen]]},get exitFullscreen(){return DF[FF[jF.exitFullscreen]].bind(DF)},get fullscreenPseudoClass(){return":"+FF[jF.fullscreen]},addEventListener:function(e,t,n){return DF.addEventListener(FF[jF[e]],t,n)},removeEventListener:function(e,t,n){return DF.removeEventListener(FF[jF[e]],t,n)},get fullscreenEnabled(){return Boolean(DF[FF[jF.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return DF[FF[jF.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return DF[("on"+FF[jF.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return DF[("on"+FF[jF.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return DF[("on"+FF[jF.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return DF[("on"+FF[jF.fullscreenerror]).toLowerCase()]=e}},UF=BF;var VF,qF,zF=function(e){var n=e.handle,r=e.onChange,i=e.children,o=e.className,a=[];return o&&a.push(o),a.push("fullscreen"),n.active&&a.push("fullscreen-enabled"),(0,t.useEffect)((function(){r&&r(n.active,n)}),[n.active]),t.createElement("div",{className:a.join(" "),ref:n.node,style:n.active?{height:"100%",width:"100%"}:void 0},i)},HF=["title","titleId"];function WF(){return WF=Object.assign||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},WF.apply(this,arguments)}function KF(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function GF(e,n){var r=e.title,i=e.titleId,o=KF(e,HF);return t.createElement("svg",WF({fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",id:"fullscreen-exit",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,VF||(VF=t.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"})),qF||(qF=t.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})))}var $F,YF,QF=t.forwardRef(GF),XF=(n.p,["title","titleId"]);function ZF(){return ZF=Object.assign||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},ZF.apply(this,arguments)}function JF(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eB(e,n){var r=e.title,i=e.titleId,o=JF(e,XF);return t.createElement("svg",ZF({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",id:"fullscreen",fill:"#fff",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,$F||($F=t.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"})),YF||(YF=t.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})))}var tB=t.forwardRef(eB),nB=(n.p,["ui-all=false","ui-fullscreen=false","ui-loader=circle","ui-label-list=false","ui-anatomy-labels=false","ui-reset=false","ui-nav=true"]);function rB(e){var n=e.scene,r=void 0===n?"":n,i=e.init,o=void 0===i?function(){}:i,a=e.className,s=void 0===a?"":a,u=e.children,l=e.pickStatus,c=function(){var e=(0,t.useState)(!1),n=e[0],r=e[1],i=(0,t.useRef)(null);(0,t.useEffect)((function(){var e=function(){r(UF.fullscreenElement===i.current)};return UF.addEventListener("fullscreenchange",e),function(){return UF.removeEventListener("fullscreenchange",e)}}),[]);var o=(0,t.useCallback)((function(){return UF.fullscreenElement?UF.exitFullscreen().then((function(){return UF.requestFullscreen(i.current)})):i.current?UF.requestFullscreen(i.current):void 0}),[]),a=(0,t.useCallback)((function(){return UF.fullscreenElement===i.current?UF.exitFullscreen():Promise.resolve()}),[]);
2return(0,t.useMemo)((function(){return{active:n,enter:o,exit:a,node:i}}),[n,o,a])}(),f=(null===r||void 0===r?void 0:r.length)>10?"m=".concat(r,".json"):"be=".concat(r),h="";return h=r.includes("https://")||r.includes("http://")?"".concat(r,"&").concat(nB.join("&")):"https://human.biodigital.com/widget/?dk=".concat("ade1c97a330684304f79430b5049f4bb0a0da7c4","&").concat(nB.join("&"),"&").concat(f),(0,ea.jsx)(zF,{handle:c,children:(0,ea.jsxs)("div",{style:{position:"relative",height:"100%",width:"100%",overflow:"hidden"},children:[(0,ea.jsx)("div",{className:l?"wrap-screen-false":"wrap-screen",style:{position:"absolute",right:"15px",top:"15px",overflow:"auto",bottom:"15px",zIndex:"1"},children:null!==c&&void 0!==c&&c.active?null:u}),c.active?(0,ea.jsx)("div",{className:"logo-client",children:(0,ea.jsx)($a,{className:"logo__icon"})}):"",(0,ea.jsxs)("button",{className:c.active?"full-screen-btn base_button":"not-full-screen-btn base_button",onClick:function(){c.active?c.exit():c.enter()},children:[" ",c.active?(0,ea.jsx)(QF,{}):(0,ea.jsx)(tB,{})]}),(0,ea.jsx)("iframe",{id:"myWidget",title:"myWidget",onLoad:o,className:"".concat(s," iframe-human"),src:h,width:"100%",height:"100%"})]})})}var iB=n(4536),oB=n.n(iB),aB={width:"auto",display:"flex",justifyContent:"center",position:"sticky",paddingBottom:"20px",boxShadow:"0px 1px 10px #00000010"},sB=Tr((function(){var e,n,r,i,o=Yr((0,t.useState)(!1),2),a=o[0],s=o[1],u=Yr((0,t.useState)(new PR),1)[0],l=Yr((0,t.useState)(new RR),1)[0],c=Yr((0,t.useState)(!1),2),f=c[0],h=c[1],d=Xi().id;(0,t.useEffect)((function(){u.getSingleLearnById(d)}),[d,u]);(0,t.useEffect)((function(){l.updateNote(u.noteSelected)}),[u.noteSelected,l]),(0,t.useEffect)((function(){var e;l.human&&null!==(e=l.listActions)&&void 0!==e&&e.length&&l.updateCamera()}),[l.listActions,l]);var p=new RegExp("%","gi"),v=null===(e=u.noteSelected)||void 0===e||null===(n=e.content)||void 0===n?void 0:n.replace(p,"");return(0,ea.jsxs)("div",{className:"container",children:[(0,ea.jsx)(NF,{title:u.title,currentAction:l.currentAction,listActions:l.listActions,handlerPrev:function(){return l.prevAction()},handlerNext:function(){return l.nextAction()},handlerSelect:function(e){return l.setIndexActiveAction(e)}}),null!==(r=u.noteSelected)&&void 0!==r&&r.scene?(0,ea.jsxs)("div",{className:"container-iframe",children:[(0,ea.jsx)(rB,{scene:u.noteSelected.scene,init:function(){h(!0),l.init(),l.updateCamera()},children:f?(0,ea.jsx)(Kp,{handlerClick:function(){l.reset()},children:"Reset"}):null}),(0,ea.jsxs)("div",{className:"header-page-typography",children:[u.lengthNotes>1?(0,ea.jsx)("div",{style:aB,children:(0,ea.jsx)(IF,{current:u.selectedIndex,count:u.lengthNotes,label:(null===(i=u.noteSelected)||void 0===i?void 0:i.title)+"  -  ",handlerNext:function(){return u.nextNote()},handlerPrev:function(){return u.prevNote()}})}):null,a?(0,ea.jsx)(oB(),{closeOnUnmount:function(){return s(!1)},children:(0,ea.jsx)(PF,{content:v,humanApi:l})}):null,(0,ea.jsx)(PF,{content:v,humanApi:l,children:(0,ea.jsx)("button",{className:"base_button",onClick:function(){s(!1),requestAnimationFrame((function(){s(!0)}))},children:"New Window"})})]})]}):null]})})),uB={addAnnotation:!1,editAnnotation:!1,enablePickColor:!1};function lB(e){var t=e.onSwitch,n=e.checked,r=e.children,i=e.disabled;return(0,ea.jsxs)("div",{className:"switch_wrapper",children:[(0,ea.jsxs)("label",{className:"switch",children:[(0,ea.jsx)("input",{type:"checkbox",className:"switch_input",disabled:i,onChange:function(e){return t(!n)},checked:n}),(0,ea.jsx)("span",{className:"slider round"})]}),(0,ea.jsx)("span",{className:"switch_label",children:r})]})}function cB(e){var t=e.type,n=void 0===t?"text":t,r=e.placeholder,i=e.defaultValue,o=void 0===i?null:i,a=e.label,s=e.handlerChange,u=void 0===s?function(){}:s,l=e.labelWidth,c=void 0===l?"auto":l,f=e.active,h=e.value,d=e.max,p=void 0===d?1e3:d,v=e.rows,y=void 0===v?1:v,m=e.cols,g=void 0===m?50:m,b=e.style,w=void 0===b?{}:b,k=e.error,x=void 0!==k&&k,_=null===o?{value:h}:{defaultValue:o};return(0,ea.jsxs)("div",{className:"form-group ".concat(f?"active":""),style:w,children:["textarea"===n?(0,ea.jsx)("textarea",go(go({className:"form-field",type:n},_),{},{maxLength:p,rows:y,cols:g,placeholder:r,onChange:function(e){var t=e.target;return u(t.value)}})):(0,ea.jsx)("input",go(go({className:"form-field",type:n},_),{},{placeholder:r,onChange:function(e){var t=e.target;return u(t.value)}})),(0,ea.jsx)("span",{style:{width:c},className:"".concat(x?"error":""),children:a})]})}var fB={title:"",description:""},hB=(0,t.forwardRef)((function(e,n){e.store;var r,i,o,a=(0,t.useRef)({title:"",description:""}),s=(0,t.useRef)({}),u=Yr((0,t.useState)(!1),2),l=u[0],c=u[1];return(0,t.useImperativeHandle)(n,(function(){return{setDefaultValue:function(e,t){a.current.title=e,a.current.description=t},open:function(){return qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),e.abrupt("return",new Promise((function(e){s.current.close=function(t){e(go(go({},a.current),{},{success:t})),c(!1),a.current=fB}})));case 2:case"end":return e.stop()}}),e)})))()},close:function(){var e;c(!1),a.current=fB,null===(e=s.current)||void 0===e||e.close(go(go({},a.current),{},{success:!1}))}}}),[n]),!1===l?null:(0,ea.jsx)(xv,{width:"600px",onConfirm:null===(r=s.current)||void 0===r?void 0:r.close.bind(null,!0),onCancel:null===(i=s.current)||void 0===i?void 0:i.close.bind(null,!1),onClose:null===(o=s.current)||void 0===o?void 0:o.close.bind(null,!1),children:(0,ea.jsxs)("div",{className:"add-action-modal",children:[(0,ea.jsx)(cB,{label:"title",placeholder:"title",defaultValue:a.current.title,labelWidth:"100px",handlerChange:function(e){return a.current.title=e}}),(0,ea.jsx)(cB,{defaultValue:a.current.description,type:"textarea",label:"Description",placeholder:"Description",max:300,labelWidth:"100px",rows:5,handlerChange:function(e){return a.current.description=e}})]})})}
2)),dB=Tr((function(e){var n=e.human,r=e.onModeCreated,i=e.onChange,o=e.children,a=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e=function(){var e=qp(ti().mark((function e(t){var i;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=6;break}return a.current.setDefaultValue("",""),e.next=4,a.current.open();case 4:(i=e.sent).success&&n.api.send("labels.create",{objectId:t.objectId,title:i.title,description:i.description,theme:"studioNext",position:[t.position.x,t.position.y,t.position.z]});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return n.subscribe(e,"scenePicked"),function(){return n.unsubscribe(e,"scenePicked")}}),[r,n]),(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(hB,{ref:a}),(0,ea.jsxs)(ea.Fragment,{children:[o,(0,ea.jsx)(lB,{checked:r,onSwitch:function(){return i(!r)},children:(0,ea.jsx)("div",{style:{display:"flex",gap:"10px"},children:"Create annotation mode"})})]})]})})),pB=Tr((function(e){var n=e.onModeEdit,r=e.human,i=e.store,o=e.setTitle,a=e.title,s=Yr((0,t.useState)(!1),2),u=s[0],l=s[1],c=Yr((0,t.useState)(!1),2),f=c[0],h=c[1],d=function(){return l(!1)},p=Yr((0,t.useState)(null),2),v=p[0],y=p[1],m=(0,t.useRef)(null),g=function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.api.send("labels.info",v,function(){var e=qp(ti().mark((function e(t){var n,i,o,a;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t[v],i=n.title,o=n.description,m.current.setDefaultValue(i,o),e.next=4,m.current.open();case 4:(a=e.sent).success&&r.api.send("labels.update",{labelId:v,title:a.title,description:a.description});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){var e=function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n&&y(t.labelId);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t=function(){n&&v&&y(null)};return r.subscribe(e,"labelsPicked"),r.subscribe(t,"scenePicked"),function(){r.unsubscribe(e,"labelsPicked"),r.unsubscribe(t,"scenePicked")}}),[n,r,v]),(0,t.useEffect)((function(){var e;o(null===(e=i.selectedAction)||void 0===e?void 0:e.title)}),[i.selectedAction]),(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(hB,{ref:m}),u?(0,ea.jsx)(xv,{onConfirm:function(){l(!1),y(null),r.api.send("labels.destroy",v)},onClose:d,onCancel:d,children:"Are you sure you want to delete?"}):null,(0,ea.jsx)(cB,{label:"title",placeholder:"title",value:a,active:a.length>2,handlerChange:o,labelWidth:"100px"}),(0,ea.jsx)(dB,{human:r,onModeCreated:f,onChange:h}),v?(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(Kp,{handlerClick:g,children:"Edit Annotation"}),(0,ea.jsx)(Kp,{className:"base_button__remove",handlerClick:function(){return l((function(e){return!e}))},children:"Remove"})]}):null]})})),vB=n(4093),yB=function(e,t,n,r,i){var o=i.clientWidth,a=i.clientHeight,s="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,u="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),c=u-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var f=void 0;if(f=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var h=void 0;if(r!==(h=l<0?0:l>o?1:Math.round(100*l/o)/100))return{h:t.h,s:t.s,l:t.l,a:h,source:"rgb"}}return null},mB={},gB=function(e,t,n,r){var i=e+"-"+t+"-"+n+(r?"-server":"");if(mB[i])return mB[i];var o=function(e,t,n,r){if("undefined"===typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n,r);return mB[i]=o,o},bB=Object.assign||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},wB=function(e){var n=e.white,r=e.grey,i=e.size,o=e.renderers,a=e.borderRadius,s=e.boxShadow,u=e.children,l=(0,vB.ZP)({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+gB(n,r,i,o.canvas)+") center left"}}});return(0,t.isValidElement)(u)?t.cloneElement(u,bB({},u.props,{style:bB({},u.props.style,l.grid)})):t.createElement("div",{style:l.grid})};wB.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var kB=wB,xB=Object.assign||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},_B=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function EB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var SB=function(e){function n(){var e,t,r;EB(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=r=CB(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=yB(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},CB(r,t)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
vendor: 4,675 bytes, line 2
2(n,e),_B(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,n=this.props.rgb,r=(0,vB.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+n.r+","+n.g+","+n.b+", 0) 0%,\n           rgba("+n.r+","+n.g+","+n.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*n.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+n.r+","+n.g+","+n.b+", 0) 0%,\n           rgba("+n.r+","+n.g+","+n.b+", 1) 100%)"},pointer:{left:0,top:100*n.a+"%"}},overwrite:xB({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return t.createElement("div",{style:r.alpha},t.createElement("div",{style:r.checkboard},t.createElement(kB,{renderers:this.props.renderers})),t.createElement("div",{style:r.gradient}),t.createElement("div",{style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.createElement("div",{style:r.pointer},this.props.pointer?t.createElement(this.props.pointer,this.props):t.createElement("div",{style:r.slider}))))}}]),n}(t.PureComponent||t.Component),OB=SB,TB=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var AB=[38,40],IB=1,NB=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleBlur=function(){t.state.blurValue&&t.setState({value:t.state.blurValue,blurValue:null})},t.handleChange=function(e){t.setUpdatedValue(e.target.value,e)},t.handleKeyDown=function(e){var n,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(n=e.keyCode,AB.indexOf(n)>-1)){var i=t.getArrowOffset(),o=38===e.keyCode?r+i:r-i;t.setUpdatedValue(o,e)}},t.handleDrag=function(e){if(t.props.dragLabel){var n=Math.round(t.props.value+e.movementX);n>=0&&n<=t.props.dragMax&&t.props.onChange&&t.props.onChange(t.getValueObjectWithLabel(n),e)}},t.handleMouseDown=function(e){t.props.dragLabel&&(e.preventDefault(),t.handleDrag(e),window.addEventListener("mousemove",t.handleDrag),window.addEventListener("mouseup",t.handleMouseUp))},t.handleMouseUp=function(){t.unbindEventListeners()},t.unbindEventListeners=function(){window.removeEventListener("mousemove",t.handleDrag),window.removeEventListener("mouseup",t.handleMouseUp)},t.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},t.inputId="rc-editable-input-"+IB++,t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),TB(n,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,n=(0,vB.ZP)({default:{wrap:{position:"relative"}}
2,"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.createElement("div",{style:n.wrap},t.createElement("input",{id:this.inputId,style:n.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.createElement("label",{htmlFor:this.inputId,style:n.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(t.PureComponent||t.Component),PB=NB,jB=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,u=a-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(l<0)c=359;else if(l>o)c=0;else{c=360*(-100*l/o+100)/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var f=void 0;if(u<0)f=0;else if(u>i)f=359;else{f=360*(100*u/i)/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},RB=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function LB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var DB=function(e){function n(){var e,t,r;LB(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=r=MB(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=jB(e,r.props.direction,r.props.hsl,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},MB(r,t)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),RB(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,n=this.props.direction,r=void 0===n?"horizontal":n,i=(0,vB.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===r});return t.createElement("div",{style:i.hue},t.createElement("div",{className:"hue-"+r,style:i.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),t.createElement("div",{style:i.pointer},this.props.pointer?t.createElement(this.props.pointer,this.props):t.createElement("div",{style:i.slider}))))}}]),n}
vendor: 4,492 bytes, line 2
2(t.PureComponent||t.Component),FB=DB;var BB=function(){this.__data__=[],this.size=0};var UB=function(e,t){return e===t||e!==e&&t!==t};var VB=function(e,t){for(var n=e.length;n--;)if(UB(e[n][0],t))return n;return-1},qB=Array.prototype.splice;var zB=function(e){var t=this.__data__,n=VB(t,e);return!(n<0)&&(n==t.length-1?t.pop():qB.call(t,n,1),--this.size,!0)};var HB=function(e){var t=this.__data__,n=VB(t,e);return n<0?void 0:t[n][1]};var WB=function(e){return VB(this.__data__,e)>-1};var KB=function(e,t){var n=this.__data__,r=VB(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function GB(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}GB.prototype.clear=BB,GB.prototype.delete=zB,GB.prototype.get=HB,GB.prototype.has=WB,GB.prototype.set=KB;var $B=GB;var YB=function(){this.__data__=new $B,this.size=0};var QB=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var XB=function(e){return this.__data__.get(e)};var ZB=function(e){return this.__data__.has(e)},JB="object"==typeof global&&global&&global.Object===Object&&global,eU="object"==typeof self&&self&&self.Object===Object&&self,tU=JB||eU||Function("return this")(),nU=tU.Symbol,rU=Object.prototype,iU=rU.hasOwnProperty,oU=rU.toString,aU=nU?nU.toStringTag:void 0;var sU=function(e){var t=iU.call(e,aU),n=e[aU];try{e[aU]=void 0;var r=!0}catch(o){}var i=oU.call(e);return r&&(t?e[aU]=n:delete e[aU]),i},uU=Object.prototype.toString;var lU=function(e){return uU.call(e)},cU=nU?nU.toStringTag:void 0;var fU=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":cU&&cU in Object(e)?sU(e):lU(e)};var hU=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var dU=function(e){if(!hU(e))return!1;var t=fU(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},pU=tU["__core-js_shared__"],vU=function(){var e=/[^.]+$/.exec(pU&&pU.keys&&pU.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var yU=function(e){return!!vU&&vU in e},mU=Function.prototype.toString;var gU=function(e){if(null!=e){try{return mU.call(e)}catch(t){}try{return e+""}catch(t){}}return""},bU=/^\[object .+?Constructor\]$/,wU=Function.prototype,kU=Object.prototype,xU=wU.toString,_U=kU.hasOwnProperty,EU=RegExp("^"+xU.call(_U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var CU=function(e){return!(!hU(e)||yU(e))&&(dU(e)?EU:bU).test(gU(e))};var SU=function(e,t){return null==e?void 0:e[t]};var OU=function(e,t){var n=SU(e,t);return CU(n)?n:void 0},TU=OU(tU,"Map"),AU=OU(Object,"create");var IU=function(){this.__data__=AU?AU(null):{},this.size=0};var NU=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},PU=Object.prototype.hasOwnProperty;var jU=function(e){var t=this.__data__;if(AU){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return PU.call(t,e)?t[e]:void 0},RU=Object.prototype.hasOwnProperty;var LU=function(e){var t=this.__data__;return AU?void 0!==t[e]:RU.call(t,e)};var MU=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=AU&&void 0===t?"__lodash_hash_undefined__":t,this};function DU(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}DU.prototype.clear=IU,DU.prototype.delete=NU,DU.prototype.get=jU,DU.prototype.has=LU,DU.prototype.set=MU;var FU=DU;var BU=function(){this.size=0,this.__data__={hash:new FU,map:new(TU||$B),string:new FU}};var UU=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var VU=function(e,t){var n=e.__data__;return UU(t)?n["string"==typeof t?"string":"hash"]:n.map};var qU=function(e){var t=VU(this,e).delete(e);return this.size-=t?1:0,t};var zU=function(e){return VU(this,e).get(e)};var HU=function(e){return VU(this,e).has(e)};var WU=function(e,t){var n=VU(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function KU(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}KU.prototype.clear=BU,KU.prototype.delete=qU,KU.prototype.get=zU,KU.prototype.has=HU,KU.prototype.set=WU;var GU=KU;var $U=function(e,t){var n=this.__data__;if(n instanceof $B){var r=n.__data__;if(!TU||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new GU(r)}return n.set(e,t),this.size=n.size,this};function YU(e){var t=this.__data__=new $B(e);this.size=t.size}
2YU.prototype.clear=YB,YU.prototype.delete=QB,YU.prototype.get=XB,YU.prototype.has=ZB,YU.prototype.set=$U;var QU=YU,XU=function(){try{var e=OU(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();var ZU=function(e,t,n){"__proto__"==t&&XU?XU(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var JU=function(e,t,n){(void 0!==n&&!UB(e[t],n)||void 0===n&&!(t in e))&&ZU(e,t,n)};var eV=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}},tV=eV(),nV="object"==typeof exports&&exports&&!exports.nodeType&&exports,rV=nV&&"object"==typeof module&&module&&!module.nodeType&&module,iV=rV&&rV.exports===nV?tU.Buffer:void 0,oV=iV?iV.allocUnsafe:void 0;var aV=function(e,t){if(t)return e.slice();var n=e.length,r=oV?oV(n):new e.constructor(n);return e.copy(r),r},sV=tU.Uint8Array;var uV=function(e){var t=new e.constructor(e.byteLength);return new sV(t).set(new sV(e)),t};var lV=function(e,t){var n=t?uV(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var cV=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},fV=Object.create,hV=function(){function e(){}return function(t){if(!hU(t))return{};if(fV)return fV(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),dV=hV;var pV=function(e,t){return function(n){return e(t(n))}},vV=pV(Object.getPrototypeOf,Object),yV=Object.prototype;var mV=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||yV)};var gV=function(e){return"function"!=typeof e.constructor||mV(e)?{}:dV(vV(e))};var bV=function(e){return null!=e&&"object"==typeof e};var wV=function(e){return bV(e)&&"[object Arguments]"==fU(e)},kV=Object.prototype,xV=kV.hasOwnProperty,_V=kV.propertyIsEnumerable,EV=wV(function(){return arguments}())?wV:function(e){return bV(e)&&xV.call(e,"callee")&&!_V.call(e,"callee")},CV=EV,SV=Array.isArray;var OV=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var TV=function(e){return null!=e&&OV(e.length)&&!dU(e)};var AV=function(e){return bV(e)&&TV(e)};var IV=function(){return!1},NV="object"==typeof exports&&exports&&!exports.nodeType&&exports,PV=NV&&"object"==typeof module&&module&&!module.nodeType&&module,jV=PV&&PV.exports===NV?tU.Buffer:void 0,RV=(jV?jV.isBuffer:void 0)||IV,LV=Function.prototype,MV=Object.prototype,DV=LV.toString,FV=MV.hasOwnProperty,BV=DV.call(Object);var UV=function(e){if(!bV(e)||"[object Object]"!=fU(e))return!1;var t=vV(e);if(null===t)return!0;var n=FV.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&DV.call(n)==BV},VV={};VV["[object Float32Array]"]=VV["[object Float64Array]"]=VV["[object Int8Array]"]=VV["[object Int16Array]"]=VV["[object Int32Array]"]=VV["[object Uint8Array]"]=VV["[object Uint8ClampedArray]"]=VV["[object Uint16Array]"]=VV["[object Uint32Array]"]=!0,VV["[object Arguments]"]=VV["[object Array]"]=VV["[object ArrayBuffer]"]=VV["[object Boolean]"]=VV["[object DataView]"]=VV["[object Date]"]=VV["[object Error]"]=VV["[object Function]"]=VV["[object Map]"]=VV["[object Number]"]=VV["[object Object]"]=VV["[object RegExp]"]=VV["[object Set]"]=VV["[object String]"]=VV["[object WeakMap]"]=!1;var qV=function(e){return bV(e)&&OV(e.length)&&!!VV[fU(e)]};var zV=function(e){return function(t){return e(t)}},HV="object"==typeof exports&&exports&&!exports.nodeType&&exports,WV=HV&&"object"==typeof module&&module&&!module.nodeType&&module,KV=WV&&WV.exports===HV&&JB.process,GV=function(){try{var e=WV&&WV.require&&WV.require("util").types;return e||KV&&KV.binding&&KV.binding("util")}catch(t){}}(),$V=GV&&GV.isTypedArray,YV=$V?zV($V):qV;var QV=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]},XV=Object.prototype.hasOwnProperty;var ZV=function(e,t,n){var r=e[t];XV.call(e,t)&&UB(r,n)&&(void 0!==n||t in e)||ZU(e,t,n)};var JV=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?ZU(n,s,u):ZV(n,s,u)}return n};var eq=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},tq=/^(?:0|[1-9]\d*)$/;var nq=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&tq.test(e))&&e>-1&&e%1==0&&e<t},rq=Object.prototype.hasOwnProperty;var iq=function(e,t){var n=SV(e),r=!n&&CV(e),i=!n&&!r&&RV(e),o=!n&&!r&&!i&&YV(e),a=n||r||i||o,s=a?eq(e.length,String):[],u=s.length;for(var l in e)!t&&!rq.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||nq(l,u))||s.push(l);return s};var oq=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},aq=Object.prototype.hasOwnProperty;var sq=function(e){if(!hU(e))return oq(e);var t=mV(e),n=[];
2for(var r in e)("constructor"!=r||!t&&aq.call(e,r))&&n.push(r);return n};var uq=function(e){return TV(e)?iq(e,!0):sq(e)};var lq=function(e){return JV(e,uq(e))};var cq=function(e,t,n,r,i,o,a){var s=QV(e,n),u=QV(t,n),l=a.get(u);if(l)JU(e,n,l);else{var c=o?o(s,u,n+"",e,t,a):void 0,f=void 0===c;if(f){var h=SV(u),d=!h&&RV(u),p=!h&&!d&&YV(u);c=u,h||d||p?SV(s)?c=s:AV(s)?c=cV(s):d?(f=!1,c=aV(u,!0)):p?(f=!1,c=lV(u,!0)):c=[]:UV(u)||CV(u)?(c=s,CV(s)?c=lq(s):hU(s)&&!dU(s)||(c=gV(u))):f=!1}f&&(a.set(u,c),i(c,u,r,o,a),a.delete(u)),JU(e,n,c)}};var fq=function e(t,n,r,i,o){t!==n&&tV(n,(function(a,s){if(o||(o=new QU),hU(a))cq(t,n,s,r,e,i,o);else{var u=i?i(QV(t,s),a,s+"",t,n,o):void 0;void 0===u&&(u=a),JU(t,s,u)}}),uq)};var hq=function(e){return e};var dq=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},pq=Math.max;var vq=function(e,t,n){return t=pq(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=pq(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),dq(e,this,s)}};var yq=function(e){return function(){return e}},mq=XU?function(e,t){return XU(e,"toString",{configurable:!0,enumerable:!1,value:yq(t),writable:!0})}:hq,gq=Date.now;var bq=function(e){var t=0,n=0;return function(){var r=gq(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},wq=bq(mq);var kq=function(e,t){return wq(vq(e,t,hq),e+"")};var xq=function(e,t,n){if(!hU(n))return!1;var r=typeof t;return!!("number"==r?TV(n)&&nq(t,n.length):"string"==r&&t in n)&&UB(n[t],e)};var _q=function(e){return kq((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&xq(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))},Eq=_q((function(e,t,n){fq(e,t,n)})),Cq=function(e){var n=e.zDepth,r=e.radius,i=e.background,o=e.children,a=e.styles,s=void 0===a?{}:a,u=(0,vB.ZP)(Eq({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+n+"px "+4*n+"px rgba(0,0,0,.24)",borderRadius:r,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":1===n});return t.createElement("div",{style:u.wrap},t.createElement("div",{style:u.bg}),t.createElement("div",{style:u.content},o))};Cq.propTypes={background:Hd().string,zDepth:Hd().oneOf([0,1,2,3,4,5]),radius:Hd().number,styles:Hd().object},Cq.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var Sq=Cq,Oq=function(){return tU.Date.now()},Tq=/\s/;var Aq=function(e){for(var t=e.length;t--&&Tq.test(e.charAt(t)););return t},Iq=/^\s+/;var Nq=function(e){return e?e.slice(0,Aq(e)+1).replace(Iq,""):e};var Pq=function(e){return"symbol"==typeof e||bV(e)&&"[object Symbol]"==fU(e)},jq=/^[-+]0x[0-9a-f]+$/i,Rq=/^0b[01]+$/i,Lq=/^0o[0-7]+$/i,Mq=parseInt;var Dq=function(e){if("number"==typeof e)return e;if(Pq(e))return NaN;if(hU(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hU(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Nq(e);var n=Rq.test(e);return n||Lq.test(e)?Mq(e.slice(2),n?2:8):jq.test(e)?NaN:+e},Fq=Math.max,Bq=Math.min;var Uq=function(e,t,n){var r,i,o,a,s,u,l=0,c=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function p(e){return l=e,s=setTimeout(y,t),c?d(e):a}function v(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=o}function y(){var e=Oq();if(v(e))return m(e);s=setTimeout(y,function(e){var n=t-(e-u);return f?Bq(n,o-(e-l)):n}(e))}function m(e){return s=void 0,h&&r?d(e):(r=i=void 0,a)}function g(){var e=Oq(),n=v(e);if(r=arguments,i=this,u=e,n){if(void 0===s)return p(u);if(f)return clearTimeout(s),s=setTimeout(y,t),d(u)}return void 0===s&&(s=setTimeout(y,t)),a}return t=Dq(t)||0,hU(n)&&(c=!!n.leading,o=(f="maxWait"in n)?Fq(Dq(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),g.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},g.flush=function(){return void 0===s?a:m(Oq())},g};var Vq=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return hU(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Uq(e,t,{leading:r,maxWait:t,trailing:i})},qq=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var zq=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleChange=function(e){"function"===typeof t.props.onChange&&t.throttle(t.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,u=a-(n.getBoundingClientRect().left+window.pageXOffset),l=s-(n.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>i&&(u=i),l<0?l=0:l>o&&(l=o);var c=u/i,f=1-l/o;return{h:t.h,s:c,v:f,a:t.a,source:"hsv"}}(e,t.props.hsl,t.container),e)},t.handleMouseDown=function(e){t.handleChange(e);var n=t.getContainerRenderWindow();n.addEventListener("mousemove",t.handleChange),n.addEventListener("mouseup",t.handleMouseUp)},t.handleMouseUp=function(){t.unbindEventListeners()},t.throttle=Vq((function(e,t,n){e(t,n)}),50),t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
vendor: 5,581 bytes, line 2
2(n,e),qq(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,n=this.props.style||{},r=n.color,i=n.white,o=n.black,a=n.pointer,s=n.circle,u=(0,vB.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:r,white:i,black:o,pointer:a,circle:s}},{custom:!!this.props.style});return t.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),t.createElement("div",{style:u.white,className:"saturation-white"},t.createElement("div",{style:u.black,className:"saturation-black"}),t.createElement("div",{style:u.pointer},this.props.pointer?t.createElement(this.props.pointer,this.props):t.createElement("div",{style:u.circle}))))}}]),n}(t.PureComponent||t.Component),Hq=zq;var Wq=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Kq=pV(Object.keys,Object),Gq=Object.prototype.hasOwnProperty;var $q=function(e){if(!mV(e))return Kq(e);var t=[];for(var n in Object(e))Gq.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Yq=function(e){return TV(e)?iq(e):$q(e)};var Qq=function(e,t){return function(n,r){if(null==n)return n;if(!TV(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}},Xq=Qq((function(e,t){return e&&tV(e,t,Yq)}));var Zq=function(e){return"function"==typeof e?e:hq};var Jq=function(e,t){return(SV(e)?Wq:Xq)(e,Zq(t))};function ez(e){return ez="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},ez(e)}var tz=/^\s+/,nz=/\s+$/;function rz(e,t){if(t=t||{},(e=e||"")instanceof rz)return e;if(!(this instanceof rz))return new rz(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(tz,"").replace(nz,"").toLowerCase();var t,n=!1;if(wz[e])e=wz[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=Iz.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=Iz.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=Iz.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=Iz.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=Iz.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=Iz.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=Iz.hex8.exec(e))return{r:Cz(t[1]),g:Cz(t[2]),b:Cz(t[3]),a:Az(t[4]),format:n?"name":"hex8"};if(t=Iz.hex6.exec(e))return{r:Cz(t[1]),g:Cz(t[2]),b:Cz(t[3]),format:n?"name":"hex"};if(t=Iz.hex4.exec(e))return{r:Cz(t[1]+""+t[1]),g:Cz(t[2]+""+t[2]),b:Cz(t[3]+""+t[3]),a:Az(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=Iz.hex3.exec(e))return{r:Cz(t[1]+""+t[1]),g:Cz(t[2]+""+t[2]),b:Cz(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==ez(e)&&(Nz(e.r)&&Nz(e.g)&&Nz(e.b)?(t=function(e,t,n){return{r:255*_z(e,255),g:255*_z(t,255),b:255*_z(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Nz(e.h)&&Nz(e.s)&&Nz(e.v)?(r=Oz(e.s),i=Oz(e.v),t=function(e,t,n){e=6*_z(e,360),t=_z(t,100),n=_z(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6;return{r:255*[n,a,o,o,s,n][u],g:255*[s,n,n,a,o,o][u],b:255*[o,o,s,n,n,a][u]}}(e.h,r,i),a=!0,s="hsv"):Nz(e.h)&&Nz(e.s)&&Nz(e.l)&&(r=Oz(e.s),o=Oz(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=_z(e,360),t=_z(t,100),n=_z(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a));return n=xz(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function iz(e,t,n){e=_z(e,255),t=_z(t,255),n=_z(n,255);
vendor: 5,498 bytes, line 2
2var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,l:s}}function oz(e,t,n){e=_z(e,255),t=_z(t,255),n=_z(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,v:s}}function az(e,t,n,r){var i=[Sz(Math.round(e).toString(16)),Sz(Math.round(t).toString(16)),Sz(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function sz(e,t,n,r){return[Sz(Tz(r)),Sz(Math.round(e).toString(16)),Sz(Math.round(t).toString(16)),Sz(Math.round(n).toString(16))].join("")}function uz(e,t){t=0===t?0:t||10;var n=rz(e).toHsl();return n.s-=t/100,n.s=Ez(n.s),rz(n)}function lz(e,t){t=0===t?0:t||10;var n=rz(e).toHsl();return n.s+=t/100,n.s=Ez(n.s),rz(n)}function cz(e){return rz(e).desaturate(100)}function fz(e,t){t=0===t?0:t||10;var n=rz(e).toHsl();return n.l+=t/100,n.l=Ez(n.l),rz(n)}function hz(e,t){t=0===t?0:t||10;var n=rz(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),rz(n)}function dz(e,t){t=0===t?0:t||10;var n=rz(e).toHsl();return n.l-=t/100,n.l=Ez(n.l),rz(n)}function pz(e,t){var n=rz(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,rz(n)}function vz(e){var t=rz(e).toHsl();return t.h=(t.h+180)%360,rz(t)}function yz(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=rz(e).toHsl(),r=[rz(e)],i=360/t,o=1;o<t;o++)r.push(rz({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function mz(e){var t=rz(e).toHsl(),n=t.h;return[rz(e),rz({h:(n+72)%360,s:t.s,l:t.l}),rz({h:(n+216)%360,s:t.s,l:t.l})]}function gz(e,t,n){t=t||6,n=n||30;var r=rz(e).toHsl(),i=360/n,o=[rz(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(rz(r));return o}function bz(e,t){t=t||6;for(var n=rz(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(rz({h:r,s:i,v:o})),o=(o+s)%1;return a}rz.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=xz(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=oz(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=oz(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=iz(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=iz(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return az(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[Sz(Math.round(e).toString(16)),Sz(Math.round(t).toString(16)),Sz(Math.round(n).toString(16)),Sz(Tz(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_z(this._r,255))+"%",g:Math.round(100*_z(this._g,255))+"%",b:Math.round(100*_z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_z(this._r,255))+"%, "+Math.round(100*_z(this._g,255))+"%, "+Math.round(100*_z(this._b,255))+"%)":"rgba("+Math.round(100*_z(this._r,255))+"%, "+Math.round(100*_z(this._g,255))+"%, "+Math.round(100*_z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(kz[az(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+sz(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=rz(e);n="#"+sz(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"
vendor: 4,289 bytes, line 2
2===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return rz(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(fz,arguments)},brighten:function(){return this._applyModification(hz,arguments)},darken:function(){return this._applyModification(dz,arguments)},desaturate:function(){return this._applyModification(uz,arguments)},saturate:function(){return this._applyModification(lz,arguments)},greyscale:function(){return this._applyModification(cz,arguments)},spin:function(){return this._applyModification(pz,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(gz,arguments)},complement:function(){return this._applyCombination(vz,arguments)},monochromatic:function(){return this._applyCombination(bz,arguments)},splitcomplement:function(){return this._applyCombination(mz,arguments)},triad:function(){return this._applyCombination(yz,[3])},tetrad:function(){return this._applyCombination(yz,[4])}},rz.fromRatio=function(e,t){if("object"==ez(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Oz(e[r]));e=n}return rz(e,t)},rz.equals=function(e,t){return!(!e||!t)&&rz(e).toRgbString()==rz(t).toRgbString()},rz.random=function(){return rz.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},rz.mix=function(e,t,n){n=0===n?0:n||50;var r=rz(e).toRgb(),i=rz(t).toRgb(),o=n/100;return rz({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},rz.readability=function(e,t){var n=rz(e),r=rz(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},rz.isReadable=function(e,t,n){var r,i,o=rz.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},rz.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var l=0;l<t.length;l++)(r=rz.readability(e,t[l]))>u&&(u=r,s=rz(t[l]));return rz.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,rz.mostReadable(e,["#fff","#000"],n))};var wz=rz.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
20",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},kz=rz.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(wz);function xz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _z(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Ez(e){return Math.min(1,Math.max(0,e))}function Cz(e){return parseInt(e,16)}function Sz(e){return 1==e.length?"0"+e:""+e}function Oz(e){return e<=1&&(e=100*e+"%"),e}function Tz(e){return Math.round(255*parseFloat(e)).toString(16)}function Az(e){return Cz(e)/255}var Iz=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"
2+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Nz(e){return!!Iz.CSS_UNIT.exec(e)}var Pz=function(e){var t=0,n=0;return Jq(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},jz=function(e,t){var n=e.hex?rz(e.hex):rz(e),r=n.toHsl(),i=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===a&&0===o.a?"transparent":"#"+a,rgb:o,hsv:i,oldHue:e.h||t||r.h,source:e.source}},Rz=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&rz(e).isValid()},Lz=function(e){if(!e)return"#fff";var t=jz(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},Mz=function(e,t){return rz(t+" ("+e.replace("\xb0","")+")")._ok},Dz=Object.assign||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},Fz=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Bz=function(e){var n=function(n){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return t.handleChange=function(e,n){if(Pz(e)){var r=jz(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(Pz(e)){var r=jz(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=Dz({},jz(e.color,0)),t.debounce=Uq((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),Fz(r,[{key:"render",value:function(){var n={};return this.props.onSwatchHover&&(n.onSwatchHover=this.handleSwatchHover),t.createElement(e,Dz({},this.props,this.state,{onChange:this.handleChange},n))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return Dz({},jz(e.color,t.oldHue))}}]),r}(t.PureComponent||t.Component);return n.propTypes=Dz({},e.propTypes),n.defaultProps=Dz({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),n},Uz=Object.assign||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},Vz=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function qz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zz(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function Hz(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Wz=Object.assign||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},Kz=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(r){function i(){var e,t,n;qz(this,i);for(var r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=n=zz(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(o))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},zz(n,t)}return Hz(i,r),Vz(i,[{key:"render",value:function(){return t.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},t.createElement(e,Uz({},this.props,this.state)))}}]),i}(t.Component)}((function(e){var n=e.color,r=e.style,i=e.onClick,o=void 0===i?function(){}:i,a=e.onHover,s=e.title,u=void 0===s?n:s,l=e.children,c=e.focus,f=e.focusStyle,h=void 0===f?{}:f,d="transparent"===n,p=(0,vB.ZP)({default:{swatch:Wz({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,c?h:{})}}),v={};return a&&(v.onMouseOver=function(e){return a(n,e)}),t.createElement("div",Wz({style:p.swatch,onClick:function(e){return o(n,e)},title:u,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&o(n,e)}},v),l,d&&t.createElement(kB,{borderRadius:p.swatch.borderRadius,boxSh
2adow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))})),Gz=function(e){var n=e.direction,r=(0,vB.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===n});return t.createElement("div",{style:r.picker})},$z=Object.assign||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},Yz=function(e){var n=e.rgb,r=e.hsl,i=e.width,o=e.height,a=e.onChange,s=e.direction,u=e.style,l=e.renderers,c=e.pointer,f=e.className,h=void 0===f?"":f,d=(0,vB.ZP)({default:{picker:{position:"relative",width:i,height:o},alpha:{radius:"2px",style:u}}});return t.createElement("div",{style:d.picker,className:"alpha-picker "+h},t.createElement(OB,$z({},d.alpha,{rgb:n,hsl:r,pointer:c,renderers:l,onChange:a,direction:s})))};Yz.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:Gz};Bz(Yz);var Qz=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var Xz=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Zz=function(e){return this.__data__.has(e)};function Jz(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new GU;++t<n;)this.add(e[t])}Jz.prototype.add=Jz.prototype.push=Xz,Jz.prototype.has=Zz;var eH=Jz;var tH=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var nH=function(e,t){return e.has(t)};var rH=function(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,h=!0,d=2&n?new eH:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var y=a?r(v,p,f,t,e,o):r(p,v,f,e,t,o);if(void 0!==y){if(y)continue;h=!1;break}if(d){if(!tH(t,(function(e,t){if(!nH(d,t)&&(p===e||i(p,e,n,r,o)))return d.push(t)}))){h=!1;break}}else if(p!==v&&!i(p,v,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var iH=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var oH=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},aH=nU?nU.prototype:void 0,sH=aH?aH.valueOf:void 0;var uH=function(e,t,n,r,i,o,a){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||!o(new sV(e),new sV(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return UB(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=iH;case"[object Set]":var u=1&r;if(s||(s=oH),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=rH(s(e),s(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(sH)return sH.call(e)==sH.call(t)}return!1};var lH=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var cH=function(e,t,n){var r=t(e);return SV(e)?r:lH(r,n(e))};var fH=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var hH=function(){return[]},dH=Object.prototype.propertyIsEnumerable,pH=Object.getOwnPropertySymbols,vH=pH?function(e){return null==e?[]:(e=Object(e),fH(pH(e),(function(t){return dH.call(e,t)})))}:hH;var yH=function(e){return cH(e,Yq,vH)},mH=Object.prototype.hasOwnProperty;var gH=function(e,t,n,r,i,o){var a=1&n,s=yH(e),u=s.length;if(u!=yH(t).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in t:mH.call(t,c)))return!1}var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var d=!0;o.set(e,t),o.set(t,e);for(var p=a;++l<u;){var v=e[c=s[l]],y=t[c];if(r)var m=a?r(y,v,c,t,e,o):r(v,y,c,e,t,o);if(!(void 0===m?v===y||i(v,y,n,r,o):m)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return o.delete(e),o.delete(t),d},bH=OU(tU,"DataView"),wH=OU(tU,"Promise"),kH=OU(tU,"Set"),xH=OU(tU,"WeakMap"),_H="[object Map]",EH="[object Promise]",CH="[object Set]",SH="[object WeakMap]",OH="[object DataView]",TH=gU(bH),AH=gU(TU),IH=gU(wH),NH=gU(kH),PH=gU(xH),jH=fU;(bH&&jH(new bH(new ArrayBuffer(1)))!=OH||TU&&jH(new TU)!=_H||wH&&jH(wH.resolve())!=EH||kH&&jH(new kH)!=CH||xH&&jH(new xH)!=SH)&&
2(jH=function(e){var t=fU(e),n="[object Object]"==t?e.constructor:void 0,r=n?gU(n):"";if(r)switch(r){case TH:return OH;case AH:return _H;case IH:return EH;case NH:return CH;case PH:return SH}return t});var RH=jH,LH="[object Arguments]",MH="[object Array]",DH="[object Object]",FH=Object.prototype.hasOwnProperty;var BH=function(e,t,n,r,i,o){var a=SV(e),s=SV(t),u=a?MH:RH(e),l=s?MH:RH(t),c=(u=u==LH?DH:u)==DH,f=(l=l==LH?DH:l)==DH,h=u==l;if(h&&RV(e)){if(!RV(t))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new QU),a||YV(e)?rH(e,t,n,r,i,o):uH(e,t,u,n,r,i,o);if(!(1&n)){var d=c&&FH.call(e,"__wrapped__"),p=f&&FH.call(t,"__wrapped__");if(d||p){var v=d?e.value():e,y=p?t.value():t;return o||(o=new QU),i(v,y,n,r,o)}}return!!h&&(o||(o=new QU),gH(e,t,n,r,i,o))};var UH=function e(t,n,r,i,o){return t===n||(null==t||null==n||!bV(t)&&!bV(n)?t!==t&&n!==n:BH(t,n,r,i,e,o))};var VH=function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var u=(s=n[i])[0],l=e[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in e))return!1}else{var f=new QU;if(r)var h=r(l,c,u,e,t,f);if(!(void 0===h?UH(c,l,3,r,f):h))return!1}}return!0};var qH=function(e){return e===e&&!hU(e)};var zH=function(e){for(var t=Yq(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,qH(i)]}return t};var HH=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var WH=function(e){var t=zH(e);return 1==t.length&&t[0][2]?HH(t[0][0],t[0][1]):function(n){return n===e||VH(n,e,t)}},KH=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GH=/^\w*$/;var $H=function(e,t){if(SV(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Pq(e))||(GH.test(e)||!KH.test(e)||null!=t&&e in Object(t))};function YH(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(YH.Cache||GU),n}YH.Cache=GU;var QH=YH;var XH=function(e){var t=QH(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},ZH=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,JH=/\\(\\)?/g,eW=XH((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ZH,(function(e,n,r,i){t.push(r?i.replace(JH,"$1"):n||e)})),t})),tW=nU?nU.prototype:void 0,nW=tW?tW.toString:void 0;var rW=function e(t){if("string"==typeof t)return t;if(SV(t))return Qz(t,e)+"";if(Pq(t))return nW?nW.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var iW=function(e){return null==e?"":rW(e)};var oW=function(e,t){return SV(e)?e:$H(e,t)?[e]:eW(iW(e))};var aW=function(e){if("string"==typeof e||Pq(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var sW=function(e,t){for(var n=0,r=(t=oW(t,e)).length;null!=e&&n<r;)e=e[aW(t[n++])];return n&&n==r?e:void 0};var uW=function(e,t,n){var r=null==e?void 0:sW(e,t);return void 0===r?n:r};var lW=function(e,t){return null!=e&&t in Object(e)};var cW=function(e,t,n){for(var r=-1,i=(t=oW(t,e)).length,o=!1;++r<i;){var a=aW(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&OV(i)&&nq(a,i)&&(SV(e)||CV(e))};var fW=function(e,t){return null!=e&&cW(e,t,lW)};var hW=function(e,t){return $H(e)&&qH(t)?HH(aW(e),t):function(n){var r=uW(n,e);return void 0===r&&r===t?fW(n,e):UH(t,r,3)}};var dW=function(e){return function(t){return null==t?void 0:t[e]}};var pW=function(e){return function(t){return sW(t,e)}};var vW=function(e){return $H(e)?dW(aW(e)):pW(e)};var yW=function(e){return"function"==typeof e?e:null==e?hq:"object"==typeof e?SV(e)?hW(e[0],e[1]):WH(e):vW(e)};var mW=function(e,t){var n=-1,r=TV(e)?Array(e.length):[];return Xq(e,(function(e,i,o){r[++n]=t(e,i,o)})),r};var gW=function(e,t){return(SV(e)?Qz:mW)(e,yW(t,3))},bW=function(e){var n=e.colors,r=e.onClick,i=e.onSwatchHover,o=(0,vB.ZP)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return t.createElement("div",{style:o.swatches},gW(n,(function(e){return t.createElement(Kz,{key:e,color:e,style:o.swatch,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+e}})})),t.createElement("div",{style:o.clear}))}
2,wW=function(e){var n=e.onChange,r=e.onSwatchHover,i=e.hex,o=e.colors,a=e.width,s=e.triangle,u=e.styles,l=void 0===u?{}:u,c=e.className,f=void 0===c?"":c,h="transparent"===i,d=function(e,t){Rz(e)&&n({hex:e,source:"hex"},t)},p=(0,vB.ZP)(Eq({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Lz(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":"hide"===s});return t.createElement("div",{style:p.card,className:"block-picker "+f},t.createElement("div",{style:p.triangle}),t.createElement("div",{style:p.head},h&&t.createElement(kB,{borderRadius:"6px 6px 0 0"}),t.createElement("div",{style:p.label},i)),t.createElement("div",{style:p.body},t.createElement(bW,{colors:o,onClick:d,onSwatchHover:r}),t.createElement(PB,{style:{input:p.input},value:i,onChange:d})))};wW.propTypes={width:Hd().oneOfType([Hd().string,Hd().number]),colors:Hd().arrayOf(Hd().string),triangle:Hd().oneOf(["top","hide"]),styles:Hd().object},wW.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};Bz(wW);var kW={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},xW={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},_W={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},EW={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},CW={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},SW={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},OW={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},TW={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},AW={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},IW={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},NW={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},PW={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},jW={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},RW={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},LW={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},MW={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"}
2,DW={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},FW={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},BW=function(e){var n=e.color,r=e.onClick,i=e.onSwatchHover,o=e.hover,a=e.active,s=e.circleSize,u=e.circleSpacing,l=(0,vB.ZP)({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+n,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+n}}},{hover:o,active:a});return t.createElement("div",{style:l.swatch},t.createElement(Kz,{style:l.Swatch,color:n,onClick:r,onHover:i,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+n}}))};BW.defaultProps={circleSize:28,circleSpacing:14};var UW=(0,vB.tz)(BW),VW=function(e){var n=e.width,r=e.onChange,i=e.onSwatchHover,o=e.colors,a=e.hex,s=e.circleSize,u=e.styles,l=void 0===u?{}:u,c=e.circleSpacing,f=e.className,h=void 0===f?"":f,d=(0,vB.ZP)(Eq({default:{card:{width:n,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),p=function(e,t){return r({hex:e,source:"hex"},t)};return t.createElement("div",{style:d.card,className:"circle-picker "+h},gW(o,(function(e){return t.createElement(UW,{key:e,color:e,onClick:p,onSwatchHover:i,active:a===e.toLowerCase(),circleSize:s,circleSpacing:c})})))};VW.propTypes={width:Hd().oneOfType([Hd().string,Hd().number]),circleSize:Hd().number,circleSpacing:Hd().number,styles:Hd().object},VW.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[kW[500],xW[500],_W[500],EW[500],CW[500],SW[500],OW[500],TW[500],AW[500],IW[500],NW[500],PW[500],jW[500],RW[500],LW[500],MW[500],DW[500],FW[500]],styles:{}};Bz(VW);var qW=function(e){return void 0===e},zW=n(2403),HW=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var WW=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.toggleViews=function(){"hex"===t.state.view?t.setState({view:"rgb"}):"rgb"===t.state.view?t.setState({view:"hsl"}):"hsl"===t.state.view&&(1===t.props.hsl.a?t.setState({view:"hex"}):t.setState({view:"rgb"}))},t.handleChange=function(e,n){e.hex?Rz(e.hex)&&t.props.onChange({hex:e.hex,source:"hex"},n):e.r||e.g||e.b?t.props.onChange({r:e.r||t.props.rgb.r,g:e.g||t.props.rgb.g,b:e.b||t.props.rgb.b,source:"rgb"},n):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),t.props.onChange({h:t.props.hsl.h,s:t.props.hsl.s,l:t.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},n)):(e.h||e.s||e.l)&&("string"===typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"===typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),t.props.onChange({h:e.h||t.props.hsl.h,s:Number(qW(e.s)?t.props.hsl.s:e.s),l:Number(qW(e.l)?t.props.hsl.l:e.l),source:"hsl"},n))},t.showHighlight=function(e){e.currentTarget.style.background="#eee"},t.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?t.state={view:"rgb"}:t.state={view:e.view},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),HW(n,[{key:"render",value:function(){var e=this,n=(0,vB.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),r=void 0;return"hex"===this.state.view?r=t.createElement("div",{style:n.fields,className:"flexbox-fix"},t.createElement("div",{style:n.field},t.createElement(PB,{style:{input:n.input,label:n.label},label:"hex",value:this.props.hex,onChange:this.handleChange}
2))):"rgb"===this.state.view?r=t.createElement("div",{style:n.fields,className:"flexbox-fix"},t.createElement("div",{style:n.field},t.createElement(PB,{style:{input:n.input,label:n.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),t.createElement("div",{style:n.field},t.createElement(PB,{style:{input:n.input,label:n.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),t.createElement("div",{style:n.field},t.createElement(PB,{style:{input:n.input,label:n.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),t.createElement("div",{style:n.alpha},t.createElement(PB,{style:{input:n.input,label:n.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(r=t.createElement("div",{style:n.fields,className:"flexbox-fix"},t.createElement("div",{style:n.field},t.createElement(PB,{style:{input:n.input,label:n.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),t.createElement("div",{style:n.field},t.createElement(PB,{style:{input:n.input,label:n.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),t.createElement("div",{style:n.field},t.createElement(PB,{style:{input:n.input,label:n.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),t.createElement("div",{style:n.alpha},t.createElement(PB,{style:{input:n.input,label:n.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),t.createElement("div",{style:n.wrap,className:"flexbox-fix"},r,t.createElement("div",{style:n.toggle},t.createElement("div",{style:n.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},t.createElement(zW.Z,{style:n.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),n}(t.Component);WW.defaultProps={view:"hex"};var KW=WW,GW=function(){var e=(0,vB.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return t.createElement("div",{style:e.picker})},$W=function(){var e=(0,vB.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return t.createElement("div",{style:e.picker})},YW=function(e){var n=e.width,r=e.onChange,i=e.disableAlpha,o=e.rgb,a=e.hsl,s=e.hsv,u=e.hex,l=e.renderers,c=e.styles,f=void 0===c?{}:c,h=e.className,d=void 0===h?"":h,p=e.defaultView,v=(0,vB.ZP)(Eq({default:{picker:{width:n,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:i});return t.createElement("div",{style:v.picker,className:"chrome-picker "+d},t.createElement("div",{style:v.saturation},t.createElement(Hq,{style:v.Saturation,hsl:a,hsv:s,pointer:$W,onChange:r})),t.createElement("div",{style:v.body},t.createElement("div",{style:v.controls,className:"flexbox-fix"},t.createElement("div",{style:v.color},t.createElement("div",{style:v.swatch},t.createElement("div",{style:v.active}),t.createElement(kB,{renderers:l}))),t.createElement("div",{style:v.toggles},t.createElement("div",{style:v.hue},t.createElement(FB,{style:v.Hue,hsl:a,pointer:GW,onChange:r})),t.createElement("div",{style:v.alpha},t.createElement(OB,{style:v.Alpha,rgb:o,hsl:a,pointer:GW,renderers:l,onChange:r})))),t.createElement(KW,{rgb:o,hsl:a,hex:u,view:p,onChange:r,disableAlpha:i})))};
2YW.propTypes={width:Hd().oneOfType([Hd().string,Hd().number]),disableAlpha:Hd().bool,styles:Hd().object,defaultView:Hd().oneOf(["hex","rgb","hsl"])},YW.defaultProps={width:225,disableAlpha:!1,styles:{}};Bz(YW);var QW=function(e){var n=e.color,r=e.onClick,i=void 0===r?function(){}:r,o=e.onSwatchHover,a=e.active,s=(0,vB.ZP)({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Lz(n),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===n,transparent:"transparent"===n});return t.createElement(Kz,{style:s.color,color:n,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+n}},t.createElement("div",{style:s.dot}))},XW=function(e){var n=e.hex,r=e.rgb,i=e.onChange,o=(0,vB.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(e,t){e.r||e.g||e.b?i({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},t):i({hex:e.hex,source:"hex"},t)};return t.createElement("div",{style:o.fields,className:"flexbox-fix"},t.createElement("div",{style:o.active}),t.createElement(PB,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:n,onChange:a}),t.createElement(PB,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:r.r,onChange:a}),t.createElement(PB,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:r.g,onChange:a}),t.createElement(PB,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:r.b,onChange:a}))},ZW=function(e){var n=e.onChange,r=e.onSwatchHover,i=e.colors,o=e.hex,a=e.rgb,s=e.styles,u=void 0===s?{}:s,l=e.className,c=void 0===l?"":l,f=(0,vB.ZP)(Eq({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),h=function(e,t){e.hex?Rz(e.hex)&&n({hex:e.hex,source:"hex"},t):n(e,t)};return t.createElement(Sq,{style:f.Compact,styles:u},t.createElement("div",{style:f.compact,className:"compact-picker "+c},t.createElement("div",null,gW(i,(function(e){return t.createElement(QW,{key:e,color:e,active:e.toLowerCase()===o,onClick:h,onSwatchHover:r})})),t.createElement("div",{style:f.clear})),t.createElement(XW,{hex:o,rgb:a,onChange:h})))};ZW.propTypes={colors:Hd().arrayOf(Hd().string),styles:Hd().object},ZW.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};Bz(ZW);var JW=(0,vB.tz)((function(e){var n=e.hover,r=e.color,i=e.onClick,o=e.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=(0,vB.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:n});return t.createElement("div",{style:s.swatch},t.createElement(Kz,{color:r,onClick:i,onHover:o,focusStyle:a}))})),eK=function(e){var n=e.width,r=e.colors,i=e.onChange,o=e.onSwatchHover,a=e.triangle,s=e.styles,u=void 0===s?{}:s,l=e.className,c=void 0===l?"":l,f=(0,vB.ZP)(Eq({default:{card:{width:n,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":"hide"===a,"top-left-triangle":"top-left"===a,"top-right-triangle":"top-right"===a,"bottom-left-triangle":"bottom-left"===a,"bottom-right-triangle":"bottom-right"===a}),h=function(e,t){return i({hex:e,source:"hex"},t)};return t.createElement("div",{style:f.card,className:"github-picker "+c},t.createElement("div",{style:f.triangleShadow}),t.createElement("div",{style:f.triangle}),gW(r,(function(e){return t.createElement(JW,{color:e,key:e,onClick:h,onSwatchHover:o})})))};eK.propTypes={width:Hd().oneOfType([Hd().string,Hd().number]),colors:Hd().arrayOf(Hd().string),triangle:Hd().oneOf(["hide","to
2p-left","top-right","bottom-left","bottom-right"]),styles:Hd().object},eK.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};Bz(eK);var tK=function(e){var n=e.direction,r=(0,vB.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===n});return t.createElement("div",{style:r.picker})},nK=Object.assign||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},rK=function(e){var n=e.width,r=e.height,i=e.onChange,o=e.hsl,a=e.direction,s=e.pointer,u=e.styles,l=void 0===u?{}:u,c=e.className,f=void 0===c?"":c,h=(0,vB.ZP)(Eq({default:{picker:{position:"relative",width:n,height:r},hue:{radius:"2px"}}},l));return t.createElement("div",{style:h.picker,className:"hue-picker "+f},t.createElement(FB,nK({},h.hue,{hsl:o,pointer:s,onChange:function(e){return i({a:1,h:e.h,l:.5,s:1})},direction:a})))};rK.propTypes={styles:Hd().object},rK.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:tK,styles:{}};Bz(rK),Bz((function(e){var n=e.onChange,r=e.hex,i=e.rgb,o=e.styles,a=void 0===o?{}:o,s=e.className,u=void 0===s?"":s,l=(0,vB.ZP)(Eq({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+r,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),c=function(e,t){e.hex?Rz(e.hex)&&n({hex:e.hex,source:"hex"},t):(e.r||e.g||e.b)&&n({r:e.r||i.r,g:e.g||i.g,b:e.b||i.b,source:"rgb"},t)};return t.createElement(Sq,{styles:a},t.createElement("div",{style:l.material,className:"material-picker "+u},t.createElement(PB,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:r,onChange:c}),t.createElement("div",{style:l.split,className:"flexbox-fix"},t.createElement("div",{style:l.third},t.createElement(PB,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:i.r,onChange:c})),t.createElement("div",{style:l.third},t.createElement(PB,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:i.g,onChange:c})),t.createElement("div",{style:l.third},t.createElement(PB,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:i.b,onChange:c})))))}));var iK=function(e){var n=e.onChange,r=e.rgb,i=e.hsv,o=e.hex,a=(0,vB.ZP)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(e,t){e["#"]?Rz(e["#"])&&n({hex:e["#"],source:"hex"},t):e.r||e.g||e.b?n({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},t):(e.h||e.s||e.v)&&n({h:e.h||i.h,s:e.s||i.s,v:e.v||i.v,source:"hsv"},t)};return t.createElement("div",{style:a.fields}
2,t.createElement(PB,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),t.createElement(PB,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(100*i.s),onChange:s}),t.createElement(PB,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(100*i.v),onChange:s}),t.createElement("div",{style:a.divider}),t.createElement(PB,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:r.r,onChange:s}),t.createElement(PB,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:r.g,onChange:s}),t.createElement(PB,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:r.b,onChange:s}),t.createElement("div",{style:a.divider}),t.createElement(PB,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:o.replace("#",""),onChange:s}),t.createElement("div",{style:a.fieldSymbols},t.createElement("div",{style:a.symbol},"\xb0"),t.createElement("div",{style:a.symbol},"%"),t.createElement("div",{style:a.symbol},"%")))},oK=function(e){var n=e.hsl,r=(0,vB.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":n.l>.5});return t.createElement("div",{style:r.picker})},aK=function(){var e=(0,vB.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return t.createElement("div",{style:e.pointer},t.createElement("div",{style:e.left},t.createElement("div",{style:e.leftInside})),t.createElement("div",{style:e.right},t.createElement("div",{style:e.rightInside})))},sK=function(e){var n=e.onClick,r=e.label,i=e.children,o=e.active,a=(0,vB.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return t.createElement("div",{style:a.button,onClick:n},r||i)},uK=function(e){var n=e.rgb,r=e.currentColor,i=(0,vB.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return t.createElement("div",null,t.createElement("div",{style:i.label},"new"),t.createElement("div",{style:i.swatches},t.createElement("div",{style:i.new}),t.createElement("div",{style:i.current})),t.createElement("div",{style:i.label},"current"))},lK=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var cK=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.state={currentColor:e.hex},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),lK(n,[{key:"render",value:function(){var e=this.props,n=e.styles,r=void 0===n?{}:n,i=e.className,o=void 0===i?"":i,a=(0,vB.ZP)(Eq({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px s
2olid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},r));return t.createElement("div",{style:a.picker,className:"photoshop-picker "+o},t.createElement("div",{style:a.head},this.props.header),t.createElement("div",{style:a.body,className:"flexbox-fix"},t.createElement("div",{style:a.saturation},t.createElement(Hq,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:oK,onChange:this.props.onChange})),t.createElement("div",{style:a.hue},t.createElement(FB,{direction:"vertical",hsl:this.props.hsl,pointer:aK,onChange:this.props.onChange})),t.createElement("div",{style:a.controls},t.createElement("div",{style:a.top,className:"flexbox-fix"},t.createElement("div",{style:a.previews},t.createElement(uK,{rgb:this.props.rgb,currentColor:this.state.currentColor})),t.createElement("div",{style:a.actions},t.createElement(sK,{label:"OK",onClick:this.props.onAccept,active:!0}),t.createElement(sK,{label:"Cancel",onClick:this.props.onCancel}),t.createElement(iK,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),n}(t.Component);cK.propTypes={header:Hd().string,styles:Hd().object},cK.defaultProps={header:"Color Picker",styles:{}};Bz(cK);var fK=function(e){var n=e.onChange,r=e.rgb,i=e.hsl,o=e.hex,a=e.disableAlpha,s=(0,vB.ZP)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),u=function(e,t){e.hex?Rz(e.hex)&&n({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,a:r.a,source:"rgb"},t):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,n({h:i.h,s:i.s,l:i.l,a:e.a,source:"rgb"},t))};return t.createElement("div",{style:s.fields,className:"flexbox-fix"},t.createElement("div",{style:s.double},t.createElement(PB,{style:{input:s.input,label:s.label},label:"hex",value:o.replace("#",""),onChange:u})),t.createElement("div",{style:s.single},t.createElement(PB,{style:{input:s.input,label:s.label},label:"r",value:r.r,onChange:u,dragLabel:"true",dragMax:"255"})),t.createElement("div",{style:s.single},t.createElement(PB,{style:{input:s.input,label:s.label},label:"g",value:r.g,onChange:u,dragLabel:"true",dragMax:"255"})),t.createElement("div",{style:s.single},t.createElement(PB,{style:{input:s.input,label:s.label},label:"b",value:r.b,onChange:u,dragLabel:"true",dragMax:"255"})),t.createElement("div",{style:s.alpha},t.createElement(PB,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*r.a),onChange:u,dragLabel:"true",dragMax:"100"})))},hK=Object.assign||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},dK=function(e){var n=e.colors,r=e.onClick,i=void 0===r?function(){}:r,o=e.onSwatchHover,a=(0,vB.ZP)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!n||!n.length}),s=function(e,t){i({hex:e,source:"hex"},t)};return t.createElement("div",{style:a.colors,className:"flexbox-fix"},n.map((function(e){var n="string"===typeof e?{color:e}:e,r=""+n.color+(n.title||"");return t.createElement("div",{key:r,style:a.swatchWrap},t.createElement(Kz,hK({},n,{style:a.swatch,onClick:s,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+n.color}})))})))};dK.propTypes={colors:Hd().arrayOf(Hd().oneOfType([Hd().string,Hd().shape({color:Hd().string,title:Hd().string})])).isRequired};var pK=dK,vK=Object.assign||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},yK=function(e){var n=e.width,r=e.rgb,i=e.hex,o=e.hsv,a=e.hsl,s=e.onCh
2ange,u=e.onSwatchHover,l=e.disableAlpha,c=e.presetColors,f=e.renderers,h=e.styles,d=void 0===h?{}:h,p=e.className,v=void 0===p?"":p,y=(0,vB.ZP)(Eq({default:vK({picker:{width:n,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+r.r+","+r.g+","+r.b+","+r.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},d),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},d),{disableAlpha:l});return t.createElement("div",{style:y.picker,className:"sketch-picker "+v},t.createElement("div",{style:y.saturation},t.createElement(Hq,{style:y.Saturation,hsl:a,hsv:o,onChange:s})),t.createElement("div",{style:y.controls,className:"flexbox-fix"},t.createElement("div",{style:y.sliders},t.createElement("div",{style:y.hue},t.createElement(FB,{style:y.Hue,hsl:a,onChange:s})),t.createElement("div",{style:y.alpha},t.createElement(OB,{style:y.Alpha,rgb:r,hsl:a,renderers:f,onChange:s}))),t.createElement("div",{style:y.color},t.createElement(kB,null),t.createElement("div",{style:y.activeColor}))),t.createElement(fK,{rgb:r,hsl:a,hex:i,onChange:s,disableAlpha:l}),t.createElement(pK,{colors:c,onClick:s,onSwatchHover:u}))};yK.propTypes={disableAlpha:Hd().bool,width:Hd().oneOfType([Hd().string,Hd().number]),styles:Hd().object},yK.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var mK=Bz(yK),gK=function(e){var n=e.hsl,r=e.offset,i=e.onClick,o=void 0===i?function(){}:i,a=e.active,s=e.first,u=e.last,l=(0,vB.ZP)({default:{swatch:{height:"12px",background:"hsl("+n.h+", 50%, "+100*r+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:s,last:u});return t.createElement("div",{style:l.swatch,onClick:function(e){return o({h:n.h,s:.5,l:r,source:"hsl"},e)}})},bK=function(e){var n=e.onClick,r=e.hsl,i=(0,vB.ZP)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return t.createElement("div",{style:i.swatches},t.createElement("div",{style:i.swatch},t.createElement(gK,{hsl:r,offset:".80",active:Math.abs(r.l-.8)<o&&Math.abs(r.s-.5)<o,onClick:n,first:!0})),t.createElement("div",{style:i.swatch},t.createElement(gK,{hsl:r,offset:".65",active:Math.abs(r.l-.65)<o&&Math.abs(r.s-.5)<o,onClick:n})),t.createElement("div",{style:i.swatch},t.createElement(gK,{hsl:r,offset:".50",active:Math.abs(r.l-.5)<o&&Math.abs(r.s-.5)<o,onClick:n})),t.createElement("div",{style:i.swatch},t.createElement(gK,{hsl:r,offset:".35",active:Math.abs(r.l-.35)<o&&Math.abs(r.s-.5)<o,onClick:n})),t.createElement("div",{style:i.swatch},t.createElement(gK,{hsl:r,offset:".20",active:Math.abs(r.l-.2)<o&&Math.abs(r.s-.5)<o,onClick:n,last:!0})),t.createElement("div",{style:i.clear}))},wK=function(){var e=(0,vB.ZP)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return t.createElement("div",{style:e.picker})},kK=function(e){var n=e.hsl,r=e.onChange,i=e.pointer,o=e.styles,a=void 0===o?{}:o,s=e.className,u=void 0===s?"":s,l=(0,vB.ZP)(Eq({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return t.createElement("div",{style:l.wrap||{},className:"slider-picker "+u},t.createElement("div",{style:l.hue},t.createElement(FB,{style:l.Hue,hsl:n,pointer:i,onChange:r})),t.createElement("div",{style:l.swatches},t.createElement(bK,{hsl:n,onClick:r})))};kK.propTypes={styles:Hd().object},kK.defaultProps={pointer:wK,styles:{}};Bz(kK);var xK=n(2504),_K=function(e){var n=e.color,r=e.onClick,i=void 0===r?function(){}:r,o=e.onSwatchHover,a=e.first,s=e.last,u=e.active,l=(0,vB.ZP)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:Lz(n),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:s,active:u,"color-#FFFFFF":"#FFFFFF"===n,transparent:"transparent"===n});return t.createElement(Kz,{color:n,style:l.color,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+n}},t.createElement("div",{style:l.check},t.createElement(xK.Z,null)))},EK=function(e){var n=e.onClick,r=e.onSwatchHover,i=e.group,o=e.active,a=(0,vB.ZP)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return t.createElement("div",{style:a.group},gW(i,(function(e,a){return t.createElement(_K,{key:e,color:e,active:e.toLowerCase()===o,first:0===a,last:a===i.length-1,onClick:n,onSwatchHover:r})})))}
2,CK=function(e){var n=e.width,r=e.height,i=e.onChange,o=e.onSwatchHover,a=e.colors,s=e.hex,u=e.styles,l=void 0===u?{}:u,c=e.className,f=void 0===c?"":c,h=(0,vB.ZP)(Eq({default:{picker:{width:n,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),d=function(e,t){return i({hex:e,source:"hex"},t)};return t.createElement("div",{style:h.picker,className:"swatches-picker "+f},t.createElement(Sq,null,t.createElement("div",{style:h.overflow},t.createElement("div",{style:h.body},gW(a,(function(e){return t.createElement(EK,{key:e.toString(),group:e,active:s,onClick:d,onSwatchHover:o})})),t.createElement("div",{style:h.clear})))))};CK.propTypes={width:Hd().oneOfType([Hd().string,Hd().number]),height:Hd().oneOfType([Hd().string,Hd().number]),colors:Hd().arrayOf(Hd().arrayOf(Hd().string)),styles:Hd().object},CK.defaultProps={width:320,height:240,colors:[[kW[900],kW[700],kW[500],kW[300],kW[100]],[xW[900],xW[700],xW[500],xW[300],xW[100]],[_W[900],_W[700],_W[500],_W[300],_W[100]],[EW[900],EW[700],EW[500],EW[300],EW[100]],[CW[900],CW[700],CW[500],CW[300],CW[100]],[SW[900],SW[700],SW[500],SW[300],SW[100]],[OW[900],OW[700],OW[500],OW[300],OW[100]],[TW[900],TW[700],TW[500],TW[300],TW[100]],[AW[900],AW[700],AW[500],AW[300],AW[100]],["#194D33",IW[700],IW[500],IW[300],IW[100]],[NW[900],NW[700],NW[500],NW[300],NW[100]],[PW[900],PW[700],PW[500],PW[300],PW[100]],[jW[900],jW[700],jW[500],jW[300],jW[100]],[RW[900],RW[700],RW[500],RW[300],RW[100]],[LW[900],LW[700],LW[500],LW[300],LW[100]],[MW[900],MW[700],MW[500],MW[300],MW[100]],[DW[900],DW[700],DW[500],DW[300],DW[100]],[FW[900],FW[700],FW[500],FW[300],FW[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};Bz(CK);var SK=function(e){var n=e.onChange,r=e.onSwatchHover,i=e.hex,o=e.colors,a=e.width,s=e.triangle,u=e.styles,l=void 0===u?{}:u,c=e.className,f=void 0===c?"":c,h=(0,vB.ZP)(Eq({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s}),d=function(e,t){Rz(e)&&n({hex:e,source:"hex"},t)};return t.createElement("div",{style:h.card,className:"twitter-picker "+f},t.createElement("div",{style:h.triangleShadow}),t.createElement("div",{style:h.triangle}),t.createElement("div",{style:h.body},gW(o,(function(e,n){return t.createElement(Kz,{key:n,color:e,hex:e,style:h.swatch,onClick:d,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),t.createElement("div",{style:h.hash},"#"),t.createElement(PB,{label:null,style:{input:h.input},value:i.replace("#",""),onChange:d}),t.createElement("div",{style:h.clear})))};SK.propTypes={width:Hd().oneOfType([Hd().string,Hd().number]),triangle:Hd().oneOf(["hide","top-left","top-right"]),colors:Hd().arrayOf(Hd().string),styles:Hd().object},SK.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};Bz(SK);var OK=function(e){var n=(0,vB.ZP)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return t.createElement("div",{style:n.picker})};OK.propTypes={hsl:Hd().shape({h:Hd().number,s:Hd().number,l:Hd().number,a:Hd().number})},OK.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var TK=OK,AK=function(e){var n=(0,vB.ZP)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return t.createElement("div",{style:n.picker})};AK.propTypes={hsl:Hd().shape({h:Hd().number,s:Hd().number,l:Hd().number,a:Hd().number})},AK.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};
2var IK=AK,NK=function(e){var n=e.onChange,r=e.rgb,i=e.hsl,o=e.hex,a=e.hsv,s=function(e,t){if(e.hex)Rz(e.hex)&&n({hex:e.hex,source:"hex"},t);else if(e.rgb){var r=e.rgb.split(",");Mz(e.rgb,"rgb")&&n({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},t)}else if(e.hsv){var i=e.hsv.split(",");Mz(e.hsv,"hsv")&&(i[2]=i[2].replace("%",""),i[1]=i[1].replace("%",""),i[0]=i[0].replace("\xb0",""),1==i[1]?i[1]=.01:1==i[2]&&(i[2]=.01),n({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:"hsv"},t))}else if(e.hsl){var o=e.hsl.split(",");Mz(e.hsl,"hsl")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("\xb0",""),1==f[1]?f[1]=.01:1==f[2]&&(f[2]=.01),n({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsl"},t))}},u=(0,vB.ZP)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=r.r+", "+r.g+", "+r.b,c=Math.round(i.h)+"\xb0, "+Math.round(100*i.s)+"%, "+Math.round(100*i.l)+"%",f=Math.round(a.h)+"\xb0, "+Math.round(100*a.s)+"%, "+Math.round(100*a.v)+"%";return t.createElement("div",{style:u.wrap,className:"flexbox-fix"},t.createElement("div",{style:u.fields},t.createElement("div",{style:u.double},t.createElement(PB,{style:{input:u.input,label:u.label},label:"hex",value:o,onChange:s})),t.createElement("div",{style:u.column},t.createElement("div",{style:u.single},t.createElement(PB,{style:{input:u.input2,label:u.label2},label:"rgb",value:l,onChange:s})),t.createElement("div",{style:u.single},t.createElement(PB,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:s})),t.createElement("div",{style:u.single},t.createElement(PB,{style:{input:u.input2,label:u.label2},label:"hsl",value:c,onChange:s})))))},PK=function(e){var n=e.width,r=e.onChange,i=e.rgb,o=e.hsl,a=e.hsv,s=e.hex,u=e.header,l=e.styles,c=void 0===l?{}:l,f=e.className,h=void 0===f?"":f,d=(0,vB.ZP)(Eq({default:{picker:{width:n,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return t.createElement("div",{style:d.picker,className:"google-picker "+h},t.createElement("div",{style:d.head},u),t.createElement("div",{style:d.swatch}),t.createElement("div",{style:d.saturation},t.createElement(Hq,{hsl:o,hsv:a,pointer:TK,onChange:r})),t.createElement("div",{style:d.body},t.createElement("div",{style:d.controls,className:"flexbox-fix"},t.createElement("div",{style:d.hue},t.createElement(FB,{style:d.Hue,hsl:o,radius:"4px",pointer:IK,onChange:r}))),t.createElement(NK,{rgb:i,hsl:o,hex:s,hsv:a,onChange:r})))};PK.propTypes={width:Hd().oneOfType([Hd().string,Hd().number]),styles:Hd().object,header:Hd().string},PK.defaultProps={width:652,styles:{},header:"Color picker"};Bz(PK);var jK=Tr((function(e){var n,r,i=e.store,o=e.human,a=e.pickStatus,s=function(e,n){var r=Yr((0,t.useState)(go({},uB)),2),i=r[0],o=r[1],a=Yr((0,t.useState)(""),2),s=a[0],u=a[1],l=(0,t.useRef)({}),c=function(){n.disablePickColor(),o(go(go({},i),{},{enablePickColor:!1}))};return(0,t.useEffect)((function(){i.editAnnotation?l.current=e.selectedAction.objectsShown?go({},e.selectedAction.objectsShown):{}:i.addAnnotation&&(l.current={})}),[i]),(0,t.useEffect)((function(){var t=function(t){(e.edit||e.newScreen)&&Object.keys(t).forEach((function(e){void 0!==l.current[e]?delete l.current[e]:l.current[e]=t[e]}))};return n.subscribe(t,"objectsShown"),function(){return n.unsubscribe(t,"objectsShown")}}),[n,i]),{saveScreen:function(){n.api.send("scene.capture",(function(t){n.api.send("camera.info",(function(r){var i=e.getActionId;n.reset(e.selectedAction);var a=n.getObjectsIdColor();
2e.selectedNote.addNewAnnotation(t,r,l.current,s,i,a),o(go({},uB)),c(),l.current={},e.offNewScreen(),u("")}))}))},addNewScreen:function(){var t;e.onNewScreen(),n.resetLabels(),n.resetSelected(),n.resetColor(null===(t=e.selectedAction)||void 0===t?void 0:t.colors),l.current={}},cancel:function(){var t;e.offMode(),o(go({},uB)),c(),l.current={},null!==(t=e.selectedNote)&&void 0!==t&&t.selectedAction&&(n.updateCamera(e.selectedNote.selectedAction),u(""))},onModeAnnotation:function(e){return o(go(go({},uB),{},{addAnnotation:e,enablePickColor:i.enablePickColor}))},updateScreen:function(){n.api.send("scene.capture",(function(t){n.api.send("camera.info",(function(r){var i=e.getActionId,a=n.getObjectsIdColor();n.reset(e.selectedAction),e.selectedNote.updateAnnotation(t,r,l.current,s,i,a),o(go({},uB)),c(),l.current={},e.offEditMode(),u("")}))}))},editMode:function(){e.onEditMode(),n.resetSelected(),n.updateCamera(e.selectedAction),o(go(go({},uB),{},{editAnnotation:!0,enablePickColor:i.enablePickColor}))},enablePickColor:function(){n.enablePickColor(),o(go(go({},i),{},{enablePickColor:!0}))},disablePickColor:c,events:i,title:s,setTitle:u}}(i,o),u=s.events,l=s.saveScreen,c=s.cancel,f=s.addNewScreen,h=s.onModeAnnotation,d=s.editMode,p=s.updateScreen,v=s.title,y=s.setTitle,m=s.enablePickColor,g=s.disablePickColor,b=Yr((0,t.useState)(!1),2),w=b[0],k=b[1],x=Yr((0,t.useState)({rgb:{r:61,g:55,b:92,a:1}}),2),_=x[0],E=x[1],C=Yr((0,t.useState)(null),2),S=C[0],O=C[1];(0,t.useEffect)((function(){a(u.enablePickColor)}),[u.enablePickColor]),(0,t.useEffect)((function(){g()}),[null===(n=i.selectedNote)||void 0===n?void 0:n.scene]),(0,t.useEffect)((function(){var e=function(e){O(e)};return o.subscribe(e,"selectedElement"),function(){return o.unsubscribe(e,"selectedElement")}}));(0,t.useEffect)((function(){k(v.length<3)}),[v]);var T=function(){u.enablePickColor?g():m()};return(0,ea.jsxs)("div",{className:"create_page_controller",children:[i.isEditScreen?(0,ea.jsxs)(ea.Fragment,{children:[i.newScreen?(0,ea.jsx)(Kp,{handlerClick:function(){w||l()},children:"Save Screen"}):(0,ea.jsx)(Kp,{handlerClick:p,children:"Update Screen"}),(0,ea.jsx)(Kp,{className:"base_button__cancel",handlerClick:c,children:"Cancel"})]}):(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(Kp,{handlerClick:f,children:"Add New Screen"}),null!==(r=i.selectedNote)&&void 0!==r&&r.selectedAction?(0,ea.jsx)(Kp,{handlerClick:d,children:"Edit Screen"}):null]}),i.newScreen?(0,ea.jsxs)("div",{className:"create_page_controller_footer first-block",children:[(0,ea.jsx)(dB,{store:i,human:o,onChange:h,onModeCreated:u.addAnnotation,children:(0,ea.jsx)(cB,{label:"Title",placeholder:"Title",value:v,error:w,active:(null===v||void 0===v?void 0:v.length)>2,handlerChange:y,labelWidth:"100px"})}),(0,ea.jsx)(lB,{checked:u.enablePickColor,onSwitch:T,children:(0,ea.jsx)("div",{style:{display:"flex",gap:"10px"},children:"Pick color object selected"})})]}):null,i.edit?(0,ea.jsxs)("div",{className:"create_page_controller_footer",children:[(0,ea.jsx)(pB,{className:"create_page_controller_footer",onModeEdit:u.editAnnotation,human:o,error:w,setTitle:y,title:v,store:i}),(0,ea.jsx)(lB,{onSwitch:T,children:(0,ea.jsx)("div",{style:{display:"flex",gap:"10px"},children:"Pick color object selected"})})]}):null,u.enablePickColor?(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(mK,{color:_,onChange:function(e){E(e),o.saveColor(e.rgb)}}),S?(0,ea.jsx)("button",{className:"btn-deselect base_button ",onClick:function(){return o.deselectElementColor()},children:"Deselect"}):null,S?(0,ea.jsx)("button",{className:"btn-show-selected-element base_button ",onClick:function(){return o.highlightSelectedElement()},children:"Show Selected Element"}):null,S?(0,ea.jsx)("button",{className:"btn-reset-color base_button ",onClick:function(){return o.removeColor()},children:"Reset Color"}):null]}):null]})})),RK=Tr((function(e){var n=e.store,r=Yr((0,t.useState)({title:"",region:""}),2),i=r[0],o=r[1],a=Yi();if(!n.isOpenedModalLearn)return null;var s=Object.keys(Dp.REGION).map((function(e){return{value:e,label:Dp.REGION[e]}}));return(0,ea.jsx)(xv,{cancelButtonLabel:"",disabled:!i.region||i.title<3,confirmButtonLabel:"Create",onClose:function(){n.toggleModalLearn.bind(n),a("/notes")},onConfirm:n.setNewLearn.bind(n,i.region,i.title),children:(0,ea.jsxs)("div",{style:{width:"50vw",height:"10vh",display:"flex",flexDirection:"column",gap:"20px"},children:[(0,ea.jsx)(cB,{label:"Title",placeholder:"Title",active:!0,handlerChange:function(e){return o(go(go({},i),{},{title:e}))}}),(0,ea.jsx)(SF,{options:s,placeholder:"Region",className:"z-index-1000",onChange:function(e){var t=e.value;return o(go(go({},i),{},{region:t}))}})]})})})),LK=function(){function e(t){var n=t.camera,r=void 0===n?{}:n,i=t.id,o=void 0===i?null:i,a=t.labels,s=void 0===a?[]:a,u=t.objectsSelected,l=void 0===u?{}:u,c=t.objectsShown,f=void 0===c?{}:c,h=t.order,d=void 0===h?0:h,p=t.title,v=void 0===p?"":p,y=t.colors,m=void 0===y?{}:y;Lr(this,e),this.camera=r,this.labels=s,this.title=v,this.objectsSelected=l,this.objectsShown=f,this.order=d,this.id=null===o?Qp():o,this.colors=m,pn(this)}return Br(e,[{key:"isValid",get:function(){var e;return(null===(e=this.title)||void 0===e?void 0:e.length)>2}},{key:"getLabel",value:function(e){return this.labels.find((function(t){return e===t.id}))}},{key:"update",value:function(e){Object.assign(this,e)}}]),e}(),MK=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,r=void 0===n?(new Date).getTime().toString():n,i=t.order,o=void 0===i?1:i,a=t.content,s=void 0===a?"":a,u=t.title,l=void 0===u?"":u,c=t.actions,f=void 0===c?[]:c,h=t.scene,d=void 0===h?"":h;Lr(this,e),this.id=r,this.order=o,this.content=s,this.title=l,this.actions=null!==f&&void 0!==f&&f.length?f.map((function(e){return new LK(e)})):[],this.selectedAction=null,this.scene=d,pn(this)}return Br(e,[{key:"isValid",get:function(){var e;return(null===(e=this.title)||void 0===e?void 0:e.length)>2}},{key:"firstSelectedAction",value:function(){var e;null!==(e=this.actions)&&void 0!==e&&e.length&&(this.selectedAction=this.actions[0])}},{key:"resetActions",value:function(){this.actions=[],this.selectedAction=null}},{key:"setSelectedAction",value:function(e){var t=this.actions.find((function(t){return t.id===e}));this.selectedAction=t||null}},{key:"setScene",value:function(e){this.scene=e}},{key:"removeActionById",value:function(e){this.actions=this.actions.filter((function(t){return t.id!==e}))}},{key:"setTitle",value:function(e){this.title=e}},{key:"setContent",value:function(e){this.content=e}},{key:"getObjectSelected",value:function(e){var t,n={},r=Zr(e.objects);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.selected&&(n[i.objectId]=!0)}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"updateAnnotation",value:function(e,t,n,r,i,o){var a={objectsShown:n,objectsSelected:this.getObjectSelected(e)};this.selectedAction.update(go(go({camera:t,labels:e.labels},a),{},{title:r,id:i,colors:o}))}},{key:"addNewAnnotation",value:function(e,t,n,r,i,o){var a={objectsShown:n,objectsSelected:this.getObjectSelected(e)};this.actions.push(new LK(go(go({camera:t,labels:e.labels},a),{},{title:r,id:i,colors:o}))),this.actions.length?this.selectedAction=this.actions[this.actions.length-1]:this.selectedAction=null}}]),e}(),DK=function(){function e(){Lr(this,e),this.isOpenedModalLearn=!0,this.selectedNote=null,this.notes=[],this.data={region:"",system:null,tags:[],title:"",uid:null,id:null},this.edit=!1,this.newScreen=!1,pn(this)}return Br(e,[{key:"initState",value:function(e){this.data=e.learn,this.notes=e.notes.map((function(e){return new MK(e)}
2)),this.notes.forEach((function(e){return e.firstSelectedAction()})),this.selectedNote=this.notes[0]||null}},{key:"getActionId",get:function(){var e;return this.edit?null===(e=this.selectedAction)||void 0===e?void 0:e.id:this.newScreen?Qp():null}},{key:"setDataTitle",value:function(e){this.data.title=e}},{key:"setDataRegion",value:function(e){this.data.region=e}},{key:"toggleModalLearn",value:function(){this.isOpenedModalLearn=!this.isOpenedModalLearn}},{key:"indexCurrentNote",get:function(){var e=this;return this.notes.findIndex((function(t){return t===e.selectedNote}))}},{key:"removeCurrentNote",value:function(){var e,t=this;if(1===(null===(e=this.notes)||void 0===e?void 0:e.length))this.notes=[],this.addNewNote();else{var n=this.indexCurrentNote;this.notes=this.notes.filter((function(e){return e!==t.selectedNote})),this.notes[n]?this.selectedNote=this.notes[n]:this.selectedNote=this.notes[n-1]}}},{key:"prevNote",value:function(){var e=this.notes[this.indexCurrentNote-1];this.selectedNote=null!==e&&void 0!==e?e:this.selectedNote}},{key:"nextNote",value:function(){var e=this.notes[this.indexCurrentNote+1];this.selectedNote=null!==e&&void 0!==e?e:this.selectedNote}},{key:"actions",get:function(){var e;return(null===(e=this.selectedNote)||void 0===e?void 0:e.actions)||[]}},{key:"setSelectedNote",value:function(e){var t=this.notes.find((function(t){return t.id===e}));t&&(this.selectedNote=t)}},{key:"setNewLearn",value:function(e,t){this.data.region=e,this.data.title=t;var n=new MK;this.notes.push(n),this.selectedNote=n,this.newScreen=!0,this.toggleModalLearn()}},{key:"addNewNote",value:function(){var e=new MK;this.notes.push(e),this.selectedNote=e}},{key:"onEditMode",value:function(){this.edit=!0,this.newScreen=!1}},{key:"offEditMode",value:function(){this.edit=!1}},{key:"selectedAction",get:function(){var e;return(null===(e=this.selectedNote)||void 0===e?void 0:e.selectedAction)||{}}},{key:"currentActionIndex",get:function(){var e=this;return this.selectedNote.actions.findIndex((function(t){return t===e.selectedAction}))}},{key:"offMode",value:function(){this.offNewScreen(),this.offEditMode()}},{key:"isEditScreen",get:function(){return this.edit||this.newScreen}},{key:"onNewScreen",value:function(){this.edit=!1,this.newScreen=!0}},{key:"offNewScreen",value:function(){this.newScreen=!1}},{key:"saveFirebase",value:function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.data.id){e.next=6;break}return e.next=3,this.addDocFirebase();case 3:return e.abrupt("return",e.sent);case 6:return e.next=8,this.updateDocFirebase();case 8:return e.abrupt("return",this.data.id);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateDocFirebase",value:function(){var e=qp(ti().mark((function e(){var t,n,r,i,o,a,s,u=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,KA(HT(wR,"note_sets/".concat(this.data.id,"/notes")));case 2:for(t=e.sent,n=[],t.forEach((function(e){return n.push(e)})),r=JA(wR),i=[],o=0,a=n;o<a.length;o++)s=a[o],i.push(KA(HT(wR,"note_sets/".concat(this.data.id,"/notes/").concat(s.id,"/actions")))),r.delete(WT(wR,"note_sets/".concat(this.data.id,"/notes/"),s.id));Promise.all(i).then(function(){var e=qp(ti().mark((function e(t){var n,i,o;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],i=Zr(t);try{for(i.s();!(o=i.n()).done;)o.value.forEach((function(e){return n.push(e)}))}catch(a){i.e(a)}finally{i.f()}return n.forEach((function(e){r.delete(WT(wR,e.ref.parent.path,e.id))})),e.next=6,u.saveNotes(u.data.id,u.notes,r);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"addDocFirebase",value:function(){var e=qp(ti().mark((function e(){var t,n;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JA(wR),e.prev=1,e.next=4,$A(HT(wR,"note_sets"),go(go({},this.data),{},{uid:bR.currentUser.uid,last_modified:new lA("serverTimestamp")}));case 4:return n=e.sent,this.data.id=n.id,e.next=8,this.saveNotes(this.data.id,this.notes,t);case 8:return e.abrupt("return",n.id);case 11:e.prev=11,e.t0=e.catch(1),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[1,11]])})));return function(){return e.apply(this,arguments)}}()},{key:"saveNotes",value:function(){var e=qp(ti().mark((function e(t,n,r){var i,o,a,s,u,l;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=0,o=Zr(n);try{for(o.s();!(a=o.n()).done;
2)s=a.value,u=Qp(),l=WT(wR,"note_sets/".concat(t,"/notes"),u),r.set(l,{order:i,content:s.content,title:s.title,scene:s.scene}),i+=1,this.saveActions(t,u,s.actions,r)}catch(c){o.e(c)}finally{o.f()}return e.next=5,r.commit();case 5:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"saveActions",value:function(e,t,n,r){var i,o=0,a=Zr(n);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=WT(wR,"note_sets/".concat(e,"/notes/").concat(t,"/actions"),s.id);r.set(u,{order:o,id:s.id,colors:s.colors,camera:s.camera,labels:s.labels,title:s.title,objectsSelected:s.objectsSelected,objectsShown:s.objectsShown}),o+=1}}catch(l){a.e(l)}finally{a.f()}}}]),e}(),FK=function(){function e(){Lr(this,e),this._human=new window.HumanAPI("myWidget"),this.scenePicked=[],this.objectsShown=[],this.objectsSelected=[],this.labelsPicked=[],this.selectedElement=[],this.prevSelectedAction=null,this.pickColorObjectSelect=!1,this.selectedObject={},this.colorObjectsId={},this.selectedObjectItem=null,Object.assign(this,jR),this.addEvent()}return Br(e,[{key:"api",get:function(){return this._human}},{key:"getObjectSelected",value:function(e){var t,n={},r=Zr(e.objects);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.selected&&(n[i.objectId]=!0)}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"enablePickColor",value:function(){var e=this;this.api.send("scene.capture",(function(t){e.selectedObject=e.getObjectSelected(t),e.pickColorObjectSelect=!0}))}},{key:"reset",value:function(e){this.prevSelectedAction=e,this.colorObjectsId={}}},{key:"resetSelected",value:function(){var e=this;this.api.send("scene.capture",(function(t){var n=e.getObjectSelected(t);for(var r in n)n[r]=!1;e.api.send("scene.selectObjects",n)}))}},{key:"resetLabels",value:function(){var e=this;this.api.send("labels.info",(function(t){for(var n in t)e.api.send("labels.destroy",n)}))}},{key:"disablePickColor",value:function(){this.selectedObject={},this.pickColorObjectSelect=!1,this.deselectElementColor()}},{key:"getObjectsIdColor",value:function(){return this.colorObjectsId}},{key:"removeColor",value:function(){this.selectedObjectItem&&(delete this.colorObjectsId[this.selectedObjectItem],this.resetColor(yo({},this.selectedObjectItem,!0)),this.deselectElementColor())}},{key:"deselectElementColor",value:function(){var e=this;this.selectedObjectItem=null,this.selectedElement.forEach((function(t){return t(e.selectedObjectItem)}))}},{key:"highlightSelectedElement",value:function(){var e=this;if(this.selectedObjectItem){var t=1,n=0;!function r(){var i=1===t?0:1;e.api.send("scene.colorObject",{objectId:e.selectedObjectItem,opacity:i}),t=i,++n<10&&setTimeout(r,100)}()}}},{key:"saveColor",value:function(e){this.selectedObjectItem&&(this.colorObjectsId[this.selectedObjectItem]=e,this.setColor(this.selectedObjectItem,e))}},{key:"addEvent",value:function(){var e=this;this.api.on("scene.picked",(function(t){t.position&&e.pickColorObjectSelect&&(e.selectedObjectItem===t.objectId?e.selectedObjectItem=null:e.selectedObjectItem=t.objectId,e.selectedElement.forEach((function(t){return t(e.selectedObjectItem)})))})),this.api.on("scene.picked",(function(t){t.position&&e.scenePicked.forEach((function(e){return e(t)}))})),this.api.on("scene.objectsShown",(function(t){e.objectsShown.forEach((function(e){return e(t)}))})),this.api.on("scene.objectsSelected",(function(t){if(e.pickColorObjectSelect){for(var n in t)t[n]=!1;e.api.send("scene.selectObjects",go(go({},t),e.selectedObject))}else e.objectsSelected.forEach((function(e){return e(t)}))})),this.api.on("labels.picked",(function(t){e.labelsPicked.forEach((function(e){return e(t)}))}))}},{key:"addSelectedColorObjects",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in this.colorObjectsId={},e)this.colorObjectsId[t]=e[t]}},{key:"updateCamera",value:function(e){this.colorObjectsId={},this._updateCamera(this.api,e,this.prevSelectedAction),this.addSelectedColorObjects(null===e||void 0===e?void 0:e.colors),this.prevSelectedAction=e}},{key:"subscribe",value:function(e,t){if(!this[t])throw Error("not found type event");var n=this[t].find((function(t){return t===e}));void 0===n&&this[t].push(e)}},{key:"unsubscribe",value:function(e,t){if(!this[t])throw Error("not found type event");this[t]=this[t].filter((function(t){return t!==e}))}}]),e}();function BK(e){var t=e.onClick;return(0,ea.jsx)("svg",{onClick:t,width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ea.jsx)("path",{d:"M0.999805 15.9979C0.999454 16.2606 1.05094 16.5208 1.15131 16.7635C1.25167 17.0062 1.39895 17.2268 1.58471 17.4125C1.77046 17.5983 1.99103 17.7455 2.2338 17.8459C2.47656 17.9462 2.73674 17.9977 2.99943 17.9973H11.0006C11.5309 17.9973 12.0395 17.7867 12.4145 17.4117C12.7895 17.0368 13.0002 16.5282 13.0002 15.9979V3.99883H0.999805V15.9979ZM10.5007 0.999707L9.50085 0H4.49914L3.49934 0.999707H0V2.99912H14V0.999707H10.5007Z",fill:"#B8B8B8"})})}
2var UK=function(e){return{label:e.title,value:e.id,uri:e.uri}};function VK(e){var n=e.changeUri,r=e.isOpenConfirm,i=e.selected,o=Yr((0,t.useState)(!1),2),a=o[0],s=o[1],u=Yr((0,t.useState)(null),2),l=u[0],c=u[1],f=Yr((0,t.useState)(null),2),h=f[0],d=f[1],p=function(){var e=Yr((0,t.useState)([]),2),n=e[0],r=e[1],i=function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GA(WT(wR,"models",t));case 2:return e.next=4,a();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=n.map((function(e){return UK(e)})),a=function(){var e=qp(ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:fetch("https://getmodels-oayrtllsza-uc.a.run.app/").then((function(e){return e.json()})).then((function(e){r(e.map((function(e){return{uri:e.content_url,title:e.content_title,id:e.content_id}})))}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){a()}),[]),{models:n,optionsList:o,removeModel:i,selectedOption:function(e){var t=n.find((function(t){return t.id===e}));return t?UK(t):null}}}(),v=p.optionsList,y=p.selectedOption,m=function(e){var t=e.uri,i=e.value;d(i),r&&null!==h?(s(!0),c({uri:t,value:i})):n(t)};(0,t.useEffect)((function(){var e=v.find((function(e){return e.uri===i}));if(e)d(e.value);else{var t=Yr(v,1)[0];null===h&&t&&m({uri:t.uri,value:t.value})}}),[v]),(0,t.useEffect)((function(){if(!i&&h){var e=v.find((function(e){return e.value===h}));n(e.uri)}}),[i]);var g=function(){d(l.value),s(!1)};return(0,ea.jsxs)(ea.Fragment,{children:[a?(0,ea.jsx)(xv,{onConfirm:function(){n(l.uri),s(!1)},onCancel:g,onClose:g,isOpen:a,content:"If you change the model, all your annotations will be lost"}):null,(0,ea.jsx)(SF,{value:y(h),options:v,onChange:m})]})}function qK(e){e.onClick;return(0,ea.jsx)("svg",{className:"MuiSvgIcon-root",focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,ea.jsx)("path",{fill:"#757575",d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"})})}function zK(e){var n=e.options,r=e.setSelectedAction,i=e.curentItem,o=Yr((0,t.useState)(!1),2),a=o[0],s=o[1],u=n.map((function(e,t){return(0,ea.jsxs)("div",{onClick:function(){r(e.value)},className:"item ".concat(i==e.value&&"active"),children:[(0,ea.jsx)("span",{children:e.label}),(0,ea.jsx)(qK,{})]},t)}));return(0,ea.jsxs)("div",{className:"label-header",children:[(0,ea.jsx)("button",{onClick:function(e){s((function(e){return!e}))},children:"Labels"}),(0,ea.jsx)("div",{className:"select-wrap",children:a?u:""})]})}var HK=Tr((function(e){var n,r,i,o,a=e.store,s=e.human,u=e.children,l=Yr((0,t.useState)(!1),2),c=l[0],f=l[1],h=(null===a||void 0===a?void 0:a.actions.map((function(e){return{label:e.title,value:e.id}})))||[],d=function(){return f(!1)},p=function(e){a.selectedNote.setSelectedAction(e),s.updateCamera(a.selectedAction)};return(0,ea.jsxs)("div",{className:"create_page_top_controller",children:[(0,ea.jsx)("h2",{className:"create_page__title",children:"Create page"}),(0,ea.jsx)("div",{className:"wrap-select",children:(0,ea.jsx)(VK,{changeUri:function(e){a.selectedNote.resetActions(),a.selectedNote.setScene(e)},selected:a.selectedNote.scene,isOpenConfirm:!(null===a||void 0===a||null===(n=a.selectedNote)||void 0===n||!n.actions.length)})}),null!==h&&void 0!==h&&h.length?(0,ea.jsxs)(ea.Fragment,{children:[c?(0,ea.jsx)(xv,{onClose:d,onCancel:d,onConfirm:function(){var e,t,n,r,i=null===(e=a.selectedAction)||void 0===e?void 0:e.id;(a.selectedNote.removeActionById(i),null!==(t=a.selectedNote.actions[0])&&void 0!==t&&t.id)&&a.selectedNote.setSelectedAction(null===(r=a.selectedNote.actions[0])||void 0===r?void 0:r.id);null!==(n=a.selectedNote.actions)&&void 0!==n&&n.length&&s.updateCamera(a.selectedAction),d()},children:"Are you sure you want to delete this screen?"}):null,(0,ea.jsx)("div",{className:"wrap-select min-width-default",children:(0,ea.jsx)(zK,{options:h,setSelectedAction:p,curentItem:a.selectedAction.id})}),a.selectedAction.id?(0,ea.jsx)("div",{style:{display:"flex",alignItems:"center",cursor:"pointer"},children:(0,ea.jsx)(BK,{onClick:function(){return f(!0)}})}):null,(0,ea.jsx)(IF,{current:a.currentActionIndex,count:null===(r=a.actions)||void 0===r?void 0:r.length,label:null!==(i=a.selectedNote)&&void 0!==i&&i.title?(null===(o=a.selectedNote)||void 0===o?void 0:o.title)+"  -  ":"",handlerPrev:function(){var e;a.currentActionIndex>0&&p(null===(e=a.actions[a.currentActionIndex-1])||void 0===e?void 0:e.id)},handlerNext:function(){var e,t;a.currentActionIndex<(null===(e=a.actions)||void 0===e?void 0:e.length)-1&&p(null===(t=a.actions[a.currentActionIndex+1])||void 0===t?void 0:t.id)}})]}):null,u]})}));function WK(){return(0,ea.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ea.jsx)("path",{d:"M16.9637 0H5.78644C5.27437 0.00123375 4.77754 0.174402 4.37564 0.491734C3.97374 0.809067 3.69005 1.25218 3.57007 1.75H14.0526C14.966 1.75277 15.8413 2.11688 16.4873 2.76281C17.1332 3.40874 17.4973 4.28402 17.5001 5.1975V15.68C17.9979 
215.56 18.441 15.2763 18.7583 14.8744C19.0757 14.4725 19.2488 13.9757 19.2501 13.4636V2.28637C19.2501 1.67999 19.0092 1.09844 18.5804 0.669664C18.1516 0.240885 17.5701 0 16.9637 0Z",fill:"#42A4CB"}),(0,ea.jsx)("path",{d:"M13.4636 3.5H2.28638C1.6802 3.50069 1.09906 3.7418 0.670431 4.17043C0.241803 4.59906 0.000694753 5.1802 0 5.78638V16.9636C0.000694753 17.5698 0.241803 18.1509 0.670431 18.5796C1.09906 19.0082 1.6802 19.2493 2.28638 19.25H13.4636C14.0698 19.2493 14.6509 19.0082 15.0796 18.5796C15.5082 18.1509 15.7493 17.5698 15.75 16.9636V5.78638C15.7493 5.1802 15.5082 4.59906 15.0796 4.17043C14.6509 3.7418 14.0698 3.50069 13.4636 3.5ZM11.375 12.25H8.75V14.875C8.75 15.1071 8.65781 15.3296 8.49372 15.4937C8.32962 15.6578 8.10706 15.75 7.875 15.75C7.64294 15.75 7.42038 15.6578 7.25628 15.4937C7.09219 15.3296 7 15.1071 7 14.875V12.25H4.375C4.14294 12.25 3.92038 12.1578 3.75628 11.9937C3.59219 11.8296 3.5 11.6071 3.5 11.375C3.5 11.1429 3.59219 10.9204 3.75628 10.7563C3.92038 10.5922 4.14294 10.5 4.375 10.5H7V7.875C7 7.64294 7.09219 7.42038 7.25628 7.25628C7.42038 7.09219 7.64294 7 7.875 7C8.10706 7 8.32962 7.09219 8.49372 7.25628C8.65781 7.42038 8.75 7.64294 8.75 7.875V10.5H11.375C11.6071 10.5 11.8296 10.5922 11.9937 10.7563C12.1578 10.9204 12.25 11.1429 12.25 11.375C12.25 11.6071 12.1578 11.8296 11.9937 11.9937C11.8296 12.1578 11.6071 12.25 11.375 12.25Z",fill:"#42A4CB"})]})}var KK=Tr((function(e){var n,r,i=e.store,o=e.human,a=Yr((0,t.useState)(!1),2),s=a[0],u=a[1],l=function(){i.selectedAction instanceof LK?o.updateCamera(i.selectedAction):o.api.send("scene.reset")},c=function(){return u(!1)},f=Yi(),h=function(){var e=qp(ti().mark((function e(){var t;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.saveFirebase();case 2:t=e.sent,f(Fd.getPath(t));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ea.jsxs)("div",{className:"create_page_top_controller_button",children:[s?(0,ea.jsx)(xv,{onCancel:c,onClose:c,onConfirm:function(){i.removeCurrentNote(),c()},children:"Are you sure you want to delete the note?"}):null,(null===(n=i.notes)||void 0===n?void 0:n.length)>1?(0,ea.jsx)(IF,{label:"Notes",count:null===(r=i.notes)||void 0===r?void 0:r.length,current:i.indexCurrentNote,handlerPrev:function(){i.prevNote(),l()},handlerNext:function(){i.nextNote(),l()}}):null,(0,ea.jsx)(Kp,{handlerClick:function(){i.selectedNote.isValid&&(i.addNewNote(),l())},className:"base_button__white",children:(0,ea.jsxs)(ea.Fragment,{children:["Add Note",(0,ea.jsx)(WK,{})]})}),(0,ea.jsxs)("button",{disabled:i.notes.length<=1,className:"button_delete",onClick:function(){return u((function(e){return!e}))},children:[" Delete Note ",(0,ea.jsx)(BK,{})]}),(0,ea.jsx)(Kp,{className:"green",handlerClick:h,children:"Save"})]})})),GK=n(6770),$K=n.n(GK),YK=["header","font","size","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image","color","formats/action","action"],QK=Tr((function(e){var n,r,i,o,a,s,u,l=e.initState,c=void 0===l?null:l,f=e.showModalTile,h=void 0===f||f,d=Yr((0,t.useState)(null),2),p=d[0],v=d[1],y=Yr((0,t.useState)(!0),2),m=y[0],g=y[1],b=Yr((0,t.useState)(null),2),w=b[0],k=b[1],x=Yr((0,t.useState)(new DK),1)[0],_=Yr((0,t.useState)(!1),2),E=_[0],C=_[1],S=Yr((0,t.useState)(null),2),O=S[0],T=S[1];(0,t.useEffect)((function(){null!==c&&x.initState(c)}),[c,x]),(0,t.useEffect)((function(){O instanceof FK&&O.updateCamera(x.selectedAction)}),[O]);var A=(0,t.useRef)(),I=(0,t.useCallback)((function(e){var t=e.target;t.classList.contains("action-item")&&(x.selectedNote.setSelectedAction(t.dataset.key),O.updateCamera(x.selectedAction))}),[x,O]);if((0,t.useEffect)((function(){var e=A.current;return A.current&&e.addEventListener("click",I),function(){return null===e||void 0===e?void 0:e.removeEventListener("click",I)}}),[I,A.current]),!x.data.title||!x.data.region)return h?(0,ea.jsx)(RK,{store:x}):null;var N=null===(n=x.selectedNote)||void 0===n?void 0:n.content;return(0,ea.jsxs)("div",{className:"container create_page__container",children:[(0,ea.jsx)(HK,{store:x,human:O,children:(0,ea.jsx)(KK,{store:x,human:O})}),(0,ea.jsxs)("div",{className:"create_page__content",children:[(0,ea.jsx)(rB,{scene:(null===(r=x.selectedNote)||void 0===r?void 0:r.sce
2ne)||"",init:function(){T(new FK("myWidget"))},pickStatus:E,children:O?(0,ea.jsx)(jK,{human:O,store:x,pickStatus:C}):null}),(0,ea.jsx)("div",{className:"create_page_editor",ref:A,children:x.selectedNote?(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(cB,{style:{maxHeight:"50px"},label:"Note Name",placeholder:"name",error:(null===(i=x.selectedNote)||void 0===i||null===(o=i.title)||void 0===o?void 0:o.length)<3,value:(null===(a=x.selectedNote)||void 0===a?void 0:a.title)||"",active:(null===(s=x.selectedNote)||void 0===s||null===(u=s.title)||void 0===u?void 0:u.length)>2,handlerChange:function(e){return x.selectedNote.setTitle(e)}}),(0,ea.jsx)($K(),{ref:function(e){return v(e)},onChangeSelection:function(e,t,n){e&&(e.length>0?(g(!1),p.getEditor().getFormat().action&&k(e)):(g(!0),k(null)))},onBlur:function(){g(!0),k(null)},value:N,onChange:function(e){x.selectedNote.setContent(e)},formats:YK}),(0,ea.jsxs)("div",{className:"flex-wrap",children:[(0,ea.jsx)("button",{className:"base_button",disabled:m||!!w,onClick:function(){var e;p.getEditor().format("action",{key:x.getActionId?x.getActionId:null===(e=x.selectedAction)||void 0===e?void 0:e.id});var t=p.getEditor().selection.lastRange;p.getEditor().insertText(t.index+t.length," "),p.getEditor().removeFormat(t.index+t.length,1),p.getEditor().setSelection(t.index+t.length+1,0),k(null),g(!0)},children:"Add"}),(0,ea.jsx)("button",{className:"base_button",onClick:function(){p.getEditor().removeFormat(w.index,w.length),k(null)},disabled:null===w,children:"Remove"})]})]}):null})]})]})})),XK=function(e){Vr(n,e);var t=Kr(n);function n(){return Lr(this,n),t.apply(this,arguments)}return Br(n,null,[{key:"create",value:function(e){var t=Cv(qr(n),"create",this).call(this);return t.setAttribute("data-key",e.key),t.classList.add("action-item"),t}},{key:"formats",value:function(e){return{key:e.getAttribute("data-key")}}}]),n}(GK.Quill.import("blots/inline"));function ZK(){var e=Xi().id,n=Yr((0,t.useState)(!0),2),r=n[0],i=n[1],o=Yr((0,t.useState)(null),2),a=o[0],s=o[1];return(0,t.useEffect)((function(){var t=function(){var t=qp(ti().mark((function t(){var n,r,o,a,u;return ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,HA(WT(wR,"note_sets",e));case 2:return n=t.sent,r={learn:go(go({},n.data()),{},{id:n.id}),notes:[]},t.next=6,KA(HT(wR,"note_sets/".concat(e,"/notes")));case 6:return o=t.sent,a=r.notes,o.forEach((function(e){return a.push(go(go({id:e.id},e.data()),{},{actions:[]}))})),u=a.map((function(t){return KA(HT(wR,"note_sets/".concat(e,"/notes/").concat(t.id,"/actions")))})),t.next=12,Promise.all(u).then((function(e){e.forEach((function(e,t){return e.forEach((function(e){return a[t].actions.push(e.data())}))}))}));case 12:s(r),i(!1);case 14:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();i(!0),t()}),[e]),null===a||r?null:(0,ea.jsx)(QK,{initState:a,showModalTile:!1})}XK.blotName="action",XK.className="action-item",GK.Quill.register("formats/action",XK);var JK=Tr((function(){var e=(0,t.useContext)(va).authUser;return(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(Tp,{children:(0,ea.jsxs)(Mp,{children:[(0,ea.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap",rel:"stylesheet"}),(0,ea.jsx)("script",{src:"https://developer.biodigital.com/builds/api/2/human-api.min.js"}),(0,ea.jsx)("title",{children:"Anatomy App"})]})}),(0,ea.jsx)(Nd,{}),null===e.isAuth?null:(0,ea.jsx)(Fp,{}),null===e.isAuth?null:(0,ea.jsx)(ho,{children:(0,ea.jsxs)(co,{path:qd.HOME.path,element:(0,ea.jsx)(jf,{}),children:[(0,ea.jsx)(co,{path:qd.HOME.path,index:!0,element:(0,ea.jsx)(Pd,{component:(0,ea.jsx)(Up,{}),redirectTo:"/notes",guard:qd.HOME})}),(0,ea.jsx)(co,{path:qd.SINGUP.path,element:(0,ea.jsx)(Pd,{component:(0,ea.jsx)(Jp,{}),redirectTo:"/notes",guard:qd.SINGUP})}),(0,ea.jsx)(co,{path:qd.SINGIN.path,element:(0,ea.jsx)(Pd,{component:(0,ea.jsx)(tv,{}),redirectTo:"/notes",guard:qd.SINGIN})}),(0,ea.jsx)(co,{path:qd.ALLNOTES.path,element:(0,ea.jsx)(Pd,{component:(0,ea.jsx)(AR,{}),redirectTo:"/singin",guard:qd.ALLNOTES})}),(0,ea.jsx)(co,{path:qd.VIEWER.path,element:(0,ea.jsx)(Pd,{component:(0,ea.jsx)(sB,{}),redirectTo:"/singin",guard:qd.VIEWER})}),"/>",(0,ea.jsx)(co,{path:qd.CREATE_MODEL.path,element:(0,ea.jsx)(Pd,{component:(0,ea.jsx)(QK,{}),redirectTo:qd.CREATE_MODEL.path,guard:qd.CREATE_MODEL})}),(0,ea.jsx)(co,{path:qd.EDIT_MODEL.path,element:(0,ea.jsx)(Pd,{component:(0,ea.jsx)(ZK,{}),redirectTo:qd.EDIT_MODEL.path,guard:qd.EDIT_MODEL})}),(0,ea.jsx)(co,{path:"*",element:(0,ea.jsx)(rv,{})})]})})]})})),eG=function(){function e(t){Lr(this,e),this.email="",this.name="",this._isAuth=null,this.roles=[],this.rootStore=t,pn(this),function(e,t,n,r){Xv(e).onAuthStateChanged(t,n,r)}(bR,this._updateUserAuth.bind(this))}return Br(e,[{key:"_updateUserAuth",value:function(){var e=qp(ti().mark((function e(t){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.email=(null===t||void 0===t?void 0:t.email)||"",this._isAuth=null!==t&&void 0!==t&&t,this.rootStore.mainLoader.isLoading=!1;case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"isAuth",get:function(){return this._isAuth}},{key:"signOut",value:ti().mark((function e(){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xP(bR);case 2:case"end":return e.stop()}}),e)}))},{key:"createUserWithEmailAndPassword",value:ti().mark((function e(t){var n,r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.email,r=t.password,e.prev=1,e.next=4,mP(bR,n,r);case 4:return e.abrupt("return",{success:!0});case 7:return e.prev=7,e.t0=e.catch(1),e.abrupt("return",{success:!1,errorCode:Yp(e.t0.code)});case 10:case"end":return e.stop()}}),e,null,[[1,7]])}))},{key:"logIn",value:ti().mark((function e(t,n){return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,bP(bR,t,n);case 3:return e.abrupt("return",{success:!0});case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",{success:!1,errorCode:Yp(e.t0.code)});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))}]),e}(),tG=eG,nG=function(){function e(t){Lr(this,e),this.isLoading=!0,this.rootStore=t,pn(this)}return Br(e,[{key:"toggleLoader",value:function(e){this.isLoading=e}}]),e}(),rG=nG,iG=function(){function e(t){Lr(this,e),this.rootStore=t,this.list=[],this.loading=!1,this.textSearch="",pn(this)}
2return Br(e,[{key:"collection",get:function(){return HT(wR,"note_sets")}},{key:"listNotes",get:function(){var e=this;return this.textSearch.trim()?this.list.filter((function(t){var n,r;return null===(n=t.title)||void 0===n?void 0:n.toLowerCase().replace(/ /g,"").includes(null===(r=e.textSearch)||void 0===r?void 0:r.toLowerCase())})):this.list}},{key:"setSearch",value:function(e){this.textSearch=e}},{key:"resetSearch",value:function(){this.textSearch=""}},{key:"removeNoteById",value:function(e){this.list=this.list.filter((function(t){return t.id!==e}))}},{key:"getQuery",value:function(e){return"string"===typeof e?TA(this.collection,function(e,t,n){var r=t,i=EA("where",e);return AA._create(i,r,n)}("region","==",e.toUpperCase()),PA("last_modified","desc")):TA(this.collection,PA("last_modified","desc"))}},{key:"getLearns",value:ti().mark((function e(t){var n,r=this;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,KA(this.getQuery(t));case 3:n=e.sent,this.list=[],n.forEach((function(e){return r.list.push(new NR(go(go({},e.data()),{},{id:e.id})))})),this.loading=!1;case 7:case"end":return e.stop()}}),e,this)}))}]),e}(),oG=new(Br((function e(){Lr(this,e),this.authUser=new tG(this),this.mainLoader=new rG(this),this.notes=new iG(this)})));i.createRoot(document.getElementById("root")).render((0,ea.jsx)(va.Provider,{value:oG,children:(0,ea.jsx)(If,{children:(0,ea.jsx)(aa,{children:(0,ea.jsx)(JK,{})})})}))}()}();
3//# sourceMappingURL=main.039f6ced.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.