@openmrs/esm-app-shell 4.3.2-pre.662 → 4.3.2-pre.666

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- /*! For license information please see openmrs.c662a36cd901ed90.js.LICENSE.txt */
2
- (()=>{var e,t,n={1469:(e,t,n)=>{"use strict";n.d(t,{FQz:()=>An,aGc:()=>Tt,gN6:()=>Gt,lSo:()=>Fe,K0D:()=>Rn,kwZ:()=>Zn,n9L:()=>_t,Jn6:()=>Dn});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?r.enableUseControlledStateWithValue=!0:r.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE&&"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1}catch(e){r.enableCssCustomProperties=!1,r.enableUseControlledStateWithValue=!1,r.enableCssGrid=!1,r.enableV11Release=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:r.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release}];function i(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)}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function l(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}for(var u=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.flags=new Map,t&&Object.keys(t).forEach((function(e){n.flags.set(e,t[e])}))}var t,n;return t=e,n=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags.set(n,e[n])}))}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=a(t.value,2),o=r[0],i=r[1];this.flags.has(o)||this.flags.set(o,i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),c=new u(undefined),f=0;f<o.length;f++){var d=o[f];c.add(d.name,d.enabled)}function p(){return c.enabled.apply(c,arguments)}function h(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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)}}function y(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}function E(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&&S(e,t)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function C(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=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){if(e){if("string"==typeof e)return T(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)?T(e,t):void 0}}function T(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(){c.merge.apply(c,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0});var j=n(7959),L=n.n(j),I=n(2123),M=n.n(I),D=n(6377),R=n.n(D);function A(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 $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var B=["width","height","viewBox"],z=["tabindex"],Z={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function H(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var q=["className","children","tabIndex"],Y=["tabindex"],G=L().forwardRef((function(e,t){var n=e.className,r=e.children,o=e.tabIndex,i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,i=U(e,B),a=i.tabindex,s=U(i,z),l=$($($({},Z),s),{},{width:t,height:n,viewBox:o});return l["aria-label"]||l["aria-labelledby"]||l.title?(l.role="img",null!=a&&(l.focusable="true",l.tabindex=a)):l["aria-hidden"]=!0,l}(V(V({},W(e,q)),{},{tabindex:o})),a=i.tabindex,s=W(i,Y);return n&&(s.className=n),null!=a&&(s.tabIndex=a),t&&(s.ref=t),L().createElement("svg",s,r)}));G.displayName="Icon",G.propTypes={"aria-hidden":M().string,"aria-label":M().string,"aria-labelledby":M().string,children:M().node,className:M().string,height:M().oneOfType([M().number,M().string]),preserveAspectRatio:M().string,tabIndex:M().string,viewBox:M().string,width:M().oneOfType([M().number,M().string]),xmlns:M().string},G.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"},M().oneOfType([M().number,M().string]);var Q,J,X,ee,te,ne,re,oe,ie,ae,se,le,ue,ce,fe,de,pe,he,me,ve,ge,ye,be,we=["children","size"],Ee=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,we);return 16===o||"16"===o||"16px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},i),Q||(Q=L().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),J||(J=L().createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),n):20===o||"20"===o||"20px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},i),X||(X=L().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z"})),ee||(ee=L().createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),n):24===o||"24"===o||"24px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},i),te||(te=L().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z"})),ne||(ne=L().createElement("path",{fill:"none",d:"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z","data-icon-path":"inner-path",opacity:"0"})),n):L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),re||(re=L().createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),oe||(oe=L().createElement("path",{d:"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"})),n)})),xe=["children","size"],Se=["children","size"],_e=["children","size"],ke=["children","size"],Oe=["children","size"],Ce=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,xe);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),ie||(ie=L().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),n)})),Pe=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,Se);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),ae||(ae=L().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),se||(se=L().createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)})),Ne=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,_e);return 16===o||"16"===o||"16px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},i),le||(le=L().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),ue||(ue=L().createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n):20===o||"20"===o||"20px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},i),ce||(ce=L().createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),fe||(fe=L().createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),n):24===o||"24"===o||"24px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},i),de||(de=L().createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),pe||(pe=L().createElement("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"})),n):L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),he||(he=L().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),me||(me=L().createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)})),Te=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,ke);return"glyph"===o||"glyph"===o||"glyphpx"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor"},i),ve||(ve=L().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),n):16===o||"16"===o||"16px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},i),ge||(ge=L().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n):L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),ye||(ye=L().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),n)})),je=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,Oe);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),be||(be=L().createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)})),Le=L().createContext("cds");function Ie(){return L().useContext(Le)}var Me={};function De(e,t){return function(t,n,r){if(void 0!==t[n]){Me[r]&&Me[r][n]||(Me[r]=m(m({},Me[r]),{},b({},n,!0)));for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return e.apply(void 0,[t,n,r].concat(i))}}}var Re=["active","className","withOverlay","small","description"];function Ae(e){var t,n,r=e.active,o=e.className,i=e.withOverlay,a=e.small,s=e.description,l=_(e,Re),u=Ie(),c=R()(o,(b(t={},"".concat(u,"--loading"),!0),b(t,"".concat(u,"--loading--small"),a),b(t,"".concat(u,"--loading--stop"),!r),t)),f=R()((b(n={},"".concat(u,"--loading-overlay"),!0),b(n,"".concat(u,"--loading-overlay--stop"),!r),n)),d=L().createElement("div",w({},l,{"aria-atomic":"true","aria-live":r?"assertive":"off",className:c}),L().createElement("svg",{className:"".concat(u,"--loading__svg"),viewBox:"0 0 100 100"},L().createElement("title",null,s),a?L().createElement("circle",{className:"".concat(u,"--loading__background"),cx:"50%",cy:"50%",r:"44"}):null,L().createElement("circle",{className:"".concat(u,"--loading__stroke"),cx:"50%",cy:"50%",r:"44"})));return i?L().createElement("div",{className:f},d):d}Ae.propTypes={active:M().bool,className:M().string,description:M().string,id:De(M().string),small:M().bool,withOverlay:M().bool},Ae.defaultProps={active:!0,withOverlay:!0,small:!1,description:"loading"};var $e=["className","status","iconDescription","description","onSuccess","successDelay"];function Fe(e){var t,n=e.className,r=e.status,o=void 0===r?"active":r,i=e.iconDescription,a=e.description,s=e.onSuccess,l=e.successDelay,u=_(e,$e),c=Ie(),f=R()("".concat(c,"--inline-loading"),n),d=L().createElement("div",{className:"".concat(c,"--inline-loading__text")},a),p=(t=i||o,"error"===o?L().createElement(Ee,{className:"".concat(c,"--inline-loading--error")},L().createElement("title",null,t)):"finished"===o?(setTimeout((function(){s&&s()}),l),L().createElement(Ne,{className:"".concat(c,"--inline-loading__checkmark-container")},L().createElement("title",null,t))):"inactive"===o||"active"===o?(i||(t="active"===o?"loading":"not loading"),L().createElement(Ae,{small:!0,description:t,withOverlay:!1,active:"active"===o})):void 0),h=p&&L().createElement("div",{className:"".concat(c,"--inline-loading__animation")},p);return L().createElement("div",w({className:f},u,{"aria-live":"assertive"}),h,a&&d)}Fe.propTypes={className:M().string,description:M().node,iconDescription:M().string,onSuccess:M().func,status:M().oneOf(["inactive","active","finished","error"]),successDelay:M().number},Fe.defaultProps={successDelay:1500};var Ue=["children","className","href","disabled","inline","visited","renderIcon","size"],Be=L().forwardRef((function(e,t){var n,r=e.children,o=e.className,i=e.href,a=e.disabled,s=void 0!==a&&a,l=e.inline,u=void 0!==l&&l,c=e.visited,f=void 0!==c&&c,d=e.renderIcon,p=e.size,h=_(e,Ue),m=Ie(),v={className:R()("".concat(m,"--link"),o,(b(n={},"".concat(m,"--link--disabled"),s),b(n,"".concat(m,"--link--inline"),u),b(n,"".concat(m,"--link--visited"),f),b(n,"".concat(m,"--link--").concat(p),p),n)),rel:"_blank"===h.target?"noopener":null};return s?(v.role="link",v["aria-disabled"]=!0):v.href=i,L().createElement("a",w({ref:t},v,h),r,!u&&d&&L().createElement("div",{className:"".concat(m,"--link__icon")},L().createElement(d,null)))}));Be.displayName="Link",Be.propTypes={children:M().node,className:M().string,disabled:M().bool,href:M().string,inline:M().bool,renderIcon:M().oneOfType([M().func,M().object]),size:M().oneOf(["sm","md","lg"]),visited:M().bool};var ze=Be,Ze=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=0;i<e.length&&!t.defaultPrevented;i++)"function"==typeof e[i]&&e[i].apply(e,[t].concat(r))}},He="undefined"!=typeof window?j.useLayoutEffect:j.useEffect;function Ve(e){if(function(e){if(e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return e;var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=N(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,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,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e.childNodes);try{for(n.s();!(t=n.n()).done;){var r=Ve(t.value);if(r)return r}}catch(e){n.e(e)}finally{n.f()}return null}function Ke(e,t){for(var n=0;n<t.length;n++)if(We(e,t[n]))return!0;return!1}function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.key,r=t.which,o=t.keyCode,i=t.code;return"string"==typeof e?e===n:"number"==typeof e?e===r||e===o:e.key&&Array.isArray(n)?-1!==n.indexOf(e.key):e.key===n||e.which===r||e.keyCode===o||e.code===i}var qe,Ye,Ge,Qe,Je={key:"Enter",which:13,keyCode:13,code:"Enter"},Xe={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},et={key:" ",which:32,keyCode:32,code:"Space"},tt=["children","className","light"],nt=["children","className","clicked","href","light","onClick","onKeyDown"],rt=["children","className","disabled","id","light","name","onClick","onChange","onKeyDown","selected","tabIndex","title","value"],ot=["tabIndex","className","children","expanded","tileMaxHeight","tilePadding","onClick","onKeyUp","tileCollapsedIconText","tileExpandedIconText","tileCollapsedLabel","tileExpandedLabel","light"],it=L().forwardRef((function(e,t){var n=e.children,r=e.className,o=e.light,i=void 0!==o&&o,a=_(e,tt),s=Ie(),l=R()("".concat(s,"--tile"),b({},"".concat(s,"--tile--light"),i),r);return L().createElement("div",w({className:l,ref:t},a),n)}));it.displayName="Tile",it.propTypes={children:M().node,className:M().string,light:De(M().bool)};var at=L().forwardRef((function(e,t){var n,r=e.children,o=e.className,i=e.clicked,a=void 0!==i&&i,s=e.href,l=e.light,u=e.onClick,c=void 0===u?function(){}:u,f=e.onKeyDown,d=void 0===f?function(){}:f,p=_(e,nt),h=Ie(),m=R()("".concat(h,"--tile"),"".concat(h,"--tile--clickable"),(b(n={},"".concat(h,"--tile--is-clicked"),a),b(n,"".concat(h,"--tile--light"),l),n),o),v=P((0,j.useState)(a),2),g=v[0],y=v[1];return L().createElement(ze,w({className:m,href:s,onClick:function(e){e.persist(),y(!g),c(e)},onKeyDown:function(e){e.persist(),Ke(e,[Je,et])&&(e.preventDefault(),y(!g),d(e)),d(e)},ref:t},p),r)}));at.displayName="ClickableTile",at.propTypes={children:M().node,className:M().string,clicked:M().bool,href:M().string,light:De(M().bool),onClick:M().func,onKeyDown:M().func,rel:M().string};var st=L().forwardRef((function(e,t){var n,r=e.children,o=e.className,i=e.disabled,a=e.id,s=e.light,l=e.name,u=e.onClick,c=void 0===u?function(){}:u,f=e.onChange,d=void 0===f?function(){}:f,p=e.onKeyDown,h=void 0===p?function(){}:p,m=e.selected,v=void 0!==m&&m,g=e.tabIndex,y=void 0===g?0:g,E=e.title,x=void 0===E?"title":E,S=e.value,k=void 0===S?"value":S,O=_(e,rt),C=Ie(),N=c,T=h,I=P((0,j.useState)(v),2),M=I[0],D=I[1],A=P((0,j.useState)(v),2),$=A[0],F=A[1],U=R()("".concat(C,"--tile"),"".concat(C,"--tile--selectable"),(b(n={},"".concat(C,"--tile--is-selected"),M),b(n,"".concat(C,"--tile--light"),s),b(n,"".concat(C,"--tile--disabled"),i),n),o),B=R()("".concat(C,"--tile-input"),b({},"".concat(C,"--tile-input--checked"),M));return v!==$&&(D(v),F(v)),L().createElement(L().Fragment,null,L().createElement("input",{checked:M,className:B,disabled:i,id:a,name:l,onChange:i?null:function(e){D(e.target.checked),d(e)},ref:t,tabIndex:-1,title:x,type:"checkbox",value:k}),L().createElement("label",w({className:U,htmlFor:a,onClick:i?null:function(e){e.preventDefault(),e.persist(),D(!M),N(e),d(e)},onKeyDown:i?null:function(e){e.persist(),Ke(e,[Je,et])&&(e.preventDefault(),D(!M),d(e)),T(e)},tabIndex:i?null:y},O),L().createElement("span",{className:"".concat(C,"--tile__checkmark ").concat(C,"--tile__checkmark--persistent")},M?qe||(qe=L().createElement(Pe,null)):Ye||(Ye=L().createElement(Ce,null))),L().createElement("span",{className:"".concat(C,"--tile-content")},r)))}));function lt(e){var t,n,r=e.tabIndex,o=e.className,i=e.children,a=e.expanded,s=e.tileMaxHeight,l=e.tilePadding,u=e.onClick,c=e.onKeyUp,f=e.tileCollapsedIconText,d=e.tileExpandedIconText,p=e.tileCollapsedLabel,h=e.tileExpandedLabel,m=e.light,v=_(e,ot),g=P((0,j.useState)(s),2),y=g[0],E=g[1],x=P((0,j.useState)(l),2),S=x[0],k=x[1],O=P((0,j.useState)(a),2),C=O[0],N=O[1],T=P((0,j.useState)(s),2),I=T[0],M=T[1],D=P((0,j.useState)(l),2),A=D[0],$=D[1],F=P((0,j.useState)(a),2),U=F[0],B=F[1],z=P((0,j.useState)(!1),2),Z=z[0],H=z[1],V=(0,j.useRef)(null),K=(0,j.useRef)(null),W=(0,j.useRef)(null),q=(0,j.useRef)(null),Y=Ie();function G(){U&&E(W.current.getBoundingClientRect().height),E(V.current.getBoundingClientRect().height)}function Q(e){e.persist(),B(!U),G(),u&&u(e)}function J(e){e.target!==q.current&&Ke(e,[Je,et])&&e.preventDefault()}a!==C&&(B(a),N(a),G()),s!==I&&(E(s),M(s)),l!==A&&(k(l),$(l));var X=R()("".concat(Y,"--tile"),"".concat(Y,"--tile--expandable"),(b(t={},"".concat(Y,"--tile--is-expanded"),U),b(t,"".concat(Y,"--tile--light"),m),t),o),ee=R()("".concat(Y,"--tile"),"".concat(Y,"--tile--expandable"),"".concat(Y,"--tile--expandable--interactive"),(b(n={},"".concat(Y,"--tile--is-expanded"),U),b(n,"".concat(Y,"--tile--light"),m),n),o),te=R()("".concat(Y,"--tile__chevron"),"".concat(Y,"--tile__chevron--interactive")),ne={maxHeight:U?null:y+S},re=L().Children.toArray(i);return He((function(){var e=window.getComputedStyle(q.current,null),t=V.current.getBoundingClientRect().height,n=parseInt(e.getPropertyValue("padding-top"),10),r=parseInt(e.getPropertyValue("padding-bottom"),10);E(t),k(n+r)}),[]),He((function(){(Ve(K.current)||Ve(V.current))&&H(!0)}),[]),(0,j.useEffect)((function(){var e=new ResizeObserver((function(e){var t=P(e,1)[0];E(t.contentRect.height)}));return e.observe(V.current),function(){return e.disconnect()}}),[]),Z?L().createElement("div",w({ref:q,style:ne,className:ee,"aria-expanded":U},v),L().createElement("div",{ref:W},L().createElement("div",{ref:V,className:"".concat(Y,"--tile-content")},re[0]),L().createElement("button",{type:"button","aria-expanded":U,onKeyUp:Ze([c,J]),onClick:Ze([u,Q]),"aria-label":U?d:f,className:te},Ge||(Ge=L().createElement(Te,null))),L().createElement("div",{ref:K,className:"".concat(Y,"--tile-content")},re[1]))):L().createElement("button",w({type:"button",ref:q,style:ne,className:X,"aria-expanded":U,title:U?d:f},v,{onKeyUp:Ze([c,J]),onClick:Ze([u,Q]),tabIndex:r}),L().createElement("div",{ref:W},L().createElement("div",{ref:V,className:"".concat(Y,"--tile-content")},re[0]),L().createElement("div",{className:"".concat(Y,"--tile__chevron")},L().createElement("span",null,U?h:p),Qe||(Qe=L().createElement(Te,null))),L().createElement("div",{ref:K,className:"".concat(Y,"--tile-content")},re[1])))}st.displayName="SelectableTile",st.propTypes={children:M().node,className:M().string,disabled:M().bool,id:M().string,light:De(M().bool),name:M().string,onChange:M().func,onClick:M().func,onKeyDown:M().func,selected:M().bool,tabIndex:M().number,title:M().string,value:M().oneOfType([M().string,M().number]).isRequired},lt.propTypes={children:M().node,className:M().string,expanded:M().bool,id:M().string,light:De(M().bool),onClick:M().func,onKeyUp:M().func,tabIndex:M().number,tileCollapsedIconText:M().string,tileCollapsedLabel:M().string,tileExpandedIconText:M().string,tileExpandedLabel:M().string},lt.defaultProps={tabIndex:0,expanded:!1,tileMaxHeight:0,tilePadding:0,onClick:function(){},tileCollapsedIconText:"Interact to expand Tile",tileExpandedIconText:"Interact to collapse Tile"},lt.displayName="ExpandableTile";var ut=L().forwardRef((function(e,t){var n=e.children,r=Ie();return L().createElement("span",{ref:t,className:"".concat(r,"--tile-content__above-the-fold")},n)}));ut.propTypes={children:M().node},ut.displayName="TileAboveTheFoldContent";var ct,ft,dt,pt=L().forwardRef((function(e,t){var n=e.children,r=Ie();return L().createElement("span",{ref:t,className:"".concat(r,"--tile-content__below-the-fold")},n)}));pt.propTypes={children:M().node},pt.displayName="TileBelowTheFoldContent";var ht=["children","className","light"],mt=["children","href","className","handleClick","handleKeyDown","onClick","onKeyDown","clicked","light"],vt=["children","id","tabIndex","value","name","title","iconDescription","className","handleClick","handleKeyDown","onClick","onChange","onKeyDown","light","disabled","selected"],gt=["tabIndex","className","expanded","tileMaxHeight","tilePadding","handleClick","onKeyUp","tileCollapsedIconText","tileExpandedIconText","tileCollapsedLabel","tileExpandedLabel","onBeforeClick","light"],yt=function(e){E(n,e);var t=C(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e=this.context,t=this.props,n=t.children,r=t.className,o=t.light,i=_(t,ht),a=R()("".concat(e,"--tile"),b({},"".concat(e,"--tile--light"),o),r);return L().createElement("div",w({className:a},i),n)}}]),n}(j.Component);b(yt,"propTypes",{children:M().node,className:M().string,light:M().bool}),b(yt,"contextType",Le),b(yt,"defaultProps",{light:!1});var bt=function(e){E(n,e);var t=C(n);function n(){var e;v(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return b(k(e=t.call.apply(t,[this].concat(o))),"state",{}),b(k(e),"handleClick",(function(t){t.persist(),e.setState({clicked:!e.state.clicked},(function(){var n,r,o,i;(null===(n=(r=e.props).handleClick)||void 0===n?void 0:n.call(r,t))||null===(o=(i=e.props).onClick)||void 0===o||o.call(i,t)}))})),b(k(e),"handleKeyDown",(function(t){var n,r;t.persist(),Ke(t,[Je,et])?e.setState({clicked:!e.state.clicked},(function(){var n,r;(null===(n=(r=e.props).handleKeyDown)||void 0===n?void 0:n.call(r,t))||e.props.onKeyDown(t)})):(null===(n=(r=e.props).handleKeyDown)||void 0===n?void 0:n.call(r,t))||e.props.onKeyDown(t)})),e}return y(n,[{key:"render",value:function(){var e,t=this.context,n=this.props,r=n.children,o=n.href,i=n.className;n.handleClick,n.handleKeyDown,n.onClick,n.onKeyDown,n.clicked;var a=n.light,s=_(n,mt),l=R()("".concat(t,"--tile"),"".concat(t,"--tile--clickable"),(b(e={},"".concat(t,"--tile--is-clicked"),this.state.clicked),b(e,"".concat(t,"--tile--light"),a),e),i);return L().createElement(ze,w({href:o,className:l},s,{onClick:this.handleClick,onKeyDown:this.handleKeyDown}),r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.clicked;return t.prevClicked===n?null:{clicked:n,prevClicked:n}}}]),n}(j.Component);function wt(e){var t,n=e.children,r=e.id,o=e.tabIndex,i=e.value,a=e.name,s=e.title;e.iconDescription;var l=e.className,u=e.handleClick,c=e.handleKeyDown,f=e.onClick,d=e.onChange,p=e.onKeyDown,h=e.light,m=e.disabled,v=e.selected,g=_(e,vt),y=Ie(),E=u||f,x=c||p,S=P((0,j.useState)(v),2),k=S[0],O=S[1],C=(0,j.useRef)(null),N=R()("".concat(y,"--tile"),"".concat(y,"--tile--selectable"),(b(t={},"".concat(y,"--tile--is-selected"),k),b(t,"".concat(y,"--tile--light"),h),b(t,"".concat(y,"--tile--disabled"),m),t),l),T=R()("".concat(y,"--tile-input"),b({},"".concat(y,"--tile-input--checked"),k));return(0,j.useEffect)((function(){O(v)}),[v]),L().createElement(L().Fragment,null,L().createElement("input",{ref:C,tabIndex:-1,id:r,className:T,value:i,onChange:m?null:function(e){O(e.target.checked),d(e)},type:"checkbox",disabled:m,name:a,title:s,checked:k}),L().createElement("label",w({htmlFor:r,className:N,tabIndex:m?null:o},g,{onClick:m?null:function(e){e.preventDefault(),e.persist(),O(!k),E(e),d(e)},onKeyDown:m?null:function(e){e.persist(),Ke(e,[Je,et])&&(e.preventDefault(),O(!k),d(e)),x(e)}}),L().createElement("span",{className:"".concat(y,"--tile__checkmark ").concat(y,"--tile__checkmark--persistent")},k?ct||(ct=L().createElement(Pe,null)):ft||(ft=L().createElement(Ce,null))),L().createElement("span",{className:"".concat(y,"--tile-content")},n)))}b(bt,"propTypes",{children:M().node,className:M().string,handleClick:De(M().func),handleKeyDown:De(M().func),href:M().string,light:M().bool,onClick:M().func,onKeyDown:M().func,rel:M().string}),b(bt,"contextType",Le),b(bt,"defaultProps",{clicked:!1,onClick:function(){},onKeyDown:function(){},light:!1}),wt.defaultProps={value:"value",title:"title",selected:!1,tabIndex:0,light:!1,onClick:function(){},onChange:function(){},onKeyDown:function(){}},wt.propTypes={children:M().node,className:M().string,disabled:M().bool,handleClick:De(M().func),handleKeyDown:De(M().func),iconDescription:De(M().string),id:M().string,light:M().bool,name:M().string,onChange:M().func,onClick:M().func,onKeyDown:M().func,selected:M().bool,tabIndex:M().number,title:M().string,value:M().oneOfType([M().string,M().number]).isRequired};var Et=function(e){E(n,e);var t=C(n);function n(){var e;v(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return b(k(e=t.call.apply(t,[this].concat(o))),"state",{}),b(k(e),"resizeObserver",null),b(k(e),"componentDidMount",(function(){if(e.resizeObserver=new ResizeObserver((function(t){var n=P(t,1)[0];e.setState({tileMaxHeight:n.contentRect.height})})),e.tile){var t=window.getComputedStyle(e.tile,null);e.aboveTheFold&&(e.resizeObserver.observe(e.aboveTheFold),e.setState({tileMaxHeight:e.aboveTheFold.getBoundingClientRect().height,tilePadding:parseInt(t.getPropertyValue("padding-top"),10)+parseInt(t.getPropertyValue("padding-bottom"),10)}))}})),b(k(e),"componentDidUpdate",(function(t){t.expanded!==e.props.expanded&&e.setMaxHeight()})),b(k(e),"setMaxHeight",(function(){(e.state.expanded?e.tileContent:e.aboveTheFold)&&e.setState({tileMaxHeight:e.state.expanded?e.tileContent.getBoundingClientRect().height:e.aboveTheFold.getBoundingClientRect().height})})),b(k(e),"handleClick",(function(t){e.props.onBeforeClick(t)&&"INPUT"!==t.target.tagName&&(t.persist(),e.setState({expanded:!e.state.expanded},(function(){var n,r,o,i;e.setMaxHeight(),(null===(n=(r=e.props).handleClick)||void 0===n?void 0:n.call(r,t))||null===(o=(i=e.props).onClick)||void 0===o||o.call(i,t)})))})),b(k(e),"handleKeyUp",(function(t){t.target!==e.tile&&Ke(t,[Je,et])&&t.preventDefault()})),b(k(e),"getChildren",(function(){return L().Children.toArray(e.props.children)})),e}return y(n,[{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect()}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.tabIndex,o=n.className;n.expanded,n.tileMaxHeight,n.tilePadding,n.handleClick;var i=n.onKeyUp,a=n.tileCollapsedIconText,s=n.tileExpandedIconText,l=n.tileCollapsedLabel,u=n.tileExpandedLabel;n.onBeforeClick;var c=n.light,f=_(n,gt),d=this.context,p=this.state.expanded,h=R()("".concat(d,"--tile"),"".concat(d,"--tile--expandable"),(b(e={},"".concat(d,"--tile--is-expanded"),p),b(e,"".concat(d,"--tile--light"),c),e),o),m={maxHeight:p?null:this.state.tileMaxHeight+this.state.tilePadding},v=this.getChildren();return L().createElement("button",w({type:"button",ref:function(e){t.tile=e},style:m,className:h,"aria-expanded":p,title:p?s:a},f,{onKeyUp:Ze([i,this.handleKeyUp]),onClick:this.handleClick,tabIndex:r}),L().createElement("div",{ref:function(e){t.tileContent=e}},L().createElement("div",{ref:function(e){t.aboveTheFold=e},className:"".concat(d,"--tile-content")},v[0]),L().createElement("div",{className:"".concat(d,"--tile__chevron")},L().createElement("span",null,p?u:l),dt||(dt=L().createElement(Te,null))),L().createElement("div",{className:"".concat(d,"--tile-content")},v[1])))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.expanded,r=e.tileMaxHeight,o=e.tilePadding,i=t.prevExpanded,a=t.prevTileMaxHeight,s=t.prevTilePadding,l=t.expanded,u=t.tileMaxHeight,c=t.tilePadding,f=i!==n,d=a!==r,p=s!==o;return f||d||p?{expanded:f?n:l,tileMaxHeight:d?r:u,tilePadding:p?o:c,prevExpanded:n,prevTileMaxHeight:r,prevTilePadding:o}:null}}]),n}(j.Component);b(Et,"propTypes",{children:M().node,className:M().string,expanded:M().bool,handleClick:De(M().func),id:M().string,light:M().bool,onBeforeClick:M().func,onClick:M().func,onKeyUp:M().func,tabIndex:M().number,tileCollapsedIconText:M().string,tileCollapsedLabel:M().string,tileExpandedIconText:M().string,tileExpandedLabel:M().string}),b(Et,"contextType",Le),b(Et,"defaultProps",{tabIndex:0,expanded:!1,tileMaxHeight:0,tilePadding:0,onBeforeClick:function(){return!0},onClick:function(){},tileCollapsedIconText:"Interact to expand Tile",tileExpandedIconText:"Interact to collapse Tile",light:!1});var xt=function(e){E(n,e);var t=C(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e=this.context,t=this.props.children;return L().createElement("span",{className:"".concat(e,"--tile-content__above-the-fold")},t)}}]),n}(j.Component);b(xt,"propTypes",{children:M().node}),b(xt,"contextType",Le);var St=function(e){E(n,e);var t=C(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e=this.props.children,t=this.context;return L().createElement("span",{className:"".concat(t,"--tile-content__below-the-fold")},e)}}]),n}(j.Component);b(St,"propTypes",{children:M().node}),b(St,"contextType",Le);var _t=p("enable-v11-release")?it:yt,kt=(p("enable-v11-release"),p("enable-v11-release"),p("enable-v11-release"),p("enable-v11-release"),p("enable-v11-release"),["aria-label","children","className","noTrailingSlash"]),Ot=L().forwardRef((function(e,t){var n,r=e["aria-label"],o=e.children,i=e.className,a=e.noTrailingSlash,s=_(e,kt),l=Ie(),u=R()((b(n={},"".concat(l,"--breadcrumb"),!0),b(n,"".concat(l,"--breadcrumb--no-trailing-slash"),a),n));return L().createElement("nav",w({className:i,"aria-label":r||"Breadcrumb",ref:t},s),L().createElement("ol",{className:u},o))}));Ot.displayName="Breadcrumb",Ot.propTypes={"aria-label":M().string,children:M().node,className:M().string,noTrailingSlash:M().bool};var Ct,Pt,Nt,Tt=Ot,jt=["children","size"],Lt=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,jt);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),Ct||(Ct=L().createElement("circle",{cx:"8",cy:"16",r:"2"})),Pt||(Pt=L().createElement("circle",{cx:"16",cy:"16",r:"2"})),Nt||(Nt=L().createElement("circle",{cx:"24",cy:"16",r:"2"})),n)})),It=["aria-current","children","className","href","isCurrentPage"],Mt=L().forwardRef((function(e,t){var n,r=e["aria-current"],o=e.children,i=e.className,a=e.href,s=e.isCurrentPage,l=_(e,It),u=Ie(),c=R()((b(n={},"".concat(u,"--breadcrumb-item"),!0),b(n,"".concat(u,"--breadcrumb-item--current"),s&&"page"!==r),b(n,i,!!i),n));if(o.type&&void 0!==o.type.displayName&&o.type.displayName.includes("OverflowMenu")){var f=L().createElement(Lt,{className:"".concat(u,"--overflow-menu__icon")});return L().createElement("li",w({className:c},l),L().cloneElement(o,{menuOptionsClass:"".concat(u,"--breadcrumb-menu-options"),menuOffset:{top:10,left:59},renderIcon:function(){return f}}))}return"string"==typeof o?L().createElement("li",w({className:c,ref:t},l),a?L().createElement(ze,{href:a,"aria-current":r},o):L().createElement("span",{className:"".concat(u,"--link")},o)):L().createElement("li",w({className:c,ref:t},l),L().cloneElement(o,{"aria-current":r,className:R()("".concat(u,"--link"),o.props.className)}))}));Mt.displayName="BreadcrumbItem",Mt.propTypes={"aria-current":M().oneOfType([M().string,M().bool]),children:M().node,className:M().string,href:M().string,isCurrentPage:M().bool};var Dt,Rt,At,$t,Ft,Ut,Bt,zt,Zt,Ht,Vt,Kt,Wt,qt,Yt,Gt=Mt,Qt=["children","size"],Jt=["children","size"],Xt=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,Qt);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),Dt||(Dt=L().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),Rt||(Rt=L().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),At||(At=L().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),n)})),en=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,Jt);return 16===o||"16"===o||"16px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},i),$t||($t=L().createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),Ft||(Ft=L().createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n):20===o||"20"===o||"20px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},i),Ut||(Ut=L().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),Bt||(Bt=L().createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),n):24===o||"24"===o||"24px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},i),zt||(zt=L().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),Zt||(Zt=L().createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),n):L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),Ht||(Ht=L().createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),Vt||(Vt=L().createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),n)})),tn=["children","size"],nn=["children","size"],rn=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,tn);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),Kt||(Kt=L().createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),Wt||(Wt=L().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),n)})),on=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,nn);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),qt||(qt=L().createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),Yt||(Yt=L().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),n)}));function an(e){return(0,j.useCallback)((function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}var sn=["align","as","autoAlign","caret","className","children","dropShadow","highContrast","open"],ln=["className","children"],un=L().createContext({floating:{current:null}}),cn=L().forwardRef((function(e,t){var n,r=e.align,o=void 0===r?"bottom":r,i=e.as,a=void 0===i?"span":i,s=e.autoAlign,l=void 0!==s&&s,u=e.caret,c=void 0===u||u,f=e.className,d=e.children,p=e.dropShadow,h=void 0===p||p,m=e.highContrast,v=void 0!==m&&m,g=e.open,y=_(e,sn),E=Ie(),x=(0,j.useRef)(),S=(0,j.useRef)(),k=(0,j.useMemo)((function(){return{floating:x}}),[]),O=an([t,S]),C=P((0,j.useState)(!1),2),N=C[0],T=C[1],I=P((0,j.useState)(o),2),M=I[0],D=I[1],A=R()((b(n={},"".concat(E,"--popover-container"),!0),b(n,"".concat(E,"--popover--caret"),c),b(n,"".concat(E,"--popover--drop-shadow"),h),b(n,"".concat(E,"--popover--high-contrast"),v),b(n,"".concat(E,"--popover--open"),g),b(n,"".concat(E,"--popover--").concat(M),N),b(n,"".concat(E,"--popover--").concat(o),!N),b(n,f,!!f),n));return He((function(){if(l){if(x.current&&!0!==N){var e=x.current.getBoundingClientRect(),t=e.x<-16,n=e.y<-16,r=e.x+(e.width-16)>document.documentElement.clientWidth,i=e.y+(e.height-16)>document.documentElement.clientHeight;if(t||n||r||i){for(var a=["top","top-left","right-bottom","right","right-top","bottom-left","bottom","bottom-right","left-top","left","left-bottom","top-right"],s=[o],u=a[(a.indexOf(o)+1)%a.length];u&&!s.includes(u);)s.push(u),u=a[(a.indexOf(u)+1)%a.length];for(var c=null,f=0;f<s.length;f++){var d=s[f];if(p(d)){c=d;break}}c&&(T(!0),D(c))}else T(!1)}}else T(!1);function p(e){S.current.classList.add("".concat(E,"--popover--").concat(e));var t=x.current.getBoundingClientRect();return t.x<-16||t.y<-16||t.x+(t.width-16)>document.documentElement.clientWidth||t.y+(t.height-16)>document.documentElement.clientHeight?(S.current.classList.remove("".concat(E,"--popover--").concat(e)),!1):(S.current.classList.remove("".concat(E,"--popover--").concat(e)),!0)}}),[N,o,l,E]),L().createElement(un.Provider,{value:k},L().createElement(a,w({},y,{className:A,ref:O}),d))}));cn.propTypes={align:M().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:M().oneOfType([M().string,M().elementType]),autoAlign:M().bool,caret:M().bool,children:M().node,className:M().string,dropShadow:M().bool,highContrast:M().bool,open:M().bool.isRequired};var fn=L().forwardRef((function(e,t){var n=e.className,r=e.children,o=_(e,ln),i=Ie(),a=an([L().useContext(un).floating,t]);return L().createElement("span",w({},o,{className:"".concat(i,"--popover")}),L().createElement("span",{className:R()("".concat(i,"--popover-content"),n),ref:a},r),L().createElement("span",{className:"".concat(i,"--popover-caret")}))}));fn.propTypes={children:M().node,className:M().string};var dn,pn=!("undefined"==typeof window||!window.document||!window.document.createElement),hn=(dn=0,function(){return++dn}),mn=pn?j.useLayoutEffect:j.useEffect,vn=!1;function gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=(0,j.useState)((function(){return vn?"".concat(e,"-").concat(hn()):null})),n=P(t,2),r=n[0],o=n[1];return mn((function(){null===r&&o("".concat(e,"-").concat(hn()))}),[hn]),(0,j.useEffect)((function(){!1===vn&&(vn=!0)}),[]),r}var yn=["align","className","children","label","description","enterDelayMs","leaveDelayMs","defaultOpen"];function bn(e){var t,n,r,o,i,a,s=e.align,l=void 0===s?"top":s,u=e.className,c=e.children,f=e.label,d=e.description,p=e.enterDelayMs,h=void 0===p?100:p,m=e.leaveDelayMs,v=void 0===m?300:m,g=e.defaultOpen,y=void 0!==g&&g,b=_(e,yn),E=(0,j.useRef)(null),x=(0,j.useRef)(null),S=(t=y,r=(n=P((0,j.useState)(t),2))[0],o=n[1],i=(0,j.useRef)(null),a=(0,j.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;clearTimeout(i.current),i.current=null,0!==t?i.current=setTimeout((function(){o(e),i.current=null}),t):o(e)}),[]),(0,j.useEffect)((function(){return function(){clearTimeout(i.current)}}),[]),[r,a]),k=P(S,2),O=k[0],C=k[1],N=gn("tooltip"),T=Ie(),I=L().Children.only(c),M={onFocus:function(){return C(!0)},onBlur:function(){return C(!1)},onMouseEnter:function(){C(!0,h)}};return f?M["aria-labelledby"]=N:M["aria-describedby"]=N,(0,j.useEffect)((function(){Ve(E.current)||C(!1)})),L().createElement(cn,w({},b,{align:l,className:R()("".concat(T,"--tooltip"),u),dropShadow:!1,highContrast:!0,onKeyDown:function(e){O&&We(e,Xe)&&(e.stopPropagation(),C(!1))},onMouseLeave:function(){C(!1,v)},open:O,ref:E}),L().cloneElement(I,M),L().createElement(fn,{"aria-hidden":"true",className:"".concat(T,"--tooltip-content"),id:N,ref:x,role:"tooltip"},f||d))}bn.propTypes={align:M().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:M().node,className:M().string,defaultOpen:M().bool,description:M().node,enterDelayMs:M().number,label:M().node,leaveDelayMs:M().number};var wn=["align","children","className","defaultOpen","enterDelayMs","kind","label","leaveDelayMs","size"],En=L().forwardRef((function(e,t){var n=e.align,r=e.children,o=e.className,i=e.defaultOpen,a=void 0!==i&&i,s=e.enterDelayMs,l=e.kind,u=e.label,c=e.leaveDelayMs,f=e.size,d=void 0===f?"md":f,p=_(e,wn),h=Ie();return L().createElement(bn,{align:n,className:"".concat(h,"--icon-tooltip"),defaultOpen:a,enterDelayMs:s,label:u,leaveDelayMs:c},L().createElement(kn,w({},p,{kind:l,ref:t,size:d,className:R()("".concat(h,"--btn--icon-only"),o)}),r))}));En.propTypes={align:M().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:M().node,className:M().string,defaultOpen:M().bool,enterDelayMs:M().number,kind:M().oneOf(["primary","secondary","ghost","tertiary"]),label:M().node.isRequired,leaveDelayMs:M().number,size:M().oneOf(["sm","md","lg"])};var xn=["as","children","className","dangerDescription","disabled","hasIconOnly","href","iconDescription","isExpressive","isSelected","kind","onBlur","onClick","onFocus","onMouseEnter","onMouseLeave","renderIcon","size","tabIndex","tooltipAlignment","tooltipPosition","type"],Sn=L().forwardRef((function(e,t){var n,r,o=e.as,i=e.children,a=e.className,s=e.dangerDescription,l=void 0===s?"danger":s,u=e.disabled,c=void 0!==u&&u,f=e.hasIconOnly,d=void 0!==f&&f,p=e.href,h=e.iconDescription,v=e.isExpressive,g=void 0!==v&&v,y=e.isSelected,E=e.kind,x=void 0===E?"primary":E,S=e.onBlur,k=e.onClick,O=e.onFocus,C=e.onMouseEnter,P=e.onMouseLeave,N=e.renderIcon,T=e.size,I=void 0===T?"lg":T,M=e.tabIndex,D=void 0===M?0:M,A=e.tooltipAlignment,$=void 0===A?"center":A,F=e.tooltipPosition,U=void 0===F?"top":F,B=e.type,z=void 0===B?"button":B,Z=_(e,xn),H=(0,j.useRef)(null),V=Ie(),K={tabIndex:D,className:R()(a,(b(n={},"".concat(V,"--btn"),!0),b(n,"".concat(V,"--btn--sm"),"sm"===I&&!g),b(n,"".concat(V,"--btn--md"),"md"===I&&!g),b(n,"".concat(V,"--btn--xl"),"xl"===I),b(n,"".concat(V,"--btn--2xl"),"2xl"===I),b(n,"".concat(V,"--btn--").concat(x),x),b(n,"".concat(V,"--btn--disabled"),c),b(n,"".concat(V,"--btn--expressive"),g),b(n,"".concat(V,"--btn--icon-only"),d),b(n,"".concat(V,"--btn--selected"),d&&y&&"ghost"===x),n)),ref:t},W=N?L().createElement(N,{"aria-label":h,className:"".concat(V,"--btn__icon"),"aria-hidden":"true"}):null,q=N?L().createElement(N,null):null,Y=["danger","danger--tertiary","danger--ghost"],G="button",Q=gn("danger-description"),J={disabled:c,type:z,"aria-describedby":Y.includes(x)?Q:null,"aria-pressed":d&&"ghost"===x?y:null},X={href:p};r=Y.includes(x)?L().createElement("span",{id:Q,className:"".concat(V,"--visually-hidden")},l):null,o?(G=o,J=m(m({},J),X)):p&&!c&&(G="a",J=X);var ee,te=L().createElement(G,m(m(m({onMouseEnter:C,onMouseLeave:P,onFocus:O,onBlur:S,onClick:k},Z),K),J),r,i,W);return d?("top"!==U&&"bottom"!==U||("center"===$&&(ee=U),"end"===$&&(ee="".concat(U,"-right")),"start"===$&&(ee="".concat(U,"-left"))),"right"!==U&&"left"!==U||(ee=U),L().createElement(En,w({align:ee,label:h,kind:x,size:I,onMouseEnter:C,onMouseLeave:P,onFocus:O,onBlur:S,onClick:Ze([k,function(e){e.target!==H.current||e.preventDefault()}])},Z,K,J),q||i)):te}));Sn.displayName="Button",Sn.propTypes={as:M().oneOfType([M().func,M().string,M().elementType]),children:M().node,className:M().string,dangerDescription:M().string,disabled:M().bool,hasIconOnly:M().bool,href:M().string,iconDescription:function(e){if(e.renderIcon&&!e.children&&!e.iconDescription)return new Error("renderIcon property specified without also providing an iconDescription property.")},isExpressive:M().bool,isSelected:M().bool,kind:M().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]),onBlur:M().func,onClick:M().func,onFocus:M().func,onMouseEnter:M().func,onMouseLeave:M().func,renderIcon:M().oneOfType([M().func,M().object]),role:M().string,size:M().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:M().number,tooltipAlignment:M().oneOf(["start","center","end"]),tooltipPosition:M().oneOf(["top","right","bottom","left"]),type:M().oneOf(["button","reset","submit"])};var _n,kn=Sn,On=["children","className","onClick","inline"],Cn=["ariaLabel","className","type","renderIcon","name","notificationType"],Pn=["role","onClose","onCloseButtonClick","statusIconDescription","className","children","kind","lowContrast","hideCloseButton","timeout","title","caption","subtitle"],Nn=["children","title","subtitle","role","onClose","onCloseButtonClick","statusIconDescription","className","kind","lowContrast","hideCloseButton"],Tn=["actionButtonLabel","ariaLabel","children","role","onActionButtonClick","onClose","onCloseButtonClick","statusIconDescription","className","inline","kind","lowContrast","hideCloseButton","hasFocus","closeOnEscape","title","subtitle"];function jn(e){var t=e.children,n=e.className,r=e.onClick,o=e.inline,i=_(e,On),a=Ie(),s=R()(n,b({},"".concat(a,"--actionable-notification__action-button"),!0));return L().createElement(kn,w({className:s,kind:o?"ghost":"tertiary",onClick:r,size:"sm"},i),t)}function Ln(e){var t=e.ariaLabel,n=e.className,r=e.type,o=e.renderIcon,i=e.name,a=e.notificationType,s=_(e,Cn),l=Ie(),u=R()(n,b({},"".concat(l,"--").concat(a,"-notification__close-button"),a)),c=R()(b({},"".concat(l,"--").concat(a,"-notification__close-icon"),a));return L().createElement("button",w({},s,{type:r,"aria-label":t,title:t,className:u}),o&&L().createElement(o,{className:c,name:i}))}jn.propTypes={children:M().node,className:M().string,inline:M().bool,onClick:M().func},Ln.propTypes={ariaLabel:M().string,className:M().string,name:M().string,notificationType:M().oneOf(["toast","inline","actionable"]),renderIcon:M().oneOfType([M().func,M().object]),type:M().string},Ln.defaultProps={ariaLabel:"close notification",notificationType:"toast",type:"button",renderIcon:je};var In=(b(_n={error:Ee,success:Ne,warning:en},"warning-alt",Xt),b(_n,"info",rn),b(_n,"info-square",on),_n);function Mn(e){var t=e.iconDescription,n=e.kind,r=e.notificationType,o=Ie(),i=In[n];return i?L().createElement(i,{className:"".concat(o,"--").concat(r,"-notification__icon")},L().createElement("title",null,t)):null}function Dn(e){var t,n=e.role,r=e.onClose,o=e.onCloseButtonClick,i=e.statusIconDescription,a=e.className,s=e.children,l=e.kind,u=e.lowContrast,c=e.hideCloseButton,f=e.timeout,d=e.title,p=e.caption,h=e.subtitle,m=_(e,Pn),v=P((0,j.useState)(!0),2),g=v[0],y=v[1],E=Ie(),x=R()(a,(b(t={},"".concat(E,"--toast-notification"),!0),b(t,"".concat(E,"--toast-notification--low-contrast"),u),b(t,"".concat(E,"--toast-notification--").concat(l),l),t)),S=(0,j.useRef)(null),k=(0,j.useRef)(null),O=(0,j.useRef)(r);return(0,j.useEffect)((function(){O.current=r})),(0,j.useEffect)((function(){if(f){var e=window.setTimeout((function(e){y(!1),O.current&&O.current(e)}),f);return function(){window.clearTimeout(e)}}}),[f]),g?L().createElement("div",w({ref:k},m,{role:n,className:x}),L().createElement(Mn,{notificationType:"toast",kind:l,iconDescription:i||"".concat(l," icon")}),L().createElement("div",{ref:S,className:"".concat(E,"--toast-notification__details")},d&&L().createElement("div",{className:"".concat(E,"--toast-notification__title")},d),h&&L().createElement("div",{className:"".concat(E,"--toast-notification__subtitle")},h),p&&L().createElement("div",{className:"".concat(E,"--toast-notification__caption")},p),s),!c&&L().createElement(Ln,{notificationType:"toast",onClick:function(e){o(e),r&&!1===r(e)||y(!1)},"aria-hidden":"true",tabIndex:"-1"})):null}function Rn(e){var t,n=e.children,r=e.title,o=e.subtitle,i=e.role,a=e.onClose,s=e.onCloseButtonClick,l=e.statusIconDescription,u=e.className,c=e.kind,f=e.lowContrast,d=e.hideCloseButton,p=_(e,Nn),h=P((0,j.useState)(!0),2),m=h[0],v=h[1],g=Ie(),y=R()(u,(b(t={},"".concat(g,"--inline-notification"),!0),b(t,"".concat(g,"--inline-notification--low-contrast"),f),b(t,"".concat(g,"--inline-notification--").concat(c),c),b(t,"".concat(g,"--inline-notification--hide-close-button"),d),t)),E=(0,j.useRef)(null),x=(0,j.useRef)(null);return m?L().createElement("div",w({ref:x},p,{role:i,className:y}),L().createElement("div",{className:"".concat(g,"--inline-notification__details")},L().createElement(Mn,{notificationType:"inline",kind:c,iconDescription:l||"".concat(c," icon")}),L().createElement("div",{ref:E,className:"".concat(g,"--inline-notification__text-wrapper")},r&&L().createElement("div",{className:"".concat(g,"--inline-notification__title")},r),o&&L().createElement("div",{className:"".concat(g,"--inline-notification__subtitle")},o),n)),!d&&L().createElement(Ln,{notificationType:"inline",onClick:function(e){s(e),a&&!1===a(e)||v(!1)},"aria-hidden":"true",tabIndex:"-1"})):null}function An(e){var t,n=e.actionButtonLabel,r=e.ariaLabel,o=e.children,i=e.role,a=e.onActionButtonClick,s=e.onClose,l=e.onCloseButtonClick,u=e.statusIconDescription,c=e.className,f=e.inline,d=e.kind,p=e.lowContrast,h=e.hideCloseButton,m=e.hasFocus,v=e.closeOnEscape,g=e.title,y=e.subtitle,E=_(e,Tn),x=P((0,j.useState)(!0),2),S=x[0],k=x[1],O=Ie(),C=gn("actionable-notification"),N=R()(c,(b(t={},"".concat(O,"--actionable-notification"),!0),b(t,"".concat(O,"--actionable-notification--toast"),!f),b(t,"".concat(O,"--actionable-notification--low-contrast"),p),b(t,"".concat(O,"--actionable-notification--").concat(d),d),b(t,"".concat(O,"--actionable-notification--hide-close-button"),h),t)),T=(0,j.useRef)(null);function I(e){l(e),s&&!1===s(e)||k(!1)}return He((function(){T.current&&m&&T.current.focus()})),function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(r){var o=e.current&&document.activeElement===e.current||e.current.contains(document.activeElement);Ke(r,[Xe])&&n&&o&&t(r)};He((function(){return document.addEventListener("keydown",r,!1),function(){return document.removeEventListener("keydown",r,!1)}}))}(T,I,v),S?L().createElement("div",w({},E,{ref:T,role:i,className:N,"aria-labelledby":g?C:void 0}),L().createElement("div",{className:"".concat(O,"--actionable-notification__details")},L().createElement(Mn,{notificationType:f?"inline":"toast",kind:d,iconDescription:u||"".concat(d," icon")}),L().createElement("div",{className:"".concat(O,"--actionable-notification__text-wrapper")},L().createElement("div",{className:"".concat(O,"--actionable-notification__content")},g&&L().createElement("div",{className:"".concat(O,"--actionable-notification__title"),id:C},g),y&&L().createElement("div",{className:"".concat(O,"--actionable-notification__subtitle")},y),o))),L().createElement(jn,{onClick:a,inline:f},n),!h&&L().createElement(Ln,{"aria-label":r,notificationType:"actionable",onClick:I})):null}Mn.propTypes={iconDescription:M().string.isRequired,kind:M().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:M().oneOf(["inline","toast"]).isRequired},Dn.propTypes={ariaLabel:M().string,caption:M().string,children:M().node,className:M().string,hideCloseButton:M().bool,kind:M().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:M().bool,onClose:M().func,onCloseButtonClick:M().func,role:M().oneOf(["alert","log","status"]),statusIconDescription:M().string,subtitle:M().string,timeout:M().number,title:M().string},Dn.defaultProps={kind:"error",role:"status",onCloseButtonClick:function(){},hideCloseButton:!1,timeout:0},Rn.propTypes={children:M().node,className:M().string,hideCloseButton:M().bool,kind:M().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:M().bool,onClose:M().func,onCloseButtonClick:M().func,role:M().oneOf(["alert","log","status"]),statusIconDescription:M().string,subtitle:M().string,title:M().string},Rn.defaultProps={kind:"error",role:"status",onCloseButtonClick:function(){},hideCloseButton:!1},An.propTypes={actionButtonLabel:M().string.isRequired,ariaLabel:M().string,caption:M().string,children:M().node,className:M().string,closeOnEscape:M().bool,hasFocus:M().bool,hideCloseButton:M().bool,inline:M().bool,kind:M().oneOf(["error","info","info-square","success","warning","warning-alt"]).isRequired,lowContrast:M().bool,onActionButtonClick:M().func,onClose:M().func,onCloseButtonClick:M().func,role:M().string,statusIconDescription:M().string,subtitle:M().string,title:M().string},An.defaultProps={kind:"error",role:"alertdialog",onCloseButtonClick:function(){},hideCloseButton:!1,hasFocus:!0,closeOnEscape:!0,inline:!1};var $n,Fn=($n={"aria-label":M().string,"aria-labelledby":M().string},Object.keys($n).reduce((function(e,t){return m(m({},e),{},b({},t,(n=$n[t],function(e,t,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return n.apply(void 0,[e,t,r].concat(i))})));var n}),{})),Un=["SideNavFooter","SideNavHeader","SideNavItems","SideNavMenu"],Bn=["expanded","defaultExpanded","isChildOfHeader","aria-label","aria-labelledby","children","onToggle","className","isFixedNav","isRail","isPersistent","addFocusListeners","addMouseListeners","onOverlayClick"],zn=L().forwardRef((function(e,t){var n,r,o=e.expanded,i=e.defaultExpanded,a=e.isChildOfHeader,s=e["aria-label"],l=e["aria-labelledby"],u=e.children,c=e.onToggle,f=e.className,d=e.isFixedNav,p=e.isRail,h=e.isPersistent,v=e.addFocusListeners,g=e.addMouseListeners,y=e.onOverlayClick,E=_(e,Bn),x=Ie(),S=(0,j.useRef)(void 0!==o).current,k=P((0,j.useState)(i),2),O=k[0],C=k[1],N=P((0,j.useState)(i),2),T=N[0],I=N[1],M=S?o:O,D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!M;S||C(t),c&&c(e,t),(S||p)&&I(t)},A={"aria-label":s,"aria-labelledby":l},$=R()((b(n={},"".concat(x,"--side-nav"),!0),b(n,"".concat(x,"--side-nav--expanded"),M||T),b(n,"".concat(x,"--side-nav--collapsed"),!M&&d),b(n,"".concat(x,"--side-nav--rail"),p),b(n,f,!!f),b(n,"".concat(x,"--side-nav--ux"),a),b(n,"".concat(x,"--side-nav--hidden"),!h),n)),F=R()((b(r={},"".concat(x,"--side-nav__overlay"),!0),b(r,"".concat(x,"--side-nav__overlay-active"),M||T),r)),U=u;p&&(U=L().Children.map(u,(function(e){var t,n,r,o=S&&T||M;return L().cloneElement(e,m({},Un.includes(null!==(t=null===(n=e.type)||void 0===n?void 0:n.displayName)&&void 0!==t?t:null===(r=e.type)||void 0===r?void 0:r.name)?{isSideNavExpanded:o}:{}))})));var B={};return v&&(B.onFocus=function(e){e.currentTarget.contains(e.relatedTarget)||D(e,!0)},B.onBlur=function(e){e.currentTarget.contains(e.relatedTarget)||D(e,!1)}),g&&p&&(B.onMouseEnter=function(){return D(!0,!0)},B.onMouseLeave=function(){return D(!1,!1)}),L().createElement(L().Fragment,null,d?null:L().createElement("div",{className:F,onClick:y}),L().createElement("nav",w({ref:t,className:"".concat(x,"--side-nav__navigation ").concat($)},A,B,E),U))}));zn.displayName="SideNav",zn.defaultProps={defaultExpanded:!1,isChildOfHeader:!0,isFixedNav:!1,isPersistent:!0,addFocusListeners:!0,addMouseListeners:!0},zn.propTypes=m(m({},Fn),{},{addFocusListeners:M().bool,addMouseListeners:M().bool,className:M().string,defaultExpanded:M().bool,expanded:M().bool,isChildOfHeader:M().bool,isFixedNav:M().bool,isPersistent:M().bool,isRail:M().bool,onOverlayClick:M().func,onToggle:M().func});var Zn=zn},6377:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},9889:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",l="month",u="quarter",c="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),i=n-o<0,a=t.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:s,d:a,D:f,h:i,m:o,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=m;var w=function(e){return e instanceof _},E=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(y=o),o||!r&&y},x=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},S=g;S.l=E,S.i=w,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function m(e){this.$L=E(e.locale,null,!0),this.parse(e)}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return x(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<x(e)},v.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,u=!!S.u(t)||t,d=S.p(e),p=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(a)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case c:return u?p(1,0):p(31,11);case l:return u?p(1,v):p(0,v+1);case s:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(u?g-w:g+(6-w),v);case a:case f:return h(y+"Hours",0);case i:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case r:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var s,u=S.p(e),d="set"+(this.$u?"UTC":""),p=(s={},s[a]=d+"Date",s[f]=d+"Date",s[l]=d+"Month",s[c]=d+"FullYear",s[i]=d+"Hours",s[o]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[u],h=u===a?this.$D+(t-this.$W):t;if(u===l||u===c){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[S.p(e)]()},v.add=function(n,u){var f,d=this;n=Number(n);var p=S.p(u),h=function(e){var t=x(d);return S.w(t.date(t.date()+Math.round(e*n)),d)};if(p===l)return this.set(l,this.$M+n);if(p===c)return this.set(c,this.$y+n);if(p===a)return h(1);if(p===s)return h(7);var m=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,v=this.$d.getTime()+n*m;return S.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return S.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:c(n.monthsShort,s,u,3),MMMM:c(u,s),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,l,2),ddd:c(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(i),HH:S.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:S.s(a,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||m[e]||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,f,d){var p,h=S.p(f),m=x(n),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,y=S.m(this,m);return y=(p={},p[c]=y/12,p[l]=y,p[u]=y/3,p[s]=(g-v)/6048e5,p[a]=(g-v)/864e5,p[i]=g/t,p[o]=g/e,p[r]=g/1e3,p)[h]||g,d?y:S.a(y)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),k=_.prototype;return x.prototype=k,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",l],["$y",c],["$D",f]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||(e(t,_,x),e.$i=!0),x},x.locale=E,x.isDayjs=w,x.unix=function(e){return x(1e3*e)},x.en=b[y],x.Ls=b,x.p={},x}()},1508:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}}()},7064:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r)))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),o=i(e).local();return d.call(r,o,t,n)}}}()},9297:(e,t,n)=>{"use strict";function r(e){return(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})(e)}t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(3144)),a=(o=n(3230))&&o.__esModule?o:{default:o};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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)}}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="i18nFormat",this.mem={},this.init(null,t)}var t,n;return t=e,n=[{key:"init",value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=i.defaults(r,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,n,r){return n}}),this.formats=this.options.formats,e){var o=this.options,s=o.bindI18n,l=o.bindI18nStore,u=o.memoize;e.IntlMessageFormat=a.default,e.ICU=this,u&&(s&&e.on(s,(function(){return n.clearCache()})),l&&e.store.on(l,(function(){return n.clearCache()})))}this.options.localeData&&("[object Array]"===Object.prototype.toString.apply(this.options.localeData)?this.options.localeData.forEach((function(e){return n.addLocaleData(e)})):this.addLocaleData(this.options.localeData))}},{key:"addLocaleData",value:function(e){("[object Array]"===Object.prototype.toString.apply(e)?e:[e]).forEach((function(e){e&&e.locale&&a.default.__addLocaleData(e)}))}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.formats,{},e):e}},{key:"parse",value:function(e,t,n,r,o,s){var l,u=s&&s.resolved&&s.resolved.res,c=this.options.memoize&&"".concat(n,".").concat(r,".").concat(o.replace(/\./g,"###"));this.options.memoize&&(l=i.getPath(this.mem,c));try{return l||(l=new a.default(e,n,this.formats),this.options.memoize&&(this.options.memoizeFallback||!s||u)&&i.setPath(this.mem,c,l)),l.format(t)}catch(n){return this.options.parseErrorHandler(n,o,e,t)}}},{key:"addLookupKeys",value:function(e,t,n,r,o){return e}},{key:"clearCache",value:function(){this.mem={}}}],n&&c(t.prototype,n),e}();f.type="i18nFormat";var d=f;t.default=d},3144:(e,t)=>{"use strict";function n(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}Object.defineProperty(t,"__esModule",{value:!0}),t.setPath=function(e,t,r){var o=n(e,t,Object);o.obj[o.k]=r},t.pushPath=function(e,t,r,o){var i=n(e,t,Object),a=i.obj,s=i.k;a[s]=a[s]||[],o&&(a[s]=a[s].concat(r)),o||a[s].push(r)},t.getPath=function(e,t){var r=n(e,t),o=r.obj,i=r.k;return o?o[i]:void 0},t.defaults=function(e){return o.call(i.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},t.extend=function(e){return o.call(i.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e};var r=[],o=r.forEach,i=r.slice},2692:(e,t,n)=>{e.exports=n(9297).default},26:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Z});var r=n(1248),o=n(9474);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){(0,o.Z)(e,t,n[t])}))}return e}var a=n(6823),s=n(1917);function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(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&&f(e,t)}var p={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},h=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.init(t,n)}return(0,s.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||p,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),m=function(){function e(){(0,a.Z)(this,e),this.observers={}}return(0,s.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value: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];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function v(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function g(e){return null==e?"":""+e}function y(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function b(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function w(e,t,n){var r=b(e,t,Object);r.obj[r.k]=n}function E(e,t){var n=b(e,t),r=n.obj,o=n.k;if(r)return r[o]}function x(e,t,n){var r=E(e,n);return void 0!==r?r:E(t,n)}function S(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):S(e[r],t[r],n):e[r]=t[r]);return e}function _(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function O(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return k[e]})):e}var C="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,P=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,a.Z)(this,t),n=u(this,c(t).call(this)),C&&m.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return d(t,e),(0,s.Z)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),E(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),w(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var l=E(this.data,s)||{};r?S(l,n,o):l=i({},l,n),w(this.data,s,l),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(m),N={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},T={},j=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.Z)(this,t),n=u(this,c(t).call(this)),C&&m.call(l(n)),y(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,l(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=h.create("translator"),n}return d(t,e),(0,s.Z)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,o){var a=this;if("object"!==(0,r.Z)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],n),u=l.key,c=l.namespaces,f=c[c.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=n.nsSeparator||this.options.nsSeparator;return f+h+u}return u}var m=this.resolve(e,n),v=m&&m.res,g=m&&m.usedKey||u,y=m&&m.exactUsedKey||u,b=Object.prototype.toString.apply(v),w=["[object Number]","[object Function]","[object RegExp]"],E=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(x&&v&&S&&w.indexOf(b)<0&&("string"!=typeof E||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(s){var _="[object Array]"===b,k=_?[]:{},O=_?y:g;for(var C in v)if(Object.prototype.hasOwnProperty.call(v,C)){var P="".concat(O).concat(s).concat(C);k[C]=this.translate(P,i({},n,{joinArrays:!1,ns:c})),k[C]===P&&(k[C]=v[C])}v=k}}else if(x&&"string"==typeof E&&"[object Array]"===b)(v=v.join(E))&&(v=this.extendTranslation(v,e,n,o));else{var N=!1,T=!1,j=void 0!==n.count&&"string"!=typeof n.count,L=t.hasDefaultValue(n),I=j?this.pluralResolver.getSuffix(d,n.count):"",M=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(v)&&L&&(N=!0,v=M),this.isValidLookup(v)||(T=!0,v=u);var D=L&&M!==v&&this.options.updateMissing;if(T||N||D){if(this.logger.log(D?"updateKey":"missingKey",d,f,u,D?M:v),s){var R=this.resolve(u,i({},n,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var A=[],$=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&$&&$[0])for(var F=0;F<$.length;F++)A.push($[F]);else"all"===this.options.saveMissingTo?A=this.languageUtils.toResolveHierarchy(n.lng||this.language):A.push(n.lng||this.language);var U=function(e,t,r){a.options.missingKeyHandler?a.options.missingKeyHandler(e,f,t,D?r:v,D,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,f,t,D?r:v,D,n),a.emit("missingKey",e,f,t,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?A.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){U([e],u+t,n["defaultValue".concat(t)]||M)}))})):U(A,u,M))}v=this.extendTranslation(v,e,n,m,o),T&&v===u&&this.options.appendNamespaceToMissingKey&&(v="".concat(f,":").concat(u)),T&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(v))}return v}},{key:"extendTranslation",value:function(e,t,n,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var s,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var u=e.match(this.interpolator.nestingRegexp);s=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=i({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),l){var f=e.match(this.interpolator.nestingRegexp);s<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=N.handle(p,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!T["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(T["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,l,c=u,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,u,n,e,s):(f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(c+=i));l=p.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(m);function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}var I=function(){function e(t){(0,a.Z)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h.create("languageUtils")}return(0,s.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=L(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),M=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],D={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function R(){var e={};return M.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:D[t.fc]}}))})),e}var A=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.languageUtils=t,this.options=n,this.logger=h.create("pluralResolver"),this.rules=R()}return(0,s.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),$=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)(this,e),this.logger=h.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,s.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:O,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?_(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?_(t.nestingPrefix):t.nestingPrefixEscaped||_("$t("),this.nestingSuffix=t.nestingSuffix?_(t.nestingSuffix):t.nestingSuffixEscaped||_(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=x(t,l,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(x(t,l,a),u,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=g(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},a);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,s)).replace(/'/g,'"');try{s=JSON.parse(o),t&&(s=i({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),u=f,c=!0}if((r=t(l.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=g(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce((function(e,t){return o.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),F=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,a.Z)(this,t),o=u(this,c(t).call(this)),C&&m.call(l(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=h.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return d(t,e),(0,s.Z)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,l,u,c;r=n.loaded,s=i,(u=(l=b(r,[o],Object)).obj)[c=l.k]=u[c]||[],u[c].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},a,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(m);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,r.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,r.Z)(e[2])||"object"===(0,r.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function B(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function z(){}const Z=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,a.Z)(this,t),e=u(this,c(t).call(this)),C&&m.call(l(e)),e.options=B(n),e.services={},e.logger=h,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),u(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return d(t,e),(0,s.Z)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,B(t)),this.format=this.options.interpolation.format,n||(n=z),!this.options.isClone){this.modules.logger?h.init(r(this.modules.logger),this.options):h.init(null,this.options);var o=new I(this.options);this.store=new P(this.options.resources,this.options);var a=this.services;a.logger=h,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new A(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new $(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new F(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new j(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=v(),f=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=v();return e||(e=this.languages),t||(t=this.options.ns),n||(n=z),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&N.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=v();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var a;if("object"!==(0,r.Z)(o)){for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];a=n.options.overloadTranslationOptionHandler([t,o].concat(l))}else a=i({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=v();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=v();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,o=i({},this.options,n,{isClone:!0}),a=new t(o),s=["store","services","language"];return s.forEach((function(t){a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new j(a.services,a.options),a.translator.on("*",(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];a.emit.apply(a,[e].concat(n))})),a.init(o,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(m))},698:(e,t,n)=>{"use strict";(t=e.exports=n(5580).default).default=t},5580:(e,t)=>{"use strict";t.default=function(){function e(t,n,r,o){this.message=t,this.expected=n,this.found=r,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(e,Error),{SyntaxError:e,parse:function(t){var n,r=arguments.length>1?arguments[1]:{},o={},i={start:Te},a=Te,s=function(e){return{type:"messageFormatPattern",elements:e,location:ke()}},l=function(e){var t,n,r,o,i,a="";for(t=0,r=e.length;t<r;t+=1)for(n=0,i=(o=e[t]).length;n<i;n+=1)a+=o[n];return a},u=function(e){return{type:"messageTextElement",value:e,location:ke()}},c=/^[^ \t\n\r,.+={}#]/,f={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},d="{",p={type:"literal",value:"{",description:'"{"'},h=",",m={type:"literal",value:",",description:'","'},v="}",g={type:"literal",value:"}",description:'"}"'},y=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2],location:ke()}},b="number",w={type:"literal",value:"number",description:'"number"'},E="date",x={type:"literal",value:"date",description:'"date"'},S="time",_={type:"literal",value:"time",description:'"time"'},k=function(e,t){return{type:e+"Format",style:t&&t[2],location:ke()}},O="plural",C={type:"literal",value:"plural",description:'"plural"'},P=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options,location:ke()}},N="selectordinal",T={type:"literal",value:"selectordinal",description:'"selectordinal"'},j=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options,location:ke()}},L="select",I={type:"literal",value:"select",description:'"select"'},M=function(e){return{type:"selectFormat",options:e,location:ke()}},D="=",R={type:"literal",value:"=",description:'"="'},A=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t,location:ke()}},$="offset:",F={type:"literal",value:"offset:",description:'"offset:"'},U=function(e){return e},B=function(e,t){return{type:"pluralFormat",offset:e,options:t,location:ke()}},z={type:"other",description:"whitespace"},Z=/^[ \t\n\r]/,H={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},V={type:"other",description:"optionalWhitespace"},K=/^[0-9]/,W={type:"class",value:"[0-9]",description:"[0-9]"},q=/^[0-9a-f]/i,Y={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},G="0",Q={type:"literal",value:"0",description:'"0"'},J=/^[1-9]/,X={type:"class",value:"[1-9]",description:"[1-9]"},ee=function(e){return parseInt(e,10)},te=/^[^{}\\\0-\x1F \t\n\r]/,ne={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},re="\\\\",oe={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},ie=function(){return"\\"},ae="\\#",se={type:"literal",value:"\\#",description:'"\\\\#"'},le=function(){return"\\#"},ue="\\{",ce={type:"literal",value:"\\{",description:'"\\\\{"'},fe=function(){return"{"},de="\\}",pe={type:"literal",value:"\\}",description:'"\\\\}"'},he=function(){return"}"},me="\\u",ve={type:"literal",value:"\\u",description:'"\\\\u"'},ge=function(e){return String.fromCharCode(parseInt(e,16))},ye=function(e){return e.join("")},be=0,we=0,Ee=[{line:1,column:1,seenCR:!1}],xe=0,Se=[],_e=0;if("startRule"in r){if(!(r.startRule in i))throw new Error("Can't start parsing from rule \""+r.startRule+'".');a=i[r.startRule]}function ke(){return Ce(we,be)}function Oe(e){var n,r,o=Ee[e];if(o)return o;for(n=e-1;!Ee[n];)n--;for(o={line:(o=Ee[n]).line,column:o.column,seenCR:o.seenCR};n<e;)"\n"===(r=t.charAt(n))?(o.seenCR||o.line++,o.column=1,o.seenCR=!1):"\r"===r||"\u2028"===r||"\u2029"===r?(o.line++,o.column=1,o.seenCR=!0):(o.column++,o.seenCR=!1),n++;return Ee[e]=o,o}function Ce(e,t){var n=Oe(e),r=Oe(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Pe(e){be<xe||(be>xe&&(xe=be,Se=[]),Se.push(e))}function Ne(t,n,r,o){return null!==n&&function(e){var t=1;for(e.sort((function(e,t){return e.description<t.description?-1:e.description>t.description?1:0}));t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}(n),new e(null!==t?t:function(e,t){var n,r=new Array(e.length);for(n=0;n<e.length;n++)r[n]=e[n].description;return"Expected "+(e.length>1?r.slice(0,-1).join(", ")+" or "+r[e.length-1]:r[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,r),n,r,o)}function Te(){return je()}function je(){var e,t,n;for(e=be,t=[],n=Le();n!==o;)t.push(n),n=Le();return t!==o&&(we=e,t=s(t)),t}function Le(){var e;return(e=Me())===o&&(e=Re()),e}function Ie(){var e,n,r,i,a,s;if(e=be,n=[],r=be,(i=We())!==o&&(a=Je())!==o&&(s=We())!==o?r=i=[i,a,s]:(be=r,r=o),r!==o)for(;r!==o;)n.push(r),r=be,(i=We())!==o&&(a=Je())!==o&&(s=We())!==o?r=i=[i,a,s]:(be=r,r=o);else n=o;return n!==o&&(we=e,n=l(n)),(e=n)===o&&(e=be,e=(n=Ke())!==o?t.substring(e,be):n),e}function Me(){var e,t;return e=be,(t=Ie())!==o&&(we=e,t=u(t)),t}function De(){var e,n,r;if((e=Ge())===o){if(e=be,n=[],c.test(t.charAt(be))?(r=t.charAt(be),be++):(r=o,0===_e&&Pe(f)),r!==o)for(;r!==o;)n.push(r),c.test(t.charAt(be))?(r=t.charAt(be),be++):(r=o,0===_e&&Pe(f));else n=o;e=n!==o?t.substring(e,be):n}return e}function Re(){var e,n,r,i,a,s,l;return e=be,123===t.charCodeAt(be)?(n=d,be++):(n=o,0===_e&&Pe(p)),n!==o&&We()!==o&&(r=De())!==o&&We()!==o?(i=be,44===t.charCodeAt(be)?(a=h,be++):(a=o,0===_e&&Pe(m)),a!==o&&(s=We())!==o&&(l=Ae())!==o?i=a=[a,s,l]:(be=i,i=o),i===o&&(i=null),i!==o&&(a=We())!==o?(125===t.charCodeAt(be)?(s=v,be++):(s=o,0===_e&&Pe(g)),s!==o?(we=e,e=n=y(r,i)):(be=e,e=o)):(be=e,e=o)):(be=e,e=o),e}function Ae(){var e;return(e=$e())===o&&(e=Fe())===o&&(e=Ue())===o&&(e=Be()),e}function $e(){var e,n,r,i,a,s;return e=be,t.substr(be,6)===b?(n=b,be+=6):(n=o,0===_e&&Pe(w)),n===o&&(t.substr(be,4)===E?(n=E,be+=4):(n=o,0===_e&&Pe(x)),n===o&&(t.substr(be,4)===S?(n=S,be+=4):(n=o,0===_e&&Pe(_)))),n!==o&&We()!==o?(r=be,44===t.charCodeAt(be)?(i=h,be++):(i=o,0===_e&&Pe(m)),i!==o&&(a=We())!==o&&(s=Je())!==o?r=i=[i,a,s]:(be=r,r=o),r===o&&(r=null),r!==o?(we=e,e=n=k(n,r)):(be=e,e=o)):(be=e,e=o),e}function Fe(){var e,n,r,i;return e=be,t.substr(be,6)===O?(n=O,be+=6):(n=o,0===_e&&Pe(C)),n!==o&&We()!==o?(44===t.charCodeAt(be)?(r=h,be++):(r=o,0===_e&&Pe(m)),r!==o&&We()!==o&&(i=Ve())!==o?(we=e,e=n=P(i)):(be=e,e=o)):(be=e,e=o),e}function Ue(){var e,n,r,i;return e=be,t.substr(be,13)===N?(n=N,be+=13):(n=o,0===_e&&Pe(T)),n!==o&&We()!==o?(44===t.charCodeAt(be)?(r=h,be++):(r=o,0===_e&&Pe(m)),r!==o&&We()!==o&&(i=Ve())!==o?(we=e,e=n=j(i)):(be=e,e=o)):(be=e,e=o),e}function Be(){var e,n,r,i,a;if(e=be,t.substr(be,6)===L?(n=L,be+=6):(n=o,0===_e&&Pe(I)),n!==o)if(We()!==o)if(44===t.charCodeAt(be)?(r=h,be++):(r=o,0===_e&&Pe(m)),r!==o)if(We()!==o){if(i=[],(a=Ze())!==o)for(;a!==o;)i.push(a),a=Ze();else i=o;i!==o?(we=e,e=n=M(i)):(be=e,e=o)}else be=e,e=o;else be=e,e=o;else be=e,e=o;else be=e,e=o;return e}function ze(){var e,n,r,i;return e=be,n=be,61===t.charCodeAt(be)?(r=D,be++):(r=o,0===_e&&Pe(R)),r!==o&&(i=Ge())!==o?n=r=[r,i]:(be=n,n=o),(e=n!==o?t.substring(e,be):n)===o&&(e=Je()),e}function Ze(){var e,n,r,i,a;return e=be,We()!==o&&(n=ze())!==o&&We()!==o?(123===t.charCodeAt(be)?(r=d,be++):(r=o,0===_e&&Pe(p)),r!==o&&We()!==o&&(i=je())!==o&&We()!==o?(125===t.charCodeAt(be)?(a=v,be++):(a=o,0===_e&&Pe(g)),a!==o?(we=e,e=A(n,i)):(be=e,e=o)):(be=e,e=o)):(be=e,e=o),e}function He(){var e,n,r;return e=be,t.substr(be,7)===$?(n=$,be+=7):(n=o,0===_e&&Pe(F)),n!==o&&We()!==o&&(r=Ge())!==o?(we=e,e=n=U(r)):(be=e,e=o),e}function Ve(){var e,t,n,r;if(e=be,(t=He())===o&&(t=null),t!==o)if(We()!==o){if(n=[],(r=Ze())!==o)for(;r!==o;)n.push(r),r=Ze();else n=o;n!==o?(we=e,e=t=B(t,n)):(be=e,e=o)}else be=e,e=o;else be=e,e=o;return e}function Ke(){var e,n;if(_e++,e=[],Z.test(t.charAt(be))?(n=t.charAt(be),be++):(n=o,0===_e&&Pe(H)),n!==o)for(;n!==o;)e.push(n),Z.test(t.charAt(be))?(n=t.charAt(be),be++):(n=o,0===_e&&Pe(H));else e=o;return _e--,e===o&&(n=o,0===_e&&Pe(z)),e}function We(){var e,n,r;for(_e++,e=be,n=[],r=Ke();r!==o;)n.push(r),r=Ke();return e=n!==o?t.substring(e,be):n,_e--,e===o&&(n=o,0===_e&&Pe(V)),e}function qe(){var e;return K.test(t.charAt(be))?(e=t.charAt(be),be++):(e=o,0===_e&&Pe(W)),e}function Ye(){var e;return q.test(t.charAt(be))?(e=t.charAt(be),be++):(e=o,0===_e&&Pe(Y)),e}function Ge(){var e,n,r,i,a,s;if(e=be,48===t.charCodeAt(be)?(n=G,be++):(n=o,0===_e&&Pe(Q)),n===o){if(n=be,r=be,J.test(t.charAt(be))?(i=t.charAt(be),be++):(i=o,0===_e&&Pe(X)),i!==o){for(a=[],s=qe();s!==o;)a.push(s),s=qe();a!==o?r=i=[i,a]:(be=r,r=o)}else be=r,r=o;n=r!==o?t.substring(n,be):r}return n!==o&&(we=e,n=ee(n)),n}function Qe(){var e,n,r,i,a,s,l,u;return te.test(t.charAt(be))?(e=t.charAt(be),be++):(e=o,0===_e&&Pe(ne)),e===o&&(e=be,t.substr(be,2)===re?(n=re,be+=2):(n=o,0===_e&&Pe(oe)),n!==o&&(we=e,n=ie()),(e=n)===o&&(e=be,t.substr(be,2)===ae?(n=ae,be+=2):(n=o,0===_e&&Pe(se)),n!==o&&(we=e,n=le()),(e=n)===o&&(e=be,t.substr(be,2)===ue?(n=ue,be+=2):(n=o,0===_e&&Pe(ce)),n!==o&&(we=e,n=fe()),(e=n)===o&&(e=be,t.substr(be,2)===de?(n=de,be+=2):(n=o,0===_e&&Pe(pe)),n!==o&&(we=e,n=he()),(e=n)===o&&(e=be,t.substr(be,2)===me?(n=me,be+=2):(n=o,0===_e&&Pe(ve)),n!==o?(r=be,i=be,(a=Ye())!==o&&(s=Ye())!==o&&(l=Ye())!==o&&(u=Ye())!==o?i=a=[a,s,l,u]:(be=i,i=o),(r=i!==o?t.substring(r,be):i)!==o?(we=e,e=n=ge(r)):(be=e,e=o)):(be=e,e=o)))))),e}function Je(){var e,t,n;if(e=be,t=[],(n=Qe())!==o)for(;n!==o;)t.push(n),n=Qe();else t=o;return t!==o&&(we=e,t=ye(t)),t}if((n=a())!==o&&be===t.length)return n;throw n!==o&&be<t.length&&Pe({type:"end",description:"end of input"}),Ne(null,Se,xe<t.length?t.charAt(xe):null,xe<t.length?Ce(xe,xe+1):Ce(xe,xe))}}}()},3230:(e,t,n)=>{"use strict";var r=n(9482).Z;n(7603),(t=e.exports=r).default=t},3361:(e,t)=>{"use strict";function n(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function r(e){this.id=e}function o(e,t,n,r,o){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=o}function i(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function a(e,t){this.id=e,this.options=t}t.default=n,n.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},n.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,r,o=e.elements,i=[];for(t=0,n=o.length;t<n;t+=1)switch((r=o[t]).type){case"messageTextElement":i.push(this.compileMessageText(r));break;case"argumentElement":i.push(this.compileArgument(r));break;default:throw new Error("Message element does not have a valid type")}return i},n.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new i(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},n.prototype.compileArgument=function(e){var t=e.format;if(!t)return new r(e.id);var n,i=this.formats,s=this.locales,l=this.pluralFn;switch(t.type){case"numberFormat":return n=i.number[t.style],{id:e.id,format:new Intl.NumberFormat(s,n).format};case"dateFormat":return n=i.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,n).format};case"timeFormat":return n=i.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,n).format};case"pluralFormat":return n=this.compileOptions(e),new o(e.id,t.ordinal,t.offset,n,l);case"selectFormat":return n=this.compileOptions(e),new a(e.id,n);default:throw new Error("Message element does not have a valid format type")}},n.prototype.compileOptions=function(e){var t,n,r,o=e.format,i=o.options,a={};for(this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===o.type?e:null,t=0,n=i.length;t<n;t+=1)a[(r=i[t]).selector]=this.compileMessage(r.value);return this.currentPlural=this.pluralStack.pop(),a},r.prototype.format=function(e){return e||"number"==typeof e?"string"==typeof e?e:String(e):""},o.prototype.getOption=function(e){var t=this.options;return t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)]||t.other},i.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},a.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},4033:(e,t,n)=>{"use strict";var r=n(140),o=n(6197),i=n(3361),a=n(698);function s(e,t,n){var r="string"==typeof e?s.__parse(e):e;if(!r||"messageFormatPattern"!==r.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(s.formats,n),o.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var i=this._findPluralRuleFunction(this._locale),a=this._compilePattern(r,t,n,i),l=this;this.format=function(t){try{return l._format(a,t)}catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+e+"'"):t}}}t.default=s,o.defineProperty(s,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),o.defineProperty(s,"__localeData__",{value:o.objCreate(null)}),o.defineProperty(s,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[e.locale.toLowerCase()]=e}}),o.defineProperty(s,"__parse",{value:a.default.parse}),o.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(e,t,n,r){return new i.default(t,n,r).compile(e)},s.prototype._findPluralRuleFunction=function(e){for(var t=s.__localeData__,n=t[e.toLowerCase()];n;){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},s.prototype._format=function(e,t){var n,o,i,a,s,l,u="";for(n=0,o=e.length;n<o;n+=1)if("string"!=typeof(i=e[n])){if(a=i.id,!t||!r.hop.call(t,a))throw(l=new Error("A value must be provided for: "+a)).variableId=a,l;s=t[a],i.options?u+=this._format(i.getOption(s),t):u+=i.format(s)}else u+=i;return u},s.prototype._mergeFormats=function(e,t){var n,i,a={};for(n in e)r.hop.call(e,n)&&(a[n]=i=o.objCreate(e[n]),t&&r.hop.call(t,n)&&r.extend(i,t[n]));return a},s.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(s.defaultLocale);var t,n,r,o,i=s.__localeData__;for(t=0,n=e.length;t<n;t+=1)for(r=e[t].toLowerCase().split("-");r.length;){if(o=i[r.join("-")])return o.locale;r.pop()}var a=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+a)}},2385:(e,t)=>{"use strict";t.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"}}},6197:(e,t,n)=>{"use strict";var r=n(140),o=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),i=(!o&&Object.prototype.__defineGetter__,o?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):r.hop.call(e,t)&&!("value"in n)||(e[t]=n.value)}),a=Object.create||function(e,t){var n,o;function a(){}for(o in a.prototype=e,n=new a,t)r.hop.call(t,o)&&i(n,o,t[o]);return n};t.defineProperty=i,t.objCreate=a},9482:(e,t,n)=>{"use strict";var r=n(4033),o=n(2385);r.default.__addLocaleData(o.default),r.default.defaultLocale="en",t.Z=r.default},140:(e,t)=>{"use strict";t.extend=function(e){var t,r,o,i,a=Array.prototype.slice.call(arguments,1);for(t=0,r=a.length;t<r;t+=1)if(o=a[t])for(i in o)n.call(o,i)&&(e[i]=o[i]);return e};var n=Object.prototype.hasOwnProperty;t.hop=n},6601:(e,t,n)=>{"use strict";var r=n(6978);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,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:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2123:(e,t,n)=>{e.exports=n(6601)()},6978:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9179:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(758);function o(e){return function t(n){return 0===arguments.length||(0,r.Z)(n)?t:e.apply(this,arguments)}}},9719:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9179),o=n(758);function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return(0,o.Z)(n)?t:(0,r.Z)((function(t){return e(n,t)}));default:return(0,o.Z)(n)&&(0,o.Z)(i)?t:(0,o.Z)(n)?(0,r.Z)((function(t){return e(t,i)})):(0,o.Z)(i)?(0,r.Z)((function(t){return e(n,t)})):e(n,i)}}}},758:(e,t,n)=>{"use strict";function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}n.d(t,{Z:()=>r})},5717:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(9719).Z)((function(e,t){for(var n={},r={},o=0,i=e.length;o<i;)r[e[o]]=1,o+=1;for(var a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n}))},1556:(e,t,n)=>{"use strict";var r=n(7959),o=n(965);function i(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 l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(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){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.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||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,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!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(g,y);v[t]=new m(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(g,y);v[t]=new m(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(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var R,A=Object.assign;function $(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var F=!1;function U(e,t){if(!e||F)return"";F=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function B(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function z(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 S:return"Fragment";case x:return"Portal";case k:return"Profiler";case _:return"StrictMode";case N:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}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 z(t);case 8:return t===_?"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 V(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=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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 W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(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 Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(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 X(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&&q(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 o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(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 le(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 ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.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 de(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 pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=A({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 ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(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 Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,_e=null;function ke(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Oe(e){Se?_e?_e.push(e):_e=[e]:Se=e}function Ce(){if(Se){var e=Se,t=_e;if(_e=Se=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Pe(e,t){return e(t)}function Ne(){}var Te=!1;function je(e,t,n){if(Te)return e(t,n);Te=!0;try{return Pe(e,t,n)}finally{Te=!1,(null!==Se||null!==_e)&&(Ne(),Ce())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(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(i(231,t,typeof n));return n}var Ie=!1;if(c)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ce){Ie=!1}function De(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Re=!1,Ae=null,$e=!1,Fe=null,Ue={onError:function(e){Re=!0,Ae=e}};function Be(e,t,n,r,o,i,a,s,l){Re=!1,Ae=null,De.apply(Ue,arguments)}function ze(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(ze(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(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 We=o.unstable_scheduleCallback,qe=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ge=o.unstable_requestPaint,Qe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Xe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=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 dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=ft(s):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(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 ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Et,xt,St,_t,kt,Ot=!1,Ct=[],Pt=null,Nt=null,Tt=null,jt=new Map,Lt=new Map,It=[],Mt="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 Dt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":jt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Rt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=bo(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void kt(e.priority,(function(){St(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 $t(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=wo(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 Ft(e,t,n){$t(e)&&n.delete(t)}function Ut(){Ot=!1,null!==Pt&&$t(Pt)&&(Pt=null),null!==Nt&&$t(Nt)&&(Nt=null),null!==Tt&&$t(Tt)&&(Tt=null),jt.forEach(Ft),Lt.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function zt(e){function t(t){return Bt(t,e)}if(0<Ct.length){Bt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Bt(Pt,e),null!==Nt&&Bt(Nt,e),null!==Tt&&Bt(Tt,e),jt.forEach(t),Lt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)At(n),null===n.blockedOn&&It.shift()}var Zt=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=bt,i=Zt.transition;Zt.transition=null;try{bt=1,Wt(e,t,n,r)}finally{bt=o,Zt.transition=i}}function Kt(e,t,n,r){var o=bt,i=Zt.transition;Zt.transition=null;try{bt=4,Wt(e,t,n,r)}finally{bt=o,Zt.transition=i}}function Wt(e,t,n,r){if(Ht){var o=Yt(e,t,n,r);if(null===o)Hr(e,t,r,qt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Pt=Rt(Pt,e,t,n,r,o),!0;case"dragenter":return Nt=Rt(Nt,e,t,n,r,o),!0;case"mouseover":return Tt=Rt(Tt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jt.set(i,Rt(jt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,Rt(Lt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&Et(i),null===(i=Yt(e,t,n,r))&&Hr(e,t,r,qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var qt=null;function Yt(e,t,n,r){if(qt=null,null!==(e=bo(e=Ee(r))))if(null===(t=ze(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 qt=e,null}function Gt(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(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xt=o.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,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return A(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,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),fn=A({},un,{view:0,detail:0}),dn=on(fn),pn=A({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,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!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(A({},pn,{dataTransfer:0})),vn=on(A({},fn,{relatedTarget:0})),gn=on(A({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=A({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(A({},un,{data:0})),En={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function kn(){return _n}var On=A({},fn,{key:function(e){if(e.key){var t=En[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:kn,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}}),Cn=on(On),Pn=on(A({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(A({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Tn=on(A({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=A({},pn,{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}),Ln=on(jn),In=[9,13,27,32],Mn=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Rn=c&&"TextEvent"in window&&!Dn,An=c&&(!Mn||Dn&&8<Dn&&11>=Dn),$n=String.fromCharCode(32),Fn=!1;function Un(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1,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 Vn(e,t,n,r){Oe(r),0<(t=Kr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Wn=null;function qn(e){$r(e,0)}function Yn(e){if(W(Eo(e)))return e}function Gn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Jn=Xn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),Wn=Kn=null)}function nr(e){if("value"===e.propertyName&&Yn(Wn)){var t=[];Vn(t,Wn,e,Ee(e)),je(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Wn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Wn)}function ir(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 lr(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 o=n[r];if(!f.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(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=ur(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 dr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(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 hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(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 o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>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 mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==q(r)||(r="selectionStart"in(r=vr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Sr={},_r={};function kr(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Sr[e]=n[t];return e}c&&(_r=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 Or=kr("animationend"),Cr=kr("animationiteration"),Pr=kr("animationstart"),Nr=kr("transitionend"),Tr=new Map,jr="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 Lr(e,t){Tr.set(e,t),l(t,[e])}for(var Ir=0;Ir<jr.length;Ir++){var Mr=jr[Ir];Lr(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Lr(Or,"onAnimationEnd"),Lr(Cr,"onAnimationIteration"),Lr(Pr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Nr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,u){if(Be.apply(this,arguments),Re){if(!Re)throw Error(i(198));var c=Ae;Re=!1,Ae=null,$e||($e=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function $r(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,u),i=l}}}if($e)throw e=Fe,$e=!1,Fe=null,e}function Fr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=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 Br="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Rr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Ur("selectionchange",!1,t))}}function Zr(e,t,n,r){switch(Gt(t)){case 1:var o=Vt;break;case 4:o=Kt;break;default:o=Wt}n=o.bind(null,t,n,e),o=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=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===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}je((function(){var r=i,o=Ee(n),a=[];e:{var s=Tr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;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":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Or:case Cr:case Pr:l=gn;break;case Nr:l=Tn;break;case"scroll":l=dn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=Le(h,d))&&c.push(Vr(h,m,p))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(f=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:Eo(l),p=null==u?s:Eo(u),(s=new c(m,h+"leave",l,n,o)).target=f,s.relatedTarget=p,m=null,bo(o)===r&&((c=new c(d,h+"enter",u,n,o)).target=p,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(d=u,h=0,p=c=l;p;p=Wr(p))h++;for(p=0,m=d;m;m=Wr(m))p++;for(;0<h-p;)c=Wr(c),h--;for(;0<p-h;)d=Wr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Wr(c),d=Wr(d)}c=null}else c=null;null!==l&&qr(a,s,l,c,!1),null!==u&&null!==f&&qr(a,f,u,c,!0)}if("select"===(l=(s=r?Eo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Gn;else if(Hn(s))if(Qn)v=ar;else{v=or;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ir);switch(v&&(v=v(e,r))?Vn(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?Eo(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Mn)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 zn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(An&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=en()):(Jt="value"in(Qt=o)?Qt.value:Qt.textContent,zn=!0)),0<(g=Kr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:g}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,$n);case"textInput":return(e=t.data)===$n&&Fn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Mn&&Un(e,t)?(e=en(),Xt=Jt=Qt=null,zn=!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;case"compositionend":return An&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Kr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}$r(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Le(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Le(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Le(n,i))&&a.unshift(Vr(n,l,s)):o||null!=(l=Le(n,i))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Gr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Xr(){}var eo=null,to=null;function no(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 ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);zt(t)}function uo(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 co(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 fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,vo="__reactEvents$"+fo,go="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[ho]||null}var So=[],_o=-1;function ko(e){return{current:e}}function Oo(e){0>_o||(e.current=So[_o],So[_o]=null,_o--)}function Co(e,t){_o++,So[_o]=e.current,e.current=t}var Po={},No=ko(Po),To=ko(!1),jo=Po;function Lo(e,t){var n=e.type.contextTypes;if(!n)return Po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Io(e){return null!=e.childContextTypes}function Mo(){Oo(To),Oo(No)}function Do(e,t,n){if(No.current!==Po)throw Error(i(168));Co(No,t),Co(To,n)}function Ro(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,Z(e)||"Unknown",o));return A({},n,r)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Po,jo=No.current,Co(No,e),Co(To,To.current),!0}function $o(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ro(e,t,jo),r.__reactInternalMemoizedMergedChildContext=e,Oo(To),Oo(No),Co(No,e)):Oo(To),Co(To,n)}var Fo=null,Uo=!1,Bo=!1;function zo(e){null===Fo?Fo=[e]:Fo.push(e)}function Zo(){if(!Bo&&null!==Fo){Bo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Uo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),We(Xe,Zo),t}finally{bt=t,Bo=!1}}return null}var Ho=[],Vo=0,Ko=null,Wo=0,qo=[],Yo=0,Go=null,Qo=1,Jo="";function Xo(e,t){Ho[Vo++]=Wo,Ho[Vo++]=Ko,Ko=e,Wo=t}function ei(e,t,n){qo[Yo++]=Qo,qo[Yo++]=Jo,qo[Yo++]=Go,Go=e;var r=Qo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Xo(e,1),ei(e,1,0))}function ni(e){for(;e===Ko;)Ko=Ho[--Vo],Ho[Vo]=null,Wo=Ho[--Vo],Ho[Vo]=null;for(;e===Go;)Go=qo[--Yo],qo[Yo]=null,Jo=qo[--Yo],qo[Yo]=null,Qo=qo[--Yo],qo[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=ju(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 li(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,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Go?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=ju(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var vi=w.ReactCurrentBatchConfig;function gi(e,t){if(e&&e.defaultProps){for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yi=ko(null),bi=null,wi=null,Ei=null;function xi(){Ei=wi=bi=null}function Si(e){var t=yi.current;Oo(yi),e._currentValue=t}function _i(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 ki(e,t){bi=e,Ei=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===bi)throw Error(i(308));wi=e,bi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Ci=null;function Pi(e){null===Ci?Ci=[e]:Ci.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Pi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ti(e,r)}function Ti(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}var ji=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ii(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 Mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Di(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Pl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ti(e,n)}return null===(o=r.interleaved)?(t.next=t,Pi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ti(e,n)}function Ri(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,yt(e,n)}}function Ai(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=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===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $i(e,t,n,r){var o=e.updateQueue;ji=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==i){var f=o.baseState;for(a=0,c=u=l=null,s=i;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=A({},f,d);break e;case 2:ji=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=f):c=c.next=p,a|=d;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(d=s).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Rl|=a,e.lanes=a,e.memoizedState=f}}function Fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ui=(new r.Component).refs;function Bi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var zi={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Mi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Di(e,i,o))&&(nu(t,e,o,r),Ri(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Mi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Di(e,i,o))&&(nu(t,e,o,r),Ri(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Mi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Di(e,o,r))&&(nu(t,e,r,n),Ri(t,e,r))}};function Zi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function Hi(e,t,n){var r=!1,o=Po,i=t.contextType;return"object"==typeof i&&null!==i?i=Oi(i):(o=Io(t)?jo:No.current,i=(r=null!=(r=t.contextTypes))?Lo(e,o):Po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vi(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&&zi.enqueueReplaceState(t,t.state,null)}function Ki(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ui,Li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Oi(i):(i=Io(t)?jo:No.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&zi.enqueueReplaceState(o,o.state,null),$i(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Wi(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(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;t===Ui&&(t=o.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yi(e){return(0,e._init)(e._payload)}function Gi(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 o(e,t){return(e=Iu(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 l(e,t,n,r){return null===t||6!==t.tag?((t=Au(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===S?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===L&&Yi(i)===t.type)?((r=o(t,n.props)).ref=Wi(e,t,n),r.return=e,r):((r=Mu(n.type,n.key,n.props,null,e.mode,r)).ref=Wi(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=$u(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Du(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Au(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Mu(t.type,t.key,t.props,null,e.mode,n)).ref=Wi(e,null,t),n.return=e,n;case x:return(t=$u(t,e.mode,n)).return=e,t;case L:return d(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Du(t,e.mode,n,null)).return=e,t;qi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case L:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||D(n))return null!==o?null:f(e,t,n,r,null);qi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case L:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||D(r))return f(t,e=e.get(n)||null,r,o,null);qi(t,r)}return null}return function l(u,c,f,m){if("object"==typeof f&&null!==f&&f.type===S&&null===f.key&&(f=f.props.children),"object"==typeof f&&null!==f){switch(f.$$typeof){case E:e:{for(var v=f.key,g=c;null!==g;){if(g.key===v){if((v=f.type)===S){if(7===g.tag){n(u,g.sibling),(c=o(g,f.props.children)).return=u,u=c;break e}}else if(g.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===L&&Yi(v)===g.type){n(u,g.sibling),(c=o(g,f.props)).ref=Wi(u,g,f),c.return=u,u=c;break e}n(u,g);break}t(u,g),g=g.sibling}f.type===S?((c=Du(f.props.children,u.mode,m,f.key)).return=u,u=c):((m=Mu(f.type,f.key,f.props,null,u.mode,m)).ref=Wi(u,c,f),m.return=u,u=m)}return s(u);case x:e:{for(g=f.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){n(u,c.sibling),(c=o(c,f.children||[])).return=u,u=c;break e}n(u,c);break}t(u,c),c=c.sibling}(c=$u(f,u.mode,m)).return=u,u=c}return s(u);case L:return l(u,c,(g=f._init)(f._payload),m)}if(te(f))return function(o,i,s,l){for(var u=null,c=null,f=i,m=i=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(o,f,s[m],l);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(o,f),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===s.length)return n(o,f),ii&&Xo(o,m),u;if(null===f){for(;m<s.length;m++)null!==(f=d(o,s[m],l))&&(i=a(f,i,m),null===c?u=f:c.sibling=f,c=f);return ii&&Xo(o,m),u}for(f=r(o,f);m<s.length;m++)null!==(v=h(f,o,m,s[m],l))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),ii&&Xo(o,m),u}(u,c,f,m);if(D(f))return function(o,s,l,u){var c=D(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var f=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(o,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(o,m),ii&&Xo(o,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=d(o,y.value,u))&&(s=a(y,s,v),null===f?c=y:f.sibling=y,f=y);return ii&&Xo(o,v),c}for(m=r(o,m);!y.done;v++,y=l.next())null!==(y=h(m,o,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Xo(o,v),c}(u,c,f,m);qi(u,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(u,c.sibling),(c=o(c,f)).return=u,u=c):(n(u,c),(c=Au(f,u.mode,m)).return=u,u=c),s(u)):n(u,c)}}var Qi=Gi(!0),Ji=Gi(!1),Xi={},ea=ko(Xi),ta=ko(Xi),na=ko(Xi);function ra(e){if(e===Xi)throw Error(i(174));return e}function oa(e,t){switch(Co(na,t),Co(ta,e),Co(ea,Xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ea),Co(ea,t)}function ia(){Oo(ea),Oo(ta),Oo(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(Co(ta,e),Co(ea,n))}function sa(e){ta.current===e&&(Oo(ea),Oo(ta))}var la=ko(0);function ua(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 ca=[];function fa(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var da=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,va=null,ga=null,ya=!1,ba=!1,wa=0,Ea=0;function xa(){throw Error(i(321))}function Sa(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 _a(e,t,n,r,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(i(301));a+=1,ga=va=null,t.updateQueue=null,da.current=us,e=n(r,o)}while(ba)}if(da.current=as,t=null!==va&&null!==va.next,ha=0,ga=va=ma=null,ya=!1,t)throw Error(i(300));return e}function ka(){var e=0!==wa;return wa=0,e}function Oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ga?ma.memoizedState=ga=e:ga=ga.next=e,ga}function Ca(){if(null===va){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ga?ma.memoizedState:ga.next;if(null!==t)ga=t,va=e;else{if(null===e)throw Error(i(310));e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ga?ma.memoizedState=ga=e:ga=ga.next=e}return ga}function Pa(e,t){return"function"==typeof t?t(e):t}function Na(e){var t=Ca(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=va,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,u=null,c=a;do{var f=c.lane;if((ha&f)===f)null!==u&&(u=u.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 d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,s=r):u=u.next=d,ma.lanes|=f,Rl|=f}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Rl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ta(e){var t=Ca(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ja(){}function La(e,t){var n=ma,r=Ca(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,ws=!0),r=r.queue,Ha(Da.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ga&&1&ga.memoizedState.tag){if(n.flags|=2048,Fa(9,Ma.bind(null,n,r,o,t),void 0,null),null===Nl)throw Error(i(349));0!=(30&ha)||Ia(n,t,o)}return o}function Ia(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ma(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&Aa(e)}function Da(e,t,n){return n((function(){Ra(t)&&Aa(e)}))}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Aa(e){var t=Ti(e,1);null!==t&&nu(t,e,1,-1)}function $a(e){var t=Oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.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 Ua(){return Ca().memoizedState}function Ba(e,t,n,r){var o=Oa();ma.flags|=e,o.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function za(e,t,n,r){var o=Ca();r=void 0===r?null:r;var i=void 0;if(null!==va){var a=va.memoizedState;if(i=a.destroy,null!==r&&Sa(r,a.deps))return void(o.memoizedState=Fa(t,n,i,r))}ma.flags|=e,o.memoizedState=Fa(1|t,n,i,r)}function Za(e,t){return Ba(8390656,8,e,t)}function Ha(e,t){return za(2048,8,e,t)}function Va(e,t){return za(4,2,e,t)}function Ka(e,t){return za(4,4,e,t)}function Wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function qa(e,t,n){return n=null!=n?n.concat([e]):null,za(4,4,Wa.bind(null,t,e),n)}function Ya(){}function Ga(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0==(21&ha)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),ma.lanes|=n,Rl|=n,e.baseState=!0),t)}function Xa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function es(){return Ca().memoizedState}function ts(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?os(t,n):null!==(n=Ni(e,t,n,r))&&(nu(n,e,r,eu()),is(n,t,r))}function ns(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Pi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ni(e,t,o,r))&&(nu(n,e,r,o=eu()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function os(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:Oi,useCallback:xa,useContext:xa,useEffect:xa,useImperativeHandle:xa,useInsertionEffect:xa,useLayoutEffect:xa,useMemo:xa,useReducer:xa,useRef:xa,useState:xa,useDebugValue:xa,useDeferredValue:xa,useTransition:xa,useMutableSource:xa,useSyncExternalStore:xa,useId:xa,unstable_isNewReconciler:!1},ss={readContext:Oi,useCallback:function(e,t){return Oa().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Za,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4194308,4,Wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oa();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=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oa().memoizedState=e},useState:$a,useDebugValue:Ya,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=$a(!1),t=e[0];return e=Xa.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=Oa();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Nl)throw Error(i(349));0!=(30&ha)||Ia(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Za(Da.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Ma.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Oa(),t=Nl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ea++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Oi,useCallback:Ga,useContext:Oi,useEffect:Ha,useImperativeHandle:qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Qa,useReducer:Na,useRef:Ua,useState:function(){return Na(Pa)},useDebugValue:Ya,useDeferredValue:function(e){return Ja(Ca(),va.memoizedState,e)},useTransition:function(){return[Na(Pa)[0],Ca().memoizedState]},useMutableSource:ja,useSyncExternalStore:La,useId:es,unstable_isNewReconciler:!1},us={readContext:Oi,useCallback:Ga,useContext:Oi,useEffect:Ha,useImperativeHandle:qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Qa,useReducer:Ta,useRef:Ua,useState:function(){return Ta(Pa)},useDebugValue:Ya,useDeferredValue:function(e){var t=Ca();return null===va?t.memoizedState=e:Ja(t,va.memoizedState,e)},useTransition:function(){return[Ta(Pa)[0],Ca().memoizedState]},useMutableSource:ja,useSyncExternalStore:La,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function fs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Mi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function ms(e,t,n){(n=Mi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ku.bind(null,e,t,n),t.then(e,e))}function gs(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,o){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=Mi(-1,1)).tag=2,Di(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bs=w.ReactCurrentOwner,ws=!1;function Es(e,t,n,r){t.child=null===e?Ji(t,null,n,r):Qi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return ki(t,o),r=_a(e,t,n,r,i,o),n=ka(),null===e||ws?(ii&&n&&ti(t),t.flags|=1,Es(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Lu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_s(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Iu(i,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!=(131072&e.flags)&&(ws=!0)}}return Cs(e,t,n,r,o)}function ks(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Il,Ll),Ll|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Il,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Co(Il,Ll),Ll|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Co(Il,Ll),Ll|=r;return Es(e,t,o,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 Cs(e,t,n,r,o){var i=Io(n)?jo:No.current;return i=Lo(t,i),ki(t,o),n=_a(e,t,n,r,i,o),r=ka(),null===e||ws?(ii&&r&&ti(t),t.flags|=1,Es(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ps(e,t,n,r,o){if(Io(n)){var i=!0;Ao(t)}else i=!1;if(ki(t,o),null===t.stateNode)Zs(e,t),Hi(t,n,r),Ki(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Oi(u):Lo(t,u=Io(n)?jo:No.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||l!==u)&&Vi(t,a,r,u),ji=!1;var d=t.memoizedState;a.state=d,$i(t,r,a,o),l=t.memoizedState,s!==r||d!==l||To.current||ji?("function"==typeof c&&(Bi(t,n,c,r),l=t.memoizedState),(s=ji||Zi(t,n,s,r,d,l,u))?(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=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ii(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:gi(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Oi(l):Lo(t,l=Io(n)?jo:No.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==l)&&Vi(t,a,r,l),ji=!1,d=t.memoizedState,a.state=d,$i(t,r,a,o);var h=t.memoizedState;s!==f||d!==h||To.current||ji?("function"==typeof p&&(Bi(t,n,p,r),h=t.memoizedState),(u=ji||Zi(t,n,u,r,d,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,i,o)}function Ns(e,t,n,r,o,i){Os(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&$o(t,n,!1),Hs(e,t,i);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,s,i)):Es(e,t,s,i),t.memoizedState=r.state,o&&$o(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),oa(e,t.containerInfo)}function js(e,t,n,r,o){return hi(),mi(o),t.flags|=256,Es(e,t,n,r),t.child}var Ls,Is,Ms,Ds={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function As(e,t,n){var r,o=t.pendingProps,a=la.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Co(la,1&a),null===e)return ci(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):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Ru(l,o,0,null),e=Du(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=Ds,e):$s(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=fs(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ru({mode:"visible",children:r.children},o,0,null),(a=Du(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Qi(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Ds,a);if(0==(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=fs(a=Error(i(419)),r,void 0))}if(l=0!=(s&e.childLanes),ws||l){if(null!==(r=Nl)){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ti(e,o),nu(r,e,o,-1))}return mu(),Fs(e,t,s,r=fs(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Cu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(qo[Yo++]=Qo,qo[Yo++]=Jo,qo[Yo++]=Go,Qo=e.id,Jo=e.overflow,Go=t),(t=$s(t,r.children)).flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Iu(r,s):(s=Du(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ds,o}return e=(s=e.child).sibling,o=Iu(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function $s(e,t){return(t=Ru({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),Qi(t,e.child,null,n),(e=$s(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function Bs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function zs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Es(e,t,r.children,n),0!=(2&(r=la.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&&Us(e,n,t);else if(19===e.tag)Us(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(Co(la,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bs(t,!0,n,null,i);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!ii)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 Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Io(t.type)&&Mo(),Ks(t),null;case 3:return r=t.stateNode,ia(),Oo(To),Oo(No),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ks(t),null;case 5:sa(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ks(t),null}if(e=ra(ea.current),di(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Dr.length;o++)Fr(Dr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":G(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":K(r),X(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Xr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Ls(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dr.length;o++)Fr(Dr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":G(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=A({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in ye(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Fr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":K(e),X(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 o.onClick&&(e.onclick=Xr)}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 Ks(t),null;case 6:if(e&&null!=t.stateNode)Ms(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Ks(t),null;case 13:if(Oo(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==ai&&(au(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&la.current)?0===Ml&&(Ml=3):mu())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return ia(),null===e&&zr(t.stateNode.containerInfo),Ks(t),null;case 10:return Si(t.type._context),Ks(t),null;case 19:if(Oo(la),null===(a=t.memoizedState))return Ks(t),null;if(r=0!=(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Ml||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=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=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Co(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>zl&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ks(t),null}else 2*Qe()-a.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=la.current,Co(la,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ll)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function qs(e,t){switch(ni(t),t.tag){case 1:return Io(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Oo(To),Oo(No),fa(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Oo(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(la),null;case 4:return ia(),null;case 10:return Si(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Ls=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}},Is=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=A({},o,{value:void 0}),r=A({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}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 u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ms=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Gs=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){_u(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){_u(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(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 ol(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 il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[vo],delete t[go],delete t[yo]),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(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 ll(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)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(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(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,fl=!1;function dl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Gs||Xs(n,t);case 6:var r=cl,o=fl;cl=null,dl(e,t,n),fl=o,null!==(cl=r)&&(fl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(fl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),zt(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=fl,cl=n.stateNode.containerInfo,fl=!0,dl(e,t,n),cl=r,fl=o;break;case 0:case 11:case 14:case 15:if(!Gs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&el(n,t,a),o=o.next}while(o!==r)}dl(e,t,n);break;case 1:if(!Gs&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){_u(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,dl(e,t,n),Gs=r):dl(e,t,n);break;default:dl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,fl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));pl(a,s,o),cl=null,fl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){_u(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){_u(e,e.return,t)}try{nl(5,e,e.return)}catch(t){_u(e,e.return,t)}}break;case 1:ml(t,e),gl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),gl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){_u(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var f=u[s],d=u[s+1];"style"===f?ve(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,c)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){_u(e,e.return,t)}}break;case 6:if(ml(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){_u(e,e.return,t)}}break;case 3:if(ml(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){_u(e,e.return,t)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bl=Qe())),4&r&&hl(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||f,ml(t,e),Gs=c):ml(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(Js=e,f=e.child;null!==f;){for(d=Js=f;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){_u(r,n,e)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){El(d);continue}}null!==h?(h.return=p,Js=h):El(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,s=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){_u(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){_u(e,e.return,t)}}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;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ml(t,e),gl(e),4&r&&hl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),ul(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){_u(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!=(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ys;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=Ys;var u=Gs;if(Ys=a,(Gs=l)&&!u)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Js=l):xl(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Ys=s,Gs=u}wl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;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||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:gi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fi(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}Fi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&zt(d)}}}break;default:throw Error(i(163))}Gs||512&t.flags&&ol(t)}catch(e){_u(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function El(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){_u(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){_u(t,o,e)}}var i=t.return;try{ol(t)}catch(e){_u(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){_u(t,a,e)}}}catch(e){_u(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Sl,_l=Math.ceil,kl=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Cl=w.ReactCurrentBatchConfig,Pl=0,Nl=null,Tl=null,jl=0,Ll=0,Il=ko(0),Ml=0,Dl=null,Rl=0,Al=0,$l=0,Fl=null,Ul=null,Bl=0,zl=1/0,Zl=null,Hl=!1,Vl=null,Kl=null,Wl=!1,ql=null,Yl=0,Gl=0,Ql=null,Jl=-1,Xl=0;function eu(){return 0!=(6&Pl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tu(e){return 0==(1&e.mode)?1:0!=(2&Pl)&&0!==jl?jl&-jl:null!==vi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function nu(e,t,n,r){if(50<Gl)throw Gl=0,Ql=null,Error(i(185));gt(e,n,r),0!=(2&Pl)&&e===Nl||(e===Nl&&(0==(2&Pl)&&(Al|=n),4===Ml&&su(e,jl)),ru(e,r),1===n&&0===Pl&&0==(1&t.mode)&&(zl=Qe()+500,Uo&&Zo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!=(s&n)&&0==(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=dt(e,e===Nl?jl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Uo=!0,zo(e)}(lu.bind(null,e)):zo(lu.bind(null,e)),ao((function(){0==(6&Pl)&&Zo()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Jl=-1,Xl=0,0!=(6&Pl))throw Error(i(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=dt(e,e===Nl?jl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var o=Pl;Pl|=2;var a=hu();for(Nl===e&&jl===t||(Zl=null,zl=Qe()+500,du(e,t));;)try{yu();break}catch(t){pu(e,t)}xi(),kl.current=a,Pl=o,null!==Tl?t=0:(Nl=null,jl=0,t=Ml)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=iu(e,o)),1===t)throw n=Dl,du(e,0),su(e,r),ru(e,Qe()),n;if(6===t)su(e,r);else{if(o=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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){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}(o)&&(2===(t=vu(e,r))&&0!==(a=ht(e))&&(r=a,t=iu(e,a)),1===t))throw n=Dl,du(e,0),su(e,r),ru(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Eu(e,Ul,Zl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Bl+500-Qe())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Eu.bind(null,e,Ul,Zl),t);break}Eu(e,Ul,Zl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_l(r/1960))-r)){e.timeoutHandle=ro(Eu.bind(null,e,Ul,Zl),r);break}Eu(e,Ul,Zl);break;default:throw Error(i(329))}}}return ru(e,Qe()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Ul,Ul=n,null!==t&&au(t)),e}function au(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function su(e,t){for(t&=~$l,t&=~Al,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 lu(e){if(0!=(6&Pl))throw Error(i(327));xu();var t=dt(e,0);if(0==(1&t))return ru(e,Qe()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Dl,du(e,0),su(e,t),ru(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eu(e,Ul,Zl),ru(e,Qe()),null}function uu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(zl=Qe()+500,Uo&&Zo())}}function cu(e){null!==ql&&0===ql.tag&&0==(6&Pl)&&xu();var t=Pl;Pl|=1;var n=Cl.transition,r=bt;try{if(Cl.transition=null,bt=1,e)return e()}finally{bt=r,Cl.transition=n,0==(6&(Pl=t))&&Zo()}}function fu(){Ll=Il.current,Oo(Il)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mo();break;case 3:ia(),Oo(To),Oo(No),fa();break;case 5:sa(r);break;case 4:ia();break;case 13:case 19:Oo(la);break;case 10:Si(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Nl=e,Tl=e=Iu(e.current,null),jl=Ll=t,Ml=0,Dl=null,$l=Al=Rl=0,Ul=Fl=null,null!==Ci){for(t=0;t<Ci.length;t++)if(null!==(r=(n=Ci[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ci=null}return e}function pu(e,t){for(;;){var n=Tl;try{if(xi(),da.current=as,ya){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ya=!1}if(ha=0,ga=va=ma=null,ba=!1,wa=0,Ol.current=null,null===n||null===n.return){Ml=1,Dl=t,Tl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=jl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,f=l,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&vs(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(0==(1&t)){vs(a,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var g=gs(s);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),ys(g,s,l,0,t),mi(cs(u,l));break e}}a=u=cs(u,l),4!==Ml&&(Ml=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ai(a,hs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Kl||!Kl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ai(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}wu(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function hu(){var e=kl.current;return kl.current=as,null===e?as:e}function mu(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Nl||0==(268435455&Rl)&&0==(268435455&Al)||su(Nl,jl)}function vu(e,t){var n=Pl;Pl|=2;var r=hu();for(Nl===e&&jl===t||(Zl=null,du(e,t));;)try{gu();break}catch(t){pu(e,t)}if(xi(),Pl=n,kl.current=r,null!==Tl)throw Error(i(261));return Nl=null,jl=0,Ml}function gu(){for(;null!==Tl;)bu(Tl)}function yu(){for(;null!==Tl&&!Ye();)bu(Tl)}function bu(e){var t=Sl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?wu(e):Tl=t,Ol.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ws(n,t,Ll)))return void(Tl=n)}else{if(null!==(n=qs(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Ml=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Ml&&(Ml=5)}function Eu(e,t,n){var r=bt,o=Cl.transition;try{Cl.transition=null,bt=1,function(e,t,n,r){do{xu()}while(null!==ql);if(0!=(6&Pl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(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 o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Nl&&(Tl=Nl=null,jl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wl||(Wl=!0,Nu(tt,(function(){return xu(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Cl.transition,Cl.transition=null;var s=bt;bt=1;var l=Pl;Pl|=4,Ol.current=null,function(e,t){if(eo=Ht,pr(e=dr())){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 o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(l=s+o),d!==a||0!==r&&3!==d.nodeType||(u=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=s),p===a&&++f===r&&(u=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=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!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:gi(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){_u(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),vl(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ge(),Pl=l,bt=s,Cl.transition=a}else e.current=n;if(Wl&&(Wl=!1,ql=e,Yl=o),0===(a=e.pendingLanes)&&(Kl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ru(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!=(1&Yl)&&0!==e.tag&&xu(),0!=(1&(a=e.pendingLanes))?e===Ql?Gl++:(Gl=0,Ql=e):Gl=0,Zo()}(e,t,n,r)}finally{Cl.transition=o,bt=r}return null}function xu(){if(null!==ql){var e=wt(Yl),t=Cl.transition,n=bt;try{if(Cl.transition=null,bt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Yl=0,0!=(6&Pl))throw Error(i(331));var o=Pl;for(Pl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!=(16&Js.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var f=Js;switch(f.tag){case 0:case 11:case 15:nl(8,f,a)}var d=f.child;if(null!==d)d.return=f,Js=d;else for(;null!==Js;){var p=(f=Js).sibling,h=f.return;if(il(f),f===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Js=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!=(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!=(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!=(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){_u(l,l.return,e)}if(l===s){Js=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,Js=E;break e}Js=l.return}}if(Pl=o,Zo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Cl.transition=t}}return!1}function Su(e,t,n){e=Di(e,t=hs(0,t=cs(n,t),1),1),t=eu(),null!==e&&(gt(e,1,t),ru(e,t))}function _u(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=Di(t,e=ms(t,e=cs(n,e),1),1),e=eu(),null!==t&&(gt(t,1,e),ru(t,e));break}}t=t.return}}function ku(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(jl&n)===n&&(4===Ml||3===Ml&&(130023424&jl)===jl&&500>Qe()-Bl?du(e,0):$l|=n),ru(e,t)}function Ou(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Ti(e,t))&&(gt(e,t,n),ru(e,n))}function Cu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Pu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ou(e,n)}function Nu(e,t){return We(e,t)}function Tu(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 ju(e,t,n,r){return new Tu(e,t,n,r)}function Lu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=ju(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 Mu(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Lu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Du(n.children,o,a,t);case _:s=8,o|=8;break;case k:return(e=ju(12,n,t,2|o)).elementType=k,e.lanes=a,e;case N:return(e=ju(13,n,t,o)).elementType=N,e.lanes=a,e;case T:return(e=ju(19,n,t,o)).elementType=T,e.lanes=a,e;case I:return Ru(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case C:s=9;break e;case P:s=11;break e;case j:s=14;break e;case L:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=ju(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Du(e,t,n,r){return(e=ju(7,e,r,t)).lanes=n,e}function Ru(e,t,n,r){return(e=ju(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Au(e,t,n){return(e=ju(6,e,null,t)).lanes=n,e}function $u(e,t,n){return(t=ju(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){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=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,o,i,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=ju(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Bu(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 zu(e){if(!e)return Po;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Io(n))return Ro(e,n,t)}return t}function Zu(e,t,n,r,o,i,a,s,l){return(e=Uu(n,r,!0,e,0,i,0,s,l)).context=zu(null),n=e.current,(i=Mi(r=eu(),o=tu(n))).callback=null!=t?t:null,Di(n,i,o),e.current.lanes=o,gt(e,o,r),ru(e,r),e}function Hu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=zu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Mi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Di(o,t,a))&&(nu(e,o,a,i),Ri(e,o,a)),a}function Vu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)ws=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),hi();break;case 5:aa(t);break;case 1:Io(t.type)&&Ao(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(yi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(la,1&la.current),t.flags|=128,null):0!=(n&t.child.childLanes)?As(e,t,n):(Co(la,1&la.current),null!==(e=Hs(e,t,n))?e.sibling:null);Co(la,1&la.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!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Hs(e,t,n)}(e,t,n);ws=0!=(131072&e.flags)}else ws=!1,ii&&0!=(1048576&t.flags)&&ei(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zs(e,t),e=t.pendingProps;var o=Lo(t,No.current);ki(t,n),o=_a(null,t,r,e,o,n);var a=ka();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(r)?(a=!0,Ao(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=zi,t.stateNode=o,o._reactInternals=t,Ki(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),Es(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Lu(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===j)return 14}return 2}(r),e=gi(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Ps(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,gi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ps(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 3:e:{if(Ts(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ii(e,t),$i(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=js(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=js(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hs(e,t,n);break e}Es(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Os(e,t),Es(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return As(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qi(t,null,r,n):Es(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 7:return Es(e,t,t.pendingProps,n),t.child;case 8:case 12:return Es(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Co(yi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!To.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Mi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),_i(a.return,n,t),l.lanes|=n;break}u=u.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(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),_i(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}Es(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ki(t,n),r=r(o=Oi(o)),t.flags|=1,Es(e,t,r,n),t.child;case 14:return o=gi(r=t.type,t.pendingProps),Ss(e,t,r,o=gi(r.type,o),n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gi(r,o),Zs(e,t),t.tag=1,Io(r)?(e=!0,Ao(t)):e=!1,ki(t,n),Hi(t,r,o),Ki(t,r,o,n),Ns(null,t,r,!0,e,n);case 19:return zs(e,t,n);case 22:return ks(e,t,n)}throw Error(i(156,t.tag))};var qu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Vu(a);s.call(e)}}Hu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Vu(a);i.call(e)}}var a=Zu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[mo]=a.current,zr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Vu(l);s.call(e)}}var l=Uu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[mo]=l.current,zr(8===e.nodeType?e.parentNode:e),cu((function(){Hu(t,l,n,r)})),l}(n,t,e,o,r);return Vu(a)}Gu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hu(e,t,null,null)},Gu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Hu(null,e,null,null)})),t[mo]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&At(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),0==(6&Pl)&&(zl=Qe()+500,Zo()))}break;case 13:cu((function(){var t=Ti(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Wu(e,1)}},xt=function(e){if(13===e.tag){var t=Ti(e,134217728);null!==t&&nu(t,e,134217728,eu()),Wu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=Ti(e,t);null!==n&&nu(n,e,t,eu()),Wu(e,t)}},_t=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(J(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 o=xo(r);if(!o)throw Error(i(90));W(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=uu,Ne=cu;var tc={usingClientEntryPoint:!1,Events:[wo,Eo,xo,Oe,Ce,uu]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.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=Ve(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(i(200));return Bu(e,t,null,n)},t.createRoot=function(e,t){if(!Qu(e))throw Error(i(299));var n=!1,r="",o=qu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,zr(8===e.nodeType?e.parentNode:e),new Yu(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(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=qu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Zu(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,zr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Gu(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},7299:(e,t,n)=>{"use strict";var r=n(1859);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},1386:(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(e){console.error(e)}}(),e.exports=n(1556)},2857:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.r(t),n.d(t,{I18nContext:()=>_,I18nextProvider:()=>se,Trans:()=>q,Translation:()=>ae,composeInitialProps:()=>j,date:()=>de,getDefaults:()=>O,getI18n:()=>N,getInitialProps:()=>L,initReactI18next:()=>T,number:()=>he,plural:()=>ve,select:()=>me,selectOrdinal:()=>ge,setDefaults:()=>k,setI18n:()=>P,time:()=>pe,useSSR:()=>le,useTranslation:()=>ee,withSSR:()=>fe,withTranslation:()=>oe});var o=n(1248),i=n(9474),a=n(7959),s=n(3913),l=n.n(s),u=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function c(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(l()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(u),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,p=Object.create(null);const h=function(e,t){t||(t={}),t.components||(t.components=p);var n,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(f,(function(s,l){if(a){if(s!=="</"+n.name+">")return;a=!1}var u,f="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),h=l+s.length,m=e.charAt(h);if(p){var v=c(s);return i<0?(r.push(v),r):((u=o[i]).children.push(v),r)}if(f&&(i++,"tag"===(n=c(s)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!m||"<"===m||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&r.push(n),(u=o[i-1])&&u.children.push(n),o[i]=n),(!f||n.voidElement)&&(i>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(i--,n=-1===i?r:o[i]),!a&&"<"!==m&&m)){u=-1===i?r:o[i].children;var g=e.indexOf("<",h),y=e.slice(h,-1===g?void 0:g);d.test(y)&&(y=" "),(g>-1&&i+u.length>=0||" "!==y)&&u.push({type:"text",content:y})}})),r};var m=n(6823),v=n(1917),g=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,y={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},b=function(e){return y[e]};function w(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 E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x,S={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(g,b)}},_=(0,a.createContext)();function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S=E(E({},S),e)}function O(){return S}var C=function(){function e(){(0,m.Z)(this,e),this.usedNamespaces={}}return(0,v.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function P(e){x=e}function N(){return x}var T={type:"3rdParty",init:function(e){k(e.options.react),P(e)}};function j(e){return function(t){return new Promise((function(n){var r=L();e.getInitialProps?e.getInitialProps(t).then((function(e){n(E(E({},e),r))})):n(r)}))}}function L(){var e=N(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((function(n){r[n]={},t.forEach((function(t){r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n}function I(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var M={};function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&M[t[0]]||("string"==typeof t[0]&&(M[t[0]]=new Date),I.apply(void 0,t))}function R(e,t,n){e.loadNamespaces(t,(function(){e.isInitialized?n():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}))}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return D("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):A(e,t,n)}function F(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var U=["format"],B=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function z(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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function V(e){return e?e.props?e.props.children:e.children:[]}function K(e){return Array.isArray(e)?e:[e]}function W(e,t){if(!e)return"";var n="",i=K(e),s=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return i.forEach((function(e,i){if("string"==typeof e)n+="".concat(e);else if((0,a.isValidElement)(e)){var l=Object.keys(e.props).length,u=s.indexOf(e.type)>-1,c=e.props.children;if(!c&&u&&0===l)n+="<".concat(e.type,"/>");else if(c||u&&0===l)if(e.props.i18nIsDynamicList)n+="<".concat(i,"></").concat(i,">");else if(u&&1===l&&"string"==typeof c)n+="<".concat(e.type,">").concat(c,"</").concat(e.type,">");else{var f=W(c,t);n+="<".concat(i,">").concat(f,"</").concat(i,">")}else n+="<".concat(i,"></").concat(i,">")}else if(null===e)I("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,o.Z)(e)){var d=e.format,p=r(e,U),h=Object.keys(p);if(1===h.length){var m=d?"".concat(h[0],", ").concat(d):h[0];n+="{{".concat(m,"}}")}else I("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else I("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function q(e){var t=e.children,n=e.count,i=e.parent,s=e.i18nKey,l=e.context,u=e.tOptions,c=void 0===u?{}:u,f=e.values,d=e.defaults,p=e.components,m=e.ns,v=e.i18n,g=e.t,y=e.shouldUnescape,b=r(e,B),w=(0,a.useContext)(_)||{},E=w.i18n,x=w.defaultNS,S=v||E||N();if(!S)return D("You will need to pass in an i18next instance by using i18nextReactModule"),t;var k=g||S.t.bind(S)||function(e){return e};l&&(c.context=l);var C=Z(Z({},O()),S.options&&S.options.react),P=m||k.ns||x||S.options&&S.options.defaultNS;P="string"==typeof P?[P]:P||["translation"];var T=d||W(t,C)||C.transEmptyNodeValue||s,j=C.hashTransKey,L=s||(j?j(T):T),I=f?c.interpolation:{interpolation:Z(Z({},c.interpolation),{},{prefix:"#$?",suffix:"?$#"})},M=Z(Z(Z(Z({},c),{},{count:n},f),I),{},{defaultValue:T,ns:P}),R=function(e,t,n,r,i,s){if(""===t)return[];var l=r.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(l.join("|")).test(t);if(!e&&!u)return[t];var c={};!function e(t){K(t).forEach((function(t){"string"!=typeof t&&(H(t)?e(V(t)):"object"!==(0,o.Z)(t)||(0,a.isValidElement)(t)||Object.assign(c,t))}))}(e);var f=h("<0>".concat(t,"</0>")),d=Z(Z({},c),i);function p(e,t,n){var r=V(e),o=v(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return(0,a.isValidElement)(e)}))}(r)&&0===o.length?r:o}function m(e,t,n,r,o){e.dummy&&(e.children=t),n.push((0,a.cloneElement)(e,Z(Z({},e.props),{},{key:r}),o?void 0:t))}function v(t,i,c){var f=K(t);return K(i).reduce((function(t,i,h){var g,y,b,w=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,d,n.language);if("tag"===i.type){var E=f[parseInt(i.name,10)];!E&&1===c.length&&c[0][i.name]&&(E=c[0][i.name]),E||(E={});var x=0!==Object.keys(i.attrs).length?(g={props:i.attrs},(b=Z({},y=E)).props=Object.assign(g.props,y.props),b):E,S=(0,a.isValidElement)(x),_=S&&H(i,!0)&&!i.voidElement,k=u&&"object"===(0,o.Z)(x)&&x.dummy&&!S,O="object"===(0,o.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof x){var C=n.services.interpolator.interpolate(x,d,n.language);t.push(C)}else if(H(x)||_)m(x,p(x,i,c),t,h);else if(k){var P=v(f,i.children,c);t.push((0,a.cloneElement)(x,Z(Z({},x.props),{},{key:h}),P))}else if(Number.isNaN(parseFloat(i.name)))if(O)m(x,p(x,i,c),t,h,i.voidElement);else if(r.transSupportBasicHtmlNodes&&l.indexOf(i.name)>-1)if(i.voidElement)t.push((0,a.createElement)(i.name,{key:"".concat(i.name,"-").concat(h)}));else{var N=v(f,i.children,c);t.push((0,a.createElement)(i.name,{key:"".concat(i.name,"-").concat(h)},N))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var T=v(f,i.children,c);t.push("<".concat(i.name,">").concat(T,"</").concat(i.name,">"))}else if("object"!==(0,o.Z)(x)||S)1===i.children.length&&w?t.push((0,a.cloneElement)(x,Z(Z({},x.props),{},{key:h}),w)):t.push((0,a.cloneElement)(x,Z(Z({},x.props),{},{key:h})));else{var j=i.children[0]?w:null;j&&t.push(j)}}else if("text"===i.type){var L=r.transWrapTextNodes,I=s?r.unescape(n.services.interpolator.interpolate(i.content,d,n.language)):n.services.interpolator.interpolate(i.content,d,n.language);L?t.push((0,a.createElement)(L,{key:"".concat(i.name,"-").concat(h)},I)):t.push(I)}return t}),[])}return V(v([{dummy:!0,children:e||[]}],f,K(e||[]))[0])}(p||t,L?k(L,M):T,S,C,M,y),A=void 0!==i?i:C.defaultTransParent;return A?(0,a.createElement)(A,b,R):R}function Y(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 G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y(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)?Y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(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 J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=function(e,t){var n=(0,a.useRef)();return(0,a.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,a.useContext)(_)||{},o=r.i18n,i=r.defaultNS,s=n||o||N();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new C),!s){D("You will need to pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[l,{},!1];return u.t=l,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&D("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=J(J(J({},O()),s.options.react),t),f=c.useSuspense,d=c.keyPrefix,p=e||i||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);var h=(s.isInitialized||s.initializedStoreOnce)&&p.every((function(e){return $(e,s,c)}));function m(){return s.getFixedT(null,"fallback"===c.nsMode?p:p[0],d)}var v=(0,a.useState)(m),g=G(v,2),y=g[0],b=g[1],w=p.join(),E=X(w),x=(0,a.useRef)(!0);(0,a.useEffect)((function(){var e=c.bindI18n,t=c.bindI18nStore;function n(){x.current&&b(m)}return x.current=!0,h||f||R(s,p,(function(){x.current&&b(m)})),h&&E&&E!==w&&x.current&&b(m),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){x.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,w]);var S=(0,a.useRef)(!0);(0,a.useEffect)((function(){x.current&&!S.current&&b(m),S.current=!1}),[s,d]);var k=[y,s,h];if(k.t=y,k.i18n=s,k.ready=h,h)return k;if(!h&&!f)return k;throw new Promise((function(e){R(s,p,(function(){e()}))}))}var te=["forwardedRef"];function ne(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function o(o){var i=o.forwardedRef,s=r(o,te),l=G(ee(e,re(re({},s),{},{keyPrefix:t.keyPrefix})),3),u=l[0],c=l[1],f=l[2],d=re(re({},s),{},{t:u,i18n:c,tReady:f});return t.withRef&&i?d.ref=i:!t.withRef&&i&&(d.forwardedRef=i),(0,a.createElement)(n,d)}return o.displayName="withI18nextTranslation(".concat(F(n),")"),o.WrappedComponent=n,t.withRef?(0,a.forwardRef)((function(e,t){return(0,a.createElement)(o,Object.assign({},e,{forwardedRef:t}))})):o}}var ie=["ns","children"];function ae(e){var t=e.ns,n=e.children,o=G(ee(t,r(e,ie)),3),i=o[0],a=o[1],s=o[2];return n(i,{i18n:a,lng:a.language},s)}function se(e){var t=e.i18n,n=e.defaultNS,r=e.children,o=(0,a.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,a.createElement)(_.Provider,{value:o},r)}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.i18n,o=(0,a.useContext)(_)||{},i=o.i18n,s=r||i||N();s.options&&s.options.isClone||(e&&!s.initializedStoreOnce&&(s.services.resourceStore.data=e,s.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),s.options.ns),s.initializedStoreOnce=!0,s.isInitialized=!0),t&&!s.initializedLanguageOnce&&(s.changeLanguage(t),s.initializedLanguageOnce=!0))}var ue=["initialI18nStore","initialLanguage"];function ce(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 fe(){return function(e){function t(t){var n=t.initialI18nStore,o=t.initialLanguage,s=r(t,ue);return le(n,o),(0,a.createElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s))}return t.getInitialProps=j(e),t.displayName="withI18nextSSR(".concat(F(e),")"),t.WrappedComponent=e,t}}var de=function(){return""},pe=function(){return""},he=function(){return""},me=function(){return""},ve=function(){return""},ge=function(){return""}},8856:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.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")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:S.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function P(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 N(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+P(l,0):i,E(a)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),N(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",E(e))for(var u=0;u<e.length;u++){var c=i+P(s=e[u],u);l+=N(s,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=N(s=s.value,t,o,c=i+P(s,u++),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 l}function T(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function j(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 L={current:null},I={transition:null},M={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.2.0"},3248:(e,t,n)=>{"use strict";e.exports=n(8856)},1099:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:()=>ae.W,AsyncSubject:()=>B,BehaviorSubject:()=>w,ConnectableObservable:()=>m,EMPTY:()=>C.E,EmptyError:()=>se,GroupedObservable:()=>g,NEVER:()=>it,Notification:()=>R,NotificationKind:()=>N,ObjectUnsubscribedError:()=>s,Observable:()=>r.y,ReplaySubject:()=>F,Scheduler:()=>S,Subject:()=>f,Subscriber:()=>i.L,Subscription:()=>a.w,TimeoutError:()=>ue,UnsubscriptionError:()=>le.B,VirtualAction:()=>te,VirtualTimeScheduler:()=>ee,animationFrame:()=>X,animationFrameScheduler:()=>J,asap:()=>q,asapScheduler:()=>W,async:()=>G,asyncScheduler:()=>Y,bindCallback:()=>pe,bindNodeCallback:()=>ve,combineLatest:()=>je,concat:()=>He,config:()=>Nt.v,defer:()=>Ve,empty:()=>C.c,forkJoin:()=>Ke,from:()=>De,fromEvent:()=>Ye,fromEventPattern:()=>Qe,generate:()=>Je,identity:()=>oe.y,iif:()=>et,interval:()=>nt,isObservable:()=>ie,merge:()=>ot,never:()=>at,noop:()=>re,observable:()=>b.L,of:()=>I,onErrorResumeNext:()=>st,pairs:()=>lt,partition:()=>ht,pipe:()=>ne.z,queue:()=>O,queueScheduler:()=>k,race:()=>mt,range:()=>yt,scheduled:()=>Me,throwError:()=>M,timer:()=>wt,using:()=>xt,zip:()=>St});var r=n(215),o=n(222),i=n(9457),a=n(7552),s=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),l=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return o.ZT(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(a.w),u=n(5947),c=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return o.ZT(t,e),t}(i.L),f=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o.ZT(t,e),t.prototype[u.b]=function(){return new c(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new s;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new s;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new s;return this.hasError?(e.error(this.thrownError),a.w.EMPTY):this.isStopped?(e.complete(),a.w.EMPTY):(this.observers.push(e),new l(this,e))},t.prototype.asObservable=function(){var e=new r.y;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(r.y),d=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return o.ZT(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.w.EMPTY},t}(f),p=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new h(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),h=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o.ZT(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.L),m=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o.ZT(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new a.w).add(this.source.subscribe(new v(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.w.EMPTY)),e},t.prototype.refCount=function(){return(e=this).lift(new p(e));var e},t}(r.y),v=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o.ZT(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(c);i.L,i.L;i.L;var g=function(e){function t(t,n,r){var o=e.call(this)||this;return o.key=t,o.groupSubject=n,o.refCountSubscription=r,o}return o.ZT(t,e),t.prototype._subscribe=function(e){var t=new a.w,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new y(n)),t.add(r.subscribe(e)),t},t}(r.y),y=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return o.ZT(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(a.w),b=n(579),w=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return o.ZT(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(f),E=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return o.ZT(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return o.ZT(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(a.w)),x=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o.ZT(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(E),S=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),_=function(e){function t(n,r){void 0===r&&(r=S.now);var o=e.call(this,n,(function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return o.ZT(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(S),k=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t}(_))(x),O=k,C=n(9348);function P(e){return e&&"function"==typeof e.schedule}var N,T=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}};function j(e,t){return new r.y((function(n){var r=new a.w,o=0;return r.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function L(e,t){return t?j(e,t):new r.y(T(e))}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return P(n)?(e.pop(),j(e,n)):L(e)}function M(e,t){return t?new r.y((function(n){return t.schedule(D,0,{error:e,subscriber:n})})):new r.y((function(t){return t.error(e)}))}function D(e){var t=e.error;e.subscriber.error(t)}N||(N={});var R=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return I(this.value);case"E":return M(this.error);case"C":return(0,C.c)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),A=function(e){function t(t,n,r){void 0===r&&(r=0);var o=e.call(this,t)||this;return o.scheduler=n,o.delay=r,o}return o.ZT(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new $(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(R.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(R.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(R.createComplete()),this.unsubscribe()},t}(i.L),$=function(){return function(e,t){this.notification=e,this.destination=t}}(),F=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=e.call(this)||this;return o.scheduler=r,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=t<1?1:t,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return o.ZT(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new U(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new s;if(this.isStopped||this.hasError?t=a.w.EMPTY:(this.observers.push(e),t=new l(this,e)),o&&e.add(e=new A(e,o)),n)for(var u=0;u<i&&!e.closed;u++)e.next(r[u]);else for(u=0;u<i&&!e.closed;u++)e.next(r[u].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||O).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(e-r[i].time<n);)i++;return o>t&&(i=Math.max(i,o-t)),i>0&&r.splice(0,i),r},t}(f),U=function(){return function(e,t){this.time=e,this.value=t}}(),B=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return o.ZT(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),a.w.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),a.w.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(f),z=1,Z=function(){return Promise.resolve()}(),H={};function V(e){return e in H&&(delete H[e],!0)}var K=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o.ZT(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=(o=t.flush.bind(t,null),i=z++,H[i]=!0,Z.then((function(){return V(i)&&o()})),i)));var o,i},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(V(n),t.scheduled=void 0)},t}(E),W=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,o=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this.active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(_))(K),q=W,Y=new _(E),G=Y,Q=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o.ZT(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(E),J=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,o=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this.active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(_))(Q),X=J,ee=function(e){function t(t,n){void 0===t&&(t=te),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this,t,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return o.ZT(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(_),te=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.index=r,o.active=!0,o.index=t.index=r,o}return o.ZT(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(n,r)},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(E),ne=n(5724);function re(){}var oe=n(3823);function ie(e){return!!e&&(e instanceof r.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var ae=n(233),se=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),le=n(437),ue=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),ce=n(821),fe=n(4537),de=n(1589);function pe(e,t,n){if(t){if(!P(t))return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return pe(e,n).apply(void 0,r).pipe((0,ce.U)((function(e){return(0,de.k)(e)?t.apply(void 0,e):t(e)})))};n=t}return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i,a=this,s={context:a,subject:i,callbackFunc:e,scheduler:n};return new r.y((function(r){if(n){var o={args:t,subscriber:r,params:s};return n.schedule(he,0,o)}if(!i){i=new B;try{e.apply(a,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.next(e.length<=1?e[0]:e),i.complete()}]))}catch(e){(0,fe._)(i)?i.error(e):console.warn(e)}}return i.subscribe(r)}))}}function he(e){var t=this,n=e.args,r=e.subscriber,o=e.params,i=o.callbackFunc,a=o.context,s=o.scheduler,l=o.subject;if(!l){l=o.subject=new B;try{i.apply(a,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length<=1?e[0]:e;t.add(s.schedule(me,0,{value:r,subject:l}))}]))}catch(e){l.error(e)}}this.add(l.subscribe(r))}function me(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function ve(e,t,n){if(t){if(!P(t))return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return ve(e,n).apply(void 0,r).pipe((0,ce.U)((function(e){return(0,de.k)(e)?t.apply(void 0,e):t(e)})))};n=t}return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new r.y((function(r){var o=i.context,a=i.subject;if(n)return n.schedule(ge,0,{params:i,subscriber:r,context:o});if(!a){a=i.subject=new B;try{e.apply(o,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift();n?a.error(n):(a.next(e.length<=1?e[0]:e),a.complete())}]))}catch(e){(0,fe._)(a)?a.error(e):console.warn(e)}}return a.subscribe(r)}))}}function ge(e){var t=this,n=e.params,r=e.subscriber,o=e.context,i=n.callbackFunc,a=n.args,s=n.scheduler,l=n.subject;if(!l){l=n.subject=new B;try{i.apply(o,a.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.shift();if(r)t.add(s.schedule(be,0,{err:r,subject:l}));else{var o=e.length<=1?e[0]:e;t.add(s.schedule(ye,0,{value:o,subject:l}))}}]))}catch(e){this.add(s.schedule(be,0,{err:e,subject:l}))}}this.add(l.subscribe(r))}function ye(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function be(e){var t=e.err;e.subject.error(t)}var we=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(i.L),Ee=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return o.ZT(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(i.L),xe=n(7774);function Se(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var _e=Se(),ke=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Oe(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Ce=n(7086),Pe=function(e){if(e&&"function"==typeof e[b.L])return r=e,function(e){var t=r[b.L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(ke(e))return T(e);if(Oe(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,xe.z),e};if(e&&"function"==typeof e[_e])return t=e,function(e){for(var n=t[_e]();;){var r=void 0;try{r=n.next()}catch(t){return e.error(t),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,r,o=(0,Ce.K)(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+o+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Ne(e,t,n,o,i){if(void 0===i&&(i=new Ee(e,n,o)),!i.closed)return t instanceof r.y?t.subscribe(i):Pe(t)(i)}var Te={};function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=void 0,r=void 0;return P(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&(0,de.k)(e[0])&&(e=e[0]),L(e,r).lift(new Le(n))}var Le=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ie(e,this.resultSelector))},e}(),Ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return o.ZT(t,e),t.prototype._next=function(e){this.values.push(Te),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(Ne(this,r,void 0,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n){var r=this.values,o=r[n],i=this.toRespond?o===Te?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(we);function Me(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[b.L]}(e))return function(e,t){return new r.y((function(n){var r=new a.w;return r.add(t.schedule((function(){var o=e[b.L]();r.add(o.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Oe(e))return function(e,t){return new r.y((function(n){var r=new a.w;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(ke(e))return j(e,t);if(function(e){return e&&"function"==typeof e[_e]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.y((function(n){var r,o=new a.w;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(t.schedule((function(){r=e[_e](),o.add(t.schedule((function(){if(!n.closed){var e,t;try{var o=r.next();e=o.value,t=o.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),o}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function De(e,t){return t?Me(e,t):e instanceof r.y?e:new r.y(Pe(e))}var Re=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return o.ZT(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(i.L),Ae=(i.L,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(i.L));function $e(e,t){if(!t.closed){if(e instanceof r.y)return e.subscribe(t);var n;try{n=Pe(e)(t)}catch(e){t.error(e)}return n}}function Fe(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(Fe((function(n,r){return De(e(n,r)).pipe((0,ce.U)((function(e,o){return t(n,e,r,o)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Ue(e,n))})}i.L;var Ue=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Be(e,this.project,this.concurrent))},e}(),Be=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return o.ZT(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t)},t.prototype._innerSub=function(e){var t=new Re(this),n=this.destination;n.add(t);var r=$e(e,t);r!==t&&n.add(r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(Ae);function ze(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Fe(oe.y,e)}function Ze(){return ze(1)}function He(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ze()(I.apply(void 0,e))}function Ve(e){return new r.y((function(t){var n;try{n=e()}catch(e){return void t.error(e)}return(n?De(n):(0,C.c)()).subscribe(t)}))}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=e[0];if((0,de.k)(n))return We(n,null);if((0,Ce.K)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return We(r.map((function(e){return n[e]})),r)}}if("function"==typeof e[e.length-1]){var o=e.pop();return We(e=1===e.length&&(0,de.k)(e[0])?e[0]:e,null).pipe((0,ce.U)((function(e){return o.apply(void 0,e)})))}return We(e,null)}function We(e,t){return new r.y((function(n){var r=e.length;if(0!==r)for(var o=new Array(r),i=0,a=0,s=function(s){var l=De(e[s]),u=!1;n.add(l.subscribe({next:function(e){u||(u=!0,a++),o[s]=e},error:function(e){return n.error(e)},complete:function(){++i!==r&&u||(a===r&&n.next(t?t.reduce((function(e,t,n){return e[t]=o[n],e}),{}):o),n.complete())}}))},l=0;l<r;l++)s(l);else n.complete()}))}var qe=n(1744);function Ye(e,t,n,o){return(0,qe.m)(n)&&(o=n,n=void 0),o?Ye(e,t,n).pipe((0,ce.U)((function(e){return(0,de.k)(e)?o.apply(void 0,e):o(e)}))):new r.y((function(r){Ge(e,t,(function(e){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}function Ge(e,t,n,r,o){var i;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,o),i=function(){return a.removeEventListener(t,n,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),i=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),i=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u<c;u++)Ge(e[u],t,n,r,o)}r.add(i)}function Qe(e,t,n){return n?Qe(e,t).pipe((0,ce.U)((function(e){return(0,de.k)(e)?n.apply(void 0,e):n(e)}))):new r.y((function(n){var r,o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)};try{r=e(o)}catch(e){return void n.error(e)}if((0,qe.m)(t))return function(){return t(o,r)}}))}function Je(e,t,n,o,i){var a,s;if(1==arguments.length){var l=e;s=l.initialState,t=l.condition,n=l.iterate,a=l.resultSelector||oe.y,i=l.scheduler}else void 0===o||P(o)?(s=e,a=oe.y,i=o):(s=e,a=o);return new r.y((function(e){var r=s;if(i)return i.schedule(Xe,0,{subscriber:e,iterate:n,condition:t,resultSelector:a,state:r});for(;;){if(t){var o=void 0;try{o=t(r)}catch(t){return void e.error(t)}if(!o){e.complete();break}}var l=void 0;try{l=a(r)}catch(t){return void e.error(t)}if(e.next(l),e.closed)break;try{r=n(r)}catch(t){return void e.error(t)}}}))}function Xe(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){return void t.error(e)}else e.needIterate=!0;if(n){var r=void 0;try{r=n(e.state)}catch(e){return void t.error(e)}if(!r)return void t.complete();if(t.closed)return}var o;try{o=e.resultSelector(e.state)}catch(e){return void t.error(e)}if(!t.closed&&(t.next(o),!t.closed))return this.schedule(e)}}function et(e,t,n){return void 0===t&&(t=C.E),void 0===n&&(n=C.E),Ve((function(){return e()?t:n}))}function tt(e){return!(0,de.k)(e)&&e-parseFloat(e)+1>=0}function nt(e,t){return void 0===e&&(e=0),void 0===t&&(t=G),(!tt(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=G),new r.y((function(n){return n.add(t.schedule(rt,e,{subscriber:n,counter:0,period:e})),n}))}function rt(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}function ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,o=null,i=e[e.length-1];return P(i)?(o=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===o&&1===e.length&&e[0]instanceof r.y?e[0]:ze(n)(L(e,o))}var it=new r.y(re);function at(){return it}function st(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return C.E;var n=e[0],o=e.slice(1);return 1===e.length&&(0,de.k)(n)?st.apply(void 0,n):new r.y((function(e){var t=function(){return e.add(st.apply(void 0,o).subscribe(e))};return De(n).subscribe({next:function(t){e.next(t)},error:t,complete:t})}))}function lt(e,t){return t?new r.y((function(n){var r=Object.keys(e),o=new a.w;return o.add(t.schedule(ut,0,{keys:r,index:0,subscriber:n,subscription:o,obj:e})),o})):new r.y((function(t){for(var n=Object.keys(e),r=0;r<n.length&&!t.closed;r++){var o=n[r];e.hasOwnProperty(o)&&t.next([o,e[o]])}t.complete()}))}function ut(e){var t=e.keys,n=e.index,r=e.subscriber,o=e.subscription,i=e.obj;if(!r.closed)if(n<t.length){var a=t[n];r.next([a,i[a]]),o.add(this.schedule({keys:t,index:n+1,subscriber:r,subscription:o,obj:i}))}else r.complete()}function ct(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}function ft(e,t){return function(n){return n.lift(new dt(e,t))}}var dt=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new pt(e,this.predicate,this.thisArg))},e}(),pt=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return o.ZT(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.L);function ht(e,t,n){return[ft(t,n)(new r.y(Pe(e))),ft(ct(t,n))(new r.y(Pe(e)))]}function mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!(0,de.k)(e[0]))return e[0];e=e[0]}return L(e,void 0).lift(new vt)}var vt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new gt(e))},e}(),gt=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return o.ZT(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var r=Ne(this,e[n],void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},t.prototype.notifyNext=function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var o=this.subscriptions[r];o.unsubscribe(),this.remove(o)}this.subscriptions=null}this.destination.next(t)},t}(we);function yt(e,t,n){return void 0===e&&(e=0),new r.y((function(r){void 0===t&&(t=e,e=0);var o=0,i=e;if(n)return n.schedule(bt,0,{index:o,count:t,start:e,subscriber:r});for(;;){if(o++>=t){r.complete();break}if(r.next(i++),r.closed)break}}))}function bt(e){var t=e.start,n=e.index,r=e.count,o=e.subscriber;n>=r?o.complete():(o.next(t),o.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}function wt(e,t,n){void 0===e&&(e=0);var o=-1;return tt(t)?o=Number(t)<1?1:Number(t):P(t)&&(n=t),P(n)||(n=G),new r.y((function(t){var r=tt(e)?e:+e-n.now();return n.schedule(Et,r,{index:0,period:o,subscriber:t})}))}function Et(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function xt(e,t){return new r.y((function(n){var r,o;try{r=e()}catch(e){return void n.error(e)}try{o=t(r)}catch(e){return void n.error(e)}var i=(o?De(o):C.E).subscribe(n);return function(){i.unsubscribe(),r&&r.unsubscribe()}}))}function St(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),L(e,void 0).lift(new _t(n))}var _t=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new kt(e,this.resultSelector))},e}(),kt=function(e){function t(t,n,r){void 0===r&&(r=Object.create(null));var o=e.call(this,t)||this;return o.resultSelector=n,o.iterators=[],o.active=0,o.resultSelector="function"==typeof n?n:void 0,o}return o.ZT(t,e),t.prototype._next=function(e){var t=this.iterators;(0,de.k)(e)?t.push(new Ct(e)):"function"==typeof e[_e]?t.push(new Ot(e[_e]())):t.push(new Pt(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var r=e[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,r=0;r<t;r++)if("function"==typeof(a=e[r]).hasValue&&!a.hasValue())return;var o=!1,i=[];for(r=0;r<t;r++){var a,s=(a=e[r]).next();if(a.hasCompleted()&&(o=!0),s.done)return void n.complete();i.push(s.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),o&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.L),Ot=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return Boolean(e&&e.done)},e}(),Ct=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[_e]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Pt=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.parent=n,o.observable=r,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return o.ZT(t,e),t.prototype[_e]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return $e(this.observable,new Re(this))},t}(Ae),Nt=n(4238)},215:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var r=n(4537),o=n(9457),i=n(5947),a=n(9961),s=n(579),l=n(5724),u=n(4238),c=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,s=function(e,t,n){if(e){if(e instanceof o.L)return e;if(e[i.b])return e[i.b]()}return e||t||n?new o.L(e,t,n):new o.L(a.c)}(e,t,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||u.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),(0,r._)(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[s.L]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:(0,l.U)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function f(e){if(e||(e=u.v.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},9961:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(4238),o=n(7774),i={closed:!0,next:function(e){},error:function(e){if(r.v.useDeprecatedSynchronousErrorHandling)throw e;(0,o.z)(e)},complete:function(){}}},9457:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var r=n(222),o=n(1744),i=n(9961),a=n(7552),s=n(5947),l=n(4238),u=n(7774),c=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.c;break;case 1:if(!n){a.destination=i.c;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,o)}return a}return r.ZT(t,e),t.prototype[s.b]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.w),f=function(e){function t(t,n,r,a){var s,l=e.call(this)||this;l._parentSubscriber=t;var u=l;return(0,o.m)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==i.c&&(u=Object.create(n),(0,o.m)(u.unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(l))),l._context=u,l._next=s,l._error=r,l._complete=a,l}return r.ZT(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;l.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=l.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,u.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,u.z)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};l.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),l.v.useDeprecatedSynchronousErrorHandling)throw e;(0,u.z)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!l.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return l.v.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):((0,u.z)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(c)},7552:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(1589),o=n(7086),i=n(1744),a=n(437),s=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,s=n._parentOrParents,u=n._ctorUnsubscribe,c=n._unsubscribe,f=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof e)s.remove(this);else if(null!==s)for(var d=0;d<s.length;++d)s[d].remove(this);if((0,i.m)(c)){u&&(this._unsubscribe=void 0);try{c.call(this)}catch(e){t=e instanceof a.B?l(e.errors):[e]}}if((0,r.k)(f)){d=-1;for(var p=f.length;++d<p;){var h=f[d];if((0,o.K)(h))try{h.unsubscribe()}catch(e){t=t||[],e instanceof a.B?t=t.concat(l(e.errors)):t.push(e)}}}if(t)throw new a.B(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function l(e){return e.reduce((function(e,t){return e.concat(t instanceof a.B?t.errors:t)}),[])}},4238:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},9348:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,c:()=>i});var r=n(215),o=new r.y((function(e){return e.complete()}));function i(e){return e?function(e){return new r.y((function(t){return e.schedule((function(){return t.complete()}))}))}(e):o}},821:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});var r=n(222),o=n(9457);function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.thisArg))},e}(),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.ZT(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.L)},6705:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(222),o=n(9457),i=n(233),a=n(9348);function s(e){return function(t){return 0===e?(0,a.c)():t.lift(new l(e))}}var l=function(){function e(e){if(this.total=e,this.total<0)throw new i.W}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.ZT(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(o.L)},579:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},5947:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},233:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},437:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var r=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},4537:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(9457);function o(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.L?o:null}return!0}},7774:(e,t,n)=>{"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,{z:()=>r})},3823:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{y:()=>r})},1589:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var r=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},1744:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e}n.d(t,{m:()=>r})},7086:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,{K:()=>r})},5724:(e,t,n)=>{"use strict";n.d(t,{U:()=>i,z:()=>o});var r=n(3823);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)}function i(e){return 0===e.length?r.y:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}},222:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>o});var r=function(e,t){return(r=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)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},3792:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(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,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(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,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,d=null,p=3,h=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="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)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function E(e){if(v=!1,w(e),!m)if(null!==r(u))m=!0,I(x);else{var t=r(c);null!==t&&M(E,t.startTime-e)}}function x(e,n){m=!1,v&&(v=!1,y(O),O=-1),h=!0;var i=p;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!N());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?d.callback=s:d===r(u)&&o(u),w(n)}else o(u);d=r(u)}if(null!==d)var l=!0;else{var f=r(c);null!==f&&M(E,f.startTime-n),l=!1}return l}finally{d=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,_=!1,k=null,O=-1,C=5,P=-1;function N(){return!(t.unstable_now()-P<C)}function T(){if(null!==k){var e=t.unstable_now();P=e;var n=!0;try{n=k(!0,e)}finally{n?S():(_=!1,k=null)}}else _=!1}if("function"==typeof b)S=function(){b(T)};else if("undefined"!=typeof MessageChannel){var j=new MessageChannel,L=j.port2;j.port1.onmessage=T,S=function(){L.postMessage(null)}}else S=function(){g(T,0)};function I(e){k=e,_||(_=!0,S())}function M(e,n){O=g((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(){m||h||(m=!0,I(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"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=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=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i: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:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(v?(y(O),O=-1):v=!0,M(E,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,I(x))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},965:(e,t,n)=>{"use strict";e.exports=n(3792)},9716:(e,t,n)=>{const r=Symbol("SemVer ANY");class o{static get ANY(){return r}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return s(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new c(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new c(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=s(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=s(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||i&&a||l||u}}e.exports=o;const{re:i,t:a}=n(1554),s=n(7243),l=n(585),u=n(6336),c=n(1691)},1691:(e,t,n)=>{class r{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const n=t?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(n,S(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],u),i("comparator trim",e,s[l.COMPARATORTRIM]),e=(e=(e=e.replace(s[l.TILDETRIM],c)).replace(s[l.CARETTRIM],f)).split(/\s+/).join(" ");const r=t?s[l.COMPARATORLOOSE]:s[l.COMPARATOR];return e.split(" ").map((e=>p(e,this.options))).join(" ").split(/\s+/).map((e=>x(e,this.options))).filter(this.options.loose?e=>!!e.match(r):()=>!0).map((e=>new o(e,this.options)))}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>d(n,t)&&e.set.some((e=>d(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(_(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const o=n(9716),i=n(585),a=n(6336),{re:s,t:l,comparatorTrimReplace:u,tildeTrimReplace:c,caretTrimReplace:f}=n(1554),d=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},p=(e,t)=>(i("comp",e,t),e=g(e,t),i("caret",e),e=m(e,t),i("tildes",e),e=b(e,t),i("xrange",e),e=E(e,t),i("stars",e),e),h=e=>!e||"x"===e.toLowerCase()||"*"===e,m=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),h(n)?s="":h(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:h(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(i("replaceTilde pr",a),s=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",s),s}))},g=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),h(n)?l="":h(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:h(a)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(i("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${s} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${s} <${+n+1}.0.0-0`):(i("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",l),l}))},b=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>w(e,t))).join(" ")),w=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const u=h(o),c=u||h(a),f=c||h(s),d=f;return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(c&&(a=0),s=0,">"===r?(r=">=",c?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",c?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+o}.${a}.${s}${l}`):c?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:f&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),i("xRange return",n),n}))},E=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),x=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),S=e=>(t,n,r,o,i,a,s,l,u,c,f,d,p)=>`${n=h(r)?"":h(o)?`>=${r}.0.0${e?"-0":""}`:h(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=h(u)?"":h(c)?`<${+u+1}.0.0-0`:h(f)?`<${u}.${+c+1}.0-0`:d?`<=${u}.${c}.${f}-${d}`:e?`<${u}.${c}.${+f+1}-0`:`<=${l}`}`.trim(),_=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},6336:(e,t,n)=>{const r=n(585),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=n(1998),{re:a,t:s}=n(1554),{compareIdentifiers:l}=n(9052);class u{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return l(n,o)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return l(n,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},4262:(e,t,n)=>{const r=n(8642);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},7243:(e,t,n)=>{const r=n(6348),o=n(2280),i=n(2463),a=n(5219),s=n(905),l=n(5909);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,u);case"!=":return o(e,n,u);case">":return i(e,n,u);case">=":return a(e,n,u);case"<":return s(e,n,u);case"<=":return l(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},5485:(e,t,n)=>{const r=n(6336),o=n(8642),{re:i,t:a}=n(1554);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=i[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),i[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[a.COERCERTL].lastIndex=-1}else n=e.match(i[a.COERCE]);return null===n?null:o(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},7775:(e,t,n)=>{const r=n(6336);e.exports=(e,t,n)=>{const o=new r(e,n),i=new r(t,n);return o.compare(i)||o.compareBuild(i)}},611:(e,t,n)=>{const r=n(8220);e.exports=(e,t)=>r(e,t,!0)},8220:(e,t,n)=>{const r=n(6336);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},2985:(e,t,n)=>{const r=n(8642),o=n(6348);e.exports=(e,t)=>{if(o(e,t))return null;{const n=r(e),o=r(t),i=n.prerelease.length||o.prerelease.length,a=i?"pre":"",s=i?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==o[e])return a+e;return s}}},6348:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>0===r(e,t,n)},2463:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(e,t,n)>0},5219:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(e,t,n)>=0},3312:(e,t,n)=>{const r=n(6336);e.exports=(e,t,n,o)=>{"string"==typeof n&&(o=n,n=void 0);try{return new r(e,n).inc(t,o).version}catch(e){return null}}},905:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(e,t,n)<0},5909:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(e,t,n)<=0},1113:(e,t,n)=>{const r=n(6336);e.exports=(e,t)=>new r(e,t).major},4404:(e,t,n)=>{const r=n(6336);e.exports=(e,t)=>new r(e,t).minor},2280:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>0!==r(e,t,n)},8642:(e,t,n)=>{const{MAX_LENGTH:r}=n(1998),{re:o,t:i}=n(1554),a=n(6336);e.exports=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new a(e,t)}catch(e){return null}}},7352:(e,t,n)=>{const r=n(6336);e.exports=(e,t)=>new r(e,t).patch},8942:(e,t,n)=>{const r=n(8642);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},1333:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(t,e,n)},291:(e,t,n)=>{const r=n(7775);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},3874:(e,t,n)=>{const r=n(1691);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},5040:(e,t,n)=>{const r=n(7775);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},4589:(e,t,n)=>{const r=n(8642);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},3608:(e,t,n)=>{const r=n(1554);e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n(1998).SEMVER_SPEC_VERSION,SemVer:n(6336),compareIdentifiers:n(9052).compareIdentifiers,rcompareIdentifiers:n(9052).rcompareIdentifiers,parse:n(8642),valid:n(4589),clean:n(4262),inc:n(3312),diff:n(2985),major:n(1113),minor:n(4404),patch:n(7352),prerelease:n(8942),compare:n(8220),rcompare:n(1333),compareLoose:n(611),compareBuild:n(7775),sort:n(5040),rsort:n(291),gt:n(2463),lt:n(905),eq:n(6348),neq:n(2280),gte:n(5219),lte:n(5909),cmp:n(7243),coerce:n(5485),Comparator:n(9716),Range:n(1691),satisfies:n(3874),toComparators:n(6166),maxSatisfying:n(515),minSatisfying:n(3548),minVersion:n(7103),validRange:n(1122),outside:n(5246),gtr:n(7479),ltr:n(8037),intersects:n(8153),simplifyRange:n(4026),subset:n(2613)}},1998:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},585:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},9052:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),o=t.test(n);return r&&o&&(e=+e,n=+n),e===n?0:r&&!o?-1:o&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},1554:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r}=n(1998),o=n(585),i=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let l=0;const u=(e,t,n)=>{const r=l++;o(r,t),s[e]=r,a[r]=t,i[r]=new RegExp(t,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),u("FULL",`^${a[s.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),u("LOOSE",`^${a[s.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),u("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",a[s.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},7479:(e,t,n)=>{const r=n(5246);e.exports=(e,t,n)=>r(e,t,">",n)},8153:(e,t,n)=>{const r=n(1691);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))},8037:(e,t,n)=>{const r=n(5246);e.exports=(e,t,n)=>r(e,t,"<",n)},515:(e,t,n)=>{const r=n(6336),o=n(1691);e.exports=(e,t,n)=>{let i=null,a=null,s=null;try{s=new o(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(i&&-1!==a.compare(e)||(i=e,a=new r(i,n)))})),i}},3548:(e,t,n)=>{const r=n(6336),o=n(1691);e.exports=(e,t,n)=>{let i=null,a=null,s=null;try{s=new o(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(i&&1!==a.compare(e)||(i=e,a=new r(i,n)))})),i}},7103:(e,t,n)=>{const r=n(6336),o=n(1691),i=n(2463);e.exports=(e,t)=>{e=new o(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t)e.set[t].forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!i(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));return n&&e.test(n)?n:null}},5246:(e,t,n)=>{const r=n(6336),o=n(9716),{ANY:i}=o,a=n(1691),s=n(3874),l=n(2463),u=n(905),c=n(5909),f=n(5219);e.exports=(e,t,n,d)=>{let p,h,m,v,g;switch(e=new r(e,d),t=new a(t,d),n){case">":p=l,h=c,m=u,v=">",g=">=";break;case"<":p=u,h=f,m=l,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let a=null,s=null;if(r.forEach((e=>{e.semver===i&&(e=new o(">=0.0.0")),a=a||e,s=s||e,p(e.semver,a.semver,d)?a=e:m(e.semver,s.semver,d)&&(s=e)})),a.operator===v||a.operator===g)return!1;if((!s.operator||s.operator===v)&&h(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}},4026:(e,t,n)=>{const r=n(3874),o=n(8220);e.exports=(e,t,n)=>{const i=[];let a=null,s=null;const l=e.sort(((e,t)=>o(e,t,n)));for(const e of l)r(e,t,n)?(s=e,a||(a=e)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const c=u.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return c.length<f.length?c:t}},2613:(e,t,n)=>{const r=n(1691),{ANY:o}=n(9716),i=n(3874),a=n(8220),s=(e,t,n)=>{if(1===e.length&&e[0].semver===o)return 1===t.length&&t[0].semver===o;const r=new Set;let s,c,f,d,p,h,m;for(const t of e)">"===t.operator||">="===t.operator?s=l(s,t,n):"<"===t.operator||"<="===t.operator?c=u(c,t,n):r.add(t.semver);if(r.size>1)return null;if(s&&c){if(f=a(s.semver,c.semver,n),f>0)return null;if(0===f&&(">="!==s.operator||"<="!==c.operator))return null}for(const e of r){if(s&&!i(e,String(s),n))return null;if(c&&!i(e,String(c),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}for(const e of t){if(m=m||">"===e.operator||">="===e.operator,h=h||"<"===e.operator||"<="===e.operator,s)if(">"===e.operator||">="===e.operator){if(d=l(s,e,n),d===e)return!1}else if(">="===s.operator&&!i(s.semver,String(e),n))return!1;if(c)if("<"===e.operator||"<="===e.operator){if(p=u(c,e,n),p===e)return!1}else if("<="===c.operator&&!i(c.semver,String(e),n))return!1;if(!e.operator&&(c||s)&&0!==f)return!1}return!(s&&h&&!c&&0!==f||c&&m&&!s&&0!==f)},l=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n)=>{e=new r(e,n),t=new r(t,n);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=s(r,e,n);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},6166:(e,t,n)=>{const r=n(1691);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},1122:(e,t,n)=>{const r=n(1691);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},6929:(e,t,n)=>{"use strict";n.d(t,{BL:()=>Fe,BP:()=>z,Gt:()=>Se,UO:()=>oe,d6:()=>ke,m9:()=>Ce});var r=Object.freeze({__proto__:null,get start(){return Fe},get ensureJQuerySupport(){return pe},get setBootstrapMaxTime(){return W},get setMountMaxTime(){return q},get setUnmountMaxTime(){return Y},get setUnloadMaxTime(){return G},get registerApplication(){return ke},get unregisterApplication(){return Ce},get getMountedApps(){return xe},get getAppStatus(){return _e},get unloadApplication(){return Pe},get checkActivityFunctions(){return Oe},get getAppNames(){return Se},get pathToActiveWhen(){return je},get navigateToUrl(){return oe},get triggerAppChange(){return De},get addErrorHandler(){return c},get removeErrorHandler(){return f},get mountRootParcel(){return z},get NOT_LOADED(){return h},get LOADING_SOURCE_CODE(){return m},get NOT_BOOTSTRAPPED(){return v},get BOOTSTRAPPING(){return g},get NOT_MOUNTED(){return y},get MOUNTING(){return b},get UPDATING(){return E},get LOAD_ERROR(){return S},get MOUNTED(){return w},get UNMOUNTING(){return x},get SKIP_BECAUSE_BROKEN(){return _}});function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).CustomEvent,s=function(){try{var e=new a("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?a:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},l=[];function u(e,t,n){var r=p(e,t,n);l.length?l.forEach((function(e){return e(r)})):setTimeout((function(){throw r}))}function c(e){if("function"!=typeof e)throw Error(d(28,!1));l.push(e)}function f(e){if("function"!=typeof e)throw Error(d(29,!1));var t=!1;return l=l.filter((function(n){var r=n===e;return t=t||r,!r})),t}function d(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(e,": ").concat(t?t+" ":"","See https://single-spa.js.org/error/?code=").concat(e).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function p(e,t,n){var r,o="".concat(N(t)," '").concat(C(t),"' died in status ").concat(t.status,": ");if(e instanceof Error){try{e.message=o+e.message}catch(e){}r=e}else{console.warn(d(30,!1,t.status,C(t)));try{r=Error(o+JSON.stringify(e))}catch(t){r=e}}return r.appOrParcelName=C(t),t.status=n,r}var h="NOT_LOADED",m="LOADING_SOURCE_CODE",v="NOT_BOOTSTRAPPED",g="BOOTSTRAPPING",y="NOT_MOUNTED",b="MOUNTING",w="MOUNTED",E="UPDATING",x="UNMOUNTING",S="LOAD_ERROR",_="SKIP_BECAUSE_BROKEN";function k(e){return e.status===w}function O(e){try{return e.activeWhen(window.location)}catch(t){return u(t,e,_),!1}}function C(e){return e.name}function P(e){return Boolean(e.unmountThisParcel)}function N(e){return P(e)?"parcel":"application"}function T(){for(var e=arguments.length-1;e>0;e--)for(var t in arguments[e])"__proto__"!==t&&(arguments[e-1][t]=arguments[e][t]);return arguments[0]}function j(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}function L(e){return e&&("function"==typeof e||(t=e,Array.isArray(t)&&!j(t,(function(e){return"function"!=typeof e}))));var t}function I(e,t){var n=e[t]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=N(e),o=C(e);return function(e){return n.reduce((function(n,i,a){return n.then((function(){var n=i(e);return M(n)?n:Promise.reject(d(15,!1,r,o,t,a))}))}),Promise.resolve())}}function M(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e,t){return Promise.resolve().then((function(){return e.status!==v?e:(e.status=g,e.bootstrap?Q(e,"bootstrap").then(n).catch((function(n){if(t)throw p(n,e,_);return u(n,e,_),e})):Promise.resolve().then(n))}));function n(){return e.status=y,e}}function R(e,t){return Promise.resolve().then((function(){if(e.status!==w)return e;e.status=x;var n=Object.keys(e.parcels).map((function(t){return e.parcels[t].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(t)throw p(r,e,_);u(r,e,_)}))})).then((function(){return e}));function r(){return Q(e,"unmount").then((function(){e.status=y})).catch((function(n){if(t)throw p(n,e,_);u(n,e,_)}))}}))}var A=!1,$=!1;function F(e,t){return Promise.resolve().then((function(){return e.status!==y?e:(A||(window.dispatchEvent(new s("single-spa:before-first-mount")),A=!0),Q(e,"mount").then((function(){return e.status=w,$||(window.dispatchEvent(new s("single-spa:first-mount")),$=!0),e})).catch((function(n){return e.status=w,R(e,!0).then(r,r);function r(){if(t)throw p(n,e,_);return u(n,e,_),e}})))}))}var U=0,B={parcels:{}};function z(){return Z.apply(B,arguments)}function Z(e,t){var n=this;if(!e||"object"!==o(e)&&"function"!=typeof e)throw Error(d(2,!1));if(e.name&&"string"!=typeof e.name)throw Error(d(3,!1,o(e.name)));if("object"!==o(t))throw Error(d(4,!1,name,o(t)));if(!t.domElement)throw Error(d(5,!1,name));var r,i=U++,a="function"==typeof e,s=a?e:function(){return Promise.resolve(e)},l={id:i,parcels:{},status:a?m:v,customProps:t,parentName:C(n),unmountThisParcel:function(){return g.then((function(){if(l.status!==w)throw Error(d(6,!1,name,l.status));return R(l,!0)})).then((function(e){return l.parentName&&delete n.parcels[l.id],e})).then((function(e){return c(e),e})).catch((function(e){throw l.status=_,f(e),e}))}};n.parcels[i]=l;var u=s();if(!u||"function"!=typeof u.then)throw Error(d(7,!1));var c,f,h=(u=u.then((function(e){if(!e)throw Error(d(8,!1));var t=e.name||"parcel-".concat(i);if(Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!L(e.bootstrap))throw Error(d(9,!1,t));if(!L(e.mount))throw Error(d(10,!1,t));if(!L(e.unmount))throw Error(d(11,!1,t));if(e.update&&!L(e.update))throw Error(d(12,!1,t));var n=I(e,"bootstrap"),o=I(e,"mount"),a=I(e,"unmount");l.status=v,l.name=t,l.bootstrap=n,l.mount=o,l.unmount=a,l.timeouts=J(e.timeouts),e.update&&(l.update=I(e,"update"),r.update=function(e){return l.customProps=e,H((t=l,Promise.resolve().then((function(){if(t.status!==w)throw Error(d(32,!1,C(t)));return t.status=E,Q(t,"update").then((function(){return t.status=w,t})).catch((function(e){throw p(e,t,_)}))}))));var t})}))).then((function(){return D(l,!0)})),g=h.then((function(){return F(l,!0)})),b=new Promise((function(e,t){c=e,f=t}));return r={mount:function(){return H(Promise.resolve().then((function(){if(l.status!==y)throw Error(d(13,!1,name,l.status));return n.parcels[i]=l,F(l)})))},unmount:function(){return H(l.unmountThisParcel())},getStatus:function(){return l.status},loadPromise:H(u),bootstrapPromise:H(h),mountPromise:H(g),unmountPromise:H(b)}}function H(e){return e.then((function(){return null}))}function V(e){var t=C(e),n="function"==typeof e.customProps?e.customProps(t,window.location):e.customProps;("object"!==o(n)||null===n||Array.isArray(n))&&(n={},console.warn(d(40,!1),t,n));var i=T({},n,{name:t,mountParcel:Z.bind(e),singleSpa:r});return P(e)&&(i.unmountSelf=e.unmountThisParcel),i}var K={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function W(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(16,!1));K.bootstrap={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function q(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(17,!1));K.mount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Y(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(18,!1));K.unmount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function G(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(19,!1));K.unload={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Q(e,t){var n=e.timeouts[t],r=n.warningMillis,o=N(e);return new Promise((function(i,a){var s=!1,l=!1;e[t](V(e)).then((function(e){s=!0,i(e)})).catch((function(e){s=!0,a(e)})),setTimeout((function(){return c(1)}),r),setTimeout((function(){return c(!0)}),n.millis);var u=d(31,!1,t,o,C(e),n.millis);function c(e){if(!s)if(!0===e)l=!0,n.dieOnTimeout?a(Error(u)):console.error(u);else if(!l){var t=e,o=t*r;console.warn(u),o+r<n.millis&&setTimeout((function(){return c(t+1)}),r)}}}))}function J(e){var t={};for(var n in K)t[n]=T({},K[n],e&&e[n]||{});return t}function X(e){return Promise.resolve().then((function(){return e.loadPromise?e.loadPromise:e.status!==h&&e.status!==S?e:(e.status=m,e.loadPromise=Promise.resolve().then((function(){var r=e.loadApp(V(e));if(!M(r))throw n=!0,Error(d(33,!1,C(e)));return r.then((function(n){var r;e.loadErrorTime=null,"object"!==o(t=n)&&(r=34),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!L(t.bootstrap)&&(r=35),L(t.mount)||(r=36),L(t.unmount)||(r=37);var i=N(t);if(r){var a;try{a=JSON.stringify(t)}catch(e){}return console.error(d(r,!1,i,C(e),a),t),u(void 0,e,_),e}return t.devtools&&t.devtools.overlays&&(e.devtools.overlays=T({},e.devtools.overlays,t.devtools.overlays)),e.status=v,e.bootstrap=I(t,"bootstrap"),e.mount=I(t,"mount"),e.unmount=I(t,"unmount"),e.unload=I(t,"unload"),e.timeouts=J(t.timeouts),delete e.loadPromise,e}))})).catch((function(t){var r;return delete e.loadPromise,n?r=_:(r=S,e.loadErrorTime=(new Date).getTime()),u(t,e,r),e})));var t,n}))}var ee,te="undefined"!=typeof window,ne={hashchange:[],popstate:[]},re=["hashchange","popstate"];function oe(e){var t;if("string"==typeof e)t=e;else if(this&&this.href)t=this.href;else{if(!(e&&e.currentTarget&&e.currentTarget.href&&e.preventDefault))throw Error(d(14,!1));t=e.currentTarget.href,e.preventDefault()}var n=fe(window.location.href),r=fe(t);0===t.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=t:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,t)}function ie(e){var t=this;if(e){var n=e[0].type;re.indexOf(n)>=0&&ne[n].forEach((function(n){try{n.apply(t,e)}catch(e){setTimeout((function(){throw e}))}}))}}function ae(){Re([],arguments)}function se(e,t){return function(){var n=window.location.href,r=e.apply(this,arguments),o=window.location.href;return ee&&n===o||(Ue()?window.dispatchEvent(le(window.history.state,t)):Re([])),r}}function le(e,t){var n;try{n=new PopStateEvent("popstate",{state:e})}catch(t){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,e)}return n.singleSpa=!0,n.singleSpaTrigger=t,n}if(te){window.addEventListener("hashchange",ae),window.addEventListener("popstate",ae);var ue=window.addEventListener,ce=window.removeEventListener;window.addEventListener=function(e,t){if(!("function"==typeof t&&re.indexOf(e)>=0)||j(ne[e],(function(e){return e===t})))return ue.apply(this,arguments);ne[e].push(t)},window.removeEventListener=function(e,t){if(!("function"==typeof t&&re.indexOf(e)>=0))return ce.apply(this,arguments);ne[e]=ne[e].filter((function(e){return e!==t}))},window.history.pushState=se(window.history.pushState,"pushState"),window.history.replaceState=se(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(d(41,!1)):window.singleSpaNavigate=oe}function fe(e){var t=document.createElement("a");return t.href=e,t}var de=!1;function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(e||window.$&&window.$.fn&&window.$.fn.jquery&&(e=window.$),e&&!de){var t=e.fn.on,n=e.fn.off;e.fn.on=function(e,n){return he.call(this,t,window.addEventListener,e,n,arguments)},e.fn.off=function(e,t){return he.call(this,n,window.removeEventListener,e,t,arguments)},de=!0}}function he(e,t,n,r,o){return"string"!=typeof n?e.apply(this,o):(n.split(/\s+/).forEach((function(e){re.indexOf(e)>=0&&(t(e,r),n=n.replace(e,""))})),""===n.trim()?this:e.apply(this,o))}var me={};function ve(e){return Promise.resolve().then((function(){var t=me[C(e)];if(!t)return e;if(e.status===h)return ge(e,t),e;if("UNLOADING"===e.status)return t.promise.then((function(){return e}));if(e.status!==y&&e.status!==S)return e;var n=e.status===S?Promise.resolve():Q(e,"unload");return e.status="UNLOADING",n.then((function(){return ge(e,t),e})).catch((function(n){return o=t,i=n,delete me[C(r=e)],delete r.bootstrap,delete r.mount,delete r.unmount,delete r.unload,u(i,r,_),o.reject(i),e;var r,o,i}))}))}function ge(e,t){delete me[C(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,e.status=h,t.resolve()}function ye(e,t,n,r){me[C(e)]={app:e,resolve:n,reject:r},Object.defineProperty(me[C(e)],"promise",{get:t})}function be(e){return me[e]}var we=[];function Ee(){var e=[],t=[],n=[],r=[],o=(new Date).getTime();return we.forEach((function(i){var a=i.status!==_&&O(i);switch(i.status){case S:a&&o-i.loadErrorTime>=200&&n.push(i);break;case h:case m:a&&n.push(i);break;case v:case y:!a&&be(C(i))?e.push(i):a&&r.push(i);break;case w:a||t.push(i)}})),{appsToUnload:e,appsToUnmount:t,appsToLoad:n,appsToMount:r}}function xe(){return we.filter(k).map(C)}function Se(){return we.map(C)}function _e(e){var t=j(we,(function(t){return C(t)===e}));return t?t.status:null}function ke(e,t,n,r){var i,a,s,l,u,c,f,p,m=(l=t,u=n,c=r,p={name:null,loadApp:null,activeWhen:null,customProps:null},"object"===o(s=e)?(function(e){if(Array.isArray(e)||null===e)throw Error(d(39,!1));var t=["name","app","activeWhen","customProps"],n=Object.keys(e).reduce((function(e,n){return t.indexOf(n)>=0?e:e.concat(n)}),[]);if(0!==n.length)throw Error(d(38,!1,t.join(", "),n.join(", ")));if("string"!=typeof e.name||0===e.name.length)throw Error(d(20,!1));if("object"!==o(e.app)&&"function"!=typeof e.app)throw Error(d(20,!1));var r=function(e){return"string"==typeof e||"function"==typeof e};if(!(r(e.activeWhen)||Array.isArray(e.activeWhen)&&e.activeWhen.every(r)))throw Error(d(24,!1));if(!Te(e.customProps))throw Error(d(22,!1))}(s),p.name=s.name,p.loadApp=s.app,p.activeWhen=s.activeWhen,p.customProps=s.customProps):(function(e,t,n,r){if("string"!=typeof e||0===e.length)throw Error(d(20,!1));if(!t)throw Error(d(23,!1));if("function"!=typeof n)throw Error(d(24,!1));if(!Te(r))throw Error(d(22,!1))}(s,l,u,c),p.name=s,p.loadApp=l,p.activeWhen=u,p.customProps=c),p.loadApp="function"!=typeof(f=p.loadApp)?function(){return Promise.resolve(f)}:f,p.customProps=p.customProps||{},p.activeWhen=(i=p.activeWhen,a=(a=Array.isArray(i)?i:[i]).map((function(e){return"function"==typeof e?e:je(e)})),function(e){return a.some((function(t){return t(e)}))}),p);if(-1!==Se().indexOf(m.name))throw Error(d(21,!1,m.name));we.push(T({loadErrorTime:null,status:h,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},m)),te&&(pe(),Re())}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return we.filter((function(t){return t.activeWhen(e)})).map(C)}function Ce(e){if(0===we.filter((function(t){return C(t)===e})).length)throw Error(d(25,!1,e));return Pe(e).then((function(){var t=we.map(C).indexOf(e);we.splice(t,1)}))}function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof e)throw Error(d(26,!1));var n=j(we,(function(t){return C(t)===e}));if(!n)throw Error(d(27,!1,e));var r,o=be(C(n));if(t&&t.waitForUnmount){if(o)return o.promise;var i=new Promise((function(e,t){ye(n,(function(){return i}),e,t)}));return i}return o?(r=o.promise,Ne(n,o.resolve,o.reject)):r=new Promise((function(e,t){ye(n,(function(){return r}),e,t),Ne(n,e,t)})),r}function Ne(e,t,n){R(e).then(ve).then((function(){t(),setTimeout((function(){Re()}))})).catch(n)}function Te(e){return!e||"function"==typeof e||"object"===o(e)&&null!==e&&!Array.isArray(e)}function je(e,t){var n=function(e,t){var n=0,r=!1,o="^";"/"!==e[0]&&(e="/"+e);for(var i=0;i<e.length;i++){var a=e[i];(!r&&":"===a||r&&"/"===a)&&s(i)}return s(e.length),new RegExp(o,"i");function s(i){var a=e.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===e.length)if(r)t&&(o+="$");else{var s=t?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(s,"$"):"".concat(o,"(/").concat(s,")?(#.*)?$")}r=!r,n=i}}(e,t);return function(e){var t=e.origin;t||(t="".concat(e.protocol,"//").concat(e.host));var r=e.href.replace(t,"").replace(e.search,"").split("?")[0];return n.test(r)}}var Le=!1,Ie=[],Me=te&&window.location.href;function De(){return Re()}function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(Le)return new Promise((function(e,n){Ie.push({resolve:e,reject:n,eventArguments:t})}));var n,r=Ee(),o=r.appsToUnload,a=r.appsToUnmount,l=r.appsToLoad,u=r.appsToMount,c=!1,f=Me,d=Me=window.location.href;return Ue()?(Le=!0,n=o.concat(l,a,u),v()):(n=l,m());function p(){c=!0}function m(){return Promise.resolve().then((function(){var e=l.map(X);return Promise.all(e).then(b).then((function(){return[]})).catch((function(e){throw b(),e}))}))}function v(){return Promise.resolve().then((function(){if(window.dispatchEvent(new s(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",E(!0))),window.dispatchEvent(new s("single-spa:before-routing-event",E(!0,{cancelNavigation:p}))),c)return window.dispatchEvent(new s("single-spa:before-mount-routing-event",E(!0))),g(),void oe(f);var t=o.map(ve),r=a.map(R).map((function(e){return e.then(ve)})).concat(t),i=Promise.all(r);i.then((function(){window.dispatchEvent(new s("single-spa:before-mount-routing-event",E(!0)))}));var d=l.map((function(e){return X(e).then((function(e){return Ae(e,i)}))})),h=u.filter((function(e){return l.indexOf(e)<0})).map((function(e){return Ae(e,i)}));return i.catch((function(e){throw b(),e})).then((function(){return b(),Promise.all(d.concat(h)).catch((function(t){throw e.forEach((function(e){return e.reject(t)})),t})).then(g)}))}))}function g(){var t=xe();e.forEach((function(e){return e.resolve(t)}));try{var r=0===n.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new s(r,E())),window.dispatchEvent(new s("single-spa:routing-event",E()))}catch(e){setTimeout((function(){throw e}))}if(Le=!1,Ie.length>0){var o=Ie;Ie=[],Re(o)}return t}function b(){e.forEach((function(e){ie(e.eventArguments)})),ie(t)}function E(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1?arguments[1]:void 0,p={},m=(i(e={},w,[]),i(e,y,[]),i(e,h,[]),i(e,_,[]),e);r?(l.concat(u).forEach((function(e,t){g(e,w)})),o.forEach((function(e){g(e,h)})),a.forEach((function(e){g(e,y)}))):n.forEach((function(e){g(e)}));var v={detail:{newAppStatuses:p,appsByNewStatus:m,totalAppChanges:n.length,originalEvent:null==t?void 0:t[0],oldUrl:f,newUrl:d,navigationIsCanceled:c}};return s&&T(v.detail,s),v;function g(e,t){var n=C(e);t=t||_e(n),p[n]=t,(m[t]=m[t]||[]).push(n)}}}function Ae(e,t){return O(e)?D(e).then((function(e){return t.then((function(){return O(e)?F(e):e}))})):t.then((function(){return e}))}var $e=!1;function Fe(e){var t;$e=!0,e&&e.urlRerouteOnly&&(t=e.urlRerouteOnly,ee=t),te&&Re()}function Ue(){return $e}te&&setTimeout((function(){$e||console.warn(d(1,!1))}),5e3);var Be={getRawAppData:function(){return[].concat(we)},reroute:Re,NOT_LOADED:h,toLoadPromise:X,toBootstrapPromise:D,unregisterApplication:Ce};te&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Be)},7655:(e,t,n)=>{!function(){function e(e,t){return(t||"")+" (SystemJS Error#"+e+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+e+")"}!function(t){function n(){throw Error(e(5,"AMD require not supported."))}var r=["require","exports","module"];t.define=function(t,o,i){var a,s,l="string"==typeof t,u=l?t:null,c=l?o:t,f=l?i:o;if(Array.isArray(c))a=c,s=f;else if("object"==typeof c)a=[],s=function(){return c};else{if("function"!=typeof c)throw Error(e(9,"Invalid call to AMD define()"));a=r,s=c}var d=function(e,t){for(var r={},o={exports:r},i=[],a=[],s=0,l=0;l<e.length;l++){var u=e[l],c=a.length;"require"===u?(i[l]=n,s++):"module"===u?(i[l]=o,s++):"exports"===u?(i[l]=r,s++):d(l),s&&(e[c]=u)}s&&(e.length-=s);var f=t;return[e,function(e){return e({default:r,__useDefault:!0}),{setters:a,execute:function(){var t=f.apply(r,i);void 0!==t&&(o.exports=t),e(o.exports),e("default",o.exports)}}}];function d(e){a.push((function(t){i[e]=t.__useDefault?t.default:t}))}}(a,s);l?(System.registerRegistry?(System.registerRegistry[u]=d,System.register(u,d[0],d[1])):console.warn(e("W6","Include named-register.js for full named define support")),System.register(d[0],d[1])):System.register(d[0],d[1])},t.define.amd={}}("undefined"!=typeof self?self:n.g)}()},5145:(e,t,n)=>{!function(e){var t,n=e.System.constructor.prototype,r=n.register;n.register=function(e,n,o){t="string"==typeof e?o:n,r.apply(this,arguments)};var o=n.getRegister;n.getRegister=function(){var e=o.call(this);if(!e||e[1]===t||0===e[1].length)return e;var n=e[1];return e[1]=function(e,t){var r,o=!1,i=n.call(this,(function(t,n){"object"==typeof t&&t&&t.__useDefault?(r=t.default,o=!0):"default"===t?r=n:"__useDefault"===t&&(o=!0),e(t,n)}),t),a=i.execute;return a&&(i.execute=function(){if(a.call(this),o)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&"default"!==t&&e(t,r[t])}),i},e}}("undefined"!=typeof self?self:n.g)},1769:(e,t,n)=>{!function(e){var t=e.System;s(t);var n,r,o=t.constructor.prototype,i=t.constructor,a=function(){i.call(this),s(this)};function s(e){e.registerRegistry=Object.create(null),e.namedRegisterAliases=Object.create(null)}a.prototype=o,t.constructor=a;var l=o.register;o.register=function(e,t,o){if("string"!=typeof e)return l.apply(this,arguments);var i=[t,o];return this.registerRegistry[e]=i,n||(n=i,r=e),Promise.resolve().then((function(){n=null,r=null})),l.apply(this,[t,o])};var u=o.resolve;o.resolve=function(e,t){try{return u.call(this,e,t)}catch(t){if(e in this.registerRegistry)return this.namedRegisterAliases[e]||e;throw t}};var c=o.instantiate;o.instantiate=function(e,t){var n=this.registerRegistry[e];return n?(this.registerRegistry[e]=null,n):c.call(this,e,t)};var f=o.getRegister;o.getRegister=function(e){var t=f.call(this,e);r&&e&&(this.namedRegisterAliases[r]=e);var o=n||t;return n=null,r=null,o}}("undefined"!=typeof self?self:n.g)},9596:(e,t,n)=>{var r,o;r=("undefined"!=typeof self?self:n.g).System.constructor.prototype,o=r.import,r.import=function(){return o.apply(this,arguments).then((function(e){return e.__useDefault?e.default:e}))}},3592:(e,t,n)=>{!function(){function e(e,t){return(t||"")+" (SystemJS Error#"+e+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+e+")"}var t,r="undefined"!=typeof Symbol,o="undefined"!=typeof self,i="undefined"!=typeof document,a=o?self:n.g;if(i){var s=document.querySelector("base[href]");s&&(t=s.href)}if(!t&&"undefined"!=typeof location){var l=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==l&&(t=t.slice(0,l+1))}var u=/\\/g;function c(e,t){if(-1!==e.indexOf("\\")&&(e=e.replace(u,"/")),"/"===e[0]&&"/"===e[1])return t.slice(0,t.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var n,r=t.slice(0,t.indexOf(":")+1);if(n="/"===t[r.length+1]?"file:"!==r?(n=t.slice(r.length+2)).slice(n.indexOf("/")+1):t.slice(8):t.slice(r.length+("/"===t[r.length])),"/"===e[0])return t.slice(0,t.length-n.length-1)+e;for(var o=n.slice(0,n.lastIndexOf("/")+1)+e,i=[],a=-1,s=0;s<o.length;s++)-1!==a?"/"===o[s]&&(i.push(o.slice(a,s+1)),a=-1):"."===o[s]?"."!==o[s+1]||"/"!==o[s+2]&&s+2!==o.length?"/"===o[s+1]||s+1===o.length?s+=1:a=s:(i.pop(),s+=2):a=s;return-1!==a&&i.push(o.slice(a)),t.slice(0,t.length-n.length)+i.join("")}}function f(e,t){return c(e,t)||(-1!==e.indexOf(":")?e:c("./"+e,t))}function d(e,t,n,r,o){for(var i in e){var a=c(i,n)||i,s=e[i];if("string"==typeof s){var l=g(r,c(s,n)||s,o);l?t[a]=l:v("W1",i,s,"bare specifier did not resolve")}}}function p(e,t,n){var r;for(r in e.imports&&d(e.imports,n.imports,t,n,null),e.scopes||{}){var o=f(r,t);d(e.scopes[r],n.scopes[o]||(n.scopes[o]={}),t,n,o)}for(r in e.depcache||{})n.depcache[f(r,t)]=e.depcache[r];for(r in e.integrity||{})n.integrity[f(r,t)]=e.integrity[r]}function h(e,t){if(t[e])return e;var n=e.length;do{var r=e.slice(0,n+1);if(r in t)return r}while(-1!==(n=e.lastIndexOf("/",n-1)))}function m(e,t){var n=h(e,t);if(n){var r=t[n];if(null===r)return;if(!(e.length>n.length&&"/"!==r[r.length-1]))return r+e.slice(n.length);v("W2",n,r,"should have a trailing '/'")}}function v(t,n,r,o){console.warn(e(t,"Package target "+o+", resolving target '"+r+"' for "+n))}function g(e,t,n){for(var r=e.scopes,o=n&&h(n,r);o;){var i=m(t,r[o]);if(i)return i;o=h(o.slice(0,o.lastIndexOf("/")),r)}return m(t,e.imports)||-1!==t.indexOf(":")&&t}var y=r&&Symbol.toStringTag,b=r?Symbol():"@";function w(){this[b]={}}var E,x=w.prototype;function S(e){return e.id}function _(e,t,n,r){if(e.onload(n,t.id,t.d&&t.d.map(S),!!r),n)throw n}function k(t,n,r){var o=t[b][n];if(o)return o;var i=[],a=Object.create(null);y&&Object.defineProperty(a,y,{value:"Module"});var s=Promise.resolve().then((function(){return t.instantiate(n,r)})).then((function(r){if(!r)throw Error(e(2,"Module "+n+" did not instantiate"));var s=r[1]((function(e,t){o.h=!0;var n=!1;if("string"==typeof e)e in a&&a[e]===t||(a[e]=t,n=!0);else{for(var r in e)t=e[r],r in a&&a[r]===t||(a[r]=t,n=!0);e&&e.__esModule&&(a.__esModule=e.__esModule)}if(n)for(var s=0;s<i.length;s++){var l=i[s];l&&l(a)}return t}),2===r[1].length?{import:function(e){return t.import(e,n)},meta:t.createContext(n)}:void 0);return o.e=s.execute||function(){},[r[0],s.setters||[]]}),(function(e){throw o.e=null,o.er=e,_(t,o,e,!0),e})),l=s.then((function(e){return Promise.all(e[0].map((function(r,o){var i=e[1][o];return Promise.resolve(t.resolve(r,n)).then((function(e){var r=k(t,e,n);return Promise.resolve(r.I).then((function(){return i&&(r.i.push(i),!r.h&&r.I||i(r.n)),r}))}))}))).then((function(e){o.d=e}))}));return o=t[b][n]={id:n,i,n:a,I:s,L:l,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0,p:void 0}}function O(e,t,n,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then((function(){return t.p&&null!==t.p.e||(t.p=n),Promise.all(t.d.map((function(t){return O(e,t,n,r)})))})).catch((function(n){if(t.er)throw n;throw t.e=null,_(e,t,n,!1),n}))}x.import=function(e,t){var n=this;return Promise.resolve(n.prepareImport()).then((function(){return n.resolve(e,t)})).then((function(e){var t=k(n,e);return t.C||function(e,t){return t.C=O(e,t,t,{}).then((function(){return P(e,t,{})})).then((function(){return t.n}))}(n,t)}))},x.createContext=function(e){var t=this;return{url:e,resolve:function(n,r){return Promise.resolve(t.resolve(n,r||e))}}},x.onload=function(){},x.register=function(e,t){E=[e,t]},x.getRegister=function(){var e=E;return E=void 0,e};var C=Object.freeze(Object.create(null));function P(e,t,n){if(!n[t.id]){if(n[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}var r,o=t.e;return t.e=null,t.d.forEach((function(o){try{var i=P(e,o,n);i&&(r=r||[]).push(i)}catch(n){throw t.er=n,_(e,t,n,!1),n}})),r?Promise.all(r).then(i):i()}function i(){try{var n=o.call(C);if(n)return n=n.then((function(){t.C=t.n,t.E=null,_(e,t,null,!0)}),(function(n){throw t.er=n,t.E=null,_(e,t,n,!0),n})),t.E=n;t.C=t.n,t.L=t.I=void 0}catch(e){throw t.er=e,e}finally{_(e,t,t.er,!0)}}}a.System=new w;var N,T,j=Promise.resolve(),L={imports:{},scopes:{},depcache:{},integrity:{}},I=i;function M(){[].forEach.call(document.querySelectorAll("script"),(function(n){if(!n.sp)if("systemjs-module"===n.type){if(n.sp=!0,!n.src)return;System.import("import:"===n.src.slice(0,7)?n.src.slice(7):f(n.src,t)).catch((function(e){if(e.message.indexOf("https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3")>-1){var t=document.createEvent("Event");t.initEvent("error",!1,!1),n.dispatchEvent(t)}return Promise.reject(e)}))}else if("systemjs-importmap"===n.type){n.sp=!0;var r=n.src?(System.fetch||fetch)(n.src,{integrity:n.integrity,passThrough:!0}).then((function(e){if(!e.ok)throw Error("Invalid status code: "+e.status);return e.text()})).catch((function(t){return t.message=e("W4","Error fetching systemjs-import map "+n.src)+"\n"+t.message,console.warn(t),"function"==typeof n.onerror&&n.onerror(),"{}"})):n.innerHTML;j=j.then((function(){return r})).then((function(r){!function(t,n,r){var o={};try{o=JSON.parse(n)}catch(t){console.warn(Error(e("W5","systemjs-importmap contains invalid JSON")+"\n\n"+n+"\n"))}p(o,r,t)}(L,r,n.src||t)}))}}))}if(x.prepareImport=function(e){return(I||e)&&(M(),I=!1),j},i&&(M(),window.addEventListener("DOMContentLoaded",M)),x.addImportMap=function(e,n){p(e,n||t,L)},i){window.addEventListener("error",(function(e){R=e.filename,A=e.error}));var D=location.origin}x.createScript=function(e){var t=document.createElement("script");t.async=!0,e.indexOf(D+"/")&&(t.crossOrigin="anonymous");var n=L.integrity[e];return n&&(t.integrity=n),t.src=e,t};var R,A,$={},F=x.register;x.register=function(e,t){if(i&&"loading"===document.readyState&&"string"!=typeof e){var n=document.querySelectorAll("script[src]"),r=n[n.length-1];if(r){r.src,N=e;var o=this;T=setTimeout((function(){$[r.src]=[e,t],o.import(r.src)}))}}else N=void 0;return F.call(this,e,t)},x.instantiate=function(t,n){var r=$[t];if(r)return delete $[t],r;var o=this;return Promise.resolve(x.createScript(t)).then((function(r){return new Promise((function(i,a){r.addEventListener("error",(function(){a(Error(e(3,"Error loading "+t+(n?" from "+n:""))))})),r.addEventListener("load",(function(){if(document.head.removeChild(r),R===t)a(A);else{var e=o.getRegister(t);e&&e[0]===N&&clearTimeout(T),i(e)}})),document.head.appendChild(r)}))}))},x.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(x.fetch=fetch);var U=x.instantiate,B=/^(text|application)\/(x-)?javascript(;|$)/;x.instantiate=function(t,n){var r=this;return this.shouldFetch(t)?this.fetch(t,{credentials:"same-origin",integrity:L.integrity[t]}).then((function(o){if(!o.ok)throw Error(e(7,o.status+" "+o.statusText+", loading "+t+(n?" from "+n:"")));var i=o.headers.get("content-type");if(!i||!B.test(i))throw Error(e(4,'Unknown Content-Type "'+i+'", loading '+t+(n?" from "+n:"")));return o.text().then((function(e){return e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL="+t),(0,eval)(e),r.getRegister(t)}))})):U.apply(this,arguments)},x.resolve=function(n,r){return g(L,c(n,r=r||t)||n,r)||function(t,n){throw Error(e(8,"Unable to resolve bare specifier '"+t+(n?"' from "+n:"'")))}(n,r)};var z=x.instantiate;x.instantiate=function(e,t){var n=L.depcache[e];if(n)for(var r=0;r<n.length;r++)k(this,this.resolve(n[r],e),e);return z.call(this,e,t)},o&&"function"==typeof importScripts&&(x.instantiate=function(e){var t=this;return Promise.resolve().then((function(){return importScripts(e),t.getRegister(e)}))}),function(e){var t,n,r,o=e.System.constructor.prototype,i=o.import;o.import=function(o,a){return function(){for(var o in t=n=void 0,e)u(o)||(t?n||(n=o):t=o,r=o)}(),i.call(this,o,a)};var a=[[],function(){return{}}],s=o.getRegister;o.getRegister=function(){var o=s.call(this);if(o)return o;var i,l=function(o){var i,a,s=0;for(var l in e)if(!u(l)){if(0===s&&l!==t||1===s&&l!==n)return l;i?(r=l,a=o&&a||l):i=l===r,s++}return a}(this.firstGlobalProp);if(!l)return a;try{i=e[l]}catch(e){return a}return[[],function(e){return{execute:function(){e(i),e({default:i,__useDefault:!0})}}}]};var l="undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Trident");function u(t){return!e.hasOwnProperty(t)||!isNaN(t)&&t<e.length||l&&e[t]&&"undefined"!=typeof window&&e[t].parent===window}}("undefined"!=typeof self?self:n.g),function(e){var t=e.System.constructor.prototype,n=/^[^#?]+\.(css|html|json|wasm)([?#].*)?$/,r=t.shouldFetch.bind(t);t.shouldFetch=function(e){return r(e)||n.test(e)};var o=/^application\/json(;|$)/,i=/^text\/css(;|$)/,a=/^application\/wasm(;|$)/,s=t.fetch;t.fetch=function(t,n){return s(t,n).then((function(r){if(n.passThrough)return r;if(!r.ok)return r;var s=r.headers.get("content-type");return o.test(s)?r.json().then((function(e){return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",'+JSON.stringify(e)+")}}})"],{type:"application/javascript"}))})):i.test(s)?r.text().then((function(e){return e=e.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g,(function(e,n,r,o){return"url("+n+f(r||o,t)+n+")"})),new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync("+JSON.stringify(e)+');e("default",s)}}})'],{type:"application/javascript"}))})):a.test(s)?(WebAssembly.compileStreaming?WebAssembly.compileStreaming(r):r.arrayBuffer().then(WebAssembly.compile)).then((function(n){e.System.wasmModules||(e.System.wasmModules=Object.create(null)),e.System.wasmModules[t]=n;var r=[],o=[];return WebAssembly.Module.imports&&WebAssembly.Module.imports(n).forEach((function(e){var t=JSON.stringify(e.module);-1===r.indexOf(t)&&(r.push(t),o.push("function(m){i["+t+"]=m}"))})),new Response(new Blob(["System.register(["+r.join(",")+"],function(e){var i={};return{setters:["+o.join(",")+"],execute:function(){return WebAssembly.instantiate(System.wasmModules["+JSON.stringify(t)+"],i).then(function(m){e(m.exports)})}}})"],{type:"application/javascript"}))})):r}))}}("undefined"!=typeof self?self:n.g);var Z="undefined"!=typeof Symbol&&Symbol.toStringTag;x.get=function(e){var t=this[b][e];if(t&&null===t.e&&!t.E)return t.er?null:t.n},x.set=function(t,n){try{new URL(t)}catch(n){console.warn(Error(e("W3",'"'+t+'" is not a valid URL to set in the module registry')))}var r;Z&&"Module"===n[Z]?r=n:(r=Object.assign(Object.create(null),n),Z&&Object.defineProperty(r,Z,{value:"Module"}));var o=Promise.resolve(r),i=this[b][t]||(this[b][t]={id:t,i:[],h:!1,d:[],e:null,er:void 0,E:void 0});return!i.e&&!i.E&&(Object.assign(i,{n:r,I:void 0,L:void 0,C:o}),r)},x.has=function(e){return!!this[b][e]},x.delete=function(e){var t=this[b],n=t[e];if(!n||n.p&&null!==n.p.e||n.E)return!1;var r=n.i;return n.d&&n.d.forEach((function(e){var t=e.i.indexOf(n);-1!==t&&e.i.splice(t,1)})),delete t[e],function(){var n=t[e];if(!n||!r||null!==n.e||n.E)return!1;r.forEach((function(e){n.i.push(e),e(n.n)})),r=null}};var H="undefined"!=typeof Symbol&&Symbol.iterator;x.entries=function(){var e,t,n=this,r=Object.keys(n[b]),o=0,i={next:function(){for(;void 0!==(t=r[o++])&&void 0===(e=n.get(t)););return{done:void 0===t,value:void 0!==t&&[t,e]}}};return i[H]=function(){return this},i}}()},9713:(e,t,n)=>{"use strict";var r=n(7959),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},8630:(e,t,n)=>{"use strict";e.exports=n(9713)},3913:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},8943:(e,t,n)=>{"use strict";n.r(t),n.d(t,{OpenmrsFetchError:()=>i.nF,VisitMode:()=>u.u4,VisitStatus:()=>u.Rx,backendDependencies:()=>d.W,clearCurrentUser:()=>s.Ze,defaultVisitCustomRepresentation:()=>u.I$,fetchCurrentPatient:()=>l.V,fhirBaseUrl:()=>i.DN,getCurrentUser:()=>s.ts,getLocations:()=>f.J,getLoggedInUser:()=>s.r,getSessionLocation:()=>s.WK,getSessionStore:()=>s.KJ,getStartedVisit:()=>u.$X,getVisitTypes:()=>c.P,getVisitsForPatient:()=>u.nx,makeUrl:()=>i.bf,openmrsFetch:()=>i.vb,openmrsObservableFetch:()=>i.uj,refetchCurrentUser:()=>s.VJ,restBaseUrl:()=>i.YC,saveVisit:()=>u.bX,sessionEndpoint:()=>i.z$,setSessionLocation:()=>s.jK,setupApiModule:()=>a.O,toLocationObject:()=>f.L,toVisitTypeObject:()=>c.V,updateVisit:()=>u.ym,userHasAccess:()=>s.y9});var r=n(2510),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(1893),a=n(2076),s=n(6313),l=n(96),u=n(8564),c=n(9804),f=n(6874),d=n(6528)},6528:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const r={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}},1893:(e,t,n)=>{"use strict";n.d(t,{DN:()=>s,YC:()=>a,bf:()=>u,nF:()=>d,uj:()=>f,vb:()=>c,z$:()=>l});var r=n(3596),o=n(1785),i=n(2333);const a="/ws/rest/v1/",s="/ws/fhir2/R4",l=`${a}session`;function u(e){return window.openmrsBase+e}function c(e,t={}){if("string"!=typeof e)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof t)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");"/"!==e[0]&&(e="/"+e);let n=u(e);if(t.headers||(t.headers={}),(0,o.Z)(t.body)&&(t.body=JSON.stringify(t.body)),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),null===t.headers.Accept&&delete t.headers.Accept,e.startsWith(a)&&void 0===t.headers["Disable-WWW-Authenticate"]&&(t.headers["Disable-WWW-Authenticate"]="true"),e.startsWith(s)){const e=new URL(n,window.location.toString());e.searchParams.has("_summary")||(e.searchParams.set("_summary","data"),n=e.toString())}const r=Error();return window.fetch(n,t).then((e=>{return t=this,null,o=function*(){const t=e;if(t.ok)return 204===t.status?(t.data=null,t):t.text().then((e=>{try{e&&(t.data=JSON.parse(e))}catch(e){}return t}));{const{redirectAuthFailure:e}=yield(0,i.iE)("@openmrs/esm-api");return n===u(l)&&403===t.status||e.enabled&&e.errors.includes(t.status)?((0,i.c4)({to:e.url}),e.resolvePromise?Promise.resolve():new Promise((()=>{}))):t.text().then((e=>{let o=e;try{o=JSON.parse(e)}catch(e){}throw new d(n,t,o,r)}),(e=>{throw new d(n,t,null,r)}))}},new Promise(((e,n)=>{var r=e=>{try{a(o.next(e))}catch(e){n(e)}},i=e=>{try{a(o.throw(e))}catch(e){n(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,i);a((o=o.apply(t,null)).next())}));var t,o}))}function f(e,t={}){if("object"!=typeof t)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");const n=new AbortController;return t.signal=n.signal,new r.Observable((r=>{let o=!1;return c(e,t).then((e=>{o=!0,r.next(e),r.complete()}),(e=>{o=!0,r.error(e)})),()=>{o||n.abort()}}))}class d extends Error{constructor(e,t,n,r){super(),this.message=`Server responded with ${t.status} (${t.statusText}) for url ${e}. Check err.responseBody or network tab in dev tools for more info`,r.message=this.message,this.responseBody=n,this.response=t,this.stack=`Stacktrace for outgoing request:\n${r.stack}\nStacktrace for incoming response:\n${this.stack}`}}},9969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{OpenmrsFetchError:()=>i.nF,VisitMode:()=>l.u4,VisitStatus:()=>l.Rx,backendDependencies:()=>f.W,clearCurrentUser:()=>a.Ze,defaultVisitCustomRepresentation:()=>l.I$,fetchCurrentPatient:()=>s.V,fhirBaseUrl:()=>i.DN,getCurrentUser:()=>a.ts,getLocations:()=>c.J,getLoggedInUser:()=>a.r,getSessionLocation:()=>a.WK,getSessionStore:()=>a.KJ,getStartedVisit:()=>l.$X,getVisitTypes:()=>u.P,getVisitsForPatient:()=>l.nx,makeUrl:()=>i.bf,openmrsFetch:()=>i.vb,openmrsObservableFetch:()=>i.uj,refetchCurrentUser:()=>a.VJ,restBaseUrl:()=>i.YC,saveVisit:()=>l.bX,sessionEndpoint:()=>i.z$,setSessionLocation:()=>a.jK,toLocationObject:()=>c.L,toVisitTypeObject:()=>u.V,updateVisit:()=>l.ym,userHasAccess:()=>a.y9});var r=n(2510),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(1893),a=n(6313),s=n(96),l=n(8564),u=n(9804),c=n(6874),f=n(6528)},2076:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var r=n(2333),o=n(6313);function i(){(0,r.SH)("@openmrs/esm-api",{redirectAuthFailure:{enabled:{_type:r.Dy.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:r.Dy.String,_default:"${openmrsSpaBase}/login",_validators:[r.z2.isUrl]},errors:{_type:r.Dy.Array,_default:[401],_elements:{_type:r.Dy.Number,_validators:[r.z2.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:r.Dy.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}}}),(0,o.VJ)()}},96:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(8512),o=n(1893),i=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function a(e,t,n=!0){return i(this,null,(function*(){if(e){let r=null;const[i,a]=yield Promise.all([(0,o.vb)(`${o.DN}/Patient/${e}`,t).catch((e=>r=e)),n?s(e):Promise.resolve(null)]);if(i.ok)return i.data;if(a)return a;if(r)throw r}return null}))}function s(e){return i(this,null,(function*(){var t;const n=(yield(0,r.Q2)("patient-registration")).find((t=>t.fhirPatient.id===e));return null!=(t=null==n?void 0:n.fhirPatient)?t:null}))}},6313:(e,t,n)=>{"use strict";n.d(t,{KJ:()=>f,VJ:()=>d,WK:()=>v,Ze:()=>p,jK:()=>g,r:()=>m,ts:()=>c,y9:()=>h});var r=n(5007),o=n(8516),i=n(9881),a=n(3596),s=n(1893);const l=(0,o.jk)("session",{loaded:!1,session:null});let u=0;function c(e={includeAuthStatus:!0}){return(u<Date.now()-6e4||!l.getState().loaded)&&d(),new a.Observable((t=>{const n=n=>{var r;n.loaded&&(e.includeAuthStatus?t.next(n.session):t.next(null==(r=n.session)?void 0:r.user))};return n(l.getState()),l.subscribe(n)}))}function f(){return(u<Date.now()-6e4||!l.getState().loaded)&&d(),l}function d(){return new Promise(((e,t)=>{u=Date.now(),(0,s.vb)(s.z$).then((n=>{if("object"!=typeof(null==n?void 0:n.data))return t(),Promise.reject();!function(e){var t,n,r;const o=null!=(r=null==(n=null==(t=null==e?void 0:e.user)?void 0:t.userProperties)?void 0:n.defaultLocale)?r:e.locale;o!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",o)}(n.data),e(n.data),l.setState({loaded:!0,session:n.data})})).catch((e=>((0,r.e)(`Failed to fetch new session information: ${e}`),t(e),{sessionId:"",authenticated:!1})))}))}function p(){l.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})}function h(e,t){return void 0===t?Boolean(e):!Boolean(e)||function(e,t){return"string"==typeof e?!(0,i.Z)(t.privileges.find((t=>e===t.display))):Array.isArray(e)?e.every((e=>!(0,i.Z)(t.privileges.find((t=>e===t.display))))):((0,i.Z)(e)||console.error(`Could not understand privileges "${e}"`),!0)}(e,t)||function(e){return!(0,i.Z)(e.roles.find((e=>"System Developer"===e.display)))}(t)}function m(){let e,t;return new Promise(((n,r)=>{const o=r=>{r.loaded&&r.session.user&&(e=r.session.user,n(r.session.user),t&&t())};o(l.getState()),e||(t=l.subscribe(o))}))}function v(){return new Promise(((e,t)=>{c().subscribe((t=>{e(t.sessionLocation)}),t).unsubscribe()}))}function g(e,t){return n=this,null,r=function*(){yield(0,s.vb)(s.z$,{method:"POST",body:{sessionLocation:e},headers:{"Content-Type":"application/json"},signal:t.signal}),d()},new Promise(((e,t)=>{var o=e=>{try{a(r.next(e))}catch(e){t(e)}},i=e=>{try{a(r.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((r=r.apply(n,null)).next())}));var n,r}},6874:(e,t,n)=>{"use strict";n.d(t,{J:()=>s,L:()=>a});var r=n(821),o=n(6705),i=n(1893);function a(e){return{uuid:e.uuid,display:e.display}}function s(){return(0,i.uj)("/ws/rest/v1/location").pipe((0,r.U)((e=>e.data.results.map(a)))).pipe((0,o.q)(1))}},9804:(e,t,n)=>{"use strict";n.d(t,{P:()=>s,V:()=>a});var r=n(821),o=n(6705),i=n(1893);function a(e){return{uuid:e.uuid,display:e.display,name:e.name}}function s(){return(0,i.uj)("/ws/rest/v1/visittype").pipe((0,r.U)((e=>e.data.results.map(a)))).pipe((0,o.q)(1))}},8564:(e,t,n)=>{"use strict";n.d(t,{$X:()=>f,I$:()=>s,Rx:()=>p,bX:()=>u,nx:()=>l,u4:()=>d,ym:()=>c});var r=n(3596),o=n(6705),i=n(821),a=n(1893);const s="custom:(uuid,encounters:(uuid,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,uuid),visitType:(uuid,name,display),attributes:(uuid,display,attributeType:(name,datatypeClassname,uuid),value),location:(uuid,name,display),startDatetime,stopDatetime)";function l(e,t,n){const r=null!=n?n:s;return(0,a.uj)(`/ws/rest/v1/visit?patient=${e}&v=${r}`,{signal:t.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe((0,o.q)(1)).pipe((0,i.U)((e=>e)))}function u(e,t){return(0,a.uj)("/ws/rest/v1/visit",{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}function c(e,t,n){return(0,a.uj)(`/ws/rest/v1/visit/${e}`,{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})}const f=new r.BehaviorSubject(null);var d=(e=>(e.NEWVISIT="startVisit",e.EDITVISIT="editVisit",e.LOADING="loadingVisit",e))(d||{}),p=(e=>(e.NOTSTARTED="notStarted",e.ONGOING="ongoing",e))(p||{})},173:()=>{},3394:()=>{},2510:(e,t,n)=>{"use strict";n.r(t);var r=n(173),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(3394);o={};for(const e in i)"default"!==e&&(o[e]=()=>i[e]);n.d(t,o);var a=n(1949);o={};for(const e in a)"default"!==e&&(o[e]=()=>a[e]);n.d(t,o);var s=n(8345);o={};for(const e in s)"default"!==e&&(o[e]=()=>s[e]);n.d(t,o);var l=n(1259);o={};for(const e in l)"default"!==e&&(o[e]=()=>l[e]);n.d(t,o)},1949:()=>{},8345:()=>{},1259:()=>{},6433:(e,t,n)=>{"use strict";function r(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function i(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var i=n.strict,a=void 0!==i&&i,s=n.start,l=void 0===s||s,u=n.end,c=void 0===u||u,f=n.encode,d=void 0===f?function(e){return e}:f,p="["+r(n.endsWith||"")+"]|$",h="["+r(n.delimiter||"/#?")+"]",m=l?"^":"",v=0,g=e;v<g.length;v++){var y=g[v];if("string"==typeof y)m+=r(d(y));else{var b=r(d(y.prefix)),w=r(d(y.suffix));if(y.pattern)if(t&&t.push(y),b||w)if("+"===y.modifier||"*"===y.modifier){var E="*"===y.modifier?"?":"";m+="(?:"+b+"((?:"+y.pattern+")(?:"+w+b+"(?:"+y.pattern+"))*)"+w+")"+E}else m+="(?:"+b+"("+y.pattern+")"+w+")"+y.modifier;else m+="("+y.pattern+")"+y.modifier;else m+="(?:"+b+w+")"+y.modifier}}if(c)a||(m+=h+"?"),m+=n.endsWith?"(?="+p+")":"$";else{var x=e[e.length-1],S="string"==typeof x?h.indexOf(x[x.length-1])>-1:void 0===x;a||(m+="(?:"+h+"(?="+p+"))?"),S||(m+="(?="+h+"|"+p+")")}return new RegExp(m,o(n))}(function(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),o=t.prefixes,i=void 0===o?"./":o,a="[^"+r(t.delimiter||"/#?")+"]+?",s=[],l=0,u=0,c="",f=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[u],o=r.type,i=r.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+e)},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var h=f("CHAR"),m=f("NAME"),v=f("PATTERN");if(m||v){var g=h||"";-1===i.indexOf(g)&&(c+=g,g=""),c&&(s.push(c),c=""),s.push({name:m||l++,prefix:g,suffix:"",pattern:v||a,modifier:f("MODIFIER")||""})}else{var y=h||f("ESCAPED_CHAR");if(y)c+=y;else if(c&&(s.push(c),c=""),f("OPEN")){g=p();var b=f("NAME")||"",w=f("PATTERN")||"",E=p();d("CLOSE"),s.push({name:b||(w?l++:""),pattern:b&&!w?a:w,prefix:g,suffix:E,modifier:f("MODIFIER")||""})}else d("END")}}return s}(e,n),t,n)}function a(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return a(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",o(n))}(e,t,n):i(e,t,n)}n.d(t,{ZD:()=>f,nf:()=>u,Lr:()=>c});const s=(0,n(8516).jk)("breadcrumbs",[]);function l(e){return e.matcher instanceof RegExp?e.matcher:"string"==typeof e.matcher?a(e.matcher):a(e.path)}function u(e){return c([e])}function c(e){const t=[...f(),...e.map((e=>({matcher:l(e),settings:e})))];s.setState(t,!0)}function f(){return s.getState()}},5586:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,j:()=>i});var r=n(6433);function o(e,t){if(t)return function(e,t){const[n]=e.filter((e=>e.matcher.test(t)));return n}(e,t)||function(e,t){const n=t.split("/");for(;n.length>1;){n.pop();const t=o(e,n.join("/"));if(t)return t}}(e,t)}function i(e,t){if(e.length>0){const n=o(e,t);if(n){const t=[n];let r=o(e,n.settings.parent);for(;void 0!==r;)t.push(r),r=o(e,r.settings.parent);return t.reverse()}}return[]}function a(e){return i((0,r.ZD)(),e)}},6389:(e,t,n)=>{"use strict";n.r(t),n.d(t,{filterBreadcrumbs:()=>o.j,getBreadcrumbs:()=>r.ZD,getBreadcrumbsFor:()=>o.Z,registerBreadcrumb:()=>r.nf,registerBreadcrumbs:()=>r.Lr});var r=n(6433),o=n(5586),i=n(2968),a={};for(const e in i)["default","getBreadcrumbs","registerBreadcrumb","registerBreadcrumbs","filterBreadcrumbs","getBreadcrumbsFor"].indexOf(e)<0&&(a[e]=()=>i[e]);n.d(t,a)},2968:()=>{},2333:(e,t,n)=>{"use strict";n.d(t,{$w:()=>o.$w,CB:()=>l.CB,DK:()=>o.DK,Dy:()=>u.D,Gr:()=>o.Gr,HN:()=>o.HN,IN:()=>o.IN,IT:()=>a.I,JJ:()=>r.JJ,R2:()=>o.R2,SH:()=>r.SH,Tj:()=>r.Tj,Z2:()=>l.Z2,_z:()=>o._z,bs:()=>r.bs,c4:()=>i.c,f6:()=>r.f6,gZ:()=>l.gZ,hv:()=>o.hv,iE:()=>r.iE,kw:()=>l.kw,ll:()=>a.l,pR:()=>o.pR,qf:()=>o.qf,sC:()=>s.s,sR:()=>o.sR,z2:()=>l.z2});var r=n(9195),o=n(5368),i=n(6715),a=n(9732),s=n(552),l=n(9499),u=n(8386)},9195:(e,t,n)=>{"use strict";n.d(t,{SH:()=>ae,Tj:()=>se,iE:()=>ue,bs:()=>ce,f6:()=>fe,JJ:()=>le});var r=n(9719);function o(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function i(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}function a(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const s="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var l=n(9179),u=Object.prototype.toString;const c=function(){return"[object Arguments]"===u.call(arguments)?function(e){return"[object Arguments]"===u.call(e)}:function(e){return a("callee",e)}}();var f=!{toString:null}.propertyIsEnumerable("toString"),d=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],p=function(){return arguments.propertyIsEnumerable("length")}(),h=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};const m="function"!=typeof Object.keys||p?(0,l.Z)((function(e){if(Object(e)!==e)return[];var t,n,r=[],o=p&&c(e);for(t in e)!a(t,e)||o&&"length"===t||(r[r.length]=t);if(f)for(n=d.length-1;n>=0;)a(t=d[n],e)&&!h(r,t)&&(r[r.length]=t),n-=1;return r})):(0,l.Z)((function(e){return Object(e)!==e?[]:Object.keys(e)})),v=(0,l.Z)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function g(e,t,n,r){var a=o(e);function s(e,t){return y(e,t,n.slice(),r.slice())}return!i((function(e,t){return!i(s,t,e)}),o(t),a)}function y(e,t,n,r){if(s(e,t))return!0;var o,i,l=v(e);if(l!==v(t))return!1;if(null==e||null==t)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(l){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(o=e.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!s(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!s(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var u=n.length-1;u>=0;){if(n[u]===e)return r[u]===t;u-=1}switch(l){case"Map":return e.size===t.size&&g(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&g(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=m(e);if(c.length!==m(t).length)return!1;var f=n.concat([e]),d=r.concat([t]);for(u=c.length-1;u>=0;){var p=c[u];if(!a(p,t)||!y(t[p],e[p],f,d))return!1;u-=1}return!0}const b=(0,r.Z)((function(e,t){return y(e,t,[],[])}));var w=n(758);function E(e){return function t(n,o,i){switch(arguments.length){case 0:return t;case 1:return(0,w.Z)(n)?t:(0,r.Z)((function(t,r){return e(n,t,r)}));case 2:return(0,w.Z)(n)&&(0,w.Z)(o)?t:(0,w.Z)(n)?(0,r.Z)((function(t,n){return e(t,o,n)})):(0,w.Z)(o)?(0,r.Z)((function(t,r){return e(n,t,r)})):(0,l.Z)((function(t){return e(n,o,t)}));default:return(0,w.Z)(n)&&(0,w.Z)(o)&&(0,w.Z)(i)?t:(0,w.Z)(n)&&(0,w.Z)(o)?(0,r.Z)((function(t,n){return e(t,n,i)})):(0,w.Z)(n)&&(0,w.Z)(i)?(0,r.Z)((function(t,n){return e(t,o,n)})):(0,w.Z)(o)&&(0,w.Z)(i)?(0,r.Z)((function(t,r){return e(n,t,r)})):(0,w.Z)(n)?(0,l.Z)((function(t){return e(t,o,i)})):(0,w.Z)(o)?(0,l.Z)((function(t){return e(n,t,i)})):(0,w.Z)(i)?(0,l.Z)((function(t){return e(n,o,t)})):e(n,o,i)}}}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}const S=E((function(e,t,n){var r,o={};for(r in t)a(r,t)&&(o[r]=a(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)a(r,n)&&!a(r,o)&&(o[r]=n[r]);return o})),_=E((function e(t,n,r){return S((function(n,r,o){return x(r)&&x(o)?e(t,r,o):t(n,r,o)}),n,r)})),k=(0,r.Z)((function(e,t){return _((function(e,t,n){return n}),e,t)}));var O=n(5717);function C(e,t,n,r){var o,i=function(o){for(var i=t.length,a=0;a<i;){if(e===t[a])return n[a];a+=1}for(var s in t[a+1]=e,n[a+1]=o,e)o[s]=r?C(e[s],t,n,!0):e[s];return o};switch(v(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return o=e,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return e}}const P=(0,l.Z)((function(e){return null!=e&&"function"==typeof e.clone?e.clone():C(e,[],[],!0)})),N=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)},T=(0,l.Z)((function(e){return!!N(e)||!!e&&"object"==typeof e&&!function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var j=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const L=(0,r.Z)((function(e,t){return function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,s,l,u){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,s,l,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(e.length,(function(){return e.apply(t,arguments)}))}));function I(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function M(e,t,n,r){return e["@@transducer/result"](n[r](L(e["@@transducer/step"],e),t))}var D="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function R(e,t,n){if("function"==typeof e&&(e=function(e){return new j(e)}(e)),T(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return M(e,t,n,"fantasy-land/reduce");if(null!=n[D])return I(e,t,n[D]());if("function"==typeof n.next)return I(e,t,n);if("function"==typeof n.reduce)return M(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}const A=E(R);var $=n(8386),F=n(552);const U=(0,F.s)((e=>Array.isArray(e)),"must be an array"),B=(0,F.s)((e=>"boolean"==typeof e),"must be a boolean"),z=(0,F.s)((e=>"number"==typeof e),"must be a number"),Z=(0,F.s)((e=>"string"==typeof e),"must be a string"),H=(0,F.s)((e=>"object"==typeof e&&!Array.isArray(e)&&null!==e),"must be an object (not an array or null)"),V=(0,F.s)((e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)),"must be a valid UUID or a 36-character hexadecimal string");var K=n(5368),W=Object.defineProperty,q=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,X=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t)=>{for(var n in t||(t={}))Q.call(t,n)&&X(e,n,t[n]);if(G)for(var n of G(t))J.call(t,n)&&X(e,n,t[n]);return e},te=(e,t)=>q(e,Y(t));function ne(e,t){for(let n of Object.keys(e.schemas)){const r=ye(n,e,t);(0,K.pR)(n).setState({loaded:!0,config:r})}}function re(e,t){const n=function(e,t){const n=we(ve(e,t)),r=Object.keys(n).reduce(((e,t)=>{var r,o;return(null==(r=n[t])?void 0:r.extensionSlots)&&(e[t]=null==(o=n[t])?void 0:o.extensionSlots),e}),{});return function(e){for(let[t,n]of Object.entries(e))for(let[e,r]of Object.entries(n))me(r,t,e)}(r),Object.keys(r).reduce(((e,t)=>ee(ee({},e),r[t])),{})}(e,t),r=Object.fromEntries(Object.entries(n).map((([e,t])=>[e,{loaded:!0,config:t}]))),o=(0,K.Gr)(),i=o.getState(),a={slots:ee(ee({},i.slots),r)};b(i,a)||o.setState(a)}function oe(e,t){const n=function(e,t){let n=pe(P(e.schemas));const r=[...e.providedConfigs.map((e=>[e.config,e.source])),[t.config,"temporary config"]];for(let[e,t]of r)n=we([n,he(e,t)]);return n}(e,t);K.HN.setState({config:n})}function ie(e,t,n){const r={};for(let o of t.mountedExtensions){const t=de(o.slotModuleName,o.extensionModuleName,o.slotName,o.extensionId,e,n);r[o.slotName]=te(ee({},r[o.slotName]),{[o.extensionId]:{config:t,loaded:!0}})}(0,K._z)().setState({configs:r})}function ae(e,t){ge(e,t);const n=k(t,Ne),r=K.hv.getState();K.hv.setState({schemas:te(ee({},r.schemas),{[e]:n})})}function se(e,t){ge(e,t);const n=k(t,Ne),r=K.hv.getState();r.schemas[e]&&console.warn(`Config schema for extension ${e} already exists. If there are multiple extensions with this same name, one will probably crash.`),K.hv.setState({schemas:te(ee({},r.schemas),{[e]:n})})}function le(e,t="provided"){const n=K.hv.getState();K.hv.setState({providedConfigs:[...n.providedConfigs,{source:t,config:e}]})}function ue(e){return new Promise((t=>{const n=(0,K.pR)(e);function r(e){if(e.loaded&&e.config){const n=(0,O.Z)(["Display conditions","Translation overrides"],e.config);t(n),o&&o()}}r(n.getState());const o=n.subscribe(r)}))}function ce(e){return new Promise((t=>{const n=(0,K.pR)(e);function r(e){if(e.loaded&&e.config){const n=e.config;t(n),o&&o()}}r(n.getState());const o=n.subscribe(r)}))}function fe(e,t,n){Ee(e,t,n);const r=Oe(e,t);return Se(e,r,n),r}function de(e,t,n,r,o,i){var a,s,l,u;const c=function(e){const[t]=e.split("#");return t}(r),f=o.schemas[c],d=f?c:t,p=ve(o,i),h=be(e,p),m=null!=(u=null==(l=null==(s=null==(a=null==h?void 0:h.extensionSlots)?void 0:a[n])?void 0:s.configure)?void 0:l[r])?u:{},v=we([be(d,p),m]),g=null!=f?f:o.schemas[t];Ee(g,v,d);const y=Oe(g,v);return Se(g,y,d),delete y.extensionSlots,y}function pe(e){return e.hasOwnProperty("_default")?te(ee({},e),{_value:e._default,_source:"default"}):Pe(e)?Object.keys(e).reduce(((t,n)=>(t[n]=pe(e[n]),t)),{}):{}}function he(e,t){return Pe(e)?Object.keys(e).reduce(((n,r)=>(n[r]=he(e[r],t),n)),{}):{_value:e,_source:t}}function me(e,t,n){const r=`Extension slot config '${t}.extensionSlots.${n}`,o=Object.keys(e).filter((e=>!["add","remove","order","configure"].includes(e)));o.length&&console.error(r+`' contains invalid keys '${o.join("', '")}'`),e.add&&(Array.isArray(e.add)&&e.add.every((e=>"string"==typeof e))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),e.remove&&(Array.isArray(e.remove)&&e.remove.every((e=>"string"==typeof e))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),e.order&&(Array.isArray(e.order)&&e.order.every((e=>"string"==typeof e))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),e.configure&&(Pe(e.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))}function ve(e,t){return[...e.providedConfigs.map((e=>e.config)),t.config]}function ge(e,t,n=""){const r="Please verify that you are running the latest version and, if so, alert the maintainer.";for(const o of Object.keys(t).filter((e=>!e.startsWith("_")))){const i=n+(n&&".")+o,a=t[o];if("Display conditions"===i&&console.error(`${e} declares a configuration option called "Display conditions"; the "Display conditions" option is a reserved name. ${r}`),"Translation overrides"===i&&console.error(`${e} declares a configuration option called "Translation overrides"; the "Translation overrides" option is a reserved name. ${r}`),!Pe(a)){console.error(`${e} has bad config schema definition for key '${i}'. ${r}`);continue}a.hasOwnProperty("_default")||ge(e,a,i);const s=a._elements;if(Ce(s)&&ge(e,s,i+"._elements"),a._validators)for(let t of a._validators)"function"!=typeof t&&console.error(`${e} has invalid validator for key '${i}' ${r}.\n\nIf you're the maintainer: validators must be functions that return either undefined or an error string. Received ${t}.`);const l=a._type;l&&!Object.values($.D).includes(l)&&console.error(`${e} has invalid type for key '${i}' ${r}.\n\nIf you're the maintainer: the allowed types are ${Object.values($.D).join(", ")}. Received '${l}'`),Object.keys(a).every((e=>["_description","_validators","_elements","_type"].includes(e)))&&!n.includes("._elements")&&console.error(`${e} has bad config schema definition for key '${i}'. ${r}.\n\nIf you're the maintainer: all config elements must have a default. Received ${JSON.stringify(a)}`),s&&l&&![$.D.Array,$.D.Object].includes(l)&&console.error(`${e} has bad config schema definition for key '${i}'. ${r}.\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. Received ${JSON.stringify(l)}`)}}function ye(e,t,n){if(!t.schemas.hasOwnProperty(e))throw Error("No config schema has been defined for "+e);const r=t.schemas[e],o=be(e,ve(t,n));Ee(r,o,e);const i=Oe(r,o);return Se(r,i,e),delete i.extensionSlots,i}function be(e,t){return we(t.map((({[e]:t})=>t)).filter((e=>!!e)))}function we(e){return A(k)({},e)}function Ee(e,t,n=""){for(const r of Object.keys(t)){const o=t[r],i=n+"."+r,a=e[r];e.hasOwnProperty(r)?xe(a,o,i):"extensionSlots"===r&&""!==n||console.error(`Unknown config key '${i}' provided. Ignoring.`)}}function xe(e,t,n){_e(n,e._type,t),Pe(t)?e._type===$.D.Object?function(e,t,n){if(e._elements)for(const r of Object.keys(t)){const o=t[r];Ee(e._elements,o,`${n}.${r}`)}}(e,t,n):e.hasOwnProperty("_default")||Ee(e,t,n):e._type===$.D.Array&&function(e,t,n){var r;if(Ce(e._elements))for(let r=0;r<t.length;r++)xe(e._elements,t[r],`${n}[${r}]`);for(let o=0;o<t.length;o++)_e(`${n}[${o}]`,null==(r=e._elements)?void 0:r._type,t[o])}(e,t,n)}function Se(e,t,n=""){if(e)if(t!==e._default&&ke(n,e._validators,t),Pe(t))for(const r of Object.keys(t)){const o=t[r],i=n+"."+r,a=e[r];e._type===$.D.Object&&e._elements?Se(e._elements,o,i):Se(a,o,i)}else if(Array.isArray(t)&&e._elements)for(let r=0;r<t.length;r++)Se(e._elements,t[r],`${n}[${r}]`)}function _e(e,t,n){t&&ke(e,[{Array:U,Boolean:B,ConceptUuid:V,Number:z,Object:H,String:Z,UUID:V,PersonAttributeTypeUuid:V,PatientIdentifierTypeUuid:V}[t]],n)}function ke(e,t,n){if(t)try{for(let r of t){const t=r(n);"string"==typeof t&&("object"==typeof n?console.error(`Invalid configuration for ${e}: ${t}`):console.error(`Invalid configuration value ${n} for ${e}: ${t}`))}}catch(t){console.error(`Skipping invalid validator at "${e}". Encountered error\n\t${t}`)}}ne(K.hv.getState(),K.DK.getState()),K.hv.subscribe((e=>ne(e,K.DK.getState()))),K.DK.subscribe((e=>ne(K.hv.getState(),e))),oe(K.hv.getState(),K.DK.getState()),K.hv.subscribe((e=>oe(e,K.DK.getState()))),K.DK.subscribe((e=>oe(K.hv.getState(),e))),re(K.hv.getState(),K.DK.getState()),K.hv.subscribe((e=>re(e,K.DK.getState()))),K.DK.subscribe((e=>re(K.hv.getState(),e))),ie(K.hv.getState(),K.R2.getState(),K.DK.getState()),K.hv.subscribe((e=>{ie(e,K.R2.getState(),K.DK.getState())})),K.R2.subscribe((e=>{ie(K.hv.getState(),e,K.DK.getState())})),K.DK.subscribe((e=>{ie(K.hv.getState(),K.R2.getState(),e)}));const Oe=(e,t)=>{const n=P(t);if(!e)return n;for(const t of Object.keys(e)){const r=n[t],o=e[t];if(o&&o.hasOwnProperty("_default")){n.hasOwnProperty(t)||(n[t]=o._default);const e=o._elements;if(r&&Ce(e))if(o._type===$.D.Array&&Array.isArray(r)){const o=r.map((t=>Oe(e,t)));n[t]=o}else if(o._type===$.D.Object)for(let t of Object.keys(r))r[t]=Oe(e,r[t])}else if(Pe(o)){const e=n.hasOwnProperty(t)?r:{};Pe(e)&&(n[t]=Oe(o,e))}}return n};function Ce(e){return!!e&&Object.keys(e).filter((e=>!["_default","_validators"].includes(e))).length>0}function Pe(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}const Ne={"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:$.D.Array,_default:[]}},"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:$.D.Object,_default:{}}}},5368:(e,t,n)=>{"use strict";n.d(t,{$w:()=>f,DK:()=>a,Gr:()=>u,HN:()=>m,IN:()=>c,R2:()=>s,_z:()=>d,hv:()=>i,pR:()=>l,qf:()=>p,sR:()=>h});var r=n(8516),o=n(5717);const i=(0,r.jk)("config-internal",{providedConfigs:[],schemas:{}}),a=(0,r.jk)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});a.subscribe((e=>{var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}));const s=(0,r.jk)("config-store-of-extension-state",{mountedExtensions:[]});function l(e){return(0,r.zJ)(`config-module-${e}`,{config:null,loaded:!1})}function u(){return(0,r.zJ)("config-extension-slots",{slots:{}})}function c(e){return f(u().getState(),e)}function f(e,t){const n=e.slots[t];return null!=n?n:{loaded:!1,config:{}}}function d(){return(0,r.zJ)("config-extensions",{configs:{}})}function p(e,t){const n=Object.assign({},h(d().getState(),e,t));return n.config=(0,o.Z)(["Display conditions","Translation overrides"],n.config),n}function h(e,t,n){var r;const o=null==(r=e.configs[t])?void 0:r[n];return null!=o?o:{loaded:!1,config:null}}const m=(0,r.jk)("config-implementer-tools",{config:{}})},9732:(e,t,n)=>{"use strict";n.d(t,{I:()=>u,l:()=>l});var r=Object.defineProperty,o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function l(e,t){const n=window.getOpenmrsSpaBase().replace(/\/$/,"");return u(e,((e,t)=>{for(var n in t||(t={}))i.call(t,n)&&s(e,n,t[n]);if(o)for(var n of o(t))a.call(t,n)&&s(e,n,t[n]);return e})({openmrsBase:window.openmrsBase,openmrsSpaBase:n},t)).replace(/^\/\//,"/")}function u(e,t){return Object.keys(t).reduce(((e,n)=>e.split("${"+n+"}").join(t[n])),e)}},6715:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(6929),o=n(9732);function i({to:e,templateParams:t}){const n=window.getOpenmrsSpaBase().replace(/\/$/,""),i=(0,o.l)(e,t);i.startsWith(n)?(0,r.UO)(i):window.location.assign(i)}},330:(e,t,n)=>{"use strict";n.d(t,{CB:()=>s.CB,Dy:()=>r.D,IT:()=>o.I,JJ:()=>l.JJ,SH:()=>l.SH,Tj:()=>l.Tj,Z2:()=>s.Z2,c4:()=>i.c,gZ:()=>s.gZ,iE:()=>l.iE,kw:()=>s.kw,ll:()=>o.l,pR:()=>u.pR,sC:()=>a.s,z2:()=>s.z2});var r=n(8386),o=n(9732),i=n(6715),a=n(552),s=n(9499),l=n(9195),u=n(5368)},8386:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r=(e=>(e.Array="Array",e.Boolean="Boolean",e.ConceptUuid="ConceptUuid",e.Number="Number",e.Object="Object",e.String="String",e.UUID="UUID",e.PersonAttributeTypeUuid="PersonAttributeTypeUuid",e.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",e))(r||{})},552:(e,t,n)=>{"use strict";function r(e,t){return n=>{if(!e(n))return"function"==typeof t?t(n):t}}n.d(t,{s:()=>r})},9499:(e,t,n)=>{"use strict";n.d(t,{CB:()=>a,Z2:()=>o,gZ:()=>i,kw:()=>s,z2:()=>l});var r=n(552);const o=(e,t)=>(0,r.s)((n=>e<=n&&n<=t),`must be between ${e} and ${t}`),i=e=>{const t=e.concat(["openmrsBase","openmrsSpaBase"]);return(0,r.s)((e=>{if(!e||"string"!=typeof e)return!1;const n=/\${(.*?)}/g;let r=n.exec(e);for(;r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0}),"Should be a URL or path. The allowed template parameters are "+t.map((e=>"${"+e+"}")).join(", "))},a=i([]),s=e=>(0,r.s)((t=>e.includes(t)),`Must be one of the following: '${e.join("', '")}'.`),l={inRange:o,isUrl:a,isUrlWithTemplateParameters:i,oneOf:s}},5007:(e,t,n)=>{"use strict";n.d(t,{e:()=>o,v:()=>i});var r=n(6217);function o(e){const t=a(e);setTimeout((()=>{throw t}))}function i(){const e=Error();return t=>{a(t).stack+=`\nAsync stacktrace:\n${e.stack}`,o(t)}}function a(e){let t;if(e instanceof Error)return e;if(null===e)return Error("'null' was thrown as an error");if("object"==typeof e){try{t=`Object thrown as error: ${JSON.stringify(e)}`}catch(n){t=`Object thrown as error with the following properties: ${Object.keys(e)}`}return Error(t)}return void 0===e?Error("'undefined' was thrown as an error"):Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.HU)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,r.HU)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},3843:(e,t,n)=>{"use strict";n.d(t,{EB:()=>_,Kq:()=>L,P1:()=>k,Qq:()=>D,eO:()=>O,h6:()=>M,ix:()=>C,lW:()=>T,mc:()=>R,og:()=>N,ub:()=>P});var r=n(8943),o=n(2333),i=n(4896),a=n(9881),s=n(1956),l=n(271),u=Object.defineProperty,c=Object.defineProperties,f=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&m(e,n,t[n]);if(d)for(var n of d(t))h.call(t,n)&&m(e,n,t[n]);return e},g=(e,t)=>c(e,f(t));const y=(0,s.Co)(),b=(0,l.yw)(),w=(0,o.Gr)(),E=(0,o._z)();function x(e,t,n){const r={};for(let[i,a]of Object.entries(e.slots)){const{config:s}=(0,o.$w)(t,a.name),l=I(i,e,s,n);r[i]={moduleName:a.moduleName,assignedExtensions:l}}(0,i.Z)(b.getState().slots,r)||b.setState({slots:r})}function S(e,t){return{moduleName:t,name:e,attachedIds:[],config:null}}function _(e){const[t]=e.split("#");return t}function k(e,t){const n=_(t);return e.extensions[n]}function O(e){return k(y.getState(),e)}y.subscribe((e=>{x(e,w.getState(),E.getState())})),w.subscribe((e=>{x(y.getState(),e,E.getState())})),E.subscribe((e=>{x(y.getState(),w.getState(),e)}));const C=y.action(((e,t)=>{e.extensions[t.name]=g(v({},t),{instances:[]})}));function P(e,t){(0,l.qO)((n=>{const r=n.slots[e];return g(v({},n),r?{slots:g(v({},n.slots),{[e]:g(v({},r),{attachedIds:[...r.attachedIds,t]})})}:{slots:g(v({},n.slots),{[e]:g(v({},S(e)),{attachedIds:[t]})})})}))}function N(e,t){(0,l.qO)((n=>{const r=n.slots[e];return r&&r.attachedIds.includes(t)?g(v({},n),{slots:g(v({},n.slots),{[e]:g(v({},r),{attachedIds:r.attachedIds.filter((e=>e!==t))})})}):n}))}function T(e){(0,l.qO)((t=>{const n=t.slots[e];return n?g(v({},t),{slots:g(v({},t.slots),{[e]:g(v({},n),{attachedIds:[]})})}):t}))}function j(e,t,n,r){const o=t.indexOf(e);if(-1!==o)return o;if(void 0!==n)return 1e3+n;{const t=r.indexOf(e);return-1!==t?2e3+t:-1}}function L(e,t=null){const n=null!=t?t:navigator.onLine;return e.filter((e=>(0,s.gY)(n,e.online,e.offline)))}function I(e,t,n,i){var s,l,u;const c=function(e,t){const n=e.add||[],r=e.remove||[],o=e.order||[],{extensions:i}=y.getState();return[...t,...n].filter((e=>!r.includes(e))).sort(((e,n)=>{var r,a;const s=j(e,o,null==(r=i[_(e)])?void 0:r.order,t),l=j(n,o,null==(a=i[_(n)])?void 0:a.order,t);return-1===l?-1:-1===s?1:s-l}))}(n,t.slots[e].attachedIds),f=[];let d;for(let n of c){const{config:c}=(0,o.sR)(i,e,n),p=_(n),h=t.extensions[p];if(h){const e=null!=(l=null==(s=null==c?void 0:c["Display conditions"])?void 0:s.privileges)?l:h.privileges;if(e&&("string"==typeof e||Array.isArray(e)&&e.length>0)){if((0,a.Z)(d)&&(d=null==(u=(0,r.getSessionStore)().getState().session)?void 0:u.user),!d)continue;if(!(0,r.userHasAccess)(e,d))continue}f.push({id:n,name:p,moduleName:h.moduleName,config:c,meta:h.meta,online:h.online,offline:h.offline})}}return f}function M(e){const t=y.getState(),{config:n}=(0,o.IN)(e);return I(e,t,n,E.getState())}const D=y.action(((e,t,n)=>{var r;const o=null==(r=e.slots[n])?void 0:r.moduleName;if(o&&o!=t)return console.warn(`An extension slot with the name '${n}' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ${o}.`),e;if(o&&o==t)return e;if(e.slots[n])return g(v({},e),{slots:g(v({},e.slots),{[n]:g(v({},e.slots[n]),{moduleName:t})})});const i=S(n,t);return g(v({},e),{slots:g(v({},e.slots),{[n]:i})})})),R=b.action((()=>({slots:{},extensions:{}})))},5656:(e,t,n)=>{"use strict";function r(e=!0,t=!1){return o(navigator.onLine,e,t)}function o(e,t=!0,n=!1){return Boolean(e?t:n)}function i(e,t){const n=navigator.onLine?e:t;return"object"==typeof n?n:{}}n.d(t,{XZ:()=>r,gY:()=>o,yZ:()=>i})},1956:(e,t,n)=>{"use strict";n.d(t,{Co:()=>r.Co,EB:()=>o.EB,H8:()=>a.H,Kq:()=>o.Kq,P1:()=>o.P1,Qq:()=>o.Qq,XZ:()=>i.XZ,ZQ:()=>s,eO:()=>o.eO,gY:()=>i.gY,h6:()=>o.h6,ix:()=>o.ix,lW:()=>o.lW,mc:()=>o.mc,og:()=>o.og,qO:()=>r.qO,ub:()=>o.ub,yZ:()=>i.yZ,yw:()=>r.yw});var r=n(271),o=n(3843),i=n(5656),a=n(9438);const s=(0,r.Co)()},5601:(e,t,n)=>{"use strict";n.d(t,{EB:()=>r.EB,H8:()=>o.H,Kq:()=>r.Kq,Qq:()=>r.Qq,h6:()=>r.h6,ix:()=>r.ix,lW:()=>r.lW,og:()=>r.og,ub:()=>r.ub,yw:()=>i.yw});var r=n(3843),o=n(9438),i=n(271)},9438:(e,t,n)=>{"use strict";n.d(t,{H:()=>y});var r=n(6929),o=n(3843),i=n(5656),a=n(271),s=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},m=(e,t)=>l(e,u(t)),v=(e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&c)for(var r of c(e))t.indexOf(r)<0&&d.call(e,r)&&(n[r]=e[r]);return n},g=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function y(e,t,n,s){return g(this,arguments,(function*(e,t,n,s,l=(e=>e),u={}){const c=(0,o.EB)(s),f=(0,o.eO)(s);let d=null;if(e){if(!f)throw Error(`Couldn't find extension '${c}' to attach to '${t}'`);const{load:o,online:p,offline:g,meta:y,moduleName:b}=f;if((0,i.XZ)(p,g)){(0,a.qO)((r=>{const o={domElement:e,id:s,slotName:t,slotModuleName:n};return m(h({},r),{extensions:m(h({},r.extensions),{[c]:m(h({},r.extensions[c]),{instances:[...r.extensions[c].instances,o]})})})}));const f=yield o(),{default:w}=f,E=v(f,["default"]);d=(0,r.BP)(l(null!=w?w:E),m(h(h({},(0,i.yZ)(p,g)),u),{_meta:y,_extensionContext:{extensionId:s,extensionSlotName:t,extensionSlotModuleName:n,extensionModuleName:b},domElement:e}))}}else console.warn(`Tried to render ${s} into ${t} but no DOM element was available.`);return d}))}},271:(e,t,n)=>{"use strict";n.d(t,{Co:()=>s,qO:()=>l,yw:()=>u});var r=n(4896),o=n(2333),i=n(8516);const a=(0,i.jk)("extensionsInternal",{slots:{},extensions:{}}),s=()=>(0,i.zJ)("extensionsInternal",{slots:{},extensions:{}});function l(e){const t=a.getState(),n=e(t);n!==t&&a.setState(n)}const u=()=>(0,i.zJ)("extensions",{slots:{}});function c(e){const t=[];for(let n of Object.values(e.extensions))for(let e of n.instances)t.push({slotModuleName:e.slotModuleName,extensionModuleName:n.moduleName,slotName:e.slotName,extensionId:e.id});(0,r.Z)(o.R2.getState().mountedExtensions,t)||o.R2.setState({mountedExtensions:t})}c(a.getState()),a.subscribe(c)},6503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfigurableLink:()=>f.w,ErrorState:()=>p.Te,Extension:()=>f.hj,ExtensionSlot:()=>f.dT,LeftNavMenu:()=>p.cW,Type:()=>a.Dy,UserHasAccess:()=>f.Vz,age:()=>h.B_,attach:()=>l.ub,beginEditSynchronizationItem:()=>c.jp,canBeginEditSynchronizationItemsOfType:()=>c.Qd,createErrorHandler:()=>s.v,createGlobalStore:()=>d.jk,createUseStore:()=>f.NV,daysIntoYear:()=>h.v0,defineConfigSchema:()=>a.SH,defineExtensionConfigSchema:()=>a.Tj,deleteSynchronizationItem:()=>c.Gy,detach:()=>l.og,detachAll:()=>l.lW,formatDate:()=>h.p6,formatDatetime:()=>h.DZ,formatTime:()=>h.mr,generateOfflineUuid:()=>c.sF,getAppState:()=>d.W5,getAssignedExtensions:()=>l.h6,getAsyncExtensionLifecycle:()=>f.D$,getAsyncLifecycle:()=>f.Ae,getConfig:()=>a.iE,getConfigStore:()=>a.pR,getConnectedExtensions:()=>l.Kq,getCurrentOfflineMode:()=>c.vm,getDynamicOfflineDataEntries:()=>c.xA,getDynamicOfflineDataEntriesFor:()=>c.H_,getDynamicOfflineDataHandlers:()=>c.Ui,getExtensionNameFromId:()=>l.EB,getExtensionStore:()=>l.yw,getFullSynchronizationItems:()=>c.D2,getFullSynchronizationItemsFor:()=>c.WB,getGlobalStore:()=>d.zJ,getLifecycle:()=>f.tl,getOfflineDb:()=>c.aA,getOfflinePatientDataStore:()=>c.k1,getSyncLifecycle:()=>f.a$,getSynchronizationItem:()=>c.TI,getSynchronizationItems:()=>c.Q2,inRange:()=>a.Z2,interpolateString:()=>a.IT,interpolateUrl:()=>a.ll,isDesktop:()=>f.nI,isOfflineUuid:()=>c.z7,isOmrsDateStrict:()=>h.w9,isOmrsDateToday:()=>h.Yv,isSameDay:()=>h.KC,isUrl:()=>a.CB,isUrlWithTemplateParameters:()=>a.gZ,isVersionSatisfied:()=>h.LE,messageOmrsServiceWorker:()=>c.gp,navigate:()=>a.c4,offlineUuidPrefix:()=>c.a7,omrsOfflineCachingStrategyHttpHeaderName:()=>c.Rz,omrsOfflineResponseBodyHttpHeaderName:()=>c.QI,omrsOfflineResponseStatusHttpHeaderName:()=>c.$9,oneOf:()=>a.kw,parseDate:()=>h.sG,provide:()=>a.JJ,putDynamicOfflineData:()=>c.cV,putDynamicOfflineDataFor:()=>c.fR,queueSynchronizationItem:()=>c.X2,registerExtension:()=>l.ix,registerExtensionSlot:()=>l.Qq,registerOfflinePatientHandler:()=>c.dt,removeDynamicOfflineData:()=>c.pO,removeDynamicOfflineDataFor:()=>c.ME,renderExtension:()=>l.H8,reportError:()=>s.e,retry:()=>h.XD,setLeftNav:()=>p.VM,setupDynamicOfflineDataHandler:()=>c.Xc,setupOfflineSync:()=>c.Kb,showActionableNotification:()=>p.fu,showModal:()=>p.K4,showNotification:()=>p.c0,showToast:()=>p.CF,subscribeTo:()=>d.se,syncAllDynamicOfflineData:()=>c.ps,syncDynamicOfflineData:()=>c.mF,syncOfflinePatientData:()=>c.MO,toDateObjectStrict:()=>h.if,toOmrsDateFormat:()=>h.nW,toOmrsDayDateFormat:()=>h.vU,toOmrsIsoString:()=>h.vH,toOmrsTimeString:()=>h.R5,toOmrsTimeString24:()=>h.WD,toOmrsYearlessDateFormat:()=>h.R_,translateFrom:()=>h.aJ,unsetLeftNav:()=>p.$d,useAssignedExtensionIds:()=>f.YV,useAssignedExtensions:()=>f.P3,useBodyScrollLock:()=>f.yn,useConfig:()=>f.ZR,useConnectedExtensions:()=>f.BL,useConnectivity:()=>f.Y9,useExtensionSlotMeta:()=>f.qd,useExtensionStore:()=>f.jf,useLayoutType:()=>f.mr,useLocations:()=>f.Z_,useOnClickOutside:()=>f.t$,usePagination:()=>f.h0,usePatient:()=>f.lm,useSession:()=>f.kP,useStore:()=>f.oR,useStoreWithActions:()=>f.xQ,useVisit:()=>f.JF,useVisitTypes:()=>f.NN,validator:()=>a.sC,validators:()=>a.z2});var r=n(9969),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(6389);o={};for(const e in i)["default","OpenmrsFetchError","fhirBaseUrl","makeUrl","openmrsFetch","openmrsObservableFetch","restBaseUrl","sessionEndpoint","clearCurrentUser","getCurrentUser","getLoggedInUser","getSessionLocation","getSessionStore","refetchCurrentUser","setSessionLocation","userHasAccess","fetchCurrentPatient","VisitMode","VisitStatus","defaultVisitCustomRepresentation","getStartedVisit","getVisitsForPatient","saveVisit","updateVisit","getVisitTypes","toVisitTypeObject","getLocations","toLocationObject","backendDependencies"].indexOf(e)<0&&(o[e]=()=>i[e]);n.d(t,o);var a=n(330),s=n(5007),l=n(5601),u=n(4304);o={};for(const e in u)["default","OpenmrsFetchError","fhirBaseUrl","makeUrl","openmrsFetch","openmrsObservableFetch","restBaseUrl","sessionEndpoint","clearCurrentUser","getCurrentUser","getLoggedInUser","getSessionLocation","getSessionStore","refetchCurrentUser","setSessionLocation","userHasAccess","fetchCurrentPatient","VisitMode","VisitStatus","defaultVisitCustomRepresentation","getStartedVisit","getVisitsForPatient","saveVisit","updateVisit","getVisitTypes","toVisitTypeObject","getLocations","toLocationObject","backendDependencies","filterBreadcrumbs","getBreadcrumbs","getBreadcrumbsFor","registerBreadcrumb","registerBreadcrumbs","Type","defineConfigSchema","defineExtensionConfigSchema","getConfig","getConfigStore","inRange","interpolateString","interpolateUrl","isUrl","isUrlWithTemplateParameters","navigate","oneOf","provide","validator","validators","createErrorHandler","reportError","attach","detach","detachAll","getAssignedExtensions","getConnectedExtensions","getExtensionNameFromId","getExtensionStore","registerExtension","registerExtensionSlot","renderExtension"].indexOf(e)<0&&(o[e]=()=>u[e]);n.d(t,o);var c=n(5977),f=n(8878),d=n(978),p=n(759),h=n(7115)},8694:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Breakpoint:()=>p.Uo,ComponentContext:()=>f.sM,ConfigurableLink:()=>f.w,ErrorState:()=>p.Te,Extension:()=>f.hj,ExtensionSlot:()=>f.dT,LeftNavMenu:()=>p.cW,Type:()=>a.Dy,UserHasAccess:()=>f.Vz,activateOfflineCapability:()=>c.ET,age:()=>h.B_,attach:()=>l.ub,beginEditSynchronizationItem:()=>c.jp,canBeginEditSynchronizationItemsOfType:()=>c.Qd,checkStatus:()=>l.XZ,checkStatusFor:()=>l.gY,configExtensionStore:()=>a.R2,configInternalStore:()=>a.hv,createAppState:()=>d.MI,createErrorHandler:()=>s.v,createGlobalStore:()=>d.jk,createUseStore:()=>f.NV,daysIntoYear:()=>h.v0,defineConfigSchema:()=>a.SH,defineExtensionConfigSchema:()=>a.Tj,deleteSynchronizationItem:()=>c.Gy,detach:()=>l.og,detachAll:()=>l.lW,extensionStore:()=>l.ZQ,formatDate:()=>h.p6,formatDatetime:()=>h.DZ,formatTime:()=>h.mr,generateOfflineUuid:()=>c.sF,getAppState:()=>d.W5,getAssignedExtensions:()=>l.h6,getAsyncExtensionLifecycle:()=>f.D$,getAsyncLifecycle:()=>f.Ae,getConfig:()=>a.iE,getConfigInternal:()=>a.bs,getConfigStore:()=>a.pR,getConnectedExtensions:()=>l.Kq,getCurrentOfflineMode:()=>c.vm,getCustomProps:()=>l.yZ,getDynamicOfflineDataEntries:()=>c.xA,getDynamicOfflineDataEntriesFor:()=>c.H_,getDynamicOfflineDataHandlers:()=>c.Ui,getExtensionConfig:()=>a.qf,getExtensionConfigFromStore:()=>a.sR,getExtensionInternalStore:()=>l.Co,getExtensionNameFromId:()=>l.EB,getExtensionRegistration:()=>l.eO,getExtensionRegistrationFrom:()=>l.P1,getExtensionSlotConfig:()=>a.IN,getExtensionSlotConfigFromStore:()=>a.$w,getExtensionSlotsConfigStore:()=>a.Gr,getExtensionStore:()=>l.yw,getExtensionsConfigStore:()=>a._z,getFullSynchronizationItems:()=>c.D2,getFullSynchronizationItemsFor:()=>c.WB,getGlobalStore:()=>d.zJ,getLifecycle:()=>f.tl,getOfflineDb:()=>c.aA,getOfflinePatientDataStore:()=>c.k1,getOfflineSynchronizationStore:()=>c.vs,getOmrsServiceWorker:()=>c.J_,getSyncLifecycle:()=>f.a$,getSynchronizationItem:()=>c.TI,getSynchronizationItems:()=>c.Q2,getSynchronizationItemsFor:()=>c.Jj,implementerToolsConfigStore:()=>a.HN,inRange:()=>a.Z2,integrateBreakpoints:()=>p.Nl,interpolateString:()=>a.IT,interpolateUrl:()=>a.ll,isDesktop:()=>f.nI,isOfflineUuid:()=>c.z7,isOmrsDateStrict:()=>h.w9,isOmrsDateToday:()=>h.Yv,isSameDay:()=>h.KC,isUrl:()=>a.CB,isUrlWithTemplateParameters:()=>a.gZ,isVersionSatisfied:()=>h.LE,messageOmrsServiceWorker:()=>c.gp,navigate:()=>a.c4,offlineUuidPrefix:()=>c.a7,omrsOfflineCachingStrategyHttpHeaderName:()=>c.Rz,omrsOfflineResponseBodyHttpHeaderName:()=>c.QI,omrsOfflineResponseStatusHttpHeaderName:()=>c.$9,oneOf:()=>a.kw,openmrsComponentDecorator:()=>f.Bq,parseDate:()=>h.sG,processConfig:()=>a.f6,provide:()=>a.JJ,putDynamicOfflineData:()=>c.cV,putDynamicOfflineDataFor:()=>c.fR,queueSynchronizationItem:()=>c.X2,queueSynchronizationItemFor:()=>c.PQ,registerExtension:()=>l.ix,registerExtensionSlot:()=>l.Qq,registerOfflinePatientHandler:()=>c.dt,registerOmrsServiceWorker:()=>c.KS,removeDynamicOfflineData:()=>c.pO,removeDynamicOfflineDataFor:()=>c.ME,renderActionableNotifications:()=>p.zW,renderExtension:()=>l.H8,renderInlineNotifications:()=>p.Pi,renderLoadingSpinner:()=>p.iY,renderModals:()=>p.Oe,renderToasts:()=>p.Sn,reportError:()=>s.e,reset:()=>l.mc,retry:()=>h.XD,runSynchronization:()=>c.HL,setCurrentOfflineMode:()=>c.U_,setLeftNav:()=>p.VM,setupDynamicOfflineDataHandler:()=>c.Xc,setupOfflineSync:()=>c.Kb,showActionableNotification:()=>p.fu,showModal:()=>p.K4,showNotification:()=>p.c0,showToast:()=>p.CF,subscribeTo:()=>d.se,syncAllDynamicOfflineData:()=>c.ps,syncDynamicOfflineData:()=>c.mF,syncOfflinePatientData:()=>c.MO,temporaryConfigStore:()=>a.DK,toDateObjectStrict:()=>h.if,toOmrsDateFormat:()=>h.nW,toOmrsDayDateFormat:()=>h.vU,toOmrsIsoString:()=>h.vH,toOmrsTimeString:()=>h.R5,toOmrsTimeString24:()=>h.WD,toOmrsYearlessDateFormat:()=>h.R_,translateFrom:()=>h.aJ,unsetLeftNav:()=>p.$d,updateInternalExtensionStore:()=>l.qO,useAssignedExtensionIds:()=>f.YV,useAssignedExtensions:()=>f.P3,useBodyScrollLock:()=>f.yn,useConfig:()=>f.ZR,useConnectedExtensions:()=>f.BL,useConnectivity:()=>f.Y9,useExtensionInternalStore:()=>f.TM,useExtensionSlot:()=>f.p8,useExtensionSlotMeta:()=>f.qd,useExtensionStore:()=>f.jf,useForceUpdate:()=>f.NW,useLayoutType:()=>f.mr,useLocations:()=>f.Z_,useOnClickOutside:()=>f.t$,usePagination:()=>f.h0,usePatient:()=>f.lm,useSession:()=>f.kP,useStore:()=>f.oR,useStoreWithActions:()=>f.xQ,useVisit:()=>f.JF,useVisitTypes:()=>f.NN,validator:()=>a.sC,validators:()=>a.z2});var r=n(8943),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(6389);o={};for(const e in i)["default","OpenmrsFetchError","fhirBaseUrl","makeUrl","openmrsFetch","openmrsObservableFetch","restBaseUrl","sessionEndpoint","setupApiModule","clearCurrentUser","getCurrentUser","getLoggedInUser","getSessionLocation","getSessionStore","refetchCurrentUser","setSessionLocation","userHasAccess","fetchCurrentPatient","VisitMode","VisitStatus","defaultVisitCustomRepresentation","getStartedVisit","getVisitsForPatient","saveVisit","updateVisit","getVisitTypes","toVisitTypeObject","getLocations","toLocationObject","backendDependencies"].indexOf(e)<0&&(o[e]=()=>i[e]);n.d(t,o);var a=n(2333),s=n(5007),l=n(1956),u=n(2270);o={};for(const e in u)["default","OpenmrsFetchError","fhirBaseUrl","makeUrl","openmrsFetch","openmrsObservableFetch","restBaseUrl","sessionEndpoint","setupApiModule","clearCurrentUser","getCurrentUser","getLoggedInUser","getSessionLocation","getSessionStore","refetchCurrentUser","setSessionLocation","userHasAccess","fetchCurrentPatient","VisitMode","VisitStatus","defaultVisitCustomRepresentation","getStartedVisit","getVisitsForPatient","saveVisit","updateVisit","getVisitTypes","toVisitTypeObject","getLocations","toLocationObject","backendDependencies","filterBreadcrumbs","getBreadcrumbs","getBreadcrumbsFor","registerBreadcrumb","registerBreadcrumbs","Type","configExtensionStore","configInternalStore","defineConfigSchema","defineExtensionConfigSchema","getConfig","getConfigInternal","getConfigStore","getExtensionConfig","getExtensionConfigFromStore","getExtensionSlotConfig","getExtensionSlotConfigFromStore","getExtensionSlotsConfigStore","getExtensionsConfigStore","implementerToolsConfigStore","inRange","interpolateString","interpolateUrl","isUrl","isUrlWithTemplateParameters","navigate","oneOf","processConfig","provide","temporaryConfigStore","validator","validators","createErrorHandler","reportError","attach","checkStatus","checkStatusFor","detach","detachAll","extensionStore","getAssignedExtensions","getConnectedExtensions","getCustomProps","getExtensionInternalStore","getExtensionNameFromId","getExtensionRegistration","getExtensionRegistrationFrom","getExtensionStore","registerExtension","registerExtensionSlot","renderExtension","reset","updateInternalExtensionStore"].indexOf(e)<0&&(o[e]=()=>u[e]);n.d(t,o);var c=n(8512),f=n(4008),d=n(8516),p=n(6344),h=n(7115)},6217:(e,t,n)=>{"use strict";n.d(t,{Al:()=>o,BW:()=>a,HU:()=>p,L0:()=>l,NQ:()=>m,V9:()=>v,XS:()=>i,dY:()=>u,id:()=>g,xp:()=>h});const r="openmrs:connectivity-changed";function o(e){window.dispatchEvent(new CustomEvent(r,{detail:{online:e}}))}function i(e){const t=t=>e(t.detail);return window.addEventListener(r,t),()=>window.removeEventListener(r,t)}function a(e){return e({online:navigator.onLine}),i(e)}const s="openmrs:precache-static-dependencies";function l(e={}){window.dispatchEvent(new CustomEvent(s,{detail:e}))}function u(e){const t=t=>e(t.detail);return window.addEventListener(s,t),()=>window.removeEventListener(s,t)}const c="openmrs:notification-shown",f="openmrs:actionable-notification-shown",d="openmrs:toast-shown";function p(e){window.dispatchEvent(new CustomEvent(c,{detail:e}))}function h(e){window.dispatchEvent(new CustomEvent(f,{detail:e}))}function m(e){const t=t=>e(t.detail);return window.addEventListener(c,t),()=>window.removeEventListener(c,t)}function v(e){const t=t=>e(t.detail);return window.addEventListener(f,t),()=>window.removeEventListener(f,t)}function g(e){const t=t=>e(t.detail);return window.addEventListener(d,t),()=>window.removeEventListener(d,t)}},9704:(e,t,n)=>{"use strict";function r(e){window.openmrsBase=e.apiUrl,window.spaBase=e.spaPath,window.spaEnv=e.env||"production",window.spaVersion="4.3.2-pre.662-20230406",window.getOpenmrsSpaBase=()=>`${window.spaBase}/`}function o(){window.copyText=e=>{const t=window.getSelection();if(t){const n=document.createRange();n.selectNode(e),t.removeAllRanges(),t.addRange(n),document.execCommand("copy"),t.removeAllRanges()}}}n.d(t,{P:()=>o,U:()=>r})},2270:(e,t,n)=>{"use strict";n.r(t),n.d(t,{dispatchActionableNotificationShown:()=>r.xp,dispatchConnectivityChanged:()=>r.Al,dispatchNotificationShown:()=>r.HU,dispatchPrecacheStaticDependencies:()=>r.L0,setupPaths:()=>o.U,setupUtils:()=>o.P,subscribeActionableNotificationShown:()=>r.V9,subscribeConnectivity:()=>r.BW,subscribeConnectivityChanged:()=>r.XS,subscribeNotificationShown:()=>r.NQ,subscribePrecacheStaticDependencies:()=>r.dY,subscribeToastShown:()=>r.id});var r=n(6217),o=n(9704),i=n(799),a={};for(const e in i)["default","dispatchActionableNotificationShown","dispatchConnectivityChanged","dispatchNotificationShown","dispatchPrecacheStaticDependencies","subscribeActionableNotificationShown","subscribeConnectivity","subscribeConnectivityChanged","subscribeNotificationShown","subscribePrecacheStaticDependencies","subscribeToastShown","setupPaths","setupUtils"].indexOf(e)<0&&(a[e]=()=>i[e]);n.d(t,a)},4304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{subscribeActionableNotificationShown:()=>r.V9,subscribeConnectivity:()=>r.BW,subscribeConnectivityChanged:()=>r.XS,subscribeNotificationShown:()=>r.NQ,subscribePrecacheStaticDependencies:()=>r.dY,subscribeToastShown:()=>r.id});var r=n(6217),o=n(799),i={};for(const e in o)["default","subscribeConnectivity","subscribeConnectivityChanged","subscribePrecacheStaticDependencies","subscribeNotificationShown","subscribeActionableNotificationShown","subscribeToastShown"].indexOf(e)<0&&(i[e]=()=>o[e]);n.d(t,i)},799:()=>{},3695:(e,t,n)=>{"use strict";n.d(t,{H_:()=>f,ME:()=>m,Ui:()=>l,Xc:()=>u,cV:()=>d,fR:()=>p,mF:()=>g,pO:()=>h,ps:()=>v,xA:()=>c});var r=n(8943),o=n(8102),i=n(1191),a=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const s={};function l(){return Object.values(s)}function u(e){s[e.id]&&console.warn(`[setupDynamicOfflineDataHandler] Another second handler with the ID "${e.id}" was registered. This handler will override the previous one. This could be unintended as the previous handler might run different flows than the newly registered one. If this is the case, ensure that you are setting up the handlers with different IDs.`),s[e.id]=e}function c(e){return a(this,null,(function*(){const t=yield y();return yield f(t,e)}))}function f(e,t){return a(this,null,(function*(){const n=t?{type:t,users:e}:{users:e},r=new i.A;return yield r.dynamicOfflineData.where(n).toArray().catch(o.ZP.errnames.DatabaseClosed,(()=>[]))}))}function d(e,t){return a(this,null,(function*(){const n=yield y();return yield p(n,e,t)}))}function p(e,t,n){return a(this,null,(function*(){const r=new i.A,a=yield r.dynamicOfflineData.get({type:t,identifier:n}).catch(o.ZP.errnames.DatabaseClosed,(()=>{}));a?a.users.includes(e)||(yield r.dynamicOfflineData.update(a.id,{users:[...a.users,e]}).catch(o.ZP.errnames.DatabaseClosed)):yield r.dynamicOfflineData.add({users:[e],type:t,identifier:n}).catch(o.ZP.errnames.DatabaseClosed)}))}function h(e,t){return a(this,null,(function*(){const n=yield y();return yield m(n,e,t)}))}function m(e,t,n){return a(this,null,(function*(){const r=new i.A,a=yield r.dynamicOfflineData.get({type:t,identifier:n,users:e}).catch(o.ZP.errnames.DatabaseClosed,(()=>{}));a&&(a.users.length>1?yield r.dynamicOfflineData.update(a.id,{users:a.users.filter((t=>t!==e))}).catch(o.ZP.errnames.DatabaseClosed):yield r.dynamicOfflineData.delete(a.id).catch(o.ZP.errnames.DatabaseClosed))}))}function v(e,t){return a(this,null,(function*(){const n=yield c(e);yield Promise.all(n.map((e=>a(this,null,(function*(){return g(e.type,e.identifier,t)})))))}))}function g(e,t,n){return a(this,null,(function*(){yield d(e,t);const r=new i.A,s=yield y(),u=yield r.dynamicOfflineData.get({type:e,identifier:t}).catch(o.ZP.errnames.DatabaseClosed,(()=>{})),c=l().filter((t=>t.type===e));if(!u)return;const f=yield Promise.all(c.map((e=>a(this,null,(function*(){var r,o;try{return e.sync(t,n),{id:e.id,error:void 0}}catch(t){const n=null!=(o=null==(r=t.message)?void 0:r.toString())?o:t.toString();return{id:e.id,error:n}}}))))),p=f.filter((e=>!e.error)).map((e=>e.id)),h=f.filter((e=>e.error)).map((e=>e.id)),m=f.filter((e=>e.error)).map((e=>({handlerId:e.id,message:e.error}))),v={syncedOn:new Date,syncedBy:s,succeededHandlers:p,erroredHandlers:h,errors:m};u.id&&(yield r.dynamicOfflineData.update(u.id,{syncState:v}).catch(o.ZP.errnames.DatabaseClosed))}))}function y(){return a(this,null,(function*(){const e=(yield(0,r.getLoggedInUser)()).uuid;if(!e)throw new Error("Using the dynamic offline data API requires a logged in user.");return e}))}},8512:(e,t,n)=>{"use strict";n.d(t,{$9:()=>o.$9,D2:()=>s.D2,ET:()=>a.ET,Gy:()=>s.Gy,HL:()=>s.HL,H_:()=>c.H_,J_:()=>r.J,Jj:()=>s.Jj,KS:()=>r.K,Kb:()=>s.H_,ME:()=>c.ME,MO:()=>u.MO,PQ:()=>s.PQ,Q2:()=>s.Q2,QI:()=>o.QI,Qd:()=>s.Qd,Rz:()=>o.Rz,TI:()=>s.TI,U_:()=>a.U_,Ui:()=>c.Ui,WB:()=>s.WB,X2:()=>s.X2,Xc:()=>c.Xc,a7:()=>l.a7,aA:()=>f.a,cV:()=>c.cV,dt:()=>u.dt,fR:()=>c.fR,gp:()=>i.g,jp:()=>s.jp,k1:()=>u.k1,mF:()=>c.mF,pO:()=>c.pO,ps:()=>c.ps,sF:()=>l.sF,vm:()=>a.vm,vs:()=>s.vs,xA:()=>c.xA,z7:()=>l.z7});var r=n(2535),o=n(7267),i=n(790),a=n(9959),s=n(9186),l=n(6892),u=n(6858),c=n(3695),f=n(1191)},9959:(e,t,n)=>{"use strict";n.d(t,{ET:()=>l,U_:()=>s,vm:()=>a});var r=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const o="openmrs3:offline-mode";let i="unavailable";function a(){return{current:i,notAvailable:"unavailable"===i,active:"on"===i}}function s(e){"unavailable"!==i&&"unavailable"!==e&&(localStorage.setItem(o,"on"===e?"active":"disabled"),i=e)}function l(){return r(this,null,(function*(){(yield function(){return r(this,null,(function*(){return(yield function(){return r(this,null,(function*(){return new Promise((e=>{const t=indexedDB.open("test");t.onerror=()=>e(!0),t.onsuccess=()=>e(!1)}))}))}())||(yield function(){return r(this,null,(function*(){return!window.indexedDB}))}())||(yield function(){return r(this,null,(function*(){const e=window.sessionStorage;try{e.setItem("someKeyHere","test"),e.removeItem("someKeyHere")}catch(t){if(t.code===DOMException.QUOTA_EXCEEDED_ERR&&0===e.length)return!0}return!1}))}())}))}())||(i="active"===localStorage.getItem(o)?"on":"off"),navigator.onLine}))}},1191:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,a:()=>i});var r=n(8102);class o extends r.ZP{constructor(){super("EsmOffline"),this.version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),this.syncQueue=this.table("syncQueue"),this.dynamicOfflineData=this.table("dynamicOfflineData")}}function i(){return new o}},6858:(e,t,n)=>{"use strict";n.d(t,{MO:()=>l,dt:()=>s,k1:()=>a});var r=n(8516),o=n(3695);const i=(0,r.jk)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}});function a(){return u(),i}function s(e,t){u(),(0,o.Xc)({type:"patient",displayName:t.displayName,id:e,isSynced:()=>Promise.resolve(!0),sync:(e,n)=>t.onOfflinePatientAdded({patientUuid:e,signal:null!=n?n:(new AbortController).signal})})}function l(e){return t=this,null,n=function*(){u(),yield(0,o.mF)("patient",e)},new Promise(((e,r)=>{var o=e=>{try{a(n.next(e))}catch(e){r(e)}},i=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((n=n.apply(t,null)).next())}));var t,n}function u(){console.warn("The offline patient API has been deprecated and will be removed in a future release. To prevent future crashes, the functions remain available for the moment, but any invocations should be migrated ASAP.")}},5977:(e,t,n)=>{"use strict";n.d(t,{$9:()=>a.$9,D2:()=>l.D2,Gy:()=>l.Gy,H_:()=>u.H_,Kb:()=>l.H_,ME:()=>u.ME,MO:()=>o.MO,Q2:()=>l.Q2,QI:()=>a.QI,Qd:()=>l.Qd,Rz:()=>a.Rz,TI:()=>l.TI,Ui:()=>u.Ui,WB:()=>l.WB,X2:()=>l.X2,Xc:()=>u.Xc,a7:()=>s.a7,aA:()=>c.a,cV:()=>u.cV,dt:()=>o.dt,fR:()=>u.fR,gp:()=>i.g,jp:()=>l.jp,k1:()=>o.k1,mF:()=>u.mF,pO:()=>u.pO,ps:()=>u.ps,sF:()=>s.sF,vm:()=>r.vm,xA:()=>u.xA,z7:()=>s.z7});var r=n(9959),o=n(6858),i=n(790),a=n(7267),s=n(6892),l=n(9186),u=n(3695),c=n(1191)},7267:(e,t,n)=>{"use strict";n.d(t,{$9:()=>o,QI:()=>r,Rz:()=>i});const r="x-omrs-offline-response-body",o="x-omrs-offline-response-status",i="x-omrs-offline-caching-strategy"},790:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(2535);function o(e){return t=this,null,n=function*(){const t=yield(0,r.J)();return t?yield t.messageSW(e):{success:!1,result:void 0,error:"No service worker has been registered. This is typically the case when the application has been built without offline-related features."}},new Promise(((e,r)=>{var o=e=>{try{a(n.next(e))}catch(e){r(e)}},i=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((n=n.apply(t,null)).next())}));var t,n}},2535:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,K:()=>m});try{self["workbox:window:6.5.3"]&&_()}catch(r){}function r(e,t){return new Promise((function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])}))}function o(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 i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(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)?o(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}try{self["workbox:core:6.5.3"]&&_()}catch(r){}var a=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))};function s(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var l=function(e,t){this.type=e,Object.assign(this,t)};function u(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function c(){}var f={type:"SKIP_WAITING"};function d(e,t){if(!t)return e&&e.then?e.then(c):Promise.resolve()}var p=function(e){var t,n;function o(t,n){var r,o;return void 0===n&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new a,r.en=new a,r.on=new a,r.un=0,r.an=new Set,r.cn=function(){var e=r.fn,t=e.installing;r.tn>0||!s(t.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=t,e.removeEventListener("updatefound",r.cn)):(r.hn=t,r.an.add(t),r.rn.resolve(t)),++r.tn,t.addEventListener("statechange",r.ln)},r.ln=function(e){var t=r.fn,n=e.target,o=n.state,i=n===r.vn,a={sw:n,isExternal:i,originalEvent:e};!i&&r.mn&&(a.isUpdate=!0),r.dispatchEvent(new l(o,a)),"installed"===o?r.wn=self.setTimeout((function(){"installed"===o&&t.waiting===n&&r.dispatchEvent(new l("waiting",a))}),200):"activating"===o&&(clearTimeout(r.wn),i||r.en.resolve(n))},r.dn=function(e){var t=r.hn,n=t!==navigator.serviceWorker.controller;r.dispatchEvent(new l("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:r.mn})),n||r.on.resolve(t)},r.gn=(o=function(e){var t=e.data,n=e.ports,o=e.source;return u(r.getSW(),(function(){r.an.has(o)&&r.dispatchEvent(new l("message",{data:t,originalEvent:e,ports:n,sw:o}))}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(o.apply(this,e))}catch(e){return Promise.reject(e)}}),r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener("message",r.gn),r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i,c=o.prototype;return c.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r=this;return function(e,t){var n=e();return n&&n.then?n.then(t):t()}((function(){if(!n&&"complete"!==document.readyState)return d(new Promise((function(e){return window.addEventListener("load",e)})))}),(function(){return r.mn=Boolean(navigator.serviceWorker.controller),r.yn=r.pn(),u(r.bn(),(function(e){r.fn=e,r.yn&&(r.hn=r.yn,r.en.resolve(r.yn),r.on.resolve(r.yn),r.yn.addEventListener("statechange",r.ln,{once:!0}));var t=r.fn.waiting;return t&&s(t.scriptURL,r.sn.toString())&&(r.hn=t,Promise.resolve().then((function(){r.dispatchEvent(new l("waiting",{sw:t,wasWaitingBeforeRegister:!0}))})).then((function(){}))),r.hn&&(r.rn.resolve(r.hn),r.an.add(r.hn)),r.fn.addEventListener("updatefound",r.cn),navigator.serviceWorker.addEventListener("controllerchange",r.dn),r.fn}))}))}catch(e){return Promise.reject(e)}},c.update=function(){try{return this.fn?d(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},c.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},c.messageSW=function(e){try{return u(this.getSW(),(function(t){return r(t,e)}))}catch(e){return Promise.reject(e)}},c.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&r(this.fn.waiting,f)},c.pn=function(){var e=navigator.serviceWorker.controller;return e&&s(e.scriptURL,this.sn.toString())?e:void 0},c.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return u(navigator.serviceWorker.register(e.sn,e.nn),(function(t){return e.un=performance.now(),t}))}),(function(e){throw e}))}catch(e){return Promise.reject(e)}},(i=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(o.prototype,i),o}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,n=i(this.Sn(e.type));!(t=n()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}());let h;function m(e,t){if(void 0!==h)return console.warn(`The application's Service Worker has already been registered. The new service worker at ${e} will not be registered.`),h;if(!("serviceWorker"in navigator))throw new Error("Registering the Service Worker is not possible due to missing browser capabilities.");const n=new p(e,t);return h=n.register().then((()=>n.controlling.then((()=>n)))),h}function v(){return null!=h?h:Promise.resolve(void 0)}},9186:(e,t,n)=>{"use strict";n.d(t,{D2:()=>P,Gy:()=>L,HL:()=>w,H_:()=>I,Jj:()=>k,PQ:()=>S,Q2:()=>C,Qd:()=>T,TI:()=>N,WB:()=>O,X2:()=>_,jp:()=>j,vs:()=>b});var r=n(8102),o=n(8943),i=n(8516),a=n(1191),s=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},m=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const v=new a.A,g={},y=(0,i.jk)("offline-synchronization",{});function b(){return y}function w(){return m(this,null,(function*(){if(y.getState().synchronization)return;const e=yield v.syncQueue.count(),t={},n=Object.entries(g),r=n.length,o={},i=new AbortController,a=()=>{const e=y.getState().synchronization;var t,n;y.setState({synchronization:(t=h({},e),n={pendingCount:e.pendingCount-1},l(t,u(n)))})};try{y.setState({synchronization:{totalCount:e,pendingCount:e,abortController:i}});for(let e=0;e<r&&n.length>0;e++)for(let e=n.length;e--;){const[r,s]=n[e],l=s.dependsOn.map((e=>t[e]));l.every(Boolean)&&(o[r]={},yield Promise.all(l),t[r]=E(s,o,i,a),n.splice(e,1))}yield Promise.allSettled(Object.values(t))}finally{y.setState({synchronization:void 0})}}))}function E(e,t,n,r){return m(this,arguments,(function*({type:e,dependsOn:t,process:n},r,o,i){var a;const s=[],l=[],u=yield x();yield v.syncQueue.where({type:e,userId:u}).each(((e,t)=>{s.push([t.primaryKey,e.content,e.descriptor]),l.push(e.content)}));for(let c=0;c<s.length;c++){const[f,d,{id:p,dependencies:h=[]}]=s[c];try{const a=yield n(d,{abort:o,index:c,items:l,userId:u,dependencies:h.map((({id:e,type:n})=>t.includes(n)?r[n][e]:void 0))});void 0!==p&&(r[e][p]=a),yield v.syncQueue.delete(f)}catch(e){yield v.syncQueue.update(f,{lastError:{name:null==e?void 0:e.name,message:null!=(a=null==e?void 0:e.message)?a:null==e?void 0:e.toString()}})}finally{i()}}}))}function x(){return m(this,null,(function*(){const e=yield(0,o.getLoggedInUser)();return(null==e?void 0:e.uuid)||"*"}))}function S(e,t,n,o){return m(this,null,(function*(){const i=o&&o.id;return void 0!==i&&(yield v.syncQueue.where({type:t,userId:e}).filter((e=>(null==e?void 0:e.descriptor.id)===i)).delete().catch(r.ZP.errnames.DatabaseClosed)),yield v.syncQueue.add({type:t,content:n,userId:e,descriptor:o||{},createdOn:new Date}).catch(r.ZP.errnames.DatabaseClosed,(()=>-1))}))}function _(e,t,n){return m(this,null,(function*(){const r=yield x();return yield S(r,e,t,n)}))}function k(e,t){return m(this,null,(function*(){return(yield O(e,t)).map((e=>e.content))}))}function O(e,t){return m(this,null,(function*(){const n=t?{type:t,userId:e}:{userId:e};return yield v.syncQueue.where(n).toArray().catch(r.ZP.errnames.DatabaseClosed,(()=>[]))}))}function C(e){return m(this,null,(function*(){const t=yield x();return yield k(t,e)}))}function P(e){return m(this,null,(function*(){const t=yield x();return yield O(t,e)}))}function N(e){return m(this,null,(function*(){return yield v.syncQueue.get(e).catch(r.ZP.errnames.DatabaseClosed,(()=>{}))}))}function T(e){var t;return!!(null==(t=g[e])?void 0:t.options.onBeginEditSyncItem)}function j(e){return m(this,null,(function*(){var t;const n=yield N(e);if(!n)throw new Error(`No sync item with the ID ${e} exists.`);const r=null==(t=g[n.type])?void 0:t.options.onBeginEditSyncItem;if(!r)throw new Error(`A sync item with the ID ${e} exists, but the associated handler (if one exists) doesn't support editing the item. You can avoid this error by either verifying that sync items of this type can be edited via the "canEditSynchronizationItemsOfType(type: string)" function or alternatively ensure that the synchronizaton handler for sync items of type "${n.type}" supports editing items.`);r(n)}))}function L(e){return m(this,null,(function*(){yield v.syncQueue.delete(e).catch(r.ZP.errnames.DatabaseClosed)}))}function I(e,t,n,r={}){g[e]={type:e,dependsOn:t,process:n,options:r}}},6892:(e,t,n)=>{"use strict";n.d(t,{sF:()=>c,z7:()=>f,a7:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));const l=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(o)},u="OFFLINE+";function c(){return u+l()}function f(e){return e.startsWith(u)}},208:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(7959);const o=n.n(r)().createContext({moduleName:""})},2455:(e,t,n)=>{"use strict";n.d(t,{w:()=>f});var r=n(7959),o=n.n(r),i=n(2333),a=Object.defineProperty,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function f(e){var t=e,{to:n,templateParams:r,children:a}=t,f=((e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&u.call(e,r)&&(n[r]=e[r]);return n})(t,["to","templateParams","children"]);return o().createElement("a",((e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&c(e,n,t[n]);return e})({onClick:e=>function(e,t,n){e.metaKey||e.ctrlKey||e.shiftKey||0!=e.button||(e.preventDefault(),(0,i.c4)({to:t,templateParams:n}))}(e,n,r),href:(0,i.ll)(n,r)},f),a)}},5146:(e,t,n)=>{"use strict";n.d(t,{h:()=>p});var r=n(1956),o=n(7959),i=n.n(o),a=n(4008),s=Object.defineProperty,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&f(e,n,t[n]);return e};const p=e=>{var t=e,{state:n,children:s,wrap:f}=t,p=((e,t)=>{var n={};for(var r in e)u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&l)for(var r of l(e))t.indexOf(r)<0&&c.call(e,r)&&(n[r]=e[r]);return n})(t,["state","children","wrap"]);const[h,m]=(0,o.useState)(),{extension:v}=(0,o.useContext)(a.sM),g=(0,o.useRef)(null),y=(0,o.useRef)(null);(0,o.useEffect)((()=>{f&&console.warn(`'wrap' prop of Extension is being used ${(null==v?void 0:v.extensionId)?`by ${v.extensionId} in ${v.extensionSlotName}`:""}. This will be removed in a future release.`)}),[]);const b=(0,o.useCallback)((e=>{m(e)}),[m]);(0,o.useEffect)((()=>{if(null!=h&&v&&!g.current)return(0,r.H8)(h,v.extensionSlotName,v.extensionSlotModuleName,v.extensionId,void 0,n).then((e=>{g.current=e})),()=>{if(g&&g.current)switch(g.current.getStatus()){case"MOUNTING":g.current.mountPromise.then(g.current.unmount);break;case"MOUNTED":g.current.unmount();break;case"UPDATING":y.current&&y.current.then((()=>{g.current&&"MOUNTED"===g.current.getStatus()&&g.current.unmount()}))}}}),[null==v?void 0:v.extensionSlotName,null==v?void 0:v.extensionId,null==v?void 0:v.extensionSlotModuleName,h]),(0,o.useEffect)((()=>(g.current&&g.current.update&&("MOUNTED"===g.current.getStatus()?g.current.update(d({},n)):"MOUNTING"===g.current.getStatus()&&g.current.mountPromise.then((()=>{g.current&&g.current.update&&(y.current=g.current.update(d({},n)))}))),()=>{y.current=null})),[n]);const w=i().createElement("div",d({ref:b,"data-extension-id":null==v?void 0:v.extensionId,style:{position:"relative"}},p));return"function"!=typeof s||i().isValidElement(s)?v&&f?f(w,v):w:i().createElement(i().Fragment,null,s(w,v))}},9287:(e,t,n)=>{"use strict";n.d(t,{d:()=>g});var r=n(7959),o=n.n(r),i=n(208),a=n(5146),s=n(2915),l=Object.defineProperty,u=Object.defineProperties,c=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&h(e,n,t[n]);if(f)for(var n of f(t))p.call(t,n)&&h(e,n,t[n]);return e};function v(e){return e}function g(e){var t=e,{name:n,extensionSlotName:l,select:h=v,children:g,state:y,style:b}=t,w=((e,t)=>{var n={};for(var r in e)d.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))t.indexOf(r)<0&&p.call(e,r)&&(n[r]=e[r]);return n})(t,["name","extensionSlotName","select","children","state","style"]);if(g&&y)throw new Error("Both children and state have been provided. If children are provided, the state must be passed as a prop to the `Extension` component.");const E=null!=n?n:l,x=(0,r.useRef)(null),{extensions:S,extensionSlotModuleName:_}=(0,s.p)(E),k=(0,r.useMemo)((()=>h(S)),[h,S]),O=(0,r.useMemo)((()=>{if("function"==typeof g&&!o().isValidElement(g))return k.map((e=>g(e)))}),[g,k]);return o().createElement("div",m({ref:x,"data-extension-slot-name":E,"data-extension-slot-module-name":_,style:(C=m({},b),P={position:"relative"},u(C,c(P)))},w),E&&k.map(((e,t)=>{var n,r;return o().createElement(i.s.Provider,{key:e.id,value:{moduleName:_,extension:{extensionId:e.id,extensionSlotName:E,extensionSlotModuleName:_}}},null!=(r=null!=(n=null==O?void 0:O[t])?n:"function"!=typeof g?g:null)?r:o().createElement(a.h,{state:y}))})));var C,P}},27:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(8943),o=n(7959),i=n.n(o);const a=({privilege:e,fallback:t,children:n})=>{const[a,s]=(0,o.useState)(null);return(0,o.useEffect)((()=>{const e=(0,r.getCurrentUser)({includeAuthStatus:!1}).subscribe(s);return()=>e.unsubscribe()}),[]),a&&(0,r.userHasAccess)(e,a)?i().createElement(i().Fragment,null,n):t?i().createElement(i().Fragment,null,t):null}},1868:(e,t,n)=>{"use strict";n.d(t,{N:()=>c});var r=n(7959),o=Object.defineProperty,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&l(e,n,t[n]);if(i)for(var n of i(t))s.call(t,n)&&l(e,n,t[n]);return e};function c(e){return function(t){const[n,o]=(0,r.useState)(e.getState());(0,r.useEffect)((()=>e.subscribe((e=>o(e)))),[]);let i={};return t&&(i=(0,r.useMemo)((()=>function(e,t){"function"==typeof t&&(t=t(e));const n={};for(let r in t)n[r]=e.action(t[r]);return n}(e,t)),[e,t])),u(u({},n),i)}}},1989:(e,t,n)=>{"use strict";n.d(t,{D$:()=>O,Ae:()=>_,tl:()=>S,a$:()=>k});var r=n(7959),o=n.n(r),i=n(7299);function a(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(c(n)));return function(){var e=n(t);if(!(e instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(c(e)));return e}}var d=null;try{d=require("react").createContext()}catch(e){}var p={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,renderType:"createRoot",errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}};function h(e){if("object"!==l(e))throw new Error("single-spa-react requires a configuration object");var t=s(s({},p),e);if(!t.React)throw new Error("single-spa-react must be passed opts.React");if(!t.ReactDOM&&!t.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(!t.rootComponent&&!t.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(t.errorBoundary&&"function"!=typeof t.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!d&&t.React.createContext&&(d=t.React.createContext()),t.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(t);var n={bootstrap:m.bind(null,t),mount:v.bind(null,t),unmount:g.bind(null,t)};return t.parcelCanUpdate&&(n.update=y.bind(null,t)),n}function m(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then((function(t){e.rootComponent=t}))}function v(e,t){return new Promise((function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=E(e,t,(function(){n(this)})),i=f(e,t)(),a=function(e){var t=e.renderType,n=e.elementToRender,r=e.domElement,o=e.reactDom[t];if("function"!=typeof o)throw new Error('renderType "'.concat(t,'" did not return a function.'));switch(t){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var i=o(r);return i.render(n),i;case"hydrateRoot":return o(r,n);default:return o(n,r),null}}({elementToRender:o,domElement:i,reactDom:b(e),renderType:w(e)});e.domElements[t.name]=i,e.renderResults[t.name]=a}))}function g(e,t){return new Promise((function(n){e.unmountFinished=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():b(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]}))}function y(e,t){return new Promise((function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=E(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=f(e,t)();b(e).render(r,i)}}))}function b(e){return e.ReactDOMClient||e.ReactDOM}function w(e){return"function"==typeof e.renderType?e.renderType():e.renderType}function E(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=d?e.React.createElement(d.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),e.React.createElement(e.SingleSpaRoot,s(s({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach((function(e){return e()})),delete e.updateResolves[t.name])},unmountFinished:function(){setTimeout(e.unmountFinished)}}),o)}var x=n(303);function S(e,t){return h({React:o(),ReactDOMClient:i,rootComponent:(0,x.B)(t)(e)})}function _(e,t){return()=>e().then((({default:e})=>S(e,t)))}function k(e,t){return()=>Promise.resolve(S(e,t))}const O=_},4008:(e,t,n)=>{"use strict";n.d(t,{sM:()=>r.s,w:()=>o.w,hj:()=>a.h,dT:()=>s.d,Vz:()=>C.V,NV:()=>i.N,D$:()=>l.D$,Ae:()=>l.Ae,tl:()=>l.tl,a$:()=>l.a$,nI:()=>_.n,Bq:()=>u.B,YV:()=>f.Y,P3:()=>c.P,yn:()=>d.y,ZR:()=>p.Z,BL:()=>h.B,Y9:()=>m.Y,TM:()=>y,p8:()=>b.p,qd:()=>w.q,jf:()=>E.j,NW:()=>S,mr:()=>_.m,Z_:()=>k.Z,t$:()=>O.t,h0:()=>L.h,lm:()=>v.l,kP:()=>P.k,oR:()=>N.o,xQ:()=>N.x,JF:()=>T.J,NN:()=>j.N});var r=n(208),o=n(2455),i=n(1868),a=n(5146),s=n(9287),l=n(1989),u=n(303),c=n(9269),f=n(9136),d=n(2240),p=n(9974),h=n(1545),m=n(734),v=n(3545),g=n(1956);const y=(0,i.N)((0,g.Co)());var b=n(2915),w=n(1884),E=n(51),x=n(7959);function S(){const[,e]=(0,x.useState)(0);return(0,x.useCallback)((()=>{e((e=>e+1))}),[])}var _=n(3990),k=n(5406),O=n(3801),C=n(27),P=n(5757),N=n(4163),T=n(6397),j=n(5772),L=n(2226)},303:(e,t,n)=>{"use strict";n.d(t,{B:()=>y});var r=n(7959),o=n.n(r),i=n(8658),a=n.n(i),s=n(8433),l=n(208),u=Object.defineProperty,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e};const m=a().default||a(),v={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},g=e=>{(0,r.useEffect)((()=>(m.on("languageChanged",e.forceUpdate),()=>m.off("languageChanged",e.forceUpdate))),[e.forceUpdate]);const t=(0,r.useRef)(null);if(t.current)throw t.current;if(!m.hasLoadedNamespace(e.ns)){const n=setTimeout((()=>{console.warn(`openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['${e.ns}']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects.`)}),3e3);throw m.loadNamespaces([e.ns]).then((()=>clearTimeout(n))).catch((e=>{clearTimeout(n),t.current=e}))}return o().createElement(o().Fragment,null,e.children)};function y(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");const t=Object.assign({},v,e);return function(e){var n;return(n=class extends o().Component{constructor(e){super(e),this.state={caughtError:null,caughtErrorInfo:null,config:{moduleName:t.moduleName,extension:e._extensionContext}}}componentDidCatch(e,n){n&&n.componentStack&&(e.extra=Object.assign(e.extra||{},{componentStack:n.componentStack})),t.throwErrorsToConsole&&setTimeout((()=>{throw e})),this.setState({caughtError:e,caughtErrorInfo:n})}render(){if(this.state.caughtError)return o().createElement("div",null,"An error has occurred. Please try reloading the page.");{const n=o().createElement(l.s.Provider,{value:this.state.config},o().createElement(o().Suspense,{fallback:null},t.disableTranslations?o().createElement(e,h({},this.props)):o().createElement(g,{ns:t.moduleName,forceUpdate:()=>this.forceUpdate()},o().createElement(s.I18nextProvider,{i18n:m,defaultNS:t.moduleName},o().createElement(e,h({},this.props))))));return t.strictMode||!o().StrictMode?n:o().createElement(o().StrictMode,null,n)}}}).displayName=`OpenmrsReactComponent(${t.featureName})`,n}}},8878:(e,t,n)=>{"use strict";n.d(t,{Ae:()=>s.Ae,BL:()=>d.B,D$:()=>s.D$,JF:()=>S.J,NN:()=>_.N,NV:()=>o.N,P3:()=>l.P,Vz:()=>w.V,Y9:()=>p.Y,YV:()=>u.Y,ZR:()=>f.Z,Z_:()=>y.Z,a$:()=>s.a$,dT:()=>a.d,h0:()=>k.h,hj:()=>i.h,jf:()=>v.j,kP:()=>E.k,lm:()=>h.l,mr:()=>g.m,nI:()=>g.n,oR:()=>x.o,qd:()=>m.q,t$:()=>b.t,tl:()=>s.tl,w:()=>r.w,xQ:()=>x.x,yn:()=>c.y}),n(208);var r=n(2455),o=n(1868),i=n(5146),a=n(9287),s=n(1989),l=n(9269),u=n(9136),c=n(2240),f=n(9974),d=n(1545),p=n(734),h=n(3545),m=n(1884),v=n(51),g=n(3990),y=n(5406),b=n(3801),w=n(27),E=n(5757),x=n(4163),S=n(6397),_=n(5772),k=n(2226)},9136:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var r=n(7959),o=n(1956),i=n(4896);function a(e){const[t,n]=(0,r.useState)([]);return(0,r.useEffect)((()=>(0,o.yw)().subscribe((r=>{var o,a;const s=null!=(a=null==(o=r.slots[e])?void 0:o.assignedExtensions.map((e=>e.id)))?a:[];(0,i.Z)(s,t)||n(s)}))),[]),t}},9269:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var r=n(7959),o=n(1956),i=n(4896);function a(e){const[t,n]=(0,r.useState)([]);return(0,r.useEffect)((()=>{function r(r){var o,a;const s=null!=(a=null==(o=r.slots[e])?void 0:o.assignedExtensions)?a:[];(0,i.Z)(s,t)||n(s)}return r((0,o.yw)().getState()),(0,o.yw)().subscribe(r)}),[e,t]),t}},2240:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(7959);function o(e){(0,r.useEffect)((()=>{if(e){const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}}),[e])}},9974:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(7959),o=n(2333),i=n(208),a=n(4896),s=Object.defineProperty,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&f(e,n,t[n]);return e};const p={};function h(e){const t=(0,r.useMemo)(o._z,[]),n=function(e,t){const[n,i]=(0,r.useState)(function(e,t){return t?()=>{const n=e.getState(),r=(0,o.sR)(n,t.extensionSlotName,t.extensionId);if(r.loaded&&r.config)return r.config}:null}(e,t));return(0,r.useEffect)((()=>{if(t)return e.subscribe((e=>{const r=(0,o.sR)(e,t.extensionSlotName,t.extensionId);r.loaded&&r.config&&!(0,a.Z)(r.config,n)&&i(r.config)}))}),[e,t,n]),n}(t,e);if(!n&&e){const n=`${e.extensionSlotName}-${e.extensionId}`;throw!p[n]&&t&&(p[n]=function(e,t){return new Promise((n=>{const r=e.subscribe((e=>{const i=(0,o.sR)(e,t.extensionSlotName,t.extensionId);i.loaded&&i.config&&(n(i.config),r())}))}))}(t,e)),p[n]}return n||{}}function m(){const{moduleName:e,extension:t}=(0,r.useContext)(i.s);if(!e&&!t)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');const n=function(e){const t=(0,r.useMemo)((()=>(0,o.pR)(e)),[e]),n=e,i=function(e){const[t,n]=(0,r.useState)(function(e){return()=>{const t=e.getState();return t.loaded&&t.config?t.config:null}}(e));return(0,r.useEffect)((()=>null==e?void 0:e.subscribe((e=>{e.loaded&&e.config&&n(e.config)}))),[e]),t}(t);if(!i)throw p[n]||(p[n]=function(e){return new Promise((t=>{const n=e.subscribe((e=>{e.loaded&&e.config&&(t(e.config),n())}))}))}(t)),p[n];return i}(e),a=h(t);return(0,r.useMemo)((()=>d(d({},n),a)),[n,a])}},1545:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(7959),o=n(1956),i=n(734),a=n(9269);function s(e){const t=(0,i.Y)(),n=(0,a.P)(e);return(0,r.useMemo)((()=>(0,o.Kq)(n,t)),[n,t])}},734:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});var r=n(6217),o=n(7959);function i(){let[e,t]=(0,o.useState)(window.navigator.onLine);return(0,o.useEffect)((()=>(0,r.XS)((({online:e})=>t(e)))),[]),e}},2915:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(7959),o=n(1956),i=n(208),a=n(1545);function s(e){const{moduleName:t}=(0,r.useContext)(i.s);if(!t)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,r.useEffect)((()=>{(0,o.Qq)(t,e)}),[]),{extensions:(0,a.B)(e),extensionSlotName:e,extensionSlotModuleName:t}}},1884:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(7959),o=n(1545);function i(e){const t=(0,o.B)(e);return(0,r.useMemo)((()=>Object.fromEntries(t.map((e=>[e.name,e.meta])))),[t])}},51:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(1956);const o=(0,n(1868).N)((0,r.yw)())},3990:(e,t,n)=>{"use strict";n.d(t,{m:()=>i,n:()=>a});var r=n(7959);function o(){let e="tablet";return document.body.classList.forEach((t=>{switch(t){case"omrs-breakpoint-lt-tablet":e="phone";break;case"omrs-breakpoint-gt-small-desktop":e="large-desktop";break;case"omrs-breakpoint-gt-tablet":e="small-desktop"}})),e}function i(){const[e,t]=(0,r.useState)(o);return(0,r.useEffect)((()=>{const e=()=>{t(o())};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}const a=e=>"small-desktop"===e||"large-desktop"===e},5406:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8943),o=n(7959);function i(){const[e,t]=(0,o.useState)([]);return(0,o.useEffect)((()=>{const e=(0,r.getLocations)().subscribe((e=>{t(e)}),(e=>{console.error(e)}));return()=>e.unsubscribe()}),[]),e}},3801:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(7959);function o(e,t=!0){const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(t){const t=t=>{var r;(null==(r=null==n?void 0:n.current)?void 0:r.contains(t.target))||e(t)};return window.addEventListener("click",t),()=>window.removeEventListener("click",t)}}),[e,t]),n}},2226:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(7959);function o(e=[],t=10){const[n,o]=(0,r.useState)(1),i=(0,r.useMemo)((()=>"number"==typeof t&&t>0?Math.max(1,Math.ceil(e.length/t)):1),[e.length,t]);return{results:(0,r.useMemo)((()=>{const r=(n-1)*t,o=(n+0)*t;return e.slice(r,o)}),[e,n,t]),totalPages:i,currentPage:n,paginated:e.length>t,showNextButton:n<i,showPreviousButton:n>1,goTo(e){o(Math.max(1,Math.min(i,e)))},goToNext(){n<i&&o(n+1)},goToPrevious(){n>1&&o(n-1)}}}},3545:(e,t,n)=>{"use strict";n.d(t,{l:()=>g});var r=n(7959),o=n(8943),i=Object.defineProperty,a=Object.defineProperties,s=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&f(e,n,t[n]);return e},p=(e,t)=>a(e,s(t));const h={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};function m(){const e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]}function v(e,t){switch(t.type){case"loadPatient":return p(d({},e),{patientUuid:t.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null});case"newPatient":return p(d({},e),{patient:t.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null});case"patientLoadError":return p(d({},e),{patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:t.err});default:return e}}function g(e){const[t,n]=(0,r.useReducer)(v,p(d({},h),{patientUuid:null!=e?e:null,isPendingUuid:!e,isLoadingPatient:!!e}));return(0,r.useEffect)((()=>{if(t.isPendingUuid){const e=m();n(e?{type:"loadPatient",patientUuid:e}:{type:"newPatient",patient:null})}let e=!0;return t.isLoadingPatient&&t.patientUuid&&(0,o.fetchCurrentPatient)(t.patientUuid).then((t=>e&&n({patient:t,type:"newPatient"})),(t=>e&&n({err:t,type:"patientLoadError"}))),()=>{e=!1}}),[t.isPendingUuid,t.isLoadingPatient,t.patientUuid]),(0,r.useEffect)((()=>{const e=e=>{const r=m();r!=t.patientUuid&&n({type:"loadPatient",patientUuid:r})};return window.addEventListener("single-spa:routing-event",e),()=>window.removeEventListener("single-spa:routing-event",e)}),[t.patientUuid]),{isLoading:t.isPendingUuid||t.isLoadingPatient,patient:t.patient,patientUuid:null!=e?e:t.patientUuid,error:t.err}}},5757:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(8943),o=n(7959);let i,a;function s(){const[e,t]=(0,o.useState)(null);let n=null;if(!e){if(i){const e=(0,r.getSessionStore)().getState();e.loaded&&(n=e.session)}else i=new Promise((e=>{const t=({loaded:t,session:r})=>{t&&(e(r),n=r,a&&a(),a=void 0)};t((0,r.getSessionStore)().getState()),n||(a=(0,r.getSessionStore)().subscribe(t))}));if(!n)throw i;t(n)}(0,o.useEffect)((()=>(a||(a=(0,r.getSessionStore)().subscribe((({loaded:e,session:r})=>{e&&(n=r,t(r))}))),()=>{a&&a(),a=void 0})),[]);const s=e||n;if(!s)throw i?(console.warn("useSession is in an unexpected state. Attempting to recover."),i):Error("useSession is in an invalid state.");return s}},4163:(e,t,n)=>{"use strict";n.d(t,{o:()=>d,x:()=>p});var r=n(8516),o=n(7959),i=Object.defineProperty,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&u(e,n,t[n]);if(a)for(var n of a(t))l.call(t,n)&&u(e,n,t[n]);return e};const f=e=>e;function d(e,t=f,n){const[i,a]=(0,o.useState)((()=>t(e.getState())));(0,o.useEffect)((()=>(0,r.se)(e,t,a)),[e,t]);let s={};return n&&(s=(0,o.useMemo)((()=>function(e,t){"function"==typeof t&&(t=t(e));const n={};for(let r in t)n[r]=e.action(t[r]);return n}(e,n)),[e,n])),c(c({},i),s)}function p(e,t){return d(e,f,t)}},6397:(e,t,n)=>{"use strict";n.d(t,{J:()=>J});var r=n(8943),o=n(7959),i=n(8630);const a=new WeakMap,s={},l=()=>{},u=l(),c=Object,f=e=>e===u,d=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),h="undefined",m=typeof window!=h,v=typeof document!=h,g=(e,t)=>{const n=a.get(e);return[()=>e.get(t)||s,r=>{const o=e.get(t);n[5](t,p(o,r),o||s)},n[6]]},y=new WeakMap;let b=0;const w=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(c(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=y.get(e),o)return o;if(o=++b+"~",y.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=w(e[i])+",";y.set(e,o)}if(n==c){o="#";const t=c.keys(e).sort();for(;!f(i=t.pop());)f(e[i])||(o+=i+":"+w(e[i])+",");y.set(e,o)}}return o};let E=!0;const[x,S]=m&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],_={isOnline:()=>E,isVisible:()=>{const e=v&&document.visibilityState;return f(e)||"hidden"!==e}},k={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),x("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{const t=()=>{E=!0,e()},n=()=>{E=!1};return x("online",t),x("offline",n),()=>{S("online",t),S("offline",n)}}},O=!o.useId,C=!m||"Deno"in window,P=C?o.useEffect:o.useLayoutEffect,N="undefined"!=typeof navigator&&navigator.connection,T=!C&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),j=e=>{if(d(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?w(e):"",t]};let L=0;const I=()=>++L;async function M(...e){const[t,n,r,o]=e,i=p({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=i.populateCache;const l=i.rollbackOnError;let c=i.optimisticData;const h=!1!==i.revalidate,m=i.throwOnError;if(d(n)){const e=n,r=[],o=t.keys();for(let n=o.next();!n.done;n=o.next()){const o=n.value;!o.startsWith("$inf$")&&e(t.get(o)._k)&&r.push(o)}return Promise.all(r.map(v))}return v(n);async function v(n){const[o]=j(n);if(!o)return;const[i,p]=g(t,o),[v,y,b]=a.get(t),w=v[o],E=()=>h&&(delete b[o],w&&w[0])?w[0](2).then((()=>i().data)):i().data;if(e.length<3)return E();let x,S=r;const _=I();y[o]=[_,0];const k=!f(c),O=i(),C=O.data,P=O._c,N=f(P)?C:P;if(k&&(c=d(c)?c(N):c,p({data:c,_c:N})),d(S))try{S=S(N)}catch(e){x=e}if(S&&d(S.then)){if(S=await S.catch((e=>{x=e})),_!==y[o][0]){if(x)throw x;return S}x&&k&&(e=>"function"==typeof l?l(e):!1!==l)(x)&&(s=!0,S=N,p({data:S,_c:u}))}s&&(x||(d(s)&&(S=s(S,N)),p({data:S,_c:u}))),y[o][1]=I();const T=await E();if(p({_c:u}),!x)return s?T:S;if(m)throw x}}const D=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},R=(e,t)=>{if(!a.has(e)){const n=p(k,t),r={},o=M.bind(u,e);let i=l;const s={},c=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(let e=o.length;e--;)o[e](r,n)},d=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},o,f,c]),!C)){const t=n.initFocus(setTimeout.bind(u,D.bind(u,r,0))),o=n.initReconnect(setTimeout.bind(u,D.bind(u,r,1)));i=()=>{t&&t(),o&&o(),a.delete(e)}}};return d(),[e,o,d,i]}return[e,a.get(e)[4]]},[A,$]=R(new Map),F=p({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!f(i)&&a>i||setTimeout(r,s,o)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(e,t)=>w(e)==w(t),isPaused:()=>!1,cache:A,mutate:$,fallback:{}},_),U=(e,t)=>{const n=p(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=p(o,a))}return n},B=(0,o.createContext)({}),z=m&&window.__SWR_DEVTOOLS_USE__,Z=z?window.__SWR_DEVTOOLS_USE__:[],H=Z.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const r=j(t)[0],[,,,o]=a.get(A),i=o[r];return i?(delete o[r],i):n(...e)}),r)));z&&(window.__SWR_DEVTOOLS_REACT__=o);const V={dedupe:!0};c.defineProperty((e=>{const{value:t}=e,n=(0,o.useContext)(B),r=d(t),i=(0,o.useMemo)((()=>r?t(n):t),[r,n,t]),a=(0,o.useMemo)((()=>r?i:U(n,i)),[r,n,i]),s=i&&i.provider,[l]=(0,o.useState)((()=>s?R(s(a.cache||A),i):u));return l&&(a.cache=l[0],a.mutate=l[1]),P((()=>{if(l)return l[2]&&l[2](),l[3]}),[]),(0,o.createElement)(B.Provider,p(e,{value:a}))}),"defaultValue",{value:F});var K,W=(K=(e,t,n)=>{const{cache:r,compare:s,suspense:l,fallbackData:c,revalidateOnMount:v,refreshInterval:y,refreshWhenHidden:b,refreshWhenOffline:w,keepPreviousData:E}=n,[x,S,_]=a.get(r),[k,N]=j(e),T=(0,o.useRef)(!1),L=(0,o.useRef)(!1),D=(0,o.useRef)(k),R=(0,o.useRef)(t),A=(0,o.useRef)(n),$=()=>A.current,F=()=>$().isVisible()&&$().isOnline(),[U,B,z]=g(r,k),Z=(0,o.useRef)({}).current,H=f(c)?n.fallback[k]:c,K=(e,t)=>{let n=!0;for(const r in Z){const o=r;s(t[o],e[o])||"data"===o&&f(e[o])&&s(t[o],ee)||(n=!1)}return n},W=(0,o.useMemo)((()=>{const e=!!k&&!!t&&(f(v)?!$().isPaused()&&!l:v),n=()=>{const t=U(),n=p(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n};let r=n();return()=>{const e=n();return K(e,r)?r:r=e}}),[r,k]),q=(0,i.useSyncExternalStore)((0,o.useCallback)((e=>z(k,((t,n)=>{K(t,n)||e()}))),[r,k]),W,W),Y=!T.current,G=q.data,Q=f(G)?H:G,J=q.error,X=(0,o.useRef)(Q),ee=E?f(G)?X.current:G:Q,te=Y&&!f(v)?v:!$().isPaused()&&(l?!f(Q)&&n.revalidateIfStale:f(Q)||n.revalidateIfStale),ne=!!(k&&t&&Y&&te),re=f(q.isValidating)?ne:q.isValidating,oe=f(q.isLoading)?ne:q.isLoading,ie=(0,o.useCallback)((async e=>{const t=R.current;if(!k||!t||L.current||$().isPaused())return!1;let r,o,i=!0;const a=e||{},l=!_[k]||!a.dedupe,c=()=>O?!L.current&&k===D.current&&T.current:k===D.current,p={isValidating:!1,isLoading:!1},h=()=>{B(p)},m=()=>{const e=_[k];e&&e[1]===o&&delete _[k]},v={isValidating:!0};f(U().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(U().data)&&setTimeout((()=>{i&&c()&&$().onLoadingSlow(k,n)}),n.loadingTimeout),_[k]=[t(N),I()]),[r,o]=_[k],r=await r,l&&setTimeout(m,n.dedupingInterval),!_[k]||_[k][1]!==o)return l&&c()&&$().onDiscarded(k),!1;p.error=u;const e=S[k];if(!f(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return h(),l&&c()&&$().onDiscarded(k),!1;const a=U().data;p.data=s(a,r)?a:r,l&&c()&&$().onSuccess(r,k,n)}catch(e){m();const t=$(),{shouldRetryOnError:n}=t;t.isPaused()||(p.error=e,l&&c()&&(t.onError(e,k,t),(!0===n||d(n)&&n(e))&&F()&&t.onErrorRetry(e,k,t,ie,{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return i=!1,h(),!0}),[k,r]),ae=(0,o.useCallback)(((...e)=>M(r,D.current,...e)),[]);if(P((()=>{R.current=t,A.current=n,f(G)||(X.current=G)})),P((()=>{if(!k)return;const e=ie.bind(u,V);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(k,x,(n=>{if(0==n){const n=Date.now();$().revalidateOnFocus&&n>t&&F()&&(t=n+$().focusThrottleInterval,e())}else if(1==n)$().revalidateOnReconnect&&F()&&e();else if(2==n)return ie()}));return L.current=!1,D.current=k,T.current=!0,B({_k:N}),te&&(f(Q)||C?e():(r=e,m&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{L.current=!0,n()};var r}),[k]),P((()=>{let e;function t(){const t=d(y)?y(Q):y;t&&-1!==e&&(e=setTimeout(n,t))}function n(){U().error||!b&&!$().isVisible()||!w&&!$().isOnline()?t():ie(V).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[y,b,w,k]),(0,o.useDebugValue)(ee),l&&f(Q)&&k){if(!O&&C)throw new Error("Fallback data is required when using suspense in SSR.");throw R.current=t,A.current=n,L.current=!1,f(J)?ie(V):J}return{mutate:ae,get data(){return Z.data=!0,ee},get error(){return Z.error=!0,J},get isValidating(){return Z.isValidating=!0,re},get isLoading(){return Z.isLoading=!0,oe}}},function(...e){const t=p(F,(0,o.useContext)(B)),[n,r,i]=(e=>d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(e),a=U(t,i);let s=K;const{use:l}=a,u=(l||[]).concat(H);for(let e=u.length;e--;)s=u[e](s);return s(n,r||a.fetcher||null,a)}),q=n(3772),Y=n.n(q),G=n(1508),Q=n.n(G);function J(e){const{data:t,error:n,mutate:i,isValidating:a}=W(e?`/ws/rest/v1/visit?patient=${e}&v=${r.defaultVisitCustomRepresentation}&includeInactive=false`:null,r.openmrsFetch);return{error:n,mutate:i,isValidating:a,currentVisit:(0,o.useMemo)((()=>{var e;return null!=(e=null==t?void 0:t.data.results.find((e=>null===e.stopDatetime&&Y()(e.startDatetime).isToday())))?e:null}),[null==t?void 0:t.data.results]),isLoading:!t&&!n}}Y().extend(Q())},5772:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(8943),o=n(7959);function i(){const[e,t]=(0,o.useState)([]);return(0,o.useEffect)((()=>{const e=(0,r.getVisitTypes)().subscribe((e=>{t(e)}),(e=>console.error(e)));return()=>e.unsubscribe()}),[]),e}},8516:(e,t,n)=>{"use strict";n.d(t,{MI:()=>r.MI,W5:()=>r.W5,jk:()=>r.jk,se:()=>r.se,zJ:()=>r.zJ});var r=n(824)},978:(e,t,n)=>{"use strict";n.d(t,{W5:()=>r.W5,jk:()=>r.jk,se:()=>r.se,zJ:()=>r.zJ});var r=n(824)},824:(e,t,n)=>{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=[];function n(e){for(var n=[],r=0;r<t.length;r++)t[r]===e?e=null:n.push(t[r]);t=n}function o(n,o,i){e=o?n:r(r({},e),n);for(var a=t,s=0;s<a.length;s++)a[s](e,i)}return e=e||{},{action:function(t){function n(e){o(e,!1,t)}return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var a=t.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:o,subscribe:function(e){return t.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return e}}}n.d(t,{MI:()=>l,jk:()=>a,W5:()=>u,zJ:()=>s,se:()=>c});const i={};function a(e,t){const n=i[e];if(n)return n.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):n.value.setState(t,!0),n.active=!0,n.value;{const n=o(t);return i[e]={value:n,active:!0},n}}function s(e,t){const n=i[e];if(!n){const n=o(t);return i[e]={value:n,active:!1},n}return n.value}function l(e){return a("app",e)}function u(){return s("app",{})}function c(e,t,n){let r=t(e.getState());return e.subscribe((e=>{const o=t(e);o!==r&&(r=o,n(o))}))}},5838:(e,t,n)=>{"use strict";n.d(t,{T:()=>l});var r=n(7959),o=n.n(r),i=n(1469),a=n(8433),s=n(4008);const l=({error:e,headerTitle:t})=>{var n,r;const{t:l}=(0,a.useTranslation)(),u="tablet"===(0,s.mr)();return o().createElement(i.n9L,{light:!0,className:"_4ijCRxPywQvd7T3dCBgGxQ=="},o().createElement("div",{className:u?"Z-b8JtaOGW3yfasmfk2weA==":"ILUYHTN9tYafNMhTjug8LA=="},o().createElement("h4",null,t)),o().createElement("p",{className:"+j5OxQdU5IA6yMqL1Ciu4A=="},l("error","Error")," ",`${null==(n=null==e?void 0:e.response)?void 0:n.status}: `,null==(r=null==e?void 0:e.response)?void 0:r.statusText),o().createElement("p",{className:"C6rAgaA2xoWwghbyjuUy4w=="},l("errorCopy","Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.")))}},6344:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>c,Te:()=>y.T,cW:()=>g.cW,Nl:()=>d,zW:()=>h.zW,Pi:()=>h.Pi,iY:()=>p,Oe:()=>v.O,Sn:()=>m.S,VM:()=>g.VM,fu:()=>h.fu,K4:()=>v.K,c0:()=>h.c0,CF:()=>m.C,$d:()=>g.$d});const r='<svg viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.29 40.3278C45.3275 35.2904 52.2878 32.1739 59.9776 32.1739C67.6466 32.1739 74.5911 35.2765 79.6245 40.29L79.6454 21.7502C73.7513 18.7143 67.0622 17 59.9776 17C52.8891 17 46.1652 18.9309 40.2692 21.9679L40.29 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6719 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6868 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.507L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M185.885 90.9982H187.309L190.043 97.3236H190.066L192.824 90.9982H194.215V99.0676H193.258V92.2971H193.234L190.34 99.0676H189.758L186.864 92.2971H186.842V99.0676H185.885V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M198.386 90.9982H203.457V91.8867H199.343V94.4168H203.184V95.3062H199.343V98.1782H203.663V99.0676H198.386V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M207.891 98.1782H209.713C211.561 98.1782 212.963 97.2431 212.963 95.0319C212.963 92.8218 211.561 91.8867 209.713 91.8867H207.891V98.1782ZM206.934 90.9982H210.034C211.617 90.9982 213.987 92.0586 213.987 95.0319C213.987 98.0083 211.617 99.0676 210.034 99.0676H206.934V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.007 99.0676H217.965V90.9982H217.007V99.0676Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.105 92.6628C226.627 92.0119 225.863 91.6819 225.088 91.6819C223.288 91.6819 222.011 93.266 222.011 95.0319C222.011 96.9012 223.277 98.3839 225.088 98.3839C226.068 98.3839 226.855 97.9844 227.425 97.255L228.143 97.8582C227.425 98.8281 226.377 99.2724 225.088 99.2724C222.774 99.2724 220.986 97.4826 220.986 95.0319C220.986 92.6628 222.695 90.7935 225.088 90.7935C226.183 90.7935 227.254 91.1701 227.937 92.0586L227.105 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M233.557 92.2295H233.533L231.858 96.1947H235.152L233.557 92.2295ZM233.123 90.9982H234.023L237.453 99.0676H236.336L235.516 97.0841H231.482L230.65 99.0676H229.568L233.123 90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M240.006 90.9982H240.964V98.1782H244.656V99.0676H240.006V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M252.793 94.5539H253.648C254.708 94.5539 256.087 94.5539 256.087 93.2203C256.087 92.0586 255.073 91.8867 254.139 91.8867H252.793V94.5539ZM251.836 90.9982H253.899C255.46 90.9982 257.113 91.2258 257.113 93.2203C257.113 94.3939 256.349 95.1582 255.095 95.3519L257.386 99.0676H256.213L254.023 95.4434H252.793V99.0676H251.836V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M260.51 90.9982H265.58V91.8867H261.468V94.4168H265.308V95.3062H261.468V98.1782H265.786V99.0676H260.51V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M274.402 92.6628C273.923 92.0119 273.16 91.6819 272.384 91.6819C270.584 91.6819 269.307 93.266 269.307 95.0319C269.307 96.9012 270.573 98.3839 272.384 98.3839C273.364 98.3839 274.151 97.9844 274.72 97.255L275.438 97.8582C274.72 98.8281 273.672 99.2724 272.384 99.2724C270.071 99.2724 268.282 97.4826 268.282 95.0319C268.282 92.6628 269.991 90.7935 272.384 90.7935C273.478 90.7935 274.55 91.1701 275.234 92.0586L274.402 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M284.739 95.0319C284.739 93.1746 283.439 91.6819 281.548 91.6819C279.656 91.6819 278.357 93.1746 278.357 95.0319C278.357 96.8903 279.656 98.3839 281.548 98.3839C283.439 98.3839 284.739 96.8903 284.739 95.0319ZM277.33 95.0319C277.33 92.5932 279.097 90.7935 281.548 90.7935C283.998 90.7935 285.765 92.5932 285.765 95.0319C285.765 97.4726 283.998 99.2724 281.548 99.2724C279.097 99.2724 277.33 97.4726 277.33 95.0319Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M289.514 94.5539H290.369C291.428 94.5539 292.807 94.5539 292.807 93.2203C292.807 92.0586 291.793 91.8867 290.859 91.8867H289.514V94.5539ZM288.556 90.9982H290.618C292.181 90.9982 293.833 91.2258 293.833 93.2203C293.833 94.3939 293.07 95.1582 291.817 95.3519L294.106 99.0676H292.933L290.744 95.4434H289.514V99.0676H288.556V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M297.81 98.1782H299.635C301.48 98.1782 302.881 97.2431 302.881 95.0319C302.881 92.8218 301.48 91.8867 299.635 91.8867H297.81V98.1782ZM296.853 90.9982H299.953C301.538 90.9982 303.909 92.0586 303.909 95.0319C303.909 98.0083 301.538 99.0676 299.953 99.0676H296.853V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M315.407 92.4223C315.089 91.9095 314.517 91.6819 313.937 91.6819C313.093 91.6819 312.216 92.0814 312.216 93.0384C312.216 93.7788 312.626 94.1097 313.914 94.5202C315.168 94.9187 316.331 95.3291 316.331 96.9132C316.331 98.5201 314.951 99.2724 313.493 99.2724C312.558 99.2724 311.555 98.9643 311.007 98.1554L311.828 97.4826C312.17 98.0759 312.854 98.3839 313.549 98.3839C314.37 98.3839 315.303 97.9049 315.303 96.9807C315.303 95.9899 314.633 95.818 313.196 95.341C312.057 94.9644 311.19 94.4625 311.19 93.1189C311.19 91.5677 312.523 90.7935 313.937 90.7935C314.837 90.7935 315.601 91.0439 316.193 91.7386L315.407 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M320.844 95.5914L317.835 90.9982H319.054L321.323 94.6454L323.658 90.9982H324.81L321.8 95.5914V99.0676H320.844V95.5914Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M330.565 92.4223C330.245 91.9095 329.675 91.6819 329.094 91.6819C328.251 91.6819 327.374 92.0814 327.374 93.0384C327.374 93.7788 327.784 94.1097 329.072 94.5202C330.326 94.9187 331.487 95.3291 331.487 96.9132C331.487 98.5201 330.109 99.2724 328.65 99.2724C327.716 99.2724 326.713 98.9643 326.165 98.1554L326.986 97.4826C327.328 98.0759 328.012 98.3839 328.707 98.3839C329.528 98.3839 330.461 97.9049 330.461 96.9807C330.461 95.9899 329.79 95.818 328.354 95.341C327.215 94.9644 326.348 94.4625 326.348 93.1189C326.348 91.5677 327.681 90.7935 329.094 90.7935C329.995 90.7935 330.759 91.0439 331.351 91.7386L330.565 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M339.283 91.8867H336.617V99.0676H335.659V91.8867H332.992V90.9982H339.283V91.8867Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M341.665 90.9982H346.736V91.8867H342.623V94.4168H346.463V95.3062H342.623V98.1782H346.942V99.0676H341.665V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M349.905 90.9982H351.329L354.064 97.3236H354.087L356.845 90.9982H358.236V99.0676H357.278V92.2971H357.255L354.361 99.0676H353.779L350.884 92.2971H350.863V99.0676H349.905V90.9982Z" fill="var(--logo-black)"/>\n</svg>\n',o='<svg id="omrs-logo-partial" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n</svg>\n',i='<svg id="omrs-logo-icon" width="121" height="118" viewBox="0 0 121 118" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.436 39.474C45.505 34.405 52.509 31.269 60.247 31.269C67.964 31.269 74.952 34.391 80.017 39.436L80.038 20.78C74.107 17.725 67.376 16 60.247 16C53.114 16 46.348 17.943 40.415 20.999L40.436 39.474Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.038 79.064C74.969 84.134 67.968 87.269 60.23 87.269C52.513 87.269 45.525 84.148 40.456 79.102L40.436 97.759C46.37 100.813 53.098 102.539 60.23 102.539C67.363 102.539 74.093 100.813 80.024 97.758L80.038 79.064Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.474 79.089C35.405 74.02 32.269 67.019 32.269 59.281C32.269 51.564 35.39 44.577 40.436 39.508L21.779 39.488C18.725 45.421 17 52.148 17 59.281C17 66.414 18.725 73.144 21.782 79.076L40.474 79.089Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.027 39.435C85.096 44.503 88.232 51.508 88.232 59.246C88.232 66.963 85.111 73.951 80.064 79.015L98.722 79.036C101.776 73.105 103.501 66.375 103.501 59.246C103.501 52.112 101.776 45.381 98.72 39.448L80.027 39.435Z" fill="var(--logo-green)"/>\n</svg>\n',a=document.createElement("div"),s=()=>{document.body.appendChild(a)};function l(e,t){const n=(new DOMParser).parseFromString(t,"text/html").querySelector("svg");n&&(n.id=e,a.appendChild(n))}a.id="omrs-svgs-container",a.style.display="none","complete"===document.readyState?s():window.addEventListener("load",s);var u=n(2333);const c={PHONE_MIN:0,PHONE_MAX:600,TABLET_MIN:601,TABLET_MAX:1023,SMALL_DESKTOP_MIN:1024,SMALL_DESKTOP_MAX:1439,LARGE_DESKTOP_MIN:1440,LARGE_DESKTOP_MAX:Number.MAX_SAFE_INTEGER};function f(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<c.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>c.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>c.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<c.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<c.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<c.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>c.SMALL_DESKTOP_MAX)}function d(){window.addEventListener("resize",f),f()}function p(e){const t=document.querySelector("template#loading-spinner");if(t){const n=t.content.cloneNode(!0),r=Array.prototype.map.call(n.childNodes,(e=>e));return e.appendChild(n),()=>r.forEach((e=>e.remove()))}return()=>{}}var h=n(1543),m=n(6133),v=n(4408),g=n(8739),y=n(5838);!function(){function e(e,t){document.documentElement.style.setProperty(e,t)}(0,u.SH)("@openmrs/esm-styleguide",{"Brand color #1":{_default:"#005d5d",_type:u.Dy.String},"Brand color #2":{_default:"#004144",_type:u.Dy.String},"Brand color #3":{_default:"#007d79",_type:u.Dy.String}}),(0,u.pR)("@openmrs/esm-styleguide").subscribe((t=>{t.loaded&&t.config&&(e("--brand-01",t.config["Brand color #1"]),e("--brand-02",t.config["Brand color #2"]),e("--brand-03",t.config["Brand color #3"]))}))}(),l("omrs-logo-full-color",r),l("omrs-logo-full-mono",r),l("omrs-logo-full-grey",r),l("omrs-logo-partial-color",o),l("omrs-logo-partial-mono",o),l("omrs-logo-partial-grey",o),l("omrs-logo-icon-color",i),l("omrs-logo-icon-mono",i),l("omrs-logo-icon-grey",i),l("omrs-logo-white",'<svg id="omrs-logo-white" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-white)"/>\n</svg>\n'),l("omrs-icon-visibility",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path id="icon/action/visibility_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 4.5C7 4.5 2.72998 7.60999 1 12C2.72998 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.60999 17 4.5 12 4.5ZM12 17C9.23999 17 7 14.76 7 12C7 9.23999 9.23999 7 12 7C14.76 7 17 9.23999 17 12C17 14.76 14.76 17 12 17ZM9 12C9 10.34 10.34 9 12 9C13.66 9 15 10.34 15 12C15 13.66 13.66 15 12 15C10.34 15 9 13.66 9 12Z"/>\n </g>\n <title>Visibility rounded</title>\n</svg>\n'),l("omrs-icon-menu",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/menu_24px">\n <path id="icon/navigation/menu_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M4 8C3.44995 8 3 7.54999 3 7C3 6.45001 3.44995 6 4 6H20C20.55 6 21 6.45001 21 7C21 7.54999 20.55 8 20 8H4ZM4 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H4C3.44995 11 3 11.45 3 12C3 12.55 3.44995 13 4 13ZM4 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H4C3.44995 16 3 16.45 3 17C3 17.55 3.44995 18 4 18Z"/>\n </g>\n <title>Menu rounded</title>\n</svg>\n'),l("omrs-icon-search",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/search_24px">\n <path id="icon/action/search_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M15.1865 14.4716H15.9765L20.2165 18.7316C20.6266 19.1416 20.6266 19.8116 20.2165 20.2216C19.8065 20.6316 19.1366 20.6316 18.7265 20.2216L14.4765 15.9716V15.1816L14.2065 14.9016C12.8065 16.1016 10.8966 16.7216 8.86655 16.3816C6.08652 15.9116 3.86655 13.5916 3.52658 10.7916C3.00656 6.56158 6.5665 3.00158 10.7966 3.52157C13.5965 3.86157 15.9166 6.08157 16.3866 8.86157C16.7265 10.8916 16.1065 12.8016 14.9066 14.2016L15.1865 14.4716ZM5.47653 9.97155C5.47653 12.4615 7.48654 14.4716 9.97653 14.4716C12.4665 14.4716 14.4765 12.4615 14.4765 9.97155C14.4765 7.48156 12.4665 5.47155 9.97653 5.47155C7.48654 5.47155 5.47653 7.48156 5.47653 9.97155Z"/>\n </g>\n <title>Search rounded</title>\n</svg>\n'),l("omrs-icon-arrow-back",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_back_24px">\n <path id="icon/navigation/arrow_back_24px_2" d="M18.7912 11.005H7.62124L12.5012 6.12499C12.8912 5.73499 12.8912 5.09499 12.5012 4.70499C12.3144 4.51774 12.0608 4.41251 11.7962 4.41251C11.5317 4.41251 11.2781 4.51774 11.0912 4.70499L4.50124 11.295C4.11124 11.685 4.11124 12.315 4.50124 12.705L11.0912 19.295C11.4812 19.685 12.1112 19.685 12.5012 19.295C12.8912 18.905 12.8912 18.275 12.5012 17.885L7.62124 13.005H18.7912C19.3412 13.005 19.7912 12.555 19.7912 12.005C19.7912 11.455 19.3412 11.005 18.7912 11.005Z"/>\n </g>\n <title>Arrow back rounded</title>\n</svg>\n'),l("omrs-icon-arrow-forward",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"/>\n <title>Arrow forward rounded</title>\n</svg>'),l("omrs-icon-arrow-downward",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_downward_24px">\n <path id="icon/navigation/arrow_downward_24px_2" d="M11.005 5.20874V16.3787L6.12498 11.4987C5.73498 11.1087 5.09498 11.1087 4.70498 11.4987C4.31498 11.8887 4.31498 12.5187 4.70498 12.9087L11.295 19.4987C11.685 19.8887 12.315 19.8887 12.705 19.4987L19.295 12.9087C19.685 12.5187 19.685 11.8887 19.295 11.4987C19.1081 11.3115 18.8545 11.2063 18.59 11.2063C18.3255 11.2063 18.0718 11.3115 17.885 11.4987L13.005 16.3787V5.20874C13.005 4.65874 12.555 4.20874 12.005 4.20874C11.455 4.20874 11.005 4.65874 11.005 5.20874Z"/>\n </g>\n <title>Arrow downward rounded</title>\n</svg>\n'),l("omrs-icon-arrow-upward",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_upward_24px">\n <path id="icon/navigation/arrow_upward_24px_2" d="M13 18.7913V7.62126L17.88 12.5013C18.27 12.8913 18.91 12.8913 19.3 12.5013C19.69 12.1113 19.69 11.4813 19.3 11.0913L12.71 4.50126C12.5231 4.314 12.2695 4.20877 12.005 4.20877C11.7405 4.20877 11.4868 4.314 11.3 4.50126L4.69997 11.0813C4.30997 11.4713 4.30997 12.1013 4.69997 12.4913C5.08997 12.8813 5.71997 12.8813 6.10997 12.4913L11 7.62126V18.7913C11 19.3413 11.45 19.7913 12 19.7913C12.55 19.7913 13 19.3413 13 18.7913Z"/>\n </g>\n <title>Arrow upward rounded </title>\n</svg>\n'),l("omrs-icon-chevron-left",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_left_24px">\n <path id="icon/navigation/chevron_left_24px_2" d="M15 6.70499C14.8132 6.51774 14.5595 6.41251 14.295 6.41251C14.0305 6.41251 13.7769 6.51774 13.59 6.70499L9.00002 11.295C8.61002 11.685 8.61002 12.315 9.00002 12.705L13.59 17.295C13.98 17.685 14.61 17.685 15 17.295C15.39 16.905 15.39 16.275 15 15.885L11.12 11.995L15 8.11499C15.39 7.72499 15.38 7.08499 15 6.70499Z"/>\n </g>\n <title>Chevron left</title>\n</svg>\n'),l("omrs-icon-chevron-right",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_right_24px">\n <path id="icon/navigation/chevron_right_24px_2" d="M9.00002 6.71063C8.61002 7.10063 8.61002 7.73063 9.00002 8.12063L12.88 12.0006L9.00002 15.8806C8.61002 16.2706 8.61002 16.9006 9.00002 17.2906C9.39002 17.6806 10.02 17.6806 10.41 17.2906L15 12.7006C15.39 12.3106 15.39 11.6806 15 11.2906L10.41 6.70063C10.03 6.32063 9.39002 6.32063 9.00002 6.71063Z"/>\n </g>\n <title>Chevron right</title>\n</svg>\n'),l("omrs-icon-chevron-up",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_up_24px">\n <path d="M11.29 8.71L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71c-.38-.39-1.02-.39-1.41 0z"/>\n </g>\n <title>Chevron up</title>\n</svg>\n'),l("omrs-icon-chevron-down",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_down_24px">\n <path id="icon/navigation/chevron_down_24px" d="M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"/>\n </g>\n <title>Chevron down</title>\n</svg>\n'),l("omrs-icon-supervised-user-circle",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/supervised_user_circle_24px">\n <path id="icon/action/supervised_user_circle_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47998 2 2 6.48001 2 12C2 17.52 6.47998 22 12 22C17.52 22 22 17.52 22 12C22 6.48001 17.52 2 12 2ZM15.61 8.34C16.6801 8.34 17.54 9.19998 17.54 10.27C17.54 11.34 16.6801 12.2 15.61 12.2C14.54 12.2 13.6801 11.34 13.6801 10.27C13.67 9.19998 14.54 8.34 15.61 8.34ZM11.97 9.12C11.97 7.82001 10.91 6.76001 9.60999 6.76001C8.30005 6.76001 7.25 7.81 7.25 9.12C7.25 10.42 8.31006 11.48 9.60999 11.48C10.91 11.48 11.97 10.42 11.97 9.12ZM9.60999 15.89V19.64C7.20996 18.89 5.30994 17.04 4.46997 14.68C5.52002 13.56 8.14001 12.99 9.60999 12.99C10.14 12.99 10.8099 13.07 11.51 13.21C9.87 14.08 9.60999 15.23 9.60999 15.89ZM11.21 19.96C11.47 19.99 11.73 20 12 20C15.39 20 18.2799 17.88 19.45 14.91C18.5299 14.15 16.6799 13.76 15.61 13.76C14.1499 13.76 11.21 14.47 11.21 15.89V19.96Z"/>\n </g>\n <title>Supervised user circle rounded</title>\n</svg>\n'),l("omrs-icon-home",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n<g id="icon/navigation/home_24px">\n <path id="icon/navigation/home_24px" d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"/>\n</g>\n<title>Home rounded</title>\n</svg>'),l("omrs-icon-close",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>\n <title>Close icon</title>\n</svg>'),l("omrs-icon-important-notification",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/important_notification_24px_rounded">\n <path d="M12 23c1.1 0 1.99-.89 1.99-1.99h-3.98c0 1.1.89 1.99 1.99 1.99zm8.29-4.71L19 17v-6c0-3.35-2.36-6.15-5.5-6.83V3c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-1.29 1.29c-.63.63-.19 1.71.7 1.71h15.17c.9 0 1.34-1.08.71-1.71zM13 16h-2v-2h2v2zm0-5c0 .55-.45 1-1 1s-1-.45-1-1V9c0-.55.45-1 1-1s1 .45 1 1v2z"/>\n </g>\n <title>Important notification</title>\n</svg>\n'),l("omrs-icon-calendar",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/calendar24px">\n <path d="M20 3h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H7V2c0-.55-.45-1-1-1s-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 18H5c-.55 0-1-.45-1-1V8h16v12c0 .55-.45 1-1 1z"/>\n </g>\n <title>Calendar rounded</title>\n</svg>'),l("omrs-icon-access-time",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/access_time24px">\n <path id="icon/callend/access_time24px" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z" />\n </g>\n <title>Access time rounded</title>\n</svg>'),l("omrs-icon-add",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Add rounded</title>\n</svg>\n'),l("omrs-icon-remove",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Remove rounded</title>\n</svg>\n'),l("omrs-icon-check-circle",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>\n <title>Check circle</title>\n</svg>\n'),l("omrs-icon-zoomoutmap",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path d="M15.85 3.85L17.3 5.3l-2.18 2.16c-.39.39-.39 1.03 0 1.42.39.39 1.03.39 1.42 0L18.7 6.7l1.45 1.45c.31.31.85.09.85-.36V3.5c0-.28-.22-.5-.5-.5h-4.29c-.45 0-.67.54-.36.85zm-12 4.3L5.3 6.7l2.16 2.18c.39.39 1.03.39 1.42 0 .39-.39.39-1.03 0-1.42L6.7 5.3l1.45-1.45c.31-.31.09-.85-.36-.85H3.5c-.28 0-.5.22-.5.5v4.29c0 .45.54.67.85.36zm4.3 12L6.7 18.7l2.18-2.16c.39-.39.39-1.03 0-1.42-.39-.39-1.03-.39-1.42 0L5.3 17.3l-1.45-1.45c-.31-.31-.85-.09-.85.36v4.29c0 .28.22.5.5.5h4.29c.45 0 .67-.54.36-.85zm12-4.3L18.7 17.3l-2.16-2.18c-.39-.39-1.03-.39-1.42 0-.39.39-.39 1.03 0 1.42l2.18 2.16-1.45 1.45c-.31.31-.09.85.36.85h4.29c.28 0 .5-.22.5-.5v-4.29c0-.45-.54-.67-.85-.36z" />\n </g>\n <title>\n Zoom Out \n </title>\n</svg>'),l("omrs-icon-location",'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24">\n <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/>\n <path d="M0 0h24v24H0z" class="omrs-icon-location"/>\n <title>Location icon</title>\n</svg>'),l("omrs-icon-download",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z" />\n <title>Download icon</title>\n</svg>')},8739:(e,t,n)=>{"use strict";n.d(t,{cW:()=>v,VM:()=>h,$d:()=>m});var r=n(7959),o=n.n(r),i=n(4008),a=n(8516),s=n(1469);var l=Object.defineProperty,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const p=(0,a.jk)("left-nav",{slotName:null,basePath:window.spaBase});function h({name:e,basePath:t}){p.setState({slotName:e,basePath:t})}function m(e){p.getState().slotName==e&&p.setState({slotName:null})}const v=o().forwardRef(((e,t)=>{var n;const{slotName:r,basePath:a}=(0,i.oR)(p),l=null!=(n=window.location)?n:{pathname:""};return o().createElement(s.kwZ,((e,t)=>{for(var n in t||(t={}))c.call(t,n)&&d(e,n,t[n]);if(u)for(var n of u(t))f.call(t,n)&&d(e,n,t[n]);return e})({ref:t,expanded:!0,"aria-label":"Left navigation",className:"hwSZ3FCKSZr0UHIv-TeHHw=="},e),o().createElement(i.dT,{name:"global-nav-menu-slot"}),r?o().createElement(i.dT,{name:r,state:{basePath:a,currentPath:l}}):null)}))},4408:(e,t,n)=>{"use strict";n.d(t,{K:()=>E,O:()=>g});var r=n(1956),o=n(8516),i=Object.defineProperty,a=Object.defineProperties,s=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&f(e,n,t[n]);return e},p=(e,t)=>a(e,s(t));const h=(0,o.jk)("globalModalState",{modalContainer:null,modalStack:[]});const m=window.getComputedStyle(document.body).overflow;function v({modalStack:e,modalContainer:t}){t&&(e.length?(t.style.visibility||(addEventListener("keydown",w),document.body.style.overflow="hidden",t.style.visibility="unset"),e.forEach(((n,o)=>{var i,a,s;switch(n.state){case"NEW":const{outer:l,contentContainer:u}=function(){const e=function(e){const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild}('\n <button\n class="cds--modal-close"\n type="button">\n <svg id="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><style>.cls-1{fill:#000000;}.cls-2{fill:none;}</style></defs><title>close</title><polygon class="cls-1" points="24 9.4 22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4"/><rect class="cls-2" width="32" height="32"/></svg>\n </button>'.trim());e.addEventListener("click",b);const t=document.createElement("div");t.className="cds--modal-container";const n=document.createElement("div");return t.append(e),t.append(n),{outer:t,contentContainer:n}}();n.container=l,(0,r.H8)(u,"","",n.extensionId,void 0,n.props).then((e=>{n.parcel=e,n.state="MOUNTED",t.prepend(l),l.style.visibility="unset"}));break;case"MOUNTED":n.container&&(n.container.style.visibility=o?"hidden":"unset");break;case"TO_BE_DELETED":n.onClose(),null==(a=null==(i=n.parcel)?void 0:i.unmount)||a.call(i),null==(s=n.container)||s.remove(),setTimeout((()=>{h.setState({modalContainer:t,modalStack:e.filter((e=>e!==n))})}),0)}}))):(t.style.removeProperty("visibility"),document.body.style.overflow=m,removeEventListener("keydown",w)))}function g(e){e&&(h.subscribe(v),h.setState(p(d({},h.getState()),{modalContainer:e})))}function y(e){const t=h.getState(),n=t.modalStack.map((t=>t===e?p(d({},t),{state:"TO_BE_DELETED"}):t));h.setState(p(d({},t),{modalStack:n}))}function b(){const e=h.getState(),[t]=e.modalStack;t&&y(t)}function w(e){"Escape"===e.key&&b()}function E(e,t={},n=(()=>{})){const r=()=>{const e=h.getState().modalStack.find((e=>e.onClose===n));e&&y(e)};return function(e){const t=h.getState(),n=[e,...t.modalStack];h.setState(p(d({},t),{modalStack:n}))}({state:"NEW",onClose:n,extensionId:e,props:d({extensionId:e,close:r},t)}),r}},6659:(e,t,n)=>{"use strict";n.d(t,{y:()=>f});var r=n(7959),o=n.n(r),i=n(1469),a=Object.defineProperty,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const f=({notification:e})=>{const t=e,{actionButtonLabel:n,onActionButtonClick:a=(()=>{}),subtitle:f,kind:d,title:p,critical:h,progressActionLabel:m}=t,v=((e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&u.call(e,r)&&(n[r]=e[r]);return n})(t,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel"]),[g,y]=(0,r.useState)(n);return o().createElement(i.FQz,((e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&c(e,n,t[n]);return e})({kind:d||"info",actionButtonLabel:g,ariaLabel:"closes notification",onActionButtonClick:()=>{a(),y(m||"Taking Action..")},onClose:function(){},onCloseButtonClick:function(){},statusIconDescription:"notification",subtitle:f,title:p,lowContrast:h,inline:!0},v))}},1543:(e,t,n)=>{"use strict";n.d(t,{zW:()=>C,Pi:()=>k,fu:()=>P,c0:()=>O});var r=n(7959),o=n.n(r),i=n(3596),a=n(5787);const s=({subject:e})=>{const[t,n]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const t=e.subscribe((e=>n((t=>[...t.filter((t=>t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title)),e]))));return()=>t.unsubscribe()}),[e]),o().createElement(o().Fragment,null,t.map((e=>o().createElement(a.P,{key:e.id,notification:e}))))};var l=n(6659);const u=({subject:e})=>{const[t,n]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const t=e.subscribe((e=>n((t=>[...t.filter((t=>t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title)),e]))));return()=>t.unsubscribe()}),[e]),o().createElement(o().Fragment,null,t.map((e=>o().createElement(l.y,{key:e.id,notification:e}))))};var c=n(5162),f=n(7299),d=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(m)for(var n of m(t))g.call(t,n)&&y(e,n,t[n]);return e},w=(e,t)=>p(e,h(t));const E=new i.Subject;let x=0;const S=new i.Subject;let _=0;function k(e){e&&(0,f.createRoot)(e).render(o().createElement(s,{subject:E}))}function O(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!(0,c.Z)(t))?setTimeout((()=>{E.next(w(b({},e),{id:x++}))}),0):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function C(e){e&&(0,f.createRoot)(e).render(o().createElement(u,{subject:S}))}function P(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:"object"==typeof t&&!(0,c.Z)(t))?setTimeout((()=>{S.next(w(b({},e),{id:_++}))}),0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}},5787:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var r=n(7959),o=n.n(r),i=n(1469);const a=({notification:e})=>{const{description:t,action:n,kind:r,critical:a,title:s}=e;return o().createElement(i.K0D,{actions:n,kind:r||"info",lowContrast:a,subtitle:t,title:s||""})}},759:(e,t,n)=>{"use strict";n.d(t,{$d:()=>a.$d,CF:()=>o.C,K4:()=>i.K,Te:()=>s.T,VM:()=>a.VM,c0:()=>r.c0,cW:()=>a.cW,fu:()=>r.fu});var r=n(1543),o=(n(5787),n(6659),n(6133)),i=n(4408),a=(n(3256),n(8739)),s=n(5838)},6133:(e,t,n)=>{"use strict";n.d(t,{S:()=>b,C:()=>w});var r=n(7959),o=n.n(r),i=n(7299),a=n(3596),s=n(3256);const l=({subject:e})=>{const[t,n]=(0,r.useState)([]),i=(0,r.useCallback)((e=>{n((t=>t.filter((t=>t!==e))))}),[]);return(0,r.useEffect)((()=>{const t=e.subscribe((e=>n((t=>[...t.filter((t=>t.description!==e.description||t.kind!==e.kind||t.title!==e.title)),e]))));return()=>t.unsubscribe()}),[e]),o().createElement(o().Fragment,null,t.map((e=>o().createElement(s.F,{key:e.id,toast:e,closeToast:()=>i(e)}))))};var u=n(5162),c=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const g=new a.Subject;let y=0;function b(e){e&&(0,i.createRoot)(e).render(o().createElement(l,{subject:g}))}function w(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!(0,u.Z)(t))?setTimeout((()=>{var t,n;g.next((t=((e,t)=>{for(var n in t||(t={}))h.call(t,n)&&v(e,n,t[n]);if(p)for(var n of p(t))m.call(t,n)&&v(e,n,t[n]);return e})({},e),n={id:y++},f(t,d(n))))}),0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}},3256:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(7959),o=n.n(r),i=n(1469);const a={millis:5e3},s=({toast:e,closeToast:t})=>{const{description:n,kind:s,critical:l,title:u,millis:c=a.millis}=e,[f,d]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{if(f){const e=setTimeout(t,c);return()=>clearTimeout(e)}}),[f]),o().createElement("div",{onMouseEnter:()=>d(!1),onMouseLeave:()=>d(!0)},o().createElement(i.Jn6,{kind:s||"info",lowContrast:l,subtitle:n,title:u||"",timeout:c}))}},7115:(e,t,n)=>{"use strict";function r(e){return(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())-Date.UTC(e.getUTCFullYear(),0,0))/24/60/60/1e3}function o(e,t){const n=e.toISOString(),r=t.toISOString();return n.slice(0,n.indexOf("T"))===r.slice(0,r.indexOf("T"))}function i(e){const t=new Date,n=new Date(e),i=t.getUTCMonth()-n.getUTCMonth(),a=t.getUTCDate()-n.getUTCDate();let s=t.getUTCFullYear()-n.getUTCFullYear();(i<0||0===i&&a<0)&&s--;let l=i>=0?i:i+12;a<0&&l--;const u=l>0?`${l} mo`:"";let c=r(t)-r(n);c<0&&(c+=365);const f=Math.floor(c/7),d=c-7*f;return 0===s?o(t,n)?"Today":f<4||0===f?`${c} day`:d>0?`${f} wk ${d} d`:`${f} week`:s<2?`${u} ${s} yr`.trim():s<18?`${s} yr ${u}`.trim():`${s} years`}n.d(t,{B_:()=>i,v0:()=>r,p6:()=>L,DZ:()=>M,mr:()=>I,w9:()=>E,Yv:()=>x,KC:()=>o,LE:()=>K,sG:()=>T,XD:()=>q,if:()=>S,nW:()=>N,vU:()=>C,vH:()=>_,R5:()=>O,WD:()=>k,R_:()=>P,aJ:()=>Z});var a=n(3772),s=n.n(a),l=n(7064),u=n.n(l),c=n(1508),f=n.n(c),d=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(m)for(var n of m(t))g.call(t,n)&&y(e,n,t[n]);return e};s().extend(u()),s().extend(f());const w="YYYY-MM-DDTHH:mm:ss.SSSZZ";function E(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&"+"===e[23]&&":"!==e[26]&&s()(e,w).isValid()}function x(e){return s()(e).isToday()}function S(e){return E(e)?s()(e,w).toDate():null}function _(e,t=!1){let n=s()(e);return t&&(n=n.utc()),n.format(w)}function k(e){return s()(e).format("HH:mm")}function O(e){return s().utc(e).format("HH:mm A")}function C(e){return N(e,"DD - MMM - YYYY")}function P(e){return N(e,"DD-MMM")}function N(e,t="YYYY-MMM-DD"){return s()(e).format(t)}function T(e){return s()(e).toDate()}const j={mode:"standard",time:"for today",day:!0,year:!0};function L(e,t){const{mode:n,time:r,day:o,year:i}=b(b({},j),t),a={year:i?"numeric":void 0,month:"short",day:o?"2-digit":void 0};let l,u=D();const c=s()(e).isToday();if(c)l=new Intl.RelativeTimeFormat(u,{numeric:"auto"}).format(0,"day"),l=l[0].toLocaleUpperCase(u)+l.slice(1);else if("en"==u&&(u="en-GB"),l=e.toLocaleDateString(u,a),"en-GB"==u&&"standard"==n&&i&&o&&(l=l.replace(/ /g,"-")),"wide"==n&&(l=l.replace(/ /g," — "),/ru.*/.test(u))){const e=l.length;l=l.slice(0,e-5)+l.slice(e-5).replace(" — "," ")}return(!0===r||c&&"for today"===r)&&(l+=`, ${I(e)}`),l}function I(e){return e.toLocaleTimeString(D(),{hour:"2-digit",minute:"2-digit"})}function M(e,t){return L(e,(n=b({},t),p(n,h({time:!0}))));var n}function D(){let e=window.i18next.language;return e=e.replace("_","-"),"ht"===e&&(e="fr-HT"),e}var R=n(8658),A=n.n(R),$=Object.defineProperty,F=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,z=(e,t,n)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Z(e,t,n,r){return(A().default||A()).t(t,((e,t)=>{for(var n in t||(t={}))U.call(t,n)&&z(e,n,t[n]);if(F)for(var n of F(t))B.call(t,n)&&z(e,n,t[n]);return e})({ns:e,defaultValue:n},r))}var H=n(3608);function V(e){const[t,n,r]=e.split(".");return`${t}.${n}.${r}`}function K(e,t){const n=function(e){const t=e.indexOf("-");return t>=0?`${V(e.slice(0,t))}-${e.slice(t+1)}`:V(e)}(t);return H.satisfies(n,e,{includePrerelease:!0})}var W=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function q(e){return W(this,arguments,(function*(e,t={}){let{shouldRetry:n,getDelay:r,onError:o}=t;n=null!=n?n:e=>Y(e,5),r=null!=r?r:e=>G(e,1e3);let i,a=0;do{try{return yield Q(r(a)),yield e()}catch(e){null==o||o(e,a),i=e}}while(n(a++));throw i}))}function Y(e,t){return e<=t}function G(e,t,n=!1){const r=n?e+1:e;return t*Math.pow(2,r)}function Q(e){return W(this,null,(function*(){if(!(e<=0))return new Promise((t=>setTimeout(t,e)))}))}},6360:(e,t,n)=>{"use strict";var r=n(7034);window.initializeSpa=function(e){return(0,r.setupUtils)(),(0,r.setupPaths)(e),function(){const e=document.createElement("base"),t=window.getOpenmrsSpaBase();e.href=t,document.head.appendChild(e),n.p=t}(),function(e){const{configUrls:t=[],offline:r=!0}=e,{run:o}=n(7659);return o(t,r)}(e)}},7659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{run:()=>rt}),function(){function e(t){return(e="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})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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&&s(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){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 u(e,t,n){return(u=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function p(e){var t=l();return function(){var n,r=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function v(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 g(t,n){if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(t[r]===n)return!0;return!1}if("string"==typeof t)return t.indexOf(n)>=0;throw Error("Can't call includes on ".concat(e(t)))}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),r=n.exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}var b,w="import-map-override:",E="import-map-overrides-disabled",x="import-map-overrides-external-maps",S="data-is-importmap-override",_="import-map-overrides-domains",k="allowlist:",O="denylist:",C=document.querySelector('meta[name="importmap-type"]'),P=document.querySelector('meta[name="'.concat(_,'"]')),N={},T=C?C.getAttribute("content"):"importmap";if(P){var j=P.getAttribute("content");j||console.warn("Invalid ".concat(_," meta element - content required."));var L=function(e){return new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e).replace("\\*",".+")).test(window.location.hostname)};0===j.indexOf(k)?b=!j.slice(k.length).split(",").some(L):0===j.indexOf(O)?b=j.slice(O.length).split(",").some(L):console.log("Invalid ".concat(_," meta content attribute - must start with ").concat(k," or ").concat(O))}else b=!1;(function(){try{return localStorage.getItem("test"),!0}catch(e){return!1}})()||(console.warn("Disabling import-map-overrides, since local storage is not readable"),b=!0),b||function(){var e,t=!!C&&C.hasAttribute("server-cookie"),n=!!C&&C.hasAttribute("server-only");window.importMapOverrides={addOverride:function(e,n){/^\d+$/g.test(n)&&(n=r.getUrlFromPort(e,n));var o=w+e;return localStorage.setItem(o,n),t&&(document.cookie="".concat(o,"=").concat(n)),i(),r.getOverrideMap()},getOverrideMap:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={imports:{},scopes:{}},n=r.getDisabledOverrides(),o=function(r,o){!e&&n.indexOf(r)>=0||(t.imports[r]=o)},i=0;i<localStorage.length;i++){var a=localStorage.key(i);0===a.indexOf(w)&&o(a.slice(w.length),localStorage.getItem(a))}var s=y("imo",window.location!=window.parent.location?document.referrer:window.location.href);if(s){var l;try{l=JSON.parse(s)}catch(e){throw Error("Invalid importMap query param - text content must be json")}Object.keys(l.imports).forEach((function(e){o(e,l.imports[e])}))}return t},removeOverride:function(e){var n=w+e,o=null!==localStorage.getItem(n);return localStorage.removeItem(n),t&&(document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;")),r.enableOverride(e),i(),o},resetOverrides:function(){return Object.keys(r.getOverrideMap(!0).imports).forEach((function(e){r.removeOverride(e)})),localStorage.removeItem(E),localStorage.removeItem(x),i(),r.getOverrideMap()},hasOverrides:function(){return Object.keys(r.getOverrideMap().imports).length>0},getUrlFromPort:function(e,t){var n=e.replace(/@/g,"").replace(/\//g,"-");return"//localhost:".concat(t,"/").concat(n,".js")},enableUI:function(){var e="import-map-overrides-full",t="show-when-local-storage",n=document.querySelector(e);n||((n=document.createElement(e)).setAttribute(t,"true"),document.body.appendChild(n));var r=n.getAttribute(t);r&&(localStorage.setItem(r,!0),n.renderWithPreact())},mergeImportMap:function(e,t){var n={imports:{},scopes:{}};for(var r in e.imports)n.imports[r]=e.imports[r];for(var o in t.imports)n.imports[o]=t.imports[o];for(var i in e.scopes)n.scopes[i]=e.scopes[i];for(var a in t.scopes)n.scopes[a]=t.scopes[a];return n},getDefaultMap:function(){return e||(e=Array.prototype.reduce.call(document.querySelectorAll('script[type="'.concat(T,'"], script[type="overridable-importmap"]')),(function(e,t){return t.hasAttribute(S)?e:(n=t.src?m(t.src):Promise.resolve(JSON.parse(t.textContent)),Promise.all([e,n]).then((function(e){var t=h(e,2),n=t[0],o=t[1];return r.mergeImportMap(n,o)})));var n}),Promise.resolve({imports:{},scopes:{}})))},getCurrentPageMap:function(){return Promise.all([r.getDefaultMap(),r.getExternalOverrideMap(r.getCurrentPageExternalOverrides())]).then((function(e){var t=h(e,2),n=t[0],o=t[1];return r.mergeImportMap(r.mergeImportMap(n,o),l)}))},getCurrentPageExternalOverrides:function(){var e=[];return document.querySelectorAll("[".concat(S,']:not([id="import-map-overrides"])')).forEach((function(t){e.push(t.src)})),e},getNextPageMap:function(){return Promise.all([r.getDefaultMap(),r.getExternalOverrideMap()]).then((function(e){var t=h(e,2),n=t[0],o=t[1];return r.mergeImportMap(r.mergeImportMap(n,o),r.getOverrideMap())}))},disableOverride:function(e){var t=r.getDisabledOverrides();return!g(t,e)&&(localStorage.setItem(E,JSON.stringify(t.concat(e))),i(),!0)},enableOverride:function(e){var t=r.getDisabledOverrides(),n=t.indexOf(e);return n>=0&&(t.splice(n,1),localStorage.setItem(E,JSON.stringify(t)),i(),!0)},getDisabledOverrides:function(){var e=localStorage.getItem(E);return e?JSON.parse(e):[]},isDisabled:function(e){return g(r.getDisabledOverrides(),e)},getExternalOverrides:function(){var e=localStorage.getItem(x);return e?JSON.parse(e).sort():[]},addExternalOverride:function(e){e=new URL(e,document.baseURI).href;var t=r.getExternalOverrides();return!g(t,e)&&(localStorage.setItem(x,JSON.stringify(t.concat(e))),i(),!0)},removeExternalOverride:function(e){var t=r.getExternalOverrides();return!!g(t,e)&&(localStorage.setItem(x,JSON.stringify(t.filter((function(t){return t!==e})))),i(),!0)},getExternalOverrideMap:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.getExternalOverrides()).reduce((function(e,t){var n=N[t]||(N[t]=m(t));return Promise.all([e,n]).then((function(e){var t=h(e,2),n=t[0],o=t[1];return r.mergeImportMap(n,o)}))}),Promise.resolve({imports:{},scopes:{}}))},isExternalMapValid:function(e){return(N[e]||(N[e]=m(e))).then((function(){return g(r.invalidExternalMaps,e)}))},invalidExternalMaps:[]};var r=window.importMapOverrides,o=!0;try{CustomEvent?new CustomEvent("a"):o=!1}catch(e){o=!1}function i(){a("change")}function a(e){setTimeout((function(){var t="import-map-overrides:".concat(e),n=o?new CustomEvent(t):document.createEvent("CustomEvent");o||n.initCustomEvent(t,!0,!0,null),window.dispatchEvent(n)}))}var s,l=r.getOverrideMap(),u=r.getExternalOverrides();if(!n){var c=document.querySelector('script[type="overridable-importmap"]');if(!(s=c)){var f=document.querySelectorAll('script[type="'.concat(T,'"]'));s=f?f[f.length-1]:null}if(c){if(c.src)throw Error('import-map-overrides: external import maps with type="overridable-importmap" are not supported');var d;try{d=JSON.parse(c.textContent)}catch(e){throw Error('Invalid <script type="overridable-importmap"> - text content must be json')}s=p(r.mergeImportMap(d,l),"import-map-overrides",s),v()}else v(),Object.keys(l.imports).length>0&&(s=p(l,"import-map-overrides",s))}function p(e,t,n){var r=document.createElement("script");return r.type=T,r.id=t,r.setAttribute(S,""),"string"==typeof e?r.src=e:r.textContent=JSON.stringify(e,null,2),n?n.insertAdjacentElement("afterend",r):document.head.appendChild(r),r}function m(e){return fetch(e).then((function(e){return e.ok?e.json().catch((function(t){return console.warn(Error("External override import map contained invalid json, at url ".concat(e.url,". ").concat(t))),r.invalidExternalMaps.push(e.url),{imports:{},scopes:{}}})):(console.warn(Error("Unable to download external override import map from url ".concat(e.url,". Server responded with status ").concat(e.status))),r.invalidExternalMaps.push(e.url),{imports:{},scopes:{}})}),(function(){return console.warn(Error("Unable to download external import map at url '".concat(e,"'"))),r.invalidExternalMaps.push(new URL(e,document.baseURI).href),{imports:{},scopes:{}}}))}function v(){u.length>0&&u.forEach((function(e,t){s=p(e,"import-map-overrides-external-".concat(t))}))}a("init")}();var I=".imo-unstyled {\n border: none;\n padding: 0;\n width: auto;\n overflow: visible;\n background: transparent;\n color: inherit;\n font: inherit;\n line-height: normal;\n cursor: pointer;\n -webkit-font-smoothing: inherit;\n -moz-osx-font-smoothing: inherit;\n -webkit-appearance: none;\n}\n\n.imo-unstyled::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n.imo-trigger {\n position: fixed;\n bottom: 0;\n right: 0;\n margin: 10px;\n border-radius: 5px;\n background-color: navajowhite;\n height: 50px;\n width: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 18px;\n font-family: sans-serif;\n z-index: 10500;\n}\n\n.imo-popup {\n box-sizing: border-box;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 50%;\n z-index: 10000;\n background-color: black;\n color: white;\n font-family: sans-serif;\n padding: 24px;\n overflow-y: auto;\n}\n\n.imo-popup a:visited,\n.imo-popup a {\n color: white;\n}\n\n.imo-popup .imo-module-dialog {\n left: calc(50% - 200px);\n}\n\n.imo-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n}\n\n.imo-list {\n margin-left: 16px;\n}\n\n.imo-list > *:not(:last-child) {\n margin-bottom: 8px;\n}\n\n.imo-list-container *,\n.imo-modal-container * {\n font-family: sans-serif;\n box-sizing: border-box;\n}\n\n.imo-module-dialog {\n position: fixed;\n z-index: 30000000;\n top: 30%;\n max-width: 600px;\n margin: 0 auto;\n border: 4px solid navajowhite;\n background-color: white;\n padding: 1em;\n left: 50%;\n right: auto;\n transform: translateX(-50%);\n}\n\n.imo-module-dialog input {\n width: 100%;\n font-size: 16px;\n box-sizing: border-box;\n padding-right: 20px;\n}\n\n.imo-module-dialog table {\n margin-bottom: 16px;\n}\n\n.imo-module-dialog table td:first-child {\n text-align: right;\n padding-right: 16px;\n word-break: keep-all;\n}\n\n.imo-module-dialog table td {\n word-break: break-all;\n}\n\n.imo-module-dialog.imo-overridden {\n border: 4px solid salmon;\n}\n\n.imo-table-header-actions {\n display: flex;\n align-items: center;\n}\n\n.imo-overrides-table {\n border-collapse: collapse;\n margin-top: 32px;\n}\n\n.imo-overrides-table tr td:first-child {\n display: flex;\n align-items: center;\n padding-right: 32px;\n position: relative;\n}\n\n.imo-needs-refresh {\n position: absolute;\n right: 8px;\n width: 20px;\n height: 20px;\n /* base64 encoded 27F2 svg */\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg width='261' height='216' xmlns='http://www.w3.org/2000/svg' stroke='%23ffffff' stroke-linecap='square' stroke-miterlimit='10' shape-rendering='auto' stroke-opacity='1' fill='%23ffffff' stroke-dasharray='none' stroke-width='1' stroke-linejoin='miter' stroke-dashoffset='0'%3E%3Cg%3E%3Cpath fill='%23ffffff' d='m152.5625,214.0625q-27.5625,0 -49.6406,-11.8125q-22.0781,-11.8125 -34.7344,-28.4062l12.6563,-11.5313q10.6874,15.1875 31.0781,25.0313q20.3906,9.8437 40.6406,9.8437q21.375,0 44.1563,-11.5313q22.7812,-11.5312 34.3124,-34.3124q11.5313,-22.7813 11.5313,-44.1563q0,-21.375 -11.5313,-44.1563q-11.5312,-22.7812 -34.3124,-34.3124q-22.7813,-11.5313 -44.1563,-11.5313q-19.9687,0 -39.6563,9.1406q-19.6874,9.1407 -30.9374,24.1875q-11.25,15.0469 -16.7344,35.7188l42.3281,-34.7344l-54,91.6875l-54,-91.6875l47.25,38.8125q3.9375,-24.4687 17.4375,-44.5781q13.5,-20.1094 36.9844,-32.7656q23.4844,-12.6563 51.3281,-12.6563q29.25,0 54,14.0625q24.75,14.0625 38.8125,38.8125q14.0625,24.75 14.0625,54q0,29.25 -14.0625,54q-14.0625,24.75 -38.8125,38.8125q-24.75,14.0625 -54,14.0625z' /%3E%3C/g%3E%3C/svg%3E\");\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.imo-status {\n height: 16px;\n width: 16px;\n border-radius: 8px;\n border: 1px solid white;\n margin-right: 8px;\n}\n\n.imo-disabled-override {\n background-color: lightblue;\n}\n\n.imo-next-override {\n background-color: darkred;\n}\n\n.imo-current-override {\n background-color: salmon;\n}\n\n.imo-default-module {\n background-color: lightgoldenrodyellow;\n}\n\n.imo-external-override {\n background-color: orange;\n}\n\n.imo-next-default {\n background-color: darkgoldenrod;\n}\n\n.imo-dev-lib-override {\n background-color: lightpink;\n}\n\n.imo-overrides-table tbody tr:hover {\n cursor: pointer;\n background-color: #404040;\n}\n\n.imo-overrides-table td,\n.imo-overrides-table th {\n line-height: 18px;\n padding: 16px;\n border: 1px solid white;\n}\n\n.imo-add-new {\n margin-left: 16px;\n}\n\n.imo-add-new button {\n color: black;\n}\n\n.imo-clear-input {\n position: absolute;\n top: 0;\n right: 4px;\n cursor: pointer;\n display: flex;\n align-items: center;\n height: 100%;\n}\n\n.imo-modal-container {\n font-family: sans-serif;\n}\n\n.imo-modal {\n background-color: rgba(61, 70, 77, 0.6);\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n z-index: 20000000;\n}\n\n.imo-list-search,\n.imo-list-container button,\n.imo-modal-container button {\n font-size: 14px;\n height: 27px;\n line-height: 27px;\n}\n\n.imo-list-search {\n line-height: 22px;\n border: none;\n padding: 5px;\n color: black;\n}\n";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(I);var M,D,R,A,$,F,U={},B=[],z=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Z(e,t){for(var n in t)e[n]=t[n];return e}function H(e){var t=e.parentNode;t&&t.removeChild(e)}function V(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?M.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return K(e,a,r,o,null)}function K(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++R:o};return null!=D.vnode&&D.vnode(i),i}function W(e){return e.children}function q(e,t){this.props=e,this.context=t}function Y(e,t){if(null==t)return e.__?Y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Y(e):null}function G(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return G(e)}}function Q(e){(!e.__d&&(e.__d=!0)&&A.push(e)&&!J.__r++||F!==D.debounceRendering)&&((F=D.debounceRendering)||$)(J)}function J(){for(var e;J.__r=A.length;)e=A.sort((function(e,t){return e.__v.__b-t.__v.__b})),A=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=Z({},o)).__v=o.__v+1,ae(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Y(o):i,o.__h),se(n,o),o.__e!=i&&G(o)))}))}function X(e,t,n,r,o,i,a,s,l,u){var c,f,d,p,h,m,v,g=r&&r.__k||B,y=g.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(p=n.__k[c]=null==(p=t[c])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?K(null,p,null,null,p):Array.isArray(p)?K(W,{children:p},null,null,null):p.__b>0?K(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(d=g[c])||d&&p.key==d.key&&p.type===d.type)g[c]=void 0;else for(f=0;f<y;f++){if((d=g[f])&&p.key==d.key&&p.type===d.type){g[f]=void 0;break}d=null}ae(e,p,d=d||U,o,i,a,s,l,u),h=p.__e,(f=p.ref)&&d.ref!=f&&(v||(v=[]),d.ref&&v.push(d.ref,null,p),v.push(f,p.__c||h,p)),null!=h?(null==m&&(m=h),"function"==typeof p.type&&null!=p.__k&&p.__k===d.__k?p.__d=l=ee(p,l,e):l=te(e,p,d,g,h,l),u||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&d.__e==l&&l.parentNode!=e&&(l=Y(d))}for(n.__e=m,c=y;c--;)null!=g[c]&&("function"==typeof n.type&&null!=g[c].__e&&g[c].__e==n.__d&&(n.__d=Y(r,c+1)),ue(g[c],g[c]));if(v)for(c=0;c<v.length;c++)le(v[c],v[++c],v[++c])}function ee(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?ee(o,t,n):te(n,o,o,e.__k,o.__e,t));return t}function te(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function ne(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||z.test(t)?n:n+"px"}function re(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ne(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ne(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?ie:oe,i):e.removeEventListener(t,i?ie:oe,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function oe(e){this.l[e.type+!1](D.event?D.event(e):e)}function ie(e){this.l[e.type+!0](D.event?D.event(e):e)}function ae(e,t,n,r,o,i,a,s,l){var u,c,f,d,p,h,m,v,g,y,b,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=D.__b)&&u(t);try{e:if("function"==typeof w){if(v=t.props,g=(u=w.contextType)&&r[u.__c],y=u?g?g.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in w&&w.prototype.render?t.__c=c=new w(v,y):(t.__c=c=new q(v,y),c.constructor=w,c.render=ce),g&&g.sub(c),c.props=v,c.state||(c.state={}),c.context=y,c.__n=r,f=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=w.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=Z({},c.__s)),Z(c.__s,w.getDerivedStateFromProps(v,c.__s))),d=c.props,p=c.state,f)null==w.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==w.getDerivedStateFromProps&&v!==d&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(v,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(v,c.__s,y)||t.__v===n.__v){c.props=v,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(v,c.__s,y),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(d,p,h)}))}c.context=y,c.props=v,c.state=c.__s,(u=D.__r)&&u(t),c.__d=!1,c.__v=t,c.__P=e,u=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=Z(Z({},r),c.getChildContext())),f||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(d,p)),b=null!=u&&u.type===W&&null==u.key?u.props.children:u,X(e,Array.isArray(b)?b:[b],t,n,r,o,i,a,s,l),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,s){var l,u,c,f=n.props,d=t.props,p=t.type,h=0;if("svg"===p&&(o=!0),null!=i)for(;h<i.length;h++)if((l=i[h])&&(l===e||(p?l.localName==p:3==l.nodeType))){e=l,i[h]=null;break}if(null==e){if(null===p)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),i=null,s=!1}if(null===p)f===d||s&&e.data===d||(e.data=d);else{if(i=i&&M.call(e.childNodes),u=(f=n.props||U).dangerouslySetInnerHTML,c=d.dangerouslySetInnerHTML,!s){if(null!=i)for(f={},h=0;h<e.attributes.length;h++)f[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||re(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||re(e,i,t[i],n[i],r)}(e,d,f,o,s),c)t.__k=[];else if(h=t.props.children,X(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==p,i,a,i?i[0]:n.__k&&Y(n,0),s),null!=i)for(h=i.length;h--;)null!=i[h]&&H(i[h]);s||("value"in d&&void 0!==(h=d.value)&&(h!==e.value||"progress"===p&&!h)&&re(e,"value",h,f.value,!1),"checked"in d&&void 0!==(h=d.checked)&&h!==e.checked&&re(e,"checked",h,f.checked,!1))}return e}(n.__e,t,n,r,o,i,a,l);(u=D.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),D.__e(e,t,n)}}function se(e,t){D.__c&&D.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){D.__e(e,t.__v)}}))}function le(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){D.__e(e,n)}}function ue(e,t,n){var r,o;if(D.unmount&&D.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||le(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){D.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ue(r[o],t,"function"!=typeof e.type);n||null==e.__e||H(e.__e),e.__e=e.__d=void 0}function ce(e,t,n){return this.constructor(e,n)}function fe(e,t,n){var r,o,i;D.__&&D.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],ae(t,e=(!r&&n||t).__k=V(W,null,[e]),o||U,U,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?M.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),se(i,e)}M=B.slice,D={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},R=0,q.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Z({},this.state),"function"==typeof e&&(e=e(Z({},n),this.props)),e&&Z(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Q(this))},q.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Q(this))},q.prototype.render=W,A=[],$="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,J.__r=0;var de=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"getInitialOverrideUrl",(function(){var t=new RegExp("//localhost:([0-9]+)/").exec(e.props.module.overrideUrl);return t&&e.props.module.overrideUrl===window.importMapOverrides.getUrlFromPort(e.props.module.moduleName,t[1])?t[1]:e.props.module.overrideUrl?e.props.module.overrideUrl:""})),o(f(e),"state",{overrideUrl:e.getInitialOverrideUrl(),moduleName:""}),o(f(e),"inputEl",null),o(f(e),"moduleNameEl",null),o(f(e),"handleInputRef",(function(t){e.inputEl=t})),o(f(e),"handleModuleNameRef",(function(t){e.moduleNameEl=t})),o(f(e),"dialogRef",(function(t){e.dialogEl=t})),o(f(e),"handleSubmit",(function(t){t.preventDefault(),e.props.module.moduleName&&window.importMapOverrides.isDisabled(e.props.module.moduleName)&&window.importMapOverrides.enableOverride(e.props.module.moduleName),e.props.module.isNew?e.props.addNewModule(e.state.moduleName,e.state.overrideUrl):e.props.updateModuleUrl(e.state.overrideUrl)})),o(f(e),"getDerivedUrl",(function(){var t=e.props.module.isNew?e.state.moduleName:e.props.module.moduleName;return pe.test(e.state.overrideUrl)?window.importMapOverrides.getUrlFromPort(t,e.state.overrideUrl):e.state.overrideUrl})),o(f(e),"keyDown",(function(t){"Escape"===t.key&&(t.stopPropagation(),e.props.cancel())})),o(f(e),"focusFirstInput",(function(){(e.moduleNameEl||e.inputEl).select()})),o(f(e),"clearModuleName",(function(){e.setState({moduleName:""},(function(){e.focusFirstInput()}))})),o(f(e),"clearInput",(function(){e.setState({overrideUrl:""},(function(){e.focusFirstInput()}))})),e}return r(a,[{key:"componentDidMount",value:function(){this.focusFirstInput(),this.dialogEl.addEventListener("keydown",this.keyDown)}},{key:"componentDidUpdate",value:function(e,t){var n=this;this.props.module!==e.module&&this.setState({overrideUrl:this.props.module.overrideUrl||""},(function(){n.focusFirstInput()}))}},{key:"componentWillUnmount",value:function(){this.dialogEl.removeEventListener("keydown",this.keyDown)}},{key:"render",value:function(e){var t=this,n=e.module;return V("div",{className:"imo-modal-container"},V("div",{className:"imo-modal"}),V("dialog",{className:"imo-module-dialog ".concat(this.state.overrideUrl.length>0?"imo-overridden":"imo-default"),open:!0,ref:this.dialogRef},V("form",{method:"dialog",onSubmit:this.handleSubmit},V("h3",{style:{marginTop:0}},n.moduleName),V("table",null,V("tbody",null,!n.isNew&&V("tr",null,V("td",null,"Default URL:"),V("td",null,n.defaultUrl)),n.isNew&&V("tr",null,V("td",null,V("span",{id:"module-name-label"},"Module Name:")),V("td",{style:{position:"relative"}},V("input",{type:"text",tabIndex:1,value:this.state.moduleName,"aria-labelledby":"module-name-label",onInput:function(e){return t.setState({moduleName:e.target.value})},ref:this.handleModuleNameRef,required:!0}),V("div",{role:"button",tabIndex:3,className:"imo-clear-input",onClick:this.clearModuleName},V("div",null,"ⓧ")))),V("tr",null,V("td",null,V("span",{id:"override-url-label"},"Override URL:")),V("td",{style:{position:"relative"}},V("input",{ref:this.handleInputRef,type:"text",value:this.state.overrideUrl,"aria-labelledby":"override-url-label",tabIndex:2,onInput:function(e){return t.setState({overrideUrl:e.target.value})}}),V("div",{role:"button",tabIndex:4,className:"imo-clear-input",onClick:this.clearInput},V("div",null,"ⓧ")))),pe.test(this.state.overrideUrl)&&V("tr",null,V("td",null,"Derived url:"),V("td",null,this.getDerivedUrl())))),V("div",{className:"imo-dialog-actions"},V("button",{type:"button",tabIndex:5,onClick:this.props.cancel,style:{marginRight:"16px"}},"Cancel"),this.props.module.overrideUrl&&!this.props.module.disabled&&V("button",{type:"button",onClick:function(){t.props.module.disabled?window.importMapOverrides.enableOverride(t.props.module.moduleName):window.importMapOverrides.disableOverride(t.props.module.moduleName),t.props.cancel()},tabIndex:6,style:{marginRight:"16px"}},this.props.module.disabled?"Enable":"Disable"," Override"),V("button",{type:"submit",tabIndex:7,className:this.state.overrideUrl?"imo-overridden":"imo-default"},this.state.overrideUrl?"Apply override":"Reset to default")))))}}]),a}(q),pe=/^\d+$/,he=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"state",{url:e.props.dialogExternalMap.isNew?"":e.props.dialogExternalMap.url}),o(f(e),"inputEl",null),o(f(e),"handleSubmit",(function(t){t.preventDefault(),e.props.dialogExternalMap.isNew||window.importMapOverrides.removeExternalOverride(e.props.dialogExternalMap.url),e.state.url&&window.importMapOverrides.addExternalOverride(e.state.url),e.props.cancel()})),o(f(e),"keyDown",(function(t){"Escape"===t.key&&(t.stopPropagation(),e.props.cancel())})),e}return r(a,[{key:"componentDidMount",value:function(){this.inputEl.focus(),this.dialogEl.addEventListener("keydown",this.keyDown)}},{key:"componentWillUnmount",value:function(){this.dialogEl.removeEventListener("keydown",this.keyDown)}},{key:"render",value:function(){var e=this;return V("div",{className:"imo-modal-container"},V("div",{className:"imo-modal"}),V("dialog",{className:"imo-module-dialog",open:!0,ref:function(t){return e.dialogEl=t}},V("form",{method:"dialog",onSubmit:this.handleSubmit},V("h3",{style:{marginTop:0}},this.props.dialogExternalMap.isNew?"Add External Import Map":"Edit External Import Map"),V("div",{style:{marginBottom:"20px"}},V("label",{htmlFor:"external-importmap-url"},"URL to import map:"),V("span",{style:{position:"relative"}},V("input",{id:"external-importmap-url",type:"text",value:this.state.url,onInput:function(t){return e.setState({url:t.target.value})},ref:function(t){return e.inputEl=t},required:this.props.dialogExternalMap.isNew}),V("div",{role:"button",tabIndex:0,className:"imo-clear-input",onClick:function(){return e.setState({url:""})}},V("div",null,"ⓧ")))),V("div",{className:"imo-dialog-actions"},V("button",{type:"button",onClick:this.props.cancel,style:{marginRight:"16px"}},"Cancel"),V("button",{type:"submit",className:this.state.url?"imo-overridden":"imo-default"},this.state.url||this.props.dialogExternalMap.isNew?"Apply override":"Remove override")))))}}]),a}(q),me=function(e){i(o,e);var n=p(o);function o(){return t(this,o),n.apply(this,arguments)}return r(o,[{key:"componentDidMount",value:function(){window.importMapOverrides.getCurrentPageMap().then(ye)}},{key:"render",value:function(){return null}}]),o}(q),ve=function(e){return e.replace(".min.js",".js")},ge={react:function(e){return e.replace("production.min","development")},"react-dom":function(e){return e.replace("production.min","development")},"single-spa":function(e){return e.replace("single-spa.min.js","single-spa.dev.js")},vue:ve,"vue-router":ve,"@angular/core":ve,"@angular/common":ve,"@angular/router":ve,"@angular/platform-browser":ve};function ye(e){Object.keys(e.imports).filter((function(e){return ge[e]})).forEach((function(t){window.importMapOverrides.addOverride(t,ge[t](e.imports[t]))}))}function be(){return Object.keys(window.importMapOverrides.getOverrideMap().imports).filter((function(e){return!ge[e]})).length>0}var we=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"state",{notOverriddenMap:{imports:{}},currentPageMap:{imports:{}},nextPageMap:{imports:{}},dialogModule:null,dialogExternalMap:null,searchVal:""}),o(f(e),"reload",(function(e){e.stopPropagation(),window.location.reload()})),o(f(e),"cancel",(function(){e.setState({dialogModule:null,dialogExternalMap:null})})),o(f(e),"updateModuleUrl",(function(t){null===(t=t||null)?window.importMapOverrides.removeOverride(e.state.dialogModule.moduleName):window.importMapOverrides.addOverride(e.state.dialogModule.moduleName,t),e.setState({dialogModule:null})})),o(f(e),"doUpdate",(function(){e.forceUpdate(),window.importMapOverrides.getNextPageMap().then((function(t){e.setState({nextPageMap:t})}))})),o(f(e),"addNewModule",(function(t,n){t&&n&&window.importMapOverrides.addOverride(t,n),e.setState({dialogModule:null})})),o(f(e),"filterModuleNames",(function(t){return!(e.state.searchVal.trim().length>0)||g(t,e.state.searchVal)})),e}return r(a,[{key:"componentDidMount",value:function(){var e=this;window.importMapOverrides.getDefaultMap().then((function(t){e.setState({notOverriddenMap:t})})),window.importMapOverrides.getCurrentPageMap().then((function(t){e.setState({currentPageMap:t})})),window.importMapOverrides.getNextPageMap().then((function(t){e.setState({nextPageMap:t})})),window.addEventListener("import-map-overrides:change",this.doUpdate),this.inputRef.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("import-map-overrides:change",this.doUpdate)}},{key:"componentDidUpdate",value:function(e,t){!t.dialogModule&&this.state.dialogModule?(this.dialogContainer=document.createElement("div"),document.body.appendChild(this.dialogContainer),fe(V(de,{module:this.state.dialogModule,cancel:this.cancel,updateModuleUrl:this.updateModuleUrl,addNewModule:this.addNewModule}),this.dialogContainer)):t.dialogModule&&!this.state.dialogModule&&(fe(null,this.dialogContainer),this.dialogContainer.remove(),delete this.dialogContainer),!t.dialogExternalMap&&this.state.dialogExternalMap?(this.dialogContainer=document.createElement("div"),document.body.appendChild(this.dialogContainer),fe(V(he,{dialogExternalMap:this.state.dialogExternalMap,cancel:this.cancel}),this.dialogContainer)):t.dialogExternalMap&&!this.state.dialogExternalMap&&(fe(null,this.dialogContainer),this.dialogContainer.remove(),delete this.dialogContainer)}},{key:"render",value:function(){var e=this,t=[],n=[],r=[],o=[],i=[],a=[],s=[],l=window.importMapOverrides.getOverrideMap(!0).imports,u=Object.keys(this.state.notOverriddenMap.imports),c=window.importMapOverrides.getDisabledOverrides();u.filter(this.filterModuleNames).forEach((function(u){var f={moduleName:u,defaultUrl:e.state.notOverriddenMap.imports[u],overrideUrl:l[u],disabled:g(c,u)};f.disabled?r.push(f):l[u]?e.state.currentPageMap.imports[u]===l[u]?ge[u]&&ge[u](e.state.currentPageMap.imports[u])===l[u]?s.push(f):t.push(f):n.push(f):e.state.notOverriddenMap.imports[u]===e.state.currentPageMap.imports[u]?o.push(f):e.state.notOverriddenMap.imports[u]===e.state.nextPageMap.imports[u]?a.push(f):i.push(f)})),Object.keys(l).filter(this.filterModuleNames).forEach((function(o){if(!g(u,o)){var i={moduleName:o,defaultUrl:null,overrideUrl:l[o],disabled:g(c,o)};i.disabled?r.push(i):e.state.currentPageMap.imports[o]===l[o]?t.push(i):n.push(i)}})),t.sort(Ee),o.sort(Ee),n.sort(Ee);var f=function(){var e,t=window.importMapOverrides.getExternalOverrides(),n=window.importMapOverrides.getCurrentPageExternalOverrides(),r=[],o=[],i=[],a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,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,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(t);try{for(a.s();!(e=a.n()).done;){var s=e.value;g(window.importMapOverrides.invalidExternalMaps,s)?r.push(s):g(n,s)?o.push(s):i.push(s)}}catch(e){a.e(e)}finally{a.f()}return{brokenMaps:r,workingCurrentPageMaps:o,workingNextPageMaps:i}}(),d=f.brokenMaps,p=f.workingCurrentPageMaps,h=f.workingNextPageMaps;return V("div",{className:"imo-list-container"},V("div",{className:"imo-table-header-actions"},V("input",{className:"imo-list-search","aria-label":"Search modules",placeholder:"Search modules",value:this.state.searchVal,onInput:function(t){return e.setState({searchVal:t.target.value})},ref:function(t){return e.inputRef=t}}),V("div",{className:"imo-add-new"},V("button",{onClick:function(){return e.setState({dialogModule:{moduleName:"New module",isNew:!0}})}},"Add new module")),V("div",{className:"imo-add-new"},V("button",{onClick:function(){e.setState({dialogExternalMap:{url:"",isNew:!0}})}},"Add import map")),V("div",{className:"imo-add-new"},V("button",{onClick:function(){return window.importMapOverrides.resetOverrides()}},"Reset all overrides"))),V("table",{className:"imo-overrides-table"},V("thead",null,V("tr",null,V("th",null,"Module Status"),V("th",null,"Module Name"),V("th",null,"Domain"),V("th",null,"Filename"))),V("tbody",null,n.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",{onClick:e.reload,role:"button",tabIndex:0},V("div",{className:"imo-status imo-next-override"}),V("div",null,"Inline Override"),V("div",{className:"imo-needs-refresh"})),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),a.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",{style:{position:"relative"}},V("div",{className:"imo-status imo-next-default"}),V("div",null,"Default"),V("div",{className:"imo-needs-refresh"})),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),r.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",null,V("div",{className:"imo-status imo-disabled-override"}),V("div",null,"Override disabled")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),t.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",null,V("div",{className:"imo-status imo-current-override"}),V("div",null,"Inline Override")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),i.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",null,V("div",{className:"imo-status imo-external-override"}),V("div",null,"External Override")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),s.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName,title:"Automatically use dev version of certain npm libs"},V("td",null,V("div",{className:"imo-status imo-dev-lib-override"}),V("div",null,"Dev Lib Override")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),o.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",null,V("div",{className:"imo-status imo-default-module"}),V("div",null,"Default")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})))),(d.length>0||p.length>0||h.length>0)&&V("table",{className:"imo-overrides-table"},V("thead",null,V("th",null,"Import Map Status"),V("th",null,"URL")),V("tbody",null,d.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogExternalMap:{isNew:!1,url:t}})},key:t},V("td",null,V("div",{className:"imo-status imo-disabled-override"}),V("div",null,"Invalid")),V("td",null,t))})),h.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogExternalMap:{isNew:!1,url:t}})},key:t},V("td",null,V("div",{className:"imo-status imo-next-override"}),V("div",null,"Pending refresh")),V("td",null,t))})),p.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogExternalMap:{isNew:!1,url:t}})},key:t},V("td",null,V("div",{className:"imo-status imo-current-override"}),V("div",null,"Override")),V("td",null,t))})))))}}]),a}(q);function Ee(e,t){return e.moduleName>t.moduleName}var xe=document.querySelector("base")&&document.querySelector("base").href||location.origin+"/";function Se(e){var t=ke(e),n=Oe(t);return n?n.host:t}function _e(e){var t=ke(e),n=Oe(t);return n?n.pathname.slice(n.pathname.lastIndexOf("/")+1):t}function ke(e){return e.overrideUrl||e.defaultUrl}function Oe(e){try{return new URL(e,xe)}catch(e){return null}}var Ce=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"doUpdate",(function(){return e.forceUpdate()})),o(f(e),"keydownListener",(function(t){"Escape"===t.key&&e.props.close&&e.props.close()})),e}return r(a,[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.keydownListener),window.addEventListener("import-map-overrides:change",this.doUpdate)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.keydownListener),window.removeEventListener("import-map-overrides:change",this.doUpdate)}},{key:"render",value:function(e){return V("div",{className:"imo-popup"},V("div",{className:"imo-header"},V("div",null,V("h1",null,"Import Map Overrides"),V("p",null,"This developer tool allows you to view and override your import maps. Start by clicking on a module that you'd like to override."," ",V("a",{target:"_blank",href:"https://github.com/joeldenning/import-map-overrides"},"See documentation for more info"),".")),V("button",{className:"imo-unstyled",onClick:e.close},"ⓧ")),V(we,{importMapChanged:this.props.importMapChanged}))}}]),a}(q),Pe=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"state",{showingPopup:!1}),o(f(e),"doUpdate",(function(){return e.forceUpdate()})),o(f(e),"toggleTrigger",(function(){e.setState((function(e){return{showingPopup:!e.showingPopup}}))})),o(f(e),"importMapChanged",(function(){e.forceUpdate()})),o(f(e),"useDevLibs",(function(){var t=localStorage.getItem("import-map-overrides-dev-libs");return t?"true"===t:e.props.customElement.hasAttribute("dev-libs")})),o(f(e),"atLeastOneOverride",(function(){return e.useDevLibs()?be():Object.keys(window.importMapOverrides.getOverrideMap().imports).length>0})),e}return r(a,[{key:"componentDidMount",value:function(){window.addEventListener("import-map-overrides:change",this.doUpdate)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("import-map-overrides:change",this.doUpdate)}},{key:"render",value:function(e,t){return e.customElement.hasAttribute("show-when-local-storage")&&"true"!==localStorage.getItem(e.customElement.getAttribute("show-when-local-storage"))?null:V("div",null,V("button",{onClick:this.toggleTrigger,className:"imo-unstyled imo-trigger ".concat(this.atLeastOneOverride()?"imo-current-override":"")},"{···}"),this.useDevLibs()&&V(me,null),t.showingPopup&&V(Ce,{close:this.toggleTrigger,importMapChanged:this.importMapChanged}))}}]),a}(q);function Ne(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(o){i(s,o);var a=p(s);function s(){return t(this,s),a.apply(this,arguments)}return r(s,[{key:"connectedCallback",value:function(){this.renderWithPreact()}},{key:"disconnectedCallback",value:function(){fe(null,this),this.renderedEl=null}},{key:"attributeChangedCallback",value:function(){this.renderWithPreact()}},{key:"renderWithPreact",value:function(){this.shadow=this.attachShadow({mode:"open"}),this.renderedEl=fe(V(e,{customElement:this}),this.shadow,this.renderedEl);var t=document.createElement("style");t.textContent=I.toString(),this.shadow.appendChild(t)}}],[{key:"observedAttributes",get:function(){return n}}]),s}(c(HTMLElement))}window.customElements&&!b&&(window.customElements.define("import-map-overrides-full",Ne(Pe,["show-when-local-storage"])),window.customElements.define("import-map-overrides-popup",Ne(Ce)),window.customElements.define("import-map-overrides-list",Ne(we)))}(),n(3592),n(7655),n(5145),n(1769),n(9596);var r=n(6929),o=n(7034),i=n(2813);const a={bootstrap:()=>Promise.resolve(),mount:()=>Promise.resolve(),unmount:()=>Promise.resolve()};var s=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},m=(e,t)=>l(e,u(t));const v=[];function g(e){if(Array.isArray(e)){const t=e.map(g);return e=>t.some((t=>t(e)))}return"string"==typeof e?t=>function(e,t){return t.pathname.startsWith(window.getOpenmrsSpaBase()+e)}(e,t):e instanceof RegExp?t=>function(e,t){return e.test(t.pathname.replace(window.getOpenmrsSpaBase(),""))}(e,t):e}function y(e,t,n){if(("string"==typeof n||Array.isArray(n))&&(e=function(e,t){return()=>{return n=this,r=function*(){const n=yield(0,i.getLoggedInUser)();return n&&(0,i.userHasAccess)(t,n)?e():a},new Promise(((e,t)=>{var o=e=>{try{a(r.next(e))}catch(e){t(e)}},i=e=>{try{a(r.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((r=r.apply(n,null)).next())}));var n,r}}(e,n)),"object"==typeof t){const n=Object.keys(t);if(n.length>0)return()=>{return r=this,null,o=function*(){const r=yield Promise.all(n.map((e=>t[e]()))),o=n.reduce(((e,t,n)=>(e[t]=r[n],e)),{}),i=yield e(),a=m(h({},i),{mount:e=>i.mount(h(h({},o),e))});return i.update&&Object.assign(a,{update:e=>i.update&&i.update(h(h({},o),e))}),a},new Promise(((e,t)=>{var n=e=>{try{a(o.next(e))}catch(e){t(e)}},i=e=>{try{a(o.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,i);a((o=o.apply(r,null)).next())}));var r,o}}return e}function b(e,t){const{route:n,load:i,online:a,offline:s,resources:l,privilege:u}=t;if((0,o.checkStatus)(a,s)){const t=g(n),c=y(i,l,u);(0,r.d6)(e,c,(e=>t(e)),(()=>(0,o.getCustomProps)(a,s)))}}function w(e,t){var n;const r=null!=(n=t.name)?n:t.id,i=t.slots||[t.slot];if(r)if(t.load){(0,o.registerExtension)({name:r,load:y(t.load,t.resources,t.privilege),meta:t.meta||{},order:t.order,moduleName:e,offline:t.offline,online:t.online,privileges:t.privilege});for(const e of i)e&&(0,o.attach)(e,r)}else console.warn('A registered extension definition is missing the loader and thus cannot be registered.\nTo fix this, ensure that you define a "load" function inside the extension definition.',t);else console.warn('A registered extension definition is missing an name and thus cannot be registered.\nTo fix this, ensure that you define the "name" (or alternatively the "id") field inside the extension definition.',t)}var E=n(8658),x=n.n(E),S=n(2692),_=n.n(S),k=n(6823),O=n(1917),C=[],P=C.forEach,N=C.slice;function T(e){return P.call(N.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var j,L={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,n,r){var o,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/"};if(n){var a=new Date;a.setTime(a.getTime()+60*n*1e3),o="; expires="+a.toUTCString()}else o="";r=r?"domain="+r+";":"",i=Object.keys(i).reduce((function(e,t){return e+";"+t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))+"="+i[t]}),""),document.cookie=e+"="+encodeURIComponent(t)+o+";"+r+i}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},I={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var n=window.location.search.substring(1).split("&"),r=0;r<n.length;r++){var o=n[r].indexOf("=");o>0&&n[r].substring(0,o)===e.lookupQuerystring&&(t=n[r].substring(o+1))}return t}};try{j="undefined"!==window&&null!==window.localStorage;var M="i18next.translate.boo";window.localStorage.setItem(M,"foo"),window.localStorage.removeItem(M)}catch(e){j=!1}var D,R={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&j){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&j&&window.localStorage.setItem(t.lookupLocalStorage,e)}};try{D="undefined"!==window&&null!==window.sessionStorage;var A="i18next.translate.boo";window.sessionStorage.setItem(A,"foo"),window.sessionStorage.removeItem(A)}catch(e){D=!1}var $={name:"sessionStorage",lookup:function(e){var t;if(e.lookupsessionStorage&&D){var n=window.sessionStorage.getItem(e.lookupsessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupsessionStorage&&D&&window.sessionStorage.setItem(t.lookupsessionStorage,e)}},F={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},U={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},B={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},z={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}},Z=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,k.Z)(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return(0,O.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=T(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],checkWhitelist:!0,checkForSimilarInWhitelist:!1}),this.options.checkForSimilarInWhitelist&&(this.options.checkWhitelist=!0),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(L),this.addDetector(I),this.addDetector(R),this.addDetector($),this.addDetector(F),this.addDetector(U),this.addDetector(B),this.addDetector(z)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n,r=[];if(e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(r=r.concat(n))}})),r.forEach((function(e){if(!n){var r=t.services.languageUtils.formatLanguageCode(e);t.options.checkWhitelist&&!t.services.languageUtils.isWhitelisted(r)||(n=r),!n&&t.options.checkForSimilarInWhitelist&&(n=t.getSimilarInWhitelist(r))}})),!n){var o=this.i18nOptions.fallbackLng;"string"==typeof o&&(o=[o]),o||(o=[]),n="[object Array]"===Object.prototype.toString.apply(o)?o[0]:o[0]||o.default&&o.default[0]}return n}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}},{key:"getSimilarInWhitelist",value:function(e){var t=this;if(this.i18nOptions.whitelist){if(e.includes("-")){var n=e.split("-")[0],r=this.services.languageUtils.formatLanguageCode(n);if(this.services.languageUtils.isWhitelisted(r))return r;e=r}return this.i18nOptions.whitelist.find((function(n){var r=t.services.languageUtils.formatLanguageCode(n);if(r.startsWith(e))return r}))||void 0}}}]),e}();Z.type="languageDetector";const H=Z;var V=n(8433),K=n(7198),W=n(8951);const q=function(){try{var e=(0,W.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=function(e,t,n){"__proto__"==t&&q?q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var G=n(9079);const Q=function(e,t,n){(void 0!==n&&!(0,G.Z)(e[t],n)||void 0===n&&!(t in e))&&Y(e,t,n)},J=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}return e};var X=n(8755),ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,te=ee&&"object"==typeof module&&module&&!module.nodeType&&module,ne=te&&te.exports===ee?X.Z.Buffer:void 0,re=ne?ne.allocUnsafe:void 0;var oe=n(1086);const ie=function(e,t){var n,r,o=t?(n=e.buffer,r=new n.constructor(n.byteLength),new oe.Z(r).set(new oe.Z(n)),r):e.buffer;return new e.constructor(o,e.byteOffset,e.length)};var ae=n(5917),se=Object.create;const le=function(){function e(){}return function(t){if(!(0,ae.Z)(t))return{};if(se)return se(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var ue=n(6059),ce=n(4789);var fe=n(5602),de=n(7275),pe=n(7597),he=n(31);var me=n(3813),ve=n(3797),ge=n(1785),ye=n(3614);const be=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var we=Object.prototype.hasOwnProperty;const Ee=function(e,t,n){var r=e[t];we.call(e,t)&&(0,G.Z)(r,n)&&(void 0!==n||t in e)||Y(e,t,n)};var xe=n(1757);var Se=Object.prototype.hasOwnProperty;const _e=function(e){if(!(0,ae.Z)(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=(0,ce.Z)(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n},ke=function(e){return(0,pe.Z)(e)?(0,xe.Z)(e,!0):_e(e)},Oe=function(e){return function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?Y(n,s,l):Ee(n,s,l)}return n}(e,ke(e))},Ce=function(e,t,n,r,o,i,a){var s,l=be(e,n),u=be(t,n),c=a.get(u);if(c)Q(e,n,c);else{var f=i?i(l,u,n+"",e,t,a):void 0,d=void 0===f;if(d){var p=(0,de.Z)(u),h=!p&&(0,me.Z)(u),m=!p&&!h&&(0,ye.Z)(u);f=u,p||h||m?(0,de.Z)(l)?f=l:(s=l,(0,he.Z)(s)&&(0,pe.Z)(s)?f=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):h?(d=!1,f=function(e,t){if(t)return e.slice();var n=e.length,r=re?re(n):new e.constructor(n);return e.copy(r),r}(u,!0)):m?(d=!1,f=ie(u,!0)):f=[]):(0,ge.Z)(u)||(0,fe.Z)(u)?(f=l,(0,fe.Z)(l)?f=Oe(l):(0,ae.Z)(l)&&!(0,ve.Z)(l)||(f=function(e){return"function"!=typeof e.constructor||(0,ce.Z)(e)?{}:le((0,ue.Z)(e))}(u))):d=!1}d&&(a.set(u,f),o(f,u,r,i,a),a.delete(u)),Q(e,n,f)}},Pe=function e(t,n,r,o,i){t!==n&&J(n,(function(a,s){if(i||(i=new K.Z),(0,ae.Z)(a))Ce(t,n,s,r,e,o,i);else{var l=o?o(be(t,s),a,s+"",t,n,i):void 0;void 0===l&&(l=a),Q(t,s,l)}}),ke)},Ne=function(e){return e},Te=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)};var je=Math.max;const Le=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ne;var Ie=Date.now;const Me=(De=Le,Re=0,Ae=0,function(){var e=Ie(),t=16-(e-Ae);if(Ae=e,t>0){if(++Re>=800)return arguments[0]}else Re=0;return De.apply(void 0,arguments)});var De,Re,Ae;const $e=function(e,t){return Me(function(e,t,n){return t=je(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=je(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Te(e,this,s)}}(e,t,Ne),e+"")};var Fe=n(7605);const Ue=(Be=function(e,t,n){Pe(e,t,n)},$e((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Be.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!(0,ae.Z)(n))return!1;var r=typeof t;return!!("number"==r?(0,pe.Z)(n)&&(0,Fe.Z)(t,n.length):"string"==r&&t in n)&&(0,G.Z)(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Be(e,a,n)}return e})));var Be,ze=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function Ze(e){return e.replace(/[\/\-@]/g,"_")}function He(e,t,n){if("function"!=typeof e.importTranslation)throw Error(`Module ${t} does not export an importTranslation function`);const r=e.importTranslation(`./${n}.json`);if(!(r instanceof Promise))throw Error(`Module ${t} exports an importTranslation function that does not return a promise. Did you forget to set require.context mode to 'lazy'?`);return r}const Ve="@openmrs/esm-app-shell";var Ke=n(3596);const We={"@openmrs/esm-framework":o,rxjs:Ke};var qe=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function Ye(e){return qe(this,null,(function*(){e.forEach((([e,t])=>function(e,t){var n,r;const i=t.setupOpenMRS;if("function"==typeof i){(0,o.defineConfigSchema)(e,{});const a=t.assets,s=function(e,t){try{return t()}catch(t){return void console.error("Error when trying to set up the module",e,t)}}(e,i);if(Array.isArray(a),s&&"object"==typeof s){const t=null!=(n=s.extensions)?n:[];null==(r=s.pages)||r.forEach((t=>{var n;v.push(m(h({},t),{appName:e,order:null!=(n=t.order)?n:1}))})),void 0!==s.activate&&v.push({appName:e,load:y(s.lifecycle,s.resources),route:s.activate,offline:s.offline,online:s.online,privilege:s.privilege,order:s.order||1}),t.forEach((t=>{w(e,t)}))}}}(e,t))),(0,o.subscribeConnectivity)((()=>qe(this,null,(function*(){const e=(0,r.Gt)();yield Promise.all(e.map(r.m9)),function(){v.sort(((e,t)=>e.order-t.order));let e,t=0;for(let n of v){n.appName!==e?(t=0,e=n.appName):t++;const r=`${n.appName}-page-${t}`,o=document.createElement("div");o.id=`single-spa-application:${r}`,document.body.appendChild(o),b(r,n)}}()})))),window.installedModules=e}))}function Ge(e){return qe(this,null,(function*(){for(const t of e)(0,o.provide)(t.value,t.name)}))}function Qe(){const e=navigator.onLine;(0,o.dispatchConnectivityChanged)(e),(0,o.showToast)({critical:!0,description:"Connection: "+(e?"online":"offline"),title:"App",kind:e?"success":"warning"})}function Je(){return window.addEventListener("offline",Qe),window.addEventListener("online",Qe),(window.i18next=x()||E,new MutationObserver((()=>{window.i18next.changeLanguage(void 0).catch((e=>console.error("i18next failed to re-detect language",e)))})).observe(document.documentElement,{attributeFilter:["lang"],attributes:!0}),window.i18next.use(H).use({type:"backend",init(){},read(e,t,n){if("translation"===t)n(Error("can't handle translation namespace"),null);else if(void 0===t||void 0===e)n(Error(),null);else{const r=window[Ze(t)];r&&"get"in r&&r.get("./start").then((r=>{Promise.all([He(r(),t,e),(0,o.getConfigInternal)(t)]).then((([t,r])=>{let o=null!=t?t:{};if(r&&"Translation overrides"in r){const t=r["Translation overrides"];e in t&&(o=Ue(o,t[e]))}n(null,o)})).catch((e=>{n(e,null)}))})).catch((e=>{n(e,null)})),n(Error(`could not load app for ${t}`),null)}}}).use(V.initReactI18next).use(_()).init({detection:{order:["querystring","htmlTag","localStorage","navigator"],lookupQuerystring:"lang"},fallbackLng:"en"})).catch((e=>console.error("Failed to initialize translations",e))).then((()=>(0,r.BL)()))}function Xe(e){console.error(e),function(e){const t=document.querySelector("#app-error");if(t){const n=t.content.cloneNode(!0),r=n.querySelector('[data-var="message"]');if(r&&(r.textContent=(null==e?void 0:e.message)||"No additional information available."),localStorage.getItem("openmrs:devtools")&&Object.keys(localStorage).some((e=>e.startsWith("import-map-override:")))){const e=null==n?void 0:n.querySelector("#buttons");if(e){const t=document.createElement("button");t.className="cds--btn",t.innerHTML="Clear dev overrides",t.onclick=et,e.appendChild(t)}}document.body.appendChild(n)}}(e)}function et(){for(const e of Object.keys(localStorage))e.startsWith("import-map-override:")&&!["import-map-override:react","import-map-override:react-dom"].includes(e)&&localStorage.removeItem(e);location.reload()}function tt(){return qe(this,null,(function*(){yield function(){return qe(this,null,(function*(){const e=yield window.importMapOverrides.getCurrentPageMap();yield(0,o.messageOmrsServiceWorker)({type:"onImportMapChanged",importMap:e})}))}();const e=new URL(`${window.openmrsBase}/ws/rest/v1/session`,window.location.origin).href;yield(0,o.messageOmrsServiceWorker)({type:"registerDynamicRoute",url:e,strategy:"network-first"}),yield(0,o.openmrsFetch)("/ws/rest/v1/session").catch((e=>console.warn("Failed to precache the user session data from the app shell. MFs depending on this data may run into problems while offline.",e)))}))}function nt(){(0,o.subscribeConnectivity)((({online:e})=>{const t=document.querySelector("body");e?t.classList.remove("omrs-offline"):t.classList.add("omrs-offline")}))}function rt(e,t){const r=(0,o.renderLoadingSpinner)(document.body),a=function(e){const t=Promise.all(e.map((e=>fetch(e).then((e=>e.json())).then((t=>({name:e,value:t}))).catch((t=>(console.error(`Loading the config from "${e}" failed.`,t),{name:e,value:{}}))))));return()=>t.then(Ge)}(e);return(0,o.integrateBreakpoints)(),(0,o.renderToasts)(document.querySelector(".omrs-toasts-container")),(0,o.renderModals)(document.querySelector(".omrs-modals-container")),(0,o.renderInlineNotifications)(document.querySelector(".omrs-inline-notifications-container")),(0,o.renderActionableNotifications)(document.querySelector(".omrs-actionable-notifications-container")),(0,o.createAppState)({}),(0,o.subscribeNotificationShown)(o.showNotification),(0,o.subscribeActionableNotificationShown)(o.showActionableNotification),(0,o.subscribeToastShown)(o.showToast),(0,o.subscribePrecacheStaticDependencies)(tt),s=We,Object.keys(s).forEach((e=>function(e,t){System.register(e,[],(e=>({execute(){if(t instanceof Promise)return t.then((t=>e(t)));e(t),"function"==typeof t?(e("__esModule",!0),e("default",t)):"object"==typeof t&&("default"in t||e("default",t))}})))}(e,s[e]))),(0,o.setupApiModule)(),function(){const e=function(){const e={featureName:"app-shell",moduleName:Ve};return[{id:"breadcrumbs-widget",slot:"breadcrumbs-slot",load:(0,i.getAsyncLifecycle)((()=>n.e(917).then(n.bind(n,2917))),e),online:!0,offline:!0}]}();for(const t of e)w(Ve,t)}(),window.importMapOverrides.getCurrentPageMap().then((e=>function(e){return ze(this,null,(function*(){return Promise.all(Object.entries(e).map((e=>ze(this,[e],(function*([e,t]){if(!t||!t.match(/\.js$/))return[e,{}];try{yield new Promise(((n,r)=>{!function(e,t,n,r){if(document.head.querySelector(`script[src="${t}"]`))console.warn("Script already loaded. Not loading it again.",t),n(null);else{const o=document.createElement("script");o.setAttribute("data-webpack",Ze(e)),o.src=t,o.type="text/javascript",o.async=!0,o.onload=()=>{n(null)},o.onerror=e=>{console.error(`Failed to load script from ${t}`),console.error(e),r(e.message)},document.head.appendChild(o)}}(e,t,n,r)}))}catch(t){return[e,{}]}const r=window[Ze(e)];if(!r){console.warn(`${e} failed to be loaded into the webpack container. Perhaps it has been built using openmrs@3.x (or @openmrs/webpack-config@3.x). The current app shell version is 4.x (${window.spaVersion}), therefore frontend modules will need to be built with openmrs@4 (or @openmrs/webpack-config@4). Check the version in ${e}'s package dependencies.`);try{const t=yield System.import(e);return[e,t]}catch(t){return console.error(`Failed to load module ${e} using either the supported mechanism or the legacy loading mechanism.`,t),[e,{}]}}if("object"==typeof(o=r)&&null!==o&&"init"in o&&"function"==typeof o.init&&"get"in o&&"function"==typeof o.get){r.init(n.S.default);const t=(yield r.get("./start"))();return[e,t]}return console.error(`${e} did not resolve to a federated module as expected; instead got:`,r),[e,{}];var o})))))}))}(e.imports))).then(Ye).then(nt).then(a).then(Je).catch(Xe).then(r).then((()=>t?function(){return qe(this,null,(function*(){try{yield(0,o.registerOmrsServiceWorker)(`${window.getOpenmrsSpaBase()}service-worker.js`),yield(0,o.activateOfflineCapability)(),function(){let e=null;!function(e){let t=!1,n=!1;(0,o.getCurrentUser)({includeAuthStatus:!1}).subscribe((r=>{n=!!r,e(t,n)})),(0,o.subscribeConnectivity)((({online:r})=>{t=r,e(r,n)}))}(((t,n)=>{const r=!e||(new Date).getTime()-e.getTime()>3e5;n&&t&&r&&(e=new Date,(0,o.dispatchPrecacheStaticDependencies)())}))}()}catch(e){console.error("Error while setting up offline mode.",e),(0,o.showNotification)({kind:"error",title:"Offline Setup Error",description:e.message})}}))}():void 0));var s}},7603:()=>{},8102:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>zn});const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,o=Object.keys,i=Array.isArray;function a(e,t){return"object"!=typeof t||o(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||r.Promise||(r.Promise=Promise);const s=Object.getPrototypeOf,l={}.hasOwnProperty;function u(e,t){return l.call(e,t)}function c(e,t){"function"==typeof t&&(t=t(s(e))),("undefined"==typeof Reflect?o:Reflect.ownKeys)(t).forEach((n=>{d(e,n,t[n])}))}const f=Object.defineProperty;function d(e,t,n,r){f(e,t,a(n&&u(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function p(e){return{from:function(t){return e.prototype=Object.create(t.prototype),d(e.prototype,"constructor",e),{extend:c.bind(null,e.prototype)}}}}const h=Object.getOwnPropertyDescriptor;function m(e,t){let n;return h(e,t)||(n=s(e))&&m(n,t)}const v=[].slice;function g(e,t,n){return v.call(e,t,n)}function y(e,t){return t(e)}function b(e){if(!e)throw new Error("Assertion Failed")}function w(e){r.setImmediate?setImmediate(e):setTimeout(e,0)}function E(e,t){return e.reduce(((e,n,r)=>{var o=t(n,r);return o&&(e[o[0]]=o[1]),e}),{})}function x(e,t){if(u(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,o=t.length;r<o;++r){var i=x(e,t[r]);n.push(i)}return n}var a=t.indexOf(".");if(-1!==a){var s=e[t.substr(0,a)];return void 0===s?void 0:x(s,t.substr(a+1))}}function S(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){b("string"!=typeof n&&"length"in n);for(var r=0,o=t.length;r<o;++r)S(e,t[r],n[r])}else{var a=t.indexOf(".");if(-1!==a){var s=t.substr(0,a),l=t.substr(a+1);if(""===l)void 0===n?i(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=n;else{var c=e[s];c&&u(e,s)||(c=e[s]={}),S(c,l,n)}}else void 0===n?i(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function _(e){var t={};for(var n in e)u(e,n)&&(t[n]=e[n]);return t}const k=[].concat;function O(e){return k.apply([],e)}const C="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(O([8,16,32,64].map((e=>["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>r[e])),P=C.map((e=>r[e]));E(C,(e=>[e,!0]));let N=null;function T(e){N="undefined"!=typeof WeakMap&&new WeakMap;const t=j(e);return N=null,t}function j(e){if(!e||"object"!=typeof e)return e;let t=N&&N.get(e);if(t)return t;if(i(e)){t=[],N&&N.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(j(e[n]))}else if(P.indexOf(e.constructor)>=0)t=e;else{const n=s(e);for(var o in t=n===Object.prototype?{}:Object.create(n),N&&N.set(e,t),e)u(e,o)&&(t[o]=j(e[o]))}return t}const{toString:L}={};function I(e){return L.call(e).slice(8,-1)}const M="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",D="symbol"==typeof M?function(e){var t;return null!=e&&(t=e[M])&&t.apply(e)}:function(){return null},R={};function A(e){var t,n,r,o;if(1===arguments.length){if(i(e))return e.slice();if(this===R&&"string"==typeof e)return[e];if(o=D(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const $="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var F="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function U(e,t){F=e,B=t}var B=()=>!0;const z=!new Error("").stack;function Z(){if(z)try{throw Z.arguments,new Error}catch(e){return e}return new Error}function H(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(B).map((e=>"\n"+e)).join("")):""}var V=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],K=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(V),W={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function q(e,t){this._e=Z(),this.name=e,this.message=t}function Y(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function G(e,t,n,r){this._e=Z(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=Y(e,t)}function Q(e,t){this._e=Z(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=Y(e,t)}p(q).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+H(this._e,2))}},toString:function(){return this.name+": "+this.message}}),p(G).from(q),p(Q).from(q);var J=K.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const X=q;var ee=K.reduce(((e,t)=>{var n=t+"Error";function r(e,r){this._e=Z(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=W[t]||n,this.inner=null)}return p(r).from(X),e[t]=r,e}),{});ee.Syntax=SyntaxError,ee.Type=TypeError,ee.Range=RangeError;var te=V.reduce(((e,t)=>(e[t+"Error"]=ee[t],e)),{}),ne=K.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ee[t]),e)),{});function re(){}function oe(e){return e}function ie(e,t){return null==e||e===oe?t:function(n){return t(e(n))}}function ae(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function se(e,t){return e===re?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?ae(r,this.onsuccess):r),o&&(this.onerror=this.onerror?ae(o,this.onerror):o),void 0!==i?i:n}}function le(e,t){return e===re?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?ae(n,this.onsuccess):n),r&&(this.onerror=this.onerror?ae(r,this.onerror):r)}}function ue(e,t){return e===re?t:function(n){var r=e.apply(this,arguments);a(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?ae(o,this.onsuccess):o),i&&(this.onerror=this.onerror?ae(i,this.onerror):i),void 0===r?void 0===s?void 0:s:a(r,s)}}function ce(e,t){return e===re?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function fe(e,t){return e===re?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}ne.ModifyError=G,ne.DexieError=q,ne.BulkError=Q;var de={};const[pe,he,me]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,s(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,s(t),e]})(),ve=he&&he.then,ge=pe&&pe.constructor,ye=!!me;var be=!1,we=me?()=>{me.then(Ze)}:r.setImmediate?setImmediate.bind(null,Ze):r.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{Ze(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(Ze,0)},Ee=function(e,t){Te.push([e,t]),Se&&(we(),Se=!1)},xe=!0,Se=!0,_e=[],ke=[],Oe=null,Ce=oe,Pe={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:pt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{pt(e[0],e[1])}catch(e){}}))}},Ne=Pe,Te=[],je=0,Le=[];function Ie(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=re,this._lib=!1;var t=this._PSD=Ne;if(F&&(this._stackHolder=Z(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==de)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ae(this,this._value))}this._state=null,this._value=null,++t.ref,Re(this,e)}const Me={get:function(){var e=Ne,t=Xe;function n(n,r){var o=!e.global&&(e!==Ne||t!==Xe);const i=o&&!rt();var a=new Ie(((t,a)=>{Fe(this,new De(ft(n,e,o,i),ft(r,e,o,i),t,a,e))}));return F&&ze(a,this),a}return n.prototype=de,n},set:function(e){d(this,"then",e&&e.prototype===de?Me:{get:function(){return e},set:Me.set})}};function De(e,t,n,r,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=o}function Re(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&He();t&&"function"==typeof t.then?Re(e,((e,n)=>{t instanceof Ie?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,$e(e)),n&&Ve()}}),Ae.bind(null,e))}catch(t){Ae(e,t)}}function Ae(e,t){if(ke.push(t),null===e._state){var n=e._lib&&He();t=Ce(t),e._state=!1,e._value=t,F&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}((()=>{var n=m(t,"stack");t._promise=e,d(t,"stack",{get:()=>be?n&&(n.get?n.get.apply(t):n.value):e.stack})})),function(e){_e.some((t=>t._value===e._value))||_e.push(e)}(e),$e(e),n&&Ve()}}function $e(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Fe(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),0===je&&(++je,Ee((()=>{0==--je&&Ke()}),[]))}function Fe(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++je,Ee(Ue,[n,e,t])}else e._listeners.push(t)}function Ue(e,t,n){try{Oe=t;var r,o=t._value;t._state?r=e(o):(ke.length&&(ke=[]),r=e(o),-1===ke.indexOf(o)&&function(e){for(var t=_e.length;t;)if(_e[--t]._value===e._value)return void _e.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{Oe=null,0==--je&&Ke(),--n.psd.ref||n.psd.finalize()}}function Be(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var o,i,a=e._value;null!=a?(o=a.name||"Error",i=a.message||a,r=H(a,0)):(o=a,i=""),t.push(o+(i?": "+i:"")+r)}return F&&((r=H(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&Be(e._prev,t,n)),t}function ze(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function Ze(){He()&&Ve()}function He(){var e=xe;return xe=!1,Se=!1,e}function Ve(){var e,t,n;do{for(;Te.length>0;)for(e=Te,Te=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(Te.length>0);xe=!0,Se=!0}function Ke(){var e=_e;_e=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Le.slice(0),n=t.length;n;)t[--n]()}function We(e){return new Ie(de,!1,e)}function qe(e,t){var n=Ne;return function(){var r=He(),o=Ne;try{return st(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{st(o,!1),r&&Ve()}}}c(Ie.prototype,{then:Me,_then:function(e,t){Fe(this,new De(null,null,e,t,Ne))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):We(e))):this.then(null,(e=>e&&e.name===t?n(e):We(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),We(t))))},stack:{get:function(){if(this._stack)return this._stack;try{be=!0;var e=Be(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{be=!1}}},timeout:function(e,t){return e<1/0?new Ie(((n,r)=>{var o=setTimeout((()=>r(new ee.Timeout(t))),e);this.then(n,r).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&d(Ie.prototype,Symbol.toStringTag,"Dexie.Promise"),Pe.env=lt(),c(Ie,{all:function(){var e=A.apply(null,arguments).map(ot);return new Ie((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(((o,i)=>Ie.resolve(o).then((n=>{e[i]=n,--r||t(e)}),n)))}))},resolve:e=>{if(e instanceof Ie)return e;if(e&&"function"==typeof e.then)return new Ie(((t,n)=>{e.then(t,n)}));var t=new Ie(de,!0,e);return ze(t,Oe),t},reject:We,race:function(){var e=A.apply(null,arguments).map(ot);return new Ie(((t,n)=>{e.map((e=>Ie.resolve(e).then(t,n)))}))},PSD:{get:()=>Ne,set:e=>Ne=e},totalEchoes:{get:()=>Xe},newPSD:tt,usePSD:ut,scheduler:{get:()=>Ee,set:e=>{Ee=e}},rejectionMapper:{get:()=>Ce,set:e=>{Ce=e}},follow:(e,t)=>new Ie(((n,r)=>tt(((t,n)=>{var r=Ne;r.unhandleds=[],r.onunhandled=n,r.finalize=ae((function(){!function(e){Le.push((function t(){e(),Le.splice(Le.indexOf(t),1)})),++je,Ee((()=>{0==--je&&Ke()}),[])}((()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])}))}),r.finalize),e()}),t,n,r)))}),ge&&(ge.allSettled&&d(Ie,"allSettled",(function(){const e=A.apply(null,arguments).map(ot);return new Ie((t=>{0===e.length&&t([]);let n=e.length;const r=new Array(n);e.forEach(((e,o)=>Ie.resolve(e).then((e=>r[o]={status:"fulfilled",value:e}),(e=>r[o]={status:"rejected",reason:e})).then((()=>--n||t(r)))))}))})),ge.any&&"undefined"!=typeof AggregateError&&d(Ie,"any",(function(){const e=A.apply(null,arguments).map(ot);return new Ie(((t,n)=>{0===e.length&&n(new AggregateError([]));let r=e.length;const o=new Array(r);e.forEach(((e,i)=>Ie.resolve(e).then((e=>t(e)),(e=>{o[i]=e,--r||n(new AggregateError(o))}))))}))})));const Ye={awaits:0,echoes:0,id:0};var Ge=0,Qe=[],Je=0,Xe=0,et=0;function tt(e,t,n,r){var o=Ne,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++et;var s=Pe.env;i.env=ye?{Promise:Ie,PromiseProp:{value:Ie,configurable:!0,writable:!0},all:Ie.all,race:Ie.race,allSettled:Ie.allSettled,any:Ie.any,resolve:Ie.resolve,reject:Ie.reject,nthen:dt(s.nthen,i),gthen:dt(s.gthen,i)}:{},t&&a(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=ut(i,e,n,r);return 0===i.ref&&i.finalize(),l}function nt(){return Ye.id||(Ye.id=++Ge),++Ye.awaits,Ye.echoes+=100,Ye.id}function rt(){return!!Ye.awaits&&(0==--Ye.awaits&&(Ye.id=0),Ye.echoes=100*Ye.awaits,!0)}function ot(e){return Ye.echoes&&e&&e.constructor===ge?(nt(),e.then((e=>(rt(),e)),(e=>(rt(),ht(e))))):e}function it(e){++Xe,Ye.echoes&&0!=--Ye.echoes||(Ye.echoes=Ye.id=0),Qe.push(Ne),st(e,!0)}function at(){var e=Qe[Qe.length-1];Qe.pop(),st(e,!1)}function st(e,t){var n=Ne;if((t?!Ye.echoes||Je++&&e===Ne:!Je||--Je&&e===Ne)||ct(t?it.bind(null,e):at),e!==Ne&&(Ne=e,n===Pe&&(Pe.env=lt()),ye)){var o=Pe.env.Promise,i=e.env;he.then=i.nthen,o.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(r,"Promise",i.PromiseProp),o.all=i.all,o.race=i.race,o.resolve=i.resolve,o.reject=i.reject,i.allSettled&&(o.allSettled=i.allSettled),i.any&&(o.any=i.any))}}function lt(){var e=r.Promise;return ye?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(r,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:he.then,gthen:e.prototype.then}:{}}function ut(e,t,n,r,o){var i=Ne;try{return st(e,!0),t(n,r,o)}finally{st(i,!1)}}function ct(e){ve.call(pe,e)}function ft(e,t,n,r){return"function"!=typeof e?e:function(){var o=Ne;n&&nt(),st(t,!0);try{return e.apply(this,arguments)}finally{st(o,!1),r&&ct(rt)}}}function dt(e,t){return function(n,r){return e.call(this,ft(n,t),ft(r,t))}}function pt(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var o,i={promise:t,reason:e};if(r.document&&document.createEvent?((o=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),a(o,i)):r.CustomEvent&&a(o=new CustomEvent("unhandledrejection",{detail:i}),i),o&&r.dispatchEvent&&(dispatchEvent(o),!r.PromiseRejectionEvent&&r.onunhandledrejection))try{r.onunhandledrejection(o)}catch(e){}F&&o&&!o.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+ve).indexOf("[native code]")&&(nt=rt=re);var ht=Ie.reject;function mt(e,t,n,r){if(e.idbdb&&(e._state.openComplete||Ne.letThrough||e._vip)){var o=e._createTransaction(t,n,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(o){return o.name===J.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>mt(e,t,n,r)))):ht(o)}return o._promise(t,((e,t)=>tt((()=>(Ne.trans=o,r(e,t,o)))))).then((e=>o._completion.then((()=>e))))}if(e._state.openComplete)return ht(new ee.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return ht(new ee.DatabaseClosed);e.open().catch(re)}return e._state.dbReadyPromise.then((()=>mt(e,t,n,r)))}const vt=String.fromCharCode(65535),gt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",yt=[],bt="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),wt=bt,Et=bt,xt=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function St(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const _t={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function kt(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=T(t))[e],t)}class Ot{_trans(e,t,n){const r=this._tx||Ne.trans,o=this.name;function i(e,n,r){if(!r.schema[o])throw new ee.NotFound("Table "+o+" not part of transaction");return t(r.idbtrans,r)}const a=He();try{return r&&r.db===this.db?r===Ne.trans?r._promise(e,i,n):tt((()=>r._promise(e,i,n)),{trans:r,transless:Ne.transless||Ne}):mt(this.db,e,[this.name],i)}finally{a&&Ve()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(i(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=o(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))&&e.keyPath.every((e=>t.indexOf(e)>=0))))[0];if(n&&this.db._maxKey!==vt)return this.where(n.name).equals(n.keyPath.map((t=>e[t])));!n&&F&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:r}=this.schema,a=this.db._deps.indexedDB;function s(e,t){try{return 0===a.cmp(e,t)}catch(e){return!1}}const[l,u]=t.reduce((([t,n],o)=>{const a=r[o],l=e[o];return[t||a,t||!a?St(n,a&&a.multi?e=>{const t=x(e,o);return i(t)&&t.some((e=>s(l,e)))}:e=>s(l,x(e,o))):n]}),[null,null]);return l?this.where(l.name).equals(e[l.keyPath]).filter(u):n?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,i(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var r in t)if(u(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){a(this,e)}))}add(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let o=e;return r&&n&&(o=kt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[o]}))).then((e=>e.numFailures?Ie.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{S(e,r,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||i(e))return this.where(":id").equals(e).modify(t);{const n=x(e,this.schema.primKey.keyPath);if(void 0===n)return ht(new ee.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?o(t).forEach((n=>{S(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let o=e;return r&&n&&(o=kt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[o],keys:null!=t?[t]:null}))).then((e=>e.numFailures?Ie.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{S(e,r,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?Ie.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:_t}))).then((e=>e.numFailures?Ie.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new ee.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new ee.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let s=i&&n?e.map(kt(i)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:s,wantResults:o}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return o?t:n;throw new Q(`${this.name}.bulkAdd(): ${e} of ${a} operations failed`,r)}))}))}bulkPut(e,t,n){const r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new ee.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new ee.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let s=i&&n?e.map(kt(i)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:s,wantResults:o}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return o?t:n;throw new Q(`${this.name}.bulkPut(): ${e} of ${a} operations failed`,r)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new Q(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)}))}}function Ct(e){var t={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return t[n].subscribe.apply(null,i),e}if("string"==typeof n)return t[n]};n.addEventType=s;for(var r=1,a=arguments.length;r<a;++r)s(arguments[r]);return n;function s(e,r,o){if("object"==typeof e)return l(e);r||(r=ce),o||(o=re);var i={subscribers:[],fire:o,subscribe:function(e){-1===i.subscribers.indexOf(e)&&(i.subscribers.push(e),i.fire=r(i.fire,e))},unsubscribe:function(e){i.subscribers=i.subscribers.filter((function(t){return t!==e})),i.fire=i.subscribers.reduce(r,o)}};return t[e]=n[e]=i,i}function l(e){o(e).forEach((function(t){var n=e[t];if(i(n))s(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new ee.InvalidArgument("Invalid event config");var r=s(t,oe,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach((function(e){w((function(){e.apply(null,t)}))}))}))}}))}}function Pt(e,t){return p(t).from({prototype:e}),t}function Nt(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Tt(e,t){e.filter=St(e.filter,t)}function jt(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>St(r(),t()):t,e.justLimit=n&&!r}function Lt(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new ee.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function It(e,t,n){const r=Lt(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function Mt(e,t,n,r){const o=e.replayFilter?St(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},a=(e,n,r)=>{if(!o||o(n,r,(e=>n.stop(e)),(e=>n.fail(e)))){var a=n.primaryKey,s=""+a;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(a)),u(i,s)||(i[s]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),Dt(It(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return Dt(It(e,r,n),St(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function Dt(e,t,n,r){var o=qe(r?(e,t,o)=>n(r(e),t,o):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=re}),(t=>{e.fail(t),n=re}))||o(e.value,e,(e=>n=e)),n()}))}))}function Rt(e,t){try{const n=At(e),r=At(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){const n=e.length,r=t.length,o=n<r?n:r;for(let n=0;n<o;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}($t(e),$t(t));case"Array":return function(e,t){const n=e.length,r=t.length,o=n<r?n:r;for(let n=0;n<o;++n){const r=Rt(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function At(e){const t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";const n=I(e);return"ArrayBuffer"===n?"binary":n}function $t(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class Ft{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,ht.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,ht.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=St(t.algorithm,e)}_iterate(e,t){return Mt(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&a(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read((n=>Mt(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(Nt(t,!0))return n.count({trans:e,query:{index:Lt(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var r=0;return Mt(t,(()=>(++r,!1)),e,n).then((()=>r))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),r=n[0],o=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function s(e,t){var n=i(e,o),r=i(t,o);return n<r?-a:n>r?a:0}return this.toArray((function(e){return e.sort(s)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&Nt(t,!0)&&t.limit>0){const{valueMapper:n}=t,r=Lt(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return Mt(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,Nt(t)?jt(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):jt(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),jt(this._ctx,(()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this}until(e,t){return Tt(this._ctx,(function(n,r,o){return!e(n.value)||(r(o),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return Tt(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=St(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&Nt(t,!0)&&t.limit>0)return this._read((e=>{var n=Lt(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Tt(this._ctx,(function(e){var t=e.primaryKey.toString(),r=u(n,t);return n[t]=!0,!r})),this}modify(e){var t=this._ctx;return this._write((n=>{var r;if("function"==typeof e)r=e;else{var i=o(e),a=i.length;r=function(t){for(var n=!1,r=0;r<a;++r){var o=i[r],s=e[o];x(t,o)!==s&&(S(t,o,s),n=!0)}return n}}const s=t.table.core,{outbound:l,extractKey:u}=s.schema.primaryKey,c=this.db._options.modifyChunkSize||200,f=[];let d=0;const p=[],h=(e,t)=>{const{failures:n,numFailures:r}=t;d+=e-r;for(let e of o(n))f.push(n[e])};return this.clone().primaryKeys().then((o=>{const i=a=>{const f=Math.min(c,o.length-a);return s.getMany({trans:n,keys:o.slice(a,a+f),cache:"immutable"}).then((d=>{const p=[],m=[],v=l?[]:null,g=[];for(let e=0;e<f;++e){const t=d[e],n={value:T(t),primKey:o[a+e]};!1!==r.call(n,n.value,n)&&(null==n.value?g.push(o[a+e]):l||0===Rt(u(t),u(n.value))?(m.push(n.value),l&&v.push(o[a+e])):(g.push(o[a+e]),p.push(n.value)))}const y=Nt(t)&&t.limit===1/0&&("function"!=typeof e||e===Ut)&&{index:t.index,range:t.range};return Promise.resolve(p.length>0&&s.mutate({trans:n,type:"add",values:p}).then((e=>{for(let t in e.failures)g.splice(parseInt(t),1);h(p.length,e)}))).then((()=>(m.length>0||y&&"object"==typeof e)&&s.mutate({trans:n,type:"put",keys:v,values:m,criteria:y,changeSpec:"function"!=typeof e&&e}).then((e=>h(m.length,e))))).then((()=>(g.length>0||y&&e===Ut)&&s.mutate({trans:n,type:"delete",keys:g,criteria:y}).then((e=>h(g.length,e))))).then((()=>o.length>a+f&&i(a+c)))}))};return i(0).then((()=>{if(f.length>0)throw new G("Error modifying one or more objects",f,d,p);return o.length}))}))}))}delete(){var e=this._ctx,t=e.range;return Nt(e)&&(e.isPrimKey&&!Et||3===t.type)?this._write((n=>{const{primaryKey:r}=e.table.core.schema,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((({failures:e,lastResult:n,results:r,numFailures:o})=>{if(o)throw new G("Could not delete some values",Object.keys(e).map((t=>e[t])),t-o);return t-o}))))})):this.modify(Ut)}}const Ut=(e,t)=>t.value=null;function Bt(e,t){return e<t?-1:e===t?0:1}function zt(e,t){return e>t?-1:e===t?0:1}function Zt(e,t,n){var r=e instanceof Yt?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Ht(e){return new e.Collection(e,(()=>qt(""))).limit(0)}function Vt(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),s=-1,l=0;l<a;++l){var u=t[l];if(u!==r[l])return o(e[l],n[l])<0?e.substr(0,l)+n[l]+n.substr(l+1):o(e[l],r[l])<0?e.substr(0,l)+r[l]+n.substr(l+1):s>=0?e.substr(0,s)+t[s]+n.substr(s+1):null;o(e[l],u)<0&&(s=l)}return a<r.length&&"next"===i?e+n.substr(e.length):a<e.length&&"prev"===i?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.substr(s+1)}function Kt(e,t,n,r){var o,i,a,s,l,u,c,f=n.length;if(!n.every((e=>"string"==typeof e)))return Zt(e,"String expected.");function d(e){o=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),i=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),a="next"===e?Bt:zt;var t=n.map((function(e){return{lower:i(e),upper:o(e)}})).sort((function(e,t){return a(e.lower,t.lower)}));s=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),u=e,c="next"===e?"":r}d("next");var p=new e.Collection(e,(()=>Wt(s[0],l[f-1]+r)));p._ondirectionchange=function(e){d(e)};var h=0;return p._addAlgorithm((function(e,n,r){var o=e.key;if("string"!=typeof o)return!1;var d=i(o);if(t(d,l,h))return!0;for(var p=null,m=h;m<f;++m){var v=Vt(o,d,s[m],l[m],a,u);null===v&&null===p?h=m+1:(null===p||a(p,v)>0)&&(p=v)}return n(null!==p?function(){e.continue(p+c)}:r),!1})),p}function Wt(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function qt(e){return{type:1,lower:e,upper:e}}class Yt{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Ht(this):new this.Collection(this,(()=>Wt(e,t,!n,!r)))}catch(e){return Zt(this,gt)}}equals(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>qt(e)))}above(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>Wt(e,void 0,!0)))}aboveOrEqual(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>Wt(e,void 0,!1)))}below(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>Wt(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>Wt(void 0,e)))}startsWith(e){return"string"!=typeof e?Zt(this,"String expected."):this.between(e,e+vt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):Kt(this,((e,t)=>0===e.indexOf(t[0])),[e],vt)}equalsIgnoreCase(e){return Kt(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=A.apply(R,arguments);return 0===e.length?Ht(this):Kt(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=A.apply(R,arguments);return 0===e.length?Ht(this):Kt(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,vt)}anyOf(){const e=A.apply(R,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return Zt(this,gt)}if(0===e.length)return Ht(this);const n=new this.Collection(this,(()=>Wt(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm(((n,o,i)=>{const a=n.key;for(;t(a,e[r])>0;)if(++r,r===e.length)return o(i),!1;return 0===t(a,e[r])||(o((()=>{n.continue(e[r])})),!1)})),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=A.apply(R,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return Zt(this,gt)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,r=this._ascending,o=this._descending,i=this._min,a=this._max;if(0===e.length)return Ht(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0)))return Zt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ee.InvalidArgument);const s=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;let u,c=r;function f(e,t){return c(e[0],t[0])}try{u=e.reduce((function(e,t){let r=0,o=e.length;for(;r<o;++r){const o=e[r];if(n(t[0],o[1])<0&&n(t[1],o[0])>0){o[0]=i(o[0],t[0]),o[1]=a(o[1],t[1]);break}}return r===o&&e.push(t),e}),[]),u.sort(f)}catch(e){return Zt(this,gt)}let d=0;const p=l?e=>r(e,u[d][1])>0:e=>r(e,u[d][1])>=0,h=s?e=>o(e,u[d][0])>0:e=>o(e,u[d][0])>=0;let m=p;const v=new this.Collection(this,(()=>Wt(u[0][0],u[u.length-1][1],!s,!l)));return v._ondirectionchange=e=>{"next"===e?(m=p,c=r):(m=h,c=o),u.sort(f)},v._addAlgorithm(((e,t,n)=>{for(var o=e.key;m(o);)if(++d,d===u.length)return t(n),!1;return!!function(e){return!p(e)&&!h(e)}(o)||(0===this._cmp(o,u[d][1])||0===this._cmp(o,u[d][0])||t((()=>{c===r?e.continue(u[d][0]):e.continue(u[d][1])})),!1)})),v}startsWithAnyOf(){const e=A.apply(R,arguments);return e.every((e=>"string"==typeof e))?0===e.length?Ht(this):this.inAnyRange(e.map((e=>[e,e+vt]))):Zt(this,"startsWithAnyOf() only works with strings")}}function Gt(e){return qe((function(t){return Qt(t),e(t.target.error),!1}))}function Qt(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const Jt=Ct(null,"storagemutated");class Xt{_lock(){return b(!Ne.global),++this._reculock,1!==this._reculock||Ne.global||(Ne.lockOwnerFor=this),this}_unlock(){if(b(!Ne.global),0==--this._reculock)for(Ne.global||(Ne.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{ut(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&Ne.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(b(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new ee.DatabaseClosed(n);case"MissingAPIError":throw new ee.MissingAPI(n.message,n);default:throw new ee.OpenFailed(n)}if(!this.active)throw new ee.TransactionInactive;return b(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=qe((t=>{Qt(t),this._reject(e.error)})),e.onabort=qe((t=>{Qt(t),this.active&&this._reject(new ee.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=qe((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&Jt.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return ht(new ee.ReadOnly("Transaction is readonly"));if(!this.active)return ht(new ee.TransactionInactive);if(this._locked())return new Ie(((r,o)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,o)},Ne])}));if(n)return tt((()=>{var e=new Ie(((e,n)=>{this._lock();const r=t(e,n,this);r&&r.then&&r.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var r=new Ie(((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)}));return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=Ie.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var o=t._waitingFor;return new Ie(((e,r)=>{n.then((n=>t._waitingQueue.push(qe(e.bind(null,n)))),(e=>t._waitingQueue.push(qe(r.bind(null,e))))).finally((()=>{t._waitingFor===o&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ee.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(u(t,e))return t[e];const n=this.schema[e];if(!n)throw new ee.NotFound("Table "+e+" not part of transaction");const r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function en(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+tn(t)}}function tn(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function nn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:E(n,(e=>[e.name,e]))}}let rn=e=>{try{return e.only([[]]),rn=()=>[[]],[[]]}catch(e){return rn=()=>vt,vt}};function on(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>x(t,e)}(e):t=>x(t,e)}function an(e){return[].slice.call(e)}let sn=0;function ln(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function un(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:r,lowerOpen:o,upperOpen:i}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!o):t.bound(n,r,!!o,!!i)}const{schema:o,hasGetAll:a}=function(e,t){const n=an(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,r=i(t),o=null==t,a={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:on(t)},indexes:an(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:r,keyPath:o}=e,s={name:t,compound:i(o),keyPath:o,unique:n,multiEntry:r,extractKey:on(o)};return a[ln(o)]=s,s})),getIndexByKeyPath:e=>a[ln(e)]};return a[":id"]=s.primaryKey,null!=t&&(a[ln(t)]=s.primaryKey),s}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),s=o.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:o,values:i,range:a}){return new Promise(((s,l)=>{s=qe(s);const u=e.objectStore(t),c=null==u.keyPath,f="put"===n||"add"===n;if(!f&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:d}=o||i||{length:1};if(o&&i&&o.length!==i.length)throw new Error("Given keys array must have same length as given values array.");if(0===d)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let p;const h=[],m=[];let v=0;const g=e=>{++v,Qt(e)};if("deleteRange"===n){if(4===a.type)return s({numFailures:v,failures:m,results:[],lastResult:void 0});3===a.type?h.push(p=u.clear()):h.push(p=u.delete(r(a)))}else{const[e,t]=f?c?[i,o]:[i,null]:[o,null];if(f)for(let r=0;r<d;++r)h.push(p=t&&void 0!==t[r]?u[n](e[r],t[r]):u[n](e[r])),p.onerror=g;else for(let t=0;t<d;++t)h.push(p=u[n](e[t])),p.onerror=g}const y=e=>{const t=e.target.result;h.forEach(((e,t)=>null!=e.error&&(m[t]=e.error))),s({numFailures:v,failures:m,results:"delete"===n?o:h.map((e=>e.result)),lastResult:t})};p.onerror=e=>{g(e),y(e)},p.onsuccess=y}))},getMany:({trans:e,keys:n})=>new Promise(((r,o)=>{r=qe(r);const i=e.objectStore(t),a=n.length,s=new Array(a);let l,u=0,c=0;const f=e=>{const t=e.target;s[t._pos]=t.result,++c===u&&r(s)},d=Gt(o);for(let e=0;e<a;++e)null!=n[e]&&(l=i.get(n[e]),l._pos=e,l.onsuccess=f,l.onerror=d,++u);0===u&&r(s)})),get:({trans:e,key:n})=>new Promise(((r,o)=>{r=qe(r);const i=e.objectStore(t).get(n);i.onsuccess=e=>r(e.target.result),i.onerror=Gt(o)})),query:function(e){return n=>new Promise(((o,i)=>{o=qe(o);const{trans:a,values:s,limit:l,query:u}=n,c=l===1/0?void 0:l,{index:f,range:d}=u,p=a.objectStore(t),h=f.isPrimaryKey?p:p.index(f.name),m=r(d);if(0===l)return o({result:[]});if(e){const e=s?h.getAll(m,c):h.getAllKeys(m,c);e.onsuccess=e=>o({result:e.target.result}),e.onerror=Gt(i)}else{let e=0;const t=s||!("openKeyCursor"in h)?h.openCursor(m):h.openKeyCursor(m),n=[];t.onsuccess=r=>{const i=t.result;return i?(n.push(s?i.value:i.primaryKey),++e===l?o({result:n}):void i.continue()):o({result:n})},t.onerror=Gt(i)}}))}(a),openCursor:function({trans:e,values:n,query:o,reverse:i,unique:a}){return new Promise(((s,l)=>{s=qe(s);const{index:u,range:c}=o,f=e.objectStore(t),d=u.isPrimaryKey?f:f.index(u.name),p=i?a?"prevunique":"prev":a?"nextunique":"next",h=n||!("openKeyCursor"in d)?d.openCursor(r(c),p):d.openKeyCursor(r(c),p);h.onerror=Gt(l),h.onsuccess=qe((t=>{const n=h.result;if(!n)return void s(null);n.___id=++sn,n.done=!1;const r=n.continue.bind(n);let o=n.continuePrimaryKey;o&&(o=o.bind(n));const i=n.advance.bind(n),a=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=qe(l),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=qe(e),h.onerror=Gt(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=a,e(t)}})),s=()=>{if(h.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return h.onsuccess=qe((e=>{h.onsuccess=s,s()})),n.continue=r,n.continuePrimaryKey=o,n.advance=i,s(),t},s(n)}),l)}))},count({query:e,trans:n}){const{index:o,range:i}=e;return new Promise(((e,a)=>{const s=n.objectStore(t),l=o.isPrimaryKey?s:s.index(o.name),u=r(i),c=u?l.count(u):l.count();c.onsuccess=qe((t=>e(t.target.result))),c.onerror=Gt(a)}))}}}(e))),l={};return s.forEach((e=>l[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!l[e])throw new Error(`Table '${e}' not found`);return l[e]},MIN_KEY:-1/0,MAX_KEY:rn(t),schema:o}}function cn({_novip:e},t){const n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},o){const i=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(un(t,n,o),e.dbcore);return{dbcore:i}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function fn({_novip:e},t,n,r){n.forEach((n=>{const o=r[n];t.forEach((t=>{const r=m(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?d(t,n,{get(){return this.table(n)},set(e){f(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,o))}))}))}function dn({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function pn(e,t){return e._cfg.version-t._cfg.version}function hn(e,t,n,r){const i=e._dbSchema,a=e._createTransaction("readwrite",e._storeNames,i);a.create(n),a._completion.catch(r);const s=a._reject.bind(a),l=Ne.transless||Ne;tt((()=>{Ne.trans=a,Ne.transless=l,0===t?(o(i).forEach((e=>{vn(n,e,i[e].primKey,i[e].indexes)})),cn(e,n),Ie.follow((()=>e.on.populate.fire(a))).catch(s)):function({_novip:e},t,n,r){const i=[],a=e._versions;let s=e._dbSchema=yn(0,e.idbdb,r),l=!1;return a.filter((e=>e._cfg.version>=t)).forEach((a=>{i.push((()=>{const i=s,u=a._cfg.dbschema;bn(e,i,r),bn(e,u,r),s=e._dbSchema=u;const c=mn(i,u);c.add.forEach((e=>{vn(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((e=>{if(e.recreate)throw new ee.Upgrade("Not yet support for changing primary key");{const t=r.objectStore(e.name);e.add.forEach((e=>gn(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),gn(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const f=a._cfg.contentUpgrade;if(f&&a._cfg.version>t){cn(e,r),n._memoizedTables={},l=!0;let t=_(u);c.del.forEach((e=>{t[e]=i[e]})),dn(e,[e.Transaction.prototype]),fn(e,[e.Transaction.prototype],o(t),t),n.schema=t;const a=$(f);let s;a&&nt();const d=Ie.follow((()=>{if(s=f(n),s&&a){var e=rt.bind(null,null);s.then(e,e)}}));return s&&"function"==typeof s.then?Ie.resolve(s):d.then((()=>s))}})),i.push((t=>{l&&wt||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((n=>null==e[n]&&t.db.deleteObjectStore(n)))}(a._cfg.dbschema,t),dn(e,[e.Transaction.prototype]),fn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return i.length?Ie.resolve(i.shift()(n.idbtrans)).then(e):Ie.resolve()}().then((()=>{var e,t;t=r,o(e=s).forEach((n=>{t.db.objectStoreNames.contains(n)||vn(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,a,n).catch(s)}))}function mn(e,t){const n={del:[],add:[],change:[]};let r;for(r in e)t[r]||n.del.push(r);for(r in t){const o=e[r],i=t[r];if(o){const e={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!bt)e.recreate=!0,n.change.push(e);else{const t=o.idxByName,r=i.idxByName;let a;for(a in t)r[a]||e.del.push(a);for(a in r){const n=t[a],o=r[a];n?n.src!==o.src&&e.change.push(o):e.add.push(o)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([r,i])}return n}function vn(e,t,n,r){const o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((e=>gn(o,e))),o}function gn(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function yn(e,t,n){const r={};return g(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let o=t.keyPath;const i=en(tn(o),o||"",!1,!1,!!t.autoIncrement,o&&"string"!=typeof o,!0),a=[];for(let e=0;e<t.indexNames.length;++e){const n=t.index(t.indexNames[e]);o=n.keyPath;var s=en(n.name,o,!!n.unique,!!n.multiEntry,!1,o&&"string"!=typeof o,!1);a.push(s)}r[e]=nn(e,i,a)})),r}function bn({_novip:e},t,n){const o=n.db.objectStoreNames;for(let r=0;r<o.length;++r){const i=o[r],a=n.objectStore(i);e._hasGetAll="getAll"in a;for(let e=0;e<a.indexNames.length;++e){const n=a.indexNames[e],r=a.index(n).keyPath,o="string"==typeof r?r:"["+g(r).join("+")+"]";if(t[i]){const e=t[i].idxByName[o];e&&(e.name=n,delete t[i].idxByName[o],t[i].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&r.WorkerGlobalScope&&r instanceof r.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class wn{_parseStoresSpec(e,t){o(e).forEach((n=>{if(null!==e[n]){var r=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return en(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),i(r),0===t)})),o=r.shift();if(o.multi)throw new ee.Schema("Primary key cannot be multi-valued");r.forEach((e=>{if(e.auto)throw new ee.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new ee.Schema("Index must have a name and cannot be an empty string")})),t[n]=nn(n,o,r)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?a(this._cfg.storesSource,e):e;const n=t._versions,r={};let i={};return n.forEach((e=>{a(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)})),t._dbSchema=i,dn(t,[t._allTables,t,t.Transaction.prototype]),fn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],o(i),i),t._storeNames=o(i),this}upgrade(e){return this._cfg.contentUpgrade=fe(this._cfg.contentUpgrade||re,e),this}}function En(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new zn("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function xn(e){return e&&"function"==typeof e.databases}function Sn(e){return tt((function(){return Ne.letThrough=!0,e()}))}function _n(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function kn(e){var t=t=>e.next(t),n=o(t),r=o((t=>e.throw(t)));function o(e){return t=>{var o=e(t),a=o.value;return o.done?a:a&&"function"==typeof a.then?a.then(n,r):i(a)?Promise.all(a).then(n,r):n(a)}}return o(t)()}function On(e,t,n){var r=arguments.length;if(r<2)throw new ee.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];n=o.pop();var i=O(o);return[e,i,n]}function Cn(e,t,n,r,o){return Ie.resolve().then((()=>{const i=Ne.transless||Ne,a=e._createTransaction(t,n,e._dbSchema,r),s={trans:a,transless:i};if(r)a.idbtrans=r.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===J.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Cn(e,t,n,null,o)))):ht(r)}const l=$(o);let u;l&&nt();const c=Ie.follow((()=>{if(u=o.call(a,a),u)if(l){var e=rt.bind(null,null);u.then(e,e)}else"function"==typeof u.next&&"function"==typeof u.throw&&(u=kn(u))}),s);return(u&&"function"==typeof u.then?Ie.resolve(u).then((e=>a.active?e:ht(new ee.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):c.then((()=>u))).then((e=>(r&&a._resolve(),a._completion.then((()=>e))))).catch((e=>(a._reject(e),ht(e))))}))}function Pn(e,t,n){const r=i(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}const Nn={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const n=e.table(t),{schema:r}=n,o={},i=[];function a(e,t,n){const r=ln(e),s=o[r]=o[r]||[],l=null==e?0:"string"==typeof e?1:e.length,u=t>0,c={...n,isVirtual:u,keyTail:t,keyLength:l,extractKey:on(e),unique:!u&&n.unique};return s.push(c),c.isPrimaryKey||i.push(c),l>1&&a(2===l?e[0]:e.slice(0,l-1),t+1,n),s.sort(((e,t)=>e.keyTail-t.keyTail)),c}const s=a(r.primaryKey.keyPath,0,r.primaryKey);o[":id"]=[s];for(const e of r.indexes)a(e.keyPath,0,e);function l(t){const n=t.query.index;return n.isVirtual?{...t,query:{index:n,range:(r=t.query.range,o=n.keyTail,{type:1===r.type?2:r.type,lower:Pn(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,o),lowerOpen:!0,upper:Pn(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,o),upperOpen:!0})}}:t;var r,o}const u={...n,schema:{...r,primaryKey:s,indexes:i,getIndexByKeyPath:function(e){const t=o[ln(e)];return t&&t[0]}},count:e=>n.count(l(e)),query:e=>n.query(l(e)),openCursor(t){const{keyTail:r,isVirtual:o,keyLength:i}=t.query.index;return o?n.openCursor(l(t)).then((n=>n&&function(n){const o=Object.create(n,{continue:{value:function(o){null!=o?n.continue(Pn(o,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,i).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,o){n.continuePrimaryKey(Pn(t,e.MAX_KEY,r),o)}},primaryKey:{get:()=>n.primaryKey},key:{get(){const e=n.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:()=>n.value}});return o}(n))):n.openCursor(t)}};return u}}}};function Tn(e,t,n,r){return n=n||{},r=r||"",o(e).forEach((o=>{if(u(t,o)){var i=e[o],a=t[o];if("object"==typeof i&&"object"==typeof a&&i&&a){const e=I(i);e!==I(a)?n[r+o]=t[o]:"Object"===e?Tn(i,a,n,r+o+"."):i!==a&&(n[r+o]=t[o])}else i!==a&&(n[r+o]=t[o])}else n[r+o]=void 0})),o(t).forEach((o=>{u(e,o)||(n[r+o]=t[o])})),n}const jn={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const n=e.table(t),{primaryKey:r}=n.schema,o={...n,mutate(e){const o=Ne.trans,{deleting:i,creating:a,updating:s}=o.table(t).hook;switch(e.type){case"add":if(a.fire===re)break;return o._promise("readwrite",(()=>l(e)),!0);case"put":if(a.fire===re&&s.fire===re)break;return o._promise("readwrite",(()=>l(e)),!0);case"delete":if(i.fire===re)break;return o._promise("readwrite",(()=>l(e)),!0);case"deleteRange":if(i.fire===re)break;return o._promise("readwrite",(()=>function(e){return c(e.trans,e.range,1e4)}(e)),!0)}return n.mutate(e);function l(e){const t=Ne.trans,o=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!o)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:o}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,o).then((l=>{const c=o.map(((n,o)=>{const c=l[o],f={onerror:null,onsuccess:null};if("delete"===e.type)i.fire.call(f,n,c,t);else if("add"===e.type||void 0===c){const i=a.fire.call(f,n,e.values[o],t);null==n&&null!=i&&(n=i,e.keys[o]=n,r.outbound||S(e.values[o],r.keyPath,n))}else{const r=Tn(c,e.values[o]),i=s.fire.call(f,r,n,c,t);if(i){const t=e.values[o];Object.keys(i).forEach((e=>{u(t,e)?t[e]=i[e]:S(t,e,i[e])}))}}return f}));return n.mutate(e).then((({failures:t,results:n,numFailures:r,lastResult:i})=>{for(let r=0;r<o.length;++r){const i=n?n[r]:o[r],a=c[r];null==i?a.onerror&&a.onerror(t[r]):a.onsuccess&&a.onsuccess("put"===e.type&&l[r]?e.values[r]:i)}return{failures:t,results:n,numFailures:r,lastResult:i}})).catch((e=>(c.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function c(e,t,o){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:o}).then((({result:n})=>l({type:"delete",keys:n,trans:e}).then((r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<o?{failures:[],numFailures:0,lastResult:void 0}:c(e,{...t,lower:n[n.length-1],lowerOpen:!0},o)))))}}};return o}})};function Ln(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;const r=[];for(let o=0,i=0;o<t.keys.length&&i<e.length;++o)0===Rt(t.keys[o],e[i])&&(r.push(n?T(t.values[o]):t.values[o]),++i);return r.length===e.length?r:null}catch(e){return null}}const In={stack:"dbcore",level:-1,create:e=>({table:t=>{const n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);const t=Ln(e.keys,e.trans._cache,"clone"===e.cache);return t?Ie.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?T(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function Mn(e){return!("from"in e)}const Dn=function(e,t){if(!this){const t=new Dn;return e&&"d"in e&&a(t,e),t}a(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function Rn(e,t,n){const r=Rt(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(Mn(e))return a(e,{from:t,to:n,d:1});const o=e.l,i=e.r;if(Rt(n,e.from)<0)return o?Rn(o,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Fn(e);if(Rt(t,e.to)>0)return i?Rn(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Fn(e);Rt(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Rt(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const s=!e.r;o&&!e.l&&An(e,o),i&&s&&An(e,i)}function An(e,t){Mn(t)||function e(t,{from:n,to:r,l:o,r:i}){Rn(t,n,r),o&&e(t,o),i&&e(t,i)}(e,t)}function $n(e){let t=Mn(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Rt(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Rt(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Fn(e){var t,n;const r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),o=r>1?"r":r<-1?"l":"";if(o){const t="r"===o?"l":"r",n={...e},r=e[o];e.from=r.from,e.to=r.to,e[o]=r[o],n[o]=r[t],e[t]=n,n.d=Un(n)}e.d=Un(e)}function Un({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}c(Dn.prototype,{add(e){return An(this,e),this},addKey(e){return Rn(this,e,e),this},addKeys(e){return e.forEach((e=>Rn(this,e,e))),this},[M](){return $n(this)}});const Bn={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new Dn(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{const a=e.table(r),{schema:s}=a,{primaryKey:l}=s,{extractKey:u,outbound:c}=l,f={...a,mutate:e=>{const o=e.trans,l=o.mutatedParts||(o.mutatedParts={}),u=e=>{const n=`idb://${t}/${r}/${e}`;return l[n]||(l[n]=new Dn)},c=u(""),f=u(":dels"),{type:d}=e;let[p,h]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const m=e.trans._cache;return a.mutate(e).then((e=>{if(i(p)){"delete"!==d&&(p=e.results),c.addKeys(p);const t=Ln(p,m);t||"add"===d||f.addKeys(p),(t||h)&&function(e,t,n,r){t.indexes.forEach((function(t){const o=e(t.name||"");function a(e){return null!=e?t.extractKey(e):null}const s=e=>t.multiEntry&&i(e)?e.forEach((e=>o.addKey(e))):o.addKey(e);(n||r).forEach(((e,t)=>{const o=n&&a(n[t]),i=r&&a(r[t]);0!==Rt(o,i)&&(null!=o&&s(o),null!=i&&s(i))}))}))}(u,s,t,h)}else if(p){const e={from:p.lower,to:p.upper};f.add(e),c.add(e)}else c.add(n),f.add(n),s.indexes.forEach((e=>u(e.name).add(n)));return e}))}},d=({query:{index:t,range:n}})=>{var r,o;return[t,new Dn(null!==(r=n.lower)&&void 0!==r?r:e.MIN_KEY,null!==(o=n.upper)&&void 0!==o?o:e.MAX_KEY)]},p={get:e=>[l,new Dn(e.key)],getMany:e=>[l,(new Dn).addKeys(e.keys)],count:d,query:d,openCursor:d};return o(p).forEach((e=>{f[e]=function(o){const{subscr:i}=Ne;if(i){const s=e=>{const n=`idb://${t}/${r}/${e}`;return i[n]||(i[n]=new Dn)},l=s(""),f=s(":dels"),[d,h]=p[e](o);if(s(d.name||"").add(h),!d.isPrimaryKey){if("count"!==e){const t="query"===e&&c&&o.values&&a.query({...o,values:!1});return a[e].apply(this,arguments).then((n=>{if("query"===e){if(c&&o.values)return t.then((({result:e})=>(l.addKeys(e),n)));const e=o.values?n.result.map(u):n.result;o.values?l.addKeys(e):f.addKeys(e)}else if("openCursor"===e){const e=n,t=o.values;return e&&Object.create(e,{key:{get:()=>(f.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return f.addKey(t),t}},value:{get:()=>(t&&l.addKey(e.primaryKey),e.value)}})}return n}))}f.add(n)}}return a[e].apply(this,arguments)}})),f}}}};class zn{constructor(e,t){this._middlewares={},this.verno=0;const n=zn.dependencies;this._options=t={addons:zn.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:r}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const o={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:re,dbReadyPromise:null,cancelOpen:re,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var i;o.dbReadyPromise=new Ie((e=>{o.dbReadyResolve=e})),o.openCanceller=new Ie(((e,t)=>{o.cancelOpen=t})),this._state=o,this.name=e,this.on=Ct(this,"populate","blocked","versionchange","close",{ready:[fe,re]}),this.on.ready.subscribe=y(this.on.ready.subscribe,(e=>(t,n)=>{zn.vip((()=>{const r=this._state;if(r.openComplete)r.dbOpenError||Ie.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);const r=this;n||e((function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)}))}}))})),this.Collection=(i=this,Pt(Ft.prototype,(function(e,t){this.db=i;let n=_t,r=null;if(t)try{n=t()}catch(e){r=e}const o=e._ctx,a=o.table,s=a.hook.reading.fire;this._ctx={table:a,index:o.index,isPrimKey:!o.index||a.schema.primKey.keyPath&&o.index===a.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:s!==oe?s:null}}))),this.Table=function(e){return Pt(Ot.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Ct(null,{creating:[se,re],reading:[ie,oe],updating:[ue,re],deleting:[le,re]})}))}(this),this.Transaction=function(e){return Pt(Xt.prototype,(function(t,n,r,o,i){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=o,this.idbtrans=null,this.on=Ct(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ie(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),ht(e)}))}))}(this),this.Version=function(e){return Pt(wn.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Pt(Yt.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};const o=e._deps.indexedDB;if(!o)throw new ee.MissingAPI;this._cmp=this._ascending=o.cmp.bind(o),this._descending=(e,t)=>o.cmp(t,e),this._max=(e,t)=>o.cmp(e,t)>0?e:t,this._min=(e,t)=>o.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)})),this._maxKey=rn(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),yt.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(Nn),this.use(jn),this.use(Bn),this.use(In),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new ee.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new ee.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort(pn),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||Ne.letThrough||this._vip)?e():new Ie(((e,t)=>{if(this._state.openComplete)return t(new ee.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new ee.DatabaseClosed);this.open().catch(re)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});const o=this._middlewares[e]||(this._middlewares[e]=[]);return o.push({stack:e,create:t,level:null==n?10:n,name:r}),o.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?ht(t.dbOpenError):e));F&&(t.openCanceller._stackHolder=Z()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new ee.DatabaseClosed("db.open() was cancelled")}let a=t.dbReadyResolve,s=null,l=!1;return Ie.race([r,("undefined"==typeof navigator?Ie.resolve():_n()).then((()=>new Ie(((r,a)=>{if(i(),!n)throw new ee.MissingAPI;const u=e.name,c=t.autoSchema?n.open(u):n.open(u,Math.round(10*e.verno));if(!c)throw new ee.MissingAPI;c.onerror=Gt(a),c.onblocked=qe(e._fireOnBlocked),c.onupgradeneeded=qe((r=>{if(s=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=Qt,s.abort(),c.result.close();const e=n.deleteDatabase(u);e.onsuccess=e.onerror=qe((()=>{a(new ee.NoSuchDatabase(`Database ${u} doesnt exist`))}))}else{s.onerror=Gt(a);var o=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;l=o<1,e._novip.idbdb=c.result,hn(e,o/10,s,a)}}),a),c.onsuccess=qe((()=>{s=null;const n=e._novip.idbdb=c.result,i=g(n.objectStoreNames);if(i.length>0)try{const r=n.transaction(1===(a=i).length?a[0]:a,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const r=e._dbSchema=yn(0,t,n);e._storeNames=g(t.objectStoreNames,0),fn(e,[e._allTables],o(r),r)}(e,n,r):(bn(e,e._dbSchema,r),function(e,t){const n=mn(yn(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((e=>e.add.length||e.change.length)))}(e,r)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),cn(e,r)}catch(e){}var a;yt.push(e),n.onversionchange=qe((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=qe((t=>{e.on("close").fire(t)})),l&&function({indexedDB:e,IDBKeyRange:t},n){!xn(e)&&"__dbnames"!==n&&En(e,t).put({name:n}).catch(re)}(e._deps,u),r()}),a)}))))]).then((()=>(i(),t.onReadyBeingFired=[],Ie.resolve(Sn((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let r=t.onReadyBeingFired.reduce(fe,re);return t.onReadyBeingFired=[],Ie.resolve(Sn((()=>r(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{s&&s.abort()}catch(e){}return r===t.openCanceller&&e._close(),ht(n)})).finally((()=>{t.openComplete=!0,a()}))}(this)}_close(){const e=this._state,t=yt.indexOf(this);if(t>=0&&yt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new Ie((t=>{e.dbReadyResolve=t})),e.openCanceller=new Ie(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new ee.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new Ie(((n,r)=>{const o=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=qe((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!xn(e)&&"__dbnames"!==n&&En(e,t).delete(n).catch(re)}(this._deps,this.name),n()})),e.onerror=Gt(r),e.onblocked=this._fireOnBlocked};if(e)throw new ee.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(o):o()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return o(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=On.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r=Ne.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);const o=-1!==e.indexOf("?");let i,a;e=e.replace("!","").replace("?","");try{if(a=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||"readonly"===e)i="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new ee.InvalidArgument("Invalid transaction mode: "+e);i="readwrite"}if(r){if("readonly"===r.mode&&"readwrite"===i){if(!o)throw new ee.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&a.forEach((e=>{if(r&&-1===r.storeNames.indexOf(e)){if(!o)throw new ee.SubTransaction("Table "+e+" not included in parent transaction.");r=null}})),o&&r&&!r.active&&(r=null)}}catch(e){return r?r._promise(null,((t,n)=>{n(e)})):ht(e)}const s=Cn.bind(null,this,i,a,r,n);return r?r._promise(i,s,"lock"):Ne.trans?ut(Ne.transless,(()=>this._whenReady(s))):this._whenReady(s)}table(e){if(!u(this._allTables,e))throw new ee.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const Zn="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class Hn{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[Zn](){return this}}function Vn(e,t){return o(t).forEach((n=>{An(e[n]||(e[n]=new Dn),t[n])})),e}let Kn;try{Kn={indexedDB:r.indexedDB||r.mozIndexedDB||r.webkitIndexedDB||r.msIndexedDB,IDBKeyRange:r.IDBKeyRange||r.webkitIDBKeyRange}}catch(r){Kn={indexedDB:null,IDBKeyRange:null}}const Wn=zn;function qn(e){let t=Yn;try{Yn=!0,Jt.storagemutated.fire(e)}finally{Yn=t}}c(Wn,{...ne,delete:e=>new Wn(e,{addons:[]}).delete(),exists:e=>new Wn(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return xn(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>"__dbnames"!==e)))):En(e,t).toCollection().primaryKeys()}(Wn.dependencies).then(e)}catch(e){return ht(new ee.MissingAPI)}},defineClass:()=>function(e){a(this,e)},ignoreTransaction:e=>Ne.trans?ut(Ne.transless,e):e(),vip:Sn,async:function(e){return function(){try{var t=kn(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Ie.resolve(t)}catch(e){return ht(e)}}},spawn:function(e,t,n){try{var r=kn(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:Ie.resolve(r)}catch(e){return ht(e)}},currentTransaction:{get:()=>Ne.trans||null},waitFor:function(e,t){const n=Ie.resolve("function"==typeof e?Wn.ignoreTransaction(e):e).timeout(t||6e4);return Ne.trans?Ne.trans.waitFor(n):n},Promise:Ie,debug:{get:()=>F,set:e=>{U(e,"dexie"===e?()=>!0:xt)}},derive:p,extend:a,props:c,override:y,Events:Ct,on:Jt,liveQuery:function(e){return new Hn((t=>{const n=$(e);let r=!1,i={},a={};const s={get closed(){return r},unsubscribe:()=>{r=!0,Jt.storagemutated.unsubscribe(f)}};t.start&&t.start(s);let l=!1,u=!1;function c(){return o(a).some((e=>i[e]&&function(e,t){const n=$n(t);let r=n.next();if(r.done)return!1;let o=r.value;const i=$n(e);let a=i.next(o.from),s=a.value;for(;!r.done&&!a.done;){if(Rt(s.from,o.to)<=0&&Rt(s.to,o.from)>=0)return!0;Rt(o.from,s.from)<0?o=(r=n.next(s.from)).value:s=(a=i.next(o.from)).value}return!1}(i[e],a[e])))}const f=e=>{Vn(i,e),c()&&d()},d=()=>{if(l||r)return;i={};const o={},p=function(t){n&&nt();const r=()=>tt(e,{subscr:t,trans:null}),o=Ne.trans?ut(Ne.transless,r):r();return n&&o.then(rt,rt),o}(o);u||(Jt("storagemutated",f),u=!0),l=!0,Promise.resolve(p).then((e=>{l=!1,r||(c()?d():(i={},a=o,t.next&&t.next(e)))}),(e=>{l=!1,t.error&&t.error(e),s.unsubscribe()}))};return d(),s}))},extendObservabilitySet:Vn,getByKeyPath:x,setByKeyPath:S,delByKeyPath:function(e,t){"string"==typeof t?S(e,t,void 0):"length"in t&&[].map.call(t,(function(t){S(e,t,void 0)}))},shallowClone:_,deepClone:T,getObjectDiff:Tn,cmp:Rt,asap:w,minKey:-1/0,addons:[],connections:yt,errnames:J,dependencies:Kn,semVer:"3.2.3",version:"3.2.3".split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))}),Wn.maxKey=rn(Wn.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(Jt("storagemutated",(e=>{if(!Yn){let t;bt?(t=document.createEvent("CustomEvent"),t.initCustomEvent("x-storagemutated-1",!0,!0,e)):t=new CustomEvent("x-storagemutated-1",{detail:e}),Yn=!0,dispatchEvent(t),Yn=!1}})),addEventListener("x-storagemutated-1",(({detail:e})=>{Yn||qn(e)})));let Yn=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel("x-storagemutated-1");"function"==typeof e.unref&&e.unref(),Jt("storagemutated",(t=>{Yn||e.postMessage(t)})),e.onmessage=e=>{e.data&&qn(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){Jt("storagemutated",(e=>{try{Yn||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:"x-storagemutated-1",changedParts:e}))))}catch(e){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(e=>{if("x-storagemutated-1"===e.key){const t=JSON.parse(e.newValue);t&&qn(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&"x-storagemutated-1"===e.type&&qn(e.changedParts)}))}Ie.rejectionMapper=function(e,t){if(!e||e instanceof q||e instanceof TypeError||e instanceof SyntaxError||!e.name||!te[e.name])return e;var n=new te[e.name](t||e.message,e);return"stack"in e&&d(n,"stack",{get:function(){return this.inner.stack}}),n},U(F,xt)},6823:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},1917:(e,t,n)=>{"use strict";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,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},9474:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},1248:(e,t,n)=>{"use strict";function r(e){return(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})(e)}n.d(t,{Z:()=>r})},9754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9079);const o=function(e,t){for(var n=e.length;n--;)if((0,r.Z)(e[n][0],t))return n;return-1};var i=Array.prototype.splice;function a(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])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))},a.prototype.get=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]},a.prototype.has=function(e){return o(this.__data__,e)>-1},a.prototype.set=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const s=a},8449:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8951),o=n(8755);const i=(0,r.Z)(o.Z,"Map")},3853:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});const r=(0,n(8951).Z)(Object,"create");var o=Object.prototype.hasOwnProperty;var i=Object.prototype.hasOwnProperty;function a(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])}}a.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},a.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0},a.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)},a.prototype.set=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};const s=a;var l=n(9754),u=n(8449);const c=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function f(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])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(u.Z||l.Z),string:new s}},f.prototype.delete=function(e){var t=c(this,e).delete(e);return this.size-=t?1:0,t},f.prototype.get=function(e){return c(this,e).get(e)},f.prototype.has=function(e){return c(this,e).has(e)},f.prototype.set=function(e,t){var n=c(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const d=f},7198:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9754);var o=n(8449),i=n(3853);function a(e){var t=this.__data__=new r.Z(e);this.size=t.size}a.prototype.clear=function(){this.__data__=new r.Z,this.size=0},a.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},a.prototype.get=function(e){return this.__data__.get(e)},a.prototype.has=function(e){return this.__data__.has(e)},a.prototype.set=function(e,t){var n=this.__data__;if(n instanceof r.Z){var a=n.__data__;if(!o.Z||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i.Z(a)}return n.set(e,t),this.size=n.size,this};const s=a},4785:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(8755).Z.Symbol},1086:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(8755).Z.Uint8Array},1757:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(5602),o=n(7275),i=n(3813),a=n(7605),s=n(3614),l=Object.prototype.hasOwnProperty;const u=function(e,t){var n=(0,o.Z)(e),u=!n&&(0,r.Z)(e),c=!n&&!u&&(0,i.Z)(e),f=!n&&!u&&!c&&(0,s.Z)(e),d=n||u||c||f,p=d?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],h=p.length;for(var m in e)!t&&!l.call(e,m)||d&&("length"==m||c&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,a.Z)(m,h))||p.push(m);return p}},5020:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(4785),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.Z?r.Z.toStringTag:void 0;var l=Object.prototype.toString;var u=r.Z?r.Z.toStringTag:void 0;const c=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}(e):function(e){return l.call(e)}(e)}},6390:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4789);const o=(0,n(8269).Z)(Object.keys,Object);var i=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,r.Z)(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},3956:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},8951:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(3797);const o=n(8755).Z["__core-js_shared__"];var i,a=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";var s=n(5917),l=n(4329),u=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,d=c.toString,p=f.hasOwnProperty,h=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,s.Z)(e)||(t=e,a&&a in t))&&((0,r.Z)(e)?h:u).test((0,l.Z)(e));var t},v=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return m(n)?n:void 0}},6059:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(8269).Z)(Object.getPrototypeOf,Object)},1203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(8951),o=n(8755);const i=(0,r.Z)(o.Z,"DataView");var a=n(8449);const s=(0,r.Z)(o.Z,"Promise"),l=(0,r.Z)(o.Z,"Set"),u=(0,r.Z)(o.Z,"WeakMap");var c=n(5020),f=n(4329),d="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",v="[object DataView]",g=(0,f.Z)(i),y=(0,f.Z)(a.Z),b=(0,f.Z)(s),w=(0,f.Z)(l),E=(0,f.Z)(u),x=c.Z;(i&&x(new i(new ArrayBuffer(1)))!=v||a.Z&&x(new a.Z)!=d||s&&x(s.resolve())!=p||l&&x(new l)!=h||u&&x(new u)!=m)&&(x=function(e){var t=(0,c.Z)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,f.Z)(n):"";if(r)switch(r){case g:return v;case y:return d;case b:return p;case w:return h;case E:return m}return t});const S=x},7605:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=/^(?:0|[1-9]\d*)$/;const o=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},4789:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Object.prototype;const o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},8269:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},8755:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3956),o="object"==typeof self&&self&&self.Object===Object&&self;const i=r.Z||o||Function("return this")()},4329:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Function.prototype.toString;const o=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},9079:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e===t||e!=e&&t!=t}},5602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(5020),o=n(31);const i=function(e){return(0,o.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)};var a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable;const u=i(function(){return arguments}())?i:function(e){return(0,o.Z)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},7275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=Array.isArray},7597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3797),o=n(2170);const i=function(e){return null!=e&&(0,o.Z)(e.length)&&!(0,r.Z)(e)}},3813:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(8755);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o?r.Z.Buffer:void 0;const s=(a?a.isBuffer:void 0)||function(){return!1}},5162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(6390),o=n(1203),i=n(5602),a=n(7275),s=n(7597),l=n(3813),u=n(4789),c=n(3614),f=Object.prototype.hasOwnProperty;const d=function(e){if(null==e)return!0;if((0,s.Z)(e)&&((0,a.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,l.Z)(e)||(0,c.Z)(e)||(0,i.Z)(e)))return!e.length;var t=(0,o.Z)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,u.Z)(e))return!(0,r.Z)(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},4896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(7198),o=n(3853);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o.Z;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},i.prototype.has=function(e){return this.__data__.has(e)};const a=i,s=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},l=function(e,t,n,r,o,i){var l=1&n,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=-1,h=!0,m=2&n?new a:void 0;for(i.set(e,t),i.set(t,e);++p<u;){var v=e[p],g=t[p];if(r)var y=l?r(g,v,p,t,e,i):r(v,g,p,e,t,i);if(void 0!==y){if(y)continue;h=!1;break}if(m){if(!s(t,(function(e,t){if(a=t,!m.has(a)&&(v===e||o(v,e,n,r,i)))return m.push(t);var a}))){h=!1;break}}else if(v!==g&&!o(v,g,n,r,i)){h=!1;break}}return i.delete(e),i.delete(t),h};var u=n(4785),c=n(1086),f=n(9079);const d=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},p=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var h=u.Z?u.Z.prototype:void 0,m=h?h.valueOf:void 0;var v=n(7275);var g=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols;const b=y?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(y(e),(function(t){return g.call(e,t)})))}:function(){return[]};var w=n(1757),E=n(6390),x=n(7597);const S=function(e){return(0,x.Z)(e)?(0,w.Z)(e):(0,E.Z)(e)},_=function(e){return function(e,t,n){var r=t(e);return(0,v.Z)(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,S,b)};var k=Object.prototype.hasOwnProperty;var O=n(1203),C=n(3813),P=n(3614),N="[object Arguments]",T="[object Array]",j="[object Object]",L=Object.prototype.hasOwnProperty;const I=function(e,t,n,o,i,a){var s=(0,v.Z)(e),u=(0,v.Z)(t),h=s?T:(0,O.Z)(e),g=u?T:(0,O.Z)(t),y=(h=h==N?j:h)==j,b=(g=g==N?j:g)==j,w=h==g;if(w&&(0,C.Z)(e)){if(!(0,C.Z)(t))return!1;s=!0,y=!1}if(w&&!y)return a||(a=new r.Z),s||(0,P.Z)(e)?l(e,t,n,o,i,a):function(e,t,n,r,o,i,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||!i(new c.Z(e),new c.Z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.Z)(+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=d;case"[object Set]":var u=1&r;if(s||(s=p),e.size!=t.size&&!u)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var v=l(s(e),s(t),r,o,i,a);return a.delete(e),v;case"[object Symbol]":if(m)return m.call(e)==m.call(t)}return!1}(e,t,h,n,o,i,a);if(!(1&n)){var E=y&&L.call(e,"__wrapped__"),x=b&&L.call(t,"__wrapped__");if(E||x){var S=E?e.value():e,I=x?t.value():t;return a||(a=new r.Z),i(S,I,n,o,a)}}return!!w&&(a||(a=new r.Z),function(e,t,n,r,o,i){var a=1&n,s=_(e),l=s.length;if(l!=_(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:k.call(t,c)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],v=t[c];if(r)var g=a?r(v,m,c,t,e,i):r(m,v,c,e,t,i);if(!(void 0===g?m===v||o(m,v,n,r,i):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,o,i,a))};var M=n(31);const D=function e(t,n,r,o,i){return t===n||(null==t||null==n||!(0,M.Z)(t)&&!(0,M.Z)(n)?t!=t&&n!=n:I(t,n,r,o,e,i))},R=function(e,t){return D(e,t)}},3797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5020),o=n(5917);const i=function(e){if(!(0,o.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2170:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},31:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},1785:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(5020),o=n(6059),i=n(31),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);const f=function(e){if(!(0,i.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,o.Z)(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},3614:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(5020),o=n(2170),i=n(31),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;var s=n(3956),l="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=l&&"object"==typeof module&&module&&!module.nodeType&&module,c=u&&u.exports===l&&s.Z.process,f=function(){try{return u&&u.require&&u.require("util").types||c&&c.binding&&c.binding("util")}catch(e){}}(),d=f&&f.isTypedArray;const p=d?(h=d,function(e){return h(e)}):function(e){return(0,i.Z)(e)&&(0,o.Z)(e.length)&&!!a[(0,r.Z)(e)]};var h},9881:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return void 0===e}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.m=n,o.c=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"de98c781b27772a4.js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@openmrs/esm-app-shell:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var f=u[c];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+i){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{o.S={};var e={},t={};o.I=(n,r)=>{r||(r=[]);var i=t[n];if(i||(i=t[n]={}),!(r.indexOf(i)>=0)){if(r.push(i),e[n])return e[n];o.o(o.S,n)||(o.S[n]={});var a=o.S[n],s="@openmrs/esm-app-shell",l=(e,t,n,r)=>{var o=a[e]=a[e]||{},i=o[t];(!i||!i.loaded&&(!r!=!i.eager?r:s>i.from))&&(o[t]={get:n,from:s,eager:!!r})},u=[];return"default"===n&&(l("@openmrs/esm-framework/src/internal","4.3.2-pre.662",(()=>()=>o(8694)),1),l("@openmrs/esm-framework","4.3.2-pre.662",(()=>()=>o(6503)),1),l("dayjs","1.11.5",(()=>()=>o(9889)),1),l("i18next","19.9.2",(()=>()=>o(26)),1),l("react-dom","18.2.0",(()=>()=>o(1386)),1),l("react-i18next","11.18.6",(()=>()=>o(2857)),1),l("react","18.2.0",(()=>()=>o(3248)),1),l("rxjs","6.6.7",(()=>()=>o(1099)),1)),e[n]=u.length?Promise.all(u).then((()=>e[n]=1)):1}}})(),o.p="",(()=>{var e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=n[1]?t(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,t(n[2]))),n[3]&&(r.push([]),r.push.apply(r,t(n[3]))),r},t=e=>{var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,i=1;i<e.length;i++)o--,r+="u"==(typeof(s=e[i]))[0]?"-":(o>0?".":"")+(o=2,s);return r}var a=[];for(i=1;i<e.length;i++){var s=e[i];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():t(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},n=(t,r)=>{if(0 in t){r=e(r);var o=t[0],i=o<0;i&&(o=-o-1);for(var a=0,s=1,l=!0;;s++,a++){var u,c,f=s<t.length?(typeof t[s])[0]:"";if(a>=r.length||"o"==(c=(typeof(u=r[a]))[0]))return!l||("u"==f?s>o&&!i:""==f!=i);if("u"==c){if(!l||"u"!=f)return!1}else if(l)if(f==c)if(s<=o){if(u!=t[s])return!1}else{if(i?u>t[s]:u<t[s])return!1;u!=t[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(i||s<=o)return!1;l=!1,s--}else{if(s<=o||c<f!=i)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var d=[],p=d.pop.bind(d);for(a=1;a<t.length;a++){var h=t[a];d.push(1==h?p()|p():2==h?p()&p():h?n(h,r):!p())}return!!p()},r=(t,n)=>{var r=t[n];return Object.keys(r).reduce(((t,n)=>!t||!r[t].loaded&&((t,n)=>{t=e(t),n=e(n);for(var r=0;;){if(r>=t.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=t[r],i=(typeof o)[0];if(r>=n.length)return"u"==i;var a=n[r],s=(typeof a)[0];if(i!=s)return"o"==i&&"n"==s||"s"==s||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;r++}})(t,n)?n:t),0)},i=(e,o,i,s)=>{var l=r(e,i);return n(s,l)||"undefined"!=typeof console&&console.warn&&console.warn(((e,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+t(o)+")")(e,i,l,s)),a(e[i][l])},a=e=>(e.loaded=1,e.get()),s=e=>function(t,n,r,i){var a=o.I(t);return a&&a.then?a.then(e.bind(e,t,o.S[t],n,r,i)):e(t,o.S[t],n,r,i)},l=s(((e,t,n,i)=>t&&o.o(t,n)?((e,t,n,o)=>{var i=r(e,n);return a(e[n][i])})(t,0,n):i())),u=s(((e,t,n,r,a)=>t&&o.o(t,n)?i(t,0,n,r):a())),c={},f={7034:()=>l("default","@openmrs/esm-framework/src/internal",(()=>()=>o(8694))),3596:()=>u("default","rxjs",[1,6,5,3],(()=>()=>o(1099))),7959:()=>u("default","react",[1,18,1,0],(()=>()=>o(3248))),1859:()=>u("default","react-dom",[1,18,1,0],(()=>()=>o(1386))),8658:()=>u("default","i18next",[1,19,6,0],(()=>()=>o(26))),8433:()=>u("default","react-i18next",[1,11,7,0],(()=>()=>o(2857))),3772:()=>u("default","dayjs",[1,1,10,4],(()=>()=>o(9889))),2813:()=>u("default","@openmrs/esm-framework",[7,4,3,2,,"pre",662],(()=>()=>o(6503)))};[7034,3596,7959,1859,8658,8433,3772,2813].forEach((e=>{o.m[e]=t=>{c[e]=0,delete o.c[e];var n=f[e]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=n()}}));var d={};o.f.consumes=(e,t)=>{o.o(d,e)&&d[e].forEach((e=>{if(o.o(c,e))return t.push(c[e]);var n=t=>{c[e]=0,o.m[e]=n=>{delete o.c[e],n.exports=t()}},r=t=>{delete c[e],o.m[e]=n=>{throw delete o.c[e],t}};try{var i=f[e]();i.then?t.push(c[e]=i.then(n).catch(r)):n(i)}catch(e){r(e)}}))}})(),(()=>{var e={179:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,s,l]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);l&&l(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunk_openmrs_esm_app_shell=self.webpackChunk_openmrs_esm_app_shell||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o(6360)})();
1
+ /*! For license information please see openmrs.a02e15d8f0b67b8d.js.LICENSE.txt */
2
+ (()=>{var e,t,n={1469:(e,t,n)=>{"use strict";n.d(t,{FQz:()=>An,aGc:()=>Tt,gN6:()=>Gt,lSo:()=>Fe,K0D:()=>Rn,kwZ:()=>Zn,n9L:()=>_t,Jn6:()=>Dn});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?r.enableUseControlledStateWithValue=!0:r.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE&&"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1}catch(e){r.enableCssCustomProperties=!1,r.enableUseControlledStateWithValue=!1,r.enableCssGrid=!1,r.enableV11Release=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:r.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release}];function i(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)}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function l(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}for(var u=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.flags=new Map,t&&Object.keys(t).forEach((function(e){n.flags.set(e,t[e])}))}var t,n;return t=e,n=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags.set(n,e[n])}))}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=a(t.value,2),o=r[0],i=r[1];this.flags.has(o)||this.flags.set(o,i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),c=new u(undefined),f=0;f<o.length;f++){var d=o[f];c.add(d.name,d.enabled)}function p(){return c.enabled.apply(c,arguments)}function h(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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)}}function y(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}function E(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&&S(e,t)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function C(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=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){if(e){if("string"==typeof e)return T(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)?T(e,t):void 0}}function T(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(){c.merge.apply(c,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0});var j=n(7959),L=n.n(j),I=n(2123),M=n.n(I),D=n(6377),R=n.n(D);function A(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 $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var B=["width","height","viewBox"],z=["tabindex"],Z={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function H(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var q=["className","children","tabIndex"],Y=["tabindex"],G=L().forwardRef((function(e,t){var n=e.className,r=e.children,o=e.tabIndex,i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,i=U(e,B),a=i.tabindex,s=U(i,z),l=$($($({},Z),s),{},{width:t,height:n,viewBox:o});return l["aria-label"]||l["aria-labelledby"]||l.title?(l.role="img",null!=a&&(l.focusable="true",l.tabindex=a)):l["aria-hidden"]=!0,l}(V(V({},W(e,q)),{},{tabindex:o})),a=i.tabindex,s=W(i,Y);return n&&(s.className=n),null!=a&&(s.tabIndex=a),t&&(s.ref=t),L().createElement("svg",s,r)}));G.displayName="Icon",G.propTypes={"aria-hidden":M().string,"aria-label":M().string,"aria-labelledby":M().string,children:M().node,className:M().string,height:M().oneOfType([M().number,M().string]),preserveAspectRatio:M().string,tabIndex:M().string,viewBox:M().string,width:M().oneOfType([M().number,M().string]),xmlns:M().string},G.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"},M().oneOfType([M().number,M().string]);var Q,J,X,ee,te,ne,re,oe,ie,ae,se,le,ue,ce,fe,de,pe,he,me,ve,ge,ye,be,we=["children","size"],Ee=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,we);return 16===o||"16"===o||"16px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},i),Q||(Q=L().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),J||(J=L().createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),n):20===o||"20"===o||"20px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},i),X||(X=L().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z"})),ee||(ee=L().createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),n):24===o||"24"===o||"24px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},i),te||(te=L().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z"})),ne||(ne=L().createElement("path",{fill:"none",d:"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z","data-icon-path":"inner-path",opacity:"0"})),n):L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),re||(re=L().createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),oe||(oe=L().createElement("path",{d:"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"})),n)})),xe=["children","size"],Se=["children","size"],_e=["children","size"],ke=["children","size"],Oe=["children","size"],Ce=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,xe);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),ie||(ie=L().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),n)})),Pe=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,Se);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),ae||(ae=L().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),se||(se=L().createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)})),Ne=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,_e);return 16===o||"16"===o||"16px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},i),le||(le=L().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),ue||(ue=L().createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n):20===o||"20"===o||"20px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},i),ce||(ce=L().createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),fe||(fe=L().createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),n):24===o||"24"===o||"24px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},i),de||(de=L().createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),pe||(pe=L().createElement("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"})),n):L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),he||(he=L().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),me||(me=L().createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)})),Te=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,ke);return"glyph"===o||"glyph"===o||"glyphpx"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor"},i),ve||(ve=L().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),n):16===o||"16"===o||"16px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},i),ge||(ge=L().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n):L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),ye||(ye=L().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),n)})),je=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,Oe);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),be||(be=L().createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)})),Le=L().createContext("cds");function Ie(){return L().useContext(Le)}var Me={};function De(e,t){return function(t,n,r){if(void 0!==t[n]){Me[r]&&Me[r][n]||(Me[r]=m(m({},Me[r]),{},b({},n,!0)));for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return e.apply(void 0,[t,n,r].concat(i))}}}var Re=["active","className","withOverlay","small","description"];function Ae(e){var t,n,r=e.active,o=e.className,i=e.withOverlay,a=e.small,s=e.description,l=_(e,Re),u=Ie(),c=R()(o,(b(t={},"".concat(u,"--loading"),!0),b(t,"".concat(u,"--loading--small"),a),b(t,"".concat(u,"--loading--stop"),!r),t)),f=R()((b(n={},"".concat(u,"--loading-overlay"),!0),b(n,"".concat(u,"--loading-overlay--stop"),!r),n)),d=L().createElement("div",w({},l,{"aria-atomic":"true","aria-live":r?"assertive":"off",className:c}),L().createElement("svg",{className:"".concat(u,"--loading__svg"),viewBox:"0 0 100 100"},L().createElement("title",null,s),a?L().createElement("circle",{className:"".concat(u,"--loading__background"),cx:"50%",cy:"50%",r:"44"}):null,L().createElement("circle",{className:"".concat(u,"--loading__stroke"),cx:"50%",cy:"50%",r:"44"})));return i?L().createElement("div",{className:f},d):d}Ae.propTypes={active:M().bool,className:M().string,description:M().string,id:De(M().string),small:M().bool,withOverlay:M().bool},Ae.defaultProps={active:!0,withOverlay:!0,small:!1,description:"loading"};var $e=["className","status","iconDescription","description","onSuccess","successDelay"];function Fe(e){var t,n=e.className,r=e.status,o=void 0===r?"active":r,i=e.iconDescription,a=e.description,s=e.onSuccess,l=e.successDelay,u=_(e,$e),c=Ie(),f=R()("".concat(c,"--inline-loading"),n),d=L().createElement("div",{className:"".concat(c,"--inline-loading__text")},a),p=(t=i||o,"error"===o?L().createElement(Ee,{className:"".concat(c,"--inline-loading--error")},L().createElement("title",null,t)):"finished"===o?(setTimeout((function(){s&&s()}),l),L().createElement(Ne,{className:"".concat(c,"--inline-loading__checkmark-container")},L().createElement("title",null,t))):"inactive"===o||"active"===o?(i||(t="active"===o?"loading":"not loading"),L().createElement(Ae,{small:!0,description:t,withOverlay:!1,active:"active"===o})):void 0),h=p&&L().createElement("div",{className:"".concat(c,"--inline-loading__animation")},p);return L().createElement("div",w({className:f},u,{"aria-live":"assertive"}),h,a&&d)}Fe.propTypes={className:M().string,description:M().node,iconDescription:M().string,onSuccess:M().func,status:M().oneOf(["inactive","active","finished","error"]),successDelay:M().number},Fe.defaultProps={successDelay:1500};var Ue=["children","className","href","disabled","inline","visited","renderIcon","size"],Be=L().forwardRef((function(e,t){var n,r=e.children,o=e.className,i=e.href,a=e.disabled,s=void 0!==a&&a,l=e.inline,u=void 0!==l&&l,c=e.visited,f=void 0!==c&&c,d=e.renderIcon,p=e.size,h=_(e,Ue),m=Ie(),v={className:R()("".concat(m,"--link"),o,(b(n={},"".concat(m,"--link--disabled"),s),b(n,"".concat(m,"--link--inline"),u),b(n,"".concat(m,"--link--visited"),f),b(n,"".concat(m,"--link--").concat(p),p),n)),rel:"_blank"===h.target?"noopener":null};return s?(v.role="link",v["aria-disabled"]=!0):v.href=i,L().createElement("a",w({ref:t},v,h),r,!u&&d&&L().createElement("div",{className:"".concat(m,"--link__icon")},L().createElement(d,null)))}));Be.displayName="Link",Be.propTypes={children:M().node,className:M().string,disabled:M().bool,href:M().string,inline:M().bool,renderIcon:M().oneOfType([M().func,M().object]),size:M().oneOf(["sm","md","lg"]),visited:M().bool};var ze=Be,Ze=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=0;i<e.length&&!t.defaultPrevented;i++)"function"==typeof e[i]&&e[i].apply(e,[t].concat(r))}},He="undefined"!=typeof window?j.useLayoutEffect:j.useEffect;function Ve(e){if(function(e){if(e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return e;var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=N(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,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,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e.childNodes);try{for(n.s();!(t=n.n()).done;){var r=Ve(t.value);if(r)return r}}catch(e){n.e(e)}finally{n.f()}return null}function Ke(e,t){for(var n=0;n<t.length;n++)if(We(e,t[n]))return!0;return!1}function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.key,r=t.which,o=t.keyCode,i=t.code;return"string"==typeof e?e===n:"number"==typeof e?e===r||e===o:e.key&&Array.isArray(n)?-1!==n.indexOf(e.key):e.key===n||e.which===r||e.keyCode===o||e.code===i}var qe,Ye,Ge,Qe,Je={key:"Enter",which:13,keyCode:13,code:"Enter"},Xe={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},et={key:" ",which:32,keyCode:32,code:"Space"},tt=["children","className","light"],nt=["children","className","clicked","href","light","onClick","onKeyDown"],rt=["children","className","disabled","id","light","name","onClick","onChange","onKeyDown","selected","tabIndex","title","value"],ot=["tabIndex","className","children","expanded","tileMaxHeight","tilePadding","onClick","onKeyUp","tileCollapsedIconText","tileExpandedIconText","tileCollapsedLabel","tileExpandedLabel","light"],it=L().forwardRef((function(e,t){var n=e.children,r=e.className,o=e.light,i=void 0!==o&&o,a=_(e,tt),s=Ie(),l=R()("".concat(s,"--tile"),b({},"".concat(s,"--tile--light"),i),r);return L().createElement("div",w({className:l,ref:t},a),n)}));it.displayName="Tile",it.propTypes={children:M().node,className:M().string,light:De(M().bool)};var at=L().forwardRef((function(e,t){var n,r=e.children,o=e.className,i=e.clicked,a=void 0!==i&&i,s=e.href,l=e.light,u=e.onClick,c=void 0===u?function(){}:u,f=e.onKeyDown,d=void 0===f?function(){}:f,p=_(e,nt),h=Ie(),m=R()("".concat(h,"--tile"),"".concat(h,"--tile--clickable"),(b(n={},"".concat(h,"--tile--is-clicked"),a),b(n,"".concat(h,"--tile--light"),l),n),o),v=P((0,j.useState)(a),2),g=v[0],y=v[1];return L().createElement(ze,w({className:m,href:s,onClick:function(e){e.persist(),y(!g),c(e)},onKeyDown:function(e){e.persist(),Ke(e,[Je,et])&&(e.preventDefault(),y(!g),d(e)),d(e)},ref:t},p),r)}));at.displayName="ClickableTile",at.propTypes={children:M().node,className:M().string,clicked:M().bool,href:M().string,light:De(M().bool),onClick:M().func,onKeyDown:M().func,rel:M().string};var st=L().forwardRef((function(e,t){var n,r=e.children,o=e.className,i=e.disabled,a=e.id,s=e.light,l=e.name,u=e.onClick,c=void 0===u?function(){}:u,f=e.onChange,d=void 0===f?function(){}:f,p=e.onKeyDown,h=void 0===p?function(){}:p,m=e.selected,v=void 0!==m&&m,g=e.tabIndex,y=void 0===g?0:g,E=e.title,x=void 0===E?"title":E,S=e.value,k=void 0===S?"value":S,O=_(e,rt),C=Ie(),N=c,T=h,I=P((0,j.useState)(v),2),M=I[0],D=I[1],A=P((0,j.useState)(v),2),$=A[0],F=A[1],U=R()("".concat(C,"--tile"),"".concat(C,"--tile--selectable"),(b(n={},"".concat(C,"--tile--is-selected"),M),b(n,"".concat(C,"--tile--light"),s),b(n,"".concat(C,"--tile--disabled"),i),n),o),B=R()("".concat(C,"--tile-input"),b({},"".concat(C,"--tile-input--checked"),M));return v!==$&&(D(v),F(v)),L().createElement(L().Fragment,null,L().createElement("input",{checked:M,className:B,disabled:i,id:a,name:l,onChange:i?null:function(e){D(e.target.checked),d(e)},ref:t,tabIndex:-1,title:x,type:"checkbox",value:k}),L().createElement("label",w({className:U,htmlFor:a,onClick:i?null:function(e){e.preventDefault(),e.persist(),D(!M),N(e),d(e)},onKeyDown:i?null:function(e){e.persist(),Ke(e,[Je,et])&&(e.preventDefault(),D(!M),d(e)),T(e)},tabIndex:i?null:y},O),L().createElement("span",{className:"".concat(C,"--tile__checkmark ").concat(C,"--tile__checkmark--persistent")},M?qe||(qe=L().createElement(Pe,null)):Ye||(Ye=L().createElement(Ce,null))),L().createElement("span",{className:"".concat(C,"--tile-content")},r)))}));function lt(e){var t,n,r=e.tabIndex,o=e.className,i=e.children,a=e.expanded,s=e.tileMaxHeight,l=e.tilePadding,u=e.onClick,c=e.onKeyUp,f=e.tileCollapsedIconText,d=e.tileExpandedIconText,p=e.tileCollapsedLabel,h=e.tileExpandedLabel,m=e.light,v=_(e,ot),g=P((0,j.useState)(s),2),y=g[0],E=g[1],x=P((0,j.useState)(l),2),S=x[0],k=x[1],O=P((0,j.useState)(a),2),C=O[0],N=O[1],T=P((0,j.useState)(s),2),I=T[0],M=T[1],D=P((0,j.useState)(l),2),A=D[0],$=D[1],F=P((0,j.useState)(a),2),U=F[0],B=F[1],z=P((0,j.useState)(!1),2),Z=z[0],H=z[1],V=(0,j.useRef)(null),K=(0,j.useRef)(null),W=(0,j.useRef)(null),q=(0,j.useRef)(null),Y=Ie();function G(){U&&E(W.current.getBoundingClientRect().height),E(V.current.getBoundingClientRect().height)}function Q(e){e.persist(),B(!U),G(),u&&u(e)}function J(e){e.target!==q.current&&Ke(e,[Je,et])&&e.preventDefault()}a!==C&&(B(a),N(a),G()),s!==I&&(E(s),M(s)),l!==A&&(k(l),$(l));var X=R()("".concat(Y,"--tile"),"".concat(Y,"--tile--expandable"),(b(t={},"".concat(Y,"--tile--is-expanded"),U),b(t,"".concat(Y,"--tile--light"),m),t),o),ee=R()("".concat(Y,"--tile"),"".concat(Y,"--tile--expandable"),"".concat(Y,"--tile--expandable--interactive"),(b(n={},"".concat(Y,"--tile--is-expanded"),U),b(n,"".concat(Y,"--tile--light"),m),n),o),te=R()("".concat(Y,"--tile__chevron"),"".concat(Y,"--tile__chevron--interactive")),ne={maxHeight:U?null:y+S},re=L().Children.toArray(i);return He((function(){var e=window.getComputedStyle(q.current,null),t=V.current.getBoundingClientRect().height,n=parseInt(e.getPropertyValue("padding-top"),10),r=parseInt(e.getPropertyValue("padding-bottom"),10);E(t),k(n+r)}),[]),He((function(){(Ve(K.current)||Ve(V.current))&&H(!0)}),[]),(0,j.useEffect)((function(){var e=new ResizeObserver((function(e){var t=P(e,1)[0];E(t.contentRect.height)}));return e.observe(V.current),function(){return e.disconnect()}}),[]),Z?L().createElement("div",w({ref:q,style:ne,className:ee,"aria-expanded":U},v),L().createElement("div",{ref:W},L().createElement("div",{ref:V,className:"".concat(Y,"--tile-content")},re[0]),L().createElement("button",{type:"button","aria-expanded":U,onKeyUp:Ze([c,J]),onClick:Ze([u,Q]),"aria-label":U?d:f,className:te},Ge||(Ge=L().createElement(Te,null))),L().createElement("div",{ref:K,className:"".concat(Y,"--tile-content")},re[1]))):L().createElement("button",w({type:"button",ref:q,style:ne,className:X,"aria-expanded":U,title:U?d:f},v,{onKeyUp:Ze([c,J]),onClick:Ze([u,Q]),tabIndex:r}),L().createElement("div",{ref:W},L().createElement("div",{ref:V,className:"".concat(Y,"--tile-content")},re[0]),L().createElement("div",{className:"".concat(Y,"--tile__chevron")},L().createElement("span",null,U?h:p),Qe||(Qe=L().createElement(Te,null))),L().createElement("div",{ref:K,className:"".concat(Y,"--tile-content")},re[1])))}st.displayName="SelectableTile",st.propTypes={children:M().node,className:M().string,disabled:M().bool,id:M().string,light:De(M().bool),name:M().string,onChange:M().func,onClick:M().func,onKeyDown:M().func,selected:M().bool,tabIndex:M().number,title:M().string,value:M().oneOfType([M().string,M().number]).isRequired},lt.propTypes={children:M().node,className:M().string,expanded:M().bool,id:M().string,light:De(M().bool),onClick:M().func,onKeyUp:M().func,tabIndex:M().number,tileCollapsedIconText:M().string,tileCollapsedLabel:M().string,tileExpandedIconText:M().string,tileExpandedLabel:M().string},lt.defaultProps={tabIndex:0,expanded:!1,tileMaxHeight:0,tilePadding:0,onClick:function(){},tileCollapsedIconText:"Interact to expand Tile",tileExpandedIconText:"Interact to collapse Tile"},lt.displayName="ExpandableTile";var ut=L().forwardRef((function(e,t){var n=e.children,r=Ie();return L().createElement("span",{ref:t,className:"".concat(r,"--tile-content__above-the-fold")},n)}));ut.propTypes={children:M().node},ut.displayName="TileAboveTheFoldContent";var ct,ft,dt,pt=L().forwardRef((function(e,t){var n=e.children,r=Ie();return L().createElement("span",{ref:t,className:"".concat(r,"--tile-content__below-the-fold")},n)}));pt.propTypes={children:M().node},pt.displayName="TileBelowTheFoldContent";var ht=["children","className","light"],mt=["children","href","className","handleClick","handleKeyDown","onClick","onKeyDown","clicked","light"],vt=["children","id","tabIndex","value","name","title","iconDescription","className","handleClick","handleKeyDown","onClick","onChange","onKeyDown","light","disabled","selected"],gt=["tabIndex","className","expanded","tileMaxHeight","tilePadding","handleClick","onKeyUp","tileCollapsedIconText","tileExpandedIconText","tileCollapsedLabel","tileExpandedLabel","onBeforeClick","light"],yt=function(e){E(n,e);var t=C(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e=this.context,t=this.props,n=t.children,r=t.className,o=t.light,i=_(t,ht),a=R()("".concat(e,"--tile"),b({},"".concat(e,"--tile--light"),o),r);return L().createElement("div",w({className:a},i),n)}}]),n}(j.Component);b(yt,"propTypes",{children:M().node,className:M().string,light:M().bool}),b(yt,"contextType",Le),b(yt,"defaultProps",{light:!1});var bt=function(e){E(n,e);var t=C(n);function n(){var e;v(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return b(k(e=t.call.apply(t,[this].concat(o))),"state",{}),b(k(e),"handleClick",(function(t){t.persist(),e.setState({clicked:!e.state.clicked},(function(){var n,r,o,i;(null===(n=(r=e.props).handleClick)||void 0===n?void 0:n.call(r,t))||null===(o=(i=e.props).onClick)||void 0===o||o.call(i,t)}))})),b(k(e),"handleKeyDown",(function(t){var n,r;t.persist(),Ke(t,[Je,et])?e.setState({clicked:!e.state.clicked},(function(){var n,r;(null===(n=(r=e.props).handleKeyDown)||void 0===n?void 0:n.call(r,t))||e.props.onKeyDown(t)})):(null===(n=(r=e.props).handleKeyDown)||void 0===n?void 0:n.call(r,t))||e.props.onKeyDown(t)})),e}return y(n,[{key:"render",value:function(){var e,t=this.context,n=this.props,r=n.children,o=n.href,i=n.className;n.handleClick,n.handleKeyDown,n.onClick,n.onKeyDown,n.clicked;var a=n.light,s=_(n,mt),l=R()("".concat(t,"--tile"),"".concat(t,"--tile--clickable"),(b(e={},"".concat(t,"--tile--is-clicked"),this.state.clicked),b(e,"".concat(t,"--tile--light"),a),e),i);return L().createElement(ze,w({href:o,className:l},s,{onClick:this.handleClick,onKeyDown:this.handleKeyDown}),r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.clicked;return t.prevClicked===n?null:{clicked:n,prevClicked:n}}}]),n}(j.Component);function wt(e){var t,n=e.children,r=e.id,o=e.tabIndex,i=e.value,a=e.name,s=e.title;e.iconDescription;var l=e.className,u=e.handleClick,c=e.handleKeyDown,f=e.onClick,d=e.onChange,p=e.onKeyDown,h=e.light,m=e.disabled,v=e.selected,g=_(e,vt),y=Ie(),E=u||f,x=c||p,S=P((0,j.useState)(v),2),k=S[0],O=S[1],C=(0,j.useRef)(null),N=R()("".concat(y,"--tile"),"".concat(y,"--tile--selectable"),(b(t={},"".concat(y,"--tile--is-selected"),k),b(t,"".concat(y,"--tile--light"),h),b(t,"".concat(y,"--tile--disabled"),m),t),l),T=R()("".concat(y,"--tile-input"),b({},"".concat(y,"--tile-input--checked"),k));return(0,j.useEffect)((function(){O(v)}),[v]),L().createElement(L().Fragment,null,L().createElement("input",{ref:C,tabIndex:-1,id:r,className:T,value:i,onChange:m?null:function(e){O(e.target.checked),d(e)},type:"checkbox",disabled:m,name:a,title:s,checked:k}),L().createElement("label",w({htmlFor:r,className:N,tabIndex:m?null:o},g,{onClick:m?null:function(e){e.preventDefault(),e.persist(),O(!k),E(e),d(e)},onKeyDown:m?null:function(e){e.persist(),Ke(e,[Je,et])&&(e.preventDefault(),O(!k),d(e)),x(e)}}),L().createElement("span",{className:"".concat(y,"--tile__checkmark ").concat(y,"--tile__checkmark--persistent")},k?ct||(ct=L().createElement(Pe,null)):ft||(ft=L().createElement(Ce,null))),L().createElement("span",{className:"".concat(y,"--tile-content")},n)))}b(bt,"propTypes",{children:M().node,className:M().string,handleClick:De(M().func),handleKeyDown:De(M().func),href:M().string,light:M().bool,onClick:M().func,onKeyDown:M().func,rel:M().string}),b(bt,"contextType",Le),b(bt,"defaultProps",{clicked:!1,onClick:function(){},onKeyDown:function(){},light:!1}),wt.defaultProps={value:"value",title:"title",selected:!1,tabIndex:0,light:!1,onClick:function(){},onChange:function(){},onKeyDown:function(){}},wt.propTypes={children:M().node,className:M().string,disabled:M().bool,handleClick:De(M().func),handleKeyDown:De(M().func),iconDescription:De(M().string),id:M().string,light:M().bool,name:M().string,onChange:M().func,onClick:M().func,onKeyDown:M().func,selected:M().bool,tabIndex:M().number,title:M().string,value:M().oneOfType([M().string,M().number]).isRequired};var Et=function(e){E(n,e);var t=C(n);function n(){var e;v(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return b(k(e=t.call.apply(t,[this].concat(o))),"state",{}),b(k(e),"resizeObserver",null),b(k(e),"componentDidMount",(function(){if(e.resizeObserver=new ResizeObserver((function(t){var n=P(t,1)[0];e.setState({tileMaxHeight:n.contentRect.height})})),e.tile){var t=window.getComputedStyle(e.tile,null);e.aboveTheFold&&(e.resizeObserver.observe(e.aboveTheFold),e.setState({tileMaxHeight:e.aboveTheFold.getBoundingClientRect().height,tilePadding:parseInt(t.getPropertyValue("padding-top"),10)+parseInt(t.getPropertyValue("padding-bottom"),10)}))}})),b(k(e),"componentDidUpdate",(function(t){t.expanded!==e.props.expanded&&e.setMaxHeight()})),b(k(e),"setMaxHeight",(function(){(e.state.expanded?e.tileContent:e.aboveTheFold)&&e.setState({tileMaxHeight:e.state.expanded?e.tileContent.getBoundingClientRect().height:e.aboveTheFold.getBoundingClientRect().height})})),b(k(e),"handleClick",(function(t){e.props.onBeforeClick(t)&&"INPUT"!==t.target.tagName&&(t.persist(),e.setState({expanded:!e.state.expanded},(function(){var n,r,o,i;e.setMaxHeight(),(null===(n=(r=e.props).handleClick)||void 0===n?void 0:n.call(r,t))||null===(o=(i=e.props).onClick)||void 0===o||o.call(i,t)})))})),b(k(e),"handleKeyUp",(function(t){t.target!==e.tile&&Ke(t,[Je,et])&&t.preventDefault()})),b(k(e),"getChildren",(function(){return L().Children.toArray(e.props.children)})),e}return y(n,[{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect()}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.tabIndex,o=n.className;n.expanded,n.tileMaxHeight,n.tilePadding,n.handleClick;var i=n.onKeyUp,a=n.tileCollapsedIconText,s=n.tileExpandedIconText,l=n.tileCollapsedLabel,u=n.tileExpandedLabel;n.onBeforeClick;var c=n.light,f=_(n,gt),d=this.context,p=this.state.expanded,h=R()("".concat(d,"--tile"),"".concat(d,"--tile--expandable"),(b(e={},"".concat(d,"--tile--is-expanded"),p),b(e,"".concat(d,"--tile--light"),c),e),o),m={maxHeight:p?null:this.state.tileMaxHeight+this.state.tilePadding},v=this.getChildren();return L().createElement("button",w({type:"button",ref:function(e){t.tile=e},style:m,className:h,"aria-expanded":p,title:p?s:a},f,{onKeyUp:Ze([i,this.handleKeyUp]),onClick:this.handleClick,tabIndex:r}),L().createElement("div",{ref:function(e){t.tileContent=e}},L().createElement("div",{ref:function(e){t.aboveTheFold=e},className:"".concat(d,"--tile-content")},v[0]),L().createElement("div",{className:"".concat(d,"--tile__chevron")},L().createElement("span",null,p?u:l),dt||(dt=L().createElement(Te,null))),L().createElement("div",{className:"".concat(d,"--tile-content")},v[1])))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.expanded,r=e.tileMaxHeight,o=e.tilePadding,i=t.prevExpanded,a=t.prevTileMaxHeight,s=t.prevTilePadding,l=t.expanded,u=t.tileMaxHeight,c=t.tilePadding,f=i!==n,d=a!==r,p=s!==o;return f||d||p?{expanded:f?n:l,tileMaxHeight:d?r:u,tilePadding:p?o:c,prevExpanded:n,prevTileMaxHeight:r,prevTilePadding:o}:null}}]),n}(j.Component);b(Et,"propTypes",{children:M().node,className:M().string,expanded:M().bool,handleClick:De(M().func),id:M().string,light:M().bool,onBeforeClick:M().func,onClick:M().func,onKeyUp:M().func,tabIndex:M().number,tileCollapsedIconText:M().string,tileCollapsedLabel:M().string,tileExpandedIconText:M().string,tileExpandedLabel:M().string}),b(Et,"contextType",Le),b(Et,"defaultProps",{tabIndex:0,expanded:!1,tileMaxHeight:0,tilePadding:0,onBeforeClick:function(){return!0},onClick:function(){},tileCollapsedIconText:"Interact to expand Tile",tileExpandedIconText:"Interact to collapse Tile",light:!1});var xt=function(e){E(n,e);var t=C(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e=this.context,t=this.props.children;return L().createElement("span",{className:"".concat(e,"--tile-content__above-the-fold")},t)}}]),n}(j.Component);b(xt,"propTypes",{children:M().node}),b(xt,"contextType",Le);var St=function(e){E(n,e);var t=C(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e=this.props.children,t=this.context;return L().createElement("span",{className:"".concat(t,"--tile-content__below-the-fold")},e)}}]),n}(j.Component);b(St,"propTypes",{children:M().node}),b(St,"contextType",Le);var _t=p("enable-v11-release")?it:yt,kt=(p("enable-v11-release"),p("enable-v11-release"),p("enable-v11-release"),p("enable-v11-release"),p("enable-v11-release"),["aria-label","children","className","noTrailingSlash"]),Ot=L().forwardRef((function(e,t){var n,r=e["aria-label"],o=e.children,i=e.className,a=e.noTrailingSlash,s=_(e,kt),l=Ie(),u=R()((b(n={},"".concat(l,"--breadcrumb"),!0),b(n,"".concat(l,"--breadcrumb--no-trailing-slash"),a),n));return L().createElement("nav",w({className:i,"aria-label":r||"Breadcrumb",ref:t},s),L().createElement("ol",{className:u},o))}));Ot.displayName="Breadcrumb",Ot.propTypes={"aria-label":M().string,children:M().node,className:M().string,noTrailingSlash:M().bool};var Ct,Pt,Nt,Tt=Ot,jt=["children","size"],Lt=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,jt);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),Ct||(Ct=L().createElement("circle",{cx:"8",cy:"16",r:"2"})),Pt||(Pt=L().createElement("circle",{cx:"16",cy:"16",r:"2"})),Nt||(Nt=L().createElement("circle",{cx:"24",cy:"16",r:"2"})),n)})),It=["aria-current","children","className","href","isCurrentPage"],Mt=L().forwardRef((function(e,t){var n,r=e["aria-current"],o=e.children,i=e.className,a=e.href,s=e.isCurrentPage,l=_(e,It),u=Ie(),c=R()((b(n={},"".concat(u,"--breadcrumb-item"),!0),b(n,"".concat(u,"--breadcrumb-item--current"),s&&"page"!==r),b(n,i,!!i),n));if(o.type&&void 0!==o.type.displayName&&o.type.displayName.includes("OverflowMenu")){var f=L().createElement(Lt,{className:"".concat(u,"--overflow-menu__icon")});return L().createElement("li",w({className:c},l),L().cloneElement(o,{menuOptionsClass:"".concat(u,"--breadcrumb-menu-options"),menuOffset:{top:10,left:59},renderIcon:function(){return f}}))}return"string"==typeof o?L().createElement("li",w({className:c,ref:t},l),a?L().createElement(ze,{href:a,"aria-current":r},o):L().createElement("span",{className:"".concat(u,"--link")},o)):L().createElement("li",w({className:c,ref:t},l),L().cloneElement(o,{"aria-current":r,className:R()("".concat(u,"--link"),o.props.className)}))}));Mt.displayName="BreadcrumbItem",Mt.propTypes={"aria-current":M().oneOfType([M().string,M().bool]),children:M().node,className:M().string,href:M().string,isCurrentPage:M().bool};var Dt,Rt,At,$t,Ft,Ut,Bt,zt,Zt,Ht,Vt,Kt,Wt,qt,Yt,Gt=Mt,Qt=["children","size"],Jt=["children","size"],Xt=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,Qt);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),Dt||(Dt=L().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),Rt||(Rt=L().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),At||(At=L().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),n)})),en=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,Jt);return 16===o||"16"===o||"16px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},i),$t||($t=L().createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),Ft||(Ft=L().createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n):20===o||"20"===o||"20px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},i),Ut||(Ut=L().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),Bt||(Bt=L().createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),n):24===o||"24"===o||"24px"===o?L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},i),zt||(zt=L().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),Zt||(Zt=L().createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),n):L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),Ht||(Ht=L().createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),Vt||(Vt=L().createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),n)})),tn=["children","size"],nn=["children","size"],rn=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,tn);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),Kt||(Kt=L().createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),Wt||(Wt=L().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),n)})),on=L().forwardRef((function(e,t){var n=e.children,r=e.size,o=void 0===r?16:r,i=W(e,nn);return L().createElement(G,V({width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),qt||(qt=L().createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),Yt||(Yt=L().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),n)}));function an(e){return(0,j.useCallback)((function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}var sn=["align","as","autoAlign","caret","className","children","dropShadow","highContrast","open"],ln=["className","children"],un=L().createContext({floating:{current:null}}),cn=L().forwardRef((function(e,t){var n,r=e.align,o=void 0===r?"bottom":r,i=e.as,a=void 0===i?"span":i,s=e.autoAlign,l=void 0!==s&&s,u=e.caret,c=void 0===u||u,f=e.className,d=e.children,p=e.dropShadow,h=void 0===p||p,m=e.highContrast,v=void 0!==m&&m,g=e.open,y=_(e,sn),E=Ie(),x=(0,j.useRef)(),S=(0,j.useRef)(),k=(0,j.useMemo)((function(){return{floating:x}}),[]),O=an([t,S]),C=P((0,j.useState)(!1),2),N=C[0],T=C[1],I=P((0,j.useState)(o),2),M=I[0],D=I[1],A=R()((b(n={},"".concat(E,"--popover-container"),!0),b(n,"".concat(E,"--popover--caret"),c),b(n,"".concat(E,"--popover--drop-shadow"),h),b(n,"".concat(E,"--popover--high-contrast"),v),b(n,"".concat(E,"--popover--open"),g),b(n,"".concat(E,"--popover--").concat(M),N),b(n,"".concat(E,"--popover--").concat(o),!N),b(n,f,!!f),n));return He((function(){if(l){if(x.current&&!0!==N){var e=x.current.getBoundingClientRect(),t=e.x<-16,n=e.y<-16,r=e.x+(e.width-16)>document.documentElement.clientWidth,i=e.y+(e.height-16)>document.documentElement.clientHeight;if(t||n||r||i){for(var a=["top","top-left","right-bottom","right","right-top","bottom-left","bottom","bottom-right","left-top","left","left-bottom","top-right"],s=[o],u=a[(a.indexOf(o)+1)%a.length];u&&!s.includes(u);)s.push(u),u=a[(a.indexOf(u)+1)%a.length];for(var c=null,f=0;f<s.length;f++){var d=s[f];if(p(d)){c=d;break}}c&&(T(!0),D(c))}else T(!1)}}else T(!1);function p(e){S.current.classList.add("".concat(E,"--popover--").concat(e));var t=x.current.getBoundingClientRect();return t.x<-16||t.y<-16||t.x+(t.width-16)>document.documentElement.clientWidth||t.y+(t.height-16)>document.documentElement.clientHeight?(S.current.classList.remove("".concat(E,"--popover--").concat(e)),!1):(S.current.classList.remove("".concat(E,"--popover--").concat(e)),!0)}}),[N,o,l,E]),L().createElement(un.Provider,{value:k},L().createElement(a,w({},y,{className:A,ref:O}),d))}));cn.propTypes={align:M().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:M().oneOfType([M().string,M().elementType]),autoAlign:M().bool,caret:M().bool,children:M().node,className:M().string,dropShadow:M().bool,highContrast:M().bool,open:M().bool.isRequired};var fn=L().forwardRef((function(e,t){var n=e.className,r=e.children,o=_(e,ln),i=Ie(),a=an([L().useContext(un).floating,t]);return L().createElement("span",w({},o,{className:"".concat(i,"--popover")}),L().createElement("span",{className:R()("".concat(i,"--popover-content"),n),ref:a},r),L().createElement("span",{className:"".concat(i,"--popover-caret")}))}));fn.propTypes={children:M().node,className:M().string};var dn,pn=!("undefined"==typeof window||!window.document||!window.document.createElement),hn=(dn=0,function(){return++dn}),mn=pn?j.useLayoutEffect:j.useEffect,vn=!1;function gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=(0,j.useState)((function(){return vn?"".concat(e,"-").concat(hn()):null})),n=P(t,2),r=n[0],o=n[1];return mn((function(){null===r&&o("".concat(e,"-").concat(hn()))}),[hn]),(0,j.useEffect)((function(){!1===vn&&(vn=!0)}),[]),r}var yn=["align","className","children","label","description","enterDelayMs","leaveDelayMs","defaultOpen"];function bn(e){var t,n,r,o,i,a,s=e.align,l=void 0===s?"top":s,u=e.className,c=e.children,f=e.label,d=e.description,p=e.enterDelayMs,h=void 0===p?100:p,m=e.leaveDelayMs,v=void 0===m?300:m,g=e.defaultOpen,y=void 0!==g&&g,b=_(e,yn),E=(0,j.useRef)(null),x=(0,j.useRef)(null),S=(t=y,r=(n=P((0,j.useState)(t),2))[0],o=n[1],i=(0,j.useRef)(null),a=(0,j.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;clearTimeout(i.current),i.current=null,0!==t?i.current=setTimeout((function(){o(e),i.current=null}),t):o(e)}),[]),(0,j.useEffect)((function(){return function(){clearTimeout(i.current)}}),[]),[r,a]),k=P(S,2),O=k[0],C=k[1],N=gn("tooltip"),T=Ie(),I=L().Children.only(c),M={onFocus:function(){return C(!0)},onBlur:function(){return C(!1)},onMouseEnter:function(){C(!0,h)}};return f?M["aria-labelledby"]=N:M["aria-describedby"]=N,(0,j.useEffect)((function(){Ve(E.current)||C(!1)})),L().createElement(cn,w({},b,{align:l,className:R()("".concat(T,"--tooltip"),u),dropShadow:!1,highContrast:!0,onKeyDown:function(e){O&&We(e,Xe)&&(e.stopPropagation(),C(!1))},onMouseLeave:function(){C(!1,v)},open:O,ref:E}),L().cloneElement(I,M),L().createElement(fn,{"aria-hidden":"true",className:"".concat(T,"--tooltip-content"),id:N,ref:x,role:"tooltip"},f||d))}bn.propTypes={align:M().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:M().node,className:M().string,defaultOpen:M().bool,description:M().node,enterDelayMs:M().number,label:M().node,leaveDelayMs:M().number};var wn=["align","children","className","defaultOpen","enterDelayMs","kind","label","leaveDelayMs","size"],En=L().forwardRef((function(e,t){var n=e.align,r=e.children,o=e.className,i=e.defaultOpen,a=void 0!==i&&i,s=e.enterDelayMs,l=e.kind,u=e.label,c=e.leaveDelayMs,f=e.size,d=void 0===f?"md":f,p=_(e,wn),h=Ie();return L().createElement(bn,{align:n,className:"".concat(h,"--icon-tooltip"),defaultOpen:a,enterDelayMs:s,label:u,leaveDelayMs:c},L().createElement(kn,w({},p,{kind:l,ref:t,size:d,className:R()("".concat(h,"--btn--icon-only"),o)}),r))}));En.propTypes={align:M().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:M().node,className:M().string,defaultOpen:M().bool,enterDelayMs:M().number,kind:M().oneOf(["primary","secondary","ghost","tertiary"]),label:M().node.isRequired,leaveDelayMs:M().number,size:M().oneOf(["sm","md","lg"])};var xn=["as","children","className","dangerDescription","disabled","hasIconOnly","href","iconDescription","isExpressive","isSelected","kind","onBlur","onClick","onFocus","onMouseEnter","onMouseLeave","renderIcon","size","tabIndex","tooltipAlignment","tooltipPosition","type"],Sn=L().forwardRef((function(e,t){var n,r,o=e.as,i=e.children,a=e.className,s=e.dangerDescription,l=void 0===s?"danger":s,u=e.disabled,c=void 0!==u&&u,f=e.hasIconOnly,d=void 0!==f&&f,p=e.href,h=e.iconDescription,v=e.isExpressive,g=void 0!==v&&v,y=e.isSelected,E=e.kind,x=void 0===E?"primary":E,S=e.onBlur,k=e.onClick,O=e.onFocus,C=e.onMouseEnter,P=e.onMouseLeave,N=e.renderIcon,T=e.size,I=void 0===T?"lg":T,M=e.tabIndex,D=void 0===M?0:M,A=e.tooltipAlignment,$=void 0===A?"center":A,F=e.tooltipPosition,U=void 0===F?"top":F,B=e.type,z=void 0===B?"button":B,Z=_(e,xn),H=(0,j.useRef)(null),V=Ie(),K={tabIndex:D,className:R()(a,(b(n={},"".concat(V,"--btn"),!0),b(n,"".concat(V,"--btn--sm"),"sm"===I&&!g),b(n,"".concat(V,"--btn--md"),"md"===I&&!g),b(n,"".concat(V,"--btn--xl"),"xl"===I),b(n,"".concat(V,"--btn--2xl"),"2xl"===I),b(n,"".concat(V,"--btn--").concat(x),x),b(n,"".concat(V,"--btn--disabled"),c),b(n,"".concat(V,"--btn--expressive"),g),b(n,"".concat(V,"--btn--icon-only"),d),b(n,"".concat(V,"--btn--selected"),d&&y&&"ghost"===x),n)),ref:t},W=N?L().createElement(N,{"aria-label":h,className:"".concat(V,"--btn__icon"),"aria-hidden":"true"}):null,q=N?L().createElement(N,null):null,Y=["danger","danger--tertiary","danger--ghost"],G="button",Q=gn("danger-description"),J={disabled:c,type:z,"aria-describedby":Y.includes(x)?Q:null,"aria-pressed":d&&"ghost"===x?y:null},X={href:p};r=Y.includes(x)?L().createElement("span",{id:Q,className:"".concat(V,"--visually-hidden")},l):null,o?(G=o,J=m(m({},J),X)):p&&!c&&(G="a",J=X);var ee,te=L().createElement(G,m(m(m({onMouseEnter:C,onMouseLeave:P,onFocus:O,onBlur:S,onClick:k},Z),K),J),r,i,W);return d?("top"!==U&&"bottom"!==U||("center"===$&&(ee=U),"end"===$&&(ee="".concat(U,"-right")),"start"===$&&(ee="".concat(U,"-left"))),"right"!==U&&"left"!==U||(ee=U),L().createElement(En,w({align:ee,label:h,kind:x,size:I,onMouseEnter:C,onMouseLeave:P,onFocus:O,onBlur:S,onClick:Ze([k,function(e){e.target!==H.current||e.preventDefault()}])},Z,K,J),q||i)):te}));Sn.displayName="Button",Sn.propTypes={as:M().oneOfType([M().func,M().string,M().elementType]),children:M().node,className:M().string,dangerDescription:M().string,disabled:M().bool,hasIconOnly:M().bool,href:M().string,iconDescription:function(e){if(e.renderIcon&&!e.children&&!e.iconDescription)return new Error("renderIcon property specified without also providing an iconDescription property.")},isExpressive:M().bool,isSelected:M().bool,kind:M().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]),onBlur:M().func,onClick:M().func,onFocus:M().func,onMouseEnter:M().func,onMouseLeave:M().func,renderIcon:M().oneOfType([M().func,M().object]),role:M().string,size:M().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:M().number,tooltipAlignment:M().oneOf(["start","center","end"]),tooltipPosition:M().oneOf(["top","right","bottom","left"]),type:M().oneOf(["button","reset","submit"])};var _n,kn=Sn,On=["children","className","onClick","inline"],Cn=["ariaLabel","className","type","renderIcon","name","notificationType"],Pn=["role","onClose","onCloseButtonClick","statusIconDescription","className","children","kind","lowContrast","hideCloseButton","timeout","title","caption","subtitle"],Nn=["children","title","subtitle","role","onClose","onCloseButtonClick","statusIconDescription","className","kind","lowContrast","hideCloseButton"],Tn=["actionButtonLabel","ariaLabel","children","role","onActionButtonClick","onClose","onCloseButtonClick","statusIconDescription","className","inline","kind","lowContrast","hideCloseButton","hasFocus","closeOnEscape","title","subtitle"];function jn(e){var t=e.children,n=e.className,r=e.onClick,o=e.inline,i=_(e,On),a=Ie(),s=R()(n,b({},"".concat(a,"--actionable-notification__action-button"),!0));return L().createElement(kn,w({className:s,kind:o?"ghost":"tertiary",onClick:r,size:"sm"},i),t)}function Ln(e){var t=e.ariaLabel,n=e.className,r=e.type,o=e.renderIcon,i=e.name,a=e.notificationType,s=_(e,Cn),l=Ie(),u=R()(n,b({},"".concat(l,"--").concat(a,"-notification__close-button"),a)),c=R()(b({},"".concat(l,"--").concat(a,"-notification__close-icon"),a));return L().createElement("button",w({},s,{type:r,"aria-label":t,title:t,className:u}),o&&L().createElement(o,{className:c,name:i}))}jn.propTypes={children:M().node,className:M().string,inline:M().bool,onClick:M().func},Ln.propTypes={ariaLabel:M().string,className:M().string,name:M().string,notificationType:M().oneOf(["toast","inline","actionable"]),renderIcon:M().oneOfType([M().func,M().object]),type:M().string},Ln.defaultProps={ariaLabel:"close notification",notificationType:"toast",type:"button",renderIcon:je};var In=(b(_n={error:Ee,success:Ne,warning:en},"warning-alt",Xt),b(_n,"info",rn),b(_n,"info-square",on),_n);function Mn(e){var t=e.iconDescription,n=e.kind,r=e.notificationType,o=Ie(),i=In[n];return i?L().createElement(i,{className:"".concat(o,"--").concat(r,"-notification__icon")},L().createElement("title",null,t)):null}function Dn(e){var t,n=e.role,r=e.onClose,o=e.onCloseButtonClick,i=e.statusIconDescription,a=e.className,s=e.children,l=e.kind,u=e.lowContrast,c=e.hideCloseButton,f=e.timeout,d=e.title,p=e.caption,h=e.subtitle,m=_(e,Pn),v=P((0,j.useState)(!0),2),g=v[0],y=v[1],E=Ie(),x=R()(a,(b(t={},"".concat(E,"--toast-notification"),!0),b(t,"".concat(E,"--toast-notification--low-contrast"),u),b(t,"".concat(E,"--toast-notification--").concat(l),l),t)),S=(0,j.useRef)(null),k=(0,j.useRef)(null),O=(0,j.useRef)(r);return(0,j.useEffect)((function(){O.current=r})),(0,j.useEffect)((function(){if(f){var e=window.setTimeout((function(e){y(!1),O.current&&O.current(e)}),f);return function(){window.clearTimeout(e)}}}),[f]),g?L().createElement("div",w({ref:k},m,{role:n,className:x}),L().createElement(Mn,{notificationType:"toast",kind:l,iconDescription:i||"".concat(l," icon")}),L().createElement("div",{ref:S,className:"".concat(E,"--toast-notification__details")},d&&L().createElement("div",{className:"".concat(E,"--toast-notification__title")},d),h&&L().createElement("div",{className:"".concat(E,"--toast-notification__subtitle")},h),p&&L().createElement("div",{className:"".concat(E,"--toast-notification__caption")},p),s),!c&&L().createElement(Ln,{notificationType:"toast",onClick:function(e){o(e),r&&!1===r(e)||y(!1)},"aria-hidden":"true",tabIndex:"-1"})):null}function Rn(e){var t,n=e.children,r=e.title,o=e.subtitle,i=e.role,a=e.onClose,s=e.onCloseButtonClick,l=e.statusIconDescription,u=e.className,c=e.kind,f=e.lowContrast,d=e.hideCloseButton,p=_(e,Nn),h=P((0,j.useState)(!0),2),m=h[0],v=h[1],g=Ie(),y=R()(u,(b(t={},"".concat(g,"--inline-notification"),!0),b(t,"".concat(g,"--inline-notification--low-contrast"),f),b(t,"".concat(g,"--inline-notification--").concat(c),c),b(t,"".concat(g,"--inline-notification--hide-close-button"),d),t)),E=(0,j.useRef)(null),x=(0,j.useRef)(null);return m?L().createElement("div",w({ref:x},p,{role:i,className:y}),L().createElement("div",{className:"".concat(g,"--inline-notification__details")},L().createElement(Mn,{notificationType:"inline",kind:c,iconDescription:l||"".concat(c," icon")}),L().createElement("div",{ref:E,className:"".concat(g,"--inline-notification__text-wrapper")},r&&L().createElement("div",{className:"".concat(g,"--inline-notification__title")},r),o&&L().createElement("div",{className:"".concat(g,"--inline-notification__subtitle")},o),n)),!d&&L().createElement(Ln,{notificationType:"inline",onClick:function(e){s(e),a&&!1===a(e)||v(!1)},"aria-hidden":"true",tabIndex:"-1"})):null}function An(e){var t,n=e.actionButtonLabel,r=e.ariaLabel,o=e.children,i=e.role,a=e.onActionButtonClick,s=e.onClose,l=e.onCloseButtonClick,u=e.statusIconDescription,c=e.className,f=e.inline,d=e.kind,p=e.lowContrast,h=e.hideCloseButton,m=e.hasFocus,v=e.closeOnEscape,g=e.title,y=e.subtitle,E=_(e,Tn),x=P((0,j.useState)(!0),2),S=x[0],k=x[1],O=Ie(),C=gn("actionable-notification"),N=R()(c,(b(t={},"".concat(O,"--actionable-notification"),!0),b(t,"".concat(O,"--actionable-notification--toast"),!f),b(t,"".concat(O,"--actionable-notification--low-contrast"),p),b(t,"".concat(O,"--actionable-notification--").concat(d),d),b(t,"".concat(O,"--actionable-notification--hide-close-button"),h),t)),T=(0,j.useRef)(null);function I(e){l(e),s&&!1===s(e)||k(!1)}return He((function(){T.current&&m&&T.current.focus()})),function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(r){var o=e.current&&document.activeElement===e.current||e.current.contains(document.activeElement);Ke(r,[Xe])&&n&&o&&t(r)};He((function(){return document.addEventListener("keydown",r,!1),function(){return document.removeEventListener("keydown",r,!1)}}))}(T,I,v),S?L().createElement("div",w({},E,{ref:T,role:i,className:N,"aria-labelledby":g?C:void 0}),L().createElement("div",{className:"".concat(O,"--actionable-notification__details")},L().createElement(Mn,{notificationType:f?"inline":"toast",kind:d,iconDescription:u||"".concat(d," icon")}),L().createElement("div",{className:"".concat(O,"--actionable-notification__text-wrapper")},L().createElement("div",{className:"".concat(O,"--actionable-notification__content")},g&&L().createElement("div",{className:"".concat(O,"--actionable-notification__title"),id:C},g),y&&L().createElement("div",{className:"".concat(O,"--actionable-notification__subtitle")},y),o))),L().createElement(jn,{onClick:a,inline:f},n),!h&&L().createElement(Ln,{"aria-label":r,notificationType:"actionable",onClick:I})):null}Mn.propTypes={iconDescription:M().string.isRequired,kind:M().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:M().oneOf(["inline","toast"]).isRequired},Dn.propTypes={ariaLabel:M().string,caption:M().string,children:M().node,className:M().string,hideCloseButton:M().bool,kind:M().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:M().bool,onClose:M().func,onCloseButtonClick:M().func,role:M().oneOf(["alert","log","status"]),statusIconDescription:M().string,subtitle:M().string,timeout:M().number,title:M().string},Dn.defaultProps={kind:"error",role:"status",onCloseButtonClick:function(){},hideCloseButton:!1,timeout:0},Rn.propTypes={children:M().node,className:M().string,hideCloseButton:M().bool,kind:M().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:M().bool,onClose:M().func,onCloseButtonClick:M().func,role:M().oneOf(["alert","log","status"]),statusIconDescription:M().string,subtitle:M().string,title:M().string},Rn.defaultProps={kind:"error",role:"status",onCloseButtonClick:function(){},hideCloseButton:!1},An.propTypes={actionButtonLabel:M().string.isRequired,ariaLabel:M().string,caption:M().string,children:M().node,className:M().string,closeOnEscape:M().bool,hasFocus:M().bool,hideCloseButton:M().bool,inline:M().bool,kind:M().oneOf(["error","info","info-square","success","warning","warning-alt"]).isRequired,lowContrast:M().bool,onActionButtonClick:M().func,onClose:M().func,onCloseButtonClick:M().func,role:M().string,statusIconDescription:M().string,subtitle:M().string,title:M().string},An.defaultProps={kind:"error",role:"alertdialog",onCloseButtonClick:function(){},hideCloseButton:!1,hasFocus:!0,closeOnEscape:!0,inline:!1};var $n,Fn=($n={"aria-label":M().string,"aria-labelledby":M().string},Object.keys($n).reduce((function(e,t){return m(m({},e),{},b({},t,(n=$n[t],function(e,t,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return n.apply(void 0,[e,t,r].concat(i))})));var n}),{})),Un=["SideNavFooter","SideNavHeader","SideNavItems","SideNavMenu"],Bn=["expanded","defaultExpanded","isChildOfHeader","aria-label","aria-labelledby","children","onToggle","className","isFixedNav","isRail","isPersistent","addFocusListeners","addMouseListeners","onOverlayClick"],zn=L().forwardRef((function(e,t){var n,r,o=e.expanded,i=e.defaultExpanded,a=e.isChildOfHeader,s=e["aria-label"],l=e["aria-labelledby"],u=e.children,c=e.onToggle,f=e.className,d=e.isFixedNav,p=e.isRail,h=e.isPersistent,v=e.addFocusListeners,g=e.addMouseListeners,y=e.onOverlayClick,E=_(e,Bn),x=Ie(),S=(0,j.useRef)(void 0!==o).current,k=P((0,j.useState)(i),2),O=k[0],C=k[1],N=P((0,j.useState)(i),2),T=N[0],I=N[1],M=S?o:O,D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!M;S||C(t),c&&c(e,t),(S||p)&&I(t)},A={"aria-label":s,"aria-labelledby":l},$=R()((b(n={},"".concat(x,"--side-nav"),!0),b(n,"".concat(x,"--side-nav--expanded"),M||T),b(n,"".concat(x,"--side-nav--collapsed"),!M&&d),b(n,"".concat(x,"--side-nav--rail"),p),b(n,f,!!f),b(n,"".concat(x,"--side-nav--ux"),a),b(n,"".concat(x,"--side-nav--hidden"),!h),n)),F=R()((b(r={},"".concat(x,"--side-nav__overlay"),!0),b(r,"".concat(x,"--side-nav__overlay-active"),M||T),r)),U=u;p&&(U=L().Children.map(u,(function(e){var t,n,r,o=S&&T||M;return L().cloneElement(e,m({},Un.includes(null!==(t=null===(n=e.type)||void 0===n?void 0:n.displayName)&&void 0!==t?t:null===(r=e.type)||void 0===r?void 0:r.name)?{isSideNavExpanded:o}:{}))})));var B={};return v&&(B.onFocus=function(e){e.currentTarget.contains(e.relatedTarget)||D(e,!0)},B.onBlur=function(e){e.currentTarget.contains(e.relatedTarget)||D(e,!1)}),g&&p&&(B.onMouseEnter=function(){return D(!0,!0)},B.onMouseLeave=function(){return D(!1,!1)}),L().createElement(L().Fragment,null,d?null:L().createElement("div",{className:F,onClick:y}),L().createElement("nav",w({ref:t,className:"".concat(x,"--side-nav__navigation ").concat($)},A,B,E),U))}));zn.displayName="SideNav",zn.defaultProps={defaultExpanded:!1,isChildOfHeader:!0,isFixedNav:!1,isPersistent:!0,addFocusListeners:!0,addMouseListeners:!0},zn.propTypes=m(m({},Fn),{},{addFocusListeners:M().bool,addMouseListeners:M().bool,className:M().string,defaultExpanded:M().bool,expanded:M().bool,isChildOfHeader:M().bool,isFixedNav:M().bool,isPersistent:M().bool,isRail:M().bool,onOverlayClick:M().func,onToggle:M().func});var Zn=zn},6377:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},9889:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",l="month",u="quarter",c="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),i=n-o<0,a=t.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:s,d:a,D:f,h:i,m:o,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=m;var w=function(e){return e instanceof _},E=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(y=o),o||!r&&y},x=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},S=g;S.l=E,S.i=w,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function m(e){this.$L=E(e.locale,null,!0),this.parse(e)}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return x(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<x(e)},v.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,u=!!S.u(t)||t,d=S.p(e),p=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(a)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case c:return u?p(1,0):p(31,11);case l:return u?p(1,v):p(0,v+1);case s:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(u?g-w:g+(6-w),v);case a:case f:return h(y+"Hours",0);case i:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case r:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var s,u=S.p(e),d="set"+(this.$u?"UTC":""),p=(s={},s[a]=d+"Date",s[f]=d+"Date",s[l]=d+"Month",s[c]=d+"FullYear",s[i]=d+"Hours",s[o]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[u],h=u===a?this.$D+(t-this.$W):t;if(u===l||u===c){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[S.p(e)]()},v.add=function(n,u){var f,d=this;n=Number(n);var p=S.p(u),h=function(e){var t=x(d);return S.w(t.date(t.date()+Math.round(e*n)),d)};if(p===l)return this.set(l,this.$M+n);if(p===c)return this.set(c,this.$y+n);if(p===a)return h(1);if(p===s)return h(7);var m=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,v=this.$d.getTime()+n*m;return S.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return S.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:c(n.monthsShort,s,u,3),MMMM:c(u,s),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,l,2),ddd:c(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(i),HH:S.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:S.s(a,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||m[e]||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,f,d){var p,h=S.p(f),m=x(n),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,y=S.m(this,m);return y=(p={},p[c]=y/12,p[l]=y,p[u]=y/3,p[s]=(g-v)/6048e5,p[a]=(g-v)/864e5,p[i]=g/t,p[o]=g/e,p[r]=g/1e3,p)[h]||g,d?y:S.a(y)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),k=_.prototype;return x.prototype=k,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",l],["$y",c],["$D",f]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||(e(t,_,x),e.$i=!0),x},x.locale=E,x.isDayjs=w,x.unix=function(e){return x(1e3*e)},x.en=b[y],x.Ls=b,x.p={},x}()},1508:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}}()},7064:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r)))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),o=i(e).local();return d.call(r,o,t,n)}}}()},9297:(e,t,n)=>{"use strict";function r(e){return(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})(e)}t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(3144)),a=(o=n(3230))&&o.__esModule?o:{default:o};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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)}}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="i18nFormat",this.mem={},this.init(null,t)}var t,n;return t=e,n=[{key:"init",value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=i.defaults(r,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,n,r){return n}}),this.formats=this.options.formats,e){var o=this.options,s=o.bindI18n,l=o.bindI18nStore,u=o.memoize;e.IntlMessageFormat=a.default,e.ICU=this,u&&(s&&e.on(s,(function(){return n.clearCache()})),l&&e.store.on(l,(function(){return n.clearCache()})))}this.options.localeData&&("[object Array]"===Object.prototype.toString.apply(this.options.localeData)?this.options.localeData.forEach((function(e){return n.addLocaleData(e)})):this.addLocaleData(this.options.localeData))}},{key:"addLocaleData",value:function(e){("[object Array]"===Object.prototype.toString.apply(e)?e:[e]).forEach((function(e){e&&e.locale&&a.default.__addLocaleData(e)}))}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.formats,{},e):e}},{key:"parse",value:function(e,t,n,r,o,s){var l,u=s&&s.resolved&&s.resolved.res,c=this.options.memoize&&"".concat(n,".").concat(r,".").concat(o.replace(/\./g,"###"));this.options.memoize&&(l=i.getPath(this.mem,c));try{return l||(l=new a.default(e,n,this.formats),this.options.memoize&&(this.options.memoizeFallback||!s||u)&&i.setPath(this.mem,c,l)),l.format(t)}catch(n){return this.options.parseErrorHandler(n,o,e,t)}}},{key:"addLookupKeys",value:function(e,t,n,r,o){return e}},{key:"clearCache",value:function(){this.mem={}}}],n&&c(t.prototype,n),e}();f.type="i18nFormat";var d=f;t.default=d},3144:(e,t)=>{"use strict";function n(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}Object.defineProperty(t,"__esModule",{value:!0}),t.setPath=function(e,t,r){var o=n(e,t,Object);o.obj[o.k]=r},t.pushPath=function(e,t,r,o){var i=n(e,t,Object),a=i.obj,s=i.k;a[s]=a[s]||[],o&&(a[s]=a[s].concat(r)),o||a[s].push(r)},t.getPath=function(e,t){var r=n(e,t),o=r.obj,i=r.k;return o?o[i]:void 0},t.defaults=function(e){return o.call(i.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},t.extend=function(e){return o.call(i.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e};var r=[],o=r.forEach,i=r.slice},2692:(e,t,n)=>{e.exports=n(9297).default},26:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Z});var r=n(1248),o=n(9474);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){(0,o.Z)(e,t,n[t])}))}return e}var a=n(6823),s=n(1917);function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(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&&f(e,t)}var p={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},h=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.init(t,n)}return(0,s.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||p,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),m=function(){function e(){(0,a.Z)(this,e),this.observers={}}return(0,s.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value: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];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function v(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function g(e){return null==e?"":""+e}function y(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function b(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function w(e,t,n){var r=b(e,t,Object);r.obj[r.k]=n}function E(e,t){var n=b(e,t),r=n.obj,o=n.k;if(r)return r[o]}function x(e,t,n){var r=E(e,n);return void 0!==r?r:E(t,n)}function S(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):S(e[r],t[r],n):e[r]=t[r]);return e}function _(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function O(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return k[e]})):e}var C="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,P=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,a.Z)(this,t),n=u(this,c(t).call(this)),C&&m.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return d(t,e),(0,s.Z)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),E(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),w(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var l=E(this.data,s)||{};r?S(l,n,o):l=i({},l,n),w(this.data,s,l),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(m),N={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},T={},j=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.Z)(this,t),n=u(this,c(t).call(this)),C&&m.call(l(n)),y(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,l(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=h.create("translator"),n}return d(t,e),(0,s.Z)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,o){var a=this;if("object"!==(0,r.Z)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],n),u=l.key,c=l.namespaces,f=c[c.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=n.nsSeparator||this.options.nsSeparator;return f+h+u}return u}var m=this.resolve(e,n),v=m&&m.res,g=m&&m.usedKey||u,y=m&&m.exactUsedKey||u,b=Object.prototype.toString.apply(v),w=["[object Number]","[object Function]","[object RegExp]"],E=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(x&&v&&S&&w.indexOf(b)<0&&("string"!=typeof E||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(s){var _="[object Array]"===b,k=_?[]:{},O=_?y:g;for(var C in v)if(Object.prototype.hasOwnProperty.call(v,C)){var P="".concat(O).concat(s).concat(C);k[C]=this.translate(P,i({},n,{joinArrays:!1,ns:c})),k[C]===P&&(k[C]=v[C])}v=k}}else if(x&&"string"==typeof E&&"[object Array]"===b)(v=v.join(E))&&(v=this.extendTranslation(v,e,n,o));else{var N=!1,T=!1,j=void 0!==n.count&&"string"!=typeof n.count,L=t.hasDefaultValue(n),I=j?this.pluralResolver.getSuffix(d,n.count):"",M=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(v)&&L&&(N=!0,v=M),this.isValidLookup(v)||(T=!0,v=u);var D=L&&M!==v&&this.options.updateMissing;if(T||N||D){if(this.logger.log(D?"updateKey":"missingKey",d,f,u,D?M:v),s){var R=this.resolve(u,i({},n,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var A=[],$=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&$&&$[0])for(var F=0;F<$.length;F++)A.push($[F]);else"all"===this.options.saveMissingTo?A=this.languageUtils.toResolveHierarchy(n.lng||this.language):A.push(n.lng||this.language);var U=function(e,t,r){a.options.missingKeyHandler?a.options.missingKeyHandler(e,f,t,D?r:v,D,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,f,t,D?r:v,D,n),a.emit("missingKey",e,f,t,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?A.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){U([e],u+t,n["defaultValue".concat(t)]||M)}))})):U(A,u,M))}v=this.extendTranslation(v,e,n,m,o),T&&v===u&&this.options.appendNamespaceToMissingKey&&(v="".concat(f,":").concat(u)),T&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(v))}return v}},{key:"extendTranslation",value:function(e,t,n,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var s,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var u=e.match(this.interpolator.nestingRegexp);s=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=i({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),l){var f=e.match(this.interpolator.nestingRegexp);s<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=N.handle(p,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!T["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(T["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,l,c=u,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,u,n,e,s):(f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(c+=i));l=p.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(m);function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}var I=function(){function e(t){(0,a.Z)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h.create("languageUtils")}return(0,s.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=L(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),M=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],D={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function R(){var e={};return M.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:D[t.fc]}}))})),e}var A=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.languageUtils=t,this.options=n,this.logger=h.create("pluralResolver"),this.rules=R()}return(0,s.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),$=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)(this,e),this.logger=h.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,s.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:O,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?_(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?_(t.nestingPrefix):t.nestingPrefixEscaped||_("$t("),this.nestingSuffix=t.nestingSuffix?_(t.nestingSuffix):t.nestingSuffixEscaped||_(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=x(t,l,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(x(t,l,a),u,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=g(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},a);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,s)).replace(/'/g,'"');try{s=JSON.parse(o),t&&(s=i({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),u=f,c=!0}if((r=t(l.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=g(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce((function(e,t){return o.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),F=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,a.Z)(this,t),o=u(this,c(t).call(this)),C&&m.call(l(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=h.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return d(t,e),(0,s.Z)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,l,u,c;r=n.loaded,s=i,(u=(l=b(r,[o],Object)).obj)[c=l.k]=u[c]||[],u[c].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},a,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(m);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,r.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,r.Z)(e[2])||"object"===(0,r.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function B(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function z(){}const Z=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,a.Z)(this,t),e=u(this,c(t).call(this)),C&&m.call(l(e)),e.options=B(n),e.services={},e.logger=h,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),u(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return d(t,e),(0,s.Z)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,B(t)),this.format=this.options.interpolation.format,n||(n=z),!this.options.isClone){this.modules.logger?h.init(r(this.modules.logger),this.options):h.init(null,this.options);var o=new I(this.options);this.store=new P(this.options.resources,this.options);var a=this.services;a.logger=h,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new A(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new $(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new F(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new j(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=v(),f=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=v();return e||(e=this.languages),t||(t=this.options.ns),n||(n=z),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&N.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=v();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var a;if("object"!==(0,r.Z)(o)){for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];a=n.options.overloadTranslationOptionHandler([t,o].concat(l))}else a=i({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=v();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=v();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,o=i({},this.options,n,{isClone:!0}),a=new t(o),s=["store","services","language"];return s.forEach((function(t){a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new j(a.services,a.options),a.translator.on("*",(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];a.emit.apply(a,[e].concat(n))})),a.init(o,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(m))},698:(e,t,n)=>{"use strict";(t=e.exports=n(5580).default).default=t},5580:(e,t)=>{"use strict";t.default=function(){function e(t,n,r,o){this.message=t,this.expected=n,this.found=r,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(e,Error),{SyntaxError:e,parse:function(t){var n,r=arguments.length>1?arguments[1]:{},o={},i={start:Te},a=Te,s=function(e){return{type:"messageFormatPattern",elements:e,location:ke()}},l=function(e){var t,n,r,o,i,a="";for(t=0,r=e.length;t<r;t+=1)for(n=0,i=(o=e[t]).length;n<i;n+=1)a+=o[n];return a},u=function(e){return{type:"messageTextElement",value:e,location:ke()}},c=/^[^ \t\n\r,.+={}#]/,f={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},d="{",p={type:"literal",value:"{",description:'"{"'},h=",",m={type:"literal",value:",",description:'","'},v="}",g={type:"literal",value:"}",description:'"}"'},y=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2],location:ke()}},b="number",w={type:"literal",value:"number",description:'"number"'},E="date",x={type:"literal",value:"date",description:'"date"'},S="time",_={type:"literal",value:"time",description:'"time"'},k=function(e,t){return{type:e+"Format",style:t&&t[2],location:ke()}},O="plural",C={type:"literal",value:"plural",description:'"plural"'},P=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options,location:ke()}},N="selectordinal",T={type:"literal",value:"selectordinal",description:'"selectordinal"'},j=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options,location:ke()}},L="select",I={type:"literal",value:"select",description:'"select"'},M=function(e){return{type:"selectFormat",options:e,location:ke()}},D="=",R={type:"literal",value:"=",description:'"="'},A=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t,location:ke()}},$="offset:",F={type:"literal",value:"offset:",description:'"offset:"'},U=function(e){return e},B=function(e,t){return{type:"pluralFormat",offset:e,options:t,location:ke()}},z={type:"other",description:"whitespace"},Z=/^[ \t\n\r]/,H={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},V={type:"other",description:"optionalWhitespace"},K=/^[0-9]/,W={type:"class",value:"[0-9]",description:"[0-9]"},q=/^[0-9a-f]/i,Y={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},G="0",Q={type:"literal",value:"0",description:'"0"'},J=/^[1-9]/,X={type:"class",value:"[1-9]",description:"[1-9]"},ee=function(e){return parseInt(e,10)},te=/^[^{}\\\0-\x1F \t\n\r]/,ne={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},re="\\\\",oe={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},ie=function(){return"\\"},ae="\\#",se={type:"literal",value:"\\#",description:'"\\\\#"'},le=function(){return"\\#"},ue="\\{",ce={type:"literal",value:"\\{",description:'"\\\\{"'},fe=function(){return"{"},de="\\}",pe={type:"literal",value:"\\}",description:'"\\\\}"'},he=function(){return"}"},me="\\u",ve={type:"literal",value:"\\u",description:'"\\\\u"'},ge=function(e){return String.fromCharCode(parseInt(e,16))},ye=function(e){return e.join("")},be=0,we=0,Ee=[{line:1,column:1,seenCR:!1}],xe=0,Se=[],_e=0;if("startRule"in r){if(!(r.startRule in i))throw new Error("Can't start parsing from rule \""+r.startRule+'".');a=i[r.startRule]}function ke(){return Ce(we,be)}function Oe(e){var n,r,o=Ee[e];if(o)return o;for(n=e-1;!Ee[n];)n--;for(o={line:(o=Ee[n]).line,column:o.column,seenCR:o.seenCR};n<e;)"\n"===(r=t.charAt(n))?(o.seenCR||o.line++,o.column=1,o.seenCR=!1):"\r"===r||"\u2028"===r||"\u2029"===r?(o.line++,o.column=1,o.seenCR=!0):(o.column++,o.seenCR=!1),n++;return Ee[e]=o,o}function Ce(e,t){var n=Oe(e),r=Oe(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Pe(e){be<xe||(be>xe&&(xe=be,Se=[]),Se.push(e))}function Ne(t,n,r,o){return null!==n&&function(e){var t=1;for(e.sort((function(e,t){return e.description<t.description?-1:e.description>t.description?1:0}));t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}(n),new e(null!==t?t:function(e,t){var n,r=new Array(e.length);for(n=0;n<e.length;n++)r[n]=e[n].description;return"Expected "+(e.length>1?r.slice(0,-1).join(", ")+" or "+r[e.length-1]:r[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,r),n,r,o)}function Te(){return je()}function je(){var e,t,n;for(e=be,t=[],n=Le();n!==o;)t.push(n),n=Le();return t!==o&&(we=e,t=s(t)),t}function Le(){var e;return(e=Me())===o&&(e=Re()),e}function Ie(){var e,n,r,i,a,s;if(e=be,n=[],r=be,(i=We())!==o&&(a=Je())!==o&&(s=We())!==o?r=i=[i,a,s]:(be=r,r=o),r!==o)for(;r!==o;)n.push(r),r=be,(i=We())!==o&&(a=Je())!==o&&(s=We())!==o?r=i=[i,a,s]:(be=r,r=o);else n=o;return n!==o&&(we=e,n=l(n)),(e=n)===o&&(e=be,e=(n=Ke())!==o?t.substring(e,be):n),e}function Me(){var e,t;return e=be,(t=Ie())!==o&&(we=e,t=u(t)),t}function De(){var e,n,r;if((e=Ge())===o){if(e=be,n=[],c.test(t.charAt(be))?(r=t.charAt(be),be++):(r=o,0===_e&&Pe(f)),r!==o)for(;r!==o;)n.push(r),c.test(t.charAt(be))?(r=t.charAt(be),be++):(r=o,0===_e&&Pe(f));else n=o;e=n!==o?t.substring(e,be):n}return e}function Re(){var e,n,r,i,a,s,l;return e=be,123===t.charCodeAt(be)?(n=d,be++):(n=o,0===_e&&Pe(p)),n!==o&&We()!==o&&(r=De())!==o&&We()!==o?(i=be,44===t.charCodeAt(be)?(a=h,be++):(a=o,0===_e&&Pe(m)),a!==o&&(s=We())!==o&&(l=Ae())!==o?i=a=[a,s,l]:(be=i,i=o),i===o&&(i=null),i!==o&&(a=We())!==o?(125===t.charCodeAt(be)?(s=v,be++):(s=o,0===_e&&Pe(g)),s!==o?(we=e,e=n=y(r,i)):(be=e,e=o)):(be=e,e=o)):(be=e,e=o),e}function Ae(){var e;return(e=$e())===o&&(e=Fe())===o&&(e=Ue())===o&&(e=Be()),e}function $e(){var e,n,r,i,a,s;return e=be,t.substr(be,6)===b?(n=b,be+=6):(n=o,0===_e&&Pe(w)),n===o&&(t.substr(be,4)===E?(n=E,be+=4):(n=o,0===_e&&Pe(x)),n===o&&(t.substr(be,4)===S?(n=S,be+=4):(n=o,0===_e&&Pe(_)))),n!==o&&We()!==o?(r=be,44===t.charCodeAt(be)?(i=h,be++):(i=o,0===_e&&Pe(m)),i!==o&&(a=We())!==o&&(s=Je())!==o?r=i=[i,a,s]:(be=r,r=o),r===o&&(r=null),r!==o?(we=e,e=n=k(n,r)):(be=e,e=o)):(be=e,e=o),e}function Fe(){var e,n,r,i;return e=be,t.substr(be,6)===O?(n=O,be+=6):(n=o,0===_e&&Pe(C)),n!==o&&We()!==o?(44===t.charCodeAt(be)?(r=h,be++):(r=o,0===_e&&Pe(m)),r!==o&&We()!==o&&(i=Ve())!==o?(we=e,e=n=P(i)):(be=e,e=o)):(be=e,e=o),e}function Ue(){var e,n,r,i;return e=be,t.substr(be,13)===N?(n=N,be+=13):(n=o,0===_e&&Pe(T)),n!==o&&We()!==o?(44===t.charCodeAt(be)?(r=h,be++):(r=o,0===_e&&Pe(m)),r!==o&&We()!==o&&(i=Ve())!==o?(we=e,e=n=j(i)):(be=e,e=o)):(be=e,e=o),e}function Be(){var e,n,r,i,a;if(e=be,t.substr(be,6)===L?(n=L,be+=6):(n=o,0===_e&&Pe(I)),n!==o)if(We()!==o)if(44===t.charCodeAt(be)?(r=h,be++):(r=o,0===_e&&Pe(m)),r!==o)if(We()!==o){if(i=[],(a=Ze())!==o)for(;a!==o;)i.push(a),a=Ze();else i=o;i!==o?(we=e,e=n=M(i)):(be=e,e=o)}else be=e,e=o;else be=e,e=o;else be=e,e=o;else be=e,e=o;return e}function ze(){var e,n,r,i;return e=be,n=be,61===t.charCodeAt(be)?(r=D,be++):(r=o,0===_e&&Pe(R)),r!==o&&(i=Ge())!==o?n=r=[r,i]:(be=n,n=o),(e=n!==o?t.substring(e,be):n)===o&&(e=Je()),e}function Ze(){var e,n,r,i,a;return e=be,We()!==o&&(n=ze())!==o&&We()!==o?(123===t.charCodeAt(be)?(r=d,be++):(r=o,0===_e&&Pe(p)),r!==o&&We()!==o&&(i=je())!==o&&We()!==o?(125===t.charCodeAt(be)?(a=v,be++):(a=o,0===_e&&Pe(g)),a!==o?(we=e,e=A(n,i)):(be=e,e=o)):(be=e,e=o)):(be=e,e=o),e}function He(){var e,n,r;return e=be,t.substr(be,7)===$?(n=$,be+=7):(n=o,0===_e&&Pe(F)),n!==o&&We()!==o&&(r=Ge())!==o?(we=e,e=n=U(r)):(be=e,e=o),e}function Ve(){var e,t,n,r;if(e=be,(t=He())===o&&(t=null),t!==o)if(We()!==o){if(n=[],(r=Ze())!==o)for(;r!==o;)n.push(r),r=Ze();else n=o;n!==o?(we=e,e=t=B(t,n)):(be=e,e=o)}else be=e,e=o;else be=e,e=o;return e}function Ke(){var e,n;if(_e++,e=[],Z.test(t.charAt(be))?(n=t.charAt(be),be++):(n=o,0===_e&&Pe(H)),n!==o)for(;n!==o;)e.push(n),Z.test(t.charAt(be))?(n=t.charAt(be),be++):(n=o,0===_e&&Pe(H));else e=o;return _e--,e===o&&(n=o,0===_e&&Pe(z)),e}function We(){var e,n,r;for(_e++,e=be,n=[],r=Ke();r!==o;)n.push(r),r=Ke();return e=n!==o?t.substring(e,be):n,_e--,e===o&&(n=o,0===_e&&Pe(V)),e}function qe(){var e;return K.test(t.charAt(be))?(e=t.charAt(be),be++):(e=o,0===_e&&Pe(W)),e}function Ye(){var e;return q.test(t.charAt(be))?(e=t.charAt(be),be++):(e=o,0===_e&&Pe(Y)),e}function Ge(){var e,n,r,i,a,s;if(e=be,48===t.charCodeAt(be)?(n=G,be++):(n=o,0===_e&&Pe(Q)),n===o){if(n=be,r=be,J.test(t.charAt(be))?(i=t.charAt(be),be++):(i=o,0===_e&&Pe(X)),i!==o){for(a=[],s=qe();s!==o;)a.push(s),s=qe();a!==o?r=i=[i,a]:(be=r,r=o)}else be=r,r=o;n=r!==o?t.substring(n,be):r}return n!==o&&(we=e,n=ee(n)),n}function Qe(){var e,n,r,i,a,s,l,u;return te.test(t.charAt(be))?(e=t.charAt(be),be++):(e=o,0===_e&&Pe(ne)),e===o&&(e=be,t.substr(be,2)===re?(n=re,be+=2):(n=o,0===_e&&Pe(oe)),n!==o&&(we=e,n=ie()),(e=n)===o&&(e=be,t.substr(be,2)===ae?(n=ae,be+=2):(n=o,0===_e&&Pe(se)),n!==o&&(we=e,n=le()),(e=n)===o&&(e=be,t.substr(be,2)===ue?(n=ue,be+=2):(n=o,0===_e&&Pe(ce)),n!==o&&(we=e,n=fe()),(e=n)===o&&(e=be,t.substr(be,2)===de?(n=de,be+=2):(n=o,0===_e&&Pe(pe)),n!==o&&(we=e,n=he()),(e=n)===o&&(e=be,t.substr(be,2)===me?(n=me,be+=2):(n=o,0===_e&&Pe(ve)),n!==o?(r=be,i=be,(a=Ye())!==o&&(s=Ye())!==o&&(l=Ye())!==o&&(u=Ye())!==o?i=a=[a,s,l,u]:(be=i,i=o),(r=i!==o?t.substring(r,be):i)!==o?(we=e,e=n=ge(r)):(be=e,e=o)):(be=e,e=o)))))),e}function Je(){var e,t,n;if(e=be,t=[],(n=Qe())!==o)for(;n!==o;)t.push(n),n=Qe();else t=o;return t!==o&&(we=e,t=ye(t)),t}if((n=a())!==o&&be===t.length)return n;throw n!==o&&be<t.length&&Pe({type:"end",description:"end of input"}),Ne(null,Se,xe<t.length?t.charAt(xe):null,xe<t.length?Ce(xe,xe+1):Ce(xe,xe))}}}()},3230:(e,t,n)=>{"use strict";var r=n(9482).Z;n(7603),(t=e.exports=r).default=t},3361:(e,t)=>{"use strict";function n(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function r(e){this.id=e}function o(e,t,n,r,o){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=o}function i(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function a(e,t){this.id=e,this.options=t}t.default=n,n.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},n.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,r,o=e.elements,i=[];for(t=0,n=o.length;t<n;t+=1)switch((r=o[t]).type){case"messageTextElement":i.push(this.compileMessageText(r));break;case"argumentElement":i.push(this.compileArgument(r));break;default:throw new Error("Message element does not have a valid type")}return i},n.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new i(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},n.prototype.compileArgument=function(e){var t=e.format;if(!t)return new r(e.id);var n,i=this.formats,s=this.locales,l=this.pluralFn;switch(t.type){case"numberFormat":return n=i.number[t.style],{id:e.id,format:new Intl.NumberFormat(s,n).format};case"dateFormat":return n=i.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,n).format};case"timeFormat":return n=i.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,n).format};case"pluralFormat":return n=this.compileOptions(e),new o(e.id,t.ordinal,t.offset,n,l);case"selectFormat":return n=this.compileOptions(e),new a(e.id,n);default:throw new Error("Message element does not have a valid format type")}},n.prototype.compileOptions=function(e){var t,n,r,o=e.format,i=o.options,a={};for(this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===o.type?e:null,t=0,n=i.length;t<n;t+=1)a[(r=i[t]).selector]=this.compileMessage(r.value);return this.currentPlural=this.pluralStack.pop(),a},r.prototype.format=function(e){return e||"number"==typeof e?"string"==typeof e?e:String(e):""},o.prototype.getOption=function(e){var t=this.options;return t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)]||t.other},i.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},a.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},4033:(e,t,n)=>{"use strict";var r=n(140),o=n(6197),i=n(3361),a=n(698);function s(e,t,n){var r="string"==typeof e?s.__parse(e):e;if(!r||"messageFormatPattern"!==r.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(s.formats,n),o.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var i=this._findPluralRuleFunction(this._locale),a=this._compilePattern(r,t,n,i),l=this;this.format=function(t){try{return l._format(a,t)}catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+e+"'"):t}}}t.default=s,o.defineProperty(s,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),o.defineProperty(s,"__localeData__",{value:o.objCreate(null)}),o.defineProperty(s,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[e.locale.toLowerCase()]=e}}),o.defineProperty(s,"__parse",{value:a.default.parse}),o.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(e,t,n,r){return new i.default(t,n,r).compile(e)},s.prototype._findPluralRuleFunction=function(e){for(var t=s.__localeData__,n=t[e.toLowerCase()];n;){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},s.prototype._format=function(e,t){var n,o,i,a,s,l,u="";for(n=0,o=e.length;n<o;n+=1)if("string"!=typeof(i=e[n])){if(a=i.id,!t||!r.hop.call(t,a))throw(l=new Error("A value must be provided for: "+a)).variableId=a,l;s=t[a],i.options?u+=this._format(i.getOption(s),t):u+=i.format(s)}else u+=i;return u},s.prototype._mergeFormats=function(e,t){var n,i,a={};for(n in e)r.hop.call(e,n)&&(a[n]=i=o.objCreate(e[n]),t&&r.hop.call(t,n)&&r.extend(i,t[n]));return a},s.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(s.defaultLocale);var t,n,r,o,i=s.__localeData__;for(t=0,n=e.length;t<n;t+=1)for(r=e[t].toLowerCase().split("-");r.length;){if(o=i[r.join("-")])return o.locale;r.pop()}var a=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+a)}},2385:(e,t)=>{"use strict";t.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"}}},6197:(e,t,n)=>{"use strict";var r=n(140),o=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),i=(!o&&Object.prototype.__defineGetter__,o?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):r.hop.call(e,t)&&!("value"in n)||(e[t]=n.value)}),a=Object.create||function(e,t){var n,o;function a(){}for(o in a.prototype=e,n=new a,t)r.hop.call(t,o)&&i(n,o,t[o]);return n};t.defineProperty=i,t.objCreate=a},9482:(e,t,n)=>{"use strict";var r=n(4033),o=n(2385);r.default.__addLocaleData(o.default),r.default.defaultLocale="en",t.Z=r.default},140:(e,t)=>{"use strict";t.extend=function(e){var t,r,o,i,a=Array.prototype.slice.call(arguments,1);for(t=0,r=a.length;t<r;t+=1)if(o=a[t])for(i in o)n.call(o,i)&&(e[i]=o[i]);return e};var n=Object.prototype.hasOwnProperty;t.hop=n},6601:(e,t,n)=>{"use strict";var r=n(6978);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,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:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2123:(e,t,n)=>{e.exports=n(6601)()},6978:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9179:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(758);function o(e){return function t(n){return 0===arguments.length||(0,r.Z)(n)?t:e.apply(this,arguments)}}},9719:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9179),o=n(758);function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return(0,o.Z)(n)?t:(0,r.Z)((function(t){return e(n,t)}));default:return(0,o.Z)(n)&&(0,o.Z)(i)?t:(0,o.Z)(n)?(0,r.Z)((function(t){return e(t,i)})):(0,o.Z)(i)?(0,r.Z)((function(t){return e(n,t)})):e(n,i)}}}},758:(e,t,n)=>{"use strict";function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}n.d(t,{Z:()=>r})},5717:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(9719).Z)((function(e,t){for(var n={},r={},o=0,i=e.length;o<i;)r[e[o]]=1,o+=1;for(var a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n}))},1556:(e,t,n)=>{"use strict";var r=n(7959),o=n(965);function i(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 l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(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){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.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||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,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!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(g,y);v[t]=new m(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(g,y);v[t]=new m(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(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var R,A=Object.assign;function $(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var F=!1;function U(e,t){if(!e||F)return"";F=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function B(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function z(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 S:return"Fragment";case x:return"Portal";case k:return"Profiler";case _:return"StrictMode";case N:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}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 z(t);case 8:return t===_?"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 V(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=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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 W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(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 Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(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 X(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&&q(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 o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(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 le(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 ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.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 de(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 pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=A({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 ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(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 Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,_e=null;function ke(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Oe(e){Se?_e?_e.push(e):_e=[e]:Se=e}function Ce(){if(Se){var e=Se,t=_e;if(_e=Se=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Pe(e,t){return e(t)}function Ne(){}var Te=!1;function je(e,t,n){if(Te)return e(t,n);Te=!0;try{return Pe(e,t,n)}finally{Te=!1,(null!==Se||null!==_e)&&(Ne(),Ce())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(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(i(231,t,typeof n));return n}var Ie=!1;if(c)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ce){Ie=!1}function De(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Re=!1,Ae=null,$e=!1,Fe=null,Ue={onError:function(e){Re=!0,Ae=e}};function Be(e,t,n,r,o,i,a,s,l){Re=!1,Ae=null,De.apply(Ue,arguments)}function ze(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(ze(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(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 We=o.unstable_scheduleCallback,qe=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ge=o.unstable_requestPaint,Qe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Xe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=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 dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=ft(s):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(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 ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Et,xt,St,_t,kt,Ot=!1,Ct=[],Pt=null,Nt=null,Tt=null,jt=new Map,Lt=new Map,It=[],Mt="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 Dt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":jt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Rt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=bo(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void kt(e.priority,(function(){St(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 $t(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=wo(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 Ft(e,t,n){$t(e)&&n.delete(t)}function Ut(){Ot=!1,null!==Pt&&$t(Pt)&&(Pt=null),null!==Nt&&$t(Nt)&&(Nt=null),null!==Tt&&$t(Tt)&&(Tt=null),jt.forEach(Ft),Lt.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function zt(e){function t(t){return Bt(t,e)}if(0<Ct.length){Bt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Bt(Pt,e),null!==Nt&&Bt(Nt,e),null!==Tt&&Bt(Tt,e),jt.forEach(t),Lt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)At(n),null===n.blockedOn&&It.shift()}var Zt=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=bt,i=Zt.transition;Zt.transition=null;try{bt=1,Wt(e,t,n,r)}finally{bt=o,Zt.transition=i}}function Kt(e,t,n,r){var o=bt,i=Zt.transition;Zt.transition=null;try{bt=4,Wt(e,t,n,r)}finally{bt=o,Zt.transition=i}}function Wt(e,t,n,r){if(Ht){var o=Yt(e,t,n,r);if(null===o)Hr(e,t,r,qt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Pt=Rt(Pt,e,t,n,r,o),!0;case"dragenter":return Nt=Rt(Nt,e,t,n,r,o),!0;case"mouseover":return Tt=Rt(Tt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jt.set(i,Rt(jt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,Rt(Lt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&Et(i),null===(i=Yt(e,t,n,r))&&Hr(e,t,r,qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var qt=null;function Yt(e,t,n,r){if(qt=null,null!==(e=bo(e=Ee(r))))if(null===(t=ze(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 qt=e,null}function Gt(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(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xt=o.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,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return A(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,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),fn=A({},un,{view:0,detail:0}),dn=on(fn),pn=A({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,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!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(A({},pn,{dataTransfer:0})),vn=on(A({},fn,{relatedTarget:0})),gn=on(A({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=A({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(A({},un,{data:0})),En={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function kn(){return _n}var On=A({},fn,{key:function(e){if(e.key){var t=En[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:kn,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}}),Cn=on(On),Pn=on(A({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(A({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Tn=on(A({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=A({},pn,{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}),Ln=on(jn),In=[9,13,27,32],Mn=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Rn=c&&"TextEvent"in window&&!Dn,An=c&&(!Mn||Dn&&8<Dn&&11>=Dn),$n=String.fromCharCode(32),Fn=!1;function Un(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1,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 Vn(e,t,n,r){Oe(r),0<(t=Kr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Wn=null;function qn(e){$r(e,0)}function Yn(e){if(W(Eo(e)))return e}function Gn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Jn=Xn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),Wn=Kn=null)}function nr(e){if("value"===e.propertyName&&Yn(Wn)){var t=[];Vn(t,Wn,e,Ee(e)),je(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Wn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Wn)}function ir(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 lr(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 o=n[r];if(!f.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(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=ur(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 dr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(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 hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(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 o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>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 mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==q(r)||(r="selectionStart"in(r=vr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Sr={},_r={};function kr(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Sr[e]=n[t];return e}c&&(_r=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 Or=kr("animationend"),Cr=kr("animationiteration"),Pr=kr("animationstart"),Nr=kr("transitionend"),Tr=new Map,jr="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 Lr(e,t){Tr.set(e,t),l(t,[e])}for(var Ir=0;Ir<jr.length;Ir++){var Mr=jr[Ir];Lr(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Lr(Or,"onAnimationEnd"),Lr(Cr,"onAnimationIteration"),Lr(Pr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Nr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,u){if(Be.apply(this,arguments),Re){if(!Re)throw Error(i(198));var c=Ae;Re=!1,Ae=null,$e||($e=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function $r(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,u),i=l}}}if($e)throw e=Fe,$e=!1,Fe=null,e}function Fr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=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 Br="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Rr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Ur("selectionchange",!1,t))}}function Zr(e,t,n,r){switch(Gt(t)){case 1:var o=Vt;break;case 4:o=Kt;break;default:o=Wt}n=o.bind(null,t,n,e),o=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=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===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}je((function(){var r=i,o=Ee(n),a=[];e:{var s=Tr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;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":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Or:case Cr:case Pr:l=gn;break;case Nr:l=Tn;break;case"scroll":l=dn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=Le(h,d))&&c.push(Vr(h,m,p))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(f=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:Eo(l),p=null==u?s:Eo(u),(s=new c(m,h+"leave",l,n,o)).target=f,s.relatedTarget=p,m=null,bo(o)===r&&((c=new c(d,h+"enter",u,n,o)).target=p,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(d=u,h=0,p=c=l;p;p=Wr(p))h++;for(p=0,m=d;m;m=Wr(m))p++;for(;0<h-p;)c=Wr(c),h--;for(;0<p-h;)d=Wr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Wr(c),d=Wr(d)}c=null}else c=null;null!==l&&qr(a,s,l,c,!1),null!==u&&null!==f&&qr(a,f,u,c,!0)}if("select"===(l=(s=r?Eo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Gn;else if(Hn(s))if(Qn)v=ar;else{v=or;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ir);switch(v&&(v=v(e,r))?Vn(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?Eo(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Mn)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 zn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(An&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=en()):(Jt="value"in(Qt=o)?Qt.value:Qt.textContent,zn=!0)),0<(g=Kr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:g}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,$n);case"textInput":return(e=t.data)===$n&&Fn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Mn&&Un(e,t)?(e=en(),Xt=Jt=Qt=null,zn=!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;case"compositionend":return An&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Kr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}$r(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Le(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Le(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Le(n,i))&&a.unshift(Vr(n,l,s)):o||null!=(l=Le(n,i))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Gr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Xr(){}var eo=null,to=null;function no(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 ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);zt(t)}function uo(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 co(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 fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,vo="__reactEvents$"+fo,go="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[ho]||null}var So=[],_o=-1;function ko(e){return{current:e}}function Oo(e){0>_o||(e.current=So[_o],So[_o]=null,_o--)}function Co(e,t){_o++,So[_o]=e.current,e.current=t}var Po={},No=ko(Po),To=ko(!1),jo=Po;function Lo(e,t){var n=e.type.contextTypes;if(!n)return Po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Io(e){return null!=e.childContextTypes}function Mo(){Oo(To),Oo(No)}function Do(e,t,n){if(No.current!==Po)throw Error(i(168));Co(No,t),Co(To,n)}function Ro(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,Z(e)||"Unknown",o));return A({},n,r)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Po,jo=No.current,Co(No,e),Co(To,To.current),!0}function $o(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ro(e,t,jo),r.__reactInternalMemoizedMergedChildContext=e,Oo(To),Oo(No),Co(No,e)):Oo(To),Co(To,n)}var Fo=null,Uo=!1,Bo=!1;function zo(e){null===Fo?Fo=[e]:Fo.push(e)}function Zo(){if(!Bo&&null!==Fo){Bo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Uo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),We(Xe,Zo),t}finally{bt=t,Bo=!1}}return null}var Ho=[],Vo=0,Ko=null,Wo=0,qo=[],Yo=0,Go=null,Qo=1,Jo="";function Xo(e,t){Ho[Vo++]=Wo,Ho[Vo++]=Ko,Ko=e,Wo=t}function ei(e,t,n){qo[Yo++]=Qo,qo[Yo++]=Jo,qo[Yo++]=Go,Go=e;var r=Qo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Xo(e,1),ei(e,1,0))}function ni(e){for(;e===Ko;)Ko=Ho[--Vo],Ho[Vo]=null,Wo=Ho[--Vo],Ho[Vo]=null;for(;e===Go;)Go=qo[--Yo],qo[Yo]=null,Jo=qo[--Yo],qo[Yo]=null,Qo=qo[--Yo],qo[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=ju(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 li(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,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Go?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=ju(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var vi=w.ReactCurrentBatchConfig;function gi(e,t){if(e&&e.defaultProps){for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yi=ko(null),bi=null,wi=null,Ei=null;function xi(){Ei=wi=bi=null}function Si(e){var t=yi.current;Oo(yi),e._currentValue=t}function _i(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 ki(e,t){bi=e,Ei=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===bi)throw Error(i(308));wi=e,bi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Ci=null;function Pi(e){null===Ci?Ci=[e]:Ci.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Pi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ti(e,r)}function Ti(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}var ji=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ii(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 Mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Di(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Pl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ti(e,n)}return null===(o=r.interleaved)?(t.next=t,Pi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ti(e,n)}function Ri(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,yt(e,n)}}function Ai(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=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===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $i(e,t,n,r){var o=e.updateQueue;ji=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==i){var f=o.baseState;for(a=0,c=u=l=null,s=i;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=A({},f,d);break e;case 2:ji=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=f):c=c.next=p,a|=d;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(d=s).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Rl|=a,e.lanes=a,e.memoizedState=f}}function Fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ui=(new r.Component).refs;function Bi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var zi={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Mi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Di(e,i,o))&&(nu(t,e,o,r),Ri(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Mi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Di(e,i,o))&&(nu(t,e,o,r),Ri(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Mi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Di(e,o,r))&&(nu(t,e,r,n),Ri(t,e,r))}};function Zi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function Hi(e,t,n){var r=!1,o=Po,i=t.contextType;return"object"==typeof i&&null!==i?i=Oi(i):(o=Io(t)?jo:No.current,i=(r=null!=(r=t.contextTypes))?Lo(e,o):Po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vi(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&&zi.enqueueReplaceState(t,t.state,null)}function Ki(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ui,Li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Oi(i):(i=Io(t)?jo:No.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&zi.enqueueReplaceState(o,o.state,null),$i(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Wi(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(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;t===Ui&&(t=o.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yi(e){return(0,e._init)(e._payload)}function Gi(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 o(e,t){return(e=Iu(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 l(e,t,n,r){return null===t||6!==t.tag?((t=Au(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===S?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===L&&Yi(i)===t.type)?((r=o(t,n.props)).ref=Wi(e,t,n),r.return=e,r):((r=Mu(n.type,n.key,n.props,null,e.mode,r)).ref=Wi(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=$u(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Du(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Au(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Mu(t.type,t.key,t.props,null,e.mode,n)).ref=Wi(e,null,t),n.return=e,n;case x:return(t=$u(t,e.mode,n)).return=e,t;case L:return d(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Du(t,e.mode,n,null)).return=e,t;qi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case L:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||D(n))return null!==o?null:f(e,t,n,r,null);qi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case L:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||D(r))return f(t,e=e.get(n)||null,r,o,null);qi(t,r)}return null}return function l(u,c,f,m){if("object"==typeof f&&null!==f&&f.type===S&&null===f.key&&(f=f.props.children),"object"==typeof f&&null!==f){switch(f.$$typeof){case E:e:{for(var v=f.key,g=c;null!==g;){if(g.key===v){if((v=f.type)===S){if(7===g.tag){n(u,g.sibling),(c=o(g,f.props.children)).return=u,u=c;break e}}else if(g.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===L&&Yi(v)===g.type){n(u,g.sibling),(c=o(g,f.props)).ref=Wi(u,g,f),c.return=u,u=c;break e}n(u,g);break}t(u,g),g=g.sibling}f.type===S?((c=Du(f.props.children,u.mode,m,f.key)).return=u,u=c):((m=Mu(f.type,f.key,f.props,null,u.mode,m)).ref=Wi(u,c,f),m.return=u,u=m)}return s(u);case x:e:{for(g=f.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){n(u,c.sibling),(c=o(c,f.children||[])).return=u,u=c;break e}n(u,c);break}t(u,c),c=c.sibling}(c=$u(f,u.mode,m)).return=u,u=c}return s(u);case L:return l(u,c,(g=f._init)(f._payload),m)}if(te(f))return function(o,i,s,l){for(var u=null,c=null,f=i,m=i=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(o,f,s[m],l);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(o,f),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===s.length)return n(o,f),ii&&Xo(o,m),u;if(null===f){for(;m<s.length;m++)null!==(f=d(o,s[m],l))&&(i=a(f,i,m),null===c?u=f:c.sibling=f,c=f);return ii&&Xo(o,m),u}for(f=r(o,f);m<s.length;m++)null!==(v=h(f,o,m,s[m],l))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),ii&&Xo(o,m),u}(u,c,f,m);if(D(f))return function(o,s,l,u){var c=D(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var f=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(o,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(o,m),ii&&Xo(o,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=d(o,y.value,u))&&(s=a(y,s,v),null===f?c=y:f.sibling=y,f=y);return ii&&Xo(o,v),c}for(m=r(o,m);!y.done;v++,y=l.next())null!==(y=h(m,o,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Xo(o,v),c}(u,c,f,m);qi(u,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(u,c.sibling),(c=o(c,f)).return=u,u=c):(n(u,c),(c=Au(f,u.mode,m)).return=u,u=c),s(u)):n(u,c)}}var Qi=Gi(!0),Ji=Gi(!1),Xi={},ea=ko(Xi),ta=ko(Xi),na=ko(Xi);function ra(e){if(e===Xi)throw Error(i(174));return e}function oa(e,t){switch(Co(na,t),Co(ta,e),Co(ea,Xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ea),Co(ea,t)}function ia(){Oo(ea),Oo(ta),Oo(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(Co(ta,e),Co(ea,n))}function sa(e){ta.current===e&&(Oo(ea),Oo(ta))}var la=ko(0);function ua(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 ca=[];function fa(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var da=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,va=null,ga=null,ya=!1,ba=!1,wa=0,Ea=0;function xa(){throw Error(i(321))}function Sa(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 _a(e,t,n,r,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(i(301));a+=1,ga=va=null,t.updateQueue=null,da.current=us,e=n(r,o)}while(ba)}if(da.current=as,t=null!==va&&null!==va.next,ha=0,ga=va=ma=null,ya=!1,t)throw Error(i(300));return e}function ka(){var e=0!==wa;return wa=0,e}function Oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ga?ma.memoizedState=ga=e:ga=ga.next=e,ga}function Ca(){if(null===va){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ga?ma.memoizedState:ga.next;if(null!==t)ga=t,va=e;else{if(null===e)throw Error(i(310));e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ga?ma.memoizedState=ga=e:ga=ga.next=e}return ga}function Pa(e,t){return"function"==typeof t?t(e):t}function Na(e){var t=Ca(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=va,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,u=null,c=a;do{var f=c.lane;if((ha&f)===f)null!==u&&(u=u.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 d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,s=r):u=u.next=d,ma.lanes|=f,Rl|=f}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Rl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ta(e){var t=Ca(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ja(){}function La(e,t){var n=ma,r=Ca(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,ws=!0),r=r.queue,Ha(Da.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ga&&1&ga.memoizedState.tag){if(n.flags|=2048,Fa(9,Ma.bind(null,n,r,o,t),void 0,null),null===Nl)throw Error(i(349));0!=(30&ha)||Ia(n,t,o)}return o}function Ia(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ma(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&Aa(e)}function Da(e,t,n){return n((function(){Ra(t)&&Aa(e)}))}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Aa(e){var t=Ti(e,1);null!==t&&nu(t,e,1,-1)}function $a(e){var t=Oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.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 Ua(){return Ca().memoizedState}function Ba(e,t,n,r){var o=Oa();ma.flags|=e,o.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function za(e,t,n,r){var o=Ca();r=void 0===r?null:r;var i=void 0;if(null!==va){var a=va.memoizedState;if(i=a.destroy,null!==r&&Sa(r,a.deps))return void(o.memoizedState=Fa(t,n,i,r))}ma.flags|=e,o.memoizedState=Fa(1|t,n,i,r)}function Za(e,t){return Ba(8390656,8,e,t)}function Ha(e,t){return za(2048,8,e,t)}function Va(e,t){return za(4,2,e,t)}function Ka(e,t){return za(4,4,e,t)}function Wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function qa(e,t,n){return n=null!=n?n.concat([e]):null,za(4,4,Wa.bind(null,t,e),n)}function Ya(){}function Ga(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0==(21&ha)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),ma.lanes|=n,Rl|=n,e.baseState=!0),t)}function Xa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function es(){return Ca().memoizedState}function ts(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?os(t,n):null!==(n=Ni(e,t,n,r))&&(nu(n,e,r,eu()),is(n,t,r))}function ns(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Pi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ni(e,t,o,r))&&(nu(n,e,r,o=eu()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function os(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:Oi,useCallback:xa,useContext:xa,useEffect:xa,useImperativeHandle:xa,useInsertionEffect:xa,useLayoutEffect:xa,useMemo:xa,useReducer:xa,useRef:xa,useState:xa,useDebugValue:xa,useDeferredValue:xa,useTransition:xa,useMutableSource:xa,useSyncExternalStore:xa,useId:xa,unstable_isNewReconciler:!1},ss={readContext:Oi,useCallback:function(e,t){return Oa().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Za,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4194308,4,Wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oa();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=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oa().memoizedState=e},useState:$a,useDebugValue:Ya,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=$a(!1),t=e[0];return e=Xa.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=Oa();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Nl)throw Error(i(349));0!=(30&ha)||Ia(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Za(Da.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Ma.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Oa(),t=Nl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ea++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Oi,useCallback:Ga,useContext:Oi,useEffect:Ha,useImperativeHandle:qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Qa,useReducer:Na,useRef:Ua,useState:function(){return Na(Pa)},useDebugValue:Ya,useDeferredValue:function(e){return Ja(Ca(),va.memoizedState,e)},useTransition:function(){return[Na(Pa)[0],Ca().memoizedState]},useMutableSource:ja,useSyncExternalStore:La,useId:es,unstable_isNewReconciler:!1},us={readContext:Oi,useCallback:Ga,useContext:Oi,useEffect:Ha,useImperativeHandle:qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Qa,useReducer:Ta,useRef:Ua,useState:function(){return Ta(Pa)},useDebugValue:Ya,useDeferredValue:function(e){var t=Ca();return null===va?t.memoizedState=e:Ja(t,va.memoizedState,e)},useTransition:function(){return[Ta(Pa)[0],Ca().memoizedState]},useMutableSource:ja,useSyncExternalStore:La,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function fs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Mi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function ms(e,t,n){(n=Mi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ku.bind(null,e,t,n),t.then(e,e))}function gs(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,o){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=Mi(-1,1)).tag=2,Di(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bs=w.ReactCurrentOwner,ws=!1;function Es(e,t,n,r){t.child=null===e?Ji(t,null,n,r):Qi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return ki(t,o),r=_a(e,t,n,r,i,o),n=ka(),null===e||ws?(ii&&n&&ti(t),t.flags|=1,Es(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Lu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_s(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Iu(i,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!=(131072&e.flags)&&(ws=!0)}}return Cs(e,t,n,r,o)}function ks(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Il,Ll),Ll|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Il,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Co(Il,Ll),Ll|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Co(Il,Ll),Ll|=r;return Es(e,t,o,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 Cs(e,t,n,r,o){var i=Io(n)?jo:No.current;return i=Lo(t,i),ki(t,o),n=_a(e,t,n,r,i,o),r=ka(),null===e||ws?(ii&&r&&ti(t),t.flags|=1,Es(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ps(e,t,n,r,o){if(Io(n)){var i=!0;Ao(t)}else i=!1;if(ki(t,o),null===t.stateNode)Zs(e,t),Hi(t,n,r),Ki(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Oi(u):Lo(t,u=Io(n)?jo:No.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||l!==u)&&Vi(t,a,r,u),ji=!1;var d=t.memoizedState;a.state=d,$i(t,r,a,o),l=t.memoizedState,s!==r||d!==l||To.current||ji?("function"==typeof c&&(Bi(t,n,c,r),l=t.memoizedState),(s=ji||Zi(t,n,s,r,d,l,u))?(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=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ii(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:gi(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Oi(l):Lo(t,l=Io(n)?jo:No.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==l)&&Vi(t,a,r,l),ji=!1,d=t.memoizedState,a.state=d,$i(t,r,a,o);var h=t.memoizedState;s!==f||d!==h||To.current||ji?("function"==typeof p&&(Bi(t,n,p,r),h=t.memoizedState),(u=ji||Zi(t,n,u,r,d,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,i,o)}function Ns(e,t,n,r,o,i){Os(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&$o(t,n,!1),Hs(e,t,i);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,s,i)):Es(e,t,s,i),t.memoizedState=r.state,o&&$o(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),oa(e,t.containerInfo)}function js(e,t,n,r,o){return hi(),mi(o),t.flags|=256,Es(e,t,n,r),t.child}var Ls,Is,Ms,Ds={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function As(e,t,n){var r,o=t.pendingProps,a=la.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Co(la,1&a),null===e)return ci(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):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Ru(l,o,0,null),e=Du(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=Ds,e):$s(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=fs(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ru({mode:"visible",children:r.children},o,0,null),(a=Du(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Qi(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Ds,a);if(0==(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=fs(a=Error(i(419)),r,void 0))}if(l=0!=(s&e.childLanes),ws||l){if(null!==(r=Nl)){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ti(e,o),nu(r,e,o,-1))}return mu(),Fs(e,t,s,r=fs(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Cu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(qo[Yo++]=Qo,qo[Yo++]=Jo,qo[Yo++]=Go,Qo=e.id,Jo=e.overflow,Go=t),(t=$s(t,r.children)).flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Iu(r,s):(s=Du(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ds,o}return e=(s=e.child).sibling,o=Iu(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function $s(e,t){return(t=Ru({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),Qi(t,e.child,null,n),(e=$s(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function Bs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function zs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Es(e,t,r.children,n),0!=(2&(r=la.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&&Us(e,n,t);else if(19===e.tag)Us(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(Co(la,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bs(t,!0,n,null,i);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!ii)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 Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Io(t.type)&&Mo(),Ks(t),null;case 3:return r=t.stateNode,ia(),Oo(To),Oo(No),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ks(t),null;case 5:sa(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ks(t),null}if(e=ra(ea.current),di(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Dr.length;o++)Fr(Dr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":G(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":K(r),X(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Xr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Ls(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dr.length;o++)Fr(Dr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":G(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=A({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in ye(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Fr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":K(e),X(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 o.onClick&&(e.onclick=Xr)}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 Ks(t),null;case 6:if(e&&null!=t.stateNode)Ms(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Ks(t),null;case 13:if(Oo(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==ai&&(au(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&la.current)?0===Ml&&(Ml=3):mu())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return ia(),null===e&&zr(t.stateNode.containerInfo),Ks(t),null;case 10:return Si(t.type._context),Ks(t),null;case 19:if(Oo(la),null===(a=t.memoizedState))return Ks(t),null;if(r=0!=(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Ml||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=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=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Co(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>zl&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ks(t),null}else 2*Qe()-a.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=la.current,Co(la,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ll)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function qs(e,t){switch(ni(t),t.tag){case 1:return Io(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Oo(To),Oo(No),fa(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Oo(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(la),null;case 4:return ia(),null;case 10:return Si(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Ls=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}},Is=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=A({},o,{value:void 0}),r=A({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}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 u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ms=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Gs=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){_u(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){_u(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(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 ol(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 il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[vo],delete t[go],delete t[yo]),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(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 ll(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)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(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(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,fl=!1;function dl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Gs||Xs(n,t);case 6:var r=cl,o=fl;cl=null,dl(e,t,n),fl=o,null!==(cl=r)&&(fl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(fl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),zt(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=fl,cl=n.stateNode.containerInfo,fl=!0,dl(e,t,n),cl=r,fl=o;break;case 0:case 11:case 14:case 15:if(!Gs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&el(n,t,a),o=o.next}while(o!==r)}dl(e,t,n);break;case 1:if(!Gs&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){_u(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,dl(e,t,n),Gs=r):dl(e,t,n);break;default:dl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,fl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));pl(a,s,o),cl=null,fl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){_u(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){_u(e,e.return,t)}try{nl(5,e,e.return)}catch(t){_u(e,e.return,t)}}break;case 1:ml(t,e),gl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),gl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){_u(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var f=u[s],d=u[s+1];"style"===f?ve(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,c)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){_u(e,e.return,t)}}break;case 6:if(ml(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){_u(e,e.return,t)}}break;case 3:if(ml(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){_u(e,e.return,t)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bl=Qe())),4&r&&hl(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||f,ml(t,e),Gs=c):ml(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(Js=e,f=e.child;null!==f;){for(d=Js=f;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){_u(r,n,e)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){El(d);continue}}null!==h?(h.return=p,Js=h):El(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,s=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){_u(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){_u(e,e.return,t)}}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;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ml(t,e),gl(e),4&r&&hl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),ul(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){_u(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!=(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ys;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=Ys;var u=Gs;if(Ys=a,(Gs=l)&&!u)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Js=l):xl(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Ys=s,Gs=u}wl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;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||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:gi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fi(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}Fi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&zt(d)}}}break;default:throw Error(i(163))}Gs||512&t.flags&&ol(t)}catch(e){_u(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function El(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){_u(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){_u(t,o,e)}}var i=t.return;try{ol(t)}catch(e){_u(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){_u(t,a,e)}}}catch(e){_u(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Sl,_l=Math.ceil,kl=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Cl=w.ReactCurrentBatchConfig,Pl=0,Nl=null,Tl=null,jl=0,Ll=0,Il=ko(0),Ml=0,Dl=null,Rl=0,Al=0,$l=0,Fl=null,Ul=null,Bl=0,zl=1/0,Zl=null,Hl=!1,Vl=null,Kl=null,Wl=!1,ql=null,Yl=0,Gl=0,Ql=null,Jl=-1,Xl=0;function eu(){return 0!=(6&Pl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tu(e){return 0==(1&e.mode)?1:0!=(2&Pl)&&0!==jl?jl&-jl:null!==vi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function nu(e,t,n,r){if(50<Gl)throw Gl=0,Ql=null,Error(i(185));gt(e,n,r),0!=(2&Pl)&&e===Nl||(e===Nl&&(0==(2&Pl)&&(Al|=n),4===Ml&&su(e,jl)),ru(e,r),1===n&&0===Pl&&0==(1&t.mode)&&(zl=Qe()+500,Uo&&Zo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!=(s&n)&&0==(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=dt(e,e===Nl?jl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Uo=!0,zo(e)}(lu.bind(null,e)):zo(lu.bind(null,e)),ao((function(){0==(6&Pl)&&Zo()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Jl=-1,Xl=0,0!=(6&Pl))throw Error(i(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=dt(e,e===Nl?jl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var o=Pl;Pl|=2;var a=hu();for(Nl===e&&jl===t||(Zl=null,zl=Qe()+500,du(e,t));;)try{yu();break}catch(t){pu(e,t)}xi(),kl.current=a,Pl=o,null!==Tl?t=0:(Nl=null,jl=0,t=Ml)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=iu(e,o)),1===t)throw n=Dl,du(e,0),su(e,r),ru(e,Qe()),n;if(6===t)su(e,r);else{if(o=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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){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}(o)&&(2===(t=vu(e,r))&&0!==(a=ht(e))&&(r=a,t=iu(e,a)),1===t))throw n=Dl,du(e,0),su(e,r),ru(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Eu(e,Ul,Zl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Bl+500-Qe())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Eu.bind(null,e,Ul,Zl),t);break}Eu(e,Ul,Zl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_l(r/1960))-r)){e.timeoutHandle=ro(Eu.bind(null,e,Ul,Zl),r);break}Eu(e,Ul,Zl);break;default:throw Error(i(329))}}}return ru(e,Qe()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Ul,Ul=n,null!==t&&au(t)),e}function au(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function su(e,t){for(t&=~$l,t&=~Al,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 lu(e){if(0!=(6&Pl))throw Error(i(327));xu();var t=dt(e,0);if(0==(1&t))return ru(e,Qe()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Dl,du(e,0),su(e,t),ru(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eu(e,Ul,Zl),ru(e,Qe()),null}function uu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(zl=Qe()+500,Uo&&Zo())}}function cu(e){null!==ql&&0===ql.tag&&0==(6&Pl)&&xu();var t=Pl;Pl|=1;var n=Cl.transition,r=bt;try{if(Cl.transition=null,bt=1,e)return e()}finally{bt=r,Cl.transition=n,0==(6&(Pl=t))&&Zo()}}function fu(){Ll=Il.current,Oo(Il)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mo();break;case 3:ia(),Oo(To),Oo(No),fa();break;case 5:sa(r);break;case 4:ia();break;case 13:case 19:Oo(la);break;case 10:Si(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Nl=e,Tl=e=Iu(e.current,null),jl=Ll=t,Ml=0,Dl=null,$l=Al=Rl=0,Ul=Fl=null,null!==Ci){for(t=0;t<Ci.length;t++)if(null!==(r=(n=Ci[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ci=null}return e}function pu(e,t){for(;;){var n=Tl;try{if(xi(),da.current=as,ya){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ya=!1}if(ha=0,ga=va=ma=null,ba=!1,wa=0,Ol.current=null,null===n||null===n.return){Ml=1,Dl=t,Tl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=jl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,f=l,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&vs(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(0==(1&t)){vs(a,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var g=gs(s);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),ys(g,s,l,0,t),mi(cs(u,l));break e}}a=u=cs(u,l),4!==Ml&&(Ml=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ai(a,hs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Kl||!Kl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ai(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}wu(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function hu(){var e=kl.current;return kl.current=as,null===e?as:e}function mu(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Nl||0==(268435455&Rl)&&0==(268435455&Al)||su(Nl,jl)}function vu(e,t){var n=Pl;Pl|=2;var r=hu();for(Nl===e&&jl===t||(Zl=null,du(e,t));;)try{gu();break}catch(t){pu(e,t)}if(xi(),Pl=n,kl.current=r,null!==Tl)throw Error(i(261));return Nl=null,jl=0,Ml}function gu(){for(;null!==Tl;)bu(Tl)}function yu(){for(;null!==Tl&&!Ye();)bu(Tl)}function bu(e){var t=Sl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?wu(e):Tl=t,Ol.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ws(n,t,Ll)))return void(Tl=n)}else{if(null!==(n=qs(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Ml=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Ml&&(Ml=5)}function Eu(e,t,n){var r=bt,o=Cl.transition;try{Cl.transition=null,bt=1,function(e,t,n,r){do{xu()}while(null!==ql);if(0!=(6&Pl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(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 o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Nl&&(Tl=Nl=null,jl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wl||(Wl=!0,Nu(tt,(function(){return xu(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Cl.transition,Cl.transition=null;var s=bt;bt=1;var l=Pl;Pl|=4,Ol.current=null,function(e,t){if(eo=Ht,pr(e=dr())){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 o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(l=s+o),d!==a||0!==r&&3!==d.nodeType||(u=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=s),p===a&&++f===r&&(u=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=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!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:gi(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){_u(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),vl(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ge(),Pl=l,bt=s,Cl.transition=a}else e.current=n;if(Wl&&(Wl=!1,ql=e,Yl=o),0===(a=e.pendingLanes)&&(Kl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ru(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!=(1&Yl)&&0!==e.tag&&xu(),0!=(1&(a=e.pendingLanes))?e===Ql?Gl++:(Gl=0,Ql=e):Gl=0,Zo()}(e,t,n,r)}finally{Cl.transition=o,bt=r}return null}function xu(){if(null!==ql){var e=wt(Yl),t=Cl.transition,n=bt;try{if(Cl.transition=null,bt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Yl=0,0!=(6&Pl))throw Error(i(331));var o=Pl;for(Pl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!=(16&Js.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var f=Js;switch(f.tag){case 0:case 11:case 15:nl(8,f,a)}var d=f.child;if(null!==d)d.return=f,Js=d;else for(;null!==Js;){var p=(f=Js).sibling,h=f.return;if(il(f),f===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Js=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!=(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!=(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!=(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){_u(l,l.return,e)}if(l===s){Js=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,Js=E;break e}Js=l.return}}if(Pl=o,Zo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Cl.transition=t}}return!1}function Su(e,t,n){e=Di(e,t=hs(0,t=cs(n,t),1),1),t=eu(),null!==e&&(gt(e,1,t),ru(e,t))}function _u(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=Di(t,e=ms(t,e=cs(n,e),1),1),e=eu(),null!==t&&(gt(t,1,e),ru(t,e));break}}t=t.return}}function ku(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(jl&n)===n&&(4===Ml||3===Ml&&(130023424&jl)===jl&&500>Qe()-Bl?du(e,0):$l|=n),ru(e,t)}function Ou(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Ti(e,t))&&(gt(e,t,n),ru(e,n))}function Cu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Pu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ou(e,n)}function Nu(e,t){return We(e,t)}function Tu(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 ju(e,t,n,r){return new Tu(e,t,n,r)}function Lu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=ju(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 Mu(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Lu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Du(n.children,o,a,t);case _:s=8,o|=8;break;case k:return(e=ju(12,n,t,2|o)).elementType=k,e.lanes=a,e;case N:return(e=ju(13,n,t,o)).elementType=N,e.lanes=a,e;case T:return(e=ju(19,n,t,o)).elementType=T,e.lanes=a,e;case I:return Ru(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case C:s=9;break e;case P:s=11;break e;case j:s=14;break e;case L:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=ju(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Du(e,t,n,r){return(e=ju(7,e,r,t)).lanes=n,e}function Ru(e,t,n,r){return(e=ju(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Au(e,t,n){return(e=ju(6,e,null,t)).lanes=n,e}function $u(e,t,n){return(t=ju(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){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=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,o,i,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=ju(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Bu(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 zu(e){if(!e)return Po;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Io(n))return Ro(e,n,t)}return t}function Zu(e,t,n,r,o,i,a,s,l){return(e=Uu(n,r,!0,e,0,i,0,s,l)).context=zu(null),n=e.current,(i=Mi(r=eu(),o=tu(n))).callback=null!=t?t:null,Di(n,i,o),e.current.lanes=o,gt(e,o,r),ru(e,r),e}function Hu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=zu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Mi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Di(o,t,a))&&(nu(e,o,a,i),Ri(e,o,a)),a}function Vu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)ws=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),hi();break;case 5:aa(t);break;case 1:Io(t.type)&&Ao(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(yi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(la,1&la.current),t.flags|=128,null):0!=(n&t.child.childLanes)?As(e,t,n):(Co(la,1&la.current),null!==(e=Hs(e,t,n))?e.sibling:null);Co(la,1&la.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!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Hs(e,t,n)}(e,t,n);ws=0!=(131072&e.flags)}else ws=!1,ii&&0!=(1048576&t.flags)&&ei(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zs(e,t),e=t.pendingProps;var o=Lo(t,No.current);ki(t,n),o=_a(null,t,r,e,o,n);var a=ka();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(r)?(a=!0,Ao(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=zi,t.stateNode=o,o._reactInternals=t,Ki(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),Es(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Lu(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===j)return 14}return 2}(r),e=gi(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Ps(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,gi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ps(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 3:e:{if(Ts(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ii(e,t),$i(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=js(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=js(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hs(e,t,n);break e}Es(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Os(e,t),Es(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return As(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qi(t,null,r,n):Es(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 7:return Es(e,t,t.pendingProps,n),t.child;case 8:case 12:return Es(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Co(yi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!To.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Mi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),_i(a.return,n,t),l.lanes|=n;break}u=u.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(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),_i(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}Es(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ki(t,n),r=r(o=Oi(o)),t.flags|=1,Es(e,t,r,n),t.child;case 14:return o=gi(r=t.type,t.pendingProps),Ss(e,t,r,o=gi(r.type,o),n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gi(r,o),Zs(e,t),t.tag=1,Io(r)?(e=!0,Ao(t)):e=!1,ki(t,n),Hi(t,r,o),Ki(t,r,o,n),Ns(null,t,r,!0,e,n);case 19:return zs(e,t,n);case 22:return ks(e,t,n)}throw Error(i(156,t.tag))};var qu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Vu(a);s.call(e)}}Hu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Vu(a);i.call(e)}}var a=Zu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[mo]=a.current,zr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Vu(l);s.call(e)}}var l=Uu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[mo]=l.current,zr(8===e.nodeType?e.parentNode:e),cu((function(){Hu(t,l,n,r)})),l}(n,t,e,o,r);return Vu(a)}Gu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hu(e,t,null,null)},Gu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Hu(null,e,null,null)})),t[mo]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&At(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),0==(6&Pl)&&(zl=Qe()+500,Zo()))}break;case 13:cu((function(){var t=Ti(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Wu(e,1)}},xt=function(e){if(13===e.tag){var t=Ti(e,134217728);null!==t&&nu(t,e,134217728,eu()),Wu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=Ti(e,t);null!==n&&nu(n,e,t,eu()),Wu(e,t)}},_t=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(J(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 o=xo(r);if(!o)throw Error(i(90));W(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=uu,Ne=cu;var tc={usingClientEntryPoint:!1,Events:[wo,Eo,xo,Oe,Ce,uu]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.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=Ve(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(i(200));return Bu(e,t,null,n)},t.createRoot=function(e,t){if(!Qu(e))throw Error(i(299));var n=!1,r="",o=qu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,zr(8===e.nodeType?e.parentNode:e),new Yu(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(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=qu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Zu(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,zr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Gu(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},7299:(e,t,n)=>{"use strict";var r=n(1859);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},1386:(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(e){console.error(e)}}(),e.exports=n(1556)},2857:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.r(t),n.d(t,{I18nContext:()=>_,I18nextProvider:()=>se,Trans:()=>q,Translation:()=>ae,composeInitialProps:()=>j,date:()=>de,getDefaults:()=>O,getI18n:()=>N,getInitialProps:()=>L,initReactI18next:()=>T,number:()=>he,plural:()=>ve,select:()=>me,selectOrdinal:()=>ge,setDefaults:()=>k,setI18n:()=>P,time:()=>pe,useSSR:()=>le,useTranslation:()=>ee,withSSR:()=>fe,withTranslation:()=>oe});var o=n(1248),i=n(9474),a=n(7959),s=n(3913),l=n.n(s),u=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function c(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(l()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(u),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,p=Object.create(null);const h=function(e,t){t||(t={}),t.components||(t.components=p);var n,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(f,(function(s,l){if(a){if(s!=="</"+n.name+">")return;a=!1}var u,f="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),h=l+s.length,m=e.charAt(h);if(p){var v=c(s);return i<0?(r.push(v),r):((u=o[i]).children.push(v),r)}if(f&&(i++,"tag"===(n=c(s)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!m||"<"===m||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&r.push(n),(u=o[i-1])&&u.children.push(n),o[i]=n),(!f||n.voidElement)&&(i>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(i--,n=-1===i?r:o[i]),!a&&"<"!==m&&m)){u=-1===i?r:o[i].children;var g=e.indexOf("<",h),y=e.slice(h,-1===g?void 0:g);d.test(y)&&(y=" "),(g>-1&&i+u.length>=0||" "!==y)&&u.push({type:"text",content:y})}})),r};var m=n(6823),v=n(1917),g=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,y={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},b=function(e){return y[e]};function w(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 E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x,S={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(g,b)}},_=(0,a.createContext)();function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S=E(E({},S),e)}function O(){return S}var C=function(){function e(){(0,m.Z)(this,e),this.usedNamespaces={}}return(0,v.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function P(e){x=e}function N(){return x}var T={type:"3rdParty",init:function(e){k(e.options.react),P(e)}};function j(e){return function(t){return new Promise((function(n){var r=L();e.getInitialProps?e.getInitialProps(t).then((function(e){n(E(E({},e),r))})):n(r)}))}}function L(){var e=N(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((function(n){r[n]={},t.forEach((function(t){r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n}function I(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var M={};function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&M[t[0]]||("string"==typeof t[0]&&(M[t[0]]=new Date),I.apply(void 0,t))}function R(e,t,n){e.loadNamespaces(t,(function(){e.isInitialized?n():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}))}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return D("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):A(e,t,n)}function F(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var U=["format"],B=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function z(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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function V(e){return e?e.props?e.props.children:e.children:[]}function K(e){return Array.isArray(e)?e:[e]}function W(e,t){if(!e)return"";var n="",i=K(e),s=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return i.forEach((function(e,i){if("string"==typeof e)n+="".concat(e);else if((0,a.isValidElement)(e)){var l=Object.keys(e.props).length,u=s.indexOf(e.type)>-1,c=e.props.children;if(!c&&u&&0===l)n+="<".concat(e.type,"/>");else if(c||u&&0===l)if(e.props.i18nIsDynamicList)n+="<".concat(i,"></").concat(i,">");else if(u&&1===l&&"string"==typeof c)n+="<".concat(e.type,">").concat(c,"</").concat(e.type,">");else{var f=W(c,t);n+="<".concat(i,">").concat(f,"</").concat(i,">")}else n+="<".concat(i,"></").concat(i,">")}else if(null===e)I("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,o.Z)(e)){var d=e.format,p=r(e,U),h=Object.keys(p);if(1===h.length){var m=d?"".concat(h[0],", ").concat(d):h[0];n+="{{".concat(m,"}}")}else I("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else I("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function q(e){var t=e.children,n=e.count,i=e.parent,s=e.i18nKey,l=e.context,u=e.tOptions,c=void 0===u?{}:u,f=e.values,d=e.defaults,p=e.components,m=e.ns,v=e.i18n,g=e.t,y=e.shouldUnescape,b=r(e,B),w=(0,a.useContext)(_)||{},E=w.i18n,x=w.defaultNS,S=v||E||N();if(!S)return D("You will need to pass in an i18next instance by using i18nextReactModule"),t;var k=g||S.t.bind(S)||function(e){return e};l&&(c.context=l);var C=Z(Z({},O()),S.options&&S.options.react),P=m||k.ns||x||S.options&&S.options.defaultNS;P="string"==typeof P?[P]:P||["translation"];var T=d||W(t,C)||C.transEmptyNodeValue||s,j=C.hashTransKey,L=s||(j?j(T):T),I=f?c.interpolation:{interpolation:Z(Z({},c.interpolation),{},{prefix:"#$?",suffix:"?$#"})},M=Z(Z(Z(Z({},c),{},{count:n},f),I),{},{defaultValue:T,ns:P}),R=function(e,t,n,r,i,s){if(""===t)return[];var l=r.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(l.join("|")).test(t);if(!e&&!u)return[t];var c={};!function e(t){K(t).forEach((function(t){"string"!=typeof t&&(H(t)?e(V(t)):"object"!==(0,o.Z)(t)||(0,a.isValidElement)(t)||Object.assign(c,t))}))}(e);var f=h("<0>".concat(t,"</0>")),d=Z(Z({},c),i);function p(e,t,n){var r=V(e),o=v(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return(0,a.isValidElement)(e)}))}(r)&&0===o.length?r:o}function m(e,t,n,r,o){e.dummy&&(e.children=t),n.push((0,a.cloneElement)(e,Z(Z({},e.props),{},{key:r}),o?void 0:t))}function v(t,i,c){var f=K(t);return K(i).reduce((function(t,i,h){var g,y,b,w=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,d,n.language);if("tag"===i.type){var E=f[parseInt(i.name,10)];!E&&1===c.length&&c[0][i.name]&&(E=c[0][i.name]),E||(E={});var x=0!==Object.keys(i.attrs).length?(g={props:i.attrs},(b=Z({},y=E)).props=Object.assign(g.props,y.props),b):E,S=(0,a.isValidElement)(x),_=S&&H(i,!0)&&!i.voidElement,k=u&&"object"===(0,o.Z)(x)&&x.dummy&&!S,O="object"===(0,o.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof x){var C=n.services.interpolator.interpolate(x,d,n.language);t.push(C)}else if(H(x)||_)m(x,p(x,i,c),t,h);else if(k){var P=v(f,i.children,c);t.push((0,a.cloneElement)(x,Z(Z({},x.props),{},{key:h}),P))}else if(Number.isNaN(parseFloat(i.name)))if(O)m(x,p(x,i,c),t,h,i.voidElement);else if(r.transSupportBasicHtmlNodes&&l.indexOf(i.name)>-1)if(i.voidElement)t.push((0,a.createElement)(i.name,{key:"".concat(i.name,"-").concat(h)}));else{var N=v(f,i.children,c);t.push((0,a.createElement)(i.name,{key:"".concat(i.name,"-").concat(h)},N))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var T=v(f,i.children,c);t.push("<".concat(i.name,">").concat(T,"</").concat(i.name,">"))}else if("object"!==(0,o.Z)(x)||S)1===i.children.length&&w?t.push((0,a.cloneElement)(x,Z(Z({},x.props),{},{key:h}),w)):t.push((0,a.cloneElement)(x,Z(Z({},x.props),{},{key:h})));else{var j=i.children[0]?w:null;j&&t.push(j)}}else if("text"===i.type){var L=r.transWrapTextNodes,I=s?r.unescape(n.services.interpolator.interpolate(i.content,d,n.language)):n.services.interpolator.interpolate(i.content,d,n.language);L?t.push((0,a.createElement)(L,{key:"".concat(i.name,"-").concat(h)},I)):t.push(I)}return t}),[])}return V(v([{dummy:!0,children:e||[]}],f,K(e||[]))[0])}(p||t,L?k(L,M):T,S,C,M,y),A=void 0!==i?i:C.defaultTransParent;return A?(0,a.createElement)(A,b,R):R}function Y(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 G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y(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)?Y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(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 J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=function(e,t){var n=(0,a.useRef)();return(0,a.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,a.useContext)(_)||{},o=r.i18n,i=r.defaultNS,s=n||o||N();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new C),!s){D("You will need to pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[l,{},!1];return u.t=l,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&D("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=J(J(J({},O()),s.options.react),t),f=c.useSuspense,d=c.keyPrefix,p=e||i||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);var h=(s.isInitialized||s.initializedStoreOnce)&&p.every((function(e){return $(e,s,c)}));function m(){return s.getFixedT(null,"fallback"===c.nsMode?p:p[0],d)}var v=(0,a.useState)(m),g=G(v,2),y=g[0],b=g[1],w=p.join(),E=X(w),x=(0,a.useRef)(!0);(0,a.useEffect)((function(){var e=c.bindI18n,t=c.bindI18nStore;function n(){x.current&&b(m)}return x.current=!0,h||f||R(s,p,(function(){x.current&&b(m)})),h&&E&&E!==w&&x.current&&b(m),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){x.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,w]);var S=(0,a.useRef)(!0);(0,a.useEffect)((function(){x.current&&!S.current&&b(m),S.current=!1}),[s,d]);var k=[y,s,h];if(k.t=y,k.i18n=s,k.ready=h,h)return k;if(!h&&!f)return k;throw new Promise((function(e){R(s,p,(function(){e()}))}))}var te=["forwardedRef"];function ne(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function o(o){var i=o.forwardedRef,s=r(o,te),l=G(ee(e,re(re({},s),{},{keyPrefix:t.keyPrefix})),3),u=l[0],c=l[1],f=l[2],d=re(re({},s),{},{t:u,i18n:c,tReady:f});return t.withRef&&i?d.ref=i:!t.withRef&&i&&(d.forwardedRef=i),(0,a.createElement)(n,d)}return o.displayName="withI18nextTranslation(".concat(F(n),")"),o.WrappedComponent=n,t.withRef?(0,a.forwardRef)((function(e,t){return(0,a.createElement)(o,Object.assign({},e,{forwardedRef:t}))})):o}}var ie=["ns","children"];function ae(e){var t=e.ns,n=e.children,o=G(ee(t,r(e,ie)),3),i=o[0],a=o[1],s=o[2];return n(i,{i18n:a,lng:a.language},s)}function se(e){var t=e.i18n,n=e.defaultNS,r=e.children,o=(0,a.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,a.createElement)(_.Provider,{value:o},r)}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.i18n,o=(0,a.useContext)(_)||{},i=o.i18n,s=r||i||N();s.options&&s.options.isClone||(e&&!s.initializedStoreOnce&&(s.services.resourceStore.data=e,s.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),s.options.ns),s.initializedStoreOnce=!0,s.isInitialized=!0),t&&!s.initializedLanguageOnce&&(s.changeLanguage(t),s.initializedLanguageOnce=!0))}var ue=["initialI18nStore","initialLanguage"];function ce(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 fe(){return function(e){function t(t){var n=t.initialI18nStore,o=t.initialLanguage,s=r(t,ue);return le(n,o),(0,a.createElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s))}return t.getInitialProps=j(e),t.displayName="withI18nextSSR(".concat(F(e),")"),t.WrappedComponent=e,t}}var de=function(){return""},pe=function(){return""},he=function(){return""},me=function(){return""},ve=function(){return""},ge=function(){return""}},8856:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.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")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:S.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function P(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 N(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+P(l,0):i,E(a)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),N(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",E(e))for(var u=0;u<e.length;u++){var c=i+P(s=e[u],u);l+=N(s,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=N(s=s.value,t,o,c=i+P(s,u++),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 l}function T(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function j(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 L={current:null},I={transition:null},M={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.2.0"},3248:(e,t,n)=>{"use strict";e.exports=n(8856)},1099:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:()=>ae.W,AsyncSubject:()=>B,BehaviorSubject:()=>w,ConnectableObservable:()=>m,EMPTY:()=>C.E,EmptyError:()=>se,GroupedObservable:()=>g,NEVER:()=>it,Notification:()=>R,NotificationKind:()=>N,ObjectUnsubscribedError:()=>s,Observable:()=>r.y,ReplaySubject:()=>F,Scheduler:()=>S,Subject:()=>f,Subscriber:()=>i.L,Subscription:()=>a.w,TimeoutError:()=>ue,UnsubscriptionError:()=>le.B,VirtualAction:()=>te,VirtualTimeScheduler:()=>ee,animationFrame:()=>X,animationFrameScheduler:()=>J,asap:()=>q,asapScheduler:()=>W,async:()=>G,asyncScheduler:()=>Y,bindCallback:()=>pe,bindNodeCallback:()=>ve,combineLatest:()=>je,concat:()=>He,config:()=>Nt.v,defer:()=>Ve,empty:()=>C.c,forkJoin:()=>Ke,from:()=>De,fromEvent:()=>Ye,fromEventPattern:()=>Qe,generate:()=>Je,identity:()=>oe.y,iif:()=>et,interval:()=>nt,isObservable:()=>ie,merge:()=>ot,never:()=>at,noop:()=>re,observable:()=>b.L,of:()=>I,onErrorResumeNext:()=>st,pairs:()=>lt,partition:()=>ht,pipe:()=>ne.z,queue:()=>O,queueScheduler:()=>k,race:()=>mt,range:()=>yt,scheduled:()=>Me,throwError:()=>M,timer:()=>wt,using:()=>xt,zip:()=>St});var r=n(215),o=n(222),i=n(9457),a=n(7552),s=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),l=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return o.ZT(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(a.w),u=n(5947),c=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return o.ZT(t,e),t}(i.L),f=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o.ZT(t,e),t.prototype[u.b]=function(){return new c(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new s;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new s;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new s;return this.hasError?(e.error(this.thrownError),a.w.EMPTY):this.isStopped?(e.complete(),a.w.EMPTY):(this.observers.push(e),new l(this,e))},t.prototype.asObservable=function(){var e=new r.y;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(r.y),d=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return o.ZT(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.w.EMPTY},t}(f),p=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new h(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),h=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o.ZT(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.L),m=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o.ZT(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new a.w).add(this.source.subscribe(new v(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.w.EMPTY)),e},t.prototype.refCount=function(){return(e=this).lift(new p(e));var e},t}(r.y),v=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o.ZT(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(c);i.L,i.L;i.L;var g=function(e){function t(t,n,r){var o=e.call(this)||this;return o.key=t,o.groupSubject=n,o.refCountSubscription=r,o}return o.ZT(t,e),t.prototype._subscribe=function(e){var t=new a.w,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new y(n)),t.add(r.subscribe(e)),t},t}(r.y),y=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return o.ZT(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(a.w),b=n(579),w=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return o.ZT(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(f),E=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return o.ZT(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return o.ZT(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(a.w)),x=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o.ZT(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(E),S=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),_=function(e){function t(n,r){void 0===r&&(r=S.now);var o=e.call(this,n,(function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return o.ZT(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(S),k=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t}(_))(x),O=k,C=n(9348);function P(e){return e&&"function"==typeof e.schedule}var N,T=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}};function j(e,t){return new r.y((function(n){var r=new a.w,o=0;return r.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function L(e,t){return t?j(e,t):new r.y(T(e))}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return P(n)?(e.pop(),j(e,n)):L(e)}function M(e,t){return t?new r.y((function(n){return t.schedule(D,0,{error:e,subscriber:n})})):new r.y((function(t){return t.error(e)}))}function D(e){var t=e.error;e.subscriber.error(t)}N||(N={});var R=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return I(this.value);case"E":return M(this.error);case"C":return(0,C.c)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),A=function(e){function t(t,n,r){void 0===r&&(r=0);var o=e.call(this,t)||this;return o.scheduler=n,o.delay=r,o}return o.ZT(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new $(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(R.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(R.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(R.createComplete()),this.unsubscribe()},t}(i.L),$=function(){return function(e,t){this.notification=e,this.destination=t}}(),F=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=e.call(this)||this;return o.scheduler=r,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=t<1?1:t,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return o.ZT(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new U(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new s;if(this.isStopped||this.hasError?t=a.w.EMPTY:(this.observers.push(e),t=new l(this,e)),o&&e.add(e=new A(e,o)),n)for(var u=0;u<i&&!e.closed;u++)e.next(r[u]);else for(u=0;u<i&&!e.closed;u++)e.next(r[u].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||O).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(e-r[i].time<n);)i++;return o>t&&(i=Math.max(i,o-t)),i>0&&r.splice(0,i),r},t}(f),U=function(){return function(e,t){this.time=e,this.value=t}}(),B=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return o.ZT(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),a.w.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),a.w.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(f),z=1,Z=function(){return Promise.resolve()}(),H={};function V(e){return e in H&&(delete H[e],!0)}var K=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o.ZT(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=(o=t.flush.bind(t,null),i=z++,H[i]=!0,Z.then((function(){return V(i)&&o()})),i)));var o,i},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(V(n),t.scheduled=void 0)},t}(E),W=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,o=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this.active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(_))(K),q=W,Y=new _(E),G=Y,Q=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return o.ZT(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(E),J=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,o=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this.active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(_))(Q),X=J,ee=function(e){function t(t,n){void 0===t&&(t=te),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this,t,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return o.ZT(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(_),te=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.index=r,o.active=!0,o.index=t.index=r,o}return o.ZT(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(n,r)},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(E),ne=n(5724);function re(){}var oe=n(3823);function ie(e){return!!e&&(e instanceof r.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var ae=n(233),se=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),le=n(437),ue=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),ce=n(821),fe=n(4537),de=n(1589);function pe(e,t,n){if(t){if(!P(t))return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return pe(e,n).apply(void 0,r).pipe((0,ce.U)((function(e){return(0,de.k)(e)?t.apply(void 0,e):t(e)})))};n=t}return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i,a=this,s={context:a,subject:i,callbackFunc:e,scheduler:n};return new r.y((function(r){if(n){var o={args:t,subscriber:r,params:s};return n.schedule(he,0,o)}if(!i){i=new B;try{e.apply(a,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.next(e.length<=1?e[0]:e),i.complete()}]))}catch(e){(0,fe._)(i)?i.error(e):console.warn(e)}}return i.subscribe(r)}))}}function he(e){var t=this,n=e.args,r=e.subscriber,o=e.params,i=o.callbackFunc,a=o.context,s=o.scheduler,l=o.subject;if(!l){l=o.subject=new B;try{i.apply(a,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length<=1?e[0]:e;t.add(s.schedule(me,0,{value:r,subject:l}))}]))}catch(e){l.error(e)}}this.add(l.subscribe(r))}function me(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function ve(e,t,n){if(t){if(!P(t))return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return ve(e,n).apply(void 0,r).pipe((0,ce.U)((function(e){return(0,de.k)(e)?t.apply(void 0,e):t(e)})))};n=t}return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new r.y((function(r){var o=i.context,a=i.subject;if(n)return n.schedule(ge,0,{params:i,subscriber:r,context:o});if(!a){a=i.subject=new B;try{e.apply(o,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift();n?a.error(n):(a.next(e.length<=1?e[0]:e),a.complete())}]))}catch(e){(0,fe._)(a)?a.error(e):console.warn(e)}}return a.subscribe(r)}))}}function ge(e){var t=this,n=e.params,r=e.subscriber,o=e.context,i=n.callbackFunc,a=n.args,s=n.scheduler,l=n.subject;if(!l){l=n.subject=new B;try{i.apply(o,a.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.shift();if(r)t.add(s.schedule(be,0,{err:r,subject:l}));else{var o=e.length<=1?e[0]:e;t.add(s.schedule(ye,0,{value:o,subject:l}))}}]))}catch(e){this.add(s.schedule(be,0,{err:e,subject:l}))}}this.add(l.subscribe(r))}function ye(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function be(e){var t=e.err;e.subject.error(t)}var we=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(i.L),Ee=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return o.ZT(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(i.L),xe=n(7774);function Se(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var _e=Se(),ke=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Oe(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Ce=n(7086),Pe=function(e){if(e&&"function"==typeof e[b.L])return r=e,function(e){var t=r[b.L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(ke(e))return T(e);if(Oe(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,xe.z),e};if(e&&"function"==typeof e[_e])return t=e,function(e){for(var n=t[_e]();;){var r=void 0;try{r=n.next()}catch(t){return e.error(t),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,r,o=(0,Ce.K)(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+o+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Ne(e,t,n,o,i){if(void 0===i&&(i=new Ee(e,n,o)),!i.closed)return t instanceof r.y?t.subscribe(i):Pe(t)(i)}var Te={};function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=void 0,r=void 0;return P(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&(0,de.k)(e[0])&&(e=e[0]),L(e,r).lift(new Le(n))}var Le=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ie(e,this.resultSelector))},e}(),Ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return o.ZT(t,e),t.prototype._next=function(e){this.values.push(Te),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(Ne(this,r,void 0,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n){var r=this.values,o=r[n],i=this.toRespond?o===Te?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(we);function Me(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[b.L]}(e))return function(e,t){return new r.y((function(n){var r=new a.w;return r.add(t.schedule((function(){var o=e[b.L]();r.add(o.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Oe(e))return function(e,t){return new r.y((function(n){var r=new a.w;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(ke(e))return j(e,t);if(function(e){return e&&"function"==typeof e[_e]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.y((function(n){var r,o=new a.w;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(t.schedule((function(){r=e[_e](),o.add(t.schedule((function(){if(!n.closed){var e,t;try{var o=r.next();e=o.value,t=o.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),o}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function De(e,t){return t?Me(e,t):e instanceof r.y?e:new r.y(Pe(e))}var Re=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return o.ZT(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(i.L),Ae=(i.L,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.ZT(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(i.L));function $e(e,t){if(!t.closed){if(e instanceof r.y)return e.subscribe(t);var n;try{n=Pe(e)(t)}catch(e){t.error(e)}return n}}function Fe(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(Fe((function(n,r){return De(e(n,r)).pipe((0,ce.U)((function(e,o){return t(n,e,r,o)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Ue(e,n))})}i.L;var Ue=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Be(e,this.project,this.concurrent))},e}(),Be=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return o.ZT(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t)},t.prototype._innerSub=function(e){var t=new Re(this),n=this.destination;n.add(t);var r=$e(e,t);r!==t&&n.add(r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(Ae);function ze(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Fe(oe.y,e)}function Ze(){return ze(1)}function He(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ze()(I.apply(void 0,e))}function Ve(e){return new r.y((function(t){var n;try{n=e()}catch(e){return void t.error(e)}return(n?De(n):(0,C.c)()).subscribe(t)}))}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=e[0];if((0,de.k)(n))return We(n,null);if((0,Ce.K)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return We(r.map((function(e){return n[e]})),r)}}if("function"==typeof e[e.length-1]){var o=e.pop();return We(e=1===e.length&&(0,de.k)(e[0])?e[0]:e,null).pipe((0,ce.U)((function(e){return o.apply(void 0,e)})))}return We(e,null)}function We(e,t){return new r.y((function(n){var r=e.length;if(0!==r)for(var o=new Array(r),i=0,a=0,s=function(s){var l=De(e[s]),u=!1;n.add(l.subscribe({next:function(e){u||(u=!0,a++),o[s]=e},error:function(e){return n.error(e)},complete:function(){++i!==r&&u||(a===r&&n.next(t?t.reduce((function(e,t,n){return e[t]=o[n],e}),{}):o),n.complete())}}))},l=0;l<r;l++)s(l);else n.complete()}))}var qe=n(1744);function Ye(e,t,n,o){return(0,qe.m)(n)&&(o=n,n=void 0),o?Ye(e,t,n).pipe((0,ce.U)((function(e){return(0,de.k)(e)?o.apply(void 0,e):o(e)}))):new r.y((function(r){Ge(e,t,(function(e){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}function Ge(e,t,n,r,o){var i;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,o),i=function(){return a.removeEventListener(t,n,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),i=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),i=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u<c;u++)Ge(e[u],t,n,r,o)}r.add(i)}function Qe(e,t,n){return n?Qe(e,t).pipe((0,ce.U)((function(e){return(0,de.k)(e)?n.apply(void 0,e):n(e)}))):new r.y((function(n){var r,o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)};try{r=e(o)}catch(e){return void n.error(e)}if((0,qe.m)(t))return function(){return t(o,r)}}))}function Je(e,t,n,o,i){var a,s;if(1==arguments.length){var l=e;s=l.initialState,t=l.condition,n=l.iterate,a=l.resultSelector||oe.y,i=l.scheduler}else void 0===o||P(o)?(s=e,a=oe.y,i=o):(s=e,a=o);return new r.y((function(e){var r=s;if(i)return i.schedule(Xe,0,{subscriber:e,iterate:n,condition:t,resultSelector:a,state:r});for(;;){if(t){var o=void 0;try{o=t(r)}catch(t){return void e.error(t)}if(!o){e.complete();break}}var l=void 0;try{l=a(r)}catch(t){return void e.error(t)}if(e.next(l),e.closed)break;try{r=n(r)}catch(t){return void e.error(t)}}}))}function Xe(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){return void t.error(e)}else e.needIterate=!0;if(n){var r=void 0;try{r=n(e.state)}catch(e){return void t.error(e)}if(!r)return void t.complete();if(t.closed)return}var o;try{o=e.resultSelector(e.state)}catch(e){return void t.error(e)}if(!t.closed&&(t.next(o),!t.closed))return this.schedule(e)}}function et(e,t,n){return void 0===t&&(t=C.E),void 0===n&&(n=C.E),Ve((function(){return e()?t:n}))}function tt(e){return!(0,de.k)(e)&&e-parseFloat(e)+1>=0}function nt(e,t){return void 0===e&&(e=0),void 0===t&&(t=G),(!tt(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=G),new r.y((function(n){return n.add(t.schedule(rt,e,{subscriber:n,counter:0,period:e})),n}))}function rt(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}function ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,o=null,i=e[e.length-1];return P(i)?(o=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===o&&1===e.length&&e[0]instanceof r.y?e[0]:ze(n)(L(e,o))}var it=new r.y(re);function at(){return it}function st(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return C.E;var n=e[0],o=e.slice(1);return 1===e.length&&(0,de.k)(n)?st.apply(void 0,n):new r.y((function(e){var t=function(){return e.add(st.apply(void 0,o).subscribe(e))};return De(n).subscribe({next:function(t){e.next(t)},error:t,complete:t})}))}function lt(e,t){return t?new r.y((function(n){var r=Object.keys(e),o=new a.w;return o.add(t.schedule(ut,0,{keys:r,index:0,subscriber:n,subscription:o,obj:e})),o})):new r.y((function(t){for(var n=Object.keys(e),r=0;r<n.length&&!t.closed;r++){var o=n[r];e.hasOwnProperty(o)&&t.next([o,e[o]])}t.complete()}))}function ut(e){var t=e.keys,n=e.index,r=e.subscriber,o=e.subscription,i=e.obj;if(!r.closed)if(n<t.length){var a=t[n];r.next([a,i[a]]),o.add(this.schedule({keys:t,index:n+1,subscriber:r,subscription:o,obj:i}))}else r.complete()}function ct(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}function ft(e,t){return function(n){return n.lift(new dt(e,t))}}var dt=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new pt(e,this.predicate,this.thisArg))},e}(),pt=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return o.ZT(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.L);function ht(e,t,n){return[ft(t,n)(new r.y(Pe(e))),ft(ct(t,n))(new r.y(Pe(e)))]}function mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!(0,de.k)(e[0]))return e[0];e=e[0]}return L(e,void 0).lift(new vt)}var vt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new gt(e))},e}(),gt=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return o.ZT(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var r=Ne(this,e[n],void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},t.prototype.notifyNext=function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var o=this.subscriptions[r];o.unsubscribe(),this.remove(o)}this.subscriptions=null}this.destination.next(t)},t}(we);function yt(e,t,n){return void 0===e&&(e=0),new r.y((function(r){void 0===t&&(t=e,e=0);var o=0,i=e;if(n)return n.schedule(bt,0,{index:o,count:t,start:e,subscriber:r});for(;;){if(o++>=t){r.complete();break}if(r.next(i++),r.closed)break}}))}function bt(e){var t=e.start,n=e.index,r=e.count,o=e.subscriber;n>=r?o.complete():(o.next(t),o.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}function wt(e,t,n){void 0===e&&(e=0);var o=-1;return tt(t)?o=Number(t)<1?1:Number(t):P(t)&&(n=t),P(n)||(n=G),new r.y((function(t){var r=tt(e)?e:+e-n.now();return n.schedule(Et,r,{index:0,period:o,subscriber:t})}))}function Et(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function xt(e,t){return new r.y((function(n){var r,o;try{r=e()}catch(e){return void n.error(e)}try{o=t(r)}catch(e){return void n.error(e)}var i=(o?De(o):C.E).subscribe(n);return function(){i.unsubscribe(),r&&r.unsubscribe()}}))}function St(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),L(e,void 0).lift(new _t(n))}var _t=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new kt(e,this.resultSelector))},e}(),kt=function(e){function t(t,n,r){void 0===r&&(r=Object.create(null));var o=e.call(this,t)||this;return o.resultSelector=n,o.iterators=[],o.active=0,o.resultSelector="function"==typeof n?n:void 0,o}return o.ZT(t,e),t.prototype._next=function(e){var t=this.iterators;(0,de.k)(e)?t.push(new Ct(e)):"function"==typeof e[_e]?t.push(new Ot(e[_e]())):t.push(new Pt(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var r=e[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,r=0;r<t;r++)if("function"==typeof(a=e[r]).hasValue&&!a.hasValue())return;var o=!1,i=[];for(r=0;r<t;r++){var a,s=(a=e[r]).next();if(a.hasCompleted()&&(o=!0),s.done)return void n.complete();i.push(s.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),o&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.L),Ot=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return Boolean(e&&e.done)},e}(),Ct=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[_e]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Pt=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.parent=n,o.observable=r,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return o.ZT(t,e),t.prototype[_e]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return $e(this.observable,new Re(this))},t}(Ae),Nt=n(4238)},215:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var r=n(4537),o=n(9457),i=n(5947),a=n(9961),s=n(579),l=n(5724),u=n(4238),c=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,s=function(e,t,n){if(e){if(e instanceof o.L)return e;if(e[i.b])return e[i.b]()}return e||t||n?new o.L(e,t,n):new o.L(a.c)}(e,t,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||u.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),(0,r._)(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[s.L]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:(0,l.U)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function f(e){if(e||(e=u.v.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},9961:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(4238),o=n(7774),i={closed:!0,next:function(e){},error:function(e){if(r.v.useDeprecatedSynchronousErrorHandling)throw e;(0,o.z)(e)},complete:function(){}}},9457:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var r=n(222),o=n(1744),i=n(9961),a=n(7552),s=n(5947),l=n(4238),u=n(7774),c=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.c;break;case 1:if(!n){a.destination=i.c;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,o)}return a}return r.ZT(t,e),t.prototype[s.b]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.w),f=function(e){function t(t,n,r,a){var s,l=e.call(this)||this;l._parentSubscriber=t;var u=l;return(0,o.m)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==i.c&&(u=Object.create(n),(0,o.m)(u.unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(l))),l._context=u,l._next=s,l._error=r,l._complete=a,l}return r.ZT(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;l.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=l.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,u.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,u.z)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};l.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),l.v.useDeprecatedSynchronousErrorHandling)throw e;(0,u.z)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!l.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return l.v.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):((0,u.z)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(c)},7552:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(1589),o=n(7086),i=n(1744),a=n(437),s=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,s=n._parentOrParents,u=n._ctorUnsubscribe,c=n._unsubscribe,f=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof e)s.remove(this);else if(null!==s)for(var d=0;d<s.length;++d)s[d].remove(this);if((0,i.m)(c)){u&&(this._unsubscribe=void 0);try{c.call(this)}catch(e){t=e instanceof a.B?l(e.errors):[e]}}if((0,r.k)(f)){d=-1;for(var p=f.length;++d<p;){var h=f[d];if((0,o.K)(h))try{h.unsubscribe()}catch(e){t=t||[],e instanceof a.B?t=t.concat(l(e.errors)):t.push(e)}}}if(t)throw new a.B(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function l(e){return e.reduce((function(e,t){return e.concat(t instanceof a.B?t.errors:t)}),[])}},4238:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},9348:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,c:()=>i});var r=n(215),o=new r.y((function(e){return e.complete()}));function i(e){return e?function(e){return new r.y((function(t){return e.schedule((function(){return t.complete()}))}))}(e):o}},821:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});var r=n(222),o=n(9457);function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.thisArg))},e}(),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.ZT(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.L)},6705:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(222),o=n(9457),i=n(233),a=n(9348);function s(e){return function(t){return 0===e?(0,a.c)():t.lift(new l(e))}}var l=function(){function e(e){if(this.total=e,this.total<0)throw new i.W}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.ZT(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(o.L)},579:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},5947:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},233:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},437:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var r=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},4537:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(9457);function o(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.L?o:null}return!0}},7774:(e,t,n)=>{"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,{z:()=>r})},3823:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{y:()=>r})},1589:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var r=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},1744:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e}n.d(t,{m:()=>r})},7086:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,{K:()=>r})},5724:(e,t,n)=>{"use strict";n.d(t,{U:()=>i,z:()=>o});var r=n(3823);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)}function i(e){return 0===e.length?r.y:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}},222:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>o});var r=function(e,t){return(r=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)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},3792:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(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,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(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,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,d=null,p=3,h=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="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)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function E(e){if(v=!1,w(e),!m)if(null!==r(u))m=!0,I(x);else{var t=r(c);null!==t&&M(E,t.startTime-e)}}function x(e,n){m=!1,v&&(v=!1,y(O),O=-1),h=!0;var i=p;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!N());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?d.callback=s:d===r(u)&&o(u),w(n)}else o(u);d=r(u)}if(null!==d)var l=!0;else{var f=r(c);null!==f&&M(E,f.startTime-n),l=!1}return l}finally{d=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,_=!1,k=null,O=-1,C=5,P=-1;function N(){return!(t.unstable_now()-P<C)}function T(){if(null!==k){var e=t.unstable_now();P=e;var n=!0;try{n=k(!0,e)}finally{n?S():(_=!1,k=null)}}else _=!1}if("function"==typeof b)S=function(){b(T)};else if("undefined"!=typeof MessageChannel){var j=new MessageChannel,L=j.port2;j.port1.onmessage=T,S=function(){L.postMessage(null)}}else S=function(){g(T,0)};function I(e){k=e,_||(_=!0,S())}function M(e,n){O=g((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(){m||h||(m=!0,I(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"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=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=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i: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:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(v?(y(O),O=-1):v=!0,M(E,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,I(x))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},965:(e,t,n)=>{"use strict";e.exports=n(3792)},9716:(e,t,n)=>{const r=Symbol("SemVer ANY");class o{static get ANY(){return r}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return s(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new c(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new c(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=s(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=s(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||i&&a||l||u}}e.exports=o;const{re:i,t:a}=n(1554),s=n(7243),l=n(585),u=n(6336),c=n(1691)},1691:(e,t,n)=>{class r{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const n=t?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(n,S(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],u),i("comparator trim",e,s[l.COMPARATORTRIM]),e=(e=(e=e.replace(s[l.TILDETRIM],c)).replace(s[l.CARETTRIM],f)).split(/\s+/).join(" ");const r=t?s[l.COMPARATORLOOSE]:s[l.COMPARATOR];return e.split(" ").map((e=>p(e,this.options))).join(" ").split(/\s+/).map((e=>x(e,this.options))).filter(this.options.loose?e=>!!e.match(r):()=>!0).map((e=>new o(e,this.options)))}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>d(n,t)&&e.set.some((e=>d(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(_(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const o=n(9716),i=n(585),a=n(6336),{re:s,t:l,comparatorTrimReplace:u,tildeTrimReplace:c,caretTrimReplace:f}=n(1554),d=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},p=(e,t)=>(i("comp",e,t),e=g(e,t),i("caret",e),e=m(e,t),i("tildes",e),e=b(e,t),i("xrange",e),e=E(e,t),i("stars",e),e),h=e=>!e||"x"===e.toLowerCase()||"*"===e,m=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),h(n)?s="":h(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:h(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(i("replaceTilde pr",a),s=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",s),s}))},g=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),h(n)?l="":h(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:h(a)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(i("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${s} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${s} <${+n+1}.0.0-0`):(i("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",l),l}))},b=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>w(e,t))).join(" ")),w=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const u=h(o),c=u||h(a),f=c||h(s),d=f;return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(c&&(a=0),s=0,">"===r?(r=">=",c?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",c?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+o}.${a}.${s}${l}`):c?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:f&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),i("xRange return",n),n}))},E=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),x=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),S=e=>(t,n,r,o,i,a,s,l,u,c,f,d,p)=>`${n=h(r)?"":h(o)?`>=${r}.0.0${e?"-0":""}`:h(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=h(u)?"":h(c)?`<${+u+1}.0.0-0`:h(f)?`<${u}.${+c+1}.0-0`:d?`<=${u}.${c}.${f}-${d}`:e?`<${u}.${c}.${+f+1}-0`:`<=${l}`}`.trim(),_=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},6336:(e,t,n)=>{const r=n(585),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=n(1998),{re:a,t:s}=n(1554),{compareIdentifiers:l}=n(9052);class u{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return l(n,o)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return l(n,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},4262:(e,t,n)=>{const r=n(8642);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},7243:(e,t,n)=>{const r=n(6348),o=n(2280),i=n(2463),a=n(5219),s=n(905),l=n(5909);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,u);case"!=":return o(e,n,u);case">":return i(e,n,u);case">=":return a(e,n,u);case"<":return s(e,n,u);case"<=":return l(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},5485:(e,t,n)=>{const r=n(6336),o=n(8642),{re:i,t:a}=n(1554);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=i[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),i[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[a.COERCERTL].lastIndex=-1}else n=e.match(i[a.COERCE]);return null===n?null:o(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},7775:(e,t,n)=>{const r=n(6336);e.exports=(e,t,n)=>{const o=new r(e,n),i=new r(t,n);return o.compare(i)||o.compareBuild(i)}},611:(e,t,n)=>{const r=n(8220);e.exports=(e,t)=>r(e,t,!0)},8220:(e,t,n)=>{const r=n(6336);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},2985:(e,t,n)=>{const r=n(8642),o=n(6348);e.exports=(e,t)=>{if(o(e,t))return null;{const n=r(e),o=r(t),i=n.prerelease.length||o.prerelease.length,a=i?"pre":"",s=i?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==o[e])return a+e;return s}}},6348:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>0===r(e,t,n)},2463:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(e,t,n)>0},5219:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(e,t,n)>=0},3312:(e,t,n)=>{const r=n(6336);e.exports=(e,t,n,o)=>{"string"==typeof n&&(o=n,n=void 0);try{return new r(e,n).inc(t,o).version}catch(e){return null}}},905:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(e,t,n)<0},5909:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(e,t,n)<=0},1113:(e,t,n)=>{const r=n(6336);e.exports=(e,t)=>new r(e,t).major},4404:(e,t,n)=>{const r=n(6336);e.exports=(e,t)=>new r(e,t).minor},2280:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>0!==r(e,t,n)},8642:(e,t,n)=>{const{MAX_LENGTH:r}=n(1998),{re:o,t:i}=n(1554),a=n(6336);e.exports=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new a(e,t)}catch(e){return null}}},7352:(e,t,n)=>{const r=n(6336);e.exports=(e,t)=>new r(e,t).patch},8942:(e,t,n)=>{const r=n(8642);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},1333:(e,t,n)=>{const r=n(8220);e.exports=(e,t,n)=>r(t,e,n)},291:(e,t,n)=>{const r=n(7775);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},3874:(e,t,n)=>{const r=n(1691);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},5040:(e,t,n)=>{const r=n(7775);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},4589:(e,t,n)=>{const r=n(8642);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},3608:(e,t,n)=>{const r=n(1554);e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n(1998).SEMVER_SPEC_VERSION,SemVer:n(6336),compareIdentifiers:n(9052).compareIdentifiers,rcompareIdentifiers:n(9052).rcompareIdentifiers,parse:n(8642),valid:n(4589),clean:n(4262),inc:n(3312),diff:n(2985),major:n(1113),minor:n(4404),patch:n(7352),prerelease:n(8942),compare:n(8220),rcompare:n(1333),compareLoose:n(611),compareBuild:n(7775),sort:n(5040),rsort:n(291),gt:n(2463),lt:n(905),eq:n(6348),neq:n(2280),gte:n(5219),lte:n(5909),cmp:n(7243),coerce:n(5485),Comparator:n(9716),Range:n(1691),satisfies:n(3874),toComparators:n(6166),maxSatisfying:n(515),minSatisfying:n(3548),minVersion:n(7103),validRange:n(1122),outside:n(5246),gtr:n(7479),ltr:n(8037),intersects:n(8153),simplifyRange:n(4026),subset:n(2613)}},1998:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},585:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},9052:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),o=t.test(n);return r&&o&&(e=+e,n=+n),e===n?0:r&&!o?-1:o&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},1554:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r}=n(1998),o=n(585),i=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let l=0;const u=(e,t,n)=>{const r=l++;o(r,t),s[e]=r,a[r]=t,i[r]=new RegExp(t,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),u("FULL",`^${a[s.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),u("LOOSE",`^${a[s.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),u("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",a[s.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},7479:(e,t,n)=>{const r=n(5246);e.exports=(e,t,n)=>r(e,t,">",n)},8153:(e,t,n)=>{const r=n(1691);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))},8037:(e,t,n)=>{const r=n(5246);e.exports=(e,t,n)=>r(e,t,"<",n)},515:(e,t,n)=>{const r=n(6336),o=n(1691);e.exports=(e,t,n)=>{let i=null,a=null,s=null;try{s=new o(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(i&&-1!==a.compare(e)||(i=e,a=new r(i,n)))})),i}},3548:(e,t,n)=>{const r=n(6336),o=n(1691);e.exports=(e,t,n)=>{let i=null,a=null,s=null;try{s=new o(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(i&&1!==a.compare(e)||(i=e,a=new r(i,n)))})),i}},7103:(e,t,n)=>{const r=n(6336),o=n(1691),i=n(2463);e.exports=(e,t)=>{e=new o(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t)e.set[t].forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!i(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));return n&&e.test(n)?n:null}},5246:(e,t,n)=>{const r=n(6336),o=n(9716),{ANY:i}=o,a=n(1691),s=n(3874),l=n(2463),u=n(905),c=n(5909),f=n(5219);e.exports=(e,t,n,d)=>{let p,h,m,v,g;switch(e=new r(e,d),t=new a(t,d),n){case">":p=l,h=c,m=u,v=">",g=">=";break;case"<":p=u,h=f,m=l,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let a=null,s=null;if(r.forEach((e=>{e.semver===i&&(e=new o(">=0.0.0")),a=a||e,s=s||e,p(e.semver,a.semver,d)?a=e:m(e.semver,s.semver,d)&&(s=e)})),a.operator===v||a.operator===g)return!1;if((!s.operator||s.operator===v)&&h(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}},4026:(e,t,n)=>{const r=n(3874),o=n(8220);e.exports=(e,t,n)=>{const i=[];let a=null,s=null;const l=e.sort(((e,t)=>o(e,t,n)));for(const e of l)r(e,t,n)?(s=e,a||(a=e)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const c=u.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return c.length<f.length?c:t}},2613:(e,t,n)=>{const r=n(1691),{ANY:o}=n(9716),i=n(3874),a=n(8220),s=(e,t,n)=>{if(1===e.length&&e[0].semver===o)return 1===t.length&&t[0].semver===o;const r=new Set;let s,c,f,d,p,h,m;for(const t of e)">"===t.operator||">="===t.operator?s=l(s,t,n):"<"===t.operator||"<="===t.operator?c=u(c,t,n):r.add(t.semver);if(r.size>1)return null;if(s&&c){if(f=a(s.semver,c.semver,n),f>0)return null;if(0===f&&(">="!==s.operator||"<="!==c.operator))return null}for(const e of r){if(s&&!i(e,String(s),n))return null;if(c&&!i(e,String(c),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}for(const e of t){if(m=m||">"===e.operator||">="===e.operator,h=h||"<"===e.operator||"<="===e.operator,s)if(">"===e.operator||">="===e.operator){if(d=l(s,e,n),d===e)return!1}else if(">="===s.operator&&!i(s.semver,String(e),n))return!1;if(c)if("<"===e.operator||"<="===e.operator){if(p=u(c,e,n),p===e)return!1}else if("<="===c.operator&&!i(c.semver,String(e),n))return!1;if(!e.operator&&(c||s)&&0!==f)return!1}return!(s&&h&&!c&&0!==f||c&&m&&!s&&0!==f)},l=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n)=>{e=new r(e,n),t=new r(t,n);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=s(r,e,n);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},6166:(e,t,n)=>{const r=n(1691);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},1122:(e,t,n)=>{const r=n(1691);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},6929:(e,t,n)=>{"use strict";n.d(t,{BL:()=>Fe,BP:()=>z,Gt:()=>Se,UO:()=>oe,d6:()=>ke,m9:()=>Ce});var r=Object.freeze({__proto__:null,get start(){return Fe},get ensureJQuerySupport(){return pe},get setBootstrapMaxTime(){return W},get setMountMaxTime(){return q},get setUnmountMaxTime(){return Y},get setUnloadMaxTime(){return G},get registerApplication(){return ke},get unregisterApplication(){return Ce},get getMountedApps(){return xe},get getAppStatus(){return _e},get unloadApplication(){return Pe},get checkActivityFunctions(){return Oe},get getAppNames(){return Se},get pathToActiveWhen(){return je},get navigateToUrl(){return oe},get triggerAppChange(){return De},get addErrorHandler(){return c},get removeErrorHandler(){return f},get mountRootParcel(){return z},get NOT_LOADED(){return h},get LOADING_SOURCE_CODE(){return m},get NOT_BOOTSTRAPPED(){return v},get BOOTSTRAPPING(){return g},get NOT_MOUNTED(){return y},get MOUNTING(){return b},get UPDATING(){return E},get LOAD_ERROR(){return S},get MOUNTED(){return w},get UNMOUNTING(){return x},get SKIP_BECAUSE_BROKEN(){return _}});function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).CustomEvent,s=function(){try{var e=new a("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?a:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},l=[];function u(e,t,n){var r=p(e,t,n);l.length?l.forEach((function(e){return e(r)})):setTimeout((function(){throw r}))}function c(e){if("function"!=typeof e)throw Error(d(28,!1));l.push(e)}function f(e){if("function"!=typeof e)throw Error(d(29,!1));var t=!1;return l=l.filter((function(n){var r=n===e;return t=t||r,!r})),t}function d(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(e,": ").concat(t?t+" ":"","See https://single-spa.js.org/error/?code=").concat(e).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function p(e,t,n){var r,o="".concat(N(t)," '").concat(C(t),"' died in status ").concat(t.status,": ");if(e instanceof Error){try{e.message=o+e.message}catch(e){}r=e}else{console.warn(d(30,!1,t.status,C(t)));try{r=Error(o+JSON.stringify(e))}catch(t){r=e}}return r.appOrParcelName=C(t),t.status=n,r}var h="NOT_LOADED",m="LOADING_SOURCE_CODE",v="NOT_BOOTSTRAPPED",g="BOOTSTRAPPING",y="NOT_MOUNTED",b="MOUNTING",w="MOUNTED",E="UPDATING",x="UNMOUNTING",S="LOAD_ERROR",_="SKIP_BECAUSE_BROKEN";function k(e){return e.status===w}function O(e){try{return e.activeWhen(window.location)}catch(t){return u(t,e,_),!1}}function C(e){return e.name}function P(e){return Boolean(e.unmountThisParcel)}function N(e){return P(e)?"parcel":"application"}function T(){for(var e=arguments.length-1;e>0;e--)for(var t in arguments[e])"__proto__"!==t&&(arguments[e-1][t]=arguments[e][t]);return arguments[0]}function j(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}function L(e){return e&&("function"==typeof e||(t=e,Array.isArray(t)&&!j(t,(function(e){return"function"!=typeof e}))));var t}function I(e,t){var n=e[t]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=N(e),o=C(e);return function(e){return n.reduce((function(n,i,a){return n.then((function(){var n=i(e);return M(n)?n:Promise.reject(d(15,!1,r,o,t,a))}))}),Promise.resolve())}}function M(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e,t){return Promise.resolve().then((function(){return e.status!==v?e:(e.status=g,e.bootstrap?Q(e,"bootstrap").then(n).catch((function(n){if(t)throw p(n,e,_);return u(n,e,_),e})):Promise.resolve().then(n))}));function n(){return e.status=y,e}}function R(e,t){return Promise.resolve().then((function(){if(e.status!==w)return e;e.status=x;var n=Object.keys(e.parcels).map((function(t){return e.parcels[t].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(t)throw p(r,e,_);u(r,e,_)}))})).then((function(){return e}));function r(){return Q(e,"unmount").then((function(){e.status=y})).catch((function(n){if(t)throw p(n,e,_);u(n,e,_)}))}}))}var A=!1,$=!1;function F(e,t){return Promise.resolve().then((function(){return e.status!==y?e:(A||(window.dispatchEvent(new s("single-spa:before-first-mount")),A=!0),Q(e,"mount").then((function(){return e.status=w,$||(window.dispatchEvent(new s("single-spa:first-mount")),$=!0),e})).catch((function(n){return e.status=w,R(e,!0).then(r,r);function r(){if(t)throw p(n,e,_);return u(n,e,_),e}})))}))}var U=0,B={parcels:{}};function z(){return Z.apply(B,arguments)}function Z(e,t){var n=this;if(!e||"object"!==o(e)&&"function"!=typeof e)throw Error(d(2,!1));if(e.name&&"string"!=typeof e.name)throw Error(d(3,!1,o(e.name)));if("object"!==o(t))throw Error(d(4,!1,name,o(t)));if(!t.domElement)throw Error(d(5,!1,name));var r,i=U++,a="function"==typeof e,s=a?e:function(){return Promise.resolve(e)},l={id:i,parcels:{},status:a?m:v,customProps:t,parentName:C(n),unmountThisParcel:function(){return g.then((function(){if(l.status!==w)throw Error(d(6,!1,name,l.status));return R(l,!0)})).then((function(e){return l.parentName&&delete n.parcels[l.id],e})).then((function(e){return c(e),e})).catch((function(e){throw l.status=_,f(e),e}))}};n.parcels[i]=l;var u=s();if(!u||"function"!=typeof u.then)throw Error(d(7,!1));var c,f,h=(u=u.then((function(e){if(!e)throw Error(d(8,!1));var t=e.name||"parcel-".concat(i);if(Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!L(e.bootstrap))throw Error(d(9,!1,t));if(!L(e.mount))throw Error(d(10,!1,t));if(!L(e.unmount))throw Error(d(11,!1,t));if(e.update&&!L(e.update))throw Error(d(12,!1,t));var n=I(e,"bootstrap"),o=I(e,"mount"),a=I(e,"unmount");l.status=v,l.name=t,l.bootstrap=n,l.mount=o,l.unmount=a,l.timeouts=J(e.timeouts),e.update&&(l.update=I(e,"update"),r.update=function(e){return l.customProps=e,H((t=l,Promise.resolve().then((function(){if(t.status!==w)throw Error(d(32,!1,C(t)));return t.status=E,Q(t,"update").then((function(){return t.status=w,t})).catch((function(e){throw p(e,t,_)}))}))));var t})}))).then((function(){return D(l,!0)})),g=h.then((function(){return F(l,!0)})),b=new Promise((function(e,t){c=e,f=t}));return r={mount:function(){return H(Promise.resolve().then((function(){if(l.status!==y)throw Error(d(13,!1,name,l.status));return n.parcels[i]=l,F(l)})))},unmount:function(){return H(l.unmountThisParcel())},getStatus:function(){return l.status},loadPromise:H(u),bootstrapPromise:H(h),mountPromise:H(g),unmountPromise:H(b)}}function H(e){return e.then((function(){return null}))}function V(e){var t=C(e),n="function"==typeof e.customProps?e.customProps(t,window.location):e.customProps;("object"!==o(n)||null===n||Array.isArray(n))&&(n={},console.warn(d(40,!1),t,n));var i=T({},n,{name:t,mountParcel:Z.bind(e),singleSpa:r});return P(e)&&(i.unmountSelf=e.unmountThisParcel),i}var K={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function W(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(16,!1));K.bootstrap={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function q(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(17,!1));K.mount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Y(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(18,!1));K.unmount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function G(e,t,n){if("number"!=typeof e||e<=0)throw Error(d(19,!1));K.unload={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Q(e,t){var n=e.timeouts[t],r=n.warningMillis,o=N(e);return new Promise((function(i,a){var s=!1,l=!1;e[t](V(e)).then((function(e){s=!0,i(e)})).catch((function(e){s=!0,a(e)})),setTimeout((function(){return c(1)}),r),setTimeout((function(){return c(!0)}),n.millis);var u=d(31,!1,t,o,C(e),n.millis);function c(e){if(!s)if(!0===e)l=!0,n.dieOnTimeout?a(Error(u)):console.error(u);else if(!l){var t=e,o=t*r;console.warn(u),o+r<n.millis&&setTimeout((function(){return c(t+1)}),r)}}}))}function J(e){var t={};for(var n in K)t[n]=T({},K[n],e&&e[n]||{});return t}function X(e){return Promise.resolve().then((function(){return e.loadPromise?e.loadPromise:e.status!==h&&e.status!==S?e:(e.status=m,e.loadPromise=Promise.resolve().then((function(){var r=e.loadApp(V(e));if(!M(r))throw n=!0,Error(d(33,!1,C(e)));return r.then((function(n){var r;e.loadErrorTime=null,"object"!==o(t=n)&&(r=34),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!L(t.bootstrap)&&(r=35),L(t.mount)||(r=36),L(t.unmount)||(r=37);var i=N(t);if(r){var a;try{a=JSON.stringify(t)}catch(e){}return console.error(d(r,!1,i,C(e),a),t),u(void 0,e,_),e}return t.devtools&&t.devtools.overlays&&(e.devtools.overlays=T({},e.devtools.overlays,t.devtools.overlays)),e.status=v,e.bootstrap=I(t,"bootstrap"),e.mount=I(t,"mount"),e.unmount=I(t,"unmount"),e.unload=I(t,"unload"),e.timeouts=J(t.timeouts),delete e.loadPromise,e}))})).catch((function(t){var r;return delete e.loadPromise,n?r=_:(r=S,e.loadErrorTime=(new Date).getTime()),u(t,e,r),e})));var t,n}))}var ee,te="undefined"!=typeof window,ne={hashchange:[],popstate:[]},re=["hashchange","popstate"];function oe(e){var t;if("string"==typeof e)t=e;else if(this&&this.href)t=this.href;else{if(!(e&&e.currentTarget&&e.currentTarget.href&&e.preventDefault))throw Error(d(14,!1));t=e.currentTarget.href,e.preventDefault()}var n=fe(window.location.href),r=fe(t);0===t.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=t:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,t)}function ie(e){var t=this;if(e){var n=e[0].type;re.indexOf(n)>=0&&ne[n].forEach((function(n){try{n.apply(t,e)}catch(e){setTimeout((function(){throw e}))}}))}}function ae(){Re([],arguments)}function se(e,t){return function(){var n=window.location.href,r=e.apply(this,arguments),o=window.location.href;return ee&&n===o||(Ue()?window.dispatchEvent(le(window.history.state,t)):Re([])),r}}function le(e,t){var n;try{n=new PopStateEvent("popstate",{state:e})}catch(t){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,e)}return n.singleSpa=!0,n.singleSpaTrigger=t,n}if(te){window.addEventListener("hashchange",ae),window.addEventListener("popstate",ae);var ue=window.addEventListener,ce=window.removeEventListener;window.addEventListener=function(e,t){if(!("function"==typeof t&&re.indexOf(e)>=0)||j(ne[e],(function(e){return e===t})))return ue.apply(this,arguments);ne[e].push(t)},window.removeEventListener=function(e,t){if(!("function"==typeof t&&re.indexOf(e)>=0))return ce.apply(this,arguments);ne[e]=ne[e].filter((function(e){return e!==t}))},window.history.pushState=se(window.history.pushState,"pushState"),window.history.replaceState=se(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(d(41,!1)):window.singleSpaNavigate=oe}function fe(e){var t=document.createElement("a");return t.href=e,t}var de=!1;function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(e||window.$&&window.$.fn&&window.$.fn.jquery&&(e=window.$),e&&!de){var t=e.fn.on,n=e.fn.off;e.fn.on=function(e,n){return he.call(this,t,window.addEventListener,e,n,arguments)},e.fn.off=function(e,t){return he.call(this,n,window.removeEventListener,e,t,arguments)},de=!0}}function he(e,t,n,r,o){return"string"!=typeof n?e.apply(this,o):(n.split(/\s+/).forEach((function(e){re.indexOf(e)>=0&&(t(e,r),n=n.replace(e,""))})),""===n.trim()?this:e.apply(this,o))}var me={};function ve(e){return Promise.resolve().then((function(){var t=me[C(e)];if(!t)return e;if(e.status===h)return ge(e,t),e;if("UNLOADING"===e.status)return t.promise.then((function(){return e}));if(e.status!==y&&e.status!==S)return e;var n=e.status===S?Promise.resolve():Q(e,"unload");return e.status="UNLOADING",n.then((function(){return ge(e,t),e})).catch((function(n){return o=t,i=n,delete me[C(r=e)],delete r.bootstrap,delete r.mount,delete r.unmount,delete r.unload,u(i,r,_),o.reject(i),e;var r,o,i}))}))}function ge(e,t){delete me[C(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,e.status=h,t.resolve()}function ye(e,t,n,r){me[C(e)]={app:e,resolve:n,reject:r},Object.defineProperty(me[C(e)],"promise",{get:t})}function be(e){return me[e]}var we=[];function Ee(){var e=[],t=[],n=[],r=[],o=(new Date).getTime();return we.forEach((function(i){var a=i.status!==_&&O(i);switch(i.status){case S:a&&o-i.loadErrorTime>=200&&n.push(i);break;case h:case m:a&&n.push(i);break;case v:case y:!a&&be(C(i))?e.push(i):a&&r.push(i);break;case w:a||t.push(i)}})),{appsToUnload:e,appsToUnmount:t,appsToLoad:n,appsToMount:r}}function xe(){return we.filter(k).map(C)}function Se(){return we.map(C)}function _e(e){var t=j(we,(function(t){return C(t)===e}));return t?t.status:null}function ke(e,t,n,r){var i,a,s,l,u,c,f,p,m=(l=t,u=n,c=r,p={name:null,loadApp:null,activeWhen:null,customProps:null},"object"===o(s=e)?(function(e){if(Array.isArray(e)||null===e)throw Error(d(39,!1));var t=["name","app","activeWhen","customProps"],n=Object.keys(e).reduce((function(e,n){return t.indexOf(n)>=0?e:e.concat(n)}),[]);if(0!==n.length)throw Error(d(38,!1,t.join(", "),n.join(", ")));if("string"!=typeof e.name||0===e.name.length)throw Error(d(20,!1));if("object"!==o(e.app)&&"function"!=typeof e.app)throw Error(d(20,!1));var r=function(e){return"string"==typeof e||"function"==typeof e};if(!(r(e.activeWhen)||Array.isArray(e.activeWhen)&&e.activeWhen.every(r)))throw Error(d(24,!1));if(!Te(e.customProps))throw Error(d(22,!1))}(s),p.name=s.name,p.loadApp=s.app,p.activeWhen=s.activeWhen,p.customProps=s.customProps):(function(e,t,n,r){if("string"!=typeof e||0===e.length)throw Error(d(20,!1));if(!t)throw Error(d(23,!1));if("function"!=typeof n)throw Error(d(24,!1));if(!Te(r))throw Error(d(22,!1))}(s,l,u,c),p.name=s,p.loadApp=l,p.activeWhen=u,p.customProps=c),p.loadApp="function"!=typeof(f=p.loadApp)?function(){return Promise.resolve(f)}:f,p.customProps=p.customProps||{},p.activeWhen=(i=p.activeWhen,a=(a=Array.isArray(i)?i:[i]).map((function(e){return"function"==typeof e?e:je(e)})),function(e){return a.some((function(t){return t(e)}))}),p);if(-1!==Se().indexOf(m.name))throw Error(d(21,!1,m.name));we.push(T({loadErrorTime:null,status:h,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},m)),te&&(pe(),Re())}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return we.filter((function(t){return t.activeWhen(e)})).map(C)}function Ce(e){if(0===we.filter((function(t){return C(t)===e})).length)throw Error(d(25,!1,e));return Pe(e).then((function(){var t=we.map(C).indexOf(e);we.splice(t,1)}))}function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof e)throw Error(d(26,!1));var n=j(we,(function(t){return C(t)===e}));if(!n)throw Error(d(27,!1,e));var r,o=be(C(n));if(t&&t.waitForUnmount){if(o)return o.promise;var i=new Promise((function(e,t){ye(n,(function(){return i}),e,t)}));return i}return o?(r=o.promise,Ne(n,o.resolve,o.reject)):r=new Promise((function(e,t){ye(n,(function(){return r}),e,t),Ne(n,e,t)})),r}function Ne(e,t,n){R(e).then(ve).then((function(){t(),setTimeout((function(){Re()}))})).catch(n)}function Te(e){return!e||"function"==typeof e||"object"===o(e)&&null!==e&&!Array.isArray(e)}function je(e,t){var n=function(e,t){var n=0,r=!1,o="^";"/"!==e[0]&&(e="/"+e);for(var i=0;i<e.length;i++){var a=e[i];(!r&&":"===a||r&&"/"===a)&&s(i)}return s(e.length),new RegExp(o,"i");function s(i){var a=e.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===e.length)if(r)t&&(o+="$");else{var s=t?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(s,"$"):"".concat(o,"(/").concat(s,")?(#.*)?$")}r=!r,n=i}}(e,t);return function(e){var t=e.origin;t||(t="".concat(e.protocol,"//").concat(e.host));var r=e.href.replace(t,"").replace(e.search,"").split("?")[0];return n.test(r)}}var Le=!1,Ie=[],Me=te&&window.location.href;function De(){return Re()}function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(Le)return new Promise((function(e,n){Ie.push({resolve:e,reject:n,eventArguments:t})}));var n,r=Ee(),o=r.appsToUnload,a=r.appsToUnmount,l=r.appsToLoad,u=r.appsToMount,c=!1,f=Me,d=Me=window.location.href;return Ue()?(Le=!0,n=o.concat(l,a,u),v()):(n=l,m());function p(){c=!0}function m(){return Promise.resolve().then((function(){var e=l.map(X);return Promise.all(e).then(b).then((function(){return[]})).catch((function(e){throw b(),e}))}))}function v(){return Promise.resolve().then((function(){if(window.dispatchEvent(new s(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",E(!0))),window.dispatchEvent(new s("single-spa:before-routing-event",E(!0,{cancelNavigation:p}))),c)return window.dispatchEvent(new s("single-spa:before-mount-routing-event",E(!0))),g(),void oe(f);var t=o.map(ve),r=a.map(R).map((function(e){return e.then(ve)})).concat(t),i=Promise.all(r);i.then((function(){window.dispatchEvent(new s("single-spa:before-mount-routing-event",E(!0)))}));var d=l.map((function(e){return X(e).then((function(e){return Ae(e,i)}))})),h=u.filter((function(e){return l.indexOf(e)<0})).map((function(e){return Ae(e,i)}));return i.catch((function(e){throw b(),e})).then((function(){return b(),Promise.all(d.concat(h)).catch((function(t){throw e.forEach((function(e){return e.reject(t)})),t})).then(g)}))}))}function g(){var t=xe();e.forEach((function(e){return e.resolve(t)}));try{var r=0===n.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new s(r,E())),window.dispatchEvent(new s("single-spa:routing-event",E()))}catch(e){setTimeout((function(){throw e}))}if(Le=!1,Ie.length>0){var o=Ie;Ie=[],Re(o)}return t}function b(){e.forEach((function(e){ie(e.eventArguments)})),ie(t)}function E(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1?arguments[1]:void 0,p={},m=(i(e={},w,[]),i(e,y,[]),i(e,h,[]),i(e,_,[]),e);r?(l.concat(u).forEach((function(e,t){g(e,w)})),o.forEach((function(e){g(e,h)})),a.forEach((function(e){g(e,y)}))):n.forEach((function(e){g(e)}));var v={detail:{newAppStatuses:p,appsByNewStatus:m,totalAppChanges:n.length,originalEvent:null==t?void 0:t[0],oldUrl:f,newUrl:d,navigationIsCanceled:c}};return s&&T(v.detail,s),v;function g(e,t){var n=C(e);t=t||_e(n),p[n]=t,(m[t]=m[t]||[]).push(n)}}}function Ae(e,t){return O(e)?D(e).then((function(e){return t.then((function(){return O(e)?F(e):e}))})):t.then((function(){return e}))}var $e=!1;function Fe(e){var t;$e=!0,e&&e.urlRerouteOnly&&(t=e.urlRerouteOnly,ee=t),te&&Re()}function Ue(){return $e}te&&setTimeout((function(){$e||console.warn(d(1,!1))}),5e3);var Be={getRawAppData:function(){return[].concat(we)},reroute:Re,NOT_LOADED:h,toLoadPromise:X,toBootstrapPromise:D,unregisterApplication:Ce};te&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Be)},7655:(e,t,n)=>{!function(){function e(e,t){return(t||"")+" (SystemJS Error#"+e+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+e+")"}!function(t){function n(){throw Error(e(5,"AMD require not supported."))}var r=["require","exports","module"];t.define=function(t,o,i){var a,s,l="string"==typeof t,u=l?t:null,c=l?o:t,f=l?i:o;if(Array.isArray(c))a=c,s=f;else if("object"==typeof c)a=[],s=function(){return c};else{if("function"!=typeof c)throw Error(e(9,"Invalid call to AMD define()"));a=r,s=c}var d=function(e,t){for(var r={},o={exports:r},i=[],a=[],s=0,l=0;l<e.length;l++){var u=e[l],c=a.length;"require"===u?(i[l]=n,s++):"module"===u?(i[l]=o,s++):"exports"===u?(i[l]=r,s++):d(l),s&&(e[c]=u)}s&&(e.length-=s);var f=t;return[e,function(e){return e({default:r,__useDefault:!0}),{setters:a,execute:function(){var t=f.apply(r,i);void 0!==t&&(o.exports=t),e(o.exports),e("default",o.exports)}}}];function d(e){a.push((function(t){i[e]=t.__useDefault?t.default:t}))}}(a,s);l?(System.registerRegistry?(System.registerRegistry[u]=d,System.register(u,d[0],d[1])):console.warn(e("W6","Include named-register.js for full named define support")),System.register(d[0],d[1])):System.register(d[0],d[1])},t.define.amd={}}("undefined"!=typeof self?self:n.g)}()},5145:(e,t,n)=>{!function(e){var t,n=e.System.constructor.prototype,r=n.register;n.register=function(e,n,o){t="string"==typeof e?o:n,r.apply(this,arguments)};var o=n.getRegister;n.getRegister=function(){var e=o.call(this);if(!e||e[1]===t||0===e[1].length)return e;var n=e[1];return e[1]=function(e,t){var r,o=!1,i=n.call(this,(function(t,n){"object"==typeof t&&t&&t.__useDefault?(r=t.default,o=!0):"default"===t?r=n:"__useDefault"===t&&(o=!0),e(t,n)}),t),a=i.execute;return a&&(i.execute=function(){if(a.call(this),o)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&"default"!==t&&e(t,r[t])}),i},e}}("undefined"!=typeof self?self:n.g)},1769:(e,t,n)=>{!function(e){var t=e.System;s(t);var n,r,o=t.constructor.prototype,i=t.constructor,a=function(){i.call(this),s(this)};function s(e){e.registerRegistry=Object.create(null),e.namedRegisterAliases=Object.create(null)}a.prototype=o,t.constructor=a;var l=o.register;o.register=function(e,t,o){if("string"!=typeof e)return l.apply(this,arguments);var i=[t,o];return this.registerRegistry[e]=i,n||(n=i,r=e),Promise.resolve().then((function(){n=null,r=null})),l.apply(this,[t,o])};var u=o.resolve;o.resolve=function(e,t){try{return u.call(this,e,t)}catch(t){if(e in this.registerRegistry)return this.namedRegisterAliases[e]||e;throw t}};var c=o.instantiate;o.instantiate=function(e,t){var n=this.registerRegistry[e];return n?(this.registerRegistry[e]=null,n):c.call(this,e,t)};var f=o.getRegister;o.getRegister=function(e){var t=f.call(this,e);r&&e&&(this.namedRegisterAliases[r]=e);var o=n||t;return n=null,r=null,o}}("undefined"!=typeof self?self:n.g)},9596:(e,t,n)=>{var r,o;r=("undefined"!=typeof self?self:n.g).System.constructor.prototype,o=r.import,r.import=function(){return o.apply(this,arguments).then((function(e){return e.__useDefault?e.default:e}))}},3592:(e,t,n)=>{!function(){function e(e,t){return(t||"")+" (SystemJS Error#"+e+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+e+")"}var t,r="undefined"!=typeof Symbol,o="undefined"!=typeof self,i="undefined"!=typeof document,a=o?self:n.g;if(i){var s=document.querySelector("base[href]");s&&(t=s.href)}if(!t&&"undefined"!=typeof location){var l=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==l&&(t=t.slice(0,l+1))}var u=/\\/g;function c(e,t){if(-1!==e.indexOf("\\")&&(e=e.replace(u,"/")),"/"===e[0]&&"/"===e[1])return t.slice(0,t.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var n,r=t.slice(0,t.indexOf(":")+1);if(n="/"===t[r.length+1]?"file:"!==r?(n=t.slice(r.length+2)).slice(n.indexOf("/")+1):t.slice(8):t.slice(r.length+("/"===t[r.length])),"/"===e[0])return t.slice(0,t.length-n.length-1)+e;for(var o=n.slice(0,n.lastIndexOf("/")+1)+e,i=[],a=-1,s=0;s<o.length;s++)-1!==a?"/"===o[s]&&(i.push(o.slice(a,s+1)),a=-1):"."===o[s]?"."!==o[s+1]||"/"!==o[s+2]&&s+2!==o.length?"/"===o[s+1]||s+1===o.length?s+=1:a=s:(i.pop(),s+=2):a=s;return-1!==a&&i.push(o.slice(a)),t.slice(0,t.length-n.length)+i.join("")}}function f(e,t){return c(e,t)||(-1!==e.indexOf(":")?e:c("./"+e,t))}function d(e,t,n,r,o){for(var i in e){var a=c(i,n)||i,s=e[i];if("string"==typeof s){var l=g(r,c(s,n)||s,o);l?t[a]=l:v("W1",i,s,"bare specifier did not resolve")}}}function p(e,t,n){var r;for(r in e.imports&&d(e.imports,n.imports,t,n,null),e.scopes||{}){var o=f(r,t);d(e.scopes[r],n.scopes[o]||(n.scopes[o]={}),t,n,o)}for(r in e.depcache||{})n.depcache[f(r,t)]=e.depcache[r];for(r in e.integrity||{})n.integrity[f(r,t)]=e.integrity[r]}function h(e,t){if(t[e])return e;var n=e.length;do{var r=e.slice(0,n+1);if(r in t)return r}while(-1!==(n=e.lastIndexOf("/",n-1)))}function m(e,t){var n=h(e,t);if(n){var r=t[n];if(null===r)return;if(!(e.length>n.length&&"/"!==r[r.length-1]))return r+e.slice(n.length);v("W2",n,r,"should have a trailing '/'")}}function v(t,n,r,o){console.warn(e(t,"Package target "+o+", resolving target '"+r+"' for "+n))}function g(e,t,n){for(var r=e.scopes,o=n&&h(n,r);o;){var i=m(t,r[o]);if(i)return i;o=h(o.slice(0,o.lastIndexOf("/")),r)}return m(t,e.imports)||-1!==t.indexOf(":")&&t}var y=r&&Symbol.toStringTag,b=r?Symbol():"@";function w(){this[b]={}}var E,x=w.prototype;function S(e){return e.id}function _(e,t,n,r){if(e.onload(n,t.id,t.d&&t.d.map(S),!!r),n)throw n}function k(t,n,r){var o=t[b][n];if(o)return o;var i=[],a=Object.create(null);y&&Object.defineProperty(a,y,{value:"Module"});var s=Promise.resolve().then((function(){return t.instantiate(n,r)})).then((function(r){if(!r)throw Error(e(2,"Module "+n+" did not instantiate"));var s=r[1]((function(e,t){o.h=!0;var n=!1;if("string"==typeof e)e in a&&a[e]===t||(a[e]=t,n=!0);else{for(var r in e)t=e[r],r in a&&a[r]===t||(a[r]=t,n=!0);e&&e.__esModule&&(a.__esModule=e.__esModule)}if(n)for(var s=0;s<i.length;s++){var l=i[s];l&&l(a)}return t}),2===r[1].length?{import:function(e){return t.import(e,n)},meta:t.createContext(n)}:void 0);return o.e=s.execute||function(){},[r[0],s.setters||[]]}),(function(e){throw o.e=null,o.er=e,_(t,o,e,!0),e})),l=s.then((function(e){return Promise.all(e[0].map((function(r,o){var i=e[1][o];return Promise.resolve(t.resolve(r,n)).then((function(e){var r=k(t,e,n);return Promise.resolve(r.I).then((function(){return i&&(r.i.push(i),!r.h&&r.I||i(r.n)),r}))}))}))).then((function(e){o.d=e}))}));return o=t[b][n]={id:n,i,n:a,I:s,L:l,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0,p:void 0}}function O(e,t,n,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then((function(){return t.p&&null!==t.p.e||(t.p=n),Promise.all(t.d.map((function(t){return O(e,t,n,r)})))})).catch((function(n){if(t.er)throw n;throw t.e=null,_(e,t,n,!1),n}))}x.import=function(e,t){var n=this;return Promise.resolve(n.prepareImport()).then((function(){return n.resolve(e,t)})).then((function(e){var t=k(n,e);return t.C||function(e,t){return t.C=O(e,t,t,{}).then((function(){return P(e,t,{})})).then((function(){return t.n}))}(n,t)}))},x.createContext=function(e){var t=this;return{url:e,resolve:function(n,r){return Promise.resolve(t.resolve(n,r||e))}}},x.onload=function(){},x.register=function(e,t){E=[e,t]},x.getRegister=function(){var e=E;return E=void 0,e};var C=Object.freeze(Object.create(null));function P(e,t,n){if(!n[t.id]){if(n[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}var r,o=t.e;return t.e=null,t.d.forEach((function(o){try{var i=P(e,o,n);i&&(r=r||[]).push(i)}catch(n){throw t.er=n,_(e,t,n,!1),n}})),r?Promise.all(r).then(i):i()}function i(){try{var n=o.call(C);if(n)return n=n.then((function(){t.C=t.n,t.E=null,_(e,t,null,!0)}),(function(n){throw t.er=n,t.E=null,_(e,t,n,!0),n})),t.E=n;t.C=t.n,t.L=t.I=void 0}catch(e){throw t.er=e,e}finally{_(e,t,t.er,!0)}}}a.System=new w;var N,T,j=Promise.resolve(),L={imports:{},scopes:{},depcache:{},integrity:{}},I=i;function M(){[].forEach.call(document.querySelectorAll("script"),(function(n){if(!n.sp)if("systemjs-module"===n.type){if(n.sp=!0,!n.src)return;System.import("import:"===n.src.slice(0,7)?n.src.slice(7):f(n.src,t)).catch((function(e){if(e.message.indexOf("https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3")>-1){var t=document.createEvent("Event");t.initEvent("error",!1,!1),n.dispatchEvent(t)}return Promise.reject(e)}))}else if("systemjs-importmap"===n.type){n.sp=!0;var r=n.src?(System.fetch||fetch)(n.src,{integrity:n.integrity,passThrough:!0}).then((function(e){if(!e.ok)throw Error("Invalid status code: "+e.status);return e.text()})).catch((function(t){return t.message=e("W4","Error fetching systemjs-import map "+n.src)+"\n"+t.message,console.warn(t),"function"==typeof n.onerror&&n.onerror(),"{}"})):n.innerHTML;j=j.then((function(){return r})).then((function(r){!function(t,n,r){var o={};try{o=JSON.parse(n)}catch(t){console.warn(Error(e("W5","systemjs-importmap contains invalid JSON")+"\n\n"+n+"\n"))}p(o,r,t)}(L,r,n.src||t)}))}}))}if(x.prepareImport=function(e){return(I||e)&&(M(),I=!1),j},i&&(M(),window.addEventListener("DOMContentLoaded",M)),x.addImportMap=function(e,n){p(e,n||t,L)},i){window.addEventListener("error",(function(e){R=e.filename,A=e.error}));var D=location.origin}x.createScript=function(e){var t=document.createElement("script");t.async=!0,e.indexOf(D+"/")&&(t.crossOrigin="anonymous");var n=L.integrity[e];return n&&(t.integrity=n),t.src=e,t};var R,A,$={},F=x.register;x.register=function(e,t){if(i&&"loading"===document.readyState&&"string"!=typeof e){var n=document.querySelectorAll("script[src]"),r=n[n.length-1];if(r){r.src,N=e;var o=this;T=setTimeout((function(){$[r.src]=[e,t],o.import(r.src)}))}}else N=void 0;return F.call(this,e,t)},x.instantiate=function(t,n){var r=$[t];if(r)return delete $[t],r;var o=this;return Promise.resolve(x.createScript(t)).then((function(r){return new Promise((function(i,a){r.addEventListener("error",(function(){a(Error(e(3,"Error loading "+t+(n?" from "+n:""))))})),r.addEventListener("load",(function(){if(document.head.removeChild(r),R===t)a(A);else{var e=o.getRegister(t);e&&e[0]===N&&clearTimeout(T),i(e)}})),document.head.appendChild(r)}))}))},x.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(x.fetch=fetch);var U=x.instantiate,B=/^(text|application)\/(x-)?javascript(;|$)/;x.instantiate=function(t,n){var r=this;return this.shouldFetch(t)?this.fetch(t,{credentials:"same-origin",integrity:L.integrity[t]}).then((function(o){if(!o.ok)throw Error(e(7,o.status+" "+o.statusText+", loading "+t+(n?" from "+n:"")));var i=o.headers.get("content-type");if(!i||!B.test(i))throw Error(e(4,'Unknown Content-Type "'+i+'", loading '+t+(n?" from "+n:"")));return o.text().then((function(e){return e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL="+t),(0,eval)(e),r.getRegister(t)}))})):U.apply(this,arguments)},x.resolve=function(n,r){return g(L,c(n,r=r||t)||n,r)||function(t,n){throw Error(e(8,"Unable to resolve bare specifier '"+t+(n?"' from "+n:"'")))}(n,r)};var z=x.instantiate;x.instantiate=function(e,t){var n=L.depcache[e];if(n)for(var r=0;r<n.length;r++)k(this,this.resolve(n[r],e),e);return z.call(this,e,t)},o&&"function"==typeof importScripts&&(x.instantiate=function(e){var t=this;return Promise.resolve().then((function(){return importScripts(e),t.getRegister(e)}))}),function(e){var t,n,r,o=e.System.constructor.prototype,i=o.import;o.import=function(o,a){return function(){for(var o in t=n=void 0,e)u(o)||(t?n||(n=o):t=o,r=o)}(),i.call(this,o,a)};var a=[[],function(){return{}}],s=o.getRegister;o.getRegister=function(){var o=s.call(this);if(o)return o;var i,l=function(o){var i,a,s=0;for(var l in e)if(!u(l)){if(0===s&&l!==t||1===s&&l!==n)return l;i?(r=l,a=o&&a||l):i=l===r,s++}return a}(this.firstGlobalProp);if(!l)return a;try{i=e[l]}catch(e){return a}return[[],function(e){return{execute:function(){e(i),e({default:i,__useDefault:!0})}}}]};var l="undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Trident");function u(t){return!e.hasOwnProperty(t)||!isNaN(t)&&t<e.length||l&&e[t]&&"undefined"!=typeof window&&e[t].parent===window}}("undefined"!=typeof self?self:n.g),function(e){var t=e.System.constructor.prototype,n=/^[^#?]+\.(css|html|json|wasm)([?#].*)?$/,r=t.shouldFetch.bind(t);t.shouldFetch=function(e){return r(e)||n.test(e)};var o=/^application\/json(;|$)/,i=/^text\/css(;|$)/,a=/^application\/wasm(;|$)/,s=t.fetch;t.fetch=function(t,n){return s(t,n).then((function(r){if(n.passThrough)return r;if(!r.ok)return r;var s=r.headers.get("content-type");return o.test(s)?r.json().then((function(e){return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",'+JSON.stringify(e)+")}}})"],{type:"application/javascript"}))})):i.test(s)?r.text().then((function(e){return e=e.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g,(function(e,n,r,o){return"url("+n+f(r||o,t)+n+")"})),new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync("+JSON.stringify(e)+');e("default",s)}}})'],{type:"application/javascript"}))})):a.test(s)?(WebAssembly.compileStreaming?WebAssembly.compileStreaming(r):r.arrayBuffer().then(WebAssembly.compile)).then((function(n){e.System.wasmModules||(e.System.wasmModules=Object.create(null)),e.System.wasmModules[t]=n;var r=[],o=[];return WebAssembly.Module.imports&&WebAssembly.Module.imports(n).forEach((function(e){var t=JSON.stringify(e.module);-1===r.indexOf(t)&&(r.push(t),o.push("function(m){i["+t+"]=m}"))})),new Response(new Blob(["System.register(["+r.join(",")+"],function(e){var i={};return{setters:["+o.join(",")+"],execute:function(){return WebAssembly.instantiate(System.wasmModules["+JSON.stringify(t)+"],i).then(function(m){e(m.exports)})}}})"],{type:"application/javascript"}))})):r}))}}("undefined"!=typeof self?self:n.g);var Z="undefined"!=typeof Symbol&&Symbol.toStringTag;x.get=function(e){var t=this[b][e];if(t&&null===t.e&&!t.E)return t.er?null:t.n},x.set=function(t,n){try{new URL(t)}catch(n){console.warn(Error(e("W3",'"'+t+'" is not a valid URL to set in the module registry')))}var r;Z&&"Module"===n[Z]?r=n:(r=Object.assign(Object.create(null),n),Z&&Object.defineProperty(r,Z,{value:"Module"}));var o=Promise.resolve(r),i=this[b][t]||(this[b][t]={id:t,i:[],h:!1,d:[],e:null,er:void 0,E:void 0});return!i.e&&!i.E&&(Object.assign(i,{n:r,I:void 0,L:void 0,C:o}),r)},x.has=function(e){return!!this[b][e]},x.delete=function(e){var t=this[b],n=t[e];if(!n||n.p&&null!==n.p.e||n.E)return!1;var r=n.i;return n.d&&n.d.forEach((function(e){var t=e.i.indexOf(n);-1!==t&&e.i.splice(t,1)})),delete t[e],function(){var n=t[e];if(!n||!r||null!==n.e||n.E)return!1;r.forEach((function(e){n.i.push(e),e(n.n)})),r=null}};var H="undefined"!=typeof Symbol&&Symbol.iterator;x.entries=function(){var e,t,n=this,r=Object.keys(n[b]),o=0,i={next:function(){for(;void 0!==(t=r[o++])&&void 0===(e=n.get(t)););return{done:void 0===t,value:void 0!==t&&[t,e]}}};return i[H]=function(){return this},i}}()},9713:(e,t,n)=>{"use strict";var r=n(7959),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},8630:(e,t,n)=>{"use strict";e.exports=n(9713)},3913:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},8943:(e,t,n)=>{"use strict";n.r(t),n.d(t,{OpenmrsFetchError:()=>i.nF,VisitMode:()=>u.u4,VisitStatus:()=>u.Rx,backendDependencies:()=>d.W,clearCurrentUser:()=>s.Ze,defaultVisitCustomRepresentation:()=>u.I$,fetchCurrentPatient:()=>l.V,fhirBaseUrl:()=>i.DN,getCurrentUser:()=>s.ts,getLocations:()=>f.J,getLoggedInUser:()=>s.r,getSessionLocation:()=>s.WK,getSessionStore:()=>s.KJ,getStartedVisit:()=>u.$X,getVisitTypes:()=>c.P,getVisitsForPatient:()=>u.nx,makeUrl:()=>i.bf,openmrsFetch:()=>i.vb,openmrsObservableFetch:()=>i.uj,refetchCurrentUser:()=>s.VJ,restBaseUrl:()=>i.YC,saveVisit:()=>u.bX,sessionEndpoint:()=>i.z$,setSessionLocation:()=>s.jK,setupApiModule:()=>a.O,toLocationObject:()=>f.L,toVisitTypeObject:()=>c.V,updateVisit:()=>u.ym,userHasAccess:()=>s.y9});var r=n(2510),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(1893),a=n(2076),s=n(6313),l=n(96),u=n(8564),c=n(9804),f=n(6874),d=n(6528)},6528:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const r={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}},1893:(e,t,n)=>{"use strict";n.d(t,{DN:()=>s,YC:()=>a,bf:()=>u,nF:()=>d,uj:()=>f,vb:()=>c,z$:()=>l});var r=n(3596),o=n(1785),i=n(2333);const a="/ws/rest/v1/",s="/ws/fhir2/R4",l=`${a}session`;function u(e){return window.openmrsBase+e}function c(e,t={}){if("string"!=typeof e)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof t)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");"/"!==e[0]&&(e="/"+e);let n=u(e);if(t.headers||(t.headers={}),(0,o.Z)(t.body)&&(t.body=JSON.stringify(t.body)),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),null===t.headers.Accept&&delete t.headers.Accept,e.startsWith(a)&&void 0===t.headers["Disable-WWW-Authenticate"]&&(t.headers["Disable-WWW-Authenticate"]="true"),e.startsWith(s)){const e=new URL(n,window.location.toString());e.searchParams.has("_summary")||(e.searchParams.set("_summary","data"),n=e.toString())}const r=Error();return window.fetch(n,t).then((e=>{return t=this,null,o=function*(){const t=e;if(t.ok)return 204===t.status?(t.data=null,t):t.text().then((e=>{try{e&&(t.data=JSON.parse(e))}catch(e){}return t}));{const{redirectAuthFailure:e}=yield(0,i.iE)("@openmrs/esm-api");return n===u(l)&&403===t.status||e.enabled&&e.errors.includes(t.status)?((0,i.c4)({to:e.url}),e.resolvePromise?Promise.resolve():new Promise((()=>{}))):t.text().then((e=>{let o=e;try{o=JSON.parse(e)}catch(e){}throw new d(n,t,o,r)}),(e=>{throw new d(n,t,null,r)}))}},new Promise(((e,n)=>{var r=e=>{try{a(o.next(e))}catch(e){n(e)}},i=e=>{try{a(o.throw(e))}catch(e){n(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,i);a((o=o.apply(t,null)).next())}));var t,o}))}function f(e,t={}){if("object"!=typeof t)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");const n=new AbortController;return t.signal=n.signal,new r.Observable((r=>{let o=!1;return c(e,t).then((e=>{o=!0,r.next(e),r.complete()}),(e=>{o=!0,r.error(e)})),()=>{o||n.abort()}}))}class d extends Error{constructor(e,t,n,r){super(),this.message=`Server responded with ${t.status} (${t.statusText}) for url ${e}. Check err.responseBody or network tab in dev tools for more info`,r.message=this.message,this.responseBody=n,this.response=t,this.stack=`Stacktrace for outgoing request:\n${r.stack}\nStacktrace for incoming response:\n${this.stack}`}}},9969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{OpenmrsFetchError:()=>i.nF,VisitMode:()=>l.u4,VisitStatus:()=>l.Rx,backendDependencies:()=>f.W,clearCurrentUser:()=>a.Ze,defaultVisitCustomRepresentation:()=>l.I$,fetchCurrentPatient:()=>s.V,fhirBaseUrl:()=>i.DN,getCurrentUser:()=>a.ts,getLocations:()=>c.J,getLoggedInUser:()=>a.r,getSessionLocation:()=>a.WK,getSessionStore:()=>a.KJ,getStartedVisit:()=>l.$X,getVisitTypes:()=>u.P,getVisitsForPatient:()=>l.nx,makeUrl:()=>i.bf,openmrsFetch:()=>i.vb,openmrsObservableFetch:()=>i.uj,refetchCurrentUser:()=>a.VJ,restBaseUrl:()=>i.YC,saveVisit:()=>l.bX,sessionEndpoint:()=>i.z$,setSessionLocation:()=>a.jK,toLocationObject:()=>c.L,toVisitTypeObject:()=>u.V,updateVisit:()=>l.ym,userHasAccess:()=>a.y9});var r=n(2510),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(1893),a=n(6313),s=n(96),l=n(8564),u=n(9804),c=n(6874),f=n(6528)},2076:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var r=n(2333),o=n(6313);function i(){(0,r.SH)("@openmrs/esm-api",{redirectAuthFailure:{enabled:{_type:r.Dy.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:r.Dy.String,_default:"${openmrsSpaBase}/login",_validators:[r.z2.isUrl]},errors:{_type:r.Dy.Array,_default:[401],_elements:{_type:r.Dy.Number,_validators:[r.z2.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:r.Dy.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}}}),(0,o.VJ)()}},96:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(8512),o=n(1893),i=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function a(e,t,n=!0){return i(this,null,(function*(){if(e){let r=null;const[i,a]=yield Promise.all([(0,o.vb)(`${o.DN}/Patient/${e}`,t).catch((e=>r=e)),n?s(e):Promise.resolve(null)]);if(i.ok)return i.data;if(a)return a;if(r)throw r}return null}))}function s(e){return i(this,null,(function*(){var t;const n=(yield(0,r.Q2)("patient-registration")).find((t=>t.fhirPatient.id===e));return null!=(t=null==n?void 0:n.fhirPatient)?t:null}))}},6313:(e,t,n)=>{"use strict";n.d(t,{KJ:()=>f,VJ:()=>d,WK:()=>v,Ze:()=>p,jK:()=>g,r:()=>m,ts:()=>c,y9:()=>h});var r=n(5007),o=n(8516),i=n(9881),a=n(3596),s=n(1893);const l=(0,o.jk)("session",{loaded:!1,session:null});let u=0;function c(e={includeAuthStatus:!0}){return(u<Date.now()-6e4||!l.getState().loaded)&&d(),new a.Observable((t=>{const n=n=>{var r;n.loaded&&(e.includeAuthStatus?t.next(n.session):t.next(null==(r=n.session)?void 0:r.user))};return n(l.getState()),l.subscribe(n)}))}function f(){return(u<Date.now()-6e4||!l.getState().loaded)&&d(),l}function d(){return new Promise(((e,t)=>{u=Date.now(),(0,s.vb)(s.z$).then((n=>{if("object"!=typeof(null==n?void 0:n.data))return t(),Promise.reject();!function(e){var t,n,r;const o=null!=(r=null==(n=null==(t=null==e?void 0:e.user)?void 0:t.userProperties)?void 0:n.defaultLocale)?r:e.locale;o!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",o)}(n.data),e(n.data),l.setState({loaded:!0,session:n.data})})).catch((e=>((0,r.e)(`Failed to fetch new session information: ${e}`),t(e),{sessionId:"",authenticated:!1})))}))}function p(){l.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})}function h(e,t){return void 0===t?Boolean(e):!Boolean(e)||function(e,t){return"string"==typeof e?!(0,i.Z)(t.privileges.find((t=>e===t.display))):Array.isArray(e)?e.every((e=>!(0,i.Z)(t.privileges.find((t=>e===t.display))))):((0,i.Z)(e)||console.error(`Could not understand privileges "${e}"`),!0)}(e,t)||function(e){return!(0,i.Z)(e.roles.find((e=>"System Developer"===e.display)))}(t)}function m(){let e,t;return new Promise(((n,r)=>{const o=r=>{r.loaded&&r.session.user&&(e=r.session.user,n(r.session.user),t&&t())};o(l.getState()),e||(t=l.subscribe(o))}))}function v(){return new Promise(((e,t)=>{c().subscribe((t=>{e(t.sessionLocation)}),t).unsubscribe()}))}function g(e,t){return n=this,null,r=function*(){yield(0,s.vb)(s.z$,{method:"POST",body:{sessionLocation:e},headers:{"Content-Type":"application/json"},signal:t.signal}),d()},new Promise(((e,t)=>{var o=e=>{try{a(r.next(e))}catch(e){t(e)}},i=e=>{try{a(r.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((r=r.apply(n,null)).next())}));var n,r}},6874:(e,t,n)=>{"use strict";n.d(t,{J:()=>s,L:()=>a});var r=n(821),o=n(6705),i=n(1893);function a(e){return{uuid:e.uuid,display:e.display}}function s(){return(0,i.uj)("/ws/rest/v1/location").pipe((0,r.U)((e=>e.data.results.map(a)))).pipe((0,o.q)(1))}},9804:(e,t,n)=>{"use strict";n.d(t,{P:()=>s,V:()=>a});var r=n(821),o=n(6705),i=n(1893);function a(e){return{uuid:e.uuid,display:e.display,name:e.name}}function s(){return(0,i.uj)("/ws/rest/v1/visittype").pipe((0,r.U)((e=>e.data.results.map(a)))).pipe((0,o.q)(1))}},8564:(e,t,n)=>{"use strict";n.d(t,{$X:()=>f,I$:()=>s,Rx:()=>p,bX:()=>u,nx:()=>l,u4:()=>d,ym:()=>c});var r=n(3596),o=n(6705),i=n(821),a=n(1893);const s="custom:(uuid,encounters:(uuid,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,uuid),visitType:(uuid,name,display),attributes:(uuid,display,attributeType:(name,datatypeClassname,uuid),value),location:(uuid,name,display),startDatetime,stopDatetime)";function l(e,t,n){const r=null!=n?n:s;return(0,a.uj)(`/ws/rest/v1/visit?patient=${e}&v=${r}`,{signal:t.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe((0,o.q)(1)).pipe((0,i.U)((e=>e)))}function u(e,t){return(0,a.uj)("/ws/rest/v1/visit",{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}function c(e,t,n){return(0,a.uj)(`/ws/rest/v1/visit/${e}`,{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})}const f=new r.BehaviorSubject(null);var d=(e=>(e.NEWVISIT="startVisit",e.EDITVISIT="editVisit",e.LOADING="loadingVisit",e))(d||{}),p=(e=>(e.NOTSTARTED="notStarted",e.ONGOING="ongoing",e))(p||{})},173:()=>{},3394:()=>{},2510:(e,t,n)=>{"use strict";n.r(t);var r=n(173),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(3394);o={};for(const e in i)"default"!==e&&(o[e]=()=>i[e]);n.d(t,o);var a=n(1949);o={};for(const e in a)"default"!==e&&(o[e]=()=>a[e]);n.d(t,o);var s=n(8345);o={};for(const e in s)"default"!==e&&(o[e]=()=>s[e]);n.d(t,o);var l=n(1259);o={};for(const e in l)"default"!==e&&(o[e]=()=>l[e]);n.d(t,o)},1949:()=>{},8345:()=>{},1259:()=>{},6433:(e,t,n)=>{"use strict";function r(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function i(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var i=n.strict,a=void 0!==i&&i,s=n.start,l=void 0===s||s,u=n.end,c=void 0===u||u,f=n.encode,d=void 0===f?function(e){return e}:f,p="["+r(n.endsWith||"")+"]|$",h="["+r(n.delimiter||"/#?")+"]",m=l?"^":"",v=0,g=e;v<g.length;v++){var y=g[v];if("string"==typeof y)m+=r(d(y));else{var b=r(d(y.prefix)),w=r(d(y.suffix));if(y.pattern)if(t&&t.push(y),b||w)if("+"===y.modifier||"*"===y.modifier){var E="*"===y.modifier?"?":"";m+="(?:"+b+"((?:"+y.pattern+")(?:"+w+b+"(?:"+y.pattern+"))*)"+w+")"+E}else m+="(?:"+b+"("+y.pattern+")"+w+")"+y.modifier;else m+="("+y.pattern+")"+y.modifier;else m+="(?:"+b+w+")"+y.modifier}}if(c)a||(m+=h+"?"),m+=n.endsWith?"(?="+p+")":"$";else{var x=e[e.length-1],S="string"==typeof x?h.indexOf(x[x.length-1])>-1:void 0===x;a||(m+="(?:"+h+"(?="+p+"))?"),S||(m+="(?="+h+"|"+p+")")}return new RegExp(m,o(n))}(function(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),o=t.prefixes,i=void 0===o?"./":o,a="[^"+r(t.delimiter||"/#?")+"]+?",s=[],l=0,u=0,c="",f=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[u],o=r.type,i=r.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+e)},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var h=f("CHAR"),m=f("NAME"),v=f("PATTERN");if(m||v){var g=h||"";-1===i.indexOf(g)&&(c+=g,g=""),c&&(s.push(c),c=""),s.push({name:m||l++,prefix:g,suffix:"",pattern:v||a,modifier:f("MODIFIER")||""})}else{var y=h||f("ESCAPED_CHAR");if(y)c+=y;else if(c&&(s.push(c),c=""),f("OPEN")){g=p();var b=f("NAME")||"",w=f("PATTERN")||"",E=p();d("CLOSE"),s.push({name:b||(w?l++:""),pattern:b&&!w?a:w,prefix:g,suffix:E,modifier:f("MODIFIER")||""})}else d("END")}}return s}(e,n),t,n)}function a(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return a(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",o(n))}(e,t,n):i(e,t,n)}n.d(t,{ZD:()=>f,nf:()=>u,Lr:()=>c});const s=(0,n(8516).jk)("breadcrumbs",[]);function l(e){return e.matcher instanceof RegExp?e.matcher:"string"==typeof e.matcher?a(e.matcher):a(e.path)}function u(e){return c([e])}function c(e){const t=[...f(),...e.map((e=>({matcher:l(e),settings:e})))];s.setState(t,!0)}function f(){return s.getState()}},5586:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,j:()=>i});var r=n(6433);function o(e,t){if(t)return function(e,t){const[n]=e.filter((e=>e.matcher.test(t)));return n}(e,t)||function(e,t){const n=t.split("/");for(;n.length>1;){n.pop();const t=o(e,n.join("/"));if(t)return t}}(e,t)}function i(e,t){if(e.length>0){const n=o(e,t);if(n){const t=[n];let r=o(e,n.settings.parent);for(;void 0!==r;)t.push(r),r=o(e,r.settings.parent);return t.reverse()}}return[]}function a(e){return i((0,r.ZD)(),e)}},6389:(e,t,n)=>{"use strict";n.r(t),n.d(t,{filterBreadcrumbs:()=>o.j,getBreadcrumbs:()=>r.ZD,getBreadcrumbsFor:()=>o.Z,registerBreadcrumb:()=>r.nf,registerBreadcrumbs:()=>r.Lr});var r=n(6433),o=n(5586),i=n(2968),a={};for(const e in i)["default","getBreadcrumbs","registerBreadcrumb","registerBreadcrumbs","filterBreadcrumbs","getBreadcrumbsFor"].indexOf(e)<0&&(a[e]=()=>i[e]);n.d(t,a)},2968:()=>{},2333:(e,t,n)=>{"use strict";n.d(t,{$w:()=>o.$w,CB:()=>l.CB,DK:()=>o.DK,Dy:()=>u.D,Gr:()=>o.Gr,HN:()=>o.HN,IN:()=>o.IN,IT:()=>a.I,JJ:()=>r.JJ,R2:()=>o.R2,SH:()=>r.SH,Tj:()=>r.Tj,Z2:()=>l.Z2,_z:()=>o._z,bs:()=>r.bs,c4:()=>i.c,f6:()=>r.f6,gZ:()=>l.gZ,hv:()=>o.hv,iE:()=>r.iE,kw:()=>l.kw,ll:()=>a.l,pR:()=>o.pR,qf:()=>o.qf,sC:()=>s.s,sR:()=>o.sR,z2:()=>l.z2});var r=n(9195),o=n(5368),i=n(6715),a=n(9732),s=n(552),l=n(9499),u=n(8386)},9195:(e,t,n)=>{"use strict";n.d(t,{SH:()=>ae,Tj:()=>se,iE:()=>ue,bs:()=>ce,f6:()=>fe,JJ:()=>le});var r=n(9719);function o(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function i(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}function a(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const s="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var l=n(9179),u=Object.prototype.toString;const c=function(){return"[object Arguments]"===u.call(arguments)?function(e){return"[object Arguments]"===u.call(e)}:function(e){return a("callee",e)}}();var f=!{toString:null}.propertyIsEnumerable("toString"),d=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],p=function(){return arguments.propertyIsEnumerable("length")}(),h=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};const m="function"!=typeof Object.keys||p?(0,l.Z)((function(e){if(Object(e)!==e)return[];var t,n,r=[],o=p&&c(e);for(t in e)!a(t,e)||o&&"length"===t||(r[r.length]=t);if(f)for(n=d.length-1;n>=0;)a(t=d[n],e)&&!h(r,t)&&(r[r.length]=t),n-=1;return r})):(0,l.Z)((function(e){return Object(e)!==e?[]:Object.keys(e)})),v=(0,l.Z)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function g(e,t,n,r){var a=o(e);function s(e,t){return y(e,t,n.slice(),r.slice())}return!i((function(e,t){return!i(s,t,e)}),o(t),a)}function y(e,t,n,r){if(s(e,t))return!0;var o,i,l=v(e);if(l!==v(t))return!1;if(null==e||null==t)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(l){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(o=e.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!s(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!s(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var u=n.length-1;u>=0;){if(n[u]===e)return r[u]===t;u-=1}switch(l){case"Map":return e.size===t.size&&g(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&g(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=m(e);if(c.length!==m(t).length)return!1;var f=n.concat([e]),d=r.concat([t]);for(u=c.length-1;u>=0;){var p=c[u];if(!a(p,t)||!y(t[p],e[p],f,d))return!1;u-=1}return!0}const b=(0,r.Z)((function(e,t){return y(e,t,[],[])}));var w=n(758);function E(e){return function t(n,o,i){switch(arguments.length){case 0:return t;case 1:return(0,w.Z)(n)?t:(0,r.Z)((function(t,r){return e(n,t,r)}));case 2:return(0,w.Z)(n)&&(0,w.Z)(o)?t:(0,w.Z)(n)?(0,r.Z)((function(t,n){return e(t,o,n)})):(0,w.Z)(o)?(0,r.Z)((function(t,r){return e(n,t,r)})):(0,l.Z)((function(t){return e(n,o,t)}));default:return(0,w.Z)(n)&&(0,w.Z)(o)&&(0,w.Z)(i)?t:(0,w.Z)(n)&&(0,w.Z)(o)?(0,r.Z)((function(t,n){return e(t,n,i)})):(0,w.Z)(n)&&(0,w.Z)(i)?(0,r.Z)((function(t,n){return e(t,o,n)})):(0,w.Z)(o)&&(0,w.Z)(i)?(0,r.Z)((function(t,r){return e(n,t,r)})):(0,w.Z)(n)?(0,l.Z)((function(t){return e(t,o,i)})):(0,w.Z)(o)?(0,l.Z)((function(t){return e(n,t,i)})):(0,w.Z)(i)?(0,l.Z)((function(t){return e(n,o,t)})):e(n,o,i)}}}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}const S=E((function(e,t,n){var r,o={};for(r in t)a(r,t)&&(o[r]=a(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)a(r,n)&&!a(r,o)&&(o[r]=n[r]);return o})),_=E((function e(t,n,r){return S((function(n,r,o){return x(r)&&x(o)?e(t,r,o):t(n,r,o)}),n,r)})),k=(0,r.Z)((function(e,t){return _((function(e,t,n){return n}),e,t)}));var O=n(5717);function C(e,t,n,r){var o,i=function(o){for(var i=t.length,a=0;a<i;){if(e===t[a])return n[a];a+=1}for(var s in t[a+1]=e,n[a+1]=o,e)o[s]=r?C(e[s],t,n,!0):e[s];return o};switch(v(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return o=e,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return e}}const P=(0,l.Z)((function(e){return null!=e&&"function"==typeof e.clone?e.clone():C(e,[],[],!0)})),N=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)},T=(0,l.Z)((function(e){return!!N(e)||!!e&&"object"==typeof e&&!function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var j=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const L=(0,r.Z)((function(e,t){return function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,s,l,u){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,s,l,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(e.length,(function(){return e.apply(t,arguments)}))}));function I(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function M(e,t,n,r){return e["@@transducer/result"](n[r](L(e["@@transducer/step"],e),t))}var D="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function R(e,t,n){if("function"==typeof e&&(e=function(e){return new j(e)}(e)),T(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return M(e,t,n,"fantasy-land/reduce");if(null!=n[D])return I(e,t,n[D]());if("function"==typeof n.next)return I(e,t,n);if("function"==typeof n.reduce)return M(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}const A=E(R);var $=n(8386),F=n(552);const U=(0,F.s)((e=>Array.isArray(e)),"must be an array"),B=(0,F.s)((e=>"boolean"==typeof e),"must be a boolean"),z=(0,F.s)((e=>"number"==typeof e),"must be a number"),Z=(0,F.s)((e=>"string"==typeof e),"must be a string"),H=(0,F.s)((e=>"object"==typeof e&&!Array.isArray(e)&&null!==e),"must be an object (not an array or null)"),V=(0,F.s)((e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)),"must be a valid UUID or a 36-character hexadecimal string");var K=n(5368),W=Object.defineProperty,q=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,X=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t)=>{for(var n in t||(t={}))Q.call(t,n)&&X(e,n,t[n]);if(G)for(var n of G(t))J.call(t,n)&&X(e,n,t[n]);return e},te=(e,t)=>q(e,Y(t));function ne(e,t){for(let n of Object.keys(e.schemas)){const r=ye(n,e,t);(0,K.pR)(n).setState({loaded:!0,config:r})}}function re(e,t){const n=function(e,t){const n=we(ve(e,t)),r=Object.keys(n).reduce(((e,t)=>{var r,o;return(null==(r=n[t])?void 0:r.extensionSlots)&&(e[t]=null==(o=n[t])?void 0:o.extensionSlots),e}),{});return function(e){for(let[t,n]of Object.entries(e))for(let[e,r]of Object.entries(n))me(r,t,e)}(r),Object.keys(r).reduce(((e,t)=>ee(ee({},e),r[t])),{})}(e,t),r=Object.fromEntries(Object.entries(n).map((([e,t])=>[e,{loaded:!0,config:t}]))),o=(0,K.Gr)(),i=o.getState(),a={slots:ee(ee({},i.slots),r)};b(i,a)||o.setState(a)}function oe(e,t){const n=function(e,t){let n=pe(P(e.schemas));const r=[...e.providedConfigs.map((e=>[e.config,e.source])),[t.config,"temporary config"]];for(let[e,t]of r)n=we([n,he(e,t)]);return n}(e,t);K.HN.setState({config:n})}function ie(e,t,n){const r={};for(let o of t.mountedExtensions){const t=de(o.slotModuleName,o.extensionModuleName,o.slotName,o.extensionId,e,n);r[o.slotName]=te(ee({},r[o.slotName]),{[o.extensionId]:{config:t,loaded:!0}})}(0,K._z)().setState({configs:r})}function ae(e,t){ge(e,t);const n=k(t,Ne),r=K.hv.getState();K.hv.setState({schemas:te(ee({},r.schemas),{[e]:n})})}function se(e,t){ge(e,t);const n=k(t,Ne),r=K.hv.getState();r.schemas[e]&&console.warn(`Config schema for extension ${e} already exists. If there are multiple extensions with this same name, one will probably crash.`),K.hv.setState({schemas:te(ee({},r.schemas),{[e]:n})})}function le(e,t="provided"){const n=K.hv.getState();K.hv.setState({providedConfigs:[...n.providedConfigs,{source:t,config:e}]})}function ue(e){return new Promise((t=>{const n=(0,K.pR)(e);function r(e){if(e.loaded&&e.config){const n=(0,O.Z)(["Display conditions","Translation overrides"],e.config);t(n),o&&o()}}r(n.getState());const o=n.subscribe(r)}))}function ce(e){return new Promise((t=>{const n=(0,K.pR)(e);function r(e){if(e.loaded&&e.config){const n=e.config;t(n),o&&o()}}r(n.getState());const o=n.subscribe(r)}))}function fe(e,t,n){Ee(e,t,n);const r=Oe(e,t);return Se(e,r,n),r}function de(e,t,n,r,o,i){var a,s,l,u;const c=function(e){const[t]=e.split("#");return t}(r),f=o.schemas[c],d=f?c:t,p=ve(o,i),h=be(e,p),m=null!=(u=null==(l=null==(s=null==(a=null==h?void 0:h.extensionSlots)?void 0:a[n])?void 0:s.configure)?void 0:l[r])?u:{},v=we([be(d,p),m]),g=null!=f?f:o.schemas[t];Ee(g,v,d);const y=Oe(g,v);return Se(g,y,d),delete y.extensionSlots,y}function pe(e){return e.hasOwnProperty("_default")?te(ee({},e),{_value:e._default,_source:"default"}):Pe(e)?Object.keys(e).reduce(((t,n)=>(t[n]=pe(e[n]),t)),{}):{}}function he(e,t){return Pe(e)?Object.keys(e).reduce(((n,r)=>(n[r]=he(e[r],t),n)),{}):{_value:e,_source:t}}function me(e,t,n){const r=`Extension slot config '${t}.extensionSlots.${n}`,o=Object.keys(e).filter((e=>!["add","remove","order","configure"].includes(e)));o.length&&console.error(r+`' contains invalid keys '${o.join("', '")}'`),e.add&&(Array.isArray(e.add)&&e.add.every((e=>"string"==typeof e))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),e.remove&&(Array.isArray(e.remove)&&e.remove.every((e=>"string"==typeof e))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),e.order&&(Array.isArray(e.order)&&e.order.every((e=>"string"==typeof e))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),e.configure&&(Pe(e.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))}function ve(e,t){return[...e.providedConfigs.map((e=>e.config)),t.config]}function ge(e,t,n=""){const r="Please verify that you are running the latest version and, if so, alert the maintainer.";for(const o of Object.keys(t).filter((e=>!e.startsWith("_")))){const i=n+(n&&".")+o,a=t[o];if("Display conditions"===i&&console.error(`${e} declares a configuration option called "Display conditions"; the "Display conditions" option is a reserved name. ${r}`),"Translation overrides"===i&&console.error(`${e} declares a configuration option called "Translation overrides"; the "Translation overrides" option is a reserved name. ${r}`),!Pe(a)){console.error(`${e} has bad config schema definition for key '${i}'. ${r}`);continue}a.hasOwnProperty("_default")||ge(e,a,i);const s=a._elements;if(Ce(s)&&ge(e,s,i+"._elements"),a._validators)for(let t of a._validators)"function"!=typeof t&&console.error(`${e} has invalid validator for key '${i}' ${r}.\n\nIf you're the maintainer: validators must be functions that return either undefined or an error string. Received ${t}.`);const l=a._type;l&&!Object.values($.D).includes(l)&&console.error(`${e} has invalid type for key '${i}' ${r}.\n\nIf you're the maintainer: the allowed types are ${Object.values($.D).join(", ")}. Received '${l}'`),Object.keys(a).every((e=>["_description","_validators","_elements","_type"].includes(e)))&&!n.includes("._elements")&&console.error(`${e} has bad config schema definition for key '${i}'. ${r}.\n\nIf you're the maintainer: all config elements must have a default. Received ${JSON.stringify(a)}`),s&&l&&![$.D.Array,$.D.Object].includes(l)&&console.error(`${e} has bad config schema definition for key '${i}'. ${r}.\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. Received ${JSON.stringify(l)}`)}}function ye(e,t,n){if(!t.schemas.hasOwnProperty(e))throw Error("No config schema has been defined for "+e);const r=t.schemas[e],o=be(e,ve(t,n));Ee(r,o,e);const i=Oe(r,o);return Se(r,i,e),delete i.extensionSlots,i}function be(e,t){return we(t.map((({[e]:t})=>t)).filter((e=>!!e)))}function we(e){return A(k)({},e)}function Ee(e,t,n=""){for(const r of Object.keys(t)){const o=t[r],i=n+"."+r,a=e[r];e.hasOwnProperty(r)?xe(a,o,i):"extensionSlots"===r&&""!==n||console.error(`Unknown config key '${i}' provided. Ignoring.`)}}function xe(e,t,n){_e(n,e._type,t),Pe(t)?e._type===$.D.Object?function(e,t,n){if(e._elements)for(const r of Object.keys(t)){const o=t[r];Ee(e._elements,o,`${n}.${r}`)}}(e,t,n):e.hasOwnProperty("_default")||Ee(e,t,n):e._type===$.D.Array&&function(e,t,n){var r;if(Ce(e._elements))for(let r=0;r<t.length;r++)xe(e._elements,t[r],`${n}[${r}]`);for(let o=0;o<t.length;o++)_e(`${n}[${o}]`,null==(r=e._elements)?void 0:r._type,t[o])}(e,t,n)}function Se(e,t,n=""){if(e)if(t!==e._default&&ke(n,e._validators,t),Pe(t))for(const r of Object.keys(t)){const o=t[r],i=n+"."+r,a=e[r];e._type===$.D.Object&&e._elements?Se(e._elements,o,i):Se(a,o,i)}else if(Array.isArray(t)&&e._elements)for(let r=0;r<t.length;r++)Se(e._elements,t[r],`${n}[${r}]`)}function _e(e,t,n){t&&ke(e,[{Array:U,Boolean:B,ConceptUuid:V,Number:z,Object:H,String:Z,UUID:V,PersonAttributeTypeUuid:V,PatientIdentifierTypeUuid:V}[t]],n)}function ke(e,t,n){if(t)try{for(let r of t){const t=r(n);"string"==typeof t&&("object"==typeof n?console.error(`Invalid configuration for ${e}: ${t}`):console.error(`Invalid configuration value ${n} for ${e}: ${t}`))}}catch(t){console.error(`Skipping invalid validator at "${e}". Encountered error\n\t${t}`)}}ne(K.hv.getState(),K.DK.getState()),K.hv.subscribe((e=>ne(e,K.DK.getState()))),K.DK.subscribe((e=>ne(K.hv.getState(),e))),oe(K.hv.getState(),K.DK.getState()),K.hv.subscribe((e=>oe(e,K.DK.getState()))),K.DK.subscribe((e=>oe(K.hv.getState(),e))),re(K.hv.getState(),K.DK.getState()),K.hv.subscribe((e=>re(e,K.DK.getState()))),K.DK.subscribe((e=>re(K.hv.getState(),e))),ie(K.hv.getState(),K.R2.getState(),K.DK.getState()),K.hv.subscribe((e=>{ie(e,K.R2.getState(),K.DK.getState())})),K.R2.subscribe((e=>{ie(K.hv.getState(),e,K.DK.getState())})),K.DK.subscribe((e=>{ie(K.hv.getState(),K.R2.getState(),e)}));const Oe=(e,t)=>{const n=P(t);if(!e)return n;for(const t of Object.keys(e)){const r=n[t],o=e[t];if(o&&o.hasOwnProperty("_default")){n.hasOwnProperty(t)||(n[t]=o._default);const e=o._elements;if(r&&Ce(e))if(o._type===$.D.Array&&Array.isArray(r)){const o=r.map((t=>Oe(e,t)));n[t]=o}else if(o._type===$.D.Object)for(let t of Object.keys(r))r[t]=Oe(e,r[t])}else if(Pe(o)){const e=n.hasOwnProperty(t)?r:{};Pe(e)&&(n[t]=Oe(o,e))}}return n};function Ce(e){return!!e&&Object.keys(e).filter((e=>!["_default","_validators"].includes(e))).length>0}function Pe(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}const Ne={"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:$.D.Array,_default:[]}},"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:$.D.Object,_default:{}}}},5368:(e,t,n)=>{"use strict";n.d(t,{$w:()=>f,DK:()=>a,Gr:()=>u,HN:()=>m,IN:()=>c,R2:()=>s,_z:()=>d,hv:()=>i,pR:()=>l,qf:()=>p,sR:()=>h});var r=n(8516),o=n(5717);const i=(0,r.jk)("config-internal",{providedConfigs:[],schemas:{}}),a=(0,r.jk)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});a.subscribe((e=>{var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))}));const s=(0,r.jk)("config-store-of-extension-state",{mountedExtensions:[]});function l(e){return(0,r.zJ)(`config-module-${e}`,{config:null,loaded:!1})}function u(){return(0,r.zJ)("config-extension-slots",{slots:{}})}function c(e){return f(u().getState(),e)}function f(e,t){const n=e.slots[t];return null!=n?n:{loaded:!1,config:{}}}function d(){return(0,r.zJ)("config-extensions",{configs:{}})}function p(e,t){const n=Object.assign({},h(d().getState(),e,t));return n.config=(0,o.Z)(["Display conditions","Translation overrides"],n.config),n}function h(e,t,n){var r;const o=null==(r=e.configs[t])?void 0:r[n];return null!=o?o:{loaded:!1,config:null}}const m=(0,r.jk)("config-implementer-tools",{config:{}})},9732:(e,t,n)=>{"use strict";n.d(t,{I:()=>u,l:()=>l});var r=Object.defineProperty,o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function l(e,t){const n=window.getOpenmrsSpaBase().replace(/\/$/,"");return u(e,((e,t)=>{for(var n in t||(t={}))i.call(t,n)&&s(e,n,t[n]);if(o)for(var n of o(t))a.call(t,n)&&s(e,n,t[n]);return e})({openmrsBase:window.openmrsBase,openmrsSpaBase:n},t)).replace(/^\/\//,"/")}function u(e,t){return Object.keys(t).reduce(((e,n)=>e.split("${"+n+"}").join(t[n])),e)}},6715:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(6929),o=n(9732);function i({to:e,templateParams:t}){const n=window.getOpenmrsSpaBase().replace(/\/$/,""),i=(0,o.l)(e,t);i.startsWith(n)?(0,r.UO)(i):window.location.assign(i)}},330:(e,t,n)=>{"use strict";n.d(t,{CB:()=>s.CB,Dy:()=>r.D,IT:()=>o.I,JJ:()=>l.JJ,SH:()=>l.SH,Tj:()=>l.Tj,Z2:()=>s.Z2,c4:()=>i.c,gZ:()=>s.gZ,iE:()=>l.iE,kw:()=>s.kw,ll:()=>o.l,pR:()=>u.pR,sC:()=>a.s,z2:()=>s.z2});var r=n(8386),o=n(9732),i=n(6715),a=n(552),s=n(9499),l=n(9195),u=n(5368)},8386:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r=(e=>(e.Array="Array",e.Boolean="Boolean",e.ConceptUuid="ConceptUuid",e.Number="Number",e.Object="Object",e.String="String",e.UUID="UUID",e.PersonAttributeTypeUuid="PersonAttributeTypeUuid",e.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",e))(r||{})},552:(e,t,n)=>{"use strict";function r(e,t){return n=>{if(!e(n))return"function"==typeof t?t(n):t}}n.d(t,{s:()=>r})},9499:(e,t,n)=>{"use strict";n.d(t,{CB:()=>a,Z2:()=>o,gZ:()=>i,kw:()=>s,z2:()=>l});var r=n(552);const o=(e,t)=>(0,r.s)((n=>e<=n&&n<=t),`must be between ${e} and ${t}`),i=e=>{const t=e.concat(["openmrsBase","openmrsSpaBase"]);return(0,r.s)((e=>{if(!e||"string"!=typeof e)return!1;const n=/\${(.*?)}/g;let r=n.exec(e);for(;r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0}),"Should be a URL or path. The allowed template parameters are "+t.map((e=>"${"+e+"}")).join(", "))},a=i([]),s=e=>(0,r.s)((t=>e.includes(t)),`Must be one of the following: '${e.join("', '")}'.`),l={inRange:o,isUrl:a,isUrlWithTemplateParameters:i,oneOf:s}},5007:(e,t,n)=>{"use strict";n.d(t,{e:()=>o,v:()=>i});var r=n(6217);function o(e){const t=a(e);setTimeout((()=>{throw t}))}function i(){const e=Error();return t=>{a(t).stack+=`\nAsync stacktrace:\n${e.stack}`,o(t)}}function a(e){let t;if(e instanceof Error)return e;if(null===e)return Error("'null' was thrown as an error");if("object"==typeof e){try{t=`Object thrown as error: ${JSON.stringify(e)}`}catch(n){t=`Object thrown as error with the following properties: ${Object.keys(e)}`}return Error(t)}return void 0===e?Error("'undefined' was thrown as an error"):Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.HU)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,r.HU)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},3843:(e,t,n)=>{"use strict";n.d(t,{EB:()=>_,Kq:()=>L,P1:()=>k,Qq:()=>D,eO:()=>O,h6:()=>M,ix:()=>C,lW:()=>T,mc:()=>R,og:()=>N,ub:()=>P});var r=n(8943),o=n(2333),i=n(4896),a=n(9881),s=n(1956),l=n(271),u=Object.defineProperty,c=Object.defineProperties,f=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&m(e,n,t[n]);if(d)for(var n of d(t))h.call(t,n)&&m(e,n,t[n]);return e},g=(e,t)=>c(e,f(t));const y=(0,s.Co)(),b=(0,l.yw)(),w=(0,o.Gr)(),E=(0,o._z)();function x(e,t,n){const r={};for(let[i,a]of Object.entries(e.slots)){const{config:s}=(0,o.$w)(t,a.name),l=I(i,e,s,n);r[i]={moduleName:a.moduleName,assignedExtensions:l}}(0,i.Z)(b.getState().slots,r)||b.setState({slots:r})}function S(e,t){return{moduleName:t,name:e,attachedIds:[],config:null}}function _(e){const[t]=e.split("#");return t}function k(e,t){const n=_(t);return e.extensions[n]}function O(e){return k(y.getState(),e)}y.subscribe((e=>{x(e,w.getState(),E.getState())})),w.subscribe((e=>{x(y.getState(),e,E.getState())})),E.subscribe((e=>{x(y.getState(),w.getState(),e)}));const C=y.action(((e,t)=>{e.extensions[t.name]=g(v({},t),{instances:[]})}));function P(e,t){(0,l.qO)((n=>{const r=n.slots[e];return g(v({},n),r?{slots:g(v({},n.slots),{[e]:g(v({},r),{attachedIds:[...r.attachedIds,t]})})}:{slots:g(v({},n.slots),{[e]:g(v({},S(e)),{attachedIds:[t]})})})}))}function N(e,t){(0,l.qO)((n=>{const r=n.slots[e];return r&&r.attachedIds.includes(t)?g(v({},n),{slots:g(v({},n.slots),{[e]:g(v({},r),{attachedIds:r.attachedIds.filter((e=>e!==t))})})}):n}))}function T(e){(0,l.qO)((t=>{const n=t.slots[e];return n?g(v({},t),{slots:g(v({},t.slots),{[e]:g(v({},n),{attachedIds:[]})})}):t}))}function j(e,t,n,r){const o=t.indexOf(e);if(-1!==o)return o;if(void 0!==n)return 1e3+n;{const t=r.indexOf(e);return-1!==t?2e3+t:-1}}function L(e,t=null){const n=null!=t?t:navigator.onLine;return e.filter((e=>(0,s.gY)(n,e.online,e.offline)))}function I(e,t,n,i){var s,l,u;const c=function(e,t){const n=e.add||[],r=e.remove||[],o=e.order||[],{extensions:i}=y.getState();return[...t,...n].filter((e=>!r.includes(e))).sort(((e,n)=>{var r,a;const s=j(e,o,null==(r=i[_(e)])?void 0:r.order,t),l=j(n,o,null==(a=i[_(n)])?void 0:a.order,t);return-1===l?-1:-1===s?1:s-l}))}(n,t.slots[e].attachedIds),f=[];let d;for(let n of c){const{config:c}=(0,o.sR)(i,e,n),p=_(n),h=t.extensions[p];if(h){const e=null!=(l=null==(s=null==c?void 0:c["Display conditions"])?void 0:s.privileges)?l:h.privileges;if(e&&("string"==typeof e||Array.isArray(e)&&e.length>0)){if((0,a.Z)(d)&&(d=null==(u=(0,r.getSessionStore)().getState().session)?void 0:u.user),!d)continue;if(!(0,r.userHasAccess)(e,d))continue}f.push({id:n,name:p,moduleName:h.moduleName,config:c,meta:h.meta,online:h.online,offline:h.offline})}}return f}function M(e){const t=y.getState(),{config:n}=(0,o.IN)(e);return I(e,t,n,E.getState())}const D=y.action(((e,t,n)=>{var r;const o=null==(r=e.slots[n])?void 0:r.moduleName;if(o&&o!=t)return console.warn(`An extension slot with the name '${n}' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ${o}.`),e;if(o&&o==t)return e;if(e.slots[n])return g(v({},e),{slots:g(v({},e.slots),{[n]:g(v({},e.slots[n]),{moduleName:t})})});const i=S(n,t);return g(v({},e),{slots:g(v({},e.slots),{[n]:i})})})),R=b.action((()=>({slots:{},extensions:{}})))},5656:(e,t,n)=>{"use strict";function r(e=!0,t=!1){return o(navigator.onLine,e,t)}function o(e,t=!0,n=!1){return Boolean(e?t:n)}function i(e,t){const n=navigator.onLine?e:t;return"object"==typeof n?n:{}}n.d(t,{XZ:()=>r,gY:()=>o,yZ:()=>i})},1956:(e,t,n)=>{"use strict";n.d(t,{Co:()=>r.Co,EB:()=>o.EB,H8:()=>a.H,Kq:()=>o.Kq,P1:()=>o.P1,Qq:()=>o.Qq,XZ:()=>i.XZ,ZQ:()=>s,eO:()=>o.eO,gY:()=>i.gY,h6:()=>o.h6,ix:()=>o.ix,lW:()=>o.lW,mc:()=>o.mc,og:()=>o.og,qO:()=>r.qO,ub:()=>o.ub,yZ:()=>i.yZ,yw:()=>r.yw});var r=n(271),o=n(3843),i=n(5656),a=n(9438);const s=(0,r.Co)()},5601:(e,t,n)=>{"use strict";n.d(t,{EB:()=>r.EB,H8:()=>o.H,Kq:()=>r.Kq,Qq:()=>r.Qq,h6:()=>r.h6,ix:()=>r.ix,lW:()=>r.lW,og:()=>r.og,ub:()=>r.ub,yw:()=>i.yw});var r=n(3843),o=n(9438),i=n(271)},9438:(e,t,n)=>{"use strict";n.d(t,{H:()=>y});var r=n(6929),o=n(3843),i=n(5656),a=n(271),s=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},m=(e,t)=>l(e,u(t)),v=(e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&c)for(var r of c(e))t.indexOf(r)<0&&d.call(e,r)&&(n[r]=e[r]);return n},g=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function y(e,t,n,s){return g(this,arguments,(function*(e,t,n,s,l=(e=>e),u={}){const c=(0,o.EB)(s),f=(0,o.eO)(s);let d=null;if(e){if(!f)throw Error(`Couldn't find extension '${c}' to attach to '${t}'`);const{load:o,online:p,offline:g,meta:y,moduleName:b}=f;if((0,i.XZ)(p,g)){(0,a.qO)((r=>{const o={domElement:e,id:s,slotName:t,slotModuleName:n};return m(h({},r),{extensions:m(h({},r.extensions),{[c]:m(h({},r.extensions[c]),{instances:[...r.extensions[c].instances,o]})})})}));const f=yield o(),{default:w}=f,E=v(f,["default"]);d=(0,r.BP)(l(null!=w?w:E),m(h(h({},(0,i.yZ)(p,g)),u),{_meta:y,_extensionContext:{extensionId:s,extensionSlotName:t,extensionSlotModuleName:n,extensionModuleName:b},domElement:e}))}}else console.warn(`Tried to render ${s} into ${t} but no DOM element was available.`);return d}))}},271:(e,t,n)=>{"use strict";n.d(t,{Co:()=>s,qO:()=>l,yw:()=>u});var r=n(4896),o=n(2333),i=n(8516);const a=(0,i.jk)("extensionsInternal",{slots:{},extensions:{}}),s=()=>(0,i.zJ)("extensionsInternal",{slots:{},extensions:{}});function l(e){const t=a.getState(),n=e(t);n!==t&&a.setState(n)}const u=()=>(0,i.zJ)("extensions",{slots:{}});function c(e){const t=[];for(let n of Object.values(e.extensions))for(let e of n.instances)t.push({slotModuleName:e.slotModuleName,extensionModuleName:n.moduleName,slotName:e.slotName,extensionId:e.id});(0,r.Z)(o.R2.getState().mountedExtensions,t)||o.R2.setState({mountedExtensions:t})}c(a.getState()),a.subscribe(c)},6503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfigurableLink:()=>f.w,ErrorState:()=>p.Te,Extension:()=>f.hj,ExtensionSlot:()=>f.dT,LeftNavMenu:()=>p.cW,Type:()=>a.Dy,UserHasAccess:()=>f.Vz,age:()=>h.B_,attach:()=>l.ub,beginEditSynchronizationItem:()=>c.jp,canBeginEditSynchronizationItemsOfType:()=>c.Qd,createErrorHandler:()=>s.v,createGlobalStore:()=>d.jk,createUseStore:()=>f.NV,daysIntoYear:()=>h.v0,defineConfigSchema:()=>a.SH,defineExtensionConfigSchema:()=>a.Tj,deleteSynchronizationItem:()=>c.Gy,detach:()=>l.og,detachAll:()=>l.lW,formatDate:()=>h.p6,formatDatetime:()=>h.DZ,formatTime:()=>h.mr,generateOfflineUuid:()=>c.sF,getAppState:()=>d.W5,getAssignedExtensions:()=>l.h6,getAsyncExtensionLifecycle:()=>f.D$,getAsyncLifecycle:()=>f.Ae,getConfig:()=>a.iE,getConfigStore:()=>a.pR,getConnectedExtensions:()=>l.Kq,getCurrentOfflineMode:()=>c.vm,getDynamicOfflineDataEntries:()=>c.xA,getDynamicOfflineDataEntriesFor:()=>c.H_,getDynamicOfflineDataHandlers:()=>c.Ui,getExtensionNameFromId:()=>l.EB,getExtensionStore:()=>l.yw,getFullSynchronizationItems:()=>c.D2,getFullSynchronizationItemsFor:()=>c.WB,getGlobalStore:()=>d.zJ,getLifecycle:()=>f.tl,getOfflineDb:()=>c.aA,getOfflinePatientDataStore:()=>c.k1,getSyncLifecycle:()=>f.a$,getSynchronizationItem:()=>c.TI,getSynchronizationItems:()=>c.Q2,inRange:()=>a.Z2,interpolateString:()=>a.IT,interpolateUrl:()=>a.ll,isDesktop:()=>f.nI,isOfflineUuid:()=>c.z7,isOmrsDateStrict:()=>h.w9,isOmrsDateToday:()=>h.Yv,isSameDay:()=>h.KC,isUrl:()=>a.CB,isUrlWithTemplateParameters:()=>a.gZ,isVersionSatisfied:()=>h.LE,messageOmrsServiceWorker:()=>c.gp,navigate:()=>a.c4,offlineUuidPrefix:()=>c.a7,omrsOfflineCachingStrategyHttpHeaderName:()=>c.Rz,omrsOfflineResponseBodyHttpHeaderName:()=>c.QI,omrsOfflineResponseStatusHttpHeaderName:()=>c.$9,oneOf:()=>a.kw,parseDate:()=>h.sG,provide:()=>a.JJ,putDynamicOfflineData:()=>c.cV,putDynamicOfflineDataFor:()=>c.fR,queueSynchronizationItem:()=>c.X2,registerExtension:()=>l.ix,registerExtensionSlot:()=>l.Qq,registerOfflinePatientHandler:()=>c.dt,removeDynamicOfflineData:()=>c.pO,removeDynamicOfflineDataFor:()=>c.ME,renderExtension:()=>l.H8,reportError:()=>s.e,retry:()=>h.XD,setLeftNav:()=>p.VM,setupDynamicOfflineDataHandler:()=>c.Xc,setupOfflineSync:()=>c.Kb,showActionableNotification:()=>p.fu,showModal:()=>p.K4,showNotification:()=>p.c0,showToast:()=>p.CF,subscribeTo:()=>d.se,syncAllDynamicOfflineData:()=>c.ps,syncDynamicOfflineData:()=>c.mF,syncOfflinePatientData:()=>c.MO,toDateObjectStrict:()=>h.if,toOmrsDateFormat:()=>h.nW,toOmrsDayDateFormat:()=>h.vU,toOmrsIsoString:()=>h.vH,toOmrsTimeString:()=>h.R5,toOmrsTimeString24:()=>h.WD,toOmrsYearlessDateFormat:()=>h.R_,translateFrom:()=>h.aJ,unsetLeftNav:()=>p.$d,useAssignedExtensionIds:()=>f.YV,useAssignedExtensions:()=>f.P3,useBodyScrollLock:()=>f.yn,useConfig:()=>f.ZR,useConnectedExtensions:()=>f.BL,useConnectivity:()=>f.Y9,useExtensionSlotMeta:()=>f.qd,useExtensionStore:()=>f.jf,useLayoutType:()=>f.mr,useLocations:()=>f.Z_,useOnClickOutside:()=>f.t$,usePagination:()=>f.h0,usePatient:()=>f.lm,useSession:()=>f.kP,useStore:()=>f.oR,useStoreWithActions:()=>f.xQ,useVisit:()=>f.JF,useVisitTypes:()=>f.NN,validator:()=>a.sC,validators:()=>a.z2});var r=n(9969),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(6389);o={};for(const e in i)["default","OpenmrsFetchError","fhirBaseUrl","makeUrl","openmrsFetch","openmrsObservableFetch","restBaseUrl","sessionEndpoint","clearCurrentUser","getCurrentUser","getLoggedInUser","getSessionLocation","getSessionStore","refetchCurrentUser","setSessionLocation","userHasAccess","fetchCurrentPatient","VisitMode","VisitStatus","defaultVisitCustomRepresentation","getStartedVisit","getVisitsForPatient","saveVisit","updateVisit","getVisitTypes","toVisitTypeObject","getLocations","toLocationObject","backendDependencies"].indexOf(e)<0&&(o[e]=()=>i[e]);n.d(t,o);var a=n(330),s=n(5007),l=n(5601),u=n(4304);o={};for(const e in u)["default","OpenmrsFetchError","fhirBaseUrl","makeUrl","openmrsFetch","openmrsObservableFetch","restBaseUrl","sessionEndpoint","clearCurrentUser","getCurrentUser","getLoggedInUser","getSessionLocation","getSessionStore","refetchCurrentUser","setSessionLocation","userHasAccess","fetchCurrentPatient","VisitMode","VisitStatus","defaultVisitCustomRepresentation","getStartedVisit","getVisitsForPatient","saveVisit","updateVisit","getVisitTypes","toVisitTypeObject","getLocations","toLocationObject","backendDependencies","filterBreadcrumbs","getBreadcrumbs","getBreadcrumbsFor","registerBreadcrumb","registerBreadcrumbs","Type","defineConfigSchema","defineExtensionConfigSchema","getConfig","getConfigStore","inRange","interpolateString","interpolateUrl","isUrl","isUrlWithTemplateParameters","navigate","oneOf","provide","validator","validators","createErrorHandler","reportError","attach","detach","detachAll","getAssignedExtensions","getConnectedExtensions","getExtensionNameFromId","getExtensionStore","registerExtension","registerExtensionSlot","renderExtension"].indexOf(e)<0&&(o[e]=()=>u[e]);n.d(t,o);var c=n(5977),f=n(8878),d=n(978),p=n(759),h=n(7115)},8694:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Breakpoint:()=>p.Uo,ComponentContext:()=>f.sM,ConfigurableLink:()=>f.w,ErrorState:()=>p.Te,Extension:()=>f.hj,ExtensionSlot:()=>f.dT,LeftNavMenu:()=>p.cW,Type:()=>a.Dy,UserHasAccess:()=>f.Vz,activateOfflineCapability:()=>c.ET,age:()=>h.B_,attach:()=>l.ub,beginEditSynchronizationItem:()=>c.jp,canBeginEditSynchronizationItemsOfType:()=>c.Qd,checkStatus:()=>l.XZ,checkStatusFor:()=>l.gY,configExtensionStore:()=>a.R2,configInternalStore:()=>a.hv,createAppState:()=>d.MI,createErrorHandler:()=>s.v,createGlobalStore:()=>d.jk,createUseStore:()=>f.NV,daysIntoYear:()=>h.v0,defineConfigSchema:()=>a.SH,defineExtensionConfigSchema:()=>a.Tj,deleteSynchronizationItem:()=>c.Gy,detach:()=>l.og,detachAll:()=>l.lW,extensionStore:()=>l.ZQ,formatDate:()=>h.p6,formatDatetime:()=>h.DZ,formatTime:()=>h.mr,generateOfflineUuid:()=>c.sF,getAppState:()=>d.W5,getAssignedExtensions:()=>l.h6,getAsyncExtensionLifecycle:()=>f.D$,getAsyncLifecycle:()=>f.Ae,getConfig:()=>a.iE,getConfigInternal:()=>a.bs,getConfigStore:()=>a.pR,getConnectedExtensions:()=>l.Kq,getCurrentOfflineMode:()=>c.vm,getCustomProps:()=>l.yZ,getDynamicOfflineDataEntries:()=>c.xA,getDynamicOfflineDataEntriesFor:()=>c.H_,getDynamicOfflineDataHandlers:()=>c.Ui,getExtensionConfig:()=>a.qf,getExtensionConfigFromStore:()=>a.sR,getExtensionInternalStore:()=>l.Co,getExtensionNameFromId:()=>l.EB,getExtensionRegistration:()=>l.eO,getExtensionRegistrationFrom:()=>l.P1,getExtensionSlotConfig:()=>a.IN,getExtensionSlotConfigFromStore:()=>a.$w,getExtensionSlotsConfigStore:()=>a.Gr,getExtensionStore:()=>l.yw,getExtensionsConfigStore:()=>a._z,getFullSynchronizationItems:()=>c.D2,getFullSynchronizationItemsFor:()=>c.WB,getGlobalStore:()=>d.zJ,getLifecycle:()=>f.tl,getOfflineDb:()=>c.aA,getOfflinePatientDataStore:()=>c.k1,getOfflineSynchronizationStore:()=>c.vs,getOmrsServiceWorker:()=>c.J_,getSyncLifecycle:()=>f.a$,getSynchronizationItem:()=>c.TI,getSynchronizationItems:()=>c.Q2,getSynchronizationItemsFor:()=>c.Jj,implementerToolsConfigStore:()=>a.HN,inRange:()=>a.Z2,integrateBreakpoints:()=>p.Nl,interpolateString:()=>a.IT,interpolateUrl:()=>a.ll,isDesktop:()=>f.nI,isOfflineUuid:()=>c.z7,isOmrsDateStrict:()=>h.w9,isOmrsDateToday:()=>h.Yv,isSameDay:()=>h.KC,isUrl:()=>a.CB,isUrlWithTemplateParameters:()=>a.gZ,isVersionSatisfied:()=>h.LE,messageOmrsServiceWorker:()=>c.gp,navigate:()=>a.c4,offlineUuidPrefix:()=>c.a7,omrsOfflineCachingStrategyHttpHeaderName:()=>c.Rz,omrsOfflineResponseBodyHttpHeaderName:()=>c.QI,omrsOfflineResponseStatusHttpHeaderName:()=>c.$9,oneOf:()=>a.kw,openmrsComponentDecorator:()=>f.Bq,parseDate:()=>h.sG,processConfig:()=>a.f6,provide:()=>a.JJ,putDynamicOfflineData:()=>c.cV,putDynamicOfflineDataFor:()=>c.fR,queueSynchronizationItem:()=>c.X2,queueSynchronizationItemFor:()=>c.PQ,registerExtension:()=>l.ix,registerExtensionSlot:()=>l.Qq,registerOfflinePatientHandler:()=>c.dt,registerOmrsServiceWorker:()=>c.KS,removeDynamicOfflineData:()=>c.pO,removeDynamicOfflineDataFor:()=>c.ME,renderActionableNotifications:()=>p.zW,renderExtension:()=>l.H8,renderInlineNotifications:()=>p.Pi,renderLoadingSpinner:()=>p.iY,renderModals:()=>p.Oe,renderToasts:()=>p.Sn,reportError:()=>s.e,reset:()=>l.mc,retry:()=>h.XD,runSynchronization:()=>c.HL,setCurrentOfflineMode:()=>c.U_,setLeftNav:()=>p.VM,setupDynamicOfflineDataHandler:()=>c.Xc,setupOfflineSync:()=>c.Kb,showActionableNotification:()=>p.fu,showModal:()=>p.K4,showNotification:()=>p.c0,showToast:()=>p.CF,subscribeTo:()=>d.se,syncAllDynamicOfflineData:()=>c.ps,syncDynamicOfflineData:()=>c.mF,syncOfflinePatientData:()=>c.MO,temporaryConfigStore:()=>a.DK,toDateObjectStrict:()=>h.if,toOmrsDateFormat:()=>h.nW,toOmrsDayDateFormat:()=>h.vU,toOmrsIsoString:()=>h.vH,toOmrsTimeString:()=>h.R5,toOmrsTimeString24:()=>h.WD,toOmrsYearlessDateFormat:()=>h.R_,translateFrom:()=>h.aJ,unsetLeftNav:()=>p.$d,updateInternalExtensionStore:()=>l.qO,useAssignedExtensionIds:()=>f.YV,useAssignedExtensions:()=>f.P3,useBodyScrollLock:()=>f.yn,useConfig:()=>f.ZR,useConnectedExtensions:()=>f.BL,useConnectivity:()=>f.Y9,useExtensionInternalStore:()=>f.TM,useExtensionSlot:()=>f.p8,useExtensionSlotMeta:()=>f.qd,useExtensionStore:()=>f.jf,useForceUpdate:()=>f.NW,useLayoutType:()=>f.mr,useLocations:()=>f.Z_,useOnClickOutside:()=>f.t$,usePagination:()=>f.h0,usePatient:()=>f.lm,useSession:()=>f.kP,useStore:()=>f.oR,useStoreWithActions:()=>f.xQ,useVisit:()=>f.JF,useVisitTypes:()=>f.NN,validator:()=>a.sC,validators:()=>a.z2});var r=n(8943),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(6389);o={};for(const e in i)["default","OpenmrsFetchError","fhirBaseUrl","makeUrl","openmrsFetch","openmrsObservableFetch","restBaseUrl","sessionEndpoint","setupApiModule","clearCurrentUser","getCurrentUser","getLoggedInUser","getSessionLocation","getSessionStore","refetchCurrentUser","setSessionLocation","userHasAccess","fetchCurrentPatient","VisitMode","VisitStatus","defaultVisitCustomRepresentation","getStartedVisit","getVisitsForPatient","saveVisit","updateVisit","getVisitTypes","toVisitTypeObject","getLocations","toLocationObject","backendDependencies"].indexOf(e)<0&&(o[e]=()=>i[e]);n.d(t,o);var a=n(2333),s=n(5007),l=n(1956),u=n(2270);o={};for(const e in u)["default","OpenmrsFetchError","fhirBaseUrl","makeUrl","openmrsFetch","openmrsObservableFetch","restBaseUrl","sessionEndpoint","setupApiModule","clearCurrentUser","getCurrentUser","getLoggedInUser","getSessionLocation","getSessionStore","refetchCurrentUser","setSessionLocation","userHasAccess","fetchCurrentPatient","VisitMode","VisitStatus","defaultVisitCustomRepresentation","getStartedVisit","getVisitsForPatient","saveVisit","updateVisit","getVisitTypes","toVisitTypeObject","getLocations","toLocationObject","backendDependencies","filterBreadcrumbs","getBreadcrumbs","getBreadcrumbsFor","registerBreadcrumb","registerBreadcrumbs","Type","configExtensionStore","configInternalStore","defineConfigSchema","defineExtensionConfigSchema","getConfig","getConfigInternal","getConfigStore","getExtensionConfig","getExtensionConfigFromStore","getExtensionSlotConfig","getExtensionSlotConfigFromStore","getExtensionSlotsConfigStore","getExtensionsConfigStore","implementerToolsConfigStore","inRange","interpolateString","interpolateUrl","isUrl","isUrlWithTemplateParameters","navigate","oneOf","processConfig","provide","temporaryConfigStore","validator","validators","createErrorHandler","reportError","attach","checkStatus","checkStatusFor","detach","detachAll","extensionStore","getAssignedExtensions","getConnectedExtensions","getCustomProps","getExtensionInternalStore","getExtensionNameFromId","getExtensionRegistration","getExtensionRegistrationFrom","getExtensionStore","registerExtension","registerExtensionSlot","renderExtension","reset","updateInternalExtensionStore"].indexOf(e)<0&&(o[e]=()=>u[e]);n.d(t,o);var c=n(8512),f=n(4008),d=n(8516),p=n(6344),h=n(7115)},6217:(e,t,n)=>{"use strict";n.d(t,{Al:()=>o,BW:()=>a,HU:()=>p,L0:()=>l,NQ:()=>m,V9:()=>v,XS:()=>i,dY:()=>u,id:()=>g,xp:()=>h});const r="openmrs:connectivity-changed";function o(e){window.dispatchEvent(new CustomEvent(r,{detail:{online:e}}))}function i(e){const t=t=>e(t.detail);return window.addEventListener(r,t),()=>window.removeEventListener(r,t)}function a(e){return e({online:navigator.onLine}),i(e)}const s="openmrs:precache-static-dependencies";function l(e={}){window.dispatchEvent(new CustomEvent(s,{detail:e}))}function u(e){const t=t=>e(t.detail);return window.addEventListener(s,t),()=>window.removeEventListener(s,t)}const c="openmrs:notification-shown",f="openmrs:actionable-notification-shown",d="openmrs:toast-shown";function p(e){window.dispatchEvent(new CustomEvent(c,{detail:e}))}function h(e){window.dispatchEvent(new CustomEvent(f,{detail:e}))}function m(e){const t=t=>e(t.detail);return window.addEventListener(c,t),()=>window.removeEventListener(c,t)}function v(e){const t=t=>e(t.detail);return window.addEventListener(f,t),()=>window.removeEventListener(f,t)}function g(e){const t=t=>e(t.detail);return window.addEventListener(d,t),()=>window.removeEventListener(d,t)}},9704:(e,t,n)=>{"use strict";function r(e){window.openmrsBase=e.apiUrl,window.spaBase=e.spaPath,window.spaEnv=e.env||"production",window.spaVersion="4.3.2-pre.666-20230410",window.getOpenmrsSpaBase=()=>`${window.spaBase}/`}function o(){window.copyText=e=>{const t=window.getSelection();if(t){const n=document.createRange();n.selectNode(e),t.removeAllRanges(),t.addRange(n),document.execCommand("copy"),t.removeAllRanges()}}}n.d(t,{P:()=>o,U:()=>r})},2270:(e,t,n)=>{"use strict";n.r(t),n.d(t,{dispatchActionableNotificationShown:()=>r.xp,dispatchConnectivityChanged:()=>r.Al,dispatchNotificationShown:()=>r.HU,dispatchPrecacheStaticDependencies:()=>r.L0,setupPaths:()=>o.U,setupUtils:()=>o.P,subscribeActionableNotificationShown:()=>r.V9,subscribeConnectivity:()=>r.BW,subscribeConnectivityChanged:()=>r.XS,subscribeNotificationShown:()=>r.NQ,subscribePrecacheStaticDependencies:()=>r.dY,subscribeToastShown:()=>r.id});var r=n(6217),o=n(9704),i=n(799),a={};for(const e in i)["default","dispatchActionableNotificationShown","dispatchConnectivityChanged","dispatchNotificationShown","dispatchPrecacheStaticDependencies","subscribeActionableNotificationShown","subscribeConnectivity","subscribeConnectivityChanged","subscribeNotificationShown","subscribePrecacheStaticDependencies","subscribeToastShown","setupPaths","setupUtils"].indexOf(e)<0&&(a[e]=()=>i[e]);n.d(t,a)},4304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{subscribeActionableNotificationShown:()=>r.V9,subscribeConnectivity:()=>r.BW,subscribeConnectivityChanged:()=>r.XS,subscribeNotificationShown:()=>r.NQ,subscribePrecacheStaticDependencies:()=>r.dY,subscribeToastShown:()=>r.id});var r=n(6217),o=n(799),i={};for(const e in o)["default","subscribeConnectivity","subscribeConnectivityChanged","subscribePrecacheStaticDependencies","subscribeNotificationShown","subscribeActionableNotificationShown","subscribeToastShown"].indexOf(e)<0&&(i[e]=()=>o[e]);n.d(t,i)},799:()=>{},3695:(e,t,n)=>{"use strict";n.d(t,{H_:()=>f,ME:()=>m,Ui:()=>l,Xc:()=>u,cV:()=>d,fR:()=>p,mF:()=>g,pO:()=>h,ps:()=>v,xA:()=>c});var r=n(8943),o=n(8102),i=n(1191),a=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const s={};function l(){return Object.values(s)}function u(e){s[e.id]&&console.warn(`[setupDynamicOfflineDataHandler] Another second handler with the ID "${e.id}" was registered. This handler will override the previous one. This could be unintended as the previous handler might run different flows than the newly registered one. If this is the case, ensure that you are setting up the handlers with different IDs.`),s[e.id]=e}function c(e){return a(this,null,(function*(){const t=yield y();return yield f(t,e)}))}function f(e,t){return a(this,null,(function*(){const n=t?{type:t,users:e}:{users:e},r=new i.A;return yield r.dynamicOfflineData.where(n).toArray().catch(o.ZP.errnames.DatabaseClosed,(()=>[]))}))}function d(e,t){return a(this,null,(function*(){const n=yield y();return yield p(n,e,t)}))}function p(e,t,n){return a(this,null,(function*(){const r=new i.A,a=yield r.dynamicOfflineData.get({type:t,identifier:n}).catch(o.ZP.errnames.DatabaseClosed,(()=>{}));a?a.users.includes(e)||(yield r.dynamicOfflineData.update(a.id,{users:[...a.users,e]}).catch(o.ZP.errnames.DatabaseClosed)):yield r.dynamicOfflineData.add({users:[e],type:t,identifier:n}).catch(o.ZP.errnames.DatabaseClosed)}))}function h(e,t){return a(this,null,(function*(){const n=yield y();return yield m(n,e,t)}))}function m(e,t,n){return a(this,null,(function*(){const r=new i.A,a=yield r.dynamicOfflineData.get({type:t,identifier:n,users:e}).catch(o.ZP.errnames.DatabaseClosed,(()=>{}));a&&(a.users.length>1?yield r.dynamicOfflineData.update(a.id,{users:a.users.filter((t=>t!==e))}).catch(o.ZP.errnames.DatabaseClosed):yield r.dynamicOfflineData.delete(a.id).catch(o.ZP.errnames.DatabaseClosed))}))}function v(e,t){return a(this,null,(function*(){const n=yield c(e);yield Promise.all(n.map((e=>a(this,null,(function*(){return g(e.type,e.identifier,t)})))))}))}function g(e,t,n){return a(this,null,(function*(){yield d(e,t);const r=new i.A,s=yield y(),u=yield r.dynamicOfflineData.get({type:e,identifier:t}).catch(o.ZP.errnames.DatabaseClosed,(()=>{})),c=l().filter((t=>t.type===e));if(!u)return;const f=yield Promise.all(c.map((e=>a(this,null,(function*(){var r,o;try{return e.sync(t,n),{id:e.id,error:void 0}}catch(t){const n=null!=(o=null==(r=t.message)?void 0:r.toString())?o:t.toString();return{id:e.id,error:n}}}))))),p=f.filter((e=>!e.error)).map((e=>e.id)),h=f.filter((e=>e.error)).map((e=>e.id)),m=f.filter((e=>e.error)).map((e=>({handlerId:e.id,message:e.error}))),v={syncedOn:new Date,syncedBy:s,succeededHandlers:p,erroredHandlers:h,errors:m};u.id&&(yield r.dynamicOfflineData.update(u.id,{syncState:v}).catch(o.ZP.errnames.DatabaseClosed))}))}function y(){return a(this,null,(function*(){const e=(yield(0,r.getLoggedInUser)()).uuid;if(!e)throw new Error("Using the dynamic offline data API requires a logged in user.");return e}))}},8512:(e,t,n)=>{"use strict";n.d(t,{$9:()=>o.$9,D2:()=>s.D2,ET:()=>a.ET,Gy:()=>s.Gy,HL:()=>s.HL,H_:()=>c.H_,J_:()=>r.J,Jj:()=>s.Jj,KS:()=>r.K,Kb:()=>s.H_,ME:()=>c.ME,MO:()=>u.MO,PQ:()=>s.PQ,Q2:()=>s.Q2,QI:()=>o.QI,Qd:()=>s.Qd,Rz:()=>o.Rz,TI:()=>s.TI,U_:()=>a.U_,Ui:()=>c.Ui,WB:()=>s.WB,X2:()=>s.X2,Xc:()=>c.Xc,a7:()=>l.a7,aA:()=>f.a,cV:()=>c.cV,dt:()=>u.dt,fR:()=>c.fR,gp:()=>i.g,jp:()=>s.jp,k1:()=>u.k1,mF:()=>c.mF,pO:()=>c.pO,ps:()=>c.ps,sF:()=>l.sF,vm:()=>a.vm,vs:()=>s.vs,xA:()=>c.xA,z7:()=>l.z7});var r=n(2535),o=n(7267),i=n(790),a=n(9959),s=n(9186),l=n(6892),u=n(6858),c=n(3695),f=n(1191)},9959:(e,t,n)=>{"use strict";n.d(t,{ET:()=>l,U_:()=>s,vm:()=>a});var r=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const o="openmrs3:offline-mode";let i="unavailable";function a(){return{current:i,notAvailable:"unavailable"===i,active:"on"===i}}function s(e){"unavailable"!==i&&"unavailable"!==e&&(localStorage.setItem(o,"on"===e?"active":"disabled"),i=e)}function l(){return r(this,null,(function*(){(yield function(){return r(this,null,(function*(){return(yield function(){return r(this,null,(function*(){return new Promise((e=>{const t=indexedDB.open("test");t.onerror=()=>e(!0),t.onsuccess=()=>e(!1)}))}))}())||(yield function(){return r(this,null,(function*(){return!window.indexedDB}))}())||(yield function(){return r(this,null,(function*(){const e=window.sessionStorage;try{e.setItem("someKeyHere","test"),e.removeItem("someKeyHere")}catch(t){if(t.code===DOMException.QUOTA_EXCEEDED_ERR&&0===e.length)return!0}return!1}))}())}))}())||(i="active"===localStorage.getItem(o)?"on":"off"),navigator.onLine}))}},1191:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,a:()=>i});var r=n(8102);class o extends r.ZP{constructor(){super("EsmOffline"),this.version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),this.syncQueue=this.table("syncQueue"),this.dynamicOfflineData=this.table("dynamicOfflineData")}}function i(){return new o}},6858:(e,t,n)=>{"use strict";n.d(t,{MO:()=>l,dt:()=>s,k1:()=>a});var r=n(8516),o=n(3695);const i=(0,r.jk)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}});function a(){return u(),i}function s(e,t){u(),(0,o.Xc)({type:"patient",displayName:t.displayName,id:e,isSynced:()=>Promise.resolve(!0),sync:(e,n)=>t.onOfflinePatientAdded({patientUuid:e,signal:null!=n?n:(new AbortController).signal})})}function l(e){return t=this,null,n=function*(){u(),yield(0,o.mF)("patient",e)},new Promise(((e,r)=>{var o=e=>{try{a(n.next(e))}catch(e){r(e)}},i=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((n=n.apply(t,null)).next())}));var t,n}function u(){console.warn("The offline patient API has been deprecated and will be removed in a future release. To prevent future crashes, the functions remain available for the moment, but any invocations should be migrated ASAP.")}},5977:(e,t,n)=>{"use strict";n.d(t,{$9:()=>a.$9,D2:()=>l.D2,Gy:()=>l.Gy,H_:()=>u.H_,Kb:()=>l.H_,ME:()=>u.ME,MO:()=>o.MO,Q2:()=>l.Q2,QI:()=>a.QI,Qd:()=>l.Qd,Rz:()=>a.Rz,TI:()=>l.TI,Ui:()=>u.Ui,WB:()=>l.WB,X2:()=>l.X2,Xc:()=>u.Xc,a7:()=>s.a7,aA:()=>c.a,cV:()=>u.cV,dt:()=>o.dt,fR:()=>u.fR,gp:()=>i.g,jp:()=>l.jp,k1:()=>o.k1,mF:()=>u.mF,pO:()=>u.pO,ps:()=>u.ps,sF:()=>s.sF,vm:()=>r.vm,xA:()=>u.xA,z7:()=>s.z7});var r=n(9959),o=n(6858),i=n(790),a=n(7267),s=n(6892),l=n(9186),u=n(3695),c=n(1191)},7267:(e,t,n)=>{"use strict";n.d(t,{$9:()=>o,QI:()=>r,Rz:()=>i});const r="x-omrs-offline-response-body",o="x-omrs-offline-response-status",i="x-omrs-offline-caching-strategy"},790:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(2535);function o(e){return t=this,null,n=function*(){const t=yield(0,r.J)();return t?yield t.messageSW(e):{success:!1,result:void 0,error:"No service worker has been registered. This is typically the case when the application has been built without offline-related features."}},new Promise(((e,r)=>{var o=e=>{try{a(n.next(e))}catch(e){r(e)}},i=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((n=n.apply(t,null)).next())}));var t,n}},2535:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,K:()=>m});try{self["workbox:window:6.5.3"]&&_()}catch(r){}function r(e,t){return new Promise((function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])}))}function o(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 i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(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)?o(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}try{self["workbox:core:6.5.3"]&&_()}catch(r){}var a=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))};function s(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var l=function(e,t){this.type=e,Object.assign(this,t)};function u(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function c(){}var f={type:"SKIP_WAITING"};function d(e,t){if(!t)return e&&e.then?e.then(c):Promise.resolve()}var p=function(e){var t,n;function o(t,n){var r,o;return void 0===n&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new a,r.en=new a,r.on=new a,r.un=0,r.an=new Set,r.cn=function(){var e=r.fn,t=e.installing;r.tn>0||!s(t.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=t,e.removeEventListener("updatefound",r.cn)):(r.hn=t,r.an.add(t),r.rn.resolve(t)),++r.tn,t.addEventListener("statechange",r.ln)},r.ln=function(e){var t=r.fn,n=e.target,o=n.state,i=n===r.vn,a={sw:n,isExternal:i,originalEvent:e};!i&&r.mn&&(a.isUpdate=!0),r.dispatchEvent(new l(o,a)),"installed"===o?r.wn=self.setTimeout((function(){"installed"===o&&t.waiting===n&&r.dispatchEvent(new l("waiting",a))}),200):"activating"===o&&(clearTimeout(r.wn),i||r.en.resolve(n))},r.dn=function(e){var t=r.hn,n=t!==navigator.serviceWorker.controller;r.dispatchEvent(new l("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:r.mn})),n||r.on.resolve(t)},r.gn=(o=function(e){var t=e.data,n=e.ports,o=e.source;return u(r.getSW(),(function(){r.an.has(o)&&r.dispatchEvent(new l("message",{data:t,originalEvent:e,ports:n,sw:o}))}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(o.apply(this,e))}catch(e){return Promise.reject(e)}}),r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener("message",r.gn),r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i,c=o.prototype;return c.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r=this;return function(e,t){var n=e();return n&&n.then?n.then(t):t()}((function(){if(!n&&"complete"!==document.readyState)return d(new Promise((function(e){return window.addEventListener("load",e)})))}),(function(){return r.mn=Boolean(navigator.serviceWorker.controller),r.yn=r.pn(),u(r.bn(),(function(e){r.fn=e,r.yn&&(r.hn=r.yn,r.en.resolve(r.yn),r.on.resolve(r.yn),r.yn.addEventListener("statechange",r.ln,{once:!0}));var t=r.fn.waiting;return t&&s(t.scriptURL,r.sn.toString())&&(r.hn=t,Promise.resolve().then((function(){r.dispatchEvent(new l("waiting",{sw:t,wasWaitingBeforeRegister:!0}))})).then((function(){}))),r.hn&&(r.rn.resolve(r.hn),r.an.add(r.hn)),r.fn.addEventListener("updatefound",r.cn),navigator.serviceWorker.addEventListener("controllerchange",r.dn),r.fn}))}))}catch(e){return Promise.reject(e)}},c.update=function(){try{return this.fn?d(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},c.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},c.messageSW=function(e){try{return u(this.getSW(),(function(t){return r(t,e)}))}catch(e){return Promise.reject(e)}},c.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&r(this.fn.waiting,f)},c.pn=function(){var e=navigator.serviceWorker.controller;return e&&s(e.scriptURL,this.sn.toString())?e:void 0},c.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return u(navigator.serviceWorker.register(e.sn,e.nn),(function(t){return e.un=performance.now(),t}))}),(function(e){throw e}))}catch(e){return Promise.reject(e)}},(i=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(o.prototype,i),o}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,n=i(this.Sn(e.type));!(t=n()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}());let h;function m(e,t){if(void 0!==h)return console.warn(`The application's Service Worker has already been registered. The new service worker at ${e} will not be registered.`),h;if(!("serviceWorker"in navigator))throw new Error("Registering the Service Worker is not possible due to missing browser capabilities.");const n=new p(e,t);return h=n.register().then((()=>n.controlling.then((()=>n)))),h}function v(){return null!=h?h:Promise.resolve(void 0)}},9186:(e,t,n)=>{"use strict";n.d(t,{D2:()=>P,Gy:()=>L,HL:()=>w,H_:()=>I,Jj:()=>k,PQ:()=>S,Q2:()=>C,Qd:()=>T,TI:()=>N,WB:()=>O,X2:()=>_,jp:()=>j,vs:()=>b});var r=n(8102),o=n(8943),i=n(8516),a=n(1191),s=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},m=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const v=new a.A,g={},y=(0,i.jk)("offline-synchronization",{});function b(){return y}function w(){return m(this,null,(function*(){if(y.getState().synchronization)return;const e=yield v.syncQueue.count(),t={},n=Object.entries(g),r=n.length,o={},i=new AbortController,a=()=>{const e=y.getState().synchronization;var t,n;y.setState({synchronization:(t=h({},e),n={pendingCount:e.pendingCount-1},l(t,u(n)))})};try{y.setState({synchronization:{totalCount:e,pendingCount:e,abortController:i}});for(let e=0;e<r&&n.length>0;e++)for(let e=n.length;e--;){const[r,s]=n[e],l=s.dependsOn.map((e=>t[e]));l.every(Boolean)&&(o[r]={},yield Promise.all(l),t[r]=E(s,o,i,a),n.splice(e,1))}yield Promise.allSettled(Object.values(t))}finally{y.setState({synchronization:void 0})}}))}function E(e,t,n,r){return m(this,arguments,(function*({type:e,dependsOn:t,process:n},r,o,i){var a;const s=[],l=[],u=yield x();yield v.syncQueue.where({type:e,userId:u}).each(((e,t)=>{s.push([t.primaryKey,e.content,e.descriptor]),l.push(e.content)}));for(let c=0;c<s.length;c++){const[f,d,{id:p,dependencies:h=[]}]=s[c];try{const a=yield n(d,{abort:o,index:c,items:l,userId:u,dependencies:h.map((({id:e,type:n})=>t.includes(n)?r[n][e]:void 0))});void 0!==p&&(r[e][p]=a),yield v.syncQueue.delete(f)}catch(e){yield v.syncQueue.update(f,{lastError:{name:null==e?void 0:e.name,message:null!=(a=null==e?void 0:e.message)?a:null==e?void 0:e.toString()}})}finally{i()}}}))}function x(){return m(this,null,(function*(){const e=yield(0,o.getLoggedInUser)();return(null==e?void 0:e.uuid)||"*"}))}function S(e,t,n,o){return m(this,null,(function*(){const i=o&&o.id;return void 0!==i&&(yield v.syncQueue.where({type:t,userId:e}).filter((e=>(null==e?void 0:e.descriptor.id)===i)).delete().catch(r.ZP.errnames.DatabaseClosed)),yield v.syncQueue.add({type:t,content:n,userId:e,descriptor:o||{},createdOn:new Date}).catch(r.ZP.errnames.DatabaseClosed,(()=>-1))}))}function _(e,t,n){return m(this,null,(function*(){const r=yield x();return yield S(r,e,t,n)}))}function k(e,t){return m(this,null,(function*(){return(yield O(e,t)).map((e=>e.content))}))}function O(e,t){return m(this,null,(function*(){const n=t?{type:t,userId:e}:{userId:e};return yield v.syncQueue.where(n).toArray().catch(r.ZP.errnames.DatabaseClosed,(()=>[]))}))}function C(e){return m(this,null,(function*(){const t=yield x();return yield k(t,e)}))}function P(e){return m(this,null,(function*(){const t=yield x();return yield O(t,e)}))}function N(e){return m(this,null,(function*(){return yield v.syncQueue.get(e).catch(r.ZP.errnames.DatabaseClosed,(()=>{}))}))}function T(e){var t;return!!(null==(t=g[e])?void 0:t.options.onBeginEditSyncItem)}function j(e){return m(this,null,(function*(){var t;const n=yield N(e);if(!n)throw new Error(`No sync item with the ID ${e} exists.`);const r=null==(t=g[n.type])?void 0:t.options.onBeginEditSyncItem;if(!r)throw new Error(`A sync item with the ID ${e} exists, but the associated handler (if one exists) doesn't support editing the item. You can avoid this error by either verifying that sync items of this type can be edited via the "canEditSynchronizationItemsOfType(type: string)" function or alternatively ensure that the synchronizaton handler for sync items of type "${n.type}" supports editing items.`);r(n)}))}function L(e){return m(this,null,(function*(){yield v.syncQueue.delete(e).catch(r.ZP.errnames.DatabaseClosed)}))}function I(e,t,n,r={}){g[e]={type:e,dependsOn:t,process:n,options:r}}},6892:(e,t,n)=>{"use strict";n.d(t,{sF:()=>c,z7:()=>f,a7:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));const l=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(o)},u="OFFLINE+";function c(){return u+l()}function f(e){return e.startsWith(u)}},208:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(7959);const o=n.n(r)().createContext({moduleName:""})},2455:(e,t,n)=>{"use strict";n.d(t,{w:()=>f});var r=n(7959),o=n.n(r),i=n(2333),a=Object.defineProperty,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function f(e){var t=e,{to:n,templateParams:r,children:a}=t,f=((e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&u.call(e,r)&&(n[r]=e[r]);return n})(t,["to","templateParams","children"]);return o().createElement("a",((e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&c(e,n,t[n]);return e})({onClick:e=>function(e,t,n){e.metaKey||e.ctrlKey||e.shiftKey||0!=e.button||(e.preventDefault(),(0,i.c4)({to:t,templateParams:n}))}(e,n,r),href:(0,i.ll)(n,r)},f),a)}},5146:(e,t,n)=>{"use strict";n.d(t,{h:()=>p});var r=n(1956),o=n(7959),i=n.n(o),a=n(4008),s=Object.defineProperty,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&f(e,n,t[n]);return e};const p=e=>{var t=e,{state:n,children:s,wrap:f}=t,p=((e,t)=>{var n={};for(var r in e)u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&l)for(var r of l(e))t.indexOf(r)<0&&c.call(e,r)&&(n[r]=e[r]);return n})(t,["state","children","wrap"]);const[h,m]=(0,o.useState)(),{extension:v}=(0,o.useContext)(a.sM),g=(0,o.useRef)(null),y=(0,o.useRef)(null);(0,o.useEffect)((()=>{f&&console.warn(`'wrap' prop of Extension is being used ${(null==v?void 0:v.extensionId)?`by ${v.extensionId} in ${v.extensionSlotName}`:""}. This will be removed in a future release.`)}),[]);const b=(0,o.useCallback)((e=>{m(e)}),[m]);(0,o.useEffect)((()=>{if(null!=h&&v&&!g.current)return(0,r.H8)(h,v.extensionSlotName,v.extensionSlotModuleName,v.extensionId,void 0,n).then((e=>{g.current=e})),()=>{if(g&&g.current)switch(g.current.getStatus()){case"MOUNTING":g.current.mountPromise.then(g.current.unmount);break;case"MOUNTED":g.current.unmount();break;case"UPDATING":y.current&&y.current.then((()=>{g.current&&"MOUNTED"===g.current.getStatus()&&g.current.unmount()}))}}}),[null==v?void 0:v.extensionSlotName,null==v?void 0:v.extensionId,null==v?void 0:v.extensionSlotModuleName,h]),(0,o.useEffect)((()=>(g.current&&g.current.update&&("MOUNTED"===g.current.getStatus()?g.current.update(d({},n)):"MOUNTING"===g.current.getStatus()&&g.current.mountPromise.then((()=>{g.current&&g.current.update&&(y.current=g.current.update(d({},n)))}))),()=>{y.current=null})),[n]);const w=i().createElement("div",d({ref:b,"data-extension-id":null==v?void 0:v.extensionId,style:{position:"relative"}},p));return"function"!=typeof s||i().isValidElement(s)?v&&f?f(w,v):w:i().createElement(i().Fragment,null,s(w,v))}},9287:(e,t,n)=>{"use strict";n.d(t,{d:()=>g});var r=n(7959),o=n.n(r),i=n(208),a=n(5146),s=n(2915),l=Object.defineProperty,u=Object.defineProperties,c=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&h(e,n,t[n]);if(f)for(var n of f(t))p.call(t,n)&&h(e,n,t[n]);return e};function v(e){return e}function g(e){var t=e,{name:n,extensionSlotName:l,select:h=v,children:g,state:y,style:b}=t,w=((e,t)=>{var n={};for(var r in e)d.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))t.indexOf(r)<0&&p.call(e,r)&&(n[r]=e[r]);return n})(t,["name","extensionSlotName","select","children","state","style"]);if(g&&y)throw new Error("Both children and state have been provided. If children are provided, the state must be passed as a prop to the `Extension` component.");const E=null!=n?n:l,x=(0,r.useRef)(null),{extensions:S,extensionSlotModuleName:_}=(0,s.p)(E),k=(0,r.useMemo)((()=>h(S)),[h,S]),O=(0,r.useMemo)((()=>{if("function"==typeof g&&!o().isValidElement(g))return k.map((e=>g(e)))}),[g,k]);return o().createElement("div",m({ref:x,"data-extension-slot-name":E,"data-extension-slot-module-name":_,style:(C=m({},b),P={position:"relative"},u(C,c(P)))},w),E&&k.map(((e,t)=>{var n,r;return o().createElement(i.s.Provider,{key:e.id,value:{moduleName:_,extension:{extensionId:e.id,extensionSlotName:E,extensionSlotModuleName:_}}},null!=(r=null!=(n=null==O?void 0:O[t])?n:"function"!=typeof g?g:null)?r:o().createElement(a.h,{state:y}))})));var C,P}},27:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(8943),o=n(7959),i=n.n(o);const a=({privilege:e,fallback:t,children:n})=>{const[a,s]=(0,o.useState)(null);return(0,o.useEffect)((()=>{const e=(0,r.getCurrentUser)({includeAuthStatus:!1}).subscribe(s);return()=>e.unsubscribe()}),[]),a&&(0,r.userHasAccess)(e,a)?i().createElement(i().Fragment,null,n):t?i().createElement(i().Fragment,null,t):null}},1868:(e,t,n)=>{"use strict";n.d(t,{N:()=>c});var r=n(7959),o=Object.defineProperty,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&l(e,n,t[n]);if(i)for(var n of i(t))s.call(t,n)&&l(e,n,t[n]);return e};function c(e){return function(t){const[n,o]=(0,r.useState)(e.getState());(0,r.useEffect)((()=>e.subscribe((e=>o(e)))),[]);let i={};return t&&(i=(0,r.useMemo)((()=>function(e,t){"function"==typeof t&&(t=t(e));const n={};for(let r in t)n[r]=e.action(t[r]);return n}(e,t)),[e,t])),u(u({},n),i)}}},1989:(e,t,n)=>{"use strict";n.d(t,{D$:()=>O,Ae:()=>_,tl:()=>S,a$:()=>k});var r=n(7959),o=n.n(r),i=n(7299);function a(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(c(n)));return function(){var e=n(t);if(!(e instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(c(e)));return e}}var d=null;try{d=require("react").createContext()}catch(e){}var p={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,renderType:"createRoot",errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}};function h(e){if("object"!==l(e))throw new Error("single-spa-react requires a configuration object");var t=s(s({},p),e);if(!t.React)throw new Error("single-spa-react must be passed opts.React");if(!t.ReactDOM&&!t.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(!t.rootComponent&&!t.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(t.errorBoundary&&"function"!=typeof t.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!d&&t.React.createContext&&(d=t.React.createContext()),t.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(t);var n={bootstrap:m.bind(null,t),mount:v.bind(null,t),unmount:g.bind(null,t)};return t.parcelCanUpdate&&(n.update=y.bind(null,t)),n}function m(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then((function(t){e.rootComponent=t}))}function v(e,t){return new Promise((function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=E(e,t,(function(){n(this)})),i=f(e,t)(),a=function(e){var t=e.renderType,n=e.elementToRender,r=e.domElement,o=e.reactDom[t];if("function"!=typeof o)throw new Error('renderType "'.concat(t,'" did not return a function.'));switch(t){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var i=o(r);return i.render(n),i;case"hydrateRoot":return o(r,n);default:return o(n,r),null}}({elementToRender:o,domElement:i,reactDom:b(e),renderType:w(e)});e.domElements[t.name]=i,e.renderResults[t.name]=a}))}function g(e,t){return new Promise((function(n){e.unmountFinished=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():b(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]}))}function y(e,t){return new Promise((function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=E(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=f(e,t)();b(e).render(r,i)}}))}function b(e){return e.ReactDOMClient||e.ReactDOM}function w(e){return"function"==typeof e.renderType?e.renderType():e.renderType}function E(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=d?e.React.createElement(d.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),e.React.createElement(e.SingleSpaRoot,s(s({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach((function(e){return e()})),delete e.updateResolves[t.name])},unmountFinished:function(){setTimeout(e.unmountFinished)}}),o)}var x=n(303);function S(e,t){return h({React:o(),ReactDOMClient:i,rootComponent:(0,x.B)(t)(e)})}function _(e,t){return()=>e().then((({default:e})=>S(e,t)))}function k(e,t){return()=>Promise.resolve(S(e,t))}const O=_},4008:(e,t,n)=>{"use strict";n.d(t,{sM:()=>r.s,w:()=>o.w,hj:()=>a.h,dT:()=>s.d,Vz:()=>C.V,NV:()=>i.N,D$:()=>l.D$,Ae:()=>l.Ae,tl:()=>l.tl,a$:()=>l.a$,nI:()=>_.n,Bq:()=>u.B,YV:()=>f.Y,P3:()=>c.P,yn:()=>d.y,ZR:()=>p.Z,BL:()=>h.B,Y9:()=>m.Y,TM:()=>y,p8:()=>b.p,qd:()=>w.q,jf:()=>E.j,NW:()=>S,mr:()=>_.m,Z_:()=>k.Z,t$:()=>O.t,h0:()=>L.h,lm:()=>v.l,kP:()=>P.k,oR:()=>N.o,xQ:()=>N.x,JF:()=>T.J,NN:()=>j.N});var r=n(208),o=n(2455),i=n(1868),a=n(5146),s=n(9287),l=n(1989),u=n(303),c=n(9269),f=n(9136),d=n(2240),p=n(9974),h=n(1545),m=n(734),v=n(3545),g=n(1956);const y=(0,i.N)((0,g.Co)());var b=n(2915),w=n(1884),E=n(51),x=n(7959);function S(){const[,e]=(0,x.useState)(0);return(0,x.useCallback)((()=>{e((e=>e+1))}),[])}var _=n(3990),k=n(5406),O=n(3801),C=n(27),P=n(5757),N=n(4163),T=n(6397),j=n(5772),L=n(2226)},303:(e,t,n)=>{"use strict";n.d(t,{B:()=>y});var r=n(7959),o=n.n(r),i=n(8658),a=n.n(i),s=n(8433),l=n(208),u=Object.defineProperty,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e};const m=a().default||a(),v={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},g=e=>{(0,r.useEffect)((()=>(m.on("languageChanged",e.forceUpdate),()=>m.off("languageChanged",e.forceUpdate))),[e.forceUpdate]);const t=(0,r.useRef)(null);if(t.current)throw t.current;if(!m.hasLoadedNamespace(e.ns)){const n=setTimeout((()=>{console.warn(`openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['${e.ns}']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects.`)}),3e3);throw m.loadNamespaces([e.ns]).then((()=>clearTimeout(n))).catch((e=>{clearTimeout(n),t.current=e}))}return o().createElement(o().Fragment,null,e.children)};function y(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");const t=Object.assign({},v,e);return function(e){var n;return(n=class extends o().Component{constructor(e){super(e),this.state={caughtError:null,caughtErrorInfo:null,config:{moduleName:t.moduleName,extension:e._extensionContext}}}componentDidCatch(e,n){n&&n.componentStack&&(e.extra=Object.assign(e.extra||{},{componentStack:n.componentStack})),t.throwErrorsToConsole&&setTimeout((()=>{throw e})),this.setState({caughtError:e,caughtErrorInfo:n})}render(){if(this.state.caughtError)return o().createElement("div",null,"An error has occurred. Please try reloading the page.");{const n=o().createElement(l.s.Provider,{value:this.state.config},o().createElement(o().Suspense,{fallback:null},t.disableTranslations?o().createElement(e,h({},this.props)):o().createElement(g,{ns:t.moduleName,forceUpdate:()=>this.forceUpdate()},o().createElement(s.I18nextProvider,{i18n:m,defaultNS:t.moduleName},o().createElement(e,h({},this.props))))));return t.strictMode||!o().StrictMode?n:o().createElement(o().StrictMode,null,n)}}}).displayName=`OpenmrsReactComponent(${t.featureName})`,n}}},8878:(e,t,n)=>{"use strict";n.d(t,{Ae:()=>s.Ae,BL:()=>d.B,D$:()=>s.D$,JF:()=>S.J,NN:()=>_.N,NV:()=>o.N,P3:()=>l.P,Vz:()=>w.V,Y9:()=>p.Y,YV:()=>u.Y,ZR:()=>f.Z,Z_:()=>y.Z,a$:()=>s.a$,dT:()=>a.d,h0:()=>k.h,hj:()=>i.h,jf:()=>v.j,kP:()=>E.k,lm:()=>h.l,mr:()=>g.m,nI:()=>g.n,oR:()=>x.o,qd:()=>m.q,t$:()=>b.t,tl:()=>s.tl,w:()=>r.w,xQ:()=>x.x,yn:()=>c.y}),n(208);var r=n(2455),o=n(1868),i=n(5146),a=n(9287),s=n(1989),l=n(9269),u=n(9136),c=n(2240),f=n(9974),d=n(1545),p=n(734),h=n(3545),m=n(1884),v=n(51),g=n(3990),y=n(5406),b=n(3801),w=n(27),E=n(5757),x=n(4163),S=n(6397),_=n(5772),k=n(2226)},9136:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var r=n(7959),o=n(1956),i=n(4896);function a(e){const[t,n]=(0,r.useState)([]);return(0,r.useEffect)((()=>(0,o.yw)().subscribe((r=>{var o,a;const s=null!=(a=null==(o=r.slots[e])?void 0:o.assignedExtensions.map((e=>e.id)))?a:[];(0,i.Z)(s,t)||n(s)}))),[]),t}},9269:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var r=n(7959),o=n(1956),i=n(4896);function a(e){const[t,n]=(0,r.useState)([]);return(0,r.useEffect)((()=>{function r(r){var o,a;const s=null!=(a=null==(o=r.slots[e])?void 0:o.assignedExtensions)?a:[];(0,i.Z)(s,t)||n(s)}return r((0,o.yw)().getState()),(0,o.yw)().subscribe(r)}),[e,t]),t}},2240:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(7959);function o(e){(0,r.useEffect)((()=>{if(e){const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}}),[e])}},9974:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(7959),o=n(2333),i=n(208),a=n(4896),s=Object.defineProperty,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&f(e,n,t[n]);return e};const p={};function h(e){const t=(0,r.useMemo)(o._z,[]),n=function(e,t){const[n,i]=(0,r.useState)(function(e,t){return t?()=>{const n=e.getState(),r=(0,o.sR)(n,t.extensionSlotName,t.extensionId);if(r.loaded&&r.config)return r.config}:null}(e,t));return(0,r.useEffect)((()=>{if(t)return e.subscribe((e=>{const r=(0,o.sR)(e,t.extensionSlotName,t.extensionId);r.loaded&&r.config&&!(0,a.Z)(r.config,n)&&i(r.config)}))}),[e,t,n]),n}(t,e);if(!n&&e){const n=`${e.extensionSlotName}-${e.extensionId}`;throw!p[n]&&t&&(p[n]=function(e,t){return new Promise((n=>{const r=e.subscribe((e=>{const i=(0,o.sR)(e,t.extensionSlotName,t.extensionId);i.loaded&&i.config&&(n(i.config),r())}))}))}(t,e)),p[n]}return n||{}}function m(){const{moduleName:e,extension:t}=(0,r.useContext)(i.s);if(!e&&!t)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');const n=function(e){const t=(0,r.useMemo)((()=>(0,o.pR)(e)),[e]),n=e,i=function(e){const[t,n]=(0,r.useState)(function(e){return()=>{const t=e.getState();return t.loaded&&t.config?t.config:null}}(e));return(0,r.useEffect)((()=>null==e?void 0:e.subscribe((e=>{e.loaded&&e.config&&n(e.config)}))),[e]),t}(t);if(!i)throw p[n]||(p[n]=function(e){return new Promise((t=>{const n=e.subscribe((e=>{e.loaded&&e.config&&(t(e.config),n())}))}))}(t)),p[n];return i}(e),a=h(t);return(0,r.useMemo)((()=>d(d({},n),a)),[n,a])}},1545:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(7959),o=n(1956),i=n(734),a=n(9269);function s(e){const t=(0,i.Y)(),n=(0,a.P)(e);return(0,r.useMemo)((()=>(0,o.Kq)(n,t)),[n,t])}},734:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});var r=n(6217),o=n(7959);function i(){let[e,t]=(0,o.useState)(window.navigator.onLine);return(0,o.useEffect)((()=>(0,r.XS)((({online:e})=>t(e)))),[]),e}},2915:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(7959),o=n(1956),i=n(208),a=n(1545);function s(e){const{moduleName:t}=(0,r.useContext)(i.s);if(!t)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,r.useEffect)((()=>{(0,o.Qq)(t,e)}),[]),{extensions:(0,a.B)(e),extensionSlotName:e,extensionSlotModuleName:t}}},1884:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(7959),o=n(1545);function i(e){const t=(0,o.B)(e);return(0,r.useMemo)((()=>Object.fromEntries(t.map((e=>[e.name,e.meta])))),[t])}},51:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(1956);const o=(0,n(1868).N)((0,r.yw)())},3990:(e,t,n)=>{"use strict";n.d(t,{m:()=>i,n:()=>a});var r=n(7959);function o(){let e="tablet";return document.body.classList.forEach((t=>{switch(t){case"omrs-breakpoint-lt-tablet":e="phone";break;case"omrs-breakpoint-gt-small-desktop":e="large-desktop";break;case"omrs-breakpoint-gt-tablet":e="small-desktop"}})),e}function i(){const[e,t]=(0,r.useState)(o);return(0,r.useEffect)((()=>{const e=()=>{t(o())};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}const a=e=>"small-desktop"===e||"large-desktop"===e},5406:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8943),o=n(7959);function i(){const[e,t]=(0,o.useState)([]);return(0,o.useEffect)((()=>{const e=(0,r.getLocations)().subscribe((e=>{t(e)}),(e=>{console.error(e)}));return()=>e.unsubscribe()}),[]),e}},3801:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(7959);function o(e,t=!0){const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(t){const t=t=>{var r;(null==(r=null==n?void 0:n.current)?void 0:r.contains(t.target))||e(t)};return window.addEventListener("click",t),()=>window.removeEventListener("click",t)}}),[e,t]),n}},2226:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(7959);function o(e=[],t=10){const[n,o]=(0,r.useState)(1),i=(0,r.useMemo)((()=>"number"==typeof t&&t>0?Math.max(1,Math.ceil(e.length/t)):1),[e.length,t]);return{results:(0,r.useMemo)((()=>{const r=(n-1)*t,o=(n+0)*t;return e.slice(r,o)}),[e,n,t]),totalPages:i,currentPage:n,paginated:e.length>t,showNextButton:n<i,showPreviousButton:n>1,goTo(e){o(Math.max(1,Math.min(i,e)))},goToNext(){n<i&&o(n+1)},goToPrevious(){n>1&&o(n-1)}}}},3545:(e,t,n)=>{"use strict";n.d(t,{l:()=>g});var r=n(7959),o=n(8943),i=Object.defineProperty,a=Object.defineProperties,s=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&f(e,n,t[n]);return e},p=(e,t)=>a(e,s(t));const h={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};function m(){const e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]}function v(e,t){switch(t.type){case"loadPatient":return p(d({},e),{patientUuid:t.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null});case"newPatient":return p(d({},e),{patient:t.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null});case"patientLoadError":return p(d({},e),{patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:t.err});default:return e}}function g(e){const[t,n]=(0,r.useReducer)(v,p(d({},h),{patientUuid:null!=e?e:null,isPendingUuid:!e,isLoadingPatient:!!e}));return(0,r.useEffect)((()=>{if(t.isPendingUuid){const e=m();n(e?{type:"loadPatient",patientUuid:e}:{type:"newPatient",patient:null})}let e=!0;return t.isLoadingPatient&&t.patientUuid&&(0,o.fetchCurrentPatient)(t.patientUuid).then((t=>e&&n({patient:t,type:"newPatient"})),(t=>e&&n({err:t,type:"patientLoadError"}))),()=>{e=!1}}),[t.isPendingUuid,t.isLoadingPatient,t.patientUuid]),(0,r.useEffect)((()=>{const e=e=>{const r=m();r!=t.patientUuid&&n({type:"loadPatient",patientUuid:r})};return window.addEventListener("single-spa:routing-event",e),()=>window.removeEventListener("single-spa:routing-event",e)}),[t.patientUuid]),{isLoading:t.isPendingUuid||t.isLoadingPatient,patient:t.patient,patientUuid:null!=e?e:t.patientUuid,error:t.err}}},5757:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(8943),o=n(7959);let i,a;function s(){const[e,t]=(0,o.useState)(null);let n=null;if(!e){if(i){const e=(0,r.getSessionStore)().getState();e.loaded&&(n=e.session)}else i=new Promise((e=>{const t=({loaded:t,session:r})=>{t&&(e(r),n=r,a&&a(),a=void 0)};t((0,r.getSessionStore)().getState()),n||(a=(0,r.getSessionStore)().subscribe(t))}));if(!n)throw i;t(n)}(0,o.useEffect)((()=>(a||(a=(0,r.getSessionStore)().subscribe((({loaded:e,session:r})=>{e&&(n=r,t(r))}))),()=>{a&&a(),a=void 0})),[]);const s=e||n;if(!s)throw i?(console.warn("useSession is in an unexpected state. Attempting to recover."),i):Error("useSession is in an invalid state.");return s}},4163:(e,t,n)=>{"use strict";n.d(t,{o:()=>d,x:()=>p});var r=n(8516),o=n(7959),i=Object.defineProperty,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&u(e,n,t[n]);if(a)for(var n of a(t))l.call(t,n)&&u(e,n,t[n]);return e};const f=e=>e;function d(e,t=f,n){const[i,a]=(0,o.useState)((()=>t(e.getState())));(0,o.useEffect)((()=>(0,r.se)(e,t,a)),[e,t]);let s={};return n&&(s=(0,o.useMemo)((()=>function(e,t){"function"==typeof t&&(t=t(e));const n={};for(let r in t)n[r]=e.action(t[r]);return n}(e,n)),[e,n])),c(c({},i),s)}function p(e,t){return d(e,f,t)}},6397:(e,t,n)=>{"use strict";n.d(t,{J:()=>J});var r=n(8943),o=n(7959),i=n(8630);const a=new WeakMap,s={},l=()=>{},u=l(),c=Object,f=e=>e===u,d=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),h="undefined",m=typeof window!=h,v=typeof document!=h,g=(e,t)=>{const n=a.get(e);return[()=>e.get(t)||s,r=>{const o=e.get(t);n[5](t,p(o,r),o||s)},n[6]]},y=new WeakMap;let b=0;const w=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(c(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=y.get(e),o)return o;if(o=++b+"~",y.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=w(e[i])+",";y.set(e,o)}if(n==c){o="#";const t=c.keys(e).sort();for(;!f(i=t.pop());)f(e[i])||(o+=i+":"+w(e[i])+",");y.set(e,o)}}return o};let E=!0;const[x,S]=m&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],_={isOnline:()=>E,isVisible:()=>{const e=v&&document.visibilityState;return f(e)||"hidden"!==e}},k={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),x("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{const t=()=>{E=!0,e()},n=()=>{E=!1};return x("online",t),x("offline",n),()=>{S("online",t),S("offline",n)}}},O=!o.useId,C=!m||"Deno"in window,P=C?o.useEffect:o.useLayoutEffect,N="undefined"!=typeof navigator&&navigator.connection,T=!C&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),j=e=>{if(d(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?w(e):"",t]};let L=0;const I=()=>++L;async function M(...e){const[t,n,r,o]=e,i=p({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=i.populateCache;const l=i.rollbackOnError;let c=i.optimisticData;const h=!1!==i.revalidate,m=i.throwOnError;if(d(n)){const e=n,r=[],o=t.keys();for(let n=o.next();!n.done;n=o.next()){const o=n.value;!o.startsWith("$inf$")&&e(t.get(o)._k)&&r.push(o)}return Promise.all(r.map(v))}return v(n);async function v(n){const[o]=j(n);if(!o)return;const[i,p]=g(t,o),[v,y,b]=a.get(t),w=v[o],E=()=>h&&(delete b[o],w&&w[0])?w[0](2).then((()=>i().data)):i().data;if(e.length<3)return E();let x,S=r;const _=I();y[o]=[_,0];const k=!f(c),O=i(),C=O.data,P=O._c,N=f(P)?C:P;if(k&&(c=d(c)?c(N):c,p({data:c,_c:N})),d(S))try{S=S(N)}catch(e){x=e}if(S&&d(S.then)){if(S=await S.catch((e=>{x=e})),_!==y[o][0]){if(x)throw x;return S}x&&k&&(e=>"function"==typeof l?l(e):!1!==l)(x)&&(s=!0,S=N,p({data:S,_c:u}))}s&&(x||(d(s)&&(S=s(S,N)),p({data:S,_c:u}))),y[o][1]=I();const T=await E();if(p({_c:u}),!x)return s?T:S;if(m)throw x}}const D=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},R=(e,t)=>{if(!a.has(e)){const n=p(k,t),r={},o=M.bind(u,e);let i=l;const s={},c=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(let e=o.length;e--;)o[e](r,n)},d=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},o,f,c]),!C)){const t=n.initFocus(setTimeout.bind(u,D.bind(u,r,0))),o=n.initReconnect(setTimeout.bind(u,D.bind(u,r,1)));i=()=>{t&&t(),o&&o(),a.delete(e)}}};return d(),[e,o,d,i]}return[e,a.get(e)[4]]},[A,$]=R(new Map),F=p({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!f(i)&&a>i||setTimeout(r,s,o)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(e,t)=>w(e)==w(t),isPaused:()=>!1,cache:A,mutate:$,fallback:{}},_),U=(e,t)=>{const n=p(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=p(o,a))}return n},B=(0,o.createContext)({}),z=m&&window.__SWR_DEVTOOLS_USE__,Z=z?window.__SWR_DEVTOOLS_USE__:[],H=Z.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const r=j(t)[0],[,,,o]=a.get(A),i=o[r];return i?(delete o[r],i):n(...e)}),r)));z&&(window.__SWR_DEVTOOLS_REACT__=o);const V={dedupe:!0};c.defineProperty((e=>{const{value:t}=e,n=(0,o.useContext)(B),r=d(t),i=(0,o.useMemo)((()=>r?t(n):t),[r,n,t]),a=(0,o.useMemo)((()=>r?i:U(n,i)),[r,n,i]),s=i&&i.provider,[l]=(0,o.useState)((()=>s?R(s(a.cache||A),i):u));return l&&(a.cache=l[0],a.mutate=l[1]),P((()=>{if(l)return l[2]&&l[2](),l[3]}),[]),(0,o.createElement)(B.Provider,p(e,{value:a}))}),"defaultValue",{value:F});var K,W=(K=(e,t,n)=>{const{cache:r,compare:s,suspense:l,fallbackData:c,revalidateOnMount:v,refreshInterval:y,refreshWhenHidden:b,refreshWhenOffline:w,keepPreviousData:E}=n,[x,S,_]=a.get(r),[k,N]=j(e),T=(0,o.useRef)(!1),L=(0,o.useRef)(!1),D=(0,o.useRef)(k),R=(0,o.useRef)(t),A=(0,o.useRef)(n),$=()=>A.current,F=()=>$().isVisible()&&$().isOnline(),[U,B,z]=g(r,k),Z=(0,o.useRef)({}).current,H=f(c)?n.fallback[k]:c,K=(e,t)=>{let n=!0;for(const r in Z){const o=r;s(t[o],e[o])||"data"===o&&f(e[o])&&s(t[o],ee)||(n=!1)}return n},W=(0,o.useMemo)((()=>{const e=!!k&&!!t&&(f(v)?!$().isPaused()&&!l:v),n=()=>{const t=U(),n=p(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n};let r=n();return()=>{const e=n();return K(e,r)?r:r=e}}),[r,k]),q=(0,i.useSyncExternalStore)((0,o.useCallback)((e=>z(k,((t,n)=>{K(t,n)||e()}))),[r,k]),W,W),Y=!T.current,G=q.data,Q=f(G)?H:G,J=q.error,X=(0,o.useRef)(Q),ee=E?f(G)?X.current:G:Q,te=Y&&!f(v)?v:!$().isPaused()&&(l?!f(Q)&&n.revalidateIfStale:f(Q)||n.revalidateIfStale),ne=!!(k&&t&&Y&&te),re=f(q.isValidating)?ne:q.isValidating,oe=f(q.isLoading)?ne:q.isLoading,ie=(0,o.useCallback)((async e=>{const t=R.current;if(!k||!t||L.current||$().isPaused())return!1;let r,o,i=!0;const a=e||{},l=!_[k]||!a.dedupe,c=()=>O?!L.current&&k===D.current&&T.current:k===D.current,p={isValidating:!1,isLoading:!1},h=()=>{B(p)},m=()=>{const e=_[k];e&&e[1]===o&&delete _[k]},v={isValidating:!0};f(U().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(U().data)&&setTimeout((()=>{i&&c()&&$().onLoadingSlow(k,n)}),n.loadingTimeout),_[k]=[t(N),I()]),[r,o]=_[k],r=await r,l&&setTimeout(m,n.dedupingInterval),!_[k]||_[k][1]!==o)return l&&c()&&$().onDiscarded(k),!1;p.error=u;const e=S[k];if(!f(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return h(),l&&c()&&$().onDiscarded(k),!1;const a=U().data;p.data=s(a,r)?a:r,l&&c()&&$().onSuccess(r,k,n)}catch(e){m();const t=$(),{shouldRetryOnError:n}=t;t.isPaused()||(p.error=e,l&&c()&&(t.onError(e,k,t),(!0===n||d(n)&&n(e))&&F()&&t.onErrorRetry(e,k,t,ie,{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return i=!1,h(),!0}),[k,r]),ae=(0,o.useCallback)(((...e)=>M(r,D.current,...e)),[]);if(P((()=>{R.current=t,A.current=n,f(G)||(X.current=G)})),P((()=>{if(!k)return;const e=ie.bind(u,V);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(k,x,(n=>{if(0==n){const n=Date.now();$().revalidateOnFocus&&n>t&&F()&&(t=n+$().focusThrottleInterval,e())}else if(1==n)$().revalidateOnReconnect&&F()&&e();else if(2==n)return ie()}));return L.current=!1,D.current=k,T.current=!0,B({_k:N}),te&&(f(Q)||C?e():(r=e,m&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{L.current=!0,n()};var r}),[k]),P((()=>{let e;function t(){const t=d(y)?y(Q):y;t&&-1!==e&&(e=setTimeout(n,t))}function n(){U().error||!b&&!$().isVisible()||!w&&!$().isOnline()?t():ie(V).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[y,b,w,k]),(0,o.useDebugValue)(ee),l&&f(Q)&&k){if(!O&&C)throw new Error("Fallback data is required when using suspense in SSR.");throw R.current=t,A.current=n,L.current=!1,f(J)?ie(V):J}return{mutate:ae,get data(){return Z.data=!0,ee},get error(){return Z.error=!0,J},get isValidating(){return Z.isValidating=!0,re},get isLoading(){return Z.isLoading=!0,oe}}},function(...e){const t=p(F,(0,o.useContext)(B)),[n,r,i]=(e=>d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(e),a=U(t,i);let s=K;const{use:l}=a,u=(l||[]).concat(H);for(let e=u.length;e--;)s=u[e](s);return s(n,r||a.fetcher||null,a)}),q=n(3772),Y=n.n(q),G=n(1508),Q=n.n(G);function J(e){const{data:t,error:n,mutate:i,isValidating:a}=W(e?`/ws/rest/v1/visit?patient=${e}&v=${r.defaultVisitCustomRepresentation}&includeInactive=false`:null,r.openmrsFetch);return{error:n,mutate:i,isValidating:a,currentVisit:(0,o.useMemo)((()=>{var e;return null!=(e=null==t?void 0:t.data.results.find((e=>null===e.stopDatetime&&Y()(e.startDatetime).isToday())))?e:null}),[null==t?void 0:t.data.results]),isLoading:!t&&!n}}Y().extend(Q())},5772:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(8943),o=n(7959);function i(){const[e,t]=(0,o.useState)([]);return(0,o.useEffect)((()=>{const e=(0,r.getVisitTypes)().subscribe((e=>{t(e)}),(e=>console.error(e)));return()=>e.unsubscribe()}),[]),e}},8516:(e,t,n)=>{"use strict";n.d(t,{MI:()=>r.MI,W5:()=>r.W5,jk:()=>r.jk,se:()=>r.se,zJ:()=>r.zJ});var r=n(824)},978:(e,t,n)=>{"use strict";n.d(t,{W5:()=>r.W5,jk:()=>r.jk,se:()=>r.se,zJ:()=>r.zJ});var r=n(824)},824:(e,t,n)=>{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=[];function n(e){for(var n=[],r=0;r<t.length;r++)t[r]===e?e=null:n.push(t[r]);t=n}function o(n,o,i){e=o?n:r(r({},e),n);for(var a=t,s=0;s<a.length;s++)a[s](e,i)}return e=e||{},{action:function(t){function n(e){o(e,!1,t)}return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var a=t.apply(this,o);if(null!=a)return a.then?a.then(n):n(a)}},setState:o,subscribe:function(e){return t.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return e}}}n.d(t,{MI:()=>l,jk:()=>a,W5:()=>u,zJ:()=>s,se:()=>c});const i={};function a(e,t){const n=i[e];if(n)return n.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):n.value.setState(t,!0),n.active=!0,n.value;{const n=o(t);return i[e]={value:n,active:!0},n}}function s(e,t){const n=i[e];if(!n){const n=o(t);return i[e]={value:n,active:!1},n}return n.value}function l(e){return a("app",e)}function u(){return s("app",{})}function c(e,t,n){let r=t(e.getState());return e.subscribe((e=>{const o=t(e);o!==r&&(r=o,n(o))}))}},5838:(e,t,n)=>{"use strict";n.d(t,{T:()=>l});var r=n(7959),o=n.n(r),i=n(1469),a=n(8433),s=n(4008);const l=({error:e,headerTitle:t})=>{var n,r;const{t:l}=(0,a.useTranslation)(),u="tablet"===(0,s.mr)();return o().createElement(i.n9L,{light:!0,className:"_4ijCRxPywQvd7T3dCBgGxQ=="},o().createElement("div",{className:u?"Z-b8JtaOGW3yfasmfk2weA==":"ILUYHTN9tYafNMhTjug8LA=="},o().createElement("h4",null,t)),o().createElement("p",{className:"+j5OxQdU5IA6yMqL1Ciu4A=="},l("error","Error")," ",`${null==(n=null==e?void 0:e.response)?void 0:n.status}: `,null==(r=null==e?void 0:e.response)?void 0:r.statusText),o().createElement("p",{className:"C6rAgaA2xoWwghbyjuUy4w=="},l("errorCopy","Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.")))}},6344:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>c,Te:()=>y.T,cW:()=>g.cW,Nl:()=>d,zW:()=>h.zW,Pi:()=>h.Pi,iY:()=>p,Oe:()=>v.O,Sn:()=>m.S,VM:()=>g.VM,fu:()=>h.fu,K4:()=>v.K,c0:()=>h.c0,CF:()=>m.C,$d:()=>g.$d});const r='<svg viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.29 40.3278C45.3275 35.2904 52.2878 32.1739 59.9776 32.1739C67.6466 32.1739 74.5911 35.2765 79.6245 40.29L79.6454 21.7502C73.7513 18.7143 67.0622 17 59.9776 17C52.8891 17 46.1652 18.9309 40.2692 21.9679L40.29 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6719 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6868 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.507L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M185.885 90.9982H187.309L190.043 97.3236H190.066L192.824 90.9982H194.215V99.0676H193.258V92.2971H193.234L190.34 99.0676H189.758L186.864 92.2971H186.842V99.0676H185.885V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M198.386 90.9982H203.457V91.8867H199.343V94.4168H203.184V95.3062H199.343V98.1782H203.663V99.0676H198.386V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M207.891 98.1782H209.713C211.561 98.1782 212.963 97.2431 212.963 95.0319C212.963 92.8218 211.561 91.8867 209.713 91.8867H207.891V98.1782ZM206.934 90.9982H210.034C211.617 90.9982 213.987 92.0586 213.987 95.0319C213.987 98.0083 211.617 99.0676 210.034 99.0676H206.934V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.007 99.0676H217.965V90.9982H217.007V99.0676Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.105 92.6628C226.627 92.0119 225.863 91.6819 225.088 91.6819C223.288 91.6819 222.011 93.266 222.011 95.0319C222.011 96.9012 223.277 98.3839 225.088 98.3839C226.068 98.3839 226.855 97.9844 227.425 97.255L228.143 97.8582C227.425 98.8281 226.377 99.2724 225.088 99.2724C222.774 99.2724 220.986 97.4826 220.986 95.0319C220.986 92.6628 222.695 90.7935 225.088 90.7935C226.183 90.7935 227.254 91.1701 227.937 92.0586L227.105 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M233.557 92.2295H233.533L231.858 96.1947H235.152L233.557 92.2295ZM233.123 90.9982H234.023L237.453 99.0676H236.336L235.516 97.0841H231.482L230.65 99.0676H229.568L233.123 90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M240.006 90.9982H240.964V98.1782H244.656V99.0676H240.006V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M252.793 94.5539H253.648C254.708 94.5539 256.087 94.5539 256.087 93.2203C256.087 92.0586 255.073 91.8867 254.139 91.8867H252.793V94.5539ZM251.836 90.9982H253.899C255.46 90.9982 257.113 91.2258 257.113 93.2203C257.113 94.3939 256.349 95.1582 255.095 95.3519L257.386 99.0676H256.213L254.023 95.4434H252.793V99.0676H251.836V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M260.51 90.9982H265.58V91.8867H261.468V94.4168H265.308V95.3062H261.468V98.1782H265.786V99.0676H260.51V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M274.402 92.6628C273.923 92.0119 273.16 91.6819 272.384 91.6819C270.584 91.6819 269.307 93.266 269.307 95.0319C269.307 96.9012 270.573 98.3839 272.384 98.3839C273.364 98.3839 274.151 97.9844 274.72 97.255L275.438 97.8582C274.72 98.8281 273.672 99.2724 272.384 99.2724C270.071 99.2724 268.282 97.4826 268.282 95.0319C268.282 92.6628 269.991 90.7935 272.384 90.7935C273.478 90.7935 274.55 91.1701 275.234 92.0586L274.402 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M284.739 95.0319C284.739 93.1746 283.439 91.6819 281.548 91.6819C279.656 91.6819 278.357 93.1746 278.357 95.0319C278.357 96.8903 279.656 98.3839 281.548 98.3839C283.439 98.3839 284.739 96.8903 284.739 95.0319ZM277.33 95.0319C277.33 92.5932 279.097 90.7935 281.548 90.7935C283.998 90.7935 285.765 92.5932 285.765 95.0319C285.765 97.4726 283.998 99.2724 281.548 99.2724C279.097 99.2724 277.33 97.4726 277.33 95.0319Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M289.514 94.5539H290.369C291.428 94.5539 292.807 94.5539 292.807 93.2203C292.807 92.0586 291.793 91.8867 290.859 91.8867H289.514V94.5539ZM288.556 90.9982H290.618C292.181 90.9982 293.833 91.2258 293.833 93.2203C293.833 94.3939 293.07 95.1582 291.817 95.3519L294.106 99.0676H292.933L290.744 95.4434H289.514V99.0676H288.556V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M297.81 98.1782H299.635C301.48 98.1782 302.881 97.2431 302.881 95.0319C302.881 92.8218 301.48 91.8867 299.635 91.8867H297.81V98.1782ZM296.853 90.9982H299.953C301.538 90.9982 303.909 92.0586 303.909 95.0319C303.909 98.0083 301.538 99.0676 299.953 99.0676H296.853V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M315.407 92.4223C315.089 91.9095 314.517 91.6819 313.937 91.6819C313.093 91.6819 312.216 92.0814 312.216 93.0384C312.216 93.7788 312.626 94.1097 313.914 94.5202C315.168 94.9187 316.331 95.3291 316.331 96.9132C316.331 98.5201 314.951 99.2724 313.493 99.2724C312.558 99.2724 311.555 98.9643 311.007 98.1554L311.828 97.4826C312.17 98.0759 312.854 98.3839 313.549 98.3839C314.37 98.3839 315.303 97.9049 315.303 96.9807C315.303 95.9899 314.633 95.818 313.196 95.341C312.057 94.9644 311.19 94.4625 311.19 93.1189C311.19 91.5677 312.523 90.7935 313.937 90.7935C314.837 90.7935 315.601 91.0439 316.193 91.7386L315.407 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M320.844 95.5914L317.835 90.9982H319.054L321.323 94.6454L323.658 90.9982H324.81L321.8 95.5914V99.0676H320.844V95.5914Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M330.565 92.4223C330.245 91.9095 329.675 91.6819 329.094 91.6819C328.251 91.6819 327.374 92.0814 327.374 93.0384C327.374 93.7788 327.784 94.1097 329.072 94.5202C330.326 94.9187 331.487 95.3291 331.487 96.9132C331.487 98.5201 330.109 99.2724 328.65 99.2724C327.716 99.2724 326.713 98.9643 326.165 98.1554L326.986 97.4826C327.328 98.0759 328.012 98.3839 328.707 98.3839C329.528 98.3839 330.461 97.9049 330.461 96.9807C330.461 95.9899 329.79 95.818 328.354 95.341C327.215 94.9644 326.348 94.4625 326.348 93.1189C326.348 91.5677 327.681 90.7935 329.094 90.7935C329.995 90.7935 330.759 91.0439 331.351 91.7386L330.565 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M339.283 91.8867H336.617V99.0676H335.659V91.8867H332.992V90.9982H339.283V91.8867Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M341.665 90.9982H346.736V91.8867H342.623V94.4168H346.463V95.3062H342.623V98.1782H346.942V99.0676H341.665V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M349.905 90.9982H351.329L354.064 97.3236H354.087L356.845 90.9982H358.236V99.0676H357.278V92.2971H357.255L354.361 99.0676H353.779L350.884 92.2971H350.863V99.0676H349.905V90.9982Z" fill="var(--logo-black)"/>\n</svg>\n',o='<svg id="omrs-logo-partial" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n</svg>\n',i='<svg id="omrs-logo-icon" width="121" height="118" viewBox="0 0 121 118" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.436 39.474C45.505 34.405 52.509 31.269 60.247 31.269C67.964 31.269 74.952 34.391 80.017 39.436L80.038 20.78C74.107 17.725 67.376 16 60.247 16C53.114 16 46.348 17.943 40.415 20.999L40.436 39.474Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.038 79.064C74.969 84.134 67.968 87.269 60.23 87.269C52.513 87.269 45.525 84.148 40.456 79.102L40.436 97.759C46.37 100.813 53.098 102.539 60.23 102.539C67.363 102.539 74.093 100.813 80.024 97.758L80.038 79.064Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.474 79.089C35.405 74.02 32.269 67.019 32.269 59.281C32.269 51.564 35.39 44.577 40.436 39.508L21.779 39.488C18.725 45.421 17 52.148 17 59.281C17 66.414 18.725 73.144 21.782 79.076L40.474 79.089Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.027 39.435C85.096 44.503 88.232 51.508 88.232 59.246C88.232 66.963 85.111 73.951 80.064 79.015L98.722 79.036C101.776 73.105 103.501 66.375 103.501 59.246C103.501 52.112 101.776 45.381 98.72 39.448L80.027 39.435Z" fill="var(--logo-green)"/>\n</svg>\n',a=document.createElement("div"),s=()=>{document.body.appendChild(a)};function l(e,t){const n=(new DOMParser).parseFromString(t,"text/html").querySelector("svg");n&&(n.id=e,a.appendChild(n))}a.id="omrs-svgs-container",a.style.display="none","complete"===document.readyState?s():window.addEventListener("load",s);var u=n(2333);const c={PHONE_MIN:0,PHONE_MAX:600,TABLET_MIN:601,TABLET_MAX:1023,SMALL_DESKTOP_MIN:1024,SMALL_DESKTOP_MAX:1439,LARGE_DESKTOP_MIN:1440,LARGE_DESKTOP_MAX:Number.MAX_SAFE_INTEGER};function f(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<c.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>c.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>c.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<c.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<c.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<c.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>c.SMALL_DESKTOP_MAX)}function d(){window.addEventListener("resize",f),f()}function p(e){const t=document.querySelector("template#loading-spinner");if(t){const n=t.content.cloneNode(!0),r=Array.prototype.map.call(n.childNodes,(e=>e));return e.appendChild(n),()=>r.forEach((e=>e.remove()))}return()=>{}}var h=n(1543),m=n(6133),v=n(4408),g=n(8739),y=n(5838);!function(){function e(e,t){document.documentElement.style.setProperty(e,t)}(0,u.SH)("@openmrs/esm-styleguide",{"Brand color #1":{_default:"#005d5d",_type:u.Dy.String},"Brand color #2":{_default:"#004144",_type:u.Dy.String},"Brand color #3":{_default:"#007d79",_type:u.Dy.String}}),(0,u.pR)("@openmrs/esm-styleguide").subscribe((t=>{t.loaded&&t.config&&(e("--brand-01",t.config["Brand color #1"]),e("--brand-02",t.config["Brand color #2"]),e("--brand-03",t.config["Brand color #3"]))}))}(),l("omrs-logo-full-color",r),l("omrs-logo-full-mono",r),l("omrs-logo-full-grey",r),l("omrs-logo-partial-color",o),l("omrs-logo-partial-mono",o),l("omrs-logo-partial-grey",o),l("omrs-logo-icon-color",i),l("omrs-logo-icon-mono",i),l("omrs-logo-icon-grey",i),l("omrs-logo-white",'<svg id="omrs-logo-white" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-white)"/>\n</svg>\n'),l("omrs-icon-visibility",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path id="icon/action/visibility_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 4.5C7 4.5 2.72998 7.60999 1 12C2.72998 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.60999 17 4.5 12 4.5ZM12 17C9.23999 17 7 14.76 7 12C7 9.23999 9.23999 7 12 7C14.76 7 17 9.23999 17 12C17 14.76 14.76 17 12 17ZM9 12C9 10.34 10.34 9 12 9C13.66 9 15 10.34 15 12C15 13.66 13.66 15 12 15C10.34 15 9 13.66 9 12Z"/>\n </g>\n <title>Visibility rounded</title>\n</svg>\n'),l("omrs-icon-menu",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/menu_24px">\n <path id="icon/navigation/menu_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M4 8C3.44995 8 3 7.54999 3 7C3 6.45001 3.44995 6 4 6H20C20.55 6 21 6.45001 21 7C21 7.54999 20.55 8 20 8H4ZM4 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H4C3.44995 11 3 11.45 3 12C3 12.55 3.44995 13 4 13ZM4 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H4C3.44995 16 3 16.45 3 17C3 17.55 3.44995 18 4 18Z"/>\n </g>\n <title>Menu rounded</title>\n</svg>\n'),l("omrs-icon-search",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/search_24px">\n <path id="icon/action/search_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M15.1865 14.4716H15.9765L20.2165 18.7316C20.6266 19.1416 20.6266 19.8116 20.2165 20.2216C19.8065 20.6316 19.1366 20.6316 18.7265 20.2216L14.4765 15.9716V15.1816L14.2065 14.9016C12.8065 16.1016 10.8966 16.7216 8.86655 16.3816C6.08652 15.9116 3.86655 13.5916 3.52658 10.7916C3.00656 6.56158 6.5665 3.00158 10.7966 3.52157C13.5965 3.86157 15.9166 6.08157 16.3866 8.86157C16.7265 10.8916 16.1065 12.8016 14.9066 14.2016L15.1865 14.4716ZM5.47653 9.97155C5.47653 12.4615 7.48654 14.4716 9.97653 14.4716C12.4665 14.4716 14.4765 12.4615 14.4765 9.97155C14.4765 7.48156 12.4665 5.47155 9.97653 5.47155C7.48654 5.47155 5.47653 7.48156 5.47653 9.97155Z"/>\n </g>\n <title>Search rounded</title>\n</svg>\n'),l("omrs-icon-arrow-back",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_back_24px">\n <path id="icon/navigation/arrow_back_24px_2" d="M18.7912 11.005H7.62124L12.5012 6.12499C12.8912 5.73499 12.8912 5.09499 12.5012 4.70499C12.3144 4.51774 12.0608 4.41251 11.7962 4.41251C11.5317 4.41251 11.2781 4.51774 11.0912 4.70499L4.50124 11.295C4.11124 11.685 4.11124 12.315 4.50124 12.705L11.0912 19.295C11.4812 19.685 12.1112 19.685 12.5012 19.295C12.8912 18.905 12.8912 18.275 12.5012 17.885L7.62124 13.005H18.7912C19.3412 13.005 19.7912 12.555 19.7912 12.005C19.7912 11.455 19.3412 11.005 18.7912 11.005Z"/>\n </g>\n <title>Arrow back rounded</title>\n</svg>\n'),l("omrs-icon-arrow-forward",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"/>\n <title>Arrow forward rounded</title>\n</svg>'),l("omrs-icon-arrow-downward",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_downward_24px">\n <path id="icon/navigation/arrow_downward_24px_2" d="M11.005 5.20874V16.3787L6.12498 11.4987C5.73498 11.1087 5.09498 11.1087 4.70498 11.4987C4.31498 11.8887 4.31498 12.5187 4.70498 12.9087L11.295 19.4987C11.685 19.8887 12.315 19.8887 12.705 19.4987L19.295 12.9087C19.685 12.5187 19.685 11.8887 19.295 11.4987C19.1081 11.3115 18.8545 11.2063 18.59 11.2063C18.3255 11.2063 18.0718 11.3115 17.885 11.4987L13.005 16.3787V5.20874C13.005 4.65874 12.555 4.20874 12.005 4.20874C11.455 4.20874 11.005 4.65874 11.005 5.20874Z"/>\n </g>\n <title>Arrow downward rounded</title>\n</svg>\n'),l("omrs-icon-arrow-upward",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_upward_24px">\n <path id="icon/navigation/arrow_upward_24px_2" d="M13 18.7913V7.62126L17.88 12.5013C18.27 12.8913 18.91 12.8913 19.3 12.5013C19.69 12.1113 19.69 11.4813 19.3 11.0913L12.71 4.50126C12.5231 4.314 12.2695 4.20877 12.005 4.20877C11.7405 4.20877 11.4868 4.314 11.3 4.50126L4.69997 11.0813C4.30997 11.4713 4.30997 12.1013 4.69997 12.4913C5.08997 12.8813 5.71997 12.8813 6.10997 12.4913L11 7.62126V18.7913C11 19.3413 11.45 19.7913 12 19.7913C12.55 19.7913 13 19.3413 13 18.7913Z"/>\n </g>\n <title>Arrow upward rounded </title>\n</svg>\n'),l("omrs-icon-chevron-left",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_left_24px">\n <path id="icon/navigation/chevron_left_24px_2" d="M15 6.70499C14.8132 6.51774 14.5595 6.41251 14.295 6.41251C14.0305 6.41251 13.7769 6.51774 13.59 6.70499L9.00002 11.295C8.61002 11.685 8.61002 12.315 9.00002 12.705L13.59 17.295C13.98 17.685 14.61 17.685 15 17.295C15.39 16.905 15.39 16.275 15 15.885L11.12 11.995L15 8.11499C15.39 7.72499 15.38 7.08499 15 6.70499Z"/>\n </g>\n <title>Chevron left</title>\n</svg>\n'),l("omrs-icon-chevron-right",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_right_24px">\n <path id="icon/navigation/chevron_right_24px_2" d="M9.00002 6.71063C8.61002 7.10063 8.61002 7.73063 9.00002 8.12063L12.88 12.0006L9.00002 15.8806C8.61002 16.2706 8.61002 16.9006 9.00002 17.2906C9.39002 17.6806 10.02 17.6806 10.41 17.2906L15 12.7006C15.39 12.3106 15.39 11.6806 15 11.2906L10.41 6.70063C10.03 6.32063 9.39002 6.32063 9.00002 6.71063Z"/>\n </g>\n <title>Chevron right</title>\n</svg>\n'),l("omrs-icon-chevron-up",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_up_24px">\n <path d="M11.29 8.71L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71c-.38-.39-1.02-.39-1.41 0z"/>\n </g>\n <title>Chevron up</title>\n</svg>\n'),l("omrs-icon-chevron-down",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_down_24px">\n <path id="icon/navigation/chevron_down_24px" d="M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"/>\n </g>\n <title>Chevron down</title>\n</svg>\n'),l("omrs-icon-supervised-user-circle",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/supervised_user_circle_24px">\n <path id="icon/action/supervised_user_circle_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47998 2 2 6.48001 2 12C2 17.52 6.47998 22 12 22C17.52 22 22 17.52 22 12C22 6.48001 17.52 2 12 2ZM15.61 8.34C16.6801 8.34 17.54 9.19998 17.54 10.27C17.54 11.34 16.6801 12.2 15.61 12.2C14.54 12.2 13.6801 11.34 13.6801 10.27C13.67 9.19998 14.54 8.34 15.61 8.34ZM11.97 9.12C11.97 7.82001 10.91 6.76001 9.60999 6.76001C8.30005 6.76001 7.25 7.81 7.25 9.12C7.25 10.42 8.31006 11.48 9.60999 11.48C10.91 11.48 11.97 10.42 11.97 9.12ZM9.60999 15.89V19.64C7.20996 18.89 5.30994 17.04 4.46997 14.68C5.52002 13.56 8.14001 12.99 9.60999 12.99C10.14 12.99 10.8099 13.07 11.51 13.21C9.87 14.08 9.60999 15.23 9.60999 15.89ZM11.21 19.96C11.47 19.99 11.73 20 12 20C15.39 20 18.2799 17.88 19.45 14.91C18.5299 14.15 16.6799 13.76 15.61 13.76C14.1499 13.76 11.21 14.47 11.21 15.89V19.96Z"/>\n </g>\n <title>Supervised user circle rounded</title>\n</svg>\n'),l("omrs-icon-home",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n<g id="icon/navigation/home_24px">\n <path id="icon/navigation/home_24px" d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"/>\n</g>\n<title>Home rounded</title>\n</svg>'),l("omrs-icon-close",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>\n <title>Close icon</title>\n</svg>'),l("omrs-icon-important-notification",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/important_notification_24px_rounded">\n <path d="M12 23c1.1 0 1.99-.89 1.99-1.99h-3.98c0 1.1.89 1.99 1.99 1.99zm8.29-4.71L19 17v-6c0-3.35-2.36-6.15-5.5-6.83V3c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-1.29 1.29c-.63.63-.19 1.71.7 1.71h15.17c.9 0 1.34-1.08.71-1.71zM13 16h-2v-2h2v2zm0-5c0 .55-.45 1-1 1s-1-.45-1-1V9c0-.55.45-1 1-1s1 .45 1 1v2z"/>\n </g>\n <title>Important notification</title>\n</svg>\n'),l("omrs-icon-calendar",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/calendar24px">\n <path d="M20 3h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H7V2c0-.55-.45-1-1-1s-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 18H5c-.55 0-1-.45-1-1V8h16v12c0 .55-.45 1-1 1z"/>\n </g>\n <title>Calendar rounded</title>\n</svg>'),l("omrs-icon-access-time",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/access_time24px">\n <path id="icon/callend/access_time24px" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z" />\n </g>\n <title>Access time rounded</title>\n</svg>'),l("omrs-icon-add",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Add rounded</title>\n</svg>\n'),l("omrs-icon-remove",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Remove rounded</title>\n</svg>\n'),l("omrs-icon-check-circle",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>\n <title>Check circle</title>\n</svg>\n'),l("omrs-icon-zoomoutmap",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path d="M15.85 3.85L17.3 5.3l-2.18 2.16c-.39.39-.39 1.03 0 1.42.39.39 1.03.39 1.42 0L18.7 6.7l1.45 1.45c.31.31.85.09.85-.36V3.5c0-.28-.22-.5-.5-.5h-4.29c-.45 0-.67.54-.36.85zm-12 4.3L5.3 6.7l2.16 2.18c.39.39 1.03.39 1.42 0 .39-.39.39-1.03 0-1.42L6.7 5.3l1.45-1.45c.31-.31.09-.85-.36-.85H3.5c-.28 0-.5.22-.5.5v4.29c0 .45.54.67.85.36zm4.3 12L6.7 18.7l2.18-2.16c.39-.39.39-1.03 0-1.42-.39-.39-1.03-.39-1.42 0L5.3 17.3l-1.45-1.45c-.31-.31-.85-.09-.85.36v4.29c0 .28.22.5.5.5h4.29c.45 0 .67-.54.36-.85zm12-4.3L18.7 17.3l-2.16-2.18c-.39-.39-1.03-.39-1.42 0-.39.39-.39 1.03 0 1.42l2.18 2.16-1.45 1.45c-.31.31-.09.85.36.85h4.29c.28 0 .5-.22.5-.5v-4.29c0-.45-.54-.67-.85-.36z" />\n </g>\n <title>\n Zoom Out \n </title>\n</svg>'),l("omrs-icon-location",'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24">\n <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/>\n <path d="M0 0h24v24H0z" class="omrs-icon-location"/>\n <title>Location icon</title>\n</svg>'),l("omrs-icon-download",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z" />\n <title>Download icon</title>\n</svg>')},8739:(e,t,n)=>{"use strict";n.d(t,{cW:()=>v,VM:()=>h,$d:()=>m});var r=n(7959),o=n.n(r),i=n(4008),a=n(8516),s=n(1469);var l=Object.defineProperty,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const p=(0,a.jk)("left-nav",{slotName:null,basePath:window.spaBase});function h({name:e,basePath:t}){p.setState({slotName:e,basePath:t})}function m(e){p.getState().slotName==e&&p.setState({slotName:null})}const v=o().forwardRef(((e,t)=>{var n;const{slotName:r,basePath:a}=(0,i.oR)(p),l=null!=(n=window.location)?n:{pathname:""};return o().createElement(s.kwZ,((e,t)=>{for(var n in t||(t={}))c.call(t,n)&&d(e,n,t[n]);if(u)for(var n of u(t))f.call(t,n)&&d(e,n,t[n]);return e})({ref:t,expanded:!0,"aria-label":"Left navigation",className:"hwSZ3FCKSZr0UHIv-TeHHw=="},e),o().createElement(i.dT,{name:"global-nav-menu-slot"}),r?o().createElement(i.dT,{name:r,state:{basePath:a,currentPath:l}}):null)}))},4408:(e,t,n)=>{"use strict";n.d(t,{K:()=>E,O:()=>g});var r=n(1956),o=n(8516),i=Object.defineProperty,a=Object.defineProperties,s=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&f(e,n,t[n]);return e},p=(e,t)=>a(e,s(t));const h=(0,o.jk)("globalModalState",{modalContainer:null,modalStack:[]});const m=window.getComputedStyle(document.body).overflow;function v({modalStack:e,modalContainer:t}){t&&(e.length?(t.style.visibility||(addEventListener("keydown",w),document.body.style.overflow="hidden",t.style.visibility="unset"),e.forEach(((n,o)=>{var i,a,s;switch(n.state){case"NEW":const{outer:l,contentContainer:u}=function(){const e=function(e){const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild}('\n <button\n class="cds--modal-close"\n type="button">\n <svg id="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><style>.cls-1{fill:#000000;}.cls-2{fill:none;}</style></defs><title>close</title><polygon class="cls-1" points="24 9.4 22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4"/><rect class="cls-2" width="32" height="32"/></svg>\n </button>'.trim());e.addEventListener("click",b);const t=document.createElement("div");t.className="cds--modal-container";const n=document.createElement("div");return t.append(e),t.append(n),{outer:t,contentContainer:n}}();n.container=l,(0,r.H8)(u,"","",n.extensionId,void 0,n.props).then((e=>{n.parcel=e,n.state="MOUNTED",t.prepend(l),l.style.visibility="unset"}));break;case"MOUNTED":n.container&&(n.container.style.visibility=o?"hidden":"unset");break;case"TO_BE_DELETED":n.onClose(),null==(a=null==(i=n.parcel)?void 0:i.unmount)||a.call(i),null==(s=n.container)||s.remove(),setTimeout((()=>{h.setState({modalContainer:t,modalStack:e.filter((e=>e!==n))})}),0)}}))):(t.style.removeProperty("visibility"),document.body.style.overflow=m,removeEventListener("keydown",w)))}function g(e){e&&(h.subscribe(v),h.setState(p(d({},h.getState()),{modalContainer:e})))}function y(e){const t=h.getState(),n=t.modalStack.map((t=>t===e?p(d({},t),{state:"TO_BE_DELETED"}):t));h.setState(p(d({},t),{modalStack:n}))}function b(){const e=h.getState(),[t]=e.modalStack;t&&y(t)}function w(e){"Escape"===e.key&&b()}function E(e,t={},n=(()=>{})){const r=()=>{const e=h.getState().modalStack.find((e=>e.onClose===n));e&&y(e)};return function(e){const t=h.getState(),n=[e,...t.modalStack];h.setState(p(d({},t),{modalStack:n}))}({state:"NEW",onClose:n,extensionId:e,props:d({extensionId:e,close:r},t)}),r}},6659:(e,t,n)=>{"use strict";n.d(t,{y:()=>f});var r=n(7959),o=n.n(r),i=n(1469),a=Object.defineProperty,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const f=({notification:e})=>{const t=e,{actionButtonLabel:n,onActionButtonClick:a=(()=>{}),subtitle:f,kind:d,title:p,critical:h,progressActionLabel:m}=t,v=((e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&u.call(e,r)&&(n[r]=e[r]);return n})(t,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel"]),[g,y]=(0,r.useState)(n);return o().createElement(i.FQz,((e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&c(e,n,t[n]);return e})({kind:d||"info",actionButtonLabel:g,ariaLabel:"closes notification",onActionButtonClick:()=>{a(),y(m||"Taking Action..")},onClose:function(){},onCloseButtonClick:function(){},statusIconDescription:"notification",subtitle:f,title:p,lowContrast:h,inline:!0},v))}},1543:(e,t,n)=>{"use strict";n.d(t,{zW:()=>C,Pi:()=>k,fu:()=>P,c0:()=>O});var r=n(7959),o=n.n(r),i=n(3596),a=n(5787);const s=({subject:e})=>{const[t,n]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const t=e.subscribe((e=>n((t=>[...t.filter((t=>t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title)),e]))));return()=>t.unsubscribe()}),[e]),o().createElement(o().Fragment,null,t.map((e=>o().createElement(a.P,{key:e.id,notification:e}))))};var l=n(6659);const u=({subject:e})=>{const[t,n]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const t=e.subscribe((e=>n((t=>[...t.filter((t=>t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title)),e]))));return()=>t.unsubscribe()}),[e]),o().createElement(o().Fragment,null,t.map((e=>o().createElement(l.y,{key:e.id,notification:e}))))};var c=n(5162),f=n(7299),d=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(m)for(var n of m(t))g.call(t,n)&&y(e,n,t[n]);return e},w=(e,t)=>p(e,h(t));const E=new i.Subject;let x=0;const S=new i.Subject;let _=0;function k(e){e&&(0,f.createRoot)(e).render(o().createElement(s,{subject:E}))}function O(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!(0,c.Z)(t))?setTimeout((()=>{E.next(w(b({},e),{id:x++}))}),0):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function C(e){e&&(0,f.createRoot)(e).render(o().createElement(u,{subject:S}))}function P(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:"object"==typeof t&&!(0,c.Z)(t))?setTimeout((()=>{S.next(w(b({},e),{id:_++}))}),0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}},5787:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var r=n(7959),o=n.n(r),i=n(1469);const a=({notification:e})=>{const{description:t,action:n,kind:r,critical:a,title:s}=e;return o().createElement(i.K0D,{actions:n,kind:r||"info",lowContrast:a,subtitle:t,title:s||""})}},759:(e,t,n)=>{"use strict";n.d(t,{$d:()=>a.$d,CF:()=>o.C,K4:()=>i.K,Te:()=>s.T,VM:()=>a.VM,c0:()=>r.c0,cW:()=>a.cW,fu:()=>r.fu});var r=n(1543),o=(n(5787),n(6659),n(6133)),i=n(4408),a=(n(3256),n(8739)),s=n(5838)},6133:(e,t,n)=>{"use strict";n.d(t,{S:()=>b,C:()=>w});var r=n(7959),o=n.n(r),i=n(7299),a=n(3596),s=n(3256);const l=({subject:e})=>{const[t,n]=(0,r.useState)([]),i=(0,r.useCallback)((e=>{n((t=>t.filter((t=>t!==e))))}),[]);return(0,r.useEffect)((()=>{const t=e.subscribe((e=>n((t=>[...t.filter((t=>t.description!==e.description||t.kind!==e.kind||t.title!==e.title)),e]))));return()=>t.unsubscribe()}),[e]),o().createElement(o().Fragment,null,t.map((e=>o().createElement(s.F,{key:e.id,toast:e,closeToast:()=>i(e)}))))};var u=n(5162),c=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const g=new a.Subject;let y=0;function b(e){e&&(0,i.createRoot)(e).render(o().createElement(l,{subject:g}))}function w(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:"object"==typeof t&&!(0,u.Z)(t))?setTimeout((()=>{var t,n;g.next((t=((e,t)=>{for(var n in t||(t={}))h.call(t,n)&&v(e,n,t[n]);if(p)for(var n of p(t))m.call(t,n)&&v(e,n,t[n]);return e})({},e),n={id:y++},f(t,d(n))))}),0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}},3256:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(7959),o=n.n(r),i=n(1469);const a={millis:5e3},s=({toast:e,closeToast:t})=>{const{description:n,kind:s,critical:l,title:u,millis:c=a.millis}=e,[f,d]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{if(f){const e=setTimeout(t,c);return()=>clearTimeout(e)}}),[f]),o().createElement("div",{onMouseEnter:()=>d(!1),onMouseLeave:()=>d(!0)},o().createElement(i.Jn6,{kind:s||"info",lowContrast:l,subtitle:n,title:u||"",timeout:c}))}},7115:(e,t,n)=>{"use strict";function r(e){return(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())-Date.UTC(e.getUTCFullYear(),0,0))/24/60/60/1e3}function o(e,t){const n=e.toISOString(),r=t.toISOString();return n.slice(0,n.indexOf("T"))===r.slice(0,r.indexOf("T"))}function i(e){const t=new Date,n=new Date(e),i=t.getUTCMonth()-n.getUTCMonth(),a=t.getUTCDate()-n.getUTCDate();let s=t.getUTCFullYear()-n.getUTCFullYear();(i<0||0===i&&a<0)&&s--;let l=i>=0?i:i+12;a<0&&l--;const u=l>0?`${l} mo`:"";let c=r(t)-r(n);c<0&&(c+=365);const f=Math.floor(c/7),d=c-7*f;return 0===s?o(t,n)?"Today":f<4||0===f?`${c} day`:d>0?`${f} wk ${d} d`:`${f} week`:s<2?`${u} ${s} yr`.trim():s<18?`${s} yr ${u}`.trim():`${s} years`}n.d(t,{B_:()=>i,v0:()=>r,p6:()=>L,DZ:()=>M,mr:()=>I,w9:()=>E,Yv:()=>x,KC:()=>o,LE:()=>K,sG:()=>T,XD:()=>q,if:()=>S,nW:()=>N,vU:()=>C,vH:()=>_,R5:()=>O,WD:()=>k,R_:()=>P,aJ:()=>Z});var a=n(3772),s=n.n(a),l=n(7064),u=n.n(l),c=n(1508),f=n.n(c),d=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(m)for(var n of m(t))g.call(t,n)&&y(e,n,t[n]);return e};s().extend(u()),s().extend(f());const w="YYYY-MM-DDTHH:mm:ss.SSSZZ";function E(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&"+"===e[23]&&":"!==e[26]&&s()(e,w).isValid()}function x(e){return s()(e).isToday()}function S(e){return E(e)?s()(e,w).toDate():null}function _(e,t=!1){let n=s()(e);return t&&(n=n.utc()),n.format(w)}function k(e){return s()(e).format("HH:mm")}function O(e){return s().utc(e).format("HH:mm A")}function C(e){return N(e,"DD - MMM - YYYY")}function P(e){return N(e,"DD-MMM")}function N(e,t="YYYY-MMM-DD"){return s()(e).format(t)}function T(e){return s()(e).toDate()}const j={mode:"standard",time:"for today",day:!0,year:!0};function L(e,t){const{mode:n,time:r,day:o,year:i}=b(b({},j),t),a={year:i?"numeric":void 0,month:"short",day:o?"2-digit":void 0};let l,u=D();const c=s()(e).isToday();if(c)l=new Intl.RelativeTimeFormat(u,{numeric:"auto"}).format(0,"day"),l=l[0].toLocaleUpperCase(u)+l.slice(1);else if("en"==u&&(u="en-GB"),l=e.toLocaleDateString(u,a),"en-GB"==u&&"standard"==n&&i&&o&&(l=l.replace(/ /g,"-")),"wide"==n&&(l=l.replace(/ /g," — "),/ru.*/.test(u))){const e=l.length;l=l.slice(0,e-5)+l.slice(e-5).replace(" — "," ")}return(!0===r||c&&"for today"===r)&&(l+=`, ${I(e)}`),l}function I(e){return e.toLocaleTimeString(D(),{hour:"2-digit",minute:"2-digit"})}function M(e,t){return L(e,(n=b({},t),p(n,h({time:!0}))));var n}function D(){let e=window.i18next.language;return e=e.replace("_","-"),"ht"===e&&(e="fr-HT"),e}var R=n(8658),A=n.n(R),$=Object.defineProperty,F=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,z=(e,t,n)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Z(e,t,n,r){return(A().default||A()).t(t,((e,t)=>{for(var n in t||(t={}))U.call(t,n)&&z(e,n,t[n]);if(F)for(var n of F(t))B.call(t,n)&&z(e,n,t[n]);return e})({ns:e,defaultValue:n},r))}var H=n(3608);function V(e){const[t,n,r]=e.split(".");return`${t}.${n}.${r}`}function K(e,t){const n=function(e){const t=e.indexOf("-");return t>=0?`${V(e.slice(0,t))}-${e.slice(t+1)}`:V(e)}(t);return H.satisfies(n,e,{includePrerelease:!0})}var W=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function q(e){return W(this,arguments,(function*(e,t={}){let{shouldRetry:n,getDelay:r,onError:o}=t;n=null!=n?n:e=>Y(e,5),r=null!=r?r:e=>G(e,1e3);let i,a=0;do{try{return yield Q(r(a)),yield e()}catch(e){null==o||o(e,a),i=e}}while(n(a++));throw i}))}function Y(e,t){return e<=t}function G(e,t,n=!1){const r=n?e+1:e;return t*Math.pow(2,r)}function Q(e){return W(this,null,(function*(){if(!(e<=0))return new Promise((t=>setTimeout(t,e)))}))}},6360:(e,t,n)=>{"use strict";var r=n(7034);window.initializeSpa=function(e){return(0,r.setupUtils)(),(0,r.setupPaths)(e),function(){const e=document.createElement("base"),t=window.getOpenmrsSpaBase();e.href=t,document.head.appendChild(e),n.p=t}(),function(e){const{configUrls:t=[],offline:r=!0}=e,{run:o}=n(7659);return o(t,r)}(e)}},7659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{run:()=>rt}),function(){function e(t){return(e="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})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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&&s(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){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 u(e,t,n){return(u=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function p(e){var t=l();return function(){var n,r=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function v(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 g(t,n){if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(t[r]===n)return!0;return!1}if("string"==typeof t)return t.indexOf(n)>=0;throw Error("Can't call includes on ".concat(e(t)))}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),r=n.exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}var b,w="import-map-override:",E="import-map-overrides-disabled",x="import-map-overrides-external-maps",S="data-is-importmap-override",_="import-map-overrides-domains",k="allowlist:",O="denylist:",C=document.querySelector('meta[name="importmap-type"]'),P=document.querySelector('meta[name="'.concat(_,'"]')),N={},T=C?C.getAttribute("content"):"importmap";if(P){var j=P.getAttribute("content");j||console.warn("Invalid ".concat(_," meta element - content required."));var L=function(e){return new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e).replace("\\*",".+")).test(window.location.hostname)};0===j.indexOf(k)?b=!j.slice(k.length).split(",").some(L):0===j.indexOf(O)?b=j.slice(O.length).split(",").some(L):console.log("Invalid ".concat(_," meta content attribute - must start with ").concat(k," or ").concat(O))}else b=!1;(function(){try{return localStorage.getItem("test"),!0}catch(e){return!1}})()||(console.warn("Disabling import-map-overrides, since local storage is not readable"),b=!0),b||function(){var e,t=!!C&&C.hasAttribute("server-cookie"),n=!!C&&C.hasAttribute("server-only");window.importMapOverrides={addOverride:function(e,n){/^\d+$/g.test(n)&&(n=r.getUrlFromPort(e,n));var o=w+e;return localStorage.setItem(o,n),t&&(document.cookie="".concat(o,"=").concat(n)),i(),r.getOverrideMap()},getOverrideMap:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={imports:{},scopes:{}},n=r.getDisabledOverrides(),o=function(r,o){!e&&n.indexOf(r)>=0||(t.imports[r]=o)},i=0;i<localStorage.length;i++){var a=localStorage.key(i);0===a.indexOf(w)&&o(a.slice(w.length),localStorage.getItem(a))}var s=y("imo",window.location!=window.parent.location?document.referrer:window.location.href);if(s){var l;try{l=JSON.parse(s)}catch(e){throw Error("Invalid importMap query param - text content must be json")}Object.keys(l.imports).forEach((function(e){o(e,l.imports[e])}))}return t},removeOverride:function(e){var n=w+e,o=null!==localStorage.getItem(n);return localStorage.removeItem(n),t&&(document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;")),r.enableOverride(e),i(),o},resetOverrides:function(){return Object.keys(r.getOverrideMap(!0).imports).forEach((function(e){r.removeOverride(e)})),localStorage.removeItem(E),localStorage.removeItem(x),i(),r.getOverrideMap()},hasOverrides:function(){return Object.keys(r.getOverrideMap().imports).length>0},getUrlFromPort:function(e,t){var n=e.replace(/@/g,"").replace(/\//g,"-");return"//localhost:".concat(t,"/").concat(n,".js")},enableUI:function(){var e="import-map-overrides-full",t="show-when-local-storage",n=document.querySelector(e);n||((n=document.createElement(e)).setAttribute(t,"true"),document.body.appendChild(n));var r=n.getAttribute(t);r&&(localStorage.setItem(r,!0),n.renderWithPreact())},mergeImportMap:function(e,t){var n={imports:{},scopes:{}};for(var r in e.imports)n.imports[r]=e.imports[r];for(var o in t.imports)n.imports[o]=t.imports[o];for(var i in e.scopes)n.scopes[i]=e.scopes[i];for(var a in t.scopes)n.scopes[a]=t.scopes[a];return n},getDefaultMap:function(){return e||(e=Array.prototype.reduce.call(document.querySelectorAll('script[type="'.concat(T,'"], script[type="overridable-importmap"]')),(function(e,t){return t.hasAttribute(S)?e:(n=t.src?m(t.src):Promise.resolve(JSON.parse(t.textContent)),Promise.all([e,n]).then((function(e){var t=h(e,2),n=t[0],o=t[1];return r.mergeImportMap(n,o)})));var n}),Promise.resolve({imports:{},scopes:{}})))},getCurrentPageMap:function(){return Promise.all([r.getDefaultMap(),r.getExternalOverrideMap(r.getCurrentPageExternalOverrides())]).then((function(e){var t=h(e,2),n=t[0],o=t[1];return r.mergeImportMap(r.mergeImportMap(n,o),l)}))},getCurrentPageExternalOverrides:function(){var e=[];return document.querySelectorAll("[".concat(S,']:not([id="import-map-overrides"])')).forEach((function(t){e.push(t.src)})),e},getNextPageMap:function(){return Promise.all([r.getDefaultMap(),r.getExternalOverrideMap()]).then((function(e){var t=h(e,2),n=t[0],o=t[1];return r.mergeImportMap(r.mergeImportMap(n,o),r.getOverrideMap())}))},disableOverride:function(e){var t=r.getDisabledOverrides();return!g(t,e)&&(localStorage.setItem(E,JSON.stringify(t.concat(e))),i(),!0)},enableOverride:function(e){var t=r.getDisabledOverrides(),n=t.indexOf(e);return n>=0&&(t.splice(n,1),localStorage.setItem(E,JSON.stringify(t)),i(),!0)},getDisabledOverrides:function(){var e=localStorage.getItem(E);return e?JSON.parse(e):[]},isDisabled:function(e){return g(r.getDisabledOverrides(),e)},getExternalOverrides:function(){var e=localStorage.getItem(x);return e?JSON.parse(e).sort():[]},addExternalOverride:function(e){e=new URL(e,document.baseURI).href;var t=r.getExternalOverrides();return!g(t,e)&&(localStorage.setItem(x,JSON.stringify(t.concat(e))),i(),!0)},removeExternalOverride:function(e){var t=r.getExternalOverrides();return!!g(t,e)&&(localStorage.setItem(x,JSON.stringify(t.filter((function(t){return t!==e})))),i(),!0)},getExternalOverrideMap:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.getExternalOverrides()).reduce((function(e,t){var n=N[t]||(N[t]=m(t));return Promise.all([e,n]).then((function(e){var t=h(e,2),n=t[0],o=t[1];return r.mergeImportMap(n,o)}))}),Promise.resolve({imports:{},scopes:{}}))},isExternalMapValid:function(e){return(N[e]||(N[e]=m(e))).then((function(){return g(r.invalidExternalMaps,e)}))},invalidExternalMaps:[]};var r=window.importMapOverrides,o=!0;try{CustomEvent?new CustomEvent("a"):o=!1}catch(e){o=!1}function i(){a("change")}function a(e){setTimeout((function(){var t="import-map-overrides:".concat(e),n=o?new CustomEvent(t):document.createEvent("CustomEvent");o||n.initCustomEvent(t,!0,!0,null),window.dispatchEvent(n)}))}var s,l=r.getOverrideMap(),u=r.getExternalOverrides();if(!n){var c=document.querySelector('script[type="overridable-importmap"]');if(!(s=c)){var f=document.querySelectorAll('script[type="'.concat(T,'"]'));s=f?f[f.length-1]:null}if(c){if(c.src)throw Error('import-map-overrides: external import maps with type="overridable-importmap" are not supported');var d;try{d=JSON.parse(c.textContent)}catch(e){throw Error('Invalid <script type="overridable-importmap"> - text content must be json')}s=p(r.mergeImportMap(d,l),"import-map-overrides",s),v()}else v(),Object.keys(l.imports).length>0&&(s=p(l,"import-map-overrides",s))}function p(e,t,n){var r=document.createElement("script");return r.type=T,r.id=t,r.setAttribute(S,""),"string"==typeof e?r.src=e:r.textContent=JSON.stringify(e,null,2),n?n.insertAdjacentElement("afterend",r):document.head.appendChild(r),r}function m(e){return fetch(e).then((function(e){return e.ok?e.json().catch((function(t){return console.warn(Error("External override import map contained invalid json, at url ".concat(e.url,". ").concat(t))),r.invalidExternalMaps.push(e.url),{imports:{},scopes:{}}})):(console.warn(Error("Unable to download external override import map from url ".concat(e.url,". Server responded with status ").concat(e.status))),r.invalidExternalMaps.push(e.url),{imports:{},scopes:{}})}),(function(){return console.warn(Error("Unable to download external import map at url '".concat(e,"'"))),r.invalidExternalMaps.push(new URL(e,document.baseURI).href),{imports:{},scopes:{}}}))}function v(){u.length>0&&u.forEach((function(e,t){s=p(e,"import-map-overrides-external-".concat(t))}))}a("init")}();var I=".imo-unstyled {\n border: none;\n padding: 0;\n width: auto;\n overflow: visible;\n background: transparent;\n color: inherit;\n font: inherit;\n line-height: normal;\n cursor: pointer;\n -webkit-font-smoothing: inherit;\n -moz-osx-font-smoothing: inherit;\n -webkit-appearance: none;\n}\n\n.imo-unstyled::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n.imo-trigger {\n position: fixed;\n bottom: 0;\n right: 0;\n margin: 10px;\n border-radius: 5px;\n background-color: navajowhite;\n height: 50px;\n width: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 18px;\n font-family: sans-serif;\n z-index: 10500;\n}\n\n.imo-popup {\n box-sizing: border-box;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 50%;\n z-index: 10000;\n background-color: black;\n color: white;\n font-family: sans-serif;\n padding: 24px;\n overflow-y: auto;\n}\n\n.imo-popup a:visited,\n.imo-popup a {\n color: white;\n}\n\n.imo-popup .imo-module-dialog {\n left: calc(50% - 200px);\n}\n\n.imo-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n}\n\n.imo-list {\n margin-left: 16px;\n}\n\n.imo-list > *:not(:last-child) {\n margin-bottom: 8px;\n}\n\n.imo-list-container *,\n.imo-modal-container * {\n font-family: sans-serif;\n box-sizing: border-box;\n}\n\n.imo-module-dialog {\n position: fixed;\n z-index: 30000000;\n top: 30%;\n max-width: 600px;\n margin: 0 auto;\n border: 4px solid navajowhite;\n background-color: white;\n padding: 1em;\n left: 50%;\n right: auto;\n transform: translateX(-50%);\n}\n\n.imo-module-dialog input {\n width: 100%;\n font-size: 16px;\n box-sizing: border-box;\n padding-right: 20px;\n}\n\n.imo-module-dialog table {\n margin-bottom: 16px;\n}\n\n.imo-module-dialog table td:first-child {\n text-align: right;\n padding-right: 16px;\n word-break: keep-all;\n}\n\n.imo-module-dialog table td {\n word-break: break-all;\n}\n\n.imo-module-dialog.imo-overridden {\n border: 4px solid salmon;\n}\n\n.imo-table-header-actions {\n display: flex;\n align-items: center;\n}\n\n.imo-overrides-table {\n border-collapse: collapse;\n margin-top: 32px;\n}\n\n.imo-overrides-table tr td:first-child {\n display: flex;\n align-items: center;\n padding-right: 32px;\n position: relative;\n}\n\n.imo-needs-refresh {\n position: absolute;\n right: 8px;\n width: 20px;\n height: 20px;\n /* base64 encoded 27F2 svg */\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg width='261' height='216' xmlns='http://www.w3.org/2000/svg' stroke='%23ffffff' stroke-linecap='square' stroke-miterlimit='10' shape-rendering='auto' stroke-opacity='1' fill='%23ffffff' stroke-dasharray='none' stroke-width='1' stroke-linejoin='miter' stroke-dashoffset='0'%3E%3Cg%3E%3Cpath fill='%23ffffff' d='m152.5625,214.0625q-27.5625,0 -49.6406,-11.8125q-22.0781,-11.8125 -34.7344,-28.4062l12.6563,-11.5313q10.6874,15.1875 31.0781,25.0313q20.3906,9.8437 40.6406,9.8437q21.375,0 44.1563,-11.5313q22.7812,-11.5312 34.3124,-34.3124q11.5313,-22.7813 11.5313,-44.1563q0,-21.375 -11.5313,-44.1563q-11.5312,-22.7812 -34.3124,-34.3124q-22.7813,-11.5313 -44.1563,-11.5313q-19.9687,0 -39.6563,9.1406q-19.6874,9.1407 -30.9374,24.1875q-11.25,15.0469 -16.7344,35.7188l42.3281,-34.7344l-54,91.6875l-54,-91.6875l47.25,38.8125q3.9375,-24.4687 17.4375,-44.5781q13.5,-20.1094 36.9844,-32.7656q23.4844,-12.6563 51.3281,-12.6563q29.25,0 54,14.0625q24.75,14.0625 38.8125,38.8125q14.0625,24.75 14.0625,54q0,29.25 -14.0625,54q-14.0625,24.75 -38.8125,38.8125q-24.75,14.0625 -54,14.0625z' /%3E%3C/g%3E%3C/svg%3E\");\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.imo-status {\n height: 16px;\n width: 16px;\n border-radius: 8px;\n border: 1px solid white;\n margin-right: 8px;\n}\n\n.imo-disabled-override {\n background-color: lightblue;\n}\n\n.imo-next-override {\n background-color: darkred;\n}\n\n.imo-current-override {\n background-color: salmon;\n}\n\n.imo-default-module {\n background-color: lightgoldenrodyellow;\n}\n\n.imo-external-override {\n background-color: orange;\n}\n\n.imo-next-default {\n background-color: darkgoldenrod;\n}\n\n.imo-dev-lib-override {\n background-color: lightpink;\n}\n\n.imo-overrides-table tbody tr:hover {\n cursor: pointer;\n background-color: #404040;\n}\n\n.imo-overrides-table td,\n.imo-overrides-table th {\n line-height: 18px;\n padding: 16px;\n border: 1px solid white;\n}\n\n.imo-add-new {\n margin-left: 16px;\n}\n\n.imo-add-new button {\n color: black;\n}\n\n.imo-clear-input {\n position: absolute;\n top: 0;\n right: 4px;\n cursor: pointer;\n display: flex;\n align-items: center;\n height: 100%;\n}\n\n.imo-modal-container {\n font-family: sans-serif;\n}\n\n.imo-modal {\n background-color: rgba(61, 70, 77, 0.6);\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n z-index: 20000000;\n}\n\n.imo-list-search,\n.imo-list-container button,\n.imo-modal-container button {\n font-size: 14px;\n height: 27px;\n line-height: 27px;\n}\n\n.imo-list-search {\n line-height: 22px;\n border: none;\n padding: 5px;\n color: black;\n}\n";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(I);var M,D,R,A,$,F,U={},B=[],z=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Z(e,t){for(var n in t)e[n]=t[n];return e}function H(e){var t=e.parentNode;t&&t.removeChild(e)}function V(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?M.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return K(e,a,r,o,null)}function K(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++R:o};return null!=D.vnode&&D.vnode(i),i}function W(e){return e.children}function q(e,t){this.props=e,this.context=t}function Y(e,t){if(null==t)return e.__?Y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Y(e):null}function G(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return G(e)}}function Q(e){(!e.__d&&(e.__d=!0)&&A.push(e)&&!J.__r++||F!==D.debounceRendering)&&((F=D.debounceRendering)||$)(J)}function J(){for(var e;J.__r=A.length;)e=A.sort((function(e,t){return e.__v.__b-t.__v.__b})),A=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=Z({},o)).__v=o.__v+1,ae(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Y(o):i,o.__h),se(n,o),o.__e!=i&&G(o)))}))}function X(e,t,n,r,o,i,a,s,l,u){var c,f,d,p,h,m,v,g=r&&r.__k||B,y=g.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(p=n.__k[c]=null==(p=t[c])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?K(null,p,null,null,p):Array.isArray(p)?K(W,{children:p},null,null,null):p.__b>0?K(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(d=g[c])||d&&p.key==d.key&&p.type===d.type)g[c]=void 0;else for(f=0;f<y;f++){if((d=g[f])&&p.key==d.key&&p.type===d.type){g[f]=void 0;break}d=null}ae(e,p,d=d||U,o,i,a,s,l,u),h=p.__e,(f=p.ref)&&d.ref!=f&&(v||(v=[]),d.ref&&v.push(d.ref,null,p),v.push(f,p.__c||h,p)),null!=h?(null==m&&(m=h),"function"==typeof p.type&&null!=p.__k&&p.__k===d.__k?p.__d=l=ee(p,l,e):l=te(e,p,d,g,h,l),u||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&d.__e==l&&l.parentNode!=e&&(l=Y(d))}for(n.__e=m,c=y;c--;)null!=g[c]&&("function"==typeof n.type&&null!=g[c].__e&&g[c].__e==n.__d&&(n.__d=Y(r,c+1)),ue(g[c],g[c]));if(v)for(c=0;c<v.length;c++)le(v[c],v[++c],v[++c])}function ee(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?ee(o,t,n):te(n,o,o,e.__k,o.__e,t));return t}function te(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function ne(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||z.test(t)?n:n+"px"}function re(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ne(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ne(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?ie:oe,i):e.removeEventListener(t,i?ie:oe,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function oe(e){this.l[e.type+!1](D.event?D.event(e):e)}function ie(e){this.l[e.type+!0](D.event?D.event(e):e)}function ae(e,t,n,r,o,i,a,s,l){var u,c,f,d,p,h,m,v,g,y,b,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=D.__b)&&u(t);try{e:if("function"==typeof w){if(v=t.props,g=(u=w.contextType)&&r[u.__c],y=u?g?g.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in w&&w.prototype.render?t.__c=c=new w(v,y):(t.__c=c=new q(v,y),c.constructor=w,c.render=ce),g&&g.sub(c),c.props=v,c.state||(c.state={}),c.context=y,c.__n=r,f=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=w.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=Z({},c.__s)),Z(c.__s,w.getDerivedStateFromProps(v,c.__s))),d=c.props,p=c.state,f)null==w.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==w.getDerivedStateFromProps&&v!==d&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(v,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(v,c.__s,y)||t.__v===n.__v){c.props=v,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(v,c.__s,y),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(d,p,h)}))}c.context=y,c.props=v,c.state=c.__s,(u=D.__r)&&u(t),c.__d=!1,c.__v=t,c.__P=e,u=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=Z(Z({},r),c.getChildContext())),f||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(d,p)),b=null!=u&&u.type===W&&null==u.key?u.props.children:u,X(e,Array.isArray(b)?b:[b],t,n,r,o,i,a,s,l),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,s){var l,u,c,f=n.props,d=t.props,p=t.type,h=0;if("svg"===p&&(o=!0),null!=i)for(;h<i.length;h++)if((l=i[h])&&(l===e||(p?l.localName==p:3==l.nodeType))){e=l,i[h]=null;break}if(null==e){if(null===p)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),i=null,s=!1}if(null===p)f===d||s&&e.data===d||(e.data=d);else{if(i=i&&M.call(e.childNodes),u=(f=n.props||U).dangerouslySetInnerHTML,c=d.dangerouslySetInnerHTML,!s){if(null!=i)for(f={},h=0;h<e.attributes.length;h++)f[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||re(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||re(e,i,t[i],n[i],r)}(e,d,f,o,s),c)t.__k=[];else if(h=t.props.children,X(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==p,i,a,i?i[0]:n.__k&&Y(n,0),s),null!=i)for(h=i.length;h--;)null!=i[h]&&H(i[h]);s||("value"in d&&void 0!==(h=d.value)&&(h!==e.value||"progress"===p&&!h)&&re(e,"value",h,f.value,!1),"checked"in d&&void 0!==(h=d.checked)&&h!==e.checked&&re(e,"checked",h,f.checked,!1))}return e}(n.__e,t,n,r,o,i,a,l);(u=D.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),D.__e(e,t,n)}}function se(e,t){D.__c&&D.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){D.__e(e,t.__v)}}))}function le(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){D.__e(e,n)}}function ue(e,t,n){var r,o;if(D.unmount&&D.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||le(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){D.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ue(r[o],t,"function"!=typeof e.type);n||null==e.__e||H(e.__e),e.__e=e.__d=void 0}function ce(e,t,n){return this.constructor(e,n)}function fe(e,t,n){var r,o,i;D.__&&D.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],ae(t,e=(!r&&n||t).__k=V(W,null,[e]),o||U,U,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?M.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),se(i,e)}M=B.slice,D={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},R=0,q.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Z({},this.state),"function"==typeof e&&(e=e(Z({},n),this.props)),e&&Z(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Q(this))},q.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Q(this))},q.prototype.render=W,A=[],$="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,J.__r=0;var de=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"getInitialOverrideUrl",(function(){var t=new RegExp("//localhost:([0-9]+)/").exec(e.props.module.overrideUrl);return t&&e.props.module.overrideUrl===window.importMapOverrides.getUrlFromPort(e.props.module.moduleName,t[1])?t[1]:e.props.module.overrideUrl?e.props.module.overrideUrl:""})),o(f(e),"state",{overrideUrl:e.getInitialOverrideUrl(),moduleName:""}),o(f(e),"inputEl",null),o(f(e),"moduleNameEl",null),o(f(e),"handleInputRef",(function(t){e.inputEl=t})),o(f(e),"handleModuleNameRef",(function(t){e.moduleNameEl=t})),o(f(e),"dialogRef",(function(t){e.dialogEl=t})),o(f(e),"handleSubmit",(function(t){t.preventDefault(),e.props.module.moduleName&&window.importMapOverrides.isDisabled(e.props.module.moduleName)&&window.importMapOverrides.enableOverride(e.props.module.moduleName),e.props.module.isNew?e.props.addNewModule(e.state.moduleName,e.state.overrideUrl):e.props.updateModuleUrl(e.state.overrideUrl)})),o(f(e),"getDerivedUrl",(function(){var t=e.props.module.isNew?e.state.moduleName:e.props.module.moduleName;return pe.test(e.state.overrideUrl)?window.importMapOverrides.getUrlFromPort(t,e.state.overrideUrl):e.state.overrideUrl})),o(f(e),"keyDown",(function(t){"Escape"===t.key&&(t.stopPropagation(),e.props.cancel())})),o(f(e),"focusFirstInput",(function(){(e.moduleNameEl||e.inputEl).select()})),o(f(e),"clearModuleName",(function(){e.setState({moduleName:""},(function(){e.focusFirstInput()}))})),o(f(e),"clearInput",(function(){e.setState({overrideUrl:""},(function(){e.focusFirstInput()}))})),e}return r(a,[{key:"componentDidMount",value:function(){this.focusFirstInput(),this.dialogEl.addEventListener("keydown",this.keyDown)}},{key:"componentDidUpdate",value:function(e,t){var n=this;this.props.module!==e.module&&this.setState({overrideUrl:this.props.module.overrideUrl||""},(function(){n.focusFirstInput()}))}},{key:"componentWillUnmount",value:function(){this.dialogEl.removeEventListener("keydown",this.keyDown)}},{key:"render",value:function(e){var t=this,n=e.module;return V("div",{className:"imo-modal-container"},V("div",{className:"imo-modal"}),V("dialog",{className:"imo-module-dialog ".concat(this.state.overrideUrl.length>0?"imo-overridden":"imo-default"),open:!0,ref:this.dialogRef},V("form",{method:"dialog",onSubmit:this.handleSubmit},V("h3",{style:{marginTop:0}},n.moduleName),V("table",null,V("tbody",null,!n.isNew&&V("tr",null,V("td",null,"Default URL:"),V("td",null,n.defaultUrl)),n.isNew&&V("tr",null,V("td",null,V("span",{id:"module-name-label"},"Module Name:")),V("td",{style:{position:"relative"}},V("input",{type:"text",tabIndex:1,value:this.state.moduleName,"aria-labelledby":"module-name-label",onInput:function(e){return t.setState({moduleName:e.target.value})},ref:this.handleModuleNameRef,required:!0}),V("div",{role:"button",tabIndex:3,className:"imo-clear-input",onClick:this.clearModuleName},V("div",null,"ⓧ")))),V("tr",null,V("td",null,V("span",{id:"override-url-label"},"Override URL:")),V("td",{style:{position:"relative"}},V("input",{ref:this.handleInputRef,type:"text",value:this.state.overrideUrl,"aria-labelledby":"override-url-label",tabIndex:2,onInput:function(e){return t.setState({overrideUrl:e.target.value})}}),V("div",{role:"button",tabIndex:4,className:"imo-clear-input",onClick:this.clearInput},V("div",null,"ⓧ")))),pe.test(this.state.overrideUrl)&&V("tr",null,V("td",null,"Derived url:"),V("td",null,this.getDerivedUrl())))),V("div",{className:"imo-dialog-actions"},V("button",{type:"button",tabIndex:5,onClick:this.props.cancel,style:{marginRight:"16px"}},"Cancel"),this.props.module.overrideUrl&&!this.props.module.disabled&&V("button",{type:"button",onClick:function(){t.props.module.disabled?window.importMapOverrides.enableOverride(t.props.module.moduleName):window.importMapOverrides.disableOverride(t.props.module.moduleName),t.props.cancel()},tabIndex:6,style:{marginRight:"16px"}},this.props.module.disabled?"Enable":"Disable"," Override"),V("button",{type:"submit",tabIndex:7,className:this.state.overrideUrl?"imo-overridden":"imo-default"},this.state.overrideUrl?"Apply override":"Reset to default")))))}}]),a}(q),pe=/^\d+$/,he=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"state",{url:e.props.dialogExternalMap.isNew?"":e.props.dialogExternalMap.url}),o(f(e),"inputEl",null),o(f(e),"handleSubmit",(function(t){t.preventDefault(),e.props.dialogExternalMap.isNew||window.importMapOverrides.removeExternalOverride(e.props.dialogExternalMap.url),e.state.url&&window.importMapOverrides.addExternalOverride(e.state.url),e.props.cancel()})),o(f(e),"keyDown",(function(t){"Escape"===t.key&&(t.stopPropagation(),e.props.cancel())})),e}return r(a,[{key:"componentDidMount",value:function(){this.inputEl.focus(),this.dialogEl.addEventListener("keydown",this.keyDown)}},{key:"componentWillUnmount",value:function(){this.dialogEl.removeEventListener("keydown",this.keyDown)}},{key:"render",value:function(){var e=this;return V("div",{className:"imo-modal-container"},V("div",{className:"imo-modal"}),V("dialog",{className:"imo-module-dialog",open:!0,ref:function(t){return e.dialogEl=t}},V("form",{method:"dialog",onSubmit:this.handleSubmit},V("h3",{style:{marginTop:0}},this.props.dialogExternalMap.isNew?"Add External Import Map":"Edit External Import Map"),V("div",{style:{marginBottom:"20px"}},V("label",{htmlFor:"external-importmap-url"},"URL to import map:"),V("span",{style:{position:"relative"}},V("input",{id:"external-importmap-url",type:"text",value:this.state.url,onInput:function(t){return e.setState({url:t.target.value})},ref:function(t){return e.inputEl=t},required:this.props.dialogExternalMap.isNew}),V("div",{role:"button",tabIndex:0,className:"imo-clear-input",onClick:function(){return e.setState({url:""})}},V("div",null,"ⓧ")))),V("div",{className:"imo-dialog-actions"},V("button",{type:"button",onClick:this.props.cancel,style:{marginRight:"16px"}},"Cancel"),V("button",{type:"submit",className:this.state.url?"imo-overridden":"imo-default"},this.state.url||this.props.dialogExternalMap.isNew?"Apply override":"Remove override")))))}}]),a}(q),me=function(e){i(o,e);var n=p(o);function o(){return t(this,o),n.apply(this,arguments)}return r(o,[{key:"componentDidMount",value:function(){window.importMapOverrides.getCurrentPageMap().then(ye)}},{key:"render",value:function(){return null}}]),o}(q),ve=function(e){return e.replace(".min.js",".js")},ge={react:function(e){return e.replace("production.min","development")},"react-dom":function(e){return e.replace("production.min","development")},"single-spa":function(e){return e.replace("single-spa.min.js","single-spa.dev.js")},vue:ve,"vue-router":ve,"@angular/core":ve,"@angular/common":ve,"@angular/router":ve,"@angular/platform-browser":ve};function ye(e){Object.keys(e.imports).filter((function(e){return ge[e]})).forEach((function(t){window.importMapOverrides.addOverride(t,ge[t](e.imports[t]))}))}function be(){return Object.keys(window.importMapOverrides.getOverrideMap().imports).filter((function(e){return!ge[e]})).length>0}var we=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"state",{notOverriddenMap:{imports:{}},currentPageMap:{imports:{}},nextPageMap:{imports:{}},dialogModule:null,dialogExternalMap:null,searchVal:""}),o(f(e),"reload",(function(e){e.stopPropagation(),window.location.reload()})),o(f(e),"cancel",(function(){e.setState({dialogModule:null,dialogExternalMap:null})})),o(f(e),"updateModuleUrl",(function(t){null===(t=t||null)?window.importMapOverrides.removeOverride(e.state.dialogModule.moduleName):window.importMapOverrides.addOverride(e.state.dialogModule.moduleName,t),e.setState({dialogModule:null})})),o(f(e),"doUpdate",(function(){e.forceUpdate(),window.importMapOverrides.getNextPageMap().then((function(t){e.setState({nextPageMap:t})}))})),o(f(e),"addNewModule",(function(t,n){t&&n&&window.importMapOverrides.addOverride(t,n),e.setState({dialogModule:null})})),o(f(e),"filterModuleNames",(function(t){return!(e.state.searchVal.trim().length>0)||g(t,e.state.searchVal)})),e}return r(a,[{key:"componentDidMount",value:function(){var e=this;window.importMapOverrides.getDefaultMap().then((function(t){e.setState({notOverriddenMap:t})})),window.importMapOverrides.getCurrentPageMap().then((function(t){e.setState({currentPageMap:t})})),window.importMapOverrides.getNextPageMap().then((function(t){e.setState({nextPageMap:t})})),window.addEventListener("import-map-overrides:change",this.doUpdate),this.inputRef.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("import-map-overrides:change",this.doUpdate)}},{key:"componentDidUpdate",value:function(e,t){!t.dialogModule&&this.state.dialogModule?(this.dialogContainer=document.createElement("div"),document.body.appendChild(this.dialogContainer),fe(V(de,{module:this.state.dialogModule,cancel:this.cancel,updateModuleUrl:this.updateModuleUrl,addNewModule:this.addNewModule}),this.dialogContainer)):t.dialogModule&&!this.state.dialogModule&&(fe(null,this.dialogContainer),this.dialogContainer.remove(),delete this.dialogContainer),!t.dialogExternalMap&&this.state.dialogExternalMap?(this.dialogContainer=document.createElement("div"),document.body.appendChild(this.dialogContainer),fe(V(he,{dialogExternalMap:this.state.dialogExternalMap,cancel:this.cancel}),this.dialogContainer)):t.dialogExternalMap&&!this.state.dialogExternalMap&&(fe(null,this.dialogContainer),this.dialogContainer.remove(),delete this.dialogContainer)}},{key:"render",value:function(){var e=this,t=[],n=[],r=[],o=[],i=[],a=[],s=[],l=window.importMapOverrides.getOverrideMap(!0).imports,u=Object.keys(this.state.notOverriddenMap.imports),c=window.importMapOverrides.getDisabledOverrides();u.filter(this.filterModuleNames).forEach((function(u){var f={moduleName:u,defaultUrl:e.state.notOverriddenMap.imports[u],overrideUrl:l[u],disabled:g(c,u)};f.disabled?r.push(f):l[u]?e.state.currentPageMap.imports[u]===l[u]?ge[u]&&ge[u](e.state.currentPageMap.imports[u])===l[u]?s.push(f):t.push(f):n.push(f):e.state.notOverriddenMap.imports[u]===e.state.currentPageMap.imports[u]?o.push(f):e.state.notOverriddenMap.imports[u]===e.state.nextPageMap.imports[u]?a.push(f):i.push(f)})),Object.keys(l).filter(this.filterModuleNames).forEach((function(o){if(!g(u,o)){var i={moduleName:o,defaultUrl:null,overrideUrl:l[o],disabled:g(c,o)};i.disabled?r.push(i):e.state.currentPageMap.imports[o]===l[o]?t.push(i):n.push(i)}})),t.sort(Ee),o.sort(Ee),n.sort(Ee);var f=function(){var e,t=window.importMapOverrides.getExternalOverrides(),n=window.importMapOverrides.getCurrentPageExternalOverrides(),r=[],o=[],i=[],a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,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,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(t);try{for(a.s();!(e=a.n()).done;){var s=e.value;g(window.importMapOverrides.invalidExternalMaps,s)?r.push(s):g(n,s)?o.push(s):i.push(s)}}catch(e){a.e(e)}finally{a.f()}return{brokenMaps:r,workingCurrentPageMaps:o,workingNextPageMaps:i}}(),d=f.brokenMaps,p=f.workingCurrentPageMaps,h=f.workingNextPageMaps;return V("div",{className:"imo-list-container"},V("div",{className:"imo-table-header-actions"},V("input",{className:"imo-list-search","aria-label":"Search modules",placeholder:"Search modules",value:this.state.searchVal,onInput:function(t){return e.setState({searchVal:t.target.value})},ref:function(t){return e.inputRef=t}}),V("div",{className:"imo-add-new"},V("button",{onClick:function(){return e.setState({dialogModule:{moduleName:"New module",isNew:!0}})}},"Add new module")),V("div",{className:"imo-add-new"},V("button",{onClick:function(){e.setState({dialogExternalMap:{url:"",isNew:!0}})}},"Add import map")),V("div",{className:"imo-add-new"},V("button",{onClick:function(){return window.importMapOverrides.resetOverrides()}},"Reset all overrides"))),V("table",{className:"imo-overrides-table"},V("thead",null,V("tr",null,V("th",null,"Module Status"),V("th",null,"Module Name"),V("th",null,"Domain"),V("th",null,"Filename"))),V("tbody",null,n.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",{onClick:e.reload,role:"button",tabIndex:0},V("div",{className:"imo-status imo-next-override"}),V("div",null,"Inline Override"),V("div",{className:"imo-needs-refresh"})),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),a.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",{style:{position:"relative"}},V("div",{className:"imo-status imo-next-default"}),V("div",null,"Default"),V("div",{className:"imo-needs-refresh"})),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),r.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",null,V("div",{className:"imo-status imo-disabled-override"}),V("div",null,"Override disabled")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),t.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",null,V("div",{className:"imo-status imo-current-override"}),V("div",null,"Inline Override")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),i.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",null,V("div",{className:"imo-status imo-external-override"}),V("div",null,"External Override")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),s.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName,title:"Automatically use dev version of certain npm libs"},V("td",null,V("div",{className:"imo-status imo-dev-lib-override"}),V("div",null,"Dev Lib Override")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})),o.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogModule:t})},key:t.moduleName},V("td",null,V("div",{className:"imo-status imo-default-module"}),V("div",null,"Default")),V("td",null,t.moduleName),V("td",null,Se(t)),V("td",null,_e(t)))})))),(d.length>0||p.length>0||h.length>0)&&V("table",{className:"imo-overrides-table"},V("thead",null,V("th",null,"Import Map Status"),V("th",null,"URL")),V("tbody",null,d.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogExternalMap:{isNew:!1,url:t}})},key:t},V("td",null,V("div",{className:"imo-status imo-disabled-override"}),V("div",null,"Invalid")),V("td",null,t))})),h.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogExternalMap:{isNew:!1,url:t}})},key:t},V("td",null,V("div",{className:"imo-status imo-next-override"}),V("div",null,"Pending refresh")),V("td",null,t))})),p.map((function(t){return V("tr",{role:"button",tabIndex:0,onClick:function(){return e.setState({dialogExternalMap:{isNew:!1,url:t}})},key:t},V("td",null,V("div",{className:"imo-status imo-current-override"}),V("div",null,"Override")),V("td",null,t))})))))}}]),a}(q);function Ee(e,t){return e.moduleName>t.moduleName}var xe=document.querySelector("base")&&document.querySelector("base").href||location.origin+"/";function Se(e){var t=ke(e),n=Oe(t);return n?n.host:t}function _e(e){var t=ke(e),n=Oe(t);return n?n.pathname.slice(n.pathname.lastIndexOf("/")+1):t}function ke(e){return e.overrideUrl||e.defaultUrl}function Oe(e){try{return new URL(e,xe)}catch(e){return null}}var Ce=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"doUpdate",(function(){return e.forceUpdate()})),o(f(e),"keydownListener",(function(t){"Escape"===t.key&&e.props.close&&e.props.close()})),e}return r(a,[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.keydownListener),window.addEventListener("import-map-overrides:change",this.doUpdate)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.keydownListener),window.removeEventListener("import-map-overrides:change",this.doUpdate)}},{key:"render",value:function(e){return V("div",{className:"imo-popup"},V("div",{className:"imo-header"},V("div",null,V("h1",null,"Import Map Overrides"),V("p",null,"This developer tool allows you to view and override your import maps. Start by clicking on a module that you'd like to override."," ",V("a",{target:"_blank",href:"https://github.com/joeldenning/import-map-overrides"},"See documentation for more info"),".")),V("button",{className:"imo-unstyled",onClick:e.close},"ⓧ")),V(we,{importMapChanged:this.props.importMapChanged}))}}]),a}(q),Pe=function(e){i(a,e);var n=p(a);function a(){var e;t(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return o(f(e=n.call.apply(n,[this].concat(i))),"state",{showingPopup:!1}),o(f(e),"doUpdate",(function(){return e.forceUpdate()})),o(f(e),"toggleTrigger",(function(){e.setState((function(e){return{showingPopup:!e.showingPopup}}))})),o(f(e),"importMapChanged",(function(){e.forceUpdate()})),o(f(e),"useDevLibs",(function(){var t=localStorage.getItem("import-map-overrides-dev-libs");return t?"true"===t:e.props.customElement.hasAttribute("dev-libs")})),o(f(e),"atLeastOneOverride",(function(){return e.useDevLibs()?be():Object.keys(window.importMapOverrides.getOverrideMap().imports).length>0})),e}return r(a,[{key:"componentDidMount",value:function(){window.addEventListener("import-map-overrides:change",this.doUpdate)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("import-map-overrides:change",this.doUpdate)}},{key:"render",value:function(e,t){return e.customElement.hasAttribute("show-when-local-storage")&&"true"!==localStorage.getItem(e.customElement.getAttribute("show-when-local-storage"))?null:V("div",null,V("button",{onClick:this.toggleTrigger,className:"imo-unstyled imo-trigger ".concat(this.atLeastOneOverride()?"imo-current-override":"")},"{···}"),this.useDevLibs()&&V(me,null),t.showingPopup&&V(Ce,{close:this.toggleTrigger,importMapChanged:this.importMapChanged}))}}]),a}(q);function Ne(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(o){i(s,o);var a=p(s);function s(){return t(this,s),a.apply(this,arguments)}return r(s,[{key:"connectedCallback",value:function(){this.renderWithPreact()}},{key:"disconnectedCallback",value:function(){fe(null,this),this.renderedEl=null}},{key:"attributeChangedCallback",value:function(){this.renderWithPreact()}},{key:"renderWithPreact",value:function(){this.shadow=this.attachShadow({mode:"open"}),this.renderedEl=fe(V(e,{customElement:this}),this.shadow,this.renderedEl);var t=document.createElement("style");t.textContent=I.toString(),this.shadow.appendChild(t)}}],[{key:"observedAttributes",get:function(){return n}}]),s}(c(HTMLElement))}window.customElements&&!b&&(window.customElements.define("import-map-overrides-full",Ne(Pe,["show-when-local-storage"])),window.customElements.define("import-map-overrides-popup",Ne(Ce)),window.customElements.define("import-map-overrides-list",Ne(we)))}(),n(3592),n(7655),n(5145),n(1769),n(9596);var r=n(6929),o=n(7034),i=n(6746);const a={bootstrap:()=>Promise.resolve(),mount:()=>Promise.resolve(),unmount:()=>Promise.resolve()};var s=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},m=(e,t)=>l(e,u(t));const v=[];function g(e){if(Array.isArray(e)){const t=e.map(g);return e=>t.some((t=>t(e)))}return"string"==typeof e?t=>function(e,t){return t.pathname.startsWith(window.getOpenmrsSpaBase()+e)}(e,t):e instanceof RegExp?t=>function(e,t){return e.test(t.pathname.replace(window.getOpenmrsSpaBase(),""))}(e,t):e}function y(e,t,n){if(("string"==typeof n||Array.isArray(n))&&(e=function(e,t){return()=>{return n=this,r=function*(){const n=yield(0,i.getLoggedInUser)();return n&&(0,i.userHasAccess)(t,n)?e():a},new Promise(((e,t)=>{var o=e=>{try{a(r.next(e))}catch(e){t(e)}},i=e=>{try{a(r.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((r=r.apply(n,null)).next())}));var n,r}}(e,n)),"object"==typeof t){const n=Object.keys(t);if(n.length>0)return()=>{return r=this,null,o=function*(){const r=yield Promise.all(n.map((e=>t[e]()))),o=n.reduce(((e,t,n)=>(e[t]=r[n],e)),{}),i=yield e(),a=m(h({},i),{mount:e=>i.mount(h(h({},o),e))});return i.update&&Object.assign(a,{update:e=>i.update&&i.update(h(h({},o),e))}),a},new Promise(((e,t)=>{var n=e=>{try{a(o.next(e))}catch(e){t(e)}},i=e=>{try{a(o.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,i);a((o=o.apply(r,null)).next())}));var r,o}}return e}function b(e,t){const{route:n,load:i,online:a,offline:s,resources:l,privilege:u}=t;if((0,o.checkStatus)(a,s)){const t=g(n),c=y(i,l,u);(0,r.d6)(e,c,(e=>t(e)),(()=>(0,o.getCustomProps)(a,s)))}}function w(e,t){var n;const r=null!=(n=t.name)?n:t.id,i=t.slots||[t.slot];if(r)if(t.load){(0,o.registerExtension)({name:r,load:y(t.load,t.resources,t.privilege),meta:t.meta||{},order:t.order,moduleName:e,offline:t.offline,online:t.online,privileges:t.privilege});for(const e of i)e&&(0,o.attach)(e,r)}else console.warn('A registered extension definition is missing the loader and thus cannot be registered.\nTo fix this, ensure that you define a "load" function inside the extension definition.',t);else console.warn('A registered extension definition is missing an name and thus cannot be registered.\nTo fix this, ensure that you define the "name" (or alternatively the "id") field inside the extension definition.',t)}var E=n(8658),x=n.n(E),S=n(2692),_=n.n(S),k=n(6823),O=n(1917),C=[],P=C.forEach,N=C.slice;function T(e){return P.call(N.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var j,L={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,n,r){var o,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/"};if(n){var a=new Date;a.setTime(a.getTime()+60*n*1e3),o="; expires="+a.toUTCString()}else o="";r=r?"domain="+r+";":"",i=Object.keys(i).reduce((function(e,t){return e+";"+t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))+"="+i[t]}),""),document.cookie=e+"="+encodeURIComponent(t)+o+";"+r+i}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},I={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var n=window.location.search.substring(1).split("&"),r=0;r<n.length;r++){var o=n[r].indexOf("=");o>0&&n[r].substring(0,o)===e.lookupQuerystring&&(t=n[r].substring(o+1))}return t}};try{j="undefined"!==window&&null!==window.localStorage;var M="i18next.translate.boo";window.localStorage.setItem(M,"foo"),window.localStorage.removeItem(M)}catch(e){j=!1}var D,R={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&j){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&j&&window.localStorage.setItem(t.lookupLocalStorage,e)}};try{D="undefined"!==window&&null!==window.sessionStorage;var A="i18next.translate.boo";window.sessionStorage.setItem(A,"foo"),window.sessionStorage.removeItem(A)}catch(e){D=!1}var $={name:"sessionStorage",lookup:function(e){var t;if(e.lookupsessionStorage&&D){var n=window.sessionStorage.getItem(e.lookupsessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupsessionStorage&&D&&window.sessionStorage.setItem(t.lookupsessionStorage,e)}},F={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},U={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},B={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},z={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}},Z=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,k.Z)(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return(0,O.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=T(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],checkWhitelist:!0,checkForSimilarInWhitelist:!1}),this.options.checkForSimilarInWhitelist&&(this.options.checkWhitelist=!0),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(L),this.addDetector(I),this.addDetector(R),this.addDetector($),this.addDetector(F),this.addDetector(U),this.addDetector(B),this.addDetector(z)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n,r=[];if(e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(r=r.concat(n))}})),r.forEach((function(e){if(!n){var r=t.services.languageUtils.formatLanguageCode(e);t.options.checkWhitelist&&!t.services.languageUtils.isWhitelisted(r)||(n=r),!n&&t.options.checkForSimilarInWhitelist&&(n=t.getSimilarInWhitelist(r))}})),!n){var o=this.i18nOptions.fallbackLng;"string"==typeof o&&(o=[o]),o||(o=[]),n="[object Array]"===Object.prototype.toString.apply(o)?o[0]:o[0]||o.default&&o.default[0]}return n}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}},{key:"getSimilarInWhitelist",value:function(e){var t=this;if(this.i18nOptions.whitelist){if(e.includes("-")){var n=e.split("-")[0],r=this.services.languageUtils.formatLanguageCode(n);if(this.services.languageUtils.isWhitelisted(r))return r;e=r}return this.i18nOptions.whitelist.find((function(n){var r=t.services.languageUtils.formatLanguageCode(n);if(r.startsWith(e))return r}))||void 0}}}]),e}();Z.type="languageDetector";const H=Z;var V=n(8433),K=n(7198),W=n(8951);const q=function(){try{var e=(0,W.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=function(e,t,n){"__proto__"==t&&q?q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var G=n(9079);const Q=function(e,t,n){(void 0!==n&&!(0,G.Z)(e[t],n)||void 0===n&&!(t in e))&&Y(e,t,n)},J=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}return e};var X=n(8755),ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,te=ee&&"object"==typeof module&&module&&!module.nodeType&&module,ne=te&&te.exports===ee?X.Z.Buffer:void 0,re=ne?ne.allocUnsafe:void 0;var oe=n(1086);const ie=function(e,t){var n,r,o=t?(n=e.buffer,r=new n.constructor(n.byteLength),new oe.Z(r).set(new oe.Z(n)),r):e.buffer;return new e.constructor(o,e.byteOffset,e.length)};var ae=n(5917),se=Object.create;const le=function(){function e(){}return function(t){if(!(0,ae.Z)(t))return{};if(se)return se(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var ue=n(6059),ce=n(4789);var fe=n(5602),de=n(7275),pe=n(7597),he=n(31);var me=n(3813),ve=n(3797),ge=n(1785),ye=n(3614);const be=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var we=Object.prototype.hasOwnProperty;const Ee=function(e,t,n){var r=e[t];we.call(e,t)&&(0,G.Z)(r,n)&&(void 0!==n||t in e)||Y(e,t,n)};var xe=n(1757);var Se=Object.prototype.hasOwnProperty;const _e=function(e){if(!(0,ae.Z)(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=(0,ce.Z)(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n},ke=function(e){return(0,pe.Z)(e)?(0,xe.Z)(e,!0):_e(e)},Oe=function(e){return function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?Y(n,s,l):Ee(n,s,l)}return n}(e,ke(e))},Ce=function(e,t,n,r,o,i,a){var s,l=be(e,n),u=be(t,n),c=a.get(u);if(c)Q(e,n,c);else{var f=i?i(l,u,n+"",e,t,a):void 0,d=void 0===f;if(d){var p=(0,de.Z)(u),h=!p&&(0,me.Z)(u),m=!p&&!h&&(0,ye.Z)(u);f=u,p||h||m?(0,de.Z)(l)?f=l:(s=l,(0,he.Z)(s)&&(0,pe.Z)(s)?f=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):h?(d=!1,f=function(e,t){if(t)return e.slice();var n=e.length,r=re?re(n):new e.constructor(n);return e.copy(r),r}(u,!0)):m?(d=!1,f=ie(u,!0)):f=[]):(0,ge.Z)(u)||(0,fe.Z)(u)?(f=l,(0,fe.Z)(l)?f=Oe(l):(0,ae.Z)(l)&&!(0,ve.Z)(l)||(f=function(e){return"function"!=typeof e.constructor||(0,ce.Z)(e)?{}:le((0,ue.Z)(e))}(u))):d=!1}d&&(a.set(u,f),o(f,u,r,i,a),a.delete(u)),Q(e,n,f)}},Pe=function e(t,n,r,o,i){t!==n&&J(n,(function(a,s){if(i||(i=new K.Z),(0,ae.Z)(a))Ce(t,n,s,r,e,o,i);else{var l=o?o(be(t,s),a,s+"",t,n,i):void 0;void 0===l&&(l=a),Q(t,s,l)}}),ke)},Ne=function(e){return e},Te=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)};var je=Math.max;const Le=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ne;var Ie=Date.now;const Me=(De=Le,Re=0,Ae=0,function(){var e=Ie(),t=16-(e-Ae);if(Ae=e,t>0){if(++Re>=800)return arguments[0]}else Re=0;return De.apply(void 0,arguments)});var De,Re,Ae;const $e=function(e,t){return Me(function(e,t,n){return t=je(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=je(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Te(e,this,s)}}(e,t,Ne),e+"")};var Fe=n(7605);const Ue=(Be=function(e,t,n){Pe(e,t,n)},$e((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Be.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!(0,ae.Z)(n))return!1;var r=typeof t;return!!("number"==r?(0,pe.Z)(n)&&(0,Fe.Z)(t,n.length):"string"==r&&t in n)&&(0,G.Z)(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Be(e,a,n)}return e})));var Be,ze=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function Ze(e){return e.replace(/[\/\-@]/g,"_")}function He(e,t,n){if("function"!=typeof e.importTranslation)throw Error(`Module ${t} does not export an importTranslation function`);const r=e.importTranslation(`./${n}.json`);if(!(r instanceof Promise))throw Error(`Module ${t} exports an importTranslation function that does not return a promise. Did you forget to set require.context mode to 'lazy'?`);return r}const Ve="@openmrs/esm-app-shell";var Ke=n(3596);const We={"@openmrs/esm-framework":o,rxjs:Ke};var qe=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function Ye(e){return qe(this,null,(function*(){e.forEach((([e,t])=>function(e,t){var n,r;const i=t.setupOpenMRS;if("function"==typeof i){(0,o.defineConfigSchema)(e,{});const a=t.assets,s=function(e,t){try{return t()}catch(t){return void console.error("Error when trying to set up the module",e,t)}}(e,i);if(Array.isArray(a),s&&"object"==typeof s){const t=null!=(n=s.extensions)?n:[];null==(r=s.pages)||r.forEach((t=>{var n;v.push(m(h({},t),{appName:e,order:null!=(n=t.order)?n:1}))})),void 0!==s.activate&&v.push({appName:e,load:y(s.lifecycle,s.resources),route:s.activate,offline:s.offline,online:s.online,privilege:s.privilege,order:s.order||1}),t.forEach((t=>{w(e,t)}))}}}(e,t))),(0,o.subscribeConnectivity)((()=>qe(this,null,(function*(){const e=(0,r.Gt)();yield Promise.all(e.map(r.m9)),function(){v.sort(((e,t)=>e.order-t.order));let e,t=0;for(let n of v){n.appName!==e?(t=0,e=n.appName):t++;const r=`${n.appName}-page-${t}`,o=document.createElement("div");o.id=`single-spa-application:${r}`,document.body.appendChild(o),b(r,n)}}()})))),window.installedModules=e}))}function Ge(e){return qe(this,null,(function*(){for(const t of e)(0,o.provide)(t.value,t.name)}))}function Qe(){const e=navigator.onLine;(0,o.dispatchConnectivityChanged)(e),(0,o.showToast)({critical:!0,description:"Connection: "+(e?"online":"offline"),title:"App",kind:e?"success":"warning"})}function Je(){return window.addEventListener("offline",Qe),window.addEventListener("online",Qe),(window.i18next=x()||E,new MutationObserver((()=>{window.i18next.changeLanguage(void 0).catch((e=>console.error("i18next failed to re-detect language",e)))})).observe(document.documentElement,{attributeFilter:["lang"],attributes:!0}),window.i18next.use(H).use({type:"backend",init(){},read(e,t,n){if("translation"===t)n(Error("can't handle translation namespace"),null);else if(void 0===t||void 0===e)n(Error(),null);else{const r=window[Ze(t)];r&&"get"in r&&r.get("./start").then((r=>{Promise.all([He(r(),t,e),(0,o.getConfigInternal)(t)]).then((([t,r])=>{let o=null!=t?t:{};if(r&&"Translation overrides"in r){const t=r["Translation overrides"];e in t&&(o=Ue(o,t[e]))}n(null,o)})).catch((e=>{n(e,null)}))})).catch((e=>{n(e,null)})),n(Error(`could not load app for ${t}`),null)}}}).use(V.initReactI18next).use(_()).init({detection:{order:["querystring","htmlTag","localStorage","navigator"],lookupQuerystring:"lang"},fallbackLng:"en"})).catch((e=>console.error("Failed to initialize translations",e))).then((()=>(0,r.BL)()))}function Xe(e){console.error(e),function(e){const t=document.querySelector("#app-error");if(t){const n=t.content.cloneNode(!0),r=n.querySelector('[data-var="message"]');if(r&&(r.textContent=(null==e?void 0:e.message)||"No additional information available."),localStorage.getItem("openmrs:devtools")&&Object.keys(localStorage).some((e=>e.startsWith("import-map-override:")))){const e=null==n?void 0:n.querySelector("#buttons");if(e){const t=document.createElement("button");t.className="cds--btn",t.innerHTML="Clear dev overrides",t.onclick=et,e.appendChild(t)}}document.body.appendChild(n)}}(e)}function et(){for(const e of Object.keys(localStorage))e.startsWith("import-map-override:")&&!["import-map-override:react","import-map-override:react-dom"].includes(e)&&localStorage.removeItem(e);location.reload()}function tt(){return qe(this,null,(function*(){yield function(){return qe(this,null,(function*(){const e=yield window.importMapOverrides.getCurrentPageMap();yield(0,o.messageOmrsServiceWorker)({type:"onImportMapChanged",importMap:e})}))}();const e=new URL(`${window.openmrsBase}/ws/rest/v1/session`,window.location.origin).href;yield(0,o.messageOmrsServiceWorker)({type:"registerDynamicRoute",url:e,strategy:"network-first"}),yield(0,o.openmrsFetch)("/ws/rest/v1/session").catch((e=>console.warn("Failed to precache the user session data from the app shell. MFs depending on this data may run into problems while offline.",e)))}))}function nt(){(0,o.subscribeConnectivity)((({online:e})=>{const t=document.querySelector("body");e?t.classList.remove("omrs-offline"):t.classList.add("omrs-offline")}))}function rt(e,t){const r=(0,o.renderLoadingSpinner)(document.body),a=function(e){const t=Promise.all(e.map((e=>fetch(e).then((e=>e.json())).then((t=>({name:e,value:t}))).catch((t=>(console.error(`Loading the config from "${e}" failed.`,t),{name:e,value:{}}))))));return()=>t.then(Ge)}(e);return(0,o.integrateBreakpoints)(),(0,o.renderToasts)(document.querySelector(".omrs-toasts-container")),(0,o.renderModals)(document.querySelector(".omrs-modals-container")),(0,o.renderInlineNotifications)(document.querySelector(".omrs-inline-notifications-container")),(0,o.renderActionableNotifications)(document.querySelector(".omrs-actionable-notifications-container")),(0,o.createAppState)({}),(0,o.subscribeNotificationShown)(o.showNotification),(0,o.subscribeActionableNotificationShown)(o.showActionableNotification),(0,o.subscribeToastShown)(o.showToast),(0,o.subscribePrecacheStaticDependencies)(tt),s=We,Object.keys(s).forEach((e=>function(e,t){System.register(e,[],(e=>({execute(){if(t instanceof Promise)return t.then((t=>e(t)));e(t),"function"==typeof t?(e("__esModule",!0),e("default",t)):"object"==typeof t&&("default"in t||e("default",t))}})))}(e,s[e]))),(0,o.setupApiModule)(),function(){const e=function(){const e={featureName:"app-shell",moduleName:Ve};return[{id:"breadcrumbs-widget",slot:"breadcrumbs-slot",load:(0,i.getAsyncLifecycle)((()=>n.e(917).then(n.bind(n,2917))),e),online:!0,offline:!0}]}();for(const t of e)w(Ve,t)}(),window.importMapOverrides.getCurrentPageMap().then((e=>function(e){return ze(this,null,(function*(){return Promise.all(Object.entries(e).map((e=>ze(this,[e],(function*([e,t]){if(!t||!t.match(/\.js$/))return[e,{}];try{yield new Promise(((n,r)=>{!function(e,t,n,r){if(document.head.querySelector(`script[src="${t}"]`))console.warn("Script already loaded. Not loading it again.",t),n(null);else{const o=document.createElement("script");o.setAttribute("data-webpack",Ze(e)),o.src=t,o.type="text/javascript",o.async=!0,o.onload=()=>{n(null)},o.onerror=e=>{console.error(`Failed to load script from ${t}`),console.error(e),r(e.message)},document.head.appendChild(o)}}(e,t,n,r)}))}catch(t){return[e,{}]}const r=window[Ze(e)];if(!r){console.warn(`${e} failed to be loaded into the webpack container. Perhaps it has been built using openmrs@3.x (or @openmrs/webpack-config@3.x). The current app shell version is 4.x (${window.spaVersion}), therefore frontend modules will need to be built with openmrs@4 (or @openmrs/webpack-config@4). Check the version in ${e}'s package dependencies.`);try{const t=yield System.import(e);return[e,t]}catch(t){return console.error(`Failed to load module ${e} using either the supported mechanism or the legacy loading mechanism.`,t),[e,{}]}}if("object"==typeof(o=r)&&null!==o&&"init"in o&&"function"==typeof o.init&&"get"in o&&"function"==typeof o.get){r.init(n.S.default);const t=(yield r.get("./start"))();return[e,t]}return console.error(`${e} did not resolve to a federated module as expected; instead got:`,r),[e,{}];var o})))))}))}(e.imports))).then(Ye).then(nt).then(a).then(Je).catch(Xe).then(r).then((()=>t?function(){return qe(this,null,(function*(){try{yield(0,o.registerOmrsServiceWorker)(`${window.getOpenmrsSpaBase()}service-worker.js`),yield(0,o.activateOfflineCapability)(),function(){let e=null;!function(e){let t=!1,n=!1;(0,o.getCurrentUser)({includeAuthStatus:!1}).subscribe((r=>{n=!!r,e(t,n)})),(0,o.subscribeConnectivity)((({online:r})=>{t=r,e(r,n)}))}(((t,n)=>{const r=!e||(new Date).getTime()-e.getTime()>3e5;n&&t&&r&&(e=new Date,(0,o.dispatchPrecacheStaticDependencies)())}))}()}catch(e){console.error("Error while setting up offline mode.",e),(0,o.showNotification)({kind:"error",title:"Offline Setup Error",description:e.message})}}))}():void 0));var s}},7603:()=>{},8102:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>zn});const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,o=Object.keys,i=Array.isArray;function a(e,t){return"object"!=typeof t||o(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||r.Promise||(r.Promise=Promise);const s=Object.getPrototypeOf,l={}.hasOwnProperty;function u(e,t){return l.call(e,t)}function c(e,t){"function"==typeof t&&(t=t(s(e))),("undefined"==typeof Reflect?o:Reflect.ownKeys)(t).forEach((n=>{d(e,n,t[n])}))}const f=Object.defineProperty;function d(e,t,n,r){f(e,t,a(n&&u(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function p(e){return{from:function(t){return e.prototype=Object.create(t.prototype),d(e.prototype,"constructor",e),{extend:c.bind(null,e.prototype)}}}}const h=Object.getOwnPropertyDescriptor;function m(e,t){let n;return h(e,t)||(n=s(e))&&m(n,t)}const v=[].slice;function g(e,t,n){return v.call(e,t,n)}function y(e,t){return t(e)}function b(e){if(!e)throw new Error("Assertion Failed")}function w(e){r.setImmediate?setImmediate(e):setTimeout(e,0)}function E(e,t){return e.reduce(((e,n,r)=>{var o=t(n,r);return o&&(e[o[0]]=o[1]),e}),{})}function x(e,t){if(u(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,o=t.length;r<o;++r){var i=x(e,t[r]);n.push(i)}return n}var a=t.indexOf(".");if(-1!==a){var s=e[t.substr(0,a)];return void 0===s?void 0:x(s,t.substr(a+1))}}function S(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){b("string"!=typeof n&&"length"in n);for(var r=0,o=t.length;r<o;++r)S(e,t[r],n[r])}else{var a=t.indexOf(".");if(-1!==a){var s=t.substr(0,a),l=t.substr(a+1);if(""===l)void 0===n?i(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=n;else{var c=e[s];c&&u(e,s)||(c=e[s]={}),S(c,l,n)}}else void 0===n?i(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function _(e){var t={};for(var n in e)u(e,n)&&(t[n]=e[n]);return t}const k=[].concat;function O(e){return k.apply([],e)}const C="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(O([8,16,32,64].map((e=>["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>r[e])),P=C.map((e=>r[e]));E(C,(e=>[e,!0]));let N=null;function T(e){N="undefined"!=typeof WeakMap&&new WeakMap;const t=j(e);return N=null,t}function j(e){if(!e||"object"!=typeof e)return e;let t=N&&N.get(e);if(t)return t;if(i(e)){t=[],N&&N.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(j(e[n]))}else if(P.indexOf(e.constructor)>=0)t=e;else{const n=s(e);for(var o in t=n===Object.prototype?{}:Object.create(n),N&&N.set(e,t),e)u(e,o)&&(t[o]=j(e[o]))}return t}const{toString:L}={};function I(e){return L.call(e).slice(8,-1)}const M="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",D="symbol"==typeof M?function(e){var t;return null!=e&&(t=e[M])&&t.apply(e)}:function(){return null},R={};function A(e){var t,n,r,o;if(1===arguments.length){if(i(e))return e.slice();if(this===R&&"string"==typeof e)return[e];if(o=D(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const $="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var F="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function U(e,t){F=e,B=t}var B=()=>!0;const z=!new Error("").stack;function Z(){if(z)try{throw Z.arguments,new Error}catch(e){return e}return new Error}function H(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(B).map((e=>"\n"+e)).join("")):""}var V=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],K=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(V),W={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function q(e,t){this._e=Z(),this.name=e,this.message=t}function Y(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function G(e,t,n,r){this._e=Z(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=Y(e,t)}function Q(e,t){this._e=Z(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=Y(e,t)}p(q).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+H(this._e,2))}},toString:function(){return this.name+": "+this.message}}),p(G).from(q),p(Q).from(q);var J=K.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const X=q;var ee=K.reduce(((e,t)=>{var n=t+"Error";function r(e,r){this._e=Z(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=W[t]||n,this.inner=null)}return p(r).from(X),e[t]=r,e}),{});ee.Syntax=SyntaxError,ee.Type=TypeError,ee.Range=RangeError;var te=V.reduce(((e,t)=>(e[t+"Error"]=ee[t],e)),{}),ne=K.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ee[t]),e)),{});function re(){}function oe(e){return e}function ie(e,t){return null==e||e===oe?t:function(n){return t(e(n))}}function ae(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function se(e,t){return e===re?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?ae(r,this.onsuccess):r),o&&(this.onerror=this.onerror?ae(o,this.onerror):o),void 0!==i?i:n}}function le(e,t){return e===re?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?ae(n,this.onsuccess):n),r&&(this.onerror=this.onerror?ae(r,this.onerror):r)}}function ue(e,t){return e===re?t:function(n){var r=e.apply(this,arguments);a(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?ae(o,this.onsuccess):o),i&&(this.onerror=this.onerror?ae(i,this.onerror):i),void 0===r?void 0===s?void 0:s:a(r,s)}}function ce(e,t){return e===re?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function fe(e,t){return e===re?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}ne.ModifyError=G,ne.DexieError=q,ne.BulkError=Q;var de={};const[pe,he,me]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,s(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,s(t),e]})(),ve=he&&he.then,ge=pe&&pe.constructor,ye=!!me;var be=!1,we=me?()=>{me.then(Ze)}:r.setImmediate?setImmediate.bind(null,Ze):r.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{Ze(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(Ze,0)},Ee=function(e,t){Te.push([e,t]),Se&&(we(),Se=!1)},xe=!0,Se=!0,_e=[],ke=[],Oe=null,Ce=oe,Pe={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:pt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{pt(e[0],e[1])}catch(e){}}))}},Ne=Pe,Te=[],je=0,Le=[];function Ie(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=re,this._lib=!1;var t=this._PSD=Ne;if(F&&(this._stackHolder=Z(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==de)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ae(this,this._value))}this._state=null,this._value=null,++t.ref,Re(this,e)}const Me={get:function(){var e=Ne,t=Xe;function n(n,r){var o=!e.global&&(e!==Ne||t!==Xe);const i=o&&!rt();var a=new Ie(((t,a)=>{Fe(this,new De(ft(n,e,o,i),ft(r,e,o,i),t,a,e))}));return F&&ze(a,this),a}return n.prototype=de,n},set:function(e){d(this,"then",e&&e.prototype===de?Me:{get:function(){return e},set:Me.set})}};function De(e,t,n,r,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=o}function Re(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&He();t&&"function"==typeof t.then?Re(e,((e,n)=>{t instanceof Ie?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,$e(e)),n&&Ve()}}),Ae.bind(null,e))}catch(t){Ae(e,t)}}function Ae(e,t){if(ke.push(t),null===e._state){var n=e._lib&&He();t=Ce(t),e._state=!1,e._value=t,F&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}((()=>{var n=m(t,"stack");t._promise=e,d(t,"stack",{get:()=>be?n&&(n.get?n.get.apply(t):n.value):e.stack})})),function(e){_e.some((t=>t._value===e._value))||_e.push(e)}(e),$e(e),n&&Ve()}}function $e(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Fe(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),0===je&&(++je,Ee((()=>{0==--je&&Ke()}),[]))}function Fe(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++je,Ee(Ue,[n,e,t])}else e._listeners.push(t)}function Ue(e,t,n){try{Oe=t;var r,o=t._value;t._state?r=e(o):(ke.length&&(ke=[]),r=e(o),-1===ke.indexOf(o)&&function(e){for(var t=_e.length;t;)if(_e[--t]._value===e._value)return void _e.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{Oe=null,0==--je&&Ke(),--n.psd.ref||n.psd.finalize()}}function Be(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var o,i,a=e._value;null!=a?(o=a.name||"Error",i=a.message||a,r=H(a,0)):(o=a,i=""),t.push(o+(i?": "+i:"")+r)}return F&&((r=H(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&Be(e._prev,t,n)),t}function ze(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function Ze(){He()&&Ve()}function He(){var e=xe;return xe=!1,Se=!1,e}function Ve(){var e,t,n;do{for(;Te.length>0;)for(e=Te,Te=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(Te.length>0);xe=!0,Se=!0}function Ke(){var e=_e;_e=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Le.slice(0),n=t.length;n;)t[--n]()}function We(e){return new Ie(de,!1,e)}function qe(e,t){var n=Ne;return function(){var r=He(),o=Ne;try{return st(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{st(o,!1),r&&Ve()}}}c(Ie.prototype,{then:Me,_then:function(e,t){Fe(this,new De(null,null,e,t,Ne))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):We(e))):this.then(null,(e=>e&&e.name===t?n(e):We(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),We(t))))},stack:{get:function(){if(this._stack)return this._stack;try{be=!0;var e=Be(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{be=!1}}},timeout:function(e,t){return e<1/0?new Ie(((n,r)=>{var o=setTimeout((()=>r(new ee.Timeout(t))),e);this.then(n,r).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&d(Ie.prototype,Symbol.toStringTag,"Dexie.Promise"),Pe.env=lt(),c(Ie,{all:function(){var e=A.apply(null,arguments).map(ot);return new Ie((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(((o,i)=>Ie.resolve(o).then((n=>{e[i]=n,--r||t(e)}),n)))}))},resolve:e=>{if(e instanceof Ie)return e;if(e&&"function"==typeof e.then)return new Ie(((t,n)=>{e.then(t,n)}));var t=new Ie(de,!0,e);return ze(t,Oe),t},reject:We,race:function(){var e=A.apply(null,arguments).map(ot);return new Ie(((t,n)=>{e.map((e=>Ie.resolve(e).then(t,n)))}))},PSD:{get:()=>Ne,set:e=>Ne=e},totalEchoes:{get:()=>Xe},newPSD:tt,usePSD:ut,scheduler:{get:()=>Ee,set:e=>{Ee=e}},rejectionMapper:{get:()=>Ce,set:e=>{Ce=e}},follow:(e,t)=>new Ie(((n,r)=>tt(((t,n)=>{var r=Ne;r.unhandleds=[],r.onunhandled=n,r.finalize=ae((function(){!function(e){Le.push((function t(){e(),Le.splice(Le.indexOf(t),1)})),++je,Ee((()=>{0==--je&&Ke()}),[])}((()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])}))}),r.finalize),e()}),t,n,r)))}),ge&&(ge.allSettled&&d(Ie,"allSettled",(function(){const e=A.apply(null,arguments).map(ot);return new Ie((t=>{0===e.length&&t([]);let n=e.length;const r=new Array(n);e.forEach(((e,o)=>Ie.resolve(e).then((e=>r[o]={status:"fulfilled",value:e}),(e=>r[o]={status:"rejected",reason:e})).then((()=>--n||t(r)))))}))})),ge.any&&"undefined"!=typeof AggregateError&&d(Ie,"any",(function(){const e=A.apply(null,arguments).map(ot);return new Ie(((t,n)=>{0===e.length&&n(new AggregateError([]));let r=e.length;const o=new Array(r);e.forEach(((e,i)=>Ie.resolve(e).then((e=>t(e)),(e=>{o[i]=e,--r||n(new AggregateError(o))}))))}))})));const Ye={awaits:0,echoes:0,id:0};var Ge=0,Qe=[],Je=0,Xe=0,et=0;function tt(e,t,n,r){var o=Ne,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++et;var s=Pe.env;i.env=ye?{Promise:Ie,PromiseProp:{value:Ie,configurable:!0,writable:!0},all:Ie.all,race:Ie.race,allSettled:Ie.allSettled,any:Ie.any,resolve:Ie.resolve,reject:Ie.reject,nthen:dt(s.nthen,i),gthen:dt(s.gthen,i)}:{},t&&a(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=ut(i,e,n,r);return 0===i.ref&&i.finalize(),l}function nt(){return Ye.id||(Ye.id=++Ge),++Ye.awaits,Ye.echoes+=100,Ye.id}function rt(){return!!Ye.awaits&&(0==--Ye.awaits&&(Ye.id=0),Ye.echoes=100*Ye.awaits,!0)}function ot(e){return Ye.echoes&&e&&e.constructor===ge?(nt(),e.then((e=>(rt(),e)),(e=>(rt(),ht(e))))):e}function it(e){++Xe,Ye.echoes&&0!=--Ye.echoes||(Ye.echoes=Ye.id=0),Qe.push(Ne),st(e,!0)}function at(){var e=Qe[Qe.length-1];Qe.pop(),st(e,!1)}function st(e,t){var n=Ne;if((t?!Ye.echoes||Je++&&e===Ne:!Je||--Je&&e===Ne)||ct(t?it.bind(null,e):at),e!==Ne&&(Ne=e,n===Pe&&(Pe.env=lt()),ye)){var o=Pe.env.Promise,i=e.env;he.then=i.nthen,o.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(r,"Promise",i.PromiseProp),o.all=i.all,o.race=i.race,o.resolve=i.resolve,o.reject=i.reject,i.allSettled&&(o.allSettled=i.allSettled),i.any&&(o.any=i.any))}}function lt(){var e=r.Promise;return ye?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(r,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:he.then,gthen:e.prototype.then}:{}}function ut(e,t,n,r,o){var i=Ne;try{return st(e,!0),t(n,r,o)}finally{st(i,!1)}}function ct(e){ve.call(pe,e)}function ft(e,t,n,r){return"function"!=typeof e?e:function(){var o=Ne;n&&nt(),st(t,!0);try{return e.apply(this,arguments)}finally{st(o,!1),r&&ct(rt)}}}function dt(e,t){return function(n,r){return e.call(this,ft(n,t),ft(r,t))}}function pt(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var o,i={promise:t,reason:e};if(r.document&&document.createEvent?((o=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),a(o,i)):r.CustomEvent&&a(o=new CustomEvent("unhandledrejection",{detail:i}),i),o&&r.dispatchEvent&&(dispatchEvent(o),!r.PromiseRejectionEvent&&r.onunhandledrejection))try{r.onunhandledrejection(o)}catch(e){}F&&o&&!o.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+ve).indexOf("[native code]")&&(nt=rt=re);var ht=Ie.reject;function mt(e,t,n,r){if(e.idbdb&&(e._state.openComplete||Ne.letThrough||e._vip)){var o=e._createTransaction(t,n,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(o){return o.name===J.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>mt(e,t,n,r)))):ht(o)}return o._promise(t,((e,t)=>tt((()=>(Ne.trans=o,r(e,t,o)))))).then((e=>o._completion.then((()=>e))))}if(e._state.openComplete)return ht(new ee.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return ht(new ee.DatabaseClosed);e.open().catch(re)}return e._state.dbReadyPromise.then((()=>mt(e,t,n,r)))}const vt=String.fromCharCode(65535),gt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",yt=[],bt="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),wt=bt,Et=bt,xt=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function St(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const _t={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function kt(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=T(t))[e],t)}class Ot{_trans(e,t,n){const r=this._tx||Ne.trans,o=this.name;function i(e,n,r){if(!r.schema[o])throw new ee.NotFound("Table "+o+" not part of transaction");return t(r.idbtrans,r)}const a=He();try{return r&&r.db===this.db?r===Ne.trans?r._promise(e,i,n):tt((()=>r._promise(e,i,n)),{trans:r,transless:Ne.transless||Ne}):mt(this.db,e,[this.name],i)}finally{a&&Ve()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(i(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=o(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))&&e.keyPath.every((e=>t.indexOf(e)>=0))))[0];if(n&&this.db._maxKey!==vt)return this.where(n.name).equals(n.keyPath.map((t=>e[t])));!n&&F&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:r}=this.schema,a=this.db._deps.indexedDB;function s(e,t){try{return 0===a.cmp(e,t)}catch(e){return!1}}const[l,u]=t.reduce((([t,n],o)=>{const a=r[o],l=e[o];return[t||a,t||!a?St(n,a&&a.multi?e=>{const t=x(e,o);return i(t)&&t.some((e=>s(l,e)))}:e=>s(l,x(e,o))):n]}),[null,null]);return l?this.where(l.name).equals(e[l.keyPath]).filter(u):n?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,i(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var r in t)if(u(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){a(this,e)}))}add(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let o=e;return r&&n&&(o=kt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[o]}))).then((e=>e.numFailures?Ie.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{S(e,r,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||i(e))return this.where(":id").equals(e).modify(t);{const n=x(e,this.schema.primKey.keyPath);if(void 0===n)return ht(new ee.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?o(t).forEach((n=>{S(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let o=e;return r&&n&&(o=kt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[o],keys:null!=t?[t]:null}))).then((e=>e.numFailures?Ie.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{S(e,r,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?Ie.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:_t}))).then((e=>e.numFailures?Ie.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new ee.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new ee.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let s=i&&n?e.map(kt(i)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:s,wantResults:o}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return o?t:n;throw new Q(`${this.name}.bulkAdd(): ${e} of ${a} operations failed`,r)}))}))}bulkPut(e,t,n){const r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new ee.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new ee.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let s=i&&n?e.map(kt(i)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:s,wantResults:o}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return o?t:n;throw new Q(`${this.name}.bulkPut(): ${e} of ${a} operations failed`,r)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new Q(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)}))}}function Ct(e){var t={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return t[n].subscribe.apply(null,i),e}if("string"==typeof n)return t[n]};n.addEventType=s;for(var r=1,a=arguments.length;r<a;++r)s(arguments[r]);return n;function s(e,r,o){if("object"==typeof e)return l(e);r||(r=ce),o||(o=re);var i={subscribers:[],fire:o,subscribe:function(e){-1===i.subscribers.indexOf(e)&&(i.subscribers.push(e),i.fire=r(i.fire,e))},unsubscribe:function(e){i.subscribers=i.subscribers.filter((function(t){return t!==e})),i.fire=i.subscribers.reduce(r,o)}};return t[e]=n[e]=i,i}function l(e){o(e).forEach((function(t){var n=e[t];if(i(n))s(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new ee.InvalidArgument("Invalid event config");var r=s(t,oe,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach((function(e){w((function(){e.apply(null,t)}))}))}))}}))}}function Pt(e,t){return p(t).from({prototype:e}),t}function Nt(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Tt(e,t){e.filter=St(e.filter,t)}function jt(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>St(r(),t()):t,e.justLimit=n&&!r}function Lt(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new ee.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function It(e,t,n){const r=Lt(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function Mt(e,t,n,r){const o=e.replayFilter?St(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},a=(e,n,r)=>{if(!o||o(n,r,(e=>n.stop(e)),(e=>n.fail(e)))){var a=n.primaryKey,s=""+a;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(a)),u(i,s)||(i[s]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),Dt(It(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return Dt(It(e,r,n),St(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function Dt(e,t,n,r){var o=qe(r?(e,t,o)=>n(r(e),t,o):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=re}),(t=>{e.fail(t),n=re}))||o(e.value,e,(e=>n=e)),n()}))}))}function Rt(e,t){try{const n=At(e),r=At(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){const n=e.length,r=t.length,o=n<r?n:r;for(let n=0;n<o;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}($t(e),$t(t));case"Array":return function(e,t){const n=e.length,r=t.length,o=n<r?n:r;for(let n=0;n<o;++n){const r=Rt(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function At(e){const t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";const n=I(e);return"ArrayBuffer"===n?"binary":n}function $t(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class Ft{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,ht.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,ht.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=St(t.algorithm,e)}_iterate(e,t){return Mt(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&a(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read((n=>Mt(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(Nt(t,!0))return n.count({trans:e,query:{index:Lt(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var r=0;return Mt(t,(()=>(++r,!1)),e,n).then((()=>r))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),r=n[0],o=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function s(e,t){var n=i(e,o),r=i(t,o);return n<r?-a:n>r?a:0}return this.toArray((function(e){return e.sort(s)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&Nt(t,!0)&&t.limit>0){const{valueMapper:n}=t,r=Lt(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return Mt(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,Nt(t)?jt(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):jt(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),jt(this._ctx,(()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this}until(e,t){return Tt(this._ctx,(function(n,r,o){return!e(n.value)||(r(o),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return Tt(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=St(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&Nt(t,!0)&&t.limit>0)return this._read((e=>{var n=Lt(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Tt(this._ctx,(function(e){var t=e.primaryKey.toString(),r=u(n,t);return n[t]=!0,!r})),this}modify(e){var t=this._ctx;return this._write((n=>{var r;if("function"==typeof e)r=e;else{var i=o(e),a=i.length;r=function(t){for(var n=!1,r=0;r<a;++r){var o=i[r],s=e[o];x(t,o)!==s&&(S(t,o,s),n=!0)}return n}}const s=t.table.core,{outbound:l,extractKey:u}=s.schema.primaryKey,c=this.db._options.modifyChunkSize||200,f=[];let d=0;const p=[],h=(e,t)=>{const{failures:n,numFailures:r}=t;d+=e-r;for(let e of o(n))f.push(n[e])};return this.clone().primaryKeys().then((o=>{const i=a=>{const f=Math.min(c,o.length-a);return s.getMany({trans:n,keys:o.slice(a,a+f),cache:"immutable"}).then((d=>{const p=[],m=[],v=l?[]:null,g=[];for(let e=0;e<f;++e){const t=d[e],n={value:T(t),primKey:o[a+e]};!1!==r.call(n,n.value,n)&&(null==n.value?g.push(o[a+e]):l||0===Rt(u(t),u(n.value))?(m.push(n.value),l&&v.push(o[a+e])):(g.push(o[a+e]),p.push(n.value)))}const y=Nt(t)&&t.limit===1/0&&("function"!=typeof e||e===Ut)&&{index:t.index,range:t.range};return Promise.resolve(p.length>0&&s.mutate({trans:n,type:"add",values:p}).then((e=>{for(let t in e.failures)g.splice(parseInt(t),1);h(p.length,e)}))).then((()=>(m.length>0||y&&"object"==typeof e)&&s.mutate({trans:n,type:"put",keys:v,values:m,criteria:y,changeSpec:"function"!=typeof e&&e}).then((e=>h(m.length,e))))).then((()=>(g.length>0||y&&e===Ut)&&s.mutate({trans:n,type:"delete",keys:g,criteria:y}).then((e=>h(g.length,e))))).then((()=>o.length>a+f&&i(a+c)))}))};return i(0).then((()=>{if(f.length>0)throw new G("Error modifying one or more objects",f,d,p);return o.length}))}))}))}delete(){var e=this._ctx,t=e.range;return Nt(e)&&(e.isPrimKey&&!Et||3===t.type)?this._write((n=>{const{primaryKey:r}=e.table.core.schema,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((({failures:e,lastResult:n,results:r,numFailures:o})=>{if(o)throw new G("Could not delete some values",Object.keys(e).map((t=>e[t])),t-o);return t-o}))))})):this.modify(Ut)}}const Ut=(e,t)=>t.value=null;function Bt(e,t){return e<t?-1:e===t?0:1}function zt(e,t){return e>t?-1:e===t?0:1}function Zt(e,t,n){var r=e instanceof Yt?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Ht(e){return new e.Collection(e,(()=>qt(""))).limit(0)}function Vt(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),s=-1,l=0;l<a;++l){var u=t[l];if(u!==r[l])return o(e[l],n[l])<0?e.substr(0,l)+n[l]+n.substr(l+1):o(e[l],r[l])<0?e.substr(0,l)+r[l]+n.substr(l+1):s>=0?e.substr(0,s)+t[s]+n.substr(s+1):null;o(e[l],u)<0&&(s=l)}return a<r.length&&"next"===i?e+n.substr(e.length):a<e.length&&"prev"===i?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.substr(s+1)}function Kt(e,t,n,r){var o,i,a,s,l,u,c,f=n.length;if(!n.every((e=>"string"==typeof e)))return Zt(e,"String expected.");function d(e){o=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),i=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),a="next"===e?Bt:zt;var t=n.map((function(e){return{lower:i(e),upper:o(e)}})).sort((function(e,t){return a(e.lower,t.lower)}));s=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),u=e,c="next"===e?"":r}d("next");var p=new e.Collection(e,(()=>Wt(s[0],l[f-1]+r)));p._ondirectionchange=function(e){d(e)};var h=0;return p._addAlgorithm((function(e,n,r){var o=e.key;if("string"!=typeof o)return!1;var d=i(o);if(t(d,l,h))return!0;for(var p=null,m=h;m<f;++m){var v=Vt(o,d,s[m],l[m],a,u);null===v&&null===p?h=m+1:(null===p||a(p,v)>0)&&(p=v)}return n(null!==p?function(){e.continue(p+c)}:r),!1})),p}function Wt(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function qt(e){return{type:1,lower:e,upper:e}}class Yt{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Ht(this):new this.Collection(this,(()=>Wt(e,t,!n,!r)))}catch(e){return Zt(this,gt)}}equals(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>qt(e)))}above(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>Wt(e,void 0,!0)))}aboveOrEqual(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>Wt(e,void 0,!1)))}below(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>Wt(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?Zt(this,gt):new this.Collection(this,(()=>Wt(void 0,e)))}startsWith(e){return"string"!=typeof e?Zt(this,"String expected."):this.between(e,e+vt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):Kt(this,((e,t)=>0===e.indexOf(t[0])),[e],vt)}equalsIgnoreCase(e){return Kt(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=A.apply(R,arguments);return 0===e.length?Ht(this):Kt(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=A.apply(R,arguments);return 0===e.length?Ht(this):Kt(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,vt)}anyOf(){const e=A.apply(R,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return Zt(this,gt)}if(0===e.length)return Ht(this);const n=new this.Collection(this,(()=>Wt(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm(((n,o,i)=>{const a=n.key;for(;t(a,e[r])>0;)if(++r,r===e.length)return o(i),!1;return 0===t(a,e[r])||(o((()=>{n.continue(e[r])})),!1)})),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=A.apply(R,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return Zt(this,gt)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,r=this._ascending,o=this._descending,i=this._min,a=this._max;if(0===e.length)return Ht(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0)))return Zt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ee.InvalidArgument);const s=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;let u,c=r;function f(e,t){return c(e[0],t[0])}try{u=e.reduce((function(e,t){let r=0,o=e.length;for(;r<o;++r){const o=e[r];if(n(t[0],o[1])<0&&n(t[1],o[0])>0){o[0]=i(o[0],t[0]),o[1]=a(o[1],t[1]);break}}return r===o&&e.push(t),e}),[]),u.sort(f)}catch(e){return Zt(this,gt)}let d=0;const p=l?e=>r(e,u[d][1])>0:e=>r(e,u[d][1])>=0,h=s?e=>o(e,u[d][0])>0:e=>o(e,u[d][0])>=0;let m=p;const v=new this.Collection(this,(()=>Wt(u[0][0],u[u.length-1][1],!s,!l)));return v._ondirectionchange=e=>{"next"===e?(m=p,c=r):(m=h,c=o),u.sort(f)},v._addAlgorithm(((e,t,n)=>{for(var o=e.key;m(o);)if(++d,d===u.length)return t(n),!1;return!!function(e){return!p(e)&&!h(e)}(o)||(0===this._cmp(o,u[d][1])||0===this._cmp(o,u[d][0])||t((()=>{c===r?e.continue(u[d][0]):e.continue(u[d][1])})),!1)})),v}startsWithAnyOf(){const e=A.apply(R,arguments);return e.every((e=>"string"==typeof e))?0===e.length?Ht(this):this.inAnyRange(e.map((e=>[e,e+vt]))):Zt(this,"startsWithAnyOf() only works with strings")}}function Gt(e){return qe((function(t){return Qt(t),e(t.target.error),!1}))}function Qt(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const Jt=Ct(null,"storagemutated");class Xt{_lock(){return b(!Ne.global),++this._reculock,1!==this._reculock||Ne.global||(Ne.lockOwnerFor=this),this}_unlock(){if(b(!Ne.global),0==--this._reculock)for(Ne.global||(Ne.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{ut(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&Ne.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(b(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new ee.DatabaseClosed(n);case"MissingAPIError":throw new ee.MissingAPI(n.message,n);default:throw new ee.OpenFailed(n)}if(!this.active)throw new ee.TransactionInactive;return b(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=qe((t=>{Qt(t),this._reject(e.error)})),e.onabort=qe((t=>{Qt(t),this.active&&this._reject(new ee.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=qe((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&Jt.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return ht(new ee.ReadOnly("Transaction is readonly"));if(!this.active)return ht(new ee.TransactionInactive);if(this._locked())return new Ie(((r,o)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,o)},Ne])}));if(n)return tt((()=>{var e=new Ie(((e,n)=>{this._lock();const r=t(e,n,this);r&&r.then&&r.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var r=new Ie(((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)}));return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=Ie.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var o=t._waitingFor;return new Ie(((e,r)=>{n.then((n=>t._waitingQueue.push(qe(e.bind(null,n)))),(e=>t._waitingQueue.push(qe(r.bind(null,e))))).finally((()=>{t._waitingFor===o&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ee.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(u(t,e))return t[e];const n=this.schema[e];if(!n)throw new ee.NotFound("Table "+e+" not part of transaction");const r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function en(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+tn(t)}}function tn(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function nn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:E(n,(e=>[e.name,e]))}}let rn=e=>{try{return e.only([[]]),rn=()=>[[]],[[]]}catch(e){return rn=()=>vt,vt}};function on(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>x(t,e)}(e):t=>x(t,e)}function an(e){return[].slice.call(e)}let sn=0;function ln(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function un(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:r,lowerOpen:o,upperOpen:i}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!o):t.bound(n,r,!!o,!!i)}const{schema:o,hasGetAll:a}=function(e,t){const n=an(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,r=i(t),o=null==t,a={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:on(t)},indexes:an(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:r,keyPath:o}=e,s={name:t,compound:i(o),keyPath:o,unique:n,multiEntry:r,extractKey:on(o)};return a[ln(o)]=s,s})),getIndexByKeyPath:e=>a[ln(e)]};return a[":id"]=s.primaryKey,null!=t&&(a[ln(t)]=s.primaryKey),s}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),s=o.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:o,values:i,range:a}){return new Promise(((s,l)=>{s=qe(s);const u=e.objectStore(t),c=null==u.keyPath,f="put"===n||"add"===n;if(!f&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:d}=o||i||{length:1};if(o&&i&&o.length!==i.length)throw new Error("Given keys array must have same length as given values array.");if(0===d)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let p;const h=[],m=[];let v=0;const g=e=>{++v,Qt(e)};if("deleteRange"===n){if(4===a.type)return s({numFailures:v,failures:m,results:[],lastResult:void 0});3===a.type?h.push(p=u.clear()):h.push(p=u.delete(r(a)))}else{const[e,t]=f?c?[i,o]:[i,null]:[o,null];if(f)for(let r=0;r<d;++r)h.push(p=t&&void 0!==t[r]?u[n](e[r],t[r]):u[n](e[r])),p.onerror=g;else for(let t=0;t<d;++t)h.push(p=u[n](e[t])),p.onerror=g}const y=e=>{const t=e.target.result;h.forEach(((e,t)=>null!=e.error&&(m[t]=e.error))),s({numFailures:v,failures:m,results:"delete"===n?o:h.map((e=>e.result)),lastResult:t})};p.onerror=e=>{g(e),y(e)},p.onsuccess=y}))},getMany:({trans:e,keys:n})=>new Promise(((r,o)=>{r=qe(r);const i=e.objectStore(t),a=n.length,s=new Array(a);let l,u=0,c=0;const f=e=>{const t=e.target;s[t._pos]=t.result,++c===u&&r(s)},d=Gt(o);for(let e=0;e<a;++e)null!=n[e]&&(l=i.get(n[e]),l._pos=e,l.onsuccess=f,l.onerror=d,++u);0===u&&r(s)})),get:({trans:e,key:n})=>new Promise(((r,o)=>{r=qe(r);const i=e.objectStore(t).get(n);i.onsuccess=e=>r(e.target.result),i.onerror=Gt(o)})),query:function(e){return n=>new Promise(((o,i)=>{o=qe(o);const{trans:a,values:s,limit:l,query:u}=n,c=l===1/0?void 0:l,{index:f,range:d}=u,p=a.objectStore(t),h=f.isPrimaryKey?p:p.index(f.name),m=r(d);if(0===l)return o({result:[]});if(e){const e=s?h.getAll(m,c):h.getAllKeys(m,c);e.onsuccess=e=>o({result:e.target.result}),e.onerror=Gt(i)}else{let e=0;const t=s||!("openKeyCursor"in h)?h.openCursor(m):h.openKeyCursor(m),n=[];t.onsuccess=r=>{const i=t.result;return i?(n.push(s?i.value:i.primaryKey),++e===l?o({result:n}):void i.continue()):o({result:n})},t.onerror=Gt(i)}}))}(a),openCursor:function({trans:e,values:n,query:o,reverse:i,unique:a}){return new Promise(((s,l)=>{s=qe(s);const{index:u,range:c}=o,f=e.objectStore(t),d=u.isPrimaryKey?f:f.index(u.name),p=i?a?"prevunique":"prev":a?"nextunique":"next",h=n||!("openKeyCursor"in d)?d.openCursor(r(c),p):d.openKeyCursor(r(c),p);h.onerror=Gt(l),h.onsuccess=qe((t=>{const n=h.result;if(!n)return void s(null);n.___id=++sn,n.done=!1;const r=n.continue.bind(n);let o=n.continuePrimaryKey;o&&(o=o.bind(n));const i=n.advance.bind(n),a=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=qe(l),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=qe(e),h.onerror=Gt(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=a,e(t)}})),s=()=>{if(h.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return h.onsuccess=qe((e=>{h.onsuccess=s,s()})),n.continue=r,n.continuePrimaryKey=o,n.advance=i,s(),t},s(n)}),l)}))},count({query:e,trans:n}){const{index:o,range:i}=e;return new Promise(((e,a)=>{const s=n.objectStore(t),l=o.isPrimaryKey?s:s.index(o.name),u=r(i),c=u?l.count(u):l.count();c.onsuccess=qe((t=>e(t.target.result))),c.onerror=Gt(a)}))}}}(e))),l={};return s.forEach((e=>l[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!l[e])throw new Error(`Table '${e}' not found`);return l[e]},MIN_KEY:-1/0,MAX_KEY:rn(t),schema:o}}function cn({_novip:e},t){const n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},o){const i=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(un(t,n,o),e.dbcore);return{dbcore:i}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function fn({_novip:e},t,n,r){n.forEach((n=>{const o=r[n];t.forEach((t=>{const r=m(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?d(t,n,{get(){return this.table(n)},set(e){f(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,o))}))}))}function dn({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function pn(e,t){return e._cfg.version-t._cfg.version}function hn(e,t,n,r){const i=e._dbSchema,a=e._createTransaction("readwrite",e._storeNames,i);a.create(n),a._completion.catch(r);const s=a._reject.bind(a),l=Ne.transless||Ne;tt((()=>{Ne.trans=a,Ne.transless=l,0===t?(o(i).forEach((e=>{vn(n,e,i[e].primKey,i[e].indexes)})),cn(e,n),Ie.follow((()=>e.on.populate.fire(a))).catch(s)):function({_novip:e},t,n,r){const i=[],a=e._versions;let s=e._dbSchema=yn(0,e.idbdb,r),l=!1;return a.filter((e=>e._cfg.version>=t)).forEach((a=>{i.push((()=>{const i=s,u=a._cfg.dbschema;bn(e,i,r),bn(e,u,r),s=e._dbSchema=u;const c=mn(i,u);c.add.forEach((e=>{vn(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((e=>{if(e.recreate)throw new ee.Upgrade("Not yet support for changing primary key");{const t=r.objectStore(e.name);e.add.forEach((e=>gn(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),gn(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const f=a._cfg.contentUpgrade;if(f&&a._cfg.version>t){cn(e,r),n._memoizedTables={},l=!0;let t=_(u);c.del.forEach((e=>{t[e]=i[e]})),dn(e,[e.Transaction.prototype]),fn(e,[e.Transaction.prototype],o(t),t),n.schema=t;const a=$(f);let s;a&&nt();const d=Ie.follow((()=>{if(s=f(n),s&&a){var e=rt.bind(null,null);s.then(e,e)}}));return s&&"function"==typeof s.then?Ie.resolve(s):d.then((()=>s))}})),i.push((t=>{l&&wt||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((n=>null==e[n]&&t.db.deleteObjectStore(n)))}(a._cfg.dbschema,t),dn(e,[e.Transaction.prototype]),fn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return i.length?Ie.resolve(i.shift()(n.idbtrans)).then(e):Ie.resolve()}().then((()=>{var e,t;t=r,o(e=s).forEach((n=>{t.db.objectStoreNames.contains(n)||vn(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,a,n).catch(s)}))}function mn(e,t){const n={del:[],add:[],change:[]};let r;for(r in e)t[r]||n.del.push(r);for(r in t){const o=e[r],i=t[r];if(o){const e={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!bt)e.recreate=!0,n.change.push(e);else{const t=o.idxByName,r=i.idxByName;let a;for(a in t)r[a]||e.del.push(a);for(a in r){const n=t[a],o=r[a];n?n.src!==o.src&&e.change.push(o):e.add.push(o)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([r,i])}return n}function vn(e,t,n,r){const o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((e=>gn(o,e))),o}function gn(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function yn(e,t,n){const r={};return g(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let o=t.keyPath;const i=en(tn(o),o||"",!1,!1,!!t.autoIncrement,o&&"string"!=typeof o,!0),a=[];for(let e=0;e<t.indexNames.length;++e){const n=t.index(t.indexNames[e]);o=n.keyPath;var s=en(n.name,o,!!n.unique,!!n.multiEntry,!1,o&&"string"!=typeof o,!1);a.push(s)}r[e]=nn(e,i,a)})),r}function bn({_novip:e},t,n){const o=n.db.objectStoreNames;for(let r=0;r<o.length;++r){const i=o[r],a=n.objectStore(i);e._hasGetAll="getAll"in a;for(let e=0;e<a.indexNames.length;++e){const n=a.indexNames[e],r=a.index(n).keyPath,o="string"==typeof r?r:"["+g(r).join("+")+"]";if(t[i]){const e=t[i].idxByName[o];e&&(e.name=n,delete t[i].idxByName[o],t[i].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&r.WorkerGlobalScope&&r instanceof r.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class wn{_parseStoresSpec(e,t){o(e).forEach((n=>{if(null!==e[n]){var r=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return en(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),i(r),0===t)})),o=r.shift();if(o.multi)throw new ee.Schema("Primary key cannot be multi-valued");r.forEach((e=>{if(e.auto)throw new ee.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new ee.Schema("Index must have a name and cannot be an empty string")})),t[n]=nn(n,o,r)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?a(this._cfg.storesSource,e):e;const n=t._versions,r={};let i={};return n.forEach((e=>{a(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)})),t._dbSchema=i,dn(t,[t._allTables,t,t.Transaction.prototype]),fn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],o(i),i),t._storeNames=o(i),this}upgrade(e){return this._cfg.contentUpgrade=fe(this._cfg.contentUpgrade||re,e),this}}function En(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new zn("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function xn(e){return e&&"function"==typeof e.databases}function Sn(e){return tt((function(){return Ne.letThrough=!0,e()}))}function _n(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function kn(e){var t=t=>e.next(t),n=o(t),r=o((t=>e.throw(t)));function o(e){return t=>{var o=e(t),a=o.value;return o.done?a:a&&"function"==typeof a.then?a.then(n,r):i(a)?Promise.all(a).then(n,r):n(a)}}return o(t)()}function On(e,t,n){var r=arguments.length;if(r<2)throw new ee.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];n=o.pop();var i=O(o);return[e,i,n]}function Cn(e,t,n,r,o){return Ie.resolve().then((()=>{const i=Ne.transless||Ne,a=e._createTransaction(t,n,e._dbSchema,r),s={trans:a,transless:i};if(r)a.idbtrans=r.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===J.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Cn(e,t,n,null,o)))):ht(r)}const l=$(o);let u;l&&nt();const c=Ie.follow((()=>{if(u=o.call(a,a),u)if(l){var e=rt.bind(null,null);u.then(e,e)}else"function"==typeof u.next&&"function"==typeof u.throw&&(u=kn(u))}),s);return(u&&"function"==typeof u.then?Ie.resolve(u).then((e=>a.active?e:ht(new ee.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):c.then((()=>u))).then((e=>(r&&a._resolve(),a._completion.then((()=>e))))).catch((e=>(a._reject(e),ht(e))))}))}function Pn(e,t,n){const r=i(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}const Nn={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const n=e.table(t),{schema:r}=n,o={},i=[];function a(e,t,n){const r=ln(e),s=o[r]=o[r]||[],l=null==e?0:"string"==typeof e?1:e.length,u=t>0,c={...n,isVirtual:u,keyTail:t,keyLength:l,extractKey:on(e),unique:!u&&n.unique};return s.push(c),c.isPrimaryKey||i.push(c),l>1&&a(2===l?e[0]:e.slice(0,l-1),t+1,n),s.sort(((e,t)=>e.keyTail-t.keyTail)),c}const s=a(r.primaryKey.keyPath,0,r.primaryKey);o[":id"]=[s];for(const e of r.indexes)a(e.keyPath,0,e);function l(t){const n=t.query.index;return n.isVirtual?{...t,query:{index:n,range:(r=t.query.range,o=n.keyTail,{type:1===r.type?2:r.type,lower:Pn(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,o),lowerOpen:!0,upper:Pn(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,o),upperOpen:!0})}}:t;var r,o}const u={...n,schema:{...r,primaryKey:s,indexes:i,getIndexByKeyPath:function(e){const t=o[ln(e)];return t&&t[0]}},count:e=>n.count(l(e)),query:e=>n.query(l(e)),openCursor(t){const{keyTail:r,isVirtual:o,keyLength:i}=t.query.index;return o?n.openCursor(l(t)).then((n=>n&&function(n){const o=Object.create(n,{continue:{value:function(o){null!=o?n.continue(Pn(o,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,i).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,o){n.continuePrimaryKey(Pn(t,e.MAX_KEY,r),o)}},primaryKey:{get:()=>n.primaryKey},key:{get(){const e=n.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:()=>n.value}});return o}(n))):n.openCursor(t)}};return u}}}};function Tn(e,t,n,r){return n=n||{},r=r||"",o(e).forEach((o=>{if(u(t,o)){var i=e[o],a=t[o];if("object"==typeof i&&"object"==typeof a&&i&&a){const e=I(i);e!==I(a)?n[r+o]=t[o]:"Object"===e?Tn(i,a,n,r+o+"."):i!==a&&(n[r+o]=t[o])}else i!==a&&(n[r+o]=t[o])}else n[r+o]=void 0})),o(t).forEach((o=>{u(e,o)||(n[r+o]=t[o])})),n}const jn={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const n=e.table(t),{primaryKey:r}=n.schema,o={...n,mutate(e){const o=Ne.trans,{deleting:i,creating:a,updating:s}=o.table(t).hook;switch(e.type){case"add":if(a.fire===re)break;return o._promise("readwrite",(()=>l(e)),!0);case"put":if(a.fire===re&&s.fire===re)break;return o._promise("readwrite",(()=>l(e)),!0);case"delete":if(i.fire===re)break;return o._promise("readwrite",(()=>l(e)),!0);case"deleteRange":if(i.fire===re)break;return o._promise("readwrite",(()=>function(e){return c(e.trans,e.range,1e4)}(e)),!0)}return n.mutate(e);function l(e){const t=Ne.trans,o=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!o)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:o}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,o).then((l=>{const c=o.map(((n,o)=>{const c=l[o],f={onerror:null,onsuccess:null};if("delete"===e.type)i.fire.call(f,n,c,t);else if("add"===e.type||void 0===c){const i=a.fire.call(f,n,e.values[o],t);null==n&&null!=i&&(n=i,e.keys[o]=n,r.outbound||S(e.values[o],r.keyPath,n))}else{const r=Tn(c,e.values[o]),i=s.fire.call(f,r,n,c,t);if(i){const t=e.values[o];Object.keys(i).forEach((e=>{u(t,e)?t[e]=i[e]:S(t,e,i[e])}))}}return f}));return n.mutate(e).then((({failures:t,results:n,numFailures:r,lastResult:i})=>{for(let r=0;r<o.length;++r){const i=n?n[r]:o[r],a=c[r];null==i?a.onerror&&a.onerror(t[r]):a.onsuccess&&a.onsuccess("put"===e.type&&l[r]?e.values[r]:i)}return{failures:t,results:n,numFailures:r,lastResult:i}})).catch((e=>(c.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function c(e,t,o){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:o}).then((({result:n})=>l({type:"delete",keys:n,trans:e}).then((r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<o?{failures:[],numFailures:0,lastResult:void 0}:c(e,{...t,lower:n[n.length-1],lowerOpen:!0},o)))))}}};return o}})};function Ln(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;const r=[];for(let o=0,i=0;o<t.keys.length&&i<e.length;++o)0===Rt(t.keys[o],e[i])&&(r.push(n?T(t.values[o]):t.values[o]),++i);return r.length===e.length?r:null}catch(e){return null}}const In={stack:"dbcore",level:-1,create:e=>({table:t=>{const n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);const t=Ln(e.keys,e.trans._cache,"clone"===e.cache);return t?Ie.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?T(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function Mn(e){return!("from"in e)}const Dn=function(e,t){if(!this){const t=new Dn;return e&&"d"in e&&a(t,e),t}a(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function Rn(e,t,n){const r=Rt(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(Mn(e))return a(e,{from:t,to:n,d:1});const o=e.l,i=e.r;if(Rt(n,e.from)<0)return o?Rn(o,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Fn(e);if(Rt(t,e.to)>0)return i?Rn(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Fn(e);Rt(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Rt(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const s=!e.r;o&&!e.l&&An(e,o),i&&s&&An(e,i)}function An(e,t){Mn(t)||function e(t,{from:n,to:r,l:o,r:i}){Rn(t,n,r),o&&e(t,o),i&&e(t,i)}(e,t)}function $n(e){let t=Mn(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Rt(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Rt(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Fn(e){var t,n;const r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),o=r>1?"r":r<-1?"l":"";if(o){const t="r"===o?"l":"r",n={...e},r=e[o];e.from=r.from,e.to=r.to,e[o]=r[o],n[o]=r[t],e[t]=n,n.d=Un(n)}e.d=Un(e)}function Un({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}c(Dn.prototype,{add(e){return An(this,e),this},addKey(e){return Rn(this,e,e),this},addKeys(e){return e.forEach((e=>Rn(this,e,e))),this},[M](){return $n(this)}});const Bn={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new Dn(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{const a=e.table(r),{schema:s}=a,{primaryKey:l}=s,{extractKey:u,outbound:c}=l,f={...a,mutate:e=>{const o=e.trans,l=o.mutatedParts||(o.mutatedParts={}),u=e=>{const n=`idb://${t}/${r}/${e}`;return l[n]||(l[n]=new Dn)},c=u(""),f=u(":dels"),{type:d}=e;let[p,h]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const m=e.trans._cache;return a.mutate(e).then((e=>{if(i(p)){"delete"!==d&&(p=e.results),c.addKeys(p);const t=Ln(p,m);t||"add"===d||f.addKeys(p),(t||h)&&function(e,t,n,r){t.indexes.forEach((function(t){const o=e(t.name||"");function a(e){return null!=e?t.extractKey(e):null}const s=e=>t.multiEntry&&i(e)?e.forEach((e=>o.addKey(e))):o.addKey(e);(n||r).forEach(((e,t)=>{const o=n&&a(n[t]),i=r&&a(r[t]);0!==Rt(o,i)&&(null!=o&&s(o),null!=i&&s(i))}))}))}(u,s,t,h)}else if(p){const e={from:p.lower,to:p.upper};f.add(e),c.add(e)}else c.add(n),f.add(n),s.indexes.forEach((e=>u(e.name).add(n)));return e}))}},d=({query:{index:t,range:n}})=>{var r,o;return[t,new Dn(null!==(r=n.lower)&&void 0!==r?r:e.MIN_KEY,null!==(o=n.upper)&&void 0!==o?o:e.MAX_KEY)]},p={get:e=>[l,new Dn(e.key)],getMany:e=>[l,(new Dn).addKeys(e.keys)],count:d,query:d,openCursor:d};return o(p).forEach((e=>{f[e]=function(o){const{subscr:i}=Ne;if(i){const s=e=>{const n=`idb://${t}/${r}/${e}`;return i[n]||(i[n]=new Dn)},l=s(""),f=s(":dels"),[d,h]=p[e](o);if(s(d.name||"").add(h),!d.isPrimaryKey){if("count"!==e){const t="query"===e&&c&&o.values&&a.query({...o,values:!1});return a[e].apply(this,arguments).then((n=>{if("query"===e){if(c&&o.values)return t.then((({result:e})=>(l.addKeys(e),n)));const e=o.values?n.result.map(u):n.result;o.values?l.addKeys(e):f.addKeys(e)}else if("openCursor"===e){const e=n,t=o.values;return e&&Object.create(e,{key:{get:()=>(f.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return f.addKey(t),t}},value:{get:()=>(t&&l.addKey(e.primaryKey),e.value)}})}return n}))}f.add(n)}}return a[e].apply(this,arguments)}})),f}}}};class zn{constructor(e,t){this._middlewares={},this.verno=0;const n=zn.dependencies;this._options=t={addons:zn.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:r}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const o={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:re,dbReadyPromise:null,cancelOpen:re,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var i;o.dbReadyPromise=new Ie((e=>{o.dbReadyResolve=e})),o.openCanceller=new Ie(((e,t)=>{o.cancelOpen=t})),this._state=o,this.name=e,this.on=Ct(this,"populate","blocked","versionchange","close",{ready:[fe,re]}),this.on.ready.subscribe=y(this.on.ready.subscribe,(e=>(t,n)=>{zn.vip((()=>{const r=this._state;if(r.openComplete)r.dbOpenError||Ie.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);const r=this;n||e((function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)}))}}))})),this.Collection=(i=this,Pt(Ft.prototype,(function(e,t){this.db=i;let n=_t,r=null;if(t)try{n=t()}catch(e){r=e}const o=e._ctx,a=o.table,s=a.hook.reading.fire;this._ctx={table:a,index:o.index,isPrimKey:!o.index||a.schema.primKey.keyPath&&o.index===a.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:s!==oe?s:null}}))),this.Table=function(e){return Pt(Ot.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Ct(null,{creating:[se,re],reading:[ie,oe],updating:[ue,re],deleting:[le,re]})}))}(this),this.Transaction=function(e){return Pt(Xt.prototype,(function(t,n,r,o,i){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=o,this.idbtrans=null,this.on=Ct(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ie(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),ht(e)}))}))}(this),this.Version=function(e){return Pt(wn.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Pt(Yt.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};const o=e._deps.indexedDB;if(!o)throw new ee.MissingAPI;this._cmp=this._ascending=o.cmp.bind(o),this._descending=(e,t)=>o.cmp(t,e),this._max=(e,t)=>o.cmp(e,t)>0?e:t,this._min=(e,t)=>o.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)})),this._maxKey=rn(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),yt.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(Nn),this.use(jn),this.use(Bn),this.use(In),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new ee.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new ee.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort(pn),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||Ne.letThrough||this._vip)?e():new Ie(((e,t)=>{if(this._state.openComplete)return t(new ee.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new ee.DatabaseClosed);this.open().catch(re)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});const o=this._middlewares[e]||(this._middlewares[e]=[]);return o.push({stack:e,create:t,level:null==n?10:n,name:r}),o.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?ht(t.dbOpenError):e));F&&(t.openCanceller._stackHolder=Z()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new ee.DatabaseClosed("db.open() was cancelled")}let a=t.dbReadyResolve,s=null,l=!1;return Ie.race([r,("undefined"==typeof navigator?Ie.resolve():_n()).then((()=>new Ie(((r,a)=>{if(i(),!n)throw new ee.MissingAPI;const u=e.name,c=t.autoSchema?n.open(u):n.open(u,Math.round(10*e.verno));if(!c)throw new ee.MissingAPI;c.onerror=Gt(a),c.onblocked=qe(e._fireOnBlocked),c.onupgradeneeded=qe((r=>{if(s=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=Qt,s.abort(),c.result.close();const e=n.deleteDatabase(u);e.onsuccess=e.onerror=qe((()=>{a(new ee.NoSuchDatabase(`Database ${u} doesnt exist`))}))}else{s.onerror=Gt(a);var o=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;l=o<1,e._novip.idbdb=c.result,hn(e,o/10,s,a)}}),a),c.onsuccess=qe((()=>{s=null;const n=e._novip.idbdb=c.result,i=g(n.objectStoreNames);if(i.length>0)try{const r=n.transaction(1===(a=i).length?a[0]:a,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const r=e._dbSchema=yn(0,t,n);e._storeNames=g(t.objectStoreNames,0),fn(e,[e._allTables],o(r),r)}(e,n,r):(bn(e,e._dbSchema,r),function(e,t){const n=mn(yn(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((e=>e.add.length||e.change.length)))}(e,r)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),cn(e,r)}catch(e){}var a;yt.push(e),n.onversionchange=qe((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=qe((t=>{e.on("close").fire(t)})),l&&function({indexedDB:e,IDBKeyRange:t},n){!xn(e)&&"__dbnames"!==n&&En(e,t).put({name:n}).catch(re)}(e._deps,u),r()}),a)}))))]).then((()=>(i(),t.onReadyBeingFired=[],Ie.resolve(Sn((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let r=t.onReadyBeingFired.reduce(fe,re);return t.onReadyBeingFired=[],Ie.resolve(Sn((()=>r(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{s&&s.abort()}catch(e){}return r===t.openCanceller&&e._close(),ht(n)})).finally((()=>{t.openComplete=!0,a()}))}(this)}_close(){const e=this._state,t=yt.indexOf(this);if(t>=0&&yt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new Ie((t=>{e.dbReadyResolve=t})),e.openCanceller=new Ie(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new ee.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new Ie(((n,r)=>{const o=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=qe((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!xn(e)&&"__dbnames"!==n&&En(e,t).delete(n).catch(re)}(this._deps,this.name),n()})),e.onerror=Gt(r),e.onblocked=this._fireOnBlocked};if(e)throw new ee.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(o):o()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return o(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=On.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r=Ne.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);const o=-1!==e.indexOf("?");let i,a;e=e.replace("!","").replace("?","");try{if(a=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||"readonly"===e)i="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new ee.InvalidArgument("Invalid transaction mode: "+e);i="readwrite"}if(r){if("readonly"===r.mode&&"readwrite"===i){if(!o)throw new ee.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&a.forEach((e=>{if(r&&-1===r.storeNames.indexOf(e)){if(!o)throw new ee.SubTransaction("Table "+e+" not included in parent transaction.");r=null}})),o&&r&&!r.active&&(r=null)}}catch(e){return r?r._promise(null,((t,n)=>{n(e)})):ht(e)}const s=Cn.bind(null,this,i,a,r,n);return r?r._promise(i,s,"lock"):Ne.trans?ut(Ne.transless,(()=>this._whenReady(s))):this._whenReady(s)}table(e){if(!u(this._allTables,e))throw new ee.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const Zn="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class Hn{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[Zn](){return this}}function Vn(e,t){return o(t).forEach((n=>{An(e[n]||(e[n]=new Dn),t[n])})),e}let Kn;try{Kn={indexedDB:r.indexedDB||r.mozIndexedDB||r.webkitIndexedDB||r.msIndexedDB,IDBKeyRange:r.IDBKeyRange||r.webkitIDBKeyRange}}catch(r){Kn={indexedDB:null,IDBKeyRange:null}}const Wn=zn;function qn(e){let t=Yn;try{Yn=!0,Jt.storagemutated.fire(e)}finally{Yn=t}}c(Wn,{...ne,delete:e=>new Wn(e,{addons:[]}).delete(),exists:e=>new Wn(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return xn(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>"__dbnames"!==e)))):En(e,t).toCollection().primaryKeys()}(Wn.dependencies).then(e)}catch(e){return ht(new ee.MissingAPI)}},defineClass:()=>function(e){a(this,e)},ignoreTransaction:e=>Ne.trans?ut(Ne.transless,e):e(),vip:Sn,async:function(e){return function(){try{var t=kn(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Ie.resolve(t)}catch(e){return ht(e)}}},spawn:function(e,t,n){try{var r=kn(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:Ie.resolve(r)}catch(e){return ht(e)}},currentTransaction:{get:()=>Ne.trans||null},waitFor:function(e,t){const n=Ie.resolve("function"==typeof e?Wn.ignoreTransaction(e):e).timeout(t||6e4);return Ne.trans?Ne.trans.waitFor(n):n},Promise:Ie,debug:{get:()=>F,set:e=>{U(e,"dexie"===e?()=>!0:xt)}},derive:p,extend:a,props:c,override:y,Events:Ct,on:Jt,liveQuery:function(e){return new Hn((t=>{const n=$(e);let r=!1,i={},a={};const s={get closed(){return r},unsubscribe:()=>{r=!0,Jt.storagemutated.unsubscribe(f)}};t.start&&t.start(s);let l=!1,u=!1;function c(){return o(a).some((e=>i[e]&&function(e,t){const n=$n(t);let r=n.next();if(r.done)return!1;let o=r.value;const i=$n(e);let a=i.next(o.from),s=a.value;for(;!r.done&&!a.done;){if(Rt(s.from,o.to)<=0&&Rt(s.to,o.from)>=0)return!0;Rt(o.from,s.from)<0?o=(r=n.next(s.from)).value:s=(a=i.next(o.from)).value}return!1}(i[e],a[e])))}const f=e=>{Vn(i,e),c()&&d()},d=()=>{if(l||r)return;i={};const o={},p=function(t){n&&nt();const r=()=>tt(e,{subscr:t,trans:null}),o=Ne.trans?ut(Ne.transless,r):r();return n&&o.then(rt,rt),o}(o);u||(Jt("storagemutated",f),u=!0),l=!0,Promise.resolve(p).then((e=>{l=!1,r||(c()?d():(i={},a=o,t.next&&t.next(e)))}),(e=>{l=!1,t.error&&t.error(e),s.unsubscribe()}))};return d(),s}))},extendObservabilitySet:Vn,getByKeyPath:x,setByKeyPath:S,delByKeyPath:function(e,t){"string"==typeof t?S(e,t,void 0):"length"in t&&[].map.call(t,(function(t){S(e,t,void 0)}))},shallowClone:_,deepClone:T,getObjectDiff:Tn,cmp:Rt,asap:w,minKey:-1/0,addons:[],connections:yt,errnames:J,dependencies:Kn,semVer:"3.2.3",version:"3.2.3".split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))}),Wn.maxKey=rn(Wn.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(Jt("storagemutated",(e=>{if(!Yn){let t;bt?(t=document.createEvent("CustomEvent"),t.initCustomEvent("x-storagemutated-1",!0,!0,e)):t=new CustomEvent("x-storagemutated-1",{detail:e}),Yn=!0,dispatchEvent(t),Yn=!1}})),addEventListener("x-storagemutated-1",(({detail:e})=>{Yn||qn(e)})));let Yn=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel("x-storagemutated-1");"function"==typeof e.unref&&e.unref(),Jt("storagemutated",(t=>{Yn||e.postMessage(t)})),e.onmessage=e=>{e.data&&qn(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){Jt("storagemutated",(e=>{try{Yn||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:"x-storagemutated-1",changedParts:e}))))}catch(e){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(e=>{if("x-storagemutated-1"===e.key){const t=JSON.parse(e.newValue);t&&qn(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&"x-storagemutated-1"===e.type&&qn(e.changedParts)}))}Ie.rejectionMapper=function(e,t){if(!e||e instanceof q||e instanceof TypeError||e instanceof SyntaxError||!e.name||!te[e.name])return e;var n=new te[e.name](t||e.message,e);return"stack"in e&&d(n,"stack",{get:function(){return this.inner.stack}}),n},U(F,xt)},6823:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},1917:(e,t,n)=>{"use strict";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,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},9474:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},1248:(e,t,n)=>{"use strict";function r(e){return(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})(e)}n.d(t,{Z:()=>r})},9754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9079);const o=function(e,t){for(var n=e.length;n--;)if((0,r.Z)(e[n][0],t))return n;return-1};var i=Array.prototype.splice;function a(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])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))},a.prototype.get=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]},a.prototype.has=function(e){return o(this.__data__,e)>-1},a.prototype.set=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const s=a},8449:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8951),o=n(8755);const i=(0,r.Z)(o.Z,"Map")},3853:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});const r=(0,n(8951).Z)(Object,"create");var o=Object.prototype.hasOwnProperty;var i=Object.prototype.hasOwnProperty;function a(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])}}a.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},a.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0},a.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)},a.prototype.set=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};const s=a;var l=n(9754),u=n(8449);const c=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function f(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])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(u.Z||l.Z),string:new s}},f.prototype.delete=function(e){var t=c(this,e).delete(e);return this.size-=t?1:0,t},f.prototype.get=function(e){return c(this,e).get(e)},f.prototype.has=function(e){return c(this,e).has(e)},f.prototype.set=function(e,t){var n=c(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const d=f},7198:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9754);var o=n(8449),i=n(3853);function a(e){var t=this.__data__=new r.Z(e);this.size=t.size}a.prototype.clear=function(){this.__data__=new r.Z,this.size=0},a.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},a.prototype.get=function(e){return this.__data__.get(e)},a.prototype.has=function(e){return this.__data__.has(e)},a.prototype.set=function(e,t){var n=this.__data__;if(n instanceof r.Z){var a=n.__data__;if(!o.Z||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i.Z(a)}return n.set(e,t),this.size=n.size,this};const s=a},4785:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(8755).Z.Symbol},1086:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(8755).Z.Uint8Array},1757:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(5602),o=n(7275),i=n(3813),a=n(7605),s=n(3614),l=Object.prototype.hasOwnProperty;const u=function(e,t){var n=(0,o.Z)(e),u=!n&&(0,r.Z)(e),c=!n&&!u&&(0,i.Z)(e),f=!n&&!u&&!c&&(0,s.Z)(e),d=n||u||c||f,p=d?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],h=p.length;for(var m in e)!t&&!l.call(e,m)||d&&("length"==m||c&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,a.Z)(m,h))||p.push(m);return p}},5020:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(4785),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.Z?r.Z.toStringTag:void 0;var l=Object.prototype.toString;var u=r.Z?r.Z.toStringTag:void 0;const c=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}(e):function(e){return l.call(e)}(e)}},6390:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4789);const o=(0,n(8269).Z)(Object.keys,Object);var i=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,r.Z)(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},3956:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},8951:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(3797);const o=n(8755).Z["__core-js_shared__"];var i,a=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";var s=n(5917),l=n(4329),u=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,d=c.toString,p=f.hasOwnProperty,h=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,s.Z)(e)||(t=e,a&&a in t))&&((0,r.Z)(e)?h:u).test((0,l.Z)(e));var t},v=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return m(n)?n:void 0}},6059:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(8269).Z)(Object.getPrototypeOf,Object)},1203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(8951),o=n(8755);const i=(0,r.Z)(o.Z,"DataView");var a=n(8449);const s=(0,r.Z)(o.Z,"Promise"),l=(0,r.Z)(o.Z,"Set"),u=(0,r.Z)(o.Z,"WeakMap");var c=n(5020),f=n(4329),d="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",v="[object DataView]",g=(0,f.Z)(i),y=(0,f.Z)(a.Z),b=(0,f.Z)(s),w=(0,f.Z)(l),E=(0,f.Z)(u),x=c.Z;(i&&x(new i(new ArrayBuffer(1)))!=v||a.Z&&x(new a.Z)!=d||s&&x(s.resolve())!=p||l&&x(new l)!=h||u&&x(new u)!=m)&&(x=function(e){var t=(0,c.Z)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,f.Z)(n):"";if(r)switch(r){case g:return v;case y:return d;case b:return p;case w:return h;case E:return m}return t});const S=x},7605:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=/^(?:0|[1-9]\d*)$/;const o=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},4789:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Object.prototype;const o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},8269:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},8755:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3956),o="object"==typeof self&&self&&self.Object===Object&&self;const i=r.Z||o||Function("return this")()},4329:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Function.prototype.toString;const o=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},9079:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e===t||e!=e&&t!=t}},5602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(5020),o=n(31);const i=function(e){return(0,o.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)};var a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable;const u=i(function(){return arguments}())?i:function(e){return(0,o.Z)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},7275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=Array.isArray},7597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3797),o=n(2170);const i=function(e){return null!=e&&(0,o.Z)(e.length)&&!(0,r.Z)(e)}},3813:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(8755);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o?r.Z.Buffer:void 0;const s=(a?a.isBuffer:void 0)||function(){return!1}},5162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(6390),o=n(1203),i=n(5602),a=n(7275),s=n(7597),l=n(3813),u=n(4789),c=n(3614),f=Object.prototype.hasOwnProperty;const d=function(e){if(null==e)return!0;if((0,s.Z)(e)&&((0,a.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,l.Z)(e)||(0,c.Z)(e)||(0,i.Z)(e)))return!e.length;var t=(0,o.Z)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,u.Z)(e))return!(0,r.Z)(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},4896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(7198),o=n(3853);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o.Z;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},i.prototype.has=function(e){return this.__data__.has(e)};const a=i,s=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},l=function(e,t,n,r,o,i){var l=1&n,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=-1,h=!0,m=2&n?new a:void 0;for(i.set(e,t),i.set(t,e);++p<u;){var v=e[p],g=t[p];if(r)var y=l?r(g,v,p,t,e,i):r(v,g,p,e,t,i);if(void 0!==y){if(y)continue;h=!1;break}if(m){if(!s(t,(function(e,t){if(a=t,!m.has(a)&&(v===e||o(v,e,n,r,i)))return m.push(t);var a}))){h=!1;break}}else if(v!==g&&!o(v,g,n,r,i)){h=!1;break}}return i.delete(e),i.delete(t),h};var u=n(4785),c=n(1086),f=n(9079);const d=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},p=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var h=u.Z?u.Z.prototype:void 0,m=h?h.valueOf:void 0;var v=n(7275);var g=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols;const b=y?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(y(e),(function(t){return g.call(e,t)})))}:function(){return[]};var w=n(1757),E=n(6390),x=n(7597);const S=function(e){return(0,x.Z)(e)?(0,w.Z)(e):(0,E.Z)(e)},_=function(e){return function(e,t,n){var r=t(e);return(0,v.Z)(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,S,b)};var k=Object.prototype.hasOwnProperty;var O=n(1203),C=n(3813),P=n(3614),N="[object Arguments]",T="[object Array]",j="[object Object]",L=Object.prototype.hasOwnProperty;const I=function(e,t,n,o,i,a){var s=(0,v.Z)(e),u=(0,v.Z)(t),h=s?T:(0,O.Z)(e),g=u?T:(0,O.Z)(t),y=(h=h==N?j:h)==j,b=(g=g==N?j:g)==j,w=h==g;if(w&&(0,C.Z)(e)){if(!(0,C.Z)(t))return!1;s=!0,y=!1}if(w&&!y)return a||(a=new r.Z),s||(0,P.Z)(e)?l(e,t,n,o,i,a):function(e,t,n,r,o,i,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||!i(new c.Z(e),new c.Z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.Z)(+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=d;case"[object Set]":var u=1&r;if(s||(s=p),e.size!=t.size&&!u)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var v=l(s(e),s(t),r,o,i,a);return a.delete(e),v;case"[object Symbol]":if(m)return m.call(e)==m.call(t)}return!1}(e,t,h,n,o,i,a);if(!(1&n)){var E=y&&L.call(e,"__wrapped__"),x=b&&L.call(t,"__wrapped__");if(E||x){var S=E?e.value():e,I=x?t.value():t;return a||(a=new r.Z),i(S,I,n,o,a)}}return!!w&&(a||(a=new r.Z),function(e,t,n,r,o,i){var a=1&n,s=_(e),l=s.length;if(l!=_(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:k.call(t,c)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],v=t[c];if(r)var g=a?r(v,m,c,t,e,i):r(m,v,c,e,t,i);if(!(void 0===g?m===v||o(m,v,n,r,i):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,o,i,a))};var M=n(31);const D=function e(t,n,r,o,i){return t===n||(null==t||null==n||!(0,M.Z)(t)&&!(0,M.Z)(n)?t!=t&&n!=n:I(t,n,r,o,e,i))},R=function(e,t){return D(e,t)}},3797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5020),o=n(5917);const i=function(e){if(!(0,o.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2170:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},31:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},1785:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(5020),o=n(6059),i=n(31),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);const f=function(e){if(!(0,i.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,o.Z)(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},3614:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(5020),o=n(2170),i=n(31),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;var s=n(3956),l="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=l&&"object"==typeof module&&module&&!module.nodeType&&module,c=u&&u.exports===l&&s.Z.process,f=function(){try{return u&&u.require&&u.require("util").types||c&&c.binding&&c.binding("util")}catch(e){}}(),d=f&&f.isTypedArray;const p=d?(h=d,function(e){return h(e)}):function(e){return(0,i.Z)(e)&&(0,o.Z)(e.length)&&!!a[(0,r.Z)(e)]};var h},9881:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return void 0===e}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.m=n,o.c=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"3fadade6f25ca1ee.js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@openmrs/esm-app-shell:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var f=u[c];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+i){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{o.S={};var e={},t={};o.I=(n,r)=>{r||(r=[]);var i=t[n];if(i||(i=t[n]={}),!(r.indexOf(i)>=0)){if(r.push(i),e[n])return e[n];o.o(o.S,n)||(o.S[n]={});var a=o.S[n],s="@openmrs/esm-app-shell",l=(e,t,n,r)=>{var o=a[e]=a[e]||{},i=o[t];(!i||!i.loaded&&(!r!=!i.eager?r:s>i.from))&&(o[t]={get:n,from:s,eager:!!r})},u=[];return"default"===n&&(l("@openmrs/esm-framework/src/internal","4.3.2-pre.666",(()=>()=>o(8694)),1),l("@openmrs/esm-framework","4.3.2-pre.666",(()=>()=>o(6503)),1),l("dayjs","1.11.5",(()=>()=>o(9889)),1),l("i18next","19.9.2",(()=>()=>o(26)),1),l("react-dom","18.2.0",(()=>()=>o(1386)),1),l("react-i18next","11.18.6",(()=>()=>o(2857)),1),l("react","18.2.0",(()=>()=>o(3248)),1),l("rxjs","6.6.7",(()=>()=>o(1099)),1)),e[n]=u.length?Promise.all(u).then((()=>e[n]=1)):1}}})(),o.p="",(()=>{var e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=n[1]?t(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,t(n[2]))),n[3]&&(r.push([]),r.push.apply(r,t(n[3]))),r},t=e=>{var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,i=1;i<e.length;i++)o--,r+="u"==(typeof(s=e[i]))[0]?"-":(o>0?".":"")+(o=2,s);return r}var a=[];for(i=1;i<e.length;i++){var s=e[i];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():t(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},n=(t,r)=>{if(0 in t){r=e(r);var o=t[0],i=o<0;i&&(o=-o-1);for(var a=0,s=1,l=!0;;s++,a++){var u,c,f=s<t.length?(typeof t[s])[0]:"";if(a>=r.length||"o"==(c=(typeof(u=r[a]))[0]))return!l||("u"==f?s>o&&!i:""==f!=i);if("u"==c){if(!l||"u"!=f)return!1}else if(l)if(f==c)if(s<=o){if(u!=t[s])return!1}else{if(i?u>t[s]:u<t[s])return!1;u!=t[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(i||s<=o)return!1;l=!1,s--}else{if(s<=o||c<f!=i)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var d=[],p=d.pop.bind(d);for(a=1;a<t.length;a++){var h=t[a];d.push(1==h?p()|p():2==h?p()&p():h?n(h,r):!p())}return!!p()},r=(t,n)=>{var r=t[n];return Object.keys(r).reduce(((t,n)=>!t||!r[t].loaded&&((t,n)=>{t=e(t),n=e(n);for(var r=0;;){if(r>=t.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=t[r],i=(typeof o)[0];if(r>=n.length)return"u"==i;var a=n[r],s=(typeof a)[0];if(i!=s)return"o"==i&&"n"==s||"s"==s||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;r++}})(t,n)?n:t),0)},i=(e,o,i,s)=>{var l=r(e,i);return n(s,l)||"undefined"!=typeof console&&console.warn&&console.warn(((e,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+t(o)+")")(e,i,l,s)),a(e[i][l])},a=e=>(e.loaded=1,e.get()),s=e=>function(t,n,r,i){var a=o.I(t);return a&&a.then?a.then(e.bind(e,t,o.S[t],n,r,i)):e(t,o.S[t],n,r,i)},l=s(((e,t,n,i)=>t&&o.o(t,n)?((e,t,n,o)=>{var i=r(e,n);return a(e[n][i])})(t,0,n):i())),u=s(((e,t,n,r,a)=>t&&o.o(t,n)?i(t,0,n,r):a())),c={},f={7034:()=>l("default","@openmrs/esm-framework/src/internal",(()=>()=>o(8694))),3596:()=>u("default","rxjs",[1,6,5,3],(()=>()=>o(1099))),7959:()=>u("default","react",[1,18,1,0],(()=>()=>o(3248))),1859:()=>u("default","react-dom",[1,18,1,0],(()=>()=>o(1386))),8658:()=>u("default","i18next",[1,19,6,0],(()=>()=>o(26))),8433:()=>u("default","react-i18next",[1,11,7,0],(()=>()=>o(2857))),3772:()=>u("default","dayjs",[1,1,10,4],(()=>()=>o(9889))),6746:()=>u("default","@openmrs/esm-framework",[7,4,3,2,,"pre",666],(()=>()=>o(6503)))};[7034,3596,7959,1859,8658,8433,3772,6746].forEach((e=>{o.m[e]=t=>{c[e]=0,delete o.c[e];var n=f[e]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=n()}}));var d={};o.f.consumes=(e,t)=>{o.o(d,e)&&d[e].forEach((e=>{if(o.o(c,e))return t.push(c[e]);var n=t=>{c[e]=0,o.m[e]=n=>{delete o.c[e],n.exports=t()}},r=t=>{delete c[e],o.m[e]=n=>{throw delete o.c[e],t}};try{var i=f[e]();i.then?t.push(c[e]=i.then(n).catch(r)):n(i)}catch(e){r(e)}}))}})(),(()=>{var e={179:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,s,l]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);l&&l(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunk_openmrs_esm_app_shell=self.webpackChunk_openmrs_esm_app_shell||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o(6360)})();