mobx-view-model-devtools 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +2 -0
- package/index.d.ts +80 -0
- package/index.global.js +2 -0
- package/{dist/index.js → index.js} +489 -703
- package/package.json +13 -41
- package/dist/index.cjs +0 -2
- package/dist/index.d.ts +0 -83
package/index.global.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--font-weight-semibold:600;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.static_g5P-G{position:static}.blur_9rZ6A{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.vmButton_Xr1Q6{z-index:99;width:calc(var(--spacing)*9);height:calc(var(--spacing)*9);cursor:pointer;border-radius:var(--radius-lg);font-family:var(--font-mono);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));position:fixed}.vmButton_Xr1Q6[data-position=top-right],.vmButton_Xr1Q6[data-position=undefined]{top:calc(var(--spacing)*3);right:calc(var(--spacing)*3)}:is(.vmButton_Xr1Q6[data-position=top-right],.vmButton_Xr1Q6[data-position=undefined]).opened_gewqL{top:calc(var(--spacing)*-10)}.vmButton_Xr1Q6[data-position=top-left]{top:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmButton_Xr1Q6[data-position=top-left].opened_gewqL{top:calc(var(--spacing)*-10)}.vmButton_Xr1Q6[data-position=bottom-left]{bottom:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmButton_Xr1Q6[data-position=bottom-left].opened_gewqL{bottom:calc(var(--spacing)*-10)}.vmButton_Xr1Q6[data-position=bottom-right]{right:calc(var(--spacing)*3);bottom:calc(var(--spacing)*3)}.vmButton_Xr1Q6[data-position=bottom-right].opened_gewqL{bottom:calc(var(--spacing)*-10)}.vmButton_Xr1Q6>img{pointer-events:none;inset:calc(var(--spacing)*0);border-radius:var(--radius-lg);position:absolute}.vmButton_Xr1Q6>div{pointer-events:none;inset:calc(var(--spacing)*0);border-radius:var(--radius-lg);border-style:var(--tw-border-style);border-width:2px;border-color:#00000057;position:absolute}.vmButton_Xr1Q6>span{pointer-events:none;top:calc(var(--spacing)*-1);left:calc(var(--spacing)*-1);border-radius:var(--radius-lg);padding:calc(var(--spacing)*.5);--tw-leading:1;--tw-font-weight:var(--font-weight-semibold);font-size:12px;line-height:1;font-weight:var(--font-weight-semibold);color:#2aff0a;background-color:#005c26cf;display:flex;position:absolute}.vmButton_Xr1Q6.opened_gewqL{pointer-events:none}.vmPopup_Q4l4j{z-index:99;border-radius:var(--radius-lg);width:520px;height:calc(100vh - 24px);position:fixed}.vmPopup_Q4l4j>header button{width:28px;padding:6px}.vmPopup_Q4l4j[data-position=top-right],.vmPopup_Q4l4j[data-position=undefined]{top:calc(var(--spacing)*3);right:calc(var(--spacing)*3)}.vmPopup_Q4l4j[data-position=top-left]{top:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmPopup_Q4l4j[data-position=bottom-left]{bottom:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmPopup_Q4l4j[data-position=bottom-right]{right:calc(var(--spacing)*3);bottom:calc(var(--spacing)*3)}.vmContent_VAE7p{color:#ccc;font-family:var(--font-mono);background-color:#1e1e1e;overflow:auto}.vmContent_VAE7p>header{height:calc(var(--spacing)*8);padding-left:calc(var(--spacing)*2);--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);justify-content:space-between;align-items:center;display:flex}.vmContent_VAE7p *{font-family:var(--font-mono)}.vmContentTree_BB36O{padding-inline:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*2);flex-direction:column;display:flex}.vmTreeItem_t-7jc{flex-direction:column;display:flex}.vmTreeItem_t-7jc.line_Xgaua{top:calc(22px + 22px*var(--level,0));background:#1e1e1e;position:sticky}.vmTreeItem_t-7jc>header{z-index:1;cursor:pointer;align-items:center;gap:calc(var(--spacing)*1);text-overflow:ellipsis;white-space:nowrap;background-color:#1e1e1e;margin-block:auto;display:flex;overflow:hidden}.vmTreeItem_t-7jc>header>label{background:#0f6013;border-radius:4px;padding:0 4px}.vmTreeItem_t-7jc>header>span{color:#5ab65e;text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.vmTreeItem_t-7jc:not([data-fitted=true])>header{opacity:.6}.vmContentFilters_No1QW{z-index:99;background:#1e1e1e;width:100%;padding:0 8px;position:sticky;top:0}.vmContentFilters_No1QW input{background:#343434;border-radius:4px;outline:0;width:100%;padding:3px 4px;font-size:14px}.propertyMeta_XxYHc{text-overflow:ellipsis;white-space:nowrap;color:#616161;overflow:hidden}.propertyMeta_XxYHc.small_Ipy6s{font-size:10px;line-height:15px}.propertyValue_s9qHJ{text-overflow:ellipsis;white-space:nowrap;color:#616161;overflow:hidden}.propertyValue_s9qHJ:has(+.property-name_2-sJi){margin-right:calc(var(--spacing)*1)}.line_Xgaua{text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);white-space:pre;height:22px;z-index:calc((var(--level,0) + 1)*10000 + (var(--order,0)));padding-left:calc(10px + (var(--level)*14px));background:#1e1e1e;flex-direction:row;align-items:center;font-size:14px;display:flex;position:relative;overflow:hidden}.line_Xgaua:has(>.expandButton_EObqt.expanded_uFpb7){top:calc(22px + 22px*(var(--level,0) + 1));position:sticky}.property_eoWZv[data-fitted=false]{opacity:.5}.property_eoWZv.instance_B-kEn>.propertyValue_s9qHJ{color:#ba82be}:is(.property_eoWZv.primitive_5yfCy.boolean_TwUVp,.property_eoWZv.primitive_5yfCy.number_AVdzm,.property_eoWZv.primitive_5yfCy.object_kn8wQ,.property_eoWZv.primitive_5yfCy.undefined_SMcns,.property_eoWZv.primitive_5yfCy.bigint_ZrO3O,.property_eoWZv.primitive_5yfCy.symbol_9GN4U)>.propertyValue_s9qHJ{color:#5999cd}.property_eoWZv.primitive_5yfCy.string_m1Kkx>.propertyValue_s9qHJ{color:#af7249}.expandButton_EObqt{color:#a0a0a0;cursor:pointer;width:16px;height:16px;font-weight:700;opacity:1!important}.expandButton_EObqt.expanded_uFpb7{color:#b8b8b8;transform:rotate(90deg)}.expandButton_EObqt.disabled_IDojS{opacity:.35!important}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
|
+
var MobxViewModelDevtools=function(e,t,n,r){"use strict";var o,i,s=Object.create,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),u=e=>{throw TypeError(e)},d=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>a(e,"name",{value:t,configurable:!0}),f=["class","method","getter","setter","accessor","field","value","get","set"],h=e=>void 0!==e&&"function"!=typeof e?u("Function expected"):e,m=(e,t,n,r,o)=>({kind:f[e],name:t,metadata:r,addInitializer:e=>n._?u("Already initialized"):o.push(h(e||null))}),v=(e,t)=>d(t,c("metadata"),e[3]),b=(e,t,n)=>d(e,"symbol"!=typeof t?t+"":t,n),g=(e,t,n)=>t.has(e)||u("Cannot "+n),y=(e,t)=>Object(t)!==t?u('Cannot use the "in" operator on this value'):e.has(t),_=(e,t,n)=>(g(e,t,"read from private field"),n?n.call(e):t.get(e)),w=(e,t,n,r)=>(g(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),E=(e,t,n)=>(g(e,t,"access private method"),n),O="production"!==process.env.NODE_ENV?{0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,t){return"Cannot apply '"+e+"' to '"+t.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,t){return"[mobx.array] Index out of bounds, "+e+" is larger than "+t},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,t){return"the entry '"+e+"' does not exist in the observable map '"+t+"'"},26:"please specify a property",27:function(e,t){return"no observable property '"+e.toString()+"' found on the observable object '"+t+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,t){return"Cycle detected in computation "+e+": "+t},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"}:{};function x(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("production"!==process.env.NODE_ENV){var o="string"==typeof e?e:O[e];throw"function"==typeof o&&(o=o.apply(null,n)),new Error("[MobX] "+o)}throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var N={};function k(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:N}var S=Object.assign,A=Object.getOwnPropertyDescriptor,C=Object.defineProperty,T=Object.prototype,V=[];Object.freeze(V);var M={};Object.freeze(M);var D="undefined"!=typeof Proxy,j=Object.toString();function P(){D||x("production"!==process.env.NODE_ENV?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function R(e){"production"!==process.env.NODE_ENV&&Ft.verifyProxies&&x("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function I(){return++Ft.mobxGuid}function L(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var B=function(){};function U(e){return"function"==typeof e}function z(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function F(e){return null!==e&&"object"==typeof e}function G(e){if(!F(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===j}function H(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function q(e,t,n){C(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function K(e,t,n){C(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function $(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return F(e)&&!0===e[n]}}function W(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function X(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var Y=void 0!==Object.getOwnPropertySymbols;var J="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Y?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Z(e){return"string"==typeof e?e:"symbol"==typeof e?e.toString():new String(e).toString()}function Q(e){return null===e?null:"object"==typeof e?""+e:e}function ee(e,t){return T.hasOwnProperty.call(e,t)}var te=Object.getOwnPropertyDescriptors||function(e){var t={};return J(e).forEach(function(n){t[n]=A(e,n)}),t};function ne(e,t){return!!(e&t)}function re(e,t,n){return n?e|=t:e&=~t,e}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ie(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ue(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function se(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return oe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(null,arguments)}function le(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ce(e,t)}function ce(e,t){return(ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}var de=Symbol("mobx-stored-annotations");function pe(e){return Object.assign(function(t,n){if(he(n))return e.decorate_20223_(t,n);fe(t,n,e)},e)}function fe(e,t,n){(ee(e,de)||q(e,de,ae({},e[de])),"production"!==process.env.NODE_ENV&&xe(n)&&!ee(e[de],t))&&x("'"+(e.constructor.name+".prototype."+t.toString())+"' is decorated with 'override', but no such decorated member was found on prototype.");!function(e,t,n){if("production"!==process.env.NODE_ENV&&!xe(t)&&ee(e[de],n)){var r=e.constructor.name+".prototype."+n.toString(),o=e[de][n].annotationType_;x("Cannot apply '@"+t.annotationType_+"' to '"+r+"':\nThe field is already decorated with '@"+o+"'.\nRe-decorating fields is not allowed.\nUse '@override' decorator for methods overridden by subclass.")}}(e,n,t),xe(n)||(e[de][t]=n)}function he(e){return"object"==typeof e&&"string"==typeof e.kind}function me(e,t){"production"===process.env.NODE_ENV||t.includes(e.kind)||x("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var ve=Symbol("mobx administration"),be=function(){function e(e){void 0===e&&(e="production"!==process.env.NODE_ENV?"Atom@"+I():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Et.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return Wt(this)},t.reportChanged=function(){Kt(),Xt(this),$t()},t.toString=function(){return this.name_},ie(e,[{key:"isBeingObserved",get:function(){return ne(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=re(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return ne(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=re(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return ne(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=re(this.flags_,e.diffValueMask_,1===t)}}])}();be.isBeingObservedMask_=1,be.isPendingUnobservationMask_=2,be.diffValueMask_=4;var ge=$("Atom",be);function ye(e,t,n){void 0===t&&(t=B),void 0===n&&(n=B);var r,o=new be(e);return t!==B&&An(Nn,o,t,r),n!==B&&Sn(o,n),o}var _e={structural:function(e,t){return qr(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}};function we(e,t,n){return Un(e)?e:Array.isArray(e)?at.array(e,{name:n}):G(e)?at.object(e,void 0,{name:n}):W(e)?at.map(e,{name:n}):X(e)?at.set(e,{name:n}):"function"!=typeof e||wn(e)||Bn(e)?e:H(e)?In(e):yn(n,e)}function Ee(e){return e}var Oe="override";function xe(e){return e.annotationType_===Oe}function Ne(e,t){return{annotationType_:e,options_:t,make_:ke,extend_:Se,decorate_20223_:Ae}}function ke(e,t,n,r){var o;if(null!=(o=this.options_)&&o.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(wn(n.value))return 1;var i=Ce(e,this,t,n,!1);return C(r,t,i),2}function Se(e,t,n,r){var o=Ce(e,this,t,n);return e.defineProperty_(t,o,r)}function Ae(e,t){"production"!==process.env.NODE_ENV&&me(t,["method","field"]);var n,r=t.kind,o=t.name,i=t.addInitializer,s=this,a=function(e){var t,n,r,i;return vt(null!=(t=null==(n=s.options_)?void 0:n.name)?t:o.toString(),e,null!=(r=null==(i=s.options_)?void 0:i.autoAction)&&r)};return"field"==r?function(e){var t,n=e;return wn(n)||(n=a(n)),null!=(t=s.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==r?(wn(e)||(e=a(e)),null!=(n=this.options_)&&n.bound&&i(function(){var e=this,t=e[o].bind(e);t.isMobxAction=!0,e[o]=t}),e):void x("Cannot apply '"+s.annotationType_+"' to '"+String(o)+"' (kind: "+r+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function Ce(e,t,n,r,o){var i,s,a,l,c,u,d;void 0===o&&(o=Ft.safeDescriptors),function(e,t,n,r){var o=t.annotationType_,i=r.value;"production"===process.env.NODE_ENV||U(i)||x("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' can only be used on properties with a function value.")}(e,t,n,r);var p,f=r.value;null!=(i=t.options_)&&i.bound&&(f=f.bind(null!=(p=e.proxy_)?p:e.target_));return{value:vt(null!=(s=null==(a=t.options_)?void 0:a.name)?s:n.toString(),f,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(u=t.options_)&&u.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function Te(e,t){return{annotationType_:e,options_:t,make_:Ve,extend_:Me,decorate_20223_:De}}function Ve(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!ee(e.target_,t)||!Bn(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Bn(n.value))return 1;var i=je(e,this,t,n,!1,!1);return C(r,t,i),2}function Me(e,t,n,r){var o,i=je(e,this,t,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function De(e,t){var n;"production"!==process.env.NODE_ENV&&me(t,["method"]);var r=t.name,o=t.addInitializer;return Bn(e)||(e=In(e)),null!=(n=this.options_)&&n.bound&&o(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function je(e,t,n,r,o,i){void 0===i&&(i=Ft.safeDescriptors),function(e,t,n,r){var o=t.annotationType_,i=r.value;"production"===process.env.NODE_ENV||U(i)||x("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' can only be used on properties with a generator function value.")}(e,t,n,r);var s,a=r.value;(Bn(a)||(a=In(a)),o)&&((a=a.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0);return{value:a,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function Pe(e,t){return{annotationType_:e,options_:t,make_:Re,extend_:Ie,decorate_20223_:Le}}function Re(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function Ie(e,t,n,r){return function(e,t,n,r){var o=t.annotationType_,i=r.get;"production"===process.env.NODE_ENV||i||x("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' can only be used on getter(+setter) properties.")}(e,this,t,n),e.defineComputedProperty_(t,ae({},this.options_,{get:n.get,set:n.set}),r)}function Le(e,t){"production"!==process.env.NODE_ENV&&me(t,["getter"]);var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=Er(this)[ve],o=ae({},n.options_,{get:e,context:this});o.name||(o.name="production"!==process.env.NODE_ENV?t.name_+"."+r.toString():"ObservableObject."+r.toString()),t.values_.set(r,new wt(o))}),function(){return this[ve].getObservablePropValue_(r)}}function Be(e,t){return{annotationType_:e,options_:t,make_:Ue,extend_:ze,decorate_20223_:Fe}}function Ue(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ze(e,t,n,r){var o,i;return function(e,t,n,r){var o=t.annotationType_;"production"===process.env.NODE_ENV||"value"in r||x("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' cannot be used on getter/setter properties")}(e,this,t,n),e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:we,r)}function Fe(e,t){if("production"!==process.env.NODE_ENV){if("field"===t.kind)throw x("Please use `@observable accessor "+String(t.name)+"` instead of `@observable "+String(t.name)+"`");me(t,["accessor"])}var n=this,r=t.kind,o=t.name,i=new WeakSet;function s(e,t){var r,s,a=Er(e)[ve],l=new _t(t,null!=(r=null==(s=n.options_)?void 0:s.enhancer)?r:we,"production"!==process.env.NODE_ENV?a.name_+"."+o.toString():"ObservableObject."+o.toString(),!1);a.values_.set(o,l),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||s(this,e.get.call(this)),this[ve].getObservablePropValue_(o)},set:function(e){return i.has(this)||s(this,e),this[ve].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||s(this,e),e}}}var Ge="true",He=qe();function qe(e){return{annotationType_:Ge,options_:e,make_:Ke,extend_:$e,decorate_20223_:We}}function Ke(e,t,n,r){var o,i,s,a;if(n.get)return dt.make_(e,t,n,r);if(n.set){var l=wn(n.set)?n.set:vt(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!Ft.safeDescriptors||e.isPlainObject_,set:l})?0:2:(C(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return H(n.value)?(null!=(a=this.options_)&&a.autoBind?In.bound:In).make_(e,t,n,r):(null!=(s=this.options_)&&s.autoBind?yn.bound:yn).make_(e,t,n,r);var c,u=!1===(null==(o=this.options_)?void 0:o.deep)?at.ref:at;"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_));return u.make_(e,t,n,r)}function $e(e,t,n,r){var o,i,s;if(n.get)return dt.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!Ft.safeDescriptors||e.isPlainObject_,set:vt(t.toString(),n.set)},r);"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(s=e.proxy_)?s:e.target_));return(!1===(null==(i=this.options_)?void 0:i.deep)?at.ref:at).extend_(e,t,n,r)}function We(e,t){x("'"+this.annotationType_+"' cannot be used as a decorator")}var Xe={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ye(e){return e||Xe}Object.freeze(Xe);var Je=Be("observable"),Ze=Be("observable.ref",{enhancer:Ee}),Qe=Be("observable.shallow",{enhancer:function(e,t,n){return null==e||Nr(e)||lr(e)||fr(e)||br(e)?e:Array.isArray(e)?at.array(e,{name:n,deep:!1}):G(e)?at.object(e,void 0,{name:n,deep:!1}):W(e)?at.map(e,{name:n,deep:!1}):X(e)?at.set(e,{name:n,deep:!1}):void("production"!==process.env.NODE_ENV&&x("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets"))}}),et=Be("observable.struct",{enhancer:function(e,t){return"production"!==process.env.NODE_ENV&&Un(e)&&x("observable.struct should not be used with observable values"),qr(e,t)?t:e}}),tt=pe(Je);function nt(e){return!0===e.deep?we:!1===e.deep?Ee:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:we;var t,n,r}function rt(e,t,n){return he(t)?Je.decorate_20223_(e,t):z(t)?void fe(e,t,Je):Un(e)?e:G(e)?at.object(e,t,n):Array.isArray(e)?at.array(e,t):W(e)?at.map(e,t):X(e)?at.set(e,t):"object"==typeof e&&null!==e?e:at.box(e,t)}S(rt,tt);var ot,it,st={box:function(e,t){var n=Ye(t);return new _t(e,nt(n),n.name,!0,n.equals)},array:function(e,t){var n=Ye(t);return(!1===Ft.useProxies||!1===n.proxy?Lr:tr)(e,nt(n),n.name)},map:function(e,t){var n=Ye(t);return new pr(e,nt(n),n.name)},set:function(e,t){var n=Ye(t);return new vr(e,nt(n),n.name)},object:function(e,t,n){return Fr(function(){return function(e,t,n,r){"production"!==process.env.NODE_ENV&&(arguments.length>4&&x("'extendObservable' expected 2-4 arguments"),"object"!=typeof e&&x("'extendObservable' expects an object as first argument"),fr(e)&&x("'extendObservable' should not be used on maps, use map.merge instead"),G(t)||x("'extendObservable' only accepts plain objects as second argument"),(Un(t)||Un(n))&&x("Extending an object with another observable (object) is not supported"));var o=te(t);return Fr(function(){var t=Er(e,r)[ve];J(o).forEach(function(e){t.extend_(e,o[e],!n||(!(e in n)||n[e]))})}),e}(!1===Ft.useProxies||!1===(null==n?void 0:n.proxy)?Er({},n):function(e,t){var n,r;return P(),e=Er(e,t),null!=(r=(n=e[ve]).proxy_)?r:n.proxy_=new Proxy(e,Gn)}({},n),e,t)})},ref:pe(Ze),shallow:pe(Qe),deep:tt,struct:pe(et)},at=S(rt,st),lt="computed",ct=Pe(lt),ut=Pe("computed.struct",{equals:_e.structural}),dt=function(e,t){if(he(t))return ct.decorate_20223_(e,t);if(z(t))return fe(e,t,ct);if(G(e))return pe(Pe(lt,e));"production"!==process.env.NODE_ENV&&(U(e)||x("First argument to `computed` should be an expression."),U(t)&&x("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=G(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new wt(n)};Object.assign(dt,ct),dt.struct=pe(ut);var pt=0,ft=1,ht=null!=(ot=null==(it=A(function(){},"name"))?void 0:it.configurable)&&ot,mt={value:"action",configurable:!0,writable:!1,enumerable:!1};function vt(e,t,n,r){function o(){return bt(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),"production"!==process.env.NODE_ENV&&(U(t)||x("`action` can only be invoked on functions"),"string"==typeof e&&e||x("actions should have valid names, got: '"+e+"'")),o.isMobxAction=!0,o.toString=function(){return t.toString()},ht&&(mt.value=e,C(o,"name",mt)),o}function bt(e,t,n,r,o){var i=function(e,t,n,r){var o="production"!==process.env.NODE_ENV&&on()&&!!e,i=0;if("production"!==process.env.NODE_ENV&&o){i=Date.now();var s=r?Array.from(r):V;an({type:un,name:e,object:n,arguments:s})}var a=Ft.trackingDerivation,l=!t||!a;Kt();var c=Ft.allowStateChanges;l&&(jt(),c=gt(!0));var u=Rt(!0),d={runAsAction_:l,prevDerivation_:a,prevAllowStateChanges_:c,prevAllowStateReads_:u,notifySpy_:o,startTime_:i,actionId_:ft++,parentActionId_:pt};return pt=d.actionId_,d}(e,t,r,o);try{return n.apply(r,o)}catch(s){throw i.error_=s,s}finally{!function(e){pt!==e.actionId_&&x(30);pt=e.parentActionId_,void 0!==e.error_&&(Ft.suppressReactionErrors=!0);yt(e.prevAllowStateChanges_),It(e.prevAllowStateReads_),$t(),e.runAsAction_&&Pt(e.prevDerivation_);"production"!==process.env.NODE_ENV&&e.notifySpy_&&cn({time:Date.now()-e.startTime_});Ft.suppressReactionErrors=!1}(i)}}function gt(e){var t=Ft.allowStateChanges;return Ft.allowStateChanges=e,t}function yt(e){Ft.allowStateChanges=e}var _t=function(e){function t(t,n,r,o,i){var s,a;(void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableValue@"+I():"ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=_e.default),(s=e.call(this,r)||this).enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=n,s.name_=r,s.equals=i,s.value_=n(t,void 0,r),"production"!==process.env.NODE_ENV&&o&&on())&&sn({type:"create",object:s,observableKind:"value",debugObjectName:s.name_,newValue:""+(null==(a=s.value_)?void 0:a.toString())});return s}le(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){var t=this.value_;if((e=this.prepareNewValue_(e))!==Ft.UNCHANGED){var n=on();"production"!==process.env.NODE_ENV&&n&&an({type:Zn,object:this,observableKind:"value",debugObjectName:this.name_,newValue:e,oldValue:t}),this.setNewValue_(e),"production"!==process.env.NODE_ENV&&n&&cn()}},n.prepareNewValue_=function(e){if(Tt(this),Hn(this)){var t=Kn(this,{object:this,type:Zn,newValue:e});if(!t)return Ft.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?Ft.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),$n(this)&&Xn(this,{type:Zn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return qn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Zn,newValue:this.value_,oldValue:void 0}),Wn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Q(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(be),wt=function(){function e(e){this.dependenciesState_=Et.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Et.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new St(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=xt.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||x(31),this.derivation=e.get,this.name_=e.name||("production"!==process.env.NODE_ENV?"ComputedValue@"+I():"ComputedValue"),e.set&&(this.setter_=vt("production"!==process.env.NODE_ENV?this.name_+"-setter":"ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?_e.structural:_e.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==Et.UP_TO_DATE_)return;e.lowestObserverState_=Et.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===Et.UP_TO_DATE_&&(e.dependenciesState_=Et.POSSIBLY_STALE_,e.onBecomeStale_())})}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing&&x(32,this.name_,this.derivation),0!==Ft.inBatch||0!==this.observers_.size||this.keepAlive_){if(Wt(this),Ct(this)){var e=Ft.trackingContext;this.keepAlive_&&!e&&(Ft.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===Et.STALE_)return;e.lowestObserverState_=Et.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Et.POSSIBLY_STALE_?(t.dependenciesState_=Et.STALE_,"production"!==process.env.NODE_ENV&&t.isTracing_!==xt.NONE&&Yt(t,e)):t.dependenciesState_===Et.UP_TO_DATE_&&(e.lowestObserverState_=Et.UP_TO_DATE_)})}(this),Ft.trackingContext=e}}else Ct(this)&&(this.warnAboutUntrackedRead_(),Kt(),this.value_=this.computeValue_(!1),$t());var t=this.value_;if(At(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&x(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else x(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Et.NOT_TRACKING_,n=this.computeValue_(!0),r=t||At(e)||At(n)||!this.equals_(e,n);return r&&(this.value_=n,"production"!==process.env.NODE_ENV&&on()&&sn({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:e,newValue:n})),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=gt(!1);if(e)t=Vt(this,this.derivation,this.scope_);else if(!0===Ft.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new St(r)}return yt(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(Mt(this),this.value_=void 0,"production"!==process.env.NODE_ENV&&this.isTracing_!==xt.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return function(e,t){var n,r,o,i;void 0===t&&(t=M);"production"!==process.env.NODE_ENV&&(U(e)||x("Autorun expects a function as first argument"),wn(e)&&x("Autorun does not accept actions since actions are untrackable"));var s,a=null!=(n=null==(r=t)?void 0:r.name)?n:"production"!==process.env.NODE_ENV?e.name||"Autorun@"+I():"Autorun";if(t.scheduler||t.delay){var l=On(t),c=!1;s=new Zt(a,function(){c||(c=!0,l(function(){c=!1,s.isDisposed||s.track(u)}))},t.onError,t.requiresObservable)}else s=new Zt(a,function(){this.track(u)},t.onError,t.requiresObservable);function u(){e(s)}null!=(o=t)&&null!=(o=o.signal)&&o.aborted||s.schedule_();return s.getDisposer_(null==(i=t)?void 0:i.signal)}(function(){var i=n.get();if(!r||t){var s=jt();e({observableKind:"computed",debugObjectName:n.name_,type:Zn,object:n,newValue:i,oldValue:o}),Pt(s)}r=!1,o=i})},t.warnAboutUntrackedRead_=function(){"production"!==process.env.NODE_ENV&&(this.isTracing_!==xt.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),("boolean"==typeof this.requiresReaction_?this.requiresReaction_:Ft.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Q(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},ie(e,[{key:"isComputing",get:function(){return ne(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=re(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return ne(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=re(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return ne(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=re(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return ne(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=re(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return ne(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=re(this.flags_,e.diffValueMask_,1===t)}}])}();wt.isComputingMask_=1,wt.isRunningSetterMask_=2,wt.isBeingObservedMask_=4,wt.isPendingUnobservationMask_=8,wt.diffValueMask_=16;var Et,Ot,xt,Nt,kt=$("ComputedValue",wt);(Ot=Et||(Et={}))[Ot.NOT_TRACKING_=-1]="NOT_TRACKING_",Ot[Ot.UP_TO_DATE_=0]="UP_TO_DATE_",Ot[Ot.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",Ot[Ot.STALE_=2]="STALE_",(Nt=xt||(xt={}))[Nt.NONE=0]="NONE",Nt[Nt.LOG=1]="LOG",Nt[Nt.BREAK=2]="BREAK";var St=function(e){this.cause=void 0,this.cause=e};function At(e){return e instanceof St}function Ct(e){switch(e.dependenciesState_){case Et.UP_TO_DATE_:return!1;case Et.NOT_TRACKING_:case Et.STALE_:return!0;case Et.POSSIBLY_STALE_:for(var t=Rt(!0),n=jt(),r=e.observing_,o=r.length,i=0;i<o;i++){var s=r[i];if(kt(s)){if(Ft.disableErrorBoundaries)s.get();else try{s.get()}catch(a){return Pt(n),It(t),!0}if(e.dependenciesState_===Et.STALE_)return Pt(n),It(t),!0}}return Lt(e),Pt(n),It(t),!1}}function Tt(e){if("production"!==process.env.NODE_ENV){var t=e.observers_.size>0;Ft.allowStateChanges||!t&&"always"!==Ft.enforceActions||console.warn("[MobX] "+(Ft.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}}function Vt(e,t,n){var r=Rt(!0);Lt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++Ft.runId;var o,i=Ft.trackingDerivation;if(Ft.trackingDerivation=e,Ft.inBatch++,!0===Ft.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(s){o=new St(s)}return Ft.inBatch--,Ft.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Et.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,s=0;s<i;s++){var a=n[s];0===a.diffValue&&(a.diffValue=1,o!==s&&(n[o]=a),o++),a.dependenciesState_>r&&(r=a.dependenciesState_)}n.length=o,e.newObserving_=null,i=t.length;for(;i--;){var l=t[i];0===l.diffValue&&Ht(l,e),l.diffValue=0}for(;o--;){var c=n[o];1===c.diffValue&&(c.diffValue=0,Gt(c,e))}r!==Et.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),function(e){if("production"===process.env.NODE_ENV)return;if(0!==e.observing_.length)return;("boolean"==typeof e.requiresObservable_?e.requiresObservable_:Ft.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}(e),It(r),o}function Mt(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Ht(t[n],e);e.dependenciesState_=Et.NOT_TRACKING_}function Dt(e){var t=jt();try{return e()}finally{Pt(t)}}function jt(){var e=Ft.trackingDerivation;return Ft.trackingDerivation=null,e}function Pt(e){Ft.trackingDerivation=e}function Rt(e){var t=Ft.allowStateReads;return Ft.allowStateReads=e,t}function It(e){Ft.allowStateReads=e}function Lt(e){if(e.dependenciesState_!==Et.UP_TO_DATE_){e.dependenciesState_=Et.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Et.UP_TO_DATE_}}var Bt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Ut=!0,zt=!1,Ft=function(){var e=k();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ut=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Bt).version&&(Ut=!1),Ut?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Bt):(setTimeout(function(){zt||x(35)},1),new Bt)}();function Gt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Ht(e,t){e.observers_.delete(t),0===e.observers_.size&&qt(e)}function qt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Ft.pendingUnobservations.push(e))}function Kt(){Ft.inBatch++}function $t(){if(0===--Ft.inBatch){tn();for(var e=Ft.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof wt&&n.suspend_())}Ft.pendingUnobservations=[]}}function Wt(e){!function(e){"production"!==process.env.NODE_ENV&&!Ft.allowStateReads&&Ft.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}(e);var t=Ft.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&Ft.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&Ft.inBatch>0&&qt(e),!1)}function Xt(e){e.lowestObserverState_!==Et.STALE_&&(e.lowestObserverState_=Et.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Et.UP_TO_DATE_&&("production"!==process.env.NODE_ENV&&t.isTracing_!==xt.NONE&&Yt(t,e),t.onBecomeStale_()),t.dependenciesState_=Et.STALE_}))}function Yt(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===xt.BREAK){var n=[];Jt(Vn(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name_+"'\n\nYou are entering this break point because derivation '"+e.name_+"' is being traced and '"+t.name_+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof wt?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Jt(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+"\t".repeat(n-1)+e.name),e.dependencies&&e.dependencies.forEach(function(e){return Jt(e,t,n+1)}))}var Zt=function(){function e(e,t,n,r){void 0===e&&(e="production"!==process.env.NODE_ENV?"Reaction@"+I():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Et.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=xt.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,Ft.pendingReactions.push(this),tn())},t.runReaction_=function(){if(!this.isDisposed){Kt(),this.isScheduled=!1;var e=Ft.trackingContext;if(Ft.trackingContext=this,Ct(this)){this.isTrackPending=!0;try{this.onInvalidate_(),"production"!==process.env.NODE_ENV&&this.isTrackPending&&on()&&sn({name:this.name_,type:"scheduled-reaction"})}catch(t){this.reportExceptionInDerivation_(t)}}Ft.trackingContext=e,$t()}},t.track=function(e){if(!this.isDisposed){Kt();var t,n=on();"production"!==process.env.NODE_ENV&&n&&(t=Date.now(),an({name:this.name_,type:"reaction"})),this.isRunning=!0;var r=Ft.trackingContext;Ft.trackingContext=this;var o=Vt(this,e,void 0);Ft.trackingContext=r,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Mt(this),At(o)&&this.reportExceptionInDerivation_(o.cause),"production"!==process.env.NODE_ENV&&n&&cn({time:Date.now()-t}),$t()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(Ft.disableErrorBoundaries)throw e;var n="production"!==process.env.NODE_ENV?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";Ft.suppressReactionErrors?"production"!==process.env.NODE_ENV&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(n,e),"production"!==process.env.NODE_ENV&&on()&&sn({type:"error",name:this.name_,message:n,error:""+e}),Ft.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Kt(),Mt(this),$t()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[ve]=this,"dispose"in Symbol&&"symbol"==typeof Symbol.dispose&&(n[Symbol.dispose]=n),n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){if("production"===process.env.NODE_ENV)return;for(var e=!1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=function(e){switch(e.length){case 0:return Ft.trackingDerivation;case 1:return Br(e[0]);case 2:return Br(e[0],e[1])}}(n);if(!o)return x("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===xt.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled");o.isTracing_=e?xt.BREAK:xt.LOG}(this,e)},ie(e,[{key:"isDisposed",get:function(){return ne(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=re(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return ne(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=re(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return ne(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=re(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return ne(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=re(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return ne(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=re(this.flags_,e.diffValueMask_,1===t)}}])}();Zt.isDisposedMask_=1,Zt.isScheduledMask_=2,Zt.isTrackPendingMask_=4,Zt.isRunningMask_=8,Zt.diffValueMask_=16;var Qt=100,en=function(e){return e()};function tn(){Ft.inBatch>0||Ft.isRunningReactions||en(nn)}function nn(){Ft.isRunningReactions=!0;for(var e=Ft.pendingReactions,t=0;e.length>0;){++t===Qt&&(console.error("production"!==process.env.NODE_ENV?"Reaction doesn't converge to a stable state after "+Qt+" iterations. Probably there is a cycle in the reactive function: "+e[0]:"[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}Ft.isRunningReactions=!1}var rn=$("Reaction",Zt);function on(){return"production"!==process.env.NODE_ENV&&!!Ft.spyListeners.length}function sn(e){if("production"!==process.env.NODE_ENV&&Ft.spyListeners.length)for(var t=Ft.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function an(e){"production"!==process.env.NODE_ENV&&sn(ae({},e,{spyReportStart:!0}))}var ln={type:"report-end",spyReportEnd:!0};function cn(e){"production"!==process.env.NODE_ENV&&sn(e?ae({},e,{type:"report-end",spyReportEnd:!0}):ln)}var un="action",dn="autoAction",pn="<unnamed action>",fn=Ne(un),hn=Ne("action.bound",{bound:!0}),mn=Ne(dn,{autoAction:!0}),vn=Ne("autoAction.bound",{autoAction:!0,bound:!0});function bn(e){return function(t,n){return U(t)?vt(t.name||pn,t,e):U(n)?vt(t,n,e):he(n)?(e?mn:fn).decorate_20223_(t,n):z(n)?fe(t,n,e?mn:fn):z(t)?pe(Ne(e?dn:un,{name:t,autoAction:e})):void("production"!==process.env.NODE_ENV&&x("Invalid arguments for `action`"))}}var gn=bn(!1);Object.assign(gn,fn);var yn=bn(!0);function _n(e){return bt(e.name||pn,!1,e,this,void 0)}function wn(e){return U(e)&&!0===e.isMobxAction}Object.assign(yn,mn),gn.bound=pe(hn),yn.bound=pe(vn);var En=function(e){return e()};function On(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:En}function xn(e,t,n){var r,o,i;void 0===n&&(n=M),"production"!==process.env.NODE_ENV&&(U(e)&&U(t)||x("First and second argument to reaction should be functions"),G(n)||x("Third argument of reactions should be an object"));var s,a,l,c=null!=(r=n.name)?r:"production"!==process.env.NODE_ENV?"Reaction@"+I():"Reaction",u=gn(c,n.onError?(s=n.onError,a=t,function(){try{return a.apply(this,arguments)}catch(e){s.call(this,e)}}):t),d=!n.scheduler&&!n.delay,p=On(n),f=!0,h=!1,m=n.compareStructural?_e.structural:n.equals||_e.default,v=new Zt(c,function(){f||d?b():h||(h=!0,p(b))},n.onError,n.requiresObservable);function b(){if(h=!1,!v.isDisposed){var t=!1,r=l;v.track(function(){var n=function(e,t){var n=gt(e);try{return t()}finally{yt(n)}}(!1,function(){return e(v)});t=f||!m(l,n),l=n}),(f&&n.fireImmediately||!f&&t)&&u(l,r,v),f=!1}}return null!=(o=n)&&null!=(o=o.signal)&&o.aborted||v.schedule_(),v.getDisposer_(null==(i=n)?void 0:i.signal)}var Nn="onBO",kn="onBUO";function Sn(e,t,n){return An(kn,e,t,n)}function An(e,t,n,r){var o=Br(t),i=U(r)?r:n,s=e+"L";return o[s]?o[s].add(i):o[s]=new Set([i]),function(){var e=o[s];e&&(e.delete(i),0===e.size&&delete o[s])}}var Cn="always";function Tn(e){!0===e.isolateGlobalState&&function(){if((Ft.pendingReactions.length||Ft.inBatch||Ft.isRunningReactions)&&x(36),zt=!0,Ut){var e=k();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),Ft=new Bt}}();var t,n,r=e.useProxies,o=e.enforceActions;if(void 0!==r&&(Ft.useProxies=r===Cn||"never"!==r&&"undefined"!=typeof Proxy),"ifavailable"===r&&(Ft.verifyProxies=!0),void 0!==o){var i=o===Cn?Cn:"observed"===o;Ft.enforceActions=i,Ft.allowStateChanges=!0!==i&&i!==Cn}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(Ft[t]=!!e[t])}),Ft.allowStateReads=!Ft.observableRequiresReaction,"production"!==process.env.NODE_ENV&&!0===Ft.disableErrorBoundaries&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&(t=e.reactionScheduler,n=en,en=function(e){return t(function(){return n(e)})})}function Vn(e,t){return Mn(Br(e,t))}function Mn(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Mn)),n}var Dn=0;function jn(){this.message="FLOW_CANCELLED"}jn.prototype=Object.create(Error.prototype);var Pn=Te("flow"),Rn=Te("flow.bound",{bound:!0}),In=Object.assign(function(e,t){if(he(t))return Pn.decorate_20223_(e,t);if(z(t))return fe(e,t,Pn);"production"!==process.env.NODE_ENV&&1!==arguments.length&&x("Flow expects single argument with generator function");var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++Dn,i=gn(r+" - runid: "+o+" - init",n).apply(this,t),s=void 0,a=new Promise(function(t,n){var a=0;function l(e){var t;s=void 0;try{t=gn(r+" - runid: "+o+" - yield "+a++,i.next).call(i,e)}catch(l){return n(l)}u(t)}function c(e){var t;s=void 0;try{t=gn(r+" - runid: "+o+" - yield "+a++,i.throw).call(i,e)}catch(l){return n(l)}u(t)}function u(e){if(!U(null==e?void 0:e.then))return e.done?t(e.value):(s=Promise.resolve(e.value)).then(l,c);e.then(u,n)}e=n,l(void 0)});return a.cancel=gn(r+" - runid: "+o+" - cancel",function(){try{s&&Ln(s);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(B,B),Ln(n),e(new jn)}catch(r){e(r)}}),a};return o.isMobXFlow=!0,o},Pn);function Ln(e){U(e.cancel)&&e.cancel()}function Bn(e){return!0===(null==e?void 0:e.isMobXFlow)}function Un(e){return"production"!==process.env.NODE_ENV&&1!==arguments.length&&x("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),function(e){return!!e&&(Nr(e)||!!e[ve]||ge(e)||rn(e)||kt(e))}(e)}function zn(e,t){void 0===t&&(t=void 0),Kt();try{return e.apply(t)}finally{$t()}}function Fn(e){return e[ve]}In.bound=pe(Rn);var Gn={has:function(e,t){return"production"!==process.env.NODE_ENV&&Ft.trackingDerivation&&R("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),Fn(e).has_(t)},get:function(e,t){return Fn(e).get_(t)},set:function(e,t,n){var r;return!!z(t)&&("production"===process.env.NODE_ENV||Fn(e).values_.has(t)||R("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),null==(r=Fn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return"production"!==process.env.NODE_ENV&&R("delete properties from an observable object. Use 'remove' from 'mobx' instead."),!!z(t)&&(null==(n=Fn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return"production"!==process.env.NODE_ENV&&R("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),null==(r=Fn(e).defineProperty_(t,n))||r},ownKeys:function(e){return"production"!==process.env.NODE_ENV&&Ft.trackingDerivation&&R("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),Fn(e).ownKeys_()},preventExtensions:function(e){x(13)}};function Hn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function qn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),L(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Kn(e,t){var n=jt();try{for(var r=[].concat(e.interceptors_||[]),o=0,i=r.length;o<i&&((t=r[o](t))&&!t.type&&x(14),t);o++);return t}finally{Pt(n)}}function $n(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function Wn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),L(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Xn(e,t){var n=jt(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);Pt(n)}}function Yn(e,t,n){return Fr(function(){var r=Er(e,n)[ve];"production"!==process.env.NODE_ENV&&t&&e[de]&&x("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),null!=t||(t=function(e){return ee(e,de)||q(e,de,ae({},e[de])),e[de]}(e)),J(t).forEach(function(e){return r.make_(e,t[e])})}),e}var Jn="splice",Zn="update",Qn={get:function(e,t){var n=e[ve];return t===ve?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?ee(nr,t)?nr[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[ve];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){x(15)}},er=function(){function e(e,t,n,r){void 0===e&&(e="production"!==process.env.NODE_ENV?"ObservableArray@"+I():"ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new be(e),this.enhancer_=function(n,r){return t(n,r,"production"!==process.env.NODE_ENV?e+"[..]":"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return qn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Wn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&x("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&x(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Ir(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;Tt(this.atom_);var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=V),Hn(this)){var i=Kn(this,{object:this.proxy_,type:Jn,index:e,removedCount:t,added:n});if(!i)return V;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_||"production"!==process.env.NODE_ENV){var s=n.length-t;this.updateArrayLength_(o,s)}var a=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,a),this.dehanceValues_(a)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var s=0;s<n.length;s++)this.values_[e+s]=n[s];for(var a=0;a<i.length;a++)this.values_[e+n.length+a]=i[a];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&on(),o=$n(this),i=o||r?{observableKind:"array",object:this.proxy_,type:Zn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;"production"!==process.env.NODE_ENV&&r&&an(i),this.atom_.reportChanged(),o&&Xn(this,i),"production"!==process.env.NODE_ENV&&r&&cn()},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&on(),o=$n(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Jn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;"production"!==process.env.NODE_ENV&&r&&an(i),this.atom_.reportChanged(),o&&Xn(this,i),"production"!==process.env.NODE_ENV&&r&&cn()},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("production"!==process.env.NODE_ENV?"[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX":"[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&x(17,e,n.length),e<n.length){Tt(this.atom_);var r=n[e];if(Hn(this)){var o=Kn(this,{type:Zn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{for(var i=new Array(e+1-n.length),s=0;s<i.length-1;s++)i[s]=void 0;i[i.length-1]=t,this.spliceWithArray_(n.length,0,i)}},e}();function tr(e,t,n,r){return void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableArray@"+I():"ObservableArray"),void 0===r&&(r=!1),P(),Fr(function(){var o=new er(n,t,r,!1);K(o.values_,ve,o);var i=new Proxy(o.values_,Qn);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i})}var nr={clear:function(){return this.splice(0)},replace:function(e){var t=this[ve];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[ve];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[ve].spliceWithArray_(e,t,n)},push:function(){for(var e=this[ve],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[ve].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[ve],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return Ft.trackingDerivation&&x(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){Ft.trackingDerivation&&x(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[ve],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function rr(e,t){"function"==typeof Array.prototype[e]&&(nr[e]=t(e))}function or(e){return function(){var t=this[ve];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function ir(e){return function(t,n){var r=this,o=this[ve];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e](function(e,o){return t.call(n,e,o,r)})}}function sr(e){return function(){var t=this,n=this[ve];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}rr("at",or),rr("concat",or),rr("flat",or),rr("includes",or),rr("indexOf",or),rr("join",or),rr("lastIndexOf",or),rr("slice",or),rr("toString",or),rr("toLocaleString",or),rr("toSorted",or),rr("toSpliced",or),rr("with",or),rr("every",ir),rr("filter",ir),rr("find",ir),rr("findIndex",ir),rr("findLast",ir),rr("findLastIndex",ir),rr("flatMap",ir),rr("forEach",ir),rr("map",ir),rr("some",ir),rr("toReversed",ir),rr("reduce",sr),rr("reduceRight",sr);var ar=$("ObservableArrayAdministration",er);function lr(e){return F(e)&&ar(e[ve])}var cr={},ur="add",dr="delete",pr=function(){function e(e,t,n){var r=this;void 0===t&&(t=we),void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableMap@"+I():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[ve]=cr,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,U(Map)||x(18),Fr(function(){r.keysAtom_=ye("production"!==process.env.NODE_ENV?r.name_+".keys()":"ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!Ft.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new _t(this.has_(e),Ee,"production"!==process.env.NODE_ENV?this.name_+"."+Z(e)+"?":"ObservableMap.key?",!1);this.hasMap_.set(e,r),Sn(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Hn(this)){var r=Kn(this,{type:n?Zn:ur,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((Tt(this.keysAtom_),Hn(this))&&!Kn(this,{type:dr,object:this,name:e}))return!1;if(this.has_(e)){var n=on(),r=$n(this),o=r||n?{observableKind:"map",debugObjectName:this.name_,type:dr,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return"production"!==process.env.NODE_ENV&&n&&an(o),zn(function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),r&&Xn(this,o),"production"!==process.env.NODE_ENV&&n&&cn(),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==Ft.UNCHANGED){var r=on(),o=$n(this),i=o||r?{observableKind:"map",debugObjectName:this.name_,type:Zn,object:this,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&an(i),n.setNewValue_(t),o&&Xn(this,i),"production"!==process.env.NODE_ENV&&r&&cn()}},t.addValue_=function(e,t){var n=this;Tt(this.keysAtom_),zn(function(){var r,o=new _t(t,n.enhancer_,"production"!==process.env.NODE_ENV?n.name_+"."+Z(e):"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=on(),o=$n(this),i=o||r?{observableKind:"map",debugObjectName:this.name_,type:ur,object:this,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&an(i),o&&Xn(this,i),"production"!==process.env.NODE_ENV&&r&&cn()},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return hr({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return hr({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=se(this);!(n=r()).done;){var o=n.value,i=o[0],s=o[1];e.call(t,s,i,this)}},t.merge=function(e){var t=this;return fr(e)&&(e=new Map(e)),zn(function(){var n,r,o;G(e)?function(e){var t=Object.keys(e);if(!Y)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return T.propertyIsEnumerable.call(e,t)})):t}(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):W(e)?(n=e,r=Object.getPrototypeOf(n),o=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(o)&&x(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!=e&&x(20,e)}),this},t.clear=function(){var e=this;zn(function(){Dt(function(){for(var t,n=se(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return zn(function(){for(var n,r=function(e){if(W(e)||fr(e))return e;if(Array.isArray(e))return new Map(e);if(G(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return x(21,e)}(e),o=new Map,i=!1,s=se(t.data_.keys());!(n=s()).done;){var a=n.value;if(!r.has(a))if(t.delete(a))i=!0;else{var l=t.data_.get(a);o.set(a,l)}}for(var c,u=se(r.entries());!(c=u()).done;){var d=c.value,p=d[0],f=d[1],h=t.data_.has(p);if(t.set(p,f),t.data_.has(p)){var m=t.data_.get(p);o.set(p,m),h||(i=!0)}}if(!i)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var v=t.data_.keys(),b=o.keys(),g=v.next(),y=b.next();!g.done;){if(g.value!==y.value){t.keysAtom_.reportChanged();break}g=v.next(),y=b.next()}t.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&x("`observe` doesn't support fireImmediately=true in combination with maps."),Wn(this,e)},t.intercept_=function(e){return qn(this,e)},ie(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),fr=$("ObservableMap",pr);function hr(e){return e[Symbol.toStringTag]="MapIterator",Xr(e)}var mr={},vr=function(){function e(e,t,n){var r=this;void 0===t&&(t=we),void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableSet@"+I():"ObservableSet"),this.name_=void 0,this[ve]=mr,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,U(Set)||x(22),this.enhancer_=function(e,r){return t(e,r,n)},Fr(function(){r.atom_=ye(r.name_),e&&r.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;zn(function(){Dt(function(){for(var t,n=se(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=se(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(Tt(this.atom_),Hn(this)){var n=Kn(this,{type:ur,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){zn(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r="production"!==process.env.NODE_ENV&&on(),o=$n(this),i=o||r?{observableKind:"set",debugObjectName:this.name_,type:ur,object:this,newValue:e}:null;r&&"production"!==process.env.NODE_ENV&&an(i),o&&Xn(this,i),r&&"production"!==process.env.NODE_ENV&&cn()}return this},t.delete=function(e){var t=this;if(Hn(this)&&!Kn(this,{type:dr,object:this,oldValue:e}))return!1;if(this.has(e)){var n="production"!==process.env.NODE_ENV&&on(),r=$n(this),o=r||n?{observableKind:"set",debugObjectName:this.name_,type:dr,object:this,oldValue:e}:null;return n&&"production"!==process.env.NODE_ENV&&an(o),zn(function(){t.atom_.reportChanged(),t.data_.delete(e)}),r&&Xn(this,o),n&&"production"!==process.env.NODE_ENV&&cn(),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=this.values();return gr({next:function(){var t=e.next(),n=t.value,r=t.done;return r?{value:void 0,done:r}:{value:[n,n],done:r}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return gr({next:function(){var n=t.next(),r=n.value,o=n.done;return o?{value:void 0,done:o}:{value:e.dehanceValue_(r),done:o}}})},t.intersection=function(e){return X(e)&&!br(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return X(e)&&!br(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return X(e)&&!br(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return X(e)&&!br(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return br(e)&&(e=new Set(e)),zn(function(){Array.isArray(e)||X(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&x("Cannot initialize set from "+e)}),this},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&x("`observe` doesn't support fireImmediately=true in combination with sets."),Wn(this,e)},t.intercept_=function(e){return qn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},ie(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),br=$("ObservableSet",vr);function gr(e){return e[Symbol.toStringTag]="SetIterator",Xr(e)}var yr=Object.create(null),_r="remove",wr=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=He),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new be("production"!==process.env.NODE_ENV?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=G(this.target_),"production"===process.env.NODE_ENV||Jr(this.defaultAnnotation_)||x("defaultAnnotation must be valid annotation"),"production"!==process.env.NODE_ENV&&(this.appliedAnnotations_={})}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof wt)return n.set(t),!0;if(Hn(this)){var r=Kn(this,{type:Zn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==Ft.UNCHANGED){var o=$n(this),i="production"!==process.env.NODE_ENV&&on(),s=o||i?{type:Zn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&i&&an(s),n.setNewValue_(t),o&&Xn(this,s),"production"!==process.env.NODE_ENV&&i&&cn()}return!0},t.get_=function(e){return Ft.trackingDerivation&&!ee(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),ee(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!Ft.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new _t(e in this.target_,Ee,"production"!==process.env.NODE_ENV?this.name_+"."+Z(e)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(Sr(this,t,e),!(e in this.target_)){var n;if(null!=(n=this.target_[de])&&n[e])return;x(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==T;){var o=A(r,e);if(o){var i=t.make_(this,e,o,r);if(0===i)return;if(1===i)break}r=Object.getPrototypeOf(r)}kr(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);Sr(this,n,e);var o=n.extend_(this,e,t,r);return o&&kr(this,n,e),o},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),Tt(this.keysAtom_);try{Kt();var r=this.delete_(e);if(!r)return r;if(Hn(this)){var o=Kn(this,{object:this.proxy_||this.target_,name:e,type:ur,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=ae({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else C(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{$t()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),Tt(this.keysAtom_);try{Kt();var o=this.delete_(e);if(!o)return o;if(Hn(this)){var i=Kn(this,{object:this.proxy_||this.target_,name:e,type:ur,newValue:t});if(!i)return null;t=i.newValue}var s=xr(e),a={configurable:!Ft.safeDescriptors||this.isPlainObject_,enumerable:!0,get:s.get,set:s.set};if(r){if(!Reflect.defineProperty(this.target_,e,a))return!1}else C(this.target_,e,a);var l=new _t(t,n,"production"!==process.env.NODE_ENV?this.name_+"."+e.toString():"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{$t()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),Tt(this.keysAtom_);try{Kt();var r=this.delete_(e);if(!r)return r;if(Hn(this))if(!Kn(this,{object:this.proxy_||this.target_,name:e,type:ur,newValue:void 0}))return null;t.name||(t.name="production"!==process.env.NODE_ENV?this.name_+"."+e.toString():"ObservableObject.key"),t.context=this.proxy_||this.target_;var o=xr(e),i={configurable:!Ft.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else C(this.target_,e,i);this.values_.set(e,new wt(t)),this.notifyPropertyAddition_(e,void 0)}finally{$t()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),Tt(this.keysAtom_),!ee(this.target_,e))return!0;if(Hn(this)&&!Kn(this,{object:this.proxy_||this.target_,name:e,type:_r}))return null;try{var n;Kt();var r,o=$n(this),i="production"!==process.env.NODE_ENV&&on(),s=this.values_.get(e),a=void 0;if(!s&&(o||i))a=null==(r=A(this.target_,e))?void 0:r.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if("production"!==process.env.NODE_ENV&&delete this.appliedAnnotations_[e],s&&(this.values_.delete(e),s instanceof _t&&(a=s.value_),Xt(s)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),o||i){var l={type:_r,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};"production"!==process.env.NODE_ENV&&i&&an(l),o&&Xn(this,l),"production"!==process.env.NODE_ENV&&i&&cn()}}finally{$t()}return!0},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&x("`observe` doesn't support the fire immediately property for observable objects."),Wn(this,e)},t.intercept_=function(e){return qn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=$n(this),o="production"!==process.env.NODE_ENV&&on();if(r||o){var i=r||o?{type:ur,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&o&&an(i),r&&Xn(this,i),"production"!==process.env.NODE_ENV&&o&&cn()}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),J(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Er(e,t){var n;if("production"!==process.env.NODE_ENV&&t&&Nr(e)&&x("Options can't be provided for already observable objects."),ee(e,ve))return"production"===process.env.NODE_ENV||Ur(e)instanceof wr||x("Cannot convert '"+zr(e)+"' into observable object:\nThe target is already observable of different type.\nExtending builtins is not supported."),e;"production"===process.env.NODE_ENV||Object.isExtensible(e)||x("Cannot make the designated object observable; it is not extensible");var r=null!=(n=null==t?void 0:t.name)?n:"production"!==process.env.NODE_ENV?(G(e)?"ObservableObject":e.constructor.name)+"@"+I():"ObservableObject",o=new wr(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:qe(e):void 0}(t));return q(e,ve,o),e}var Or=$("ObservableObjectAdministration",wr);function xr(e){return yr[e]||(yr[e]={get:function(){return this[ve].getObservablePropValue_(e)},set:function(t){return this[ve].setObservablePropValue_(e,t)}})}function Nr(e){return!!F(e)&&Or(e[ve])}function kr(e,t,n){var r;"production"!==process.env.NODE_ENV&&(e.appliedAnnotations_[n]=t),null==(r=e.target_[de])||delete r[n]}function Sr(e,t,n){if("production"===process.env.NODE_ENV||Jr(t)||x("Cannot annotate '"+e.name_+"."+n.toString()+"': Invalid annotation."),"production"!==process.env.NODE_ENV&&!xe(t)&&ee(e.appliedAnnotations_,n)){var r=e.name_+"."+n.toString(),o=e.appliedAnnotations_[n].annotationType_;x("Cannot apply '"+t.annotationType_+"' to '"+r+"':\nThe field is already annotated with '"+o+"'.\nRe-annotating fields is not allowed.\nUse 'override' annotation for methods overridden by subclass.")}}var Ar,Cr,Tr=Pr(0),Vr=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Mr=0,Dr=function(){};Ar=Dr,Cr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Ar.prototype,Cr):void 0!==Ar.prototype.__proto__?Ar.prototype.__proto__=Cr:Ar.prototype=Cr;var jr=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableArray@"+I():"ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,Fr(function(){var e=new er(r,n,o,!0);e.proxy_=i,K(i,ve,e),t&&t.length&&i.spliceWithArray(0,0,t),Vr&&Object.defineProperty(i,"0",Tr)}),i}le(t,e);var n=t.prototype;return n.concat=function(){this[ve].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map(function(e){return lr(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return Xr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},ie(t,[{key:"length",get:function(){return this[ve].getArrayLength_()},set:function(e){this[ve].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Dr);function Pr(e){return{enumerable:!1,configurable:!0,get:function(){return this[ve].get_(e)},set:function(t){this[ve].set_(e,t)}}}function Rr(e){C(jr.prototype,""+e,Pr(e))}function Ir(e){if(e>Mr){for(var t=Mr;t<e+100;t++)Rr(t);Mr=e}}function Lr(e,t,n){return new jr(e,t,n)}function Br(e,t){if("object"==typeof e&&null!==e){if(lr(e))return void 0!==t&&x(23),e[ve].atom_;if(br(e))return e.atom_;if(fr(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||x(25,t,zr(e)),n}if(Nr(e)){if(!t)return x(26);var r=e[ve].values_.get(t);return r||x(27,t,zr(e)),r}if(ge(e)||kt(e)||rn(e))return e}else if(U(e)&&rn(e[ve]))return e[ve];x(28)}function Ur(e,t){return e||x(29),ge(e)||kt(e)||rn(e)||fr(e)||br(e)?e:e[ve]?e[ve]:void x(24,e)}function zr(e,t){var n;if(void 0!==t)n=Br(e,t);else{if(wn(e))return e.name;n=Nr(e)||fr(e)||br(e)?Ur(e):Br(e)}return n.name_}function Fr(e){var t=jt(),n=gt(!0);Kt();try{return e()}finally{$t(),yt(n),Pt(t)}}Object.entries(nr).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&q(jr.prototype,t,n)}),Ir(1e3);var Gr,Hr=T.toString;function qr(e,t,n){return void 0===n&&(n=-1),Kr(e,t,n)}function Kr(e,t,n,r,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var s=Hr.call(e);if(s!==Hr.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=$r(e),t=$r(t);var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(U(l)&&l instanceof l&&U(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return o[u]===t;if(r.push(e),o.push(t),a){if((u=e.length)!==t.length)return!1;for(;u--;)if(!Kr(e[u],t[u],n-1,r,o))return!1}else{var d=Object.keys(e),p=d.length;if(Object.keys(t).length!==p)return!1;for(var f=0;f<p;f++){var h=d[f];if(!ee(t,h)||!Kr(e[h],t[h],n-1,r,o))return!1}}return r.pop(),o.pop(),!0}function $r(e){return lr(e)?e.slice():W(e)||fr(e)||X(e)||br(e)?Array.from(e.entries()):e}var Wr=(null==(Gr=k().Iterator)?void 0:Gr.prototype)||{};function Xr(e){return e[Symbol.iterator]=Yr,Object.assign(Object.create(Wr),e)}function Yr(){return this}function Jr(e){return e instanceof Object&&"string"==typeof e.annotationType_&&U(e.make_)&&U(e.extend_)}if(["Symbol","Map","Set"].forEach(function(e){void 0===k()[e]&&x("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return"production"===process.env.NODE_ENV?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(Ft.spyListeners.push(e),L(function(){Ft.spyListeners=Ft.spyListeners.filter(function(t){return t!==e})}))},extras:{getDebugName:zr},$mobx:ve}),!t.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Yn)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Zr(e){e()}function Qr(e){return Vn(e)}var eo,to=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach(function(r,o){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(o))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),no=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:to)(function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null}),ro={exports:{}},oo={};var io,so,ao={};var lo,co,uo=(so||(so=1,"production"===process.env.NODE_ENV?ro.exports=function(){if(eo)return oo;eo=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(o){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=r({inst:{value:n,getSnapshot:t}}),c=l[0].inst,u=l[1];return i(function(){c.value=n,c.getSnapshot=t,a(c)&&u({inst:c})},[e,n,t]),o(function(){return a(c)&&u({inst:c}),e(function(){a(c)&&u({inst:c})})},[e]),s(n),n};return oo.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,oo}():ro.exports=(io||(io=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(o){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=t,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,s=n.useLayoutEffect,a=n.useDebugValue,l=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(t,u){l||void 0===n.startTransition||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=u();if(!c){var p=u();r(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var f=(p=o({inst:{value:d,getSnapshot:u}}))[0].inst,h=p[1];return s(function(){f.value=d,f.getSnapshot=u,e(f)&&h({inst:f})},[t,d,u]),i(function(){return e(f)&&h({inst:f}),t(function(){e(f)&&h({inst:f})})},[t]),a(d),d};ao.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ao)),ro.exports);function po(e){e.reaction=new Zt("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)})}var fo=!0,ho="function"==typeof Symbol&&Symbol.for,mo=null!==(co=null===(lo=Object.getOwnPropertyDescriptor(function(){},"name"))||void 0===lo?void 0:lo.configurable)&&void 0!==co&&co,vo=ho?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef(function(e){return null}).$$typeof,bo=ho?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo(function(e){return null}).$$typeof;function go(e,n){if(process.env.NODE_ENV,bo&&e.$$typeof===bo)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=!1,o=e,i=e.displayName||e.name;if(vo&&e.$$typeof===vo&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,a,l=function(e,n){return function(e,n){void 0===n&&(n="observed");var r=t.useRef(null);if(!r.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:n,subscribe:function(e){return no.unregister(o),o.onStoreChange=e,o.reaction||(po(o),o.stateVersion=Symbol()),function(){var e;o.onStoreChange=null,null===(e=o.reaction)||void 0===e||e.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};r.current=o}var i,s,a=r.current;if(a.reaction||(po(a),no.register(r,a,a)),t.useDebugValue(a.reaction,Qr),uo.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track(function(){try{i=e()}catch(t){s=t}}),s)throw s;return i}(function(){return o(e,n)},i)};return l.displayName=e.displayName,mo&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes,"production"!==process.env.NODE_ENV&&fo&&(fo=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),r&&(l=t.forwardRef(l)),l=t.memo(l),s=e,a=l,Object.keys(s).forEach(function(e){_o[e]||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(s,e))}),"production"!==process.env.NODE_ENV&&Object.defineProperty(l,"contextTypes",{set:function(){var e,t;throw new Error("[mobx-react-lite] `".concat(this.displayName||(null===(e=this.type)||void 0===e?void 0:e.displayName)||(null===(t=this.type)||void 0===t?void 0:t.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),l}var yo,_o={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};process.env.NODE_ENV,(yo=r.unstable_batchedUpdates)||(yo=Zr,"production"!==process.env.NODE_ENV&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),Tn({reactionScheduler:yo}),no.finalizeAllImmediately;const wo=(e,t=0)=>{const n=t=>(o.value=e?.(t)??t,o.value),r=()=>n(++o.counter),o=r;return o.increment=r,o.decrement=()=>n(--o.counter),o.reset=()=>{o.counter=t,o.value=e?.(t)??t},o.reset(),o},Eo="null",Oo="undefined",xo="nan",No="[object Object]",ko="[object Array]",So="[object String]",Ao="[object Number]",Co="[object Boolean]",To="[object Function]",Vo="[object AsyncFunction]",Mo="[object RegExp]",Do="[object Symbol]",jo="infinite",Po="element";const Ro=(...e)=>t=>e.includes(function(e){if(void 0===e)return Oo;if(null===e)return Eo;if(e&&(1===e.nodeType||9===e.nodeType))return Po;const t=Object.prototype.toString.call(e);if(t===Ao){if(Number.isNaN(e))return xo;if(!Number.isFinite(e))return jo}return t}(t)),Io=Ro(Eo),Lo=Ro(Oo),Bo=Ro(No),Uo=Ro(ko),zo=Ro(So),Fo=Ro(Ao),Go=Ro(Co),Ho=Ro(To,Vo),qo=Ro(Mo),Ko=Ro(Po),$o=Ro(xo),Wo=Ro(jo),Xo=Ro(Do),Yo=Object.freeze(Object.defineProperty({__proto__:null,isArray:Uo,isBoolean:Go,isDefined:e=>null!=e,isElement:Ko,isFunction:Ho,isInfinite:Wo,isNaN:$o,isNull:Io,isNumber:Fo,isObject:Bo,isRegExp:qo,isString:zo,isSymbol:Xo,isUndefined:Lo},Symbol.toStringTag,{value:"Module"})),Jo=e=>{const t=e?.comparer??_e.default,n=e=>{const r=e??null;t(n.current,r)||_n(()=>{n.current=r,n.listeners.forEach(e=>{e(n.current)})})};return n.listeners=new Set(e?.onChange?[e.onChange]:[]),(e?.onSet||e?.onUnset)&&n.listeners.add(t=>{t?e.onSet?.(t):e.onUnset?.()}),n.current=e?.initial??null,n.meta=e?.meta??{},Yn(n,{current:at.ref,meta:at}),n},Zo=(e,t)=>{if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;if(e.constructor!==t.constructor)return!1;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;if(n){const n=e,r=t;if(n.length!==r.length)return!1;for(const[e,t]of n.entries())if(t!==r[e])return!1;return!0}if(e instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp)return e.toString()===t.toString();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;const i=t;for(const s of r)if(!Object.hasOwn(i,s)||e[s]!==i[s])return!1;return!0},{entries:Qo,setPrototypeOf:ei,isFrozen:ti,getPrototypeOf:ni,getOwnPropertyDescriptor:ri}=Object;let{freeze:oi,seal:ii,create:si}=Object,{apply:ai,construct:li}="undefined"!=typeof Reflect&&Reflect;oi||(oi=function(e){return e}),ii||(ii=function(e){return e}),ai||(ai=function(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 e.apply(t,r)}),li||(li=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];return new e(...n)});const ci=xi(Array.prototype.forEach),ui=xi(Array.prototype.lastIndexOf),di=xi(Array.prototype.pop),pi=xi(Array.prototype.push),fi=xi(Array.prototype.splice),hi=xi(String.prototype.toLowerCase),mi=xi(String.prototype.toString),vi=xi(String.prototype.match),bi=xi(String.prototype.replace),gi=xi(String.prototype.indexOf),yi=xi(String.prototype.trim),_i=xi(Object.prototype.hasOwnProperty),wi=xi(RegExp.prototype.test),Ei=(Oi=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return li(Oi,t)});var Oi;function xi(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return ai(e,t,r)}}function Ni(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hi;ei&&ei(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ti(t)||(t[r]=e),o=e)}e[o]=!0}return e}function ki(e){for(let t=0;t<e.length;t++){_i(e,t)||(e[t]=null)}return e}function Si(e){const t=si(null);for(const[n,r]of Qo(e)){_i(e,n)&&(Array.isArray(r)?t[n]=ki(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Si(r):t[n]=r)}return t}function Ai(e,t){for(;null!==e;){const n=ri(e,t);if(n){if(n.get)return xi(n.get);if("function"==typeof n.value)return xi(n.value)}e=ni(e)}return function(){return null}}const Ci=oi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ti=oi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vi=oi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Mi=oi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Di=oi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ji=oi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pi=oi(["#text"]),Ri=oi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ii=oi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Li=oi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bi=oi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ui=ii(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zi=ii(/<%[\w\W]*|[\w\W]*%>/gm),Fi=ii(/\$\{[\w\W]*/gm),Gi=ii(/^data-[\-\w.\u00B7-\uFFFF]+$/),Hi=ii(/^aria-[\-\w]+$/),qi=ii(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ki=ii(/^(?:\w+script|data):/i),$i=ii(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wi=ii(/^html$/i),Xi=ii(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yi=Object.freeze({__proto__:null,ARIA_ATTR:Hi,ATTR_WHITESPACE:$i,CUSTOM_ELEMENT:Xi,DATA_ATTR:Gi,DOCTYPE_NAME:Wi,ERB_EXPR:zi,IS_ALLOWED_URI:qi,IS_SCRIPT_OR_DATA:Ki,MUSTACHE_EXPR:Ui,TMPLIT_EXPR:Fi});const Ji=1,Zi=3,Qi=7,es=8,ts=9;!function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.3.0",n.removed=[],!t||!t.document||t.document.nodeType!==ts||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,m=c.prototype,v=Ai(m,"cloneNode"),b=Ai(m,"remove"),g=Ai(m,"nextSibling"),y=Ai(m,"childNodes"),_=Ai(m,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,E="";const{implementation:O,createNodeIterator:x,createDocumentFragment:N,getElementsByTagName:k}=r,{importNode:S}=o;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Qo&&"function"==typeof _&&O&&void 0!==O.createHTMLDocument;const{MUSTACHE_EXPR:C,ERB_EXPR:T,TMPLIT_EXPR:V,DATA_ATTR:M,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:R}=Yi;let{IS_ALLOWED_URI:I}=Yi,L=null;const B=Ni({},[...Ci,...Ti,...Vi,...Di,...Pi]);let U=null;const z=Ni({},[...Ri,...Ii,...Li,...Bi]);let F=Object.seal(si(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,H=null;const q=Object.seal(si(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let K=!0,$=!0,W=!1,X=!0,Y=!1,J=!0,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!1,oe=!0,ie=!1,se=!0,ae=!1,le={},ce=null;const ue=Ni({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const pe=Ni({},["audio","video","img","source","image","track"]);let fe=null;const he=Ni({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ve="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ge=be,ye=!1,_e=null;const we=Ni({},[me,ve,be],mi);let Ee=Ni({},["mi","mo","mn","ms","mtext"]),Oe=Ni({},["annotation-xml"]);const xe=Ni({},["title","style","font","a","script"]);let Ne=null;const ke=["application/xhtml+xml","text/html"];let Se=null,Ae=null;const Ce=r.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=Si(e),Ne=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Se="application/xhtml+xml"===Ne?mi:hi,L=_i(e,"ALLOWED_TAGS")?Ni({},e.ALLOWED_TAGS,Se):B,U=_i(e,"ALLOWED_ATTR")?Ni({},e.ALLOWED_ATTR,Se):z,_e=_i(e,"ALLOWED_NAMESPACES")?Ni({},e.ALLOWED_NAMESPACES,mi):we,fe=_i(e,"ADD_URI_SAFE_ATTR")?Ni(Si(he),e.ADD_URI_SAFE_ATTR,Se):he,de=_i(e,"ADD_DATA_URI_TAGS")?Ni(Si(pe),e.ADD_DATA_URI_TAGS,Se):pe,ce=_i(e,"FORBID_CONTENTS")?Ni({},e.FORBID_CONTENTS,Se):ue,G=_i(e,"FORBID_TAGS")?Ni({},e.FORBID_TAGS,Se):Si({}),H=_i(e,"FORBID_ATTR")?Ni({},e.FORBID_ATTR,Se):Si({}),le=!!_i(e,"USE_PROFILES")&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,I=e.ALLOWED_URI_REGEXP||qi,ge=e.NAMESPACE||be,Ee=e.MATHML_TEXT_INTEGRATION_POINTS||Ee,Oe=e.HTML_INTEGRATION_POINTS||Oe,F=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(F.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&($=!1),ne&&(te=!0),le&&(L=Ni({},Pi),U=[],!0===le.html&&(Ni(L,Ci),Ni(U,Ri)),!0===le.svg&&(Ni(L,Ti),Ni(U,Ii),Ni(U,Bi)),!0===le.svgFilters&&(Ni(L,Vi),Ni(U,Ii),Ni(U,Bi)),!0===le.mathMl&&(Ni(L,Di),Ni(U,Li),Ni(U,Bi))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?q.tagCheck=e.ADD_TAGS:(L===B&&(L=Si(L)),Ni(L,e.ADD_TAGS,Se))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?q.attributeCheck=e.ADD_ATTR:(U===z&&(U=Si(U)),Ni(U,e.ADD_ATTR,Se))),e.ADD_URI_SAFE_ATTR&&Ni(fe,e.ADD_URI_SAFE_ATTR,Se),e.FORBID_CONTENTS&&(ce===ue&&(ce=Si(ce)),Ni(ce,e.FORBID_CONTENTS,Se)),se&&(L["#text"]=!0),Z&&Ni(L,["html","head","body"]),L.table&&(Ni(L,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Ei('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Ei('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,E=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,i)),null!==w&&"string"==typeof E&&(E=w.createHTML(""));oi&&oi(e),Ae=e}},Me=Ni({},[...Ti,...Vi,...Mi]),De=Ni({},[...Di,...ji]),je=function(e){pi(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){b(e)}},Pe=function(e,t){try{pi(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){pi(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{je(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Re=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=vi(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ne&&ge===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=w?w.createHTML(e):e;if(ge===be)try{t=(new f).parseFromString(o,Ne)}catch(s){}if(!t||!t.documentElement){t=O.createDocument(ge,"template",null);try{t.documentElement.innerHTML=ye?E:o}catch(s){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ge===be?k.call(t,Z?"html":"body")[0]:Z?t.documentElement:i},Ie=function(e){return x.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l};function Ue(e,t,r){ci(e,e=>{e.call(n,t,r,Ae)})}const ze=function(e){let t=null;if(Ue(A.beforeSanitizeElements,e,null),Le(e))return je(e),!0;const r=Se(e.nodeName);if(Ue(A.uponSanitizeElement,e,{tagName:r,allowedTags:L}),J&&e.hasChildNodes()&&!Be(e.firstElementChild)&&wi(/<[/\w!]/g,e.innerHTML)&&wi(/<[/\w!]/g,e.textContent))return je(e),!0;if(e.nodeType===Qi)return je(e),!0;if(J&&e.nodeType===es&&wi(/<[/\w]/g,e.data))return je(e),!0;if(!(q.tagCheck instanceof Function&&q.tagCheck(r))&&(!L[r]||G[r])){if(!G[r]&&Ge(r)){if(F.tagNameCheck instanceof RegExp&&wi(F.tagNameCheck,r))return!1;if(F.tagNameCheck instanceof Function&&F.tagNameCheck(r))return!1}if(se&&!ce[r]){const t=_(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=v(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,g(e))}}}return je(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:ge,tagName:"template"});const n=hi(e.tagName),r=hi(t.tagName);return!!_e[e.namespaceURI]&&(e.namespaceURI===ve?t.namespaceURI===be?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Ee[r]):Boolean(Me[n]):e.namespaceURI===me?t.namespaceURI===be?"math"===n:t.namespaceURI===ve?"math"===n&&Oe[r]:Boolean(De[n]):e.namespaceURI===be?!(t.namespaceURI===ve&&!Oe[r])&&!(t.namespaceURI===me&&!Ee[r])&&!De[n]&&(xe[n]||!Me[n]):!("application/xhtml+xml"!==Ne||!_e[e.namespaceURI]))}(e)?(je(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!wi(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===Zi&&(t=e.textContent,ci([C,T,V],e=>{t=bi(t,e," ")}),e.textContent!==t&&(pi(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ue(A.afterSanitizeElements,e,null),!1):(je(e),!0)},Fe=function(e,t,n){if(oe&&("id"===t||"name"===t)&&(n in r||n in Ce))return!1;if($&&!H[t]&&wi(M,t));else if(K&&wi(D,t));else if(q.attributeCheck instanceof Function&&q.attributeCheck(t,e));else if(!U[t]||H[t]){if(!(Ge(e)&&(F.tagNameCheck instanceof RegExp&&wi(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&wi(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t,e))||"is"===t&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&wi(F.tagNameCheck,n)||F.tagNameCheck instanceof Function&&F.tagNameCheck(n))))return!1}else if(fe[t]);else if(wi(I,bi(n,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==gi(n,"data:")||!de[e]){if(W&&!wi(j,bi(n,P,"")));else if(n)return!1}else;return!0},Ge=function(e){return"annotation-xml"!==e&&vi(e,R)},He=function(e){Ue(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let o=t.length;for(;o--;){const s=t[o],{name:a,namespaceURI:l,value:c}=s,u=Se(a),d=c;let p="value"===a?d:yi(d);if(r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,Ue(A.uponSanitizeAttribute,e,r),p=r.attrValue,!ie||"id"!==u&&"name"!==u||(Pe(a,e),p="user-content-"+p),J&&wi(/((--!?|])>)|<\/(style|title|textarea)/i,p)){Pe(a,e);continue}if("attributename"===u&&vi(p,"href")){Pe(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Pe(a,e);continue}if(!X&&wi(/\/>/i,p)){Pe(a,e);continue}Y&&ci([C,T,V],e=>{p=bi(p,e," ")});const f=Se(e.nodeName);if(Fe(f,u,p)){if(w&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(l);else switch(h.getAttributeType(f,u)){case"TrustedHTML":p=w.createHTML(p);break;case"TrustedScriptURL":p=w.createScriptURL(p)}if(p!==d)try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),Le(e)?je(e):di(n.removed)}catch(i){Pe(a,e)}}else Pe(a,e)}Ue(A.afterSanitizeAttributes,e,null)},qe=function e(t){let n=null;const r=Ie(t);for(Ue(A.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ue(A.uponSanitizeShadowNode,n,null),ze(n),He(n),n.content instanceof s&&e(n.content);Ue(A.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw Ei("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ei("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Ve(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Se(e.nodeName);if(!L[t]||G[t])throw Ei("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Re("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===Ji&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!te&&!Y&&!Z&&-1===e.indexOf("<"))return w&&re?w.createHTML(e):e;if(r=Re(e),!r)return te?null:re?E:""}r&&ee&&je(r.firstChild);const u=Ie(ae?e:r);for(;a=u.nextNode();)ze(a),He(a),a.content instanceof s&&qe(a.content);if(ae)return e;if(te){if(ne)for(c=N.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(U.shadowroot||U.shadowrootmode)&&(c=S.call(o,c,!0)),c}let d=Z?r.outerHTML:r.innerHTML;return Z&&L["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&wi(Wi,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Y&&ci([C,T,V],e=>{d=bi(d,e," ")}),w&&re?w.createHTML(d):d},n.setConfig=function(){Ve(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Ae=null,Q=!1},n.isValidAttribute=function(e,t,n){Ae||Ve({});const r=Se(e),o=Se(t);return Fe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&pi(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=ui(A[e],t);return-1===n?void 0:fi(A[e],n,1)[0]}return di(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const ns=(e,t)=>{if(document.startViewTransition&&!t?.disabled)return document.startViewTransition(e);e()},rs=t.createContext(null),os=t.createContext(null),is=rs.Provider,ss=wo(e=>e.toString(16)),as=(...e)=>{const t={...ls,startViewTransitions:structuredClone(ls.startViewTransitions)};return e.forEach(e=>{if(!e)return;const{startViewTransitions:n,comparePayload:r,observable:o,generateId:i,...s}=e;if(i&&(t.generateId=i),n){const e="boolean"==typeof n?{mount:n,payloadChange:n,unmount:n}:n;Object.assign(t.startViewTransitions,e)}o?.viewModels&&Object.assign(t.observable.viewModels,o.viewModels||{}),o?.viewModelStores&&Object.assign(t.observable.viewModelStores,o.viewModelStores||{}),null!=r&&(t.comparePayload=r),Object.assign(t,s)}),t},ls=(e=>{const t=(()=>{{let e;return{get:()=>e,set:t=>(e=t,t)}}})();return t.get()||t.set(e)})({comparePayload:!1,payloadComputed:"struct",payloadObservable:"ref",wrapViewsInObserver:!0,startViewTransitions:{mount:!1,payloadChange:!1,unmount:!1},observable:{viewModels:{useDecorators:!0},viewModelStores:{useDecorators:!0}},generateId:e=>{if(!e.generateId){const t=ss(),n=wo(e=>e.toString().padStart(5,"0"));e.generateId=()=>`${t}_${n().toString().padStart(5,"0")}`}if("production"===process.env.NODE_ENV)return e.generateId();{const t=e.VM?.name??"";return t?`${t}_${e.generateId()}`:e.generateId()}},factory:e=>new(0,e.VM)({...e,vmConfig:as(e.vmConfig)})}),cs=(e,t,n)=>{if(n.custom)return n.custom(e,t);n.disableWrapping||((e,t,n)=>{n?(t.forEach(([t,n])=>{n(e,t)}),Yn(e)):Yn(e,Object.fromEntries(t))})(e,t,n.useDecorators)},us="undefined"==typeof window?t.useEffect:t.useLayoutEffect;let ds=null;ds="production"===process.env.NODE_ENV?e=>{const n=t.useRef(null);return n.current||(n.current=e()),n.current}:e=>t.useMemo(e,[]);const ps=ds;function fs(e,t,n){return e.prototype.payloadChanged?hs(e,t,n):ms(e,t)}const hs=(e,n,r)=>{const o=t.useContext(os),i=t.useContext(rs),s=r?.ctx??{},a=ps(()=>{const t=o?.generateViewModelId({...r,ctx:s,VM:e,parentViewModelId:i?.id??null})??r?.id??ls.generateId(s),a=o?o.get(t):null;if(a)return a;{const a={...r,vmConfig:r?.vmConfig,id:t,parentViewModelId:i?.id,payload:n??{},VM:e,viewModels:o,parentViewModel:i,ctx:s};o?.processCreateConfig(a);const l=r?.factory?.(a)??o?.createViewModel(a)??ls.factory(a);return l.willMount(),o?.markToBeAttached(l),l}});return us(()=>o?(o.attach(a),()=>{o.detach(a.id)}):(a.mount(),()=>{a.willUnmount(),a.unmount()}),[a]),a.setPayload(n??{}),a},ms=(e,n)=>{const r=t.useContext(os),o=t.useContext(rs),i=ps(()=>{const t=new e;return t.parentViewModel=o,r?.markToBeAttached(t),t});return"setPayload"in i&&t.useLayoutEffect(()=>{i.setPayload(n)},[n]),us(()=>r?(r.attach(i),()=>{r.detach(i.id)}):(i.mount?.(),()=>{i.unmount?.()}),[i]),i},vs=e=>{const n=t.useContext(os),r=t.useContext(rs);let o;if(n?.get(e),"production"!==process.env.NODE_ENV&&(o=t.useRef()),"production"===process.env.NODE_ENV||n||console.warn("Warning #1: ViewModelStore not found.\n","Unable to get access to view model by id or class name without using ViewModelStore\n","Last active view model will be returned.\n","More info: https://js2me.github.io/mobx-view-model/warnings/1"),!r){if("production"!==process.env.NODE_ENV)throw new Error('Error #1: Active ViewModel not found.\nThis happened because "vmLookup" for hook "useViewModel" is not provided and hook trying to lookup active view model using ActiveViewModelContext which works only with using "withViewModel" HOC.\nPlease provide "vmLookup" (first argument for "useViewModel" hook) or use "withViewModel" HOC.\nMore info: https://js2me.github.io/mobx-view-model/errors/1');throw new Error("Error #1: https://js2me.github.io/mobx-view-model/errors/1")}return"production"!==process.env.NODE_ENV&&(o.current=r),r};go(({model:e,config:t,payload:r,children:o})=>{const i=fs(e,r,t);return i.isMounted?"function"==typeof o?o(i):n.jsx(n.Fragment,{children:o}):null});const bs=os.Provider;function gs(e,t,n){if("function"==typeof t||t&&void 0!==t.$$typeof){const n={};return _s(e,{...n,ctx:{VM:e,generateId:n.generateId,...n.ctx}},t)}{const n=t??{},r={...n,ctx:{VM:e,generateId:n.generateId,...n.ctx}};return t=>_s(e,r,t)}}const ys=Symbol.for("react.memo"),_s=(e,r,o)=>{const i=r.vmConfig?.processViewComponent??ls.processViewComponent,s=r.vmConfig?.wrapViewsInObserver??ls.wrapViewsInObserver;let a=i?.(o,e,r)??o;s&&a&&a.$$typeof!==ys&&(a=go(a));const l=r.reactHook,c=r.getPayload,u=r.fallback??ls.fallbackComponent;let d=(o,i)=>{const s=t.useContext(os);l?.(o,r.ctx,s,i);const{payload:d,...p}=o,f=c?.(o)??d;r.forwardRef&&!("forwardedRef"in p)&&(p.forwardedRef=i);const h=fs(e,f,{...r,props:p});return(!s||s.isAbleToRenderView(h.id))&&!1!==h.isMounted?n.jsx(is,{value:h,children:a&&n.jsx(a,{...p,model:h})}):u&&n.jsx(u,{...o,payload:f})};return r.forwardRef&&(d=t.forwardRef(d)),d=go(d),"production"!==process.env.NODE_ENV&&(d.displayName=`ConnectedViewModel(${e.name}->Component)`),r.component=d,d},ws=[["_isMounted",at.ref],["_isUnmounting",at.ref],["isMounted",dt],["isUnmounting",dt],["parentViewModel",dt],["mount",gn.bound],["didMount",gn],["unmount",gn.bound],["didUnmount",gn],["willUnmount",gn],["setPayload",gn]];class Es{constructor(e){this.vmParams=e,this.id=e.id,this.vmConfig=as(e.vmConfig),this._payload=e.payload,this.props=e.props??{},this.abortController=new AbortController,this.unmountSignal=this.abortController.signal,"strict"===this.vmConfig.comparePayload?this.isPayloadEqual=_e.structural:"shallow"===this.vmConfig.comparePayload?this.isPayloadEqual=Zo:"function"==typeof this.vmConfig.comparePayload&&(this.isPayloadEqual=this.vmConfig.comparePayload);const t=[...ws];!1!==this.vmConfig.payloadObservable&&t.push(["_payload",at[this.vmConfig.payloadObservable??"ref"]]),this.vmConfig.payloadComputed&&("struct"===this.vmConfig.payloadComputed?t.push(["payload",dt.struct]):t.push(["payload",dt({equals:!0===this.vmConfig.payloadComputed?void 0:this.vmConfig.payloadComputed})])),cs(this,t,this.vmConfig.observable.viewModels)}abortController;unmountSignal;id;_isMounted=!1;_isUnmounting=!1;_payload;vmConfig;isPayloadEqual;props;get payload(){return this._payload}get viewModels(){return"production"===process.env.NODE_ENV||this.vmParams.viewModels||console.error("Error #3: No access to ViewModelStore.\nThis happened because [viewModels] param is not provided during to creating instance ViewModelBase.\nMore info: https://js2me.github.io/mobx-view-model/errors/3"),this.vmParams.viewModels}get isMounted(){return this._isMounted}get isUnmounting(){return this._isUnmounting}willUnmount(){this._isUnmounting=!0}willMount(){}mount(){this.vmConfig.onMount?.(this),ns(()=>{_n(()=>{this._isMounted=!0})},{disabled:!this.vmConfig.startViewTransitions.mount}),this.didMount()}didMount(){}unmount(){this.vmConfig.onUnmount?.(this),ns(()=>{_n(()=>{this._isMounted=!1})},{disabled:!this.vmConfig.startViewTransitions.unmount}),this.didUnmount()}didUnmount(){this.abortController.abort(),_n(()=>{this._isUnmounting=!1})}payloadChanged(e,t){}get parentViewModel(){return this.getParentViewModel(this.vmParams.parentViewModelId)}setPayload(e){this.isPayloadEqual?.(this._payload,e)||ns(()=>{_n(()=>{this.payloadChanged(e,this._payload),this._payload=e})},{disabled:!this.vmConfig.startViewTransitions.payloadChange})}getParentViewModel(e){return this.vmParams.parentViewModel??this.viewModels?.get(e)}}class Os{constructor(e){this.config=e,this.viewModels=at.map([],{deep:!1}),this.linkedComponentVMClasses=at.map([],{deep:!1}),this.viewModelIdsByClasses=at.map([],{deep:!0}),this.instanceAttachedCount=at.map([],{deep:!1}),this.mountingViews=at.set([],{deep:!1}),this.unmountingViews=at.set([],{deep:!1}),this.vmConfig=as(e?.vmConfig),this.viewModelsTempHeap=new Map,cs(this,[["mountedViewsCount",dt],["mount",gn],["unmount",gn],["attachVMConstructor",gn],["attach",gn],["detach",gn],["linkComponents",gn],["unlinkComponents",gn]],this.vmConfig.observable.viewModelStores)}viewModels;linkedComponentVMClasses;viewModelIdsByClasses;instanceAttachedCount;viewModelsTempHeap;mountingViews;unmountingViews;vmConfig;get mountedViewsCount(){return[...this.instanceAttachedCount.values()].reduce((e,t)=>e+t,0)}processCreateConfig(e){this.linkComponents(e.VM,e.component,e.ctx?.externalComponent)}createViewModel(e){const t=e.VM,n=as(this.vmConfig,e.vmConfig),r={...e,vmConfig:n};return n.factory?n.factory(r):new t(r)}generateViewModelId(e){return e.id?e.id:this.vmConfig.generateId(e.ctx)}linkComponents(e,...t){t.forEach(t=>{t&&!this.linkedComponentVMClasses.has(t)&&this.linkedComponentVMClasses.set(t,e)})}unlinkComponents(...e){e.forEach(e=>{e&&this.linkedComponentVMClasses.has(e)&&this.linkedComponentVMClasses.delete(e)})}getIds(e){if(!e)return[];if("string"==typeof e)return[e];const t=this.linkedComponentVMClasses.get(e)||e;return this.viewModelIdsByClasses.get(t)||[]}getId(e){const t=this.getIds(e);return 0===t.length?null:("production"!==process.env.NODE_ENV&&t.length>1&&console.warn("Found more than 1 view model with the same identifier. Last instance will been returned"),t.at(-1))}has(e){const t=this.getId(e);return!!t&&this.viewModels.has(t)}get(e){const t=this.getId(e);if(!t)return null;return this.viewModels.get(t)??this.viewModelsTempHeap.get(t)??null}getOrCreateVmId(e){return e.id||(e.id=this.vmConfig.generateId({VM:e.constructor})),e.id}getAll(e){return this.getIds(e).map(e=>this.viewModels.get(e))}async mount(e){const t=this.getOrCreateVmId(e);this.mountingViews.add(t),await(e.mount?.()),_n(()=>{this.mountingViews.delete(t)})}async unmount(e){const t=this.getOrCreateVmId(e);this.unmountingViews.add(t),await(e.unmount?.()),_n(()=>{this.unmountingViews.delete(t)})}attachVMConstructor(e){const t=this.getOrCreateVmId(e),n=e.constructor;if(this.viewModelIdsByClasses.has(n)){const e=this.viewModelIdsByClasses.get(n);e.includes(t)||e.push(t)}else this.viewModelIdsByClasses.set(n,[t])}dettachVMConstructor(e){const t=e.constructor;if(this.viewModelIdsByClasses.has(t)){const n=this.viewModelIdsByClasses.get(t).filter(t=>t!==e.id);n.length>0?this.viewModelIdsByClasses.set(t,n):this.viewModelIdsByClasses.delete(t)}}markToBeAttached(e){const t=this.getOrCreateVmId(e);this.viewModelsTempHeap.set(t,e),"attachViewModelStore"in e&&e.attachViewModelStore(this),this.attachVMConstructor(e)}async attach(e){const t=this.getOrCreateVmId(e),n=this.instanceAttachedCount.get(t)??0;this.instanceAttachedCount.set(t,n+1),this.viewModels.has(t)||(this.viewModels.set(t,e),this.attachVMConstructor(e),await this.mount(e),this.viewModelsTempHeap.delete(t))}async detach(e){const t=this.instanceAttachedCount.get(e)??0;this.viewModelsTempHeap.delete(e);const n=this.viewModels.get(e);if(!n)return;const r=t-1;this.instanceAttachedCount.set(e,r),r<=0&&("willUnmount"in n&&n.willUnmount(),this.instanceAttachedCount.delete(e),this.viewModels.delete(e),this.dettachVMConstructor(n),await this.unmount(n))}isAbleToRenderView(e){const t=this.mountingViews.has(e),n=this.viewModels.has(e);return!!e&&n&&!t}clean(){this.viewModels.clear(),this.linkedComponentVMClasses.clear(),this.viewModelIdsByClasses.clear(),this.instanceAttachedCount.clear(),this.mountingViews.clear(),this.unmountingViews.clear(),this.viewModelsTempHeap.clear()}}class xs extends Es{}var Ns,ks={};var Ss=function(){if(Ns)return ks;Ns=1;var e=r;if("production"===process.env.NODE_ENV)ks.createRoot=e.createRoot,ks.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ks.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},ks.hydrateRoot=function(n,r,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,o)}finally{t.usingClientEntryPoint=!1}}}return ks}();function As(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=As(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Cs=e=>{const t=Ds(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Ts(n,t)||Ms(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Ts=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ts(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Vs=/^\[(.+)\]$/,Ms=e=>{if(Vs.test(e)){const t=Vs.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ds=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)js(n[o],r,o,t);return r},js=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Ps(t,e)).classGroupId=n)}if("function"==typeof e)return Rs(e)?void js(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{js(o,Ps(t,e),n,r)})})},Ps=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Rs=e=>e.isThemeGetter,Is=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Ls=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let l=0;l<e.length;l++){let s=e[l];if(0===r&&0===o){if(":"===s){t.push(e.slice(i,l)),i=l+1;continue}if("/"===s){n=l;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const s=0===t.length?e:e.substring(i),a=Bs(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Bs=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Us=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},zs=/\s+/;function Fs(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Gs(e))&&(r&&(r+=" "),r+=t);return r}const Gs=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Gs(e[r]))&&(n&&(n+=" "),n+=t);return n};function Hs(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Is(e.cacheSize),parseClassName:Ls(e),sortModifiers:Us(e),...Cs(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(zs);let l="";for(let c=a.length-1;c>=0;c-=1){const e=a[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(e);if(t){l=e+(l.length>0?" "+l:l);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){l=e+(l.length>0?" "+l:l);continue}if(m=r(p),!m){l=e+(l.length>0?" "+l:l);continue}h=!1}const v=i(u).join(":"),b=d?v+"!":v,g=b+m;if(s.includes(g))continue;s.push(g);const y=o(m,h);for(let n=0;n<y.length;++n){const e=y[n];s.push(b+e)}l=e+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(Fs.apply(null,arguments))}}const qs=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Ks=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$s=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ws=/^\d+\/\d+$/,Xs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ys=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Js=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ea=e=>Ws.test(e),ta=e=>!!e&&!Number.isNaN(Number(e)),na=e=>!!e&&Number.isInteger(Number(e)),ra=e=>e.endsWith("%")&&ta(e.slice(0,-1)),oa=e=>Xs.test(e),ia=()=>!0,sa=e=>Ys.test(e)&&!Js.test(e),aa=()=>!1,la=e=>Zs.test(e),ca=e=>Qs.test(e),ua=e=>!pa(e)&&!ga(e),da=e=>Na(e,Ca,aa),pa=e=>Ks.test(e),fa=e=>Na(e,Ta,sa),ha=e=>Na(e,Va,ta),ma=e=>Na(e,Sa,aa),va=e=>Na(e,Aa,ca),ba=e=>Na(e,Da,la),ga=e=>$s.test(e),ya=e=>ka(e,Ta),_a=e=>ka(e,Ma),wa=e=>ka(e,Sa),Ea=e=>ka(e,Ca),Oa=e=>ka(e,Aa),xa=e=>ka(e,Da,!0),Na=(e,t,n)=>{const r=Ks.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},ka=(e,t,n=!1)=>{const r=$s.exec(e);return!!r&&(r[1]?t(r[1]):n)},Sa=e=>"position"===e||"percentage"===e,Aa=e=>"image"===e||"url"===e,Ca=e=>"length"===e||"size"===e||"bg-size"===e,Ta=e=>"length"===e,Va=e=>"number"===e,Ma=e=>"family-name"===e,Da=e=>"shadow"===e,ja=Hs(()=>{const e=qs("color"),t=qs("font"),n=qs("text"),r=qs("font-weight"),o=qs("tracking"),i=qs("leading"),s=qs("breakpoint"),a=qs("container"),l=qs("spacing"),c=qs("radius"),u=qs("shadow"),d=qs("inset-shadow"),p=qs("text-shadow"),f=qs("drop-shadow"),h=qs("blur"),m=qs("perspective"),v=qs("aspect"),b=qs("ease"),g=qs("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ga,pa],_=()=>[ga,pa,l],w=()=>[ea,"full","auto",..._()],E=()=>[na,"none","subgrid",ga,pa],O=()=>["auto",{span:["full",na,ga,pa]},na,ga,pa],x=()=>[na,"auto",ga,pa],N=()=>["auto","min","max","fr",ga,pa],k=()=>["auto",..._()],S=()=>[ea,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],A=()=>[e,ga,pa],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",wa,ma,{position:[ga,pa]}],T=()=>["auto","cover","contain",Ea,da,{size:[ga,pa]}],V=()=>[ra,ya,fa],M=()=>["","none","full",c,ga,pa],D=()=>["",ta,ya,fa],j=()=>[ta,ra,wa,ma],P=()=>["","none",h,ga,pa],R=()=>["none",ta,ga,pa],I=()=>["none",ta,ga,pa],L=()=>[ta,ga,pa],B=()=>[ea,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oa],breakpoint:[oa],color:[ia],container:[oa],"drop-shadow":[oa],ease:["in","out","in-out"],font:[ua],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oa],shadow:[oa],spacing:["px",ta],text:[oa],"text-shadow":[oa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ea,pa,ga,v]}],container:["container"],columns:[{columns:[ta,pa,ga,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[na,"auto",ga,pa]}],basis:[{basis:[ea,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ta,ea,"auto","initial","none",pa]}],grow:[{grow:["",ta,ga,pa]}],shrink:[{shrink:["",ta,ga,pa]}],order:[{order:[na,"first","last","none",ga,pa]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],w:[{w:[a,"screen",...S()]}],"min-w":[{"min-w":[a,"screen","none",...S()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",n,ya,fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ga,ha]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ra,pa]}],"font-family":[{font:[_a,pa,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ga,pa]}],"line-clamp":[{"line-clamp":[ta,"none",ga,ha]}],leading:[{leading:[i,..._()]}],"list-image":[{"list-image":["none",ga,pa]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ga,pa]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[ta,"from-font","auto",ga,fa]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[ta,"auto",ga,pa]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ga,pa]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ga,pa]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},na,ga,pa],radial:["",ga,pa],conic:[na,ga,pa]},Oa,va]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[ta,ga,pa]}],"outline-w":[{outline:["",ta,ya,fa]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,xa,ba]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,xa,ba]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[ta,fa]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,xa,ba]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[ta,ga,pa]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ta]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[ga,pa]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[ta]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ga,pa]}],filter:[{filter:["","none",ga,pa]}],blur:[{blur:P()}],brightness:[{brightness:[ta,ga,pa]}],contrast:[{contrast:[ta,ga,pa]}],"drop-shadow":[{"drop-shadow":["","none",f,xa,ba]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",ta,ga,pa]}],"hue-rotate":[{"hue-rotate":[ta,ga,pa]}],invert:[{invert:["",ta,ga,pa]}],saturate:[{saturate:[ta,ga,pa]}],sepia:[{sepia:["",ta,ga,pa]}],"backdrop-filter":[{"backdrop-filter":["","none",ga,pa]}],"backdrop-blur":[{"backdrop-blur":P()}],"backdrop-brightness":[{"backdrop-brightness":[ta,ga,pa]}],"backdrop-contrast":[{"backdrop-contrast":[ta,ga,pa]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ta,ga,pa]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ta,ga,pa]}],"backdrop-invert":[{"backdrop-invert":["",ta,ga,pa]}],"backdrop-opacity":[{"backdrop-opacity":[ta,ga,pa]}],"backdrop-saturate":[{"backdrop-saturate":[ta,ga,pa]}],"backdrop-sepia":[{"backdrop-sepia":["",ta,ga,pa]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ga,pa]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ta,"initial",ga,pa]}],ease:[{ease:["linear","initial",b,ga,pa]}],delay:[{delay:[ta,ga,pa]}],animate:[{animate:["none",g,ga,pa]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ga,pa]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[ga,pa,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ga,pa]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ga,pa]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[ta,ya,fa,ha]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Pa=(...e)=>ja(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=As(e))&&(r&&(r+=" "),r+=t);return r}(...e)),Ra={static:"static_g5P-G",blur:"blur_9rZ6A",vmButton:"vmButton_Xr1Q6",opened:"opened_gewqL",vmPopup:"vmPopup_Q4l4j",vmContent:"vmContent_VAE7p",vmContentTree:"vmContentTree_BB36O",vmTreeItem:"vmTreeItem_t-7jc",line:"line_Xgaua",vmContentFilters:"vmContentFilters_No1QW",propertyMeta:"propertyMeta_XxYHc",small:"small_Ipy6s",propertyValue:"propertyValue_s9qHJ","property-name":"property-name_2-sJi",propertyName:"property-name_2-sJi",expandButton:"expandButton_EObqt",expanded:"expanded_uFpb7",property:"property_eoWZv",instance:"instance_B-kEn",primitive:"primitive_5yfCy",boolean:"boolean_TwUVp",number:"number_AVdzm",object:"object_kn8wQ",undefined:"undefined_SMcns",bigint:"bigint_ZrO3O",symbol:"symbol_9GN4U",string:"string_m1Kkx",disabled:"disabled_IDojS"},Ia=go(()=>{const e=vs();return n.jsxs("button",{className:Pa(Ra.vmButton,{[Ra.opened]:e.devtools.isOpened},e.devtools.config.buttonClassName),"data-position":`${e.devtools.config.position}`,ref:e.devtools.buttonRef,onClick:e.devtools.handleToggleOpen,children:[n.jsx("img",{src:e.devtools.logoUrl}),n.jsx("div",{}),n.jsx("span",{children:e.devtools.allVms.length})]})}),La=null,{min:Ba,max:Ua,abs:za,floor:Fa}=Math,Ga=(e,t,n)=>Ba(n,Ua(t,e)),Ha=e=>[...e].sort((e,t)=>e-t),qa="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)},Ka=()=>{let e;return[new Promise(t=>{e=t}),e]},$a=e=>{let t;return()=>(e&&(t=e(),e=void 0),t)},Wa=(e,t,n)=>{const r=n?"unshift":"push";for(let o=0;o<t;o++)e[r](-1);return e},Xa=(e,t)=>{const n=e.t[t];return-1===n?e.o:n},Ya=(e,t,n)=>{const r=-1===e.t[t];return e.t[t]=n,e.i=Ba(t,e.i),r},Ja=(e,t)=>{if(!e.l)return 0;if(e.i>=t)return e.u[t];e.i<0&&(e.u[0]=0,e.i=0);let n=e.i,r=e.u[n];for(;n<t;)r+=Xa(e,n),e.u[++n]=r;return e.i=t,r},Za=(e,t,n=0,r=e.l-1)=>{for(;n<=r;){const o=Fa((n+r)/2);if(Ja(e,o)<=t){if(Ja(e,o+1)>t)return o;n=o+1}else r=o-1}return Ga(n,0,e.l-1)},Qa=(e,t,n)=>{const r=t-e.l;return e.i=n?-1:Ba(t-1,e.i),e.l=t,r>0?(Wa(e.u,r),Wa(e.t,r,n),e.o*r):(e.u.splice(r),(n?e.t.splice(0,-r):e.t.splice(r)).reduce((t,n)=>t-(-1===n?e.o:n),0))},el="undefined"!=typeof window,tl=()=>document.documentElement,nl=$a(()=>!!el&&"rtl"===getComputedStyle(tl()).direction),rl=$a(()=>!!/iP(hone|od|ad)/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0),ol=$a(()=>"scrollBehavior"in tl().style),il=setTimeout,sl=(e,t)=>t&&nl()?-e:e,al=(e,t)=>{let n,r,o=Ka();const i=t?"scrollLeft":"scrollTop",s=t?"overflowX":"overflowY",[a,l]=((e,t,n)=>{let r;return[async(o,i)=>{if(!(await t()))return;r&&r();const s=()=>{const[t,n]=Ka();return r=()=>{n(!1)},e.p()&&il(r,150),[t,e.B(2,()=>{n(!0)})]};if(i&&ol())e.J(8,o()),qa(async()=>{for(;;){let t=!0;for(let[o,i]=e.S();o<=i;o++)if(e.k(o)){t=!1;break}if(t)break;const[n,r]=s();try{if(!(await n))return}finally{r()}}e.J(7),n(o(),i)});else for(;;){const[t,r]=s();try{if(e.J(7),n(o()),!(await t))return}finally{r()}}},()=>{r&&r()}]})(e,()=>o[0],(e,r)=>{e=sl(e,t),r?n.scrollTo({[t?"left":"top"]:e,behavior:"smooth"}):n[i]=e});return{P(a){n=a,r=((e,t,n,r,o)=>{const i=Date.now;let s=0,a=!1,l=!1,c=!1,u=!1;const d=(()=>{let t;const n=()=>{t!=La&&clearTimeout(t)},r=()=>{n(),t=il(()=>{t=La,(()=>{if(a||l)return a=!1,void d();c=!1,e.J(2)})()},150)};return r.A=n,r})(),p=()=>{s=i(),c&&(u=!0),e.J(1,r()),d()},f=t=>{if(a||!e.H()||t.ctrlKey)return;const r=i()-s;150>r&&50<r&&(n?t.deltaX:t.deltaY)&&(a=!0)},h=()=>{l=!0,c=u=!1},m=()=>{l=!1,rl()&&(c=!0)};return t.addEventListener("scroll",p),t.addEventListener("wheel",f,{passive:!0}),t.addEventListener("touchstart",h,{passive:!0}),t.addEventListener("touchend",m,{passive:!0}),{L:()=>{t.removeEventListener("scroll",p),t.removeEventListener("wheel",f),t.removeEventListener("touchstart",h),t.removeEventListener("touchend",m),d.A()},D:()=>{const[t,i]=e.O();t&&(o(sl(t,n),i,u),u=!1,i&&e.p()>e.h()&&e.J(1,r()))}}})(e,a,t,()=>sl(a[i],t),(t,n,r)=>{if(r){const e=a.style,t=e[s];e[s]="hidden",il(()=>{e[s]=t})}a[i]=e.C()+t,n&&l()}),o[1](!0)},v(){r&&r.L(),o[1](!1),o=Ka()},V(e){a(()=>e)},X(t){t+=e.C(),a(()=>t)},Y(t,{align:n,smooth:r,offset:o=0}={}){if(t=Ga(t,0,e.M()-1),"nearest"===n){const r=e.R(t),o=e.C();if(r<o)n="start";else{if(!(r+e.T(t)>o+e.p()))return;n="end"}}a(()=>o+e.W()+e.R(t)+("end"===n?e.T(t)-e.p():"center"===n?(e.T(t)-e.p())/2:0),r)},j:()=>{r&&r.D()}}},ll=(e,t)=>{let n;const r=t?"width":"height",o=new WeakMap,i=(e=>{let t;return{q(n){(t||(t=new((e=>e.defaultView)((e=>e.ownerDocument)(n)).ResizeObserver)(e))).observe(n)},G(e){t.unobserve(e)},L(){t&&t.disconnect()}}})(t=>{const i=[];for(const{target:s,contentRect:a}of t)if(s.offsetParent)if(s===n)e.J(4,a[r]);else{const e=o.get(s);e!=La&&i.push([e,a[r]])}i.length&&e.J(3,i)});return{U(e){i.q(n=e)},F:(e,t)=>(o.set(e,t),i.q(e),()=>{o.delete(e),i.G(e)}),v:i.L}},cl=el?t.useLayoutEffect:t.useEffect,ul="current",dl=(e,t)=>{if(Array.isArray(e))for(const n of e)dl(n,t);else null==e||"boolean"==typeof e||t.push(e)},pl=e=>{const n=t.useRef(e);return cl(()=>{n[ul]=e},[e]),n},fl=t.memo(({Z:e,ee:r,te:o,oe:i,ne:s,re:a,ie:l,se:c})=>{const u=t.useRef(null);cl(()=>r(u[ul],o),[o]);const d=t.useMemo(()=>{const e={contain:"layout style",position:s&&c?void 0:"absolute",[l?"height":"width"]:"100%",[l?"top":"left"]:0,[l?nl()?"right":"left":"top"]:i,visibility:!s||c?"visible":"hidden"};return l&&(e.display="inline-flex"),e},[i,s,c,l]);return n.jsx(a,"string"==typeof a?{ref:u,style:d,children:e}:{ref:u,style:d,index:o,children:e})}),hl=t.forwardRef(({children:e,data:o,bufferSize:i,itemSize:s,shift:a,horizontal:l,keepMounted:c,cache:u,startMargin:d=0,ssrCount:p,as:f="div",item:h="div",scrollRef:m,onScroll:v,onScrollEnd:b},g)=>{const[y,_]=((e,n)=>t.useMemo(()=>{if("function"==typeof e)return[t=>e(n[t],t),n.length];const t=(e=>{const t=[];return dl(e,t),t})(e);return[e=>t[e],t.length]},[e,n]))(e,o),w=t.useRef(null),E=t.useRef(!!p),O=pl(v),x=pl(b),[N,k,S,A]=(e=>{const n=t.useRef(null);return n[ul]||(n[ul]=e())})(()=>{const e=!!l,t=((e,t=40,n=0,r,o=!1)=>{let i=!!n,s=1,a=0,l=0,c=0,u=0,d=0,p=0,f=0,h=0,m=La,v=[0,i?Ua(n-1,0):-1],b=0;const g=(A=e,C=t,{o:(T=r)?T[1]:C,t:T&&T[0]?Wa(T[0].slice(0,Ba(A,T[0].length)),Ua(0,A-T[0].length)):Wa([],A),l:A,i:-1,u:Wa([],A+1)}),y=new Set,_=()=>c-l,w=()=>_()+d+u,E=(e,t)=>((e,t,n,r)=>{if(r=Ba(r,e.l-1),Ja(e,r)<=t){const o=Za(e,n,r);return[Za(e,t,r,o),o]}{const o=Za(e,t,void 0,r);return[o,Za(e,n,o)]}})(g,e,t,v[0]),O=()=>Ja(g,g.l),x=e=>Ja(g,e)-d,N=e=>Xa(g,e),k=(e,t=-1)=>g.t[e]===t,S=e=>{e&&(rl()&&0!==f||m&&1===h?d+=e:u+=e)};var A,C,T;return{v:()=>{y.clear()},m:()=>s,_:()=>(e=>[e.t.slice(),e.o])(g),S:(e=200)=>{if(!a||i)return v;let t,n;if(p)[t,n]=v;else{let r=Ua(0,w()),i=r+a;o||(e=Ua(0,e),1!==f&&(r-=e),2!==f&&(i+=e)),[t,n]=v=E(Ua(0,r),Ua(0,i)),m&&(t=Ba(t,m[0]),n=Ua(n,m[1]))}return[Ua(t,0),Ba(n,g.l-1)]},$:()=>Za(g,w()),I:()=>Za(g,w()+a),k:k,R:x,T:N,M:()=>g.l,C:()=>c,H:()=>0!==f,p:()=>a,W:()=>l,h:O,O:()=>(p=u,u=0,[p,2===h]),B:(e,t)=>{const n=[e,t];return y.add(n),()=>{y.delete(n)}},J:(e,t)=>{let n,r,v=0;switch(e){case 1:{if(t===c&&0===h)break;const e=p;p=0;const n=t-c,o=za(n);e&&o<za(e)+1||0!==h||(f=n<0?2:1),i&&(i=!1),c=t,v=4;const s=_();s>=-a&&s<=O()&&(v+=1,r=o>a);break}case 2:v=8,0!==f&&(n=!0,v+=1),f=0,h=0,m=La;break;case 3:{const e=t.filter(([e,t])=>!k(e,t));if(!e.length)break;S(e.reduce((e,[t,n])=>((2===h||(m&&1===h?t<m[0]:x(t+(0===f&&0===h?1:0))<_()))&&(e+=n-N(t)),e),0));for(const[t,n]of e){const e=N(t),r=Ya(g,t,n);o&&(b+=r?n:n-e)}o&&a&&b>a&&(S(((e,t)=>{let n=0;const r=[];e.t.forEach((e,o)=>{-1!==e&&(r.push(e),o<t&&n++)}),e.i=-1;const o=Ha(r),i=o.length,s=i/2|0,a=i%2==0?(o[s-1]+o[s])/2:o[s],l=e.o;return((e.o=a)-l)*Ua(t-n,0)})(g,Za(g,w()))),o=!1),v=3,r=!0;break}case 4:a!==t&&(a||(r=!0),a=t,v=3);break;case 5:t[1]?(S(Qa(g,t[0],!0)),h=2,v=1):(Qa(g,t[0]),v=1);break;case 6:l=t;break;case 7:h=1;break;case 8:m=E(t,t+a),v=1}v&&(s=1+(2147483647&s),n&&d&&(u+=d,d=0),y.forEach(([e,t])=>{v&e&&t(r)}))}}})(_,s,p,u,!s);return[t,ll(t,e),al(t,e),e]});_!==N.M()&&N.J(5,[_,a]),d!==N.W()&&N.J(6,d);const[C,T]=t.useReducer(N.m,void 0,N.m),V=N.H(),M=N.h(),D=[],j=e=>{const t=y(e);return n.jsx(fl,{ee:k.F,te:e,oe:N.R(e),ne:N.k(e),re:h,Z:t,ie:A,se:E[ul]},((e,t)=>{const n=e.key;return null!=n?n:"_"+t})(t,e))};if(cl(()=>{E[ul]=!1,N.B(1,e=>{e?r.flushSync(T):T()}),N.B(4,()=>{O[ul]&&O[ul](N.C())}),N.B(8,()=>{x[ul]&&x[ul]()});const e=e=>{k.U(e),S.P(e)};return m?qa(()=>{m[ul]&&e(m[ul])}):e(w[ul].parentElement),()=>{N.v(),k.v(),S.v()}},[]),cl(()=>{S.j()},[C]),t.useImperativeHandle(g,()=>({get cache(){return N._()},get scrollOffset(){return N.C()},get scrollSize(){return Ua((e=N).h(),e.p());var e},get viewportSize(){return N.p()},findStartIndex:N.$,findEndIndex:N.I,getItemOffset:N.R,getItemSize:N.T,scrollToIndex:S.Y,scrollTo:S.V,scrollBy:S.X}),[]),c){const e=new Set(c);for(let[t,n]=N.S(i);t<=n;t++)e.add(t);Ha([...e]).forEach(e=>{D.push(j(e))})}else for(let[t,n]=N.S(i);t<=n;t++)D.push(j(t));return n.jsx(f,{ref:w,style:{contain:"size style",overflowAnchor:"none",flex:"none",position:"relative",width:A?M:"100%",height:A?"100%":M,pointerEvents:V?"none":void 0},children:D})}),ml=({expandable:e,expanded:t,onClick:r,disabled:o})=>n.jsx("span",{onClick:r,className:Pa(Ra.expandButton,{[Ra.expandable]:e,[Ra.expanded]:t,[Ra.disabled]:o}),children:e&&n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",children:n.jsx("path",{fill:"currentColor","fill-rule":"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0","clip-rule":"evenodd"})})}),vl=go(e=>{const{name:r,value:o}=e,i=vs(),s=i.isPathExpanded(e.path),a=Object.keys(o),l=a.length>0;return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Pa(Ra.line,Ra.property,Ra.array),style:{"--level":e.level,"--order":e.order},onClick:()=>i.handleExpandPropertyClick(e.path),"data-fitted":e.isFitted,children:[n.jsx(ml,{expandable:o.length>0,expanded:s}),n.jsx("span",{className:Ra.propertyName,children:r}),n.jsx("span",{className:Ra.propertyMeta,children:": "}),n.jsx("span",{className:Ra.propertyValue,children:l?"[...]":"[]"})]}),s&&n.jsx("div",{className:Ra.propertyExpandedContent,children:a.map((n,r)=>t.createElement(xl,{...e,name:n,order:r,value:o[n],key:n,path:`${e.path}.${n}`,level:e.level+1}))})]})}),bl=go(e=>{const{name:t,value:r,valueType:o}=e,i=Array.from({length:r.length},(e,t)=>`arg${t+1}`);return n.jsxs("div",{className:Pa(Ra.line,Ra.property,Ra.function),title:String(r),style:{"--level":e.level,"--order":e.order},"data-fitted":e.isFitted,children:[n.jsx(ml,{}),o.includes("Async")&&n.jsx("span",{className:Pa(Ra.propertyMeta,Ra.small),children:"async "}),n.jsx("span",{className:Ra.propertyName,children:t}),n.jsx("span",{className:Ra.propertyMeta,children:`(${i.join(", ")})`})]})}),gl=new Set(["constructor"]),yl=new Set([globalThis.Object.prototype,globalThis.Function.prototype,globalThis.Array.prototype,globalThis.String.prototype,globalThis.Number.prototype,globalThis.Boolean.prototype,globalThis.Symbol.prototype,globalThis.Date.prototype,globalThis.RegExp.prototype,globalThis.Error.prototype,globalThis.Map.prototype,globalThis.Set.prototype,globalThis.WeakMap.prototype,globalThis.WeakSet.prototype,globalThis.ArrayBuffer.prototype,globalThis.DataView.prototype,globalThis.Float32Array.prototype,globalThis.Float64Array.prototype,globalThis.Int8Array.prototype,globalThis.Int16Array.prototype,globalThis.Int32Array.prototype,globalThis.Uint8Array.prototype,globalThis.Uint8ClampedArray.prototype,globalThis.Uint16Array.prototype,globalThis.Uint32Array.prototype,globalThis.BigInt64Array.prototype,globalThis.BigUint64Array.prototype,globalThis.Promise.prototype,globalThis.Iterator.prototype]);function _l(e){const t=new Set(Object.keys(e));let n=Object.getPrototypeOf(e);for(;n&&n!==globalThis.Object.prototype;){const e=Object.getOwnPropertyDescriptors(n);for(const n in e)gl.has(n)||t.add(n);const r=Object.getPrototypeOf(n);if(yl.has(r))break;n=r}return Array.from(t)}const wl=go(e=>{const{name:r,value:o}=e,i=vs(),s=i.isPathExpanded(e.path),a=o.constructor.name,l=_l(o);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Pa(Ra.line,Ra.property,Ra.instance),style:{"--level":e.level,"--order":e.order},onClick:()=>i.handleExpandPropertyClick(e.path),"data-fitted":e.isFitted,children:[n.jsx(ml,{expandable:!0,expanded:s}),n.jsx("span",{className:Ra.propertyName,children:r}),n.jsx("span",{className:Ra.propertyMeta,children:": "}),n.jsx("span",{className:Ra.propertyValue,children:`${a}`})]}),s&&l.map((n,r)=>t.createElement(xl,{...e,name:n,order:r,value:o[n],key:n,path:`${e.path}.${n}`,level:e.level+1}))]})}),El=go(e=>{const{name:r,value:o}=e,i=vs(),s=i.isPathExpanded(e.path),a=_l(o),l=a.length>0;return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Pa(Ra.line,Ra.property,Ra.object),style:{"--level":e.level,"--order":e.order},onClick:()=>i.handleExpandPropertyClick(e.path),"data-fitted":e.isFitted,children:[n.jsx(ml,{expandable:l,expanded:s}),n.jsx("span",{className:Ra.propertyName,children:r}),n.jsx("span",{className:Ra.propertyMeta,children:": "}),n.jsx("span",{className:Ra.propertyValue,children:l?"{...}":"{}"})]}),s&&a.map((n,r)=>t.createElement(xl,{...e,name:n,order:r,value:o[n],key:n,path:`${e.path}.${n}`,level:e.level+1}))]})}),Ol=go(e=>{const{name:t,value:r}=e,o=typeof r;return n.jsxs("div",{className:Pa(Ra.line,Ra.property,Ra.primitive,Ra[o]),style:{"--level":e.level,"--order":e.order},"data-fitted":e.isFitted,title:String(r),children:[n.jsx(ml,{}),n.jsx("span",{className:Ra.propertyName,children:t}),n.jsx("span",{className:Ra.propertyMeta,children:": "}),n.jsx("span",{className:Ra.propertyValue,children:"symbol"===o?"Symbol":"string"===o?`"${r}"`:`${r}`})]})}),xl=go(e=>{const{value:t}=e,r=Object.prototype.toString.call(t),o={...e,value:t,valueType:r};return Array.isArray(t)?n.jsx(vl,{...o}):Yo.isObject(t)&&t.constructor?.name&&"Object"!==t.constructor.name?n.jsx(wl,{...o}):Yo.isFunction(t)?n.jsx(bl,{...o}):Yo.isObject(t)?n.jsx(El,{...o}):r.startsWith("[object ")&&t&&"object"==typeof t&&"constructor"in t?n.jsx(wl,{...o}):n.jsx(Ol,{...o})}),Nl=gs(class extends xs{devtools=this.payload.devtools;constructor(e){super({...e,vmConfig:{observable:{viewModels:{useDecorators:!1},viewModelStores:{useDecorators:!1}}}}),Yn(this,{handleExpandPropertyClick:gn,handleVmItemHeaderClick:gn})}isPathExpanded(e){return this.devtools.checkIsPathExpanded(this.payload.vmItem,e)}handleExpandPropertyClick(e){this.devtools.handleExpandPropertyClick(this.payload.vmItem,e)}handleVmItemHeaderClick(e){this.devtools.handleVmItemHeaderClick(e)}},({model:e})=>{const t=e.payload.vmItem,r=e.devtools.isExpanded(t),o=e.devtools.getVMFittedInfo(t);return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Pa(Ra.line,Ra.vmTreeItem),"data-fitted":o.isFittedByName||o.isFittedById,style:{"--level":t.depth},children:n.jsxs("header",{onClick:()=>e.handleVmItemHeaderClick(t),children:[n.jsx(ml,{expandable:t.children.length>0,expanded:r,disabled:e.devtools.isAllVmsExpandedByDefault}),n.jsx("label",{title:t.displayName,children:t.displayName}),n.jsx("span",{title:t.vm.id,children:t.vm.id})]})}),t.properties.map((r,o)=>n.jsx(xl,{vmItem:t,name:r,order:o,value:t.vm[r],isFitted:e.devtools.checkIsPropertyFitted(t,r),level:t.depth,path:r},r)),r&&t.children.map(t=>n.jsx(Nl,{payload:{vmItem:t,devtools:e.devtools}},t.key))]})}),kl=go(({className:e,headerContent:t,...r})=>{const o=vs();return n.jsxs("div",{...r,className:Pa(Ra.vmContent,e),ref:o.devtools.containerRef,children:[n.jsxs("header",{children:[n.jsx("span",{children:"mobx-view-model devtools"}),t]}),n.jsx("div",{className:Ra.vmContentFilters,children:n.jsx("input",{value:o.devtools.search,ref:o.devtools.inputRef,autoFocus:!0,placeholder:"search by property path or ViewModel name",onChange:o.devtools.handleSearchChange})}),n.jsx("div",{className:Ra.vmContentTree,children:n.jsx(hl,{children:o.devtools.vmTree.map(e=>n.jsx(Nl,{payload:{vmItem:e,devtools:o.devtools}},e.key))})})]})}),Sl=go(()=>{const e=vs();return n.jsx(kl,{className:Ra.vmPopup,"data-position":`${e.devtools.config.position}`,headerContent:n.jsx("button",{onClick:e.devtools.handleToggleOpen,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",children:n.jsx("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06","clip-rule":"evenodd"})})})})}),Al=gs(class extends Es{devtools=this.payload.devtools},({model:e})=>n.jsx(bs,{value:e.devtools.vmStore,children:n.jsxs(is,{value:e,children:[n.jsx(Ia,{}),e.devtools.isOpened&&"popup"===e.devtools.displayType&&n.jsx(Sl,{})]})}));class Cl extends AbortController{constructor(...e){super(),this.link(...e)}link(...e){e.forEach(e=>{e?.addEventListener("abort",()=>{this.abort(e.reason)})})}}const Tl=(e,...t)=>"function"==typeof e?e(...t):e;let Vl=class{constructor(e){if(this.config=e,this.abortController=new Cl(e.abortSignal),this.activateStrategy=this.config.activateStrategy??{type:"immidiately"},this.isActivated=!("immidiately"!==this.activateStrategy.type),at.ref(this,"isActivated"),dt.struct(this,"actions"),gn.bound(this,"handleKeyboardClick"),Yn(this),"element-focus"===this.activateStrategy.type){const e=this.activateStrategy.ref;let t=new Cl;xn(()=>e.current,e=>{e?(globalThis.document?.activeElement===e&&this.activate(),e.addEventListener("focus",this.activate,{signal:t.signal}),e.addEventListener("blur",this.deactivate,{signal:t.signal})):(t.abort(),t=new Cl(this.abortController.signal))},{fireImmediately:!0,signal:this.abortController.signal})}globalThis.addEventListener("keydown",this.handleKeyboardClick,{signal:this.abortController.signal}),"keyclick"===e.activateStrategy?.type&&(globalThis.addEventListener("click",this.activate,{signal:this.abortController.signal}),globalThis.addEventListener("mousemove",this.activate,{signal:this.abortController.signal}))}abortController;activateStrategy;isActivated;get actions(){return Tl(this.config.actions)??[]}activate=()=>{this.isActivated||(this.isActivated=!0,this.config.onActivate?.())};deactivate=()=>{this.isActivated&&(this.isActivated=!1,this.config.onDeactivate?.())};handleKeyboardClick(e){if(this.config.onKeyClick?.(e),"keyclick"===this.activateStrategy.type&&this.activate(),this.isActivated)for(const t of this.actions){if(!Tl(t.disabled))for(const n of t.shortcuts){if(n.split("+").every(t=>this.checkShortcut(e,t)))return void _n(()=>{t.action(e)})}}}checkShortcut(e,t){return!("Shift"!==t||!e.shiftKey)||(!("Ctrl"!==t||!e.ctrlKey)||(!("Alt"!==t||!e.altKey)||t===e.key))}destroy(){this.abortController.abort()}};class Ml extends Vl{constructor(e){super({actions:[{shortcuts:["Ctrl+Shift+F12"],action:()=>{e.handleToggleOpen()}},{shortcuts:["Ctrl+ArrowLeft"],action:()=>{e.isAllVmsExpandedByDefault=!1}},{shortcuts:["Ctrl+ArrowRight"],action:()=>{e.isAllVmsExpandedByDefault=!0}},{shortcuts:["Ctrl+ArrowDown"],action:()=>{requestAnimationFrame(()=>{e.containerRef.current.scrollTop+=200})}},{shortcuts:["Ctrl+ArrowUp"],action:()=>{requestAnimationFrame(()=>{e.containerRef.current.scrollTop-=200})}}]})}}const Dl=(e,t)=>{const n=t.split(".");let r=e;for(const o of n){if(!(o in r))return!1;r=r[o]}return!0},jl=()=>{const e=Jo({meta:{focused:!1},onSet:t=>{document.activeElement===t&&_n(()=>{e.meta.focused=!0}),t.addEventListener("focus",gn(()=>{e.meta.focused=!0})),t.addEventListener("blur",gn(()=>{e.meta.focused=!1}))}});return e};o=[dt];const Pl=class e{constructor(e){((e,t,n,r)=>{for(var o=0,i=e[t>>1],s=i&&i.length;o<s;o++)1&t?i[o].call(n):r=i[o].call(n,r)})(i,5,this),b(this,"isOpened"),b(this,"displayType"),b(this,"vmStore"),b(this,"projectVmStore"),b(this,"isAllVmsExpandedByDefault"),b(this,"expandedVmItemsPaths"),b(this,"logoUrl"),b(this,"inputRef"),b(this,"containerRef"),b(this,"buttonRef"),b(this,"keyboardHandler"),b(this,"search"),b(this,"expandedVmsSet"),b(this,"handleSearchChange",e=>{this.search=e.target.value}),b(this,"handleToggleOpen",()=>{this.isOpened=!this.isOpened}),this.config=e,this.isOpened=!!this.config.defaultIsOpened,this.search="",this.displayType="popup",this.vmStore=new Os,this.projectVmStore=this.config.viewModels,this.expandedVmsSet=at.set(),this.isAllVmsExpandedByDefault=!0,this.expandedVmItemsPaths=at.set(),this.logoUrl="https://js2me.github.io/mobx-view-model/logo.png",this.inputRef=jl(),this.containerRef=jl(),this.buttonRef=Jo(),this.keyboardHandler=new Ml(this),Yn(this,{isOpened:at.ref,isAllVmsExpandedByDefault:at,search:at.ref,handleToggleOpen:gn,handleExpandPropertyClick:gn,allVms:dt.struct,vmMap:dt.struct,isInSearch:dt,vmTree:dt.struct,rootVms:dt.struct,handleSearchChange:gn}),this.render()}get vmMap(){return this.getViewModelsMap()}get allVms(){return[...this.vmMap.values()].filter(e=>!xs.isPrototypeOf(e.constructor))}get rootVms(){return this.allVms.filter(e=>{const t=this.getVmParams(e);return!t||null==t.parentViewModel})}get formattedSearch(){return this.search.toLowerCase().trim()}get vmTree(){const e=[],t=[],n=(t,r)=>{const o=e.find(e=>e.vm===t);if(o)return o;const i=this.getVmParams(t),s=i?.parentViewModel||null,a=t.constructor.name,l={parent:s?n(s,r-1):null,vm:t,displayName:a,children:[],depth:r,key:`${a}-${t.id}-${r}`,properties:_l(t)};e.push(l);const c=this.allVms.filter(e=>{const n=this.getVmParams(e);return n?.parentViewModel&&n.parentViewModel===t}).map(e=>n(e,r+1)).filter(e=>Boolean(e));return l.children.push(...c),l};return this.rootVms.forEach(e=>{const r=n(e,0);r&&t.push(r)}),t}get isInSearch(){return!!this.search.toLowerCase().trim()}get searchCache(){return this.formattedSearch,new Map}getVMFittedInfo(e){if(!this.isInSearch)return{isFitted:!0,isFittedByName:!0,fittedProperties:[]};if(this.searchCache.has(e.key))return this.searchCache.get(e.key);let t=!1;const n=[];let r=e.displayName.toLowerCase().trim().includes(this.formattedSearch),o=Dl(e.vm,this.search);o||"."!==this.search.at(-1)||(o=Dl(e.vm,this.search.slice(0,-1)));let i=this.formattedSearch;if(!o&&this.search.split(".")[0].toLowerCase()===e.displayName.toLowerCase()){const t=this.search.split(".").slice(1).join(".");t?o=Dl(e.vm,t):(o=!0,r=!0),i=t.toLowerCase().trim()}e.properties.forEach(e=>{let s=!1;if(r)s=!0;else{const t=e.toLowerCase().trim();(t.includes(i)||"."!==i&&`.${t}`.includes(i))&&(s=!0)}if(o){i.split(".")[0]===e&&(s=!0)}t||(t=s),s&&n.push(e)});const s=!!e.vm.id&&e.vm.id.includes(this.formattedSearch),a=r||s||t||o;return this.searchCache.set(e.key,{isFitted:a,isFittedById:s,isFittedByName:r,isFittedByPropertyPath:o,fittedProperties:n}),this.searchCache.get(e.key)}checkIsPropertyFitted(e,t){return!this.isInSearch||this.getVMFittedInfo(e).fittedProperties.includes(t)}isExpanded(e){return this.expandedVmsSet.has(e.key)||this.isInSearch||this.isAllVmsExpandedByDefault}checkIsPathExpanded(e,t){const n=this.getVMFittedInfo(e),r=(t.startsWith(".")?t.slice(1):t).split(".")[0];return r&&n.fittedProperties.includes(r),this.expandedVmItemsPaths.has(`${e.key}%%%${t}`)}handleExpandPropertyClick(e,t){const n=`${e.key}%%%${t}`;this.expandedVmItemsPaths.has(n)?this.expandedVmItemsPaths.delete(n):this.expandedVmItemsPaths.add(n)}handleVmItemHeaderClick(e){this.isExpanded(e)?this.expandedVmsSet.delete(e.key):this.expandedVmsSet.add(e.key)}getVmParams(e){return"vmParams"in e?e.vmParams:null}getViewModelsMap(){const e=this.config.viewModels??this.projectVmStore;return e?.viewModels??new Map}render(){const e=this.config.containerId??"view-model-devtools";let n=document.querySelector(`#${e}`);n||(n=document.createElement("div"),n.style="display: contents;",n.id=e,document.body.appendChild(n));Ss.createRoot(n).render(t.createElement(Al,{payload:{devtools:this}}))}static connect(t){new e(t)}};var Rl;Rl=null,((e,t,n,r,o,i)=>{var s,c,d,b,g,O=7&t,x=!!(8&t),N=!!(16&t),k=O>3?e.length+1:O?x?1:2:0,S=f[O+5],A=O>3&&(e[k-1]=[]),C=e[k]||(e[k]=[]),T=O&&(!N&&!x&&(o=o.prototype),O<5&&(O>3||!N)&&l(O<4?o:{get[n](){return _(this,i)},set[n](e){return w(this,i,e)}},n));O?N&&O<4&&p(i,(O>2?"set ":O>1?"get ":"")+n):p(o,n);for(var V=r.length-1;V>=0;V--)b=m(O,n,d={},e[3],C),O&&(b.static=x,b.private=N,g=b.access={has:N?e=>y(o,e):e=>n in e},3^O&&(g.get=N?e=>(1^O?_:E)(e,o,4^O?i:T.get):e=>e[n]),O>2&&(g.set=N?(e,t)=>w(e,o,t,4^O?i:T.set):(e,t)=>e[n]=t)),c=(0,r[V])(O?O<4?N?i:T[S]:O>4?void 0:{get:T.get,set:T.set}:o,b),d._=1,4^O||void 0===c?h(c)&&(O>4?A.unshift(c):O?N?i=c:T[S]=c:o=c):"object"!=typeof c||null===c?u("Object expected"):(h(s=c.get)&&(T.get=s),h(s=c.set)&&(T.set=s),h(s=c.init)&&A.unshift(s));O||v(e,o),T&&a(o,n,T)})(i=[,,,s(Rl?.[c("metadata")]??null)],2,"searchCache",o,Pl),v(i,Pl);let Il=Pl;return Object.assign(globalThis,{ViewModelDevtools:Il}),e.ViewModelDevtools=Il,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({},require$$0,jsxRuntime,require$$0$1);
|