PageSourceSearch

https://www.walk15.app/_next/static/chunks/b52cb72f-fb85540b1a28ca49.js

js walk15.app collected 2026-09-25 20:40:54 UTC 911,625 bytes, 660 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cf51c4d6-b3f2-496a-868b-45518e1ac21e",e._sentryDebugIdIdentifier="sentry-dbid-cf51c4d6-b3f2-496a-868b-45518e1ac21e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8271],{89798:function(e,t,n){let r,i,o,s,a,l;n.d(t,{z:function(){return CT}});var u,c,h,d,f,p,m,g,v,y,b,x,w,k,S,$,j,O,C,U,E,T,R,A,M,P,D,I,N,F,z,L,_,B,V,W,q=n(28070),J=n(88280).lW,H=Object.defineProperty,K=Object.defineProperties,G=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,Z=(e,t,n)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t)=>{for(var n in t||(t={}))X.call(t,n)&&Z(e,n,t[n]);if(Q)for(var n of Q(t))Y.call(t,n)&&Z(e,n,t[n]);return e},et=(e,t)=>K(e,G(t)),en=(e,t)=>{var n={};for(var r in e)X.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&Q)for(var r of Q(e))0>t.indexOf(r)&&Y.call(e,r)&&(n[r]=e[r]);return n},er=(e,t,n)=>(Z(e,"symbol"!=typeof t?t+"":t,n),n);function ei(e,t){for(var n=0;n<t.length;n++){let r=t[n];if("string"!=typeof r&&!Array.isArray(r)){for(let t in r)if("default"!==t&&!(t in e)){let n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function eo(){var e,t;return void 0===(null==(t=null==(e=globalThis.window)?void 0:e.document)?void 0:t.createElement)}var es="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function el(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var eu={exports:{}},ec={},eh={exports:{}},ed={};function ef(){return j||(j=1,eh.exports=function(){if($)return ed;$=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),h=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,p={};function m(e,t,n){this.props=e,this.context=t,this.refs=p,this.updater=n||d}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=p,this.updater=n||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var y=v.prototype=new g;y.constructor=v,f(y,m.prototype),y.isPureReactComponent=!0;var b=Array.isArray,x=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(t,n,r){var i,o={},s=null,a=null;if(null!=n)for(i in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)x.call(n,i)&&!k.hasOwnProperty(i)&&(o[i]=n[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:e,type:t,key:s,ref:a,props:o,_owner:w.current}}function j(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var O=/\/+/g;function C(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function U(n,r,i){if(null==n)return n;var o=[],s=0;return function n(r,i,o,s,a){var l,u,c,d=typeof r;("undefined"===d||"boolean"===d)&&(r=null);var f=!1;if(null===r)f=!0;else switch(d){case"string":case"number":f=!0;break;case"object":switch(r.$$typeof){case e:case t:f=!0}}if(f)return a=a(f=r),r=""===s?"."+C(f,0):s,b(a)?(o="",null!=r&&(o=r.replace(O,"$&/")+"/"),n(a,i,o,"",function(e){return e})):null!=a&&(j(a)&&(l=a,u=o+(!a.key||f&&f.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+r,a={$$typeof:e,type:l.type,key:u,ref:l.ref,props:l.props,_owner:l._owner}),i.push(a)),1;if(f=0,s=""===s?".":s+":",b(r))for(var p=0;p<r.length;p++){var m=s+C(d=r[p],p);f+=n(d,i,o,m,a)}else if("function"==typeof(m=null===(c=r)||"object"!=typeof c?null:"function"==typeof(c=h&&c[h]||c["@@iterator"])?c:null))for(r=m.call(r),p=0;!(d=r.next()).done;)m=s+C(d=d.value,p++),f+=n(d,i,o,m,a);else if("object"===d)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(i=String(r))?"object with keys {"+Object.keys(r).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return f}(n,o,"","",function(e){return r.call(i,e,s++)}),o}function E(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},R={transition:null};function A(){throw Error("act(...) is not supported in production builds of React.")}return ed.Children={map:U,forEach:function(e,t,n){U(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return U(e,function(){t++}),t},toArray:function(e){return U(e,function(e){return e})||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},ed.Component=m,ed.Fragment=n,ed.Profiler=i,ed.PureComponent=v,ed.StrictMode=r,ed.Suspense=l,ed.__SECRET_INT
vendor: 3,087 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:R,ReactCurrentOwner:w},ed.act=A,ed.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=f({},t.props),o=t.key,s=t.ref,a=t._owner;if(null!=n){if(void 0!==n.ref&&(s=n.ref,a=w.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)x.call(n,u)&&!k.hasOwnProperty(u)&&(i[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:e,type:t.type,key:o,ref:s,props:i,_owner:a}},ed.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},ed.createElement=S,ed.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},ed.createRef=function(){return{current:null}},ed.forwardRef=function(e){return{$$typeof:a,render:e}},ed.isValidElement=j,ed.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:E}},ed.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},ed.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},ed.unstable_act=A,ed.useCallback=function(e,t){return T.current.useCallback(e,t)},ed.useContext=function(e){return T.current.useContext(e)},ed.useDebugValue=function(){},ed.useDeferredValue=function(e){return T.current.useDeferredValue(e)},ed.useEffect=function(e,t){return T.current.useEffect(e,t)},ed.useId=function(){return T.current.useId()},ed.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},ed.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},ed.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},ed.useMemo=function(e,t){return T.current.useMemo(e,t)},ed.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},ed.useRef=function(e){return T.current.useRef(e)},ed.useState=function(e){return T.current.useState(e)},ed.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},ed.useTransition=function(){return T.current.useTransition()},ed.version="18.3.1",ed}()),eh.exports}eu.exports=function(){if(O)return ec;O=1;var e=ef(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,s){var a,l={},u=null,c=null;for(a in void 0!==s&&(u=""+s),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,a)&&!o.hasOwnProperty(a)&&(l[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===l[a]&&(l[a]=n[a]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:i.current}}return ec.Fragment=n,ec.jsx=s,ec.jsxs=s,ec}();var ep=eu.exports,em=ef();let eg=ea(em),ev=ei({__proto__:null,default:eg},[em]);
1function ey(e,t){return(ey=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ey(e,t)}var ex=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==n}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function ew(){return(ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ek="undefined"==typeof window;function eS(){}function e$(e){return"number"==typeof e&&e>=0&&e!==1/0}function ej(e){return Array.isArray(e)?e:[e]}function eO(e,t){return Math.max(e+(t||0)-Date.now(),0)}function eC(e,t,n){return eN(e)?"function"==typeof t?ew({},n,{queryKey:e,queryFn:t}):ew({},t,{queryKey:e}):e}function eU(e,t,n){return eN(e)?[ew({},t,{queryKey:e}),n]:[e||{},t]}function eE(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,s=e.predicate,a=e.queryKey,l=e.stale;if(eN(a)){if(r){if(t.queryHash!==eR(a,t.options))return!1}else if(!eM(t.queryKey,a))return!1}var u=!0===n&&!0===o||null==n&&null==o?"all":!1===n&&!1===o?"none":(null!=n?n:!o)?"active":"inactive";if("none"===u)return!1;if("all"!==u){var c=t.isActive();if("active"===u&&!c||"inactive"===u&&c)return!1}return("boolean"!=typeof l||t.isStale()===l)&&("boolean"!=typeof i||t.isFetching()===i)&&(!s||!!s(t))}function eT(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(eN(o)){if(!t.options.mutationKey)return!1;if(n){if(eA(t.options.mutationKey)!==eA(o))return!1}else if(!eM(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function eR(e,t){return((null==t?void 0:t.queryKeyHashFn)||eA)(e)}function eA(e){return JSON.stringify(ej(e),function(e,t){return eD(t)?Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}):t})}function eM(e,t){return function e(t,n){return t===n||typeof t==typeof n&&!!t&&!!n&&"object"==typeof t&&"object"==typeof n&&!Object.keys(n).some(function(r){return!e(t[r],n[r])})}(ej(e),ej(t))}function eP(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||eD(e)&&eD(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{},a=0,l=0;l<o;l++){var u=n?l:i[l];s[u]=eP(e[u],t[u]),s[u]===e[u]&&a++}return r===o&&a===r?e:s}return t}function eD(e){if(!eI(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!(eI(n)&&n.hasOwnProperty("isPrototypeOf"))}function eI(e){return"[object Object]"===Object.prototype.toString.call(e)}function eN(e){return"string"==typeof e||Array.isArray(e)}function eF(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function ez(){if("function"==typeof AbortController)return new AbortController}var eL=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!ek&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}eb(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()})},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(e){e()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(ex)),e_=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!ek&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n
1)}}},t}eb(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()})},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(e){e()})},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(ex));function eB(e){return Math.min(1e3*Math.pow(2,e),3e4)}function eV(e){return"function"==typeof(null==e?void 0:e.cancel)}var eW=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function eq(e){return e instanceof eW}var eJ=function(e){var t,n,r,i,o=this,s=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){s=!0},this.continueRetry=function(){s=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){r=e,i=t});var a=function(t){o.isResolved||(o.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),r(t))},l=function(t){o.isResolved||(o.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),i(t))};!function r(){var i;if(!o.isResolved){try{i=e.fn()}catch(e){i=Promise.reject(e)}t=function(e){if(!o.isResolved&&(l(new eW(e)),null==o.abort||o.abort(),eV(i)))try{i.cancel()}catch(e){}},o.isTransportCancelable=eV(i),Promise.resolve(i).then(a).catch(function(t){if(!o.isResolved){var i,a,u=null!=(i=e.retry)?i:3,c=null!=(a=e.retryDelay)?a:eB,h="function"==typeof c?c(o.failureCount,t):c,d=!0===u||"number"==typeof u&&o.failureCount<u||"function"==typeof u&&u(o.failureCount,t);if(s||!d){l(t);return}o.failureCount++,null==e.onFail||e.onFail(o.failureCount,t),new Promise(function(e){setTimeout(e,h)}).then(function(){if(!eL.isFocused()||!e_.isOnline())return new Promise(function(t){n=t,o.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){n=void 0,o.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){s?l(t):r()})}})}}()},eH=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):eF(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule(function(){e.apply(void 0,r)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&eF(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}()),eK=console,eG=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=ew({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),e$(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,i=this.state.data,o="function"==typeof e?e(i):e;return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,i,o))?o=i:!1!==this.options.structuralSharing&&(o=eP(i,o)),this.dispatch({data:o,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),o},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(eS).catch(eS):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!eO(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abort
1SignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,i,o,s,a,l=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(n=this.retryer)||n.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find(function(e){return e.options.queryFn});u&&this.setOptions(u.options)}var c=ej(this.queryKey),h=ez(),d={queryKey:c,pageParam:void 0,meta:this.meta};Object.defineProperty(d,"signal",{enumerable:!0,get:function(){if(h)return l.abortSignalConsumed=!0,h.signal}});var f={fetchOptions:t,options:this.options,queryKey:c,state:this.state,fetchFn:function(){return l.options.queryFn?(l.abortSignalConsumed=!1,l.options.queryFn(d)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(o=this.options.behavior)?void 0:o.onFetch)&&(null==(r=this.options.behavior)||r.onFetch(f)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(s=f.fetchOptions)?void 0:s.meta)||this.dispatch({type:"fetch",meta:null==(i=f.fetchOptions)?void 0:i.meta}),this.retryer=new eJ({fn:f.fetchFn,abort:null==h?void 0:null==(a=h.abort)?void 0:a.bind(h),onSuccess:function(e){l.setData(e),null==l.cache.config.onSuccess||l.cache.config.onSuccess(e,l),0===l.cacheTime&&l.optionalRemove()},onError:function(e){eq(e)&&e.silent||l.dispatch({type:"error",error:e}),eq(e)||(null==l.cache.config.onError||l.cache.config.onError(e,l),eK.error(e)),0===l.cacheTime&&l.optionalRemove()},onFail:function(){l.dispatch({type:"failed"})},onPause:function(){l.dispatch({type:"pause"})},onContinue:function(){l.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),eH.batch(function(){t.observers.forEach(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:"queryUpdated",action:e})})},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return ew({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return ew({},e,{isPaused:!0});case"continue":return ew({},e,{isPaused:!1});case"fetch":return ew({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return ew({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;if(eq(i)&&i.revert&&this.revertState)return ew({},this.revertState);return ew({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return ew({},e,{isInvalidated:!0});case"setState":return ew({},e,t.state);default:return e}},e}(),eQ=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}eb(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,i=t.queryKey,o=null!=(r=t.queryHash)?r:eR(i,t),s=this.get(o);return s||(s=new eG({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;
1eH.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=eU(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(e){return eE(n,e)})},n.findAll=function(e,t){var n=eU(e,t)[0];return Object.keys(n).length>0?this.queries.filter(function(e){return eE(n,e)}):this.queries},n.notify=function(e){var t=this;eH.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){var e=this;eH.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},n.onOnline=function(){var e=this;eH.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(ex),eX=function(){function e(e){this.options=ew({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||eY(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(eS).catch(eS)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),r.then(function(){return t.executeMutation()}).then(function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),eK.error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new eJ({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return ew({},e,{failureCount:e.failureCount+1});case"pause":return ew({},e,{isPaused:!0});case"continue":return ew({},e,{isPaused:!1});case"loading":return ew({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return ew({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return ew({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return ew({},e,t.state);default:return e}}(this.state,e),eH.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}();function eY(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}var eZ=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}eb(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new eX({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},n.clear=function(){var e=this;eH.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return eT(e,t)})},n.findAll=function(e){return this.mutations.filter(function(t){return eT(e,t)})},n.notify=function(e){var t=this;
1eH.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPaused});return eH.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(eS)})},Promise.resolve())})},t}(ex);function e0(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var e1=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new eQ,this.mutationCache=e.mutationCache||new eZ,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=eL.subscribe(function(){eL.isFocused()&&e_.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=e_.subscribe(function(){eL.isFocused()&&e_.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=eU(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(ew({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,n){var r=eC(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return eH.batch(function(){return r.getQueryCache().findAll(e).map(function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]})})},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=eU(e,t)[0],r=this.queryCache;eH.batch(function(){r.findAll(n).forEach(function(e){r.remove(e)})})},t.resetQueries=function(e,t,n){var r=this,i=eU(e,t,n),o=i[0],s=i[1],a=this.queryCache,l=ew({},o,{active:!0});return eH.batch(function(){return a.findAll(o).forEach(function(e){e.reset()}),r.refetchQueries(l,s)})},t.cancelQueries=function(e,t,n){var r=this,i=eU(e,t,n),o=i[0],s=i[1],a=void 0===s?{}:s;return void 0===a.revert&&(a.revert=!0),Promise.all(eH.batch(function(){return r.queryCache.findAll(o).map(function(e){return e.cancel(a)})})).then(eS).catch(eS)},t.invalidateQueries=function(e,t,n){var r,i,o,s=this,a=eU(e,t,n),l=a[0],u=a[1],c=ew({},l,{active:null==(r=null!=(i=l.refetchActive)?i:l.active)||r,inactive:null!=(o=l.refetchInactive)&&o});return eH.batch(function(){return s.queryCache.findAll(l).forEach(function(e){e.invalidate()}),s.refetchQueries(c,u)})},t.refetchQueries=function(e,t,n){var r=this,i=eU(e,t,n),o=i[0],s=i[1],a=Promise.all(eH.batch(function(){return r.queryCache.findAll(o).map(function(e){return e.fetch(void 0,ew({},s,{meta:{refetchPage:null==o?void 0:o.refetchPage}}))})})).then(eS);return(null==s?void 0:s.throwOnError)||(a=a.catch(eS)),a},t.fetchQuery=function(e,t,n){var r=eC(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);var o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(eS).catch(eS)},t.fetchInfiniteQuery=function(e,t,n){var r=eC(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,i,o,s,a,l=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,u=null==(r=e.fetchOptions)?void 0:null==(i=r.meta)?void 0:i.fetchMore,c=null==u?void 0:u.pageParam,h=(null==u?void 0:u.direction)==="forward",d=(null==u?void 0:u.direction)==="backward",f=(null==(o=e.state.data)?void 0:o.pages)||[],p=(null==(s=e.state.data)?void 0:s.pageParams)||[],m=ez(),g=null==m?void 0:m.signal,v=p,y=!1,b=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function(e,t,n,r){return v=r?[t].concat(v):[].concat(v,[t]),r?[n].concat(e):[].concat(e,[n])},w=function(t,n,r,i){if(y)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o=b({queryKey:e.queryKey,signal:g,pageParam:r,meta:e.meta}),s=Promise.resolve(o).then(function(e){return x(t,r,e,i)});return eV(o)&&(s.cancel=o.cancel),s};if(f.length){if(h){var k=void 0!==c,S=k?c:e0(e.options,f);a=w(f,k,S)}else if(d){var $,j=void 0!==c,O=j?c:null==($=e.options).getPreviousPageParam?void 0:$.getPreviousPageParam(f[0],f);a=w(f,j,O,!0)}else!function(){v=[];var t=void 0===e.options.getNextPageParam;a=!l||!f[0]||l(f[0],0,f)?w([],t,p[0]):Promise.resolve(x([],p[0],f[0]));for(var n=function(n){a=a.then(function(r){if(!l||!f[n]||l(f[n],n,f)){var i=t?p[n]:e0(e.options,r);return w(r,t,i)}return Promise.resolve(x(r,p[n],f[n]))})},r=1;r<f.length;r++)n(r)}()}else a=w([]);
1var C=a.then(function(e){return{pages:e,pageParams:v}});return C.cancel=function(){y=!0,null==m||m.abort(),eV(a)&&a.cancel()},C}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(eS).catch(eS)},t.cancelMutations=function(){var e=this;return Promise.all(eH.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})})).then(eS).catch(eS)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find(function(t){return eA(e)===eA(t.queryKey)});n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return eM(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find(function(t){return eA(e)===eA(t.mutationKey)});n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return eM(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=ew({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=eR(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:ew({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),e2=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}eb(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),e3(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return e4(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return e4(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&e5(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();var o=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise(function(n,r){var i=t.subscribe(function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(ew({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return t.createResult(r,n)})},n.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(eS)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!ek&&!this.currentResult.isStale&&e$(this.options.staleTime)){var t=eO(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t+1)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!ek&&!1!==this.options.enabled&&e$(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackgroun
1d||eL.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r,i=this.currentQuery,o=this.options,s=this.currentResult,a=this.currentResultState,l=this.currentResultOptions,u=e!==i,c=u?e.state:this.currentQueryInitialState,h=u?this.currentResult:this.previousQueryResult,d=e.state,f=d.dataUpdatedAt,p=d.error,m=d.errorUpdatedAt,g=d.isFetching,v=d.status,y=!1,b=!1;if(t.optimisticResults){var x=this.hasListeners(),w=!x&&e3(e,t),k=x&&e5(e,i,t,o);(w||k)&&(g=!0,f||(v="loading"))}if(t.keepPreviousData&&!d.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==v)n=h.data,f=h.dataUpdatedAt,v=h.status,y=!0;else if(t.select&&void 0!==d.data){if(s&&d.data===(null==a?void 0:a.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),!1!==t.structuralSharing&&(n=eP(null==s?void 0:s.data,n)),this.selectResult=n,this.selectError=null}catch(e){eK.error(e),this.selectError=e}}else n=d.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===v||"idle"===v)){if((null==s?void 0:s.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))r=s.data;else if(r="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==r)try{r=t.select(r),!1!==t.structuralSharing&&(r=eP(null==s?void 0:s.data,r)),this.selectError=null}catch(e){eK.error(e),this.selectError=e}void 0!==r&&(v="success",n=r,b=!0)}return this.selectError&&(p=this.selectError,n=this.selectResult,m=Date.now(),v="error"),{status:v,isLoading:"loading"===v,isSuccess:"success"===v,isError:"error"===v,isIdle:"idle"===v,data:n,dataUpdatedAt:f,error:p,errorUpdatedAt:m,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==v,isLoadingError:"error"===v&&0===d.dataUpdatedAt,isPlaceholderData:b,isPreviousData:y,isRefetchError:"error"===v&&0!==d.dataUpdatedAt,isStale:e6(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i||"tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some(function(n){var r=e[n]!==t[n],s=null==o?void 0:o.some(function(e){return e===n}),a=null==i?void 0:i.some(function(e){return e===n});return r&&!a&&(!o||s)})},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(this.currentResult,t)){var n={cache:!0};(null==e?void 0:e.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(ew({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||eq(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;eH.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEac
1h(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},t}(ex);function e3(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&e4(e,t,t.refetchOnMount)}function e4(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&e6(e,t)}return!1}function e5(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&e6(e,n)}function e6(e,t){return e.isStaleByTime(t.staleTime)}var e8=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}eb(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,ew({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:eY(),t=ew({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;eH.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)})})},t}(ex),e9={exports:{}},e7={},te={exports:{}},tt={};!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e9.exports=function(){if(E)return e7;E=1;var e,t,n,r,i,o,s=ef(),a=(U||(U=1,te.exports=(C||(C=1,function(e){function t(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,o=e[r];if(0<i(o,t))e[r]=t,e[n]=o,n=r;else break}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else if(u<o&&0>i(c,n))e[r]=c,e[u]=n,r=u;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o,s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],h=1,d=null,f=3,p=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var i=n(c);null!==i;){if(null===i.callback)r(c);else if(i.startTime<=e)r(c),i.sortIndex=i.expirationTime,t(u,i);else break;i=n(c)}}function w(e){if(g=!1,x(e),!m){if(null!==n(u))m=!0,A(k);else{var t=n(c);null!==t&&M(w,t.startTime-e)}}}function k(t,i){m=!1,g&&(g=!1,y(j),j=-1),p=!0;var o=f;try{for(x(i),d=n(u);null!==d&&(!(d.expirationTime>i)||t&&!U());){var s=d.callback;if("function"==typeof s){d.callback=null,f=d.priorityLevel;var a=s(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof a?d.callback=a:d===n(u)&&r(u),x(i)}else r(u);d=n(u)}if(null!==d)var l=!0;else{var h=n(c);null!==h&&M(w,h.startTime-i),l=!1}return l}finally{d=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,$=null,j=-1,O=5,C=-1;function U(){return!(e.unstable_now()-C<O)}
vendor: 4,333 bytes, line 1
1function E(){if(null!==$){var t=e.unstable_now();C=t;var n=!0;try{n=$(!0,t)}finally{n?o():(S=!1,$=null)}}else S=!1}if("function"==typeof b)o=function(){b(E)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,R=T.port2;T.port1.onmessage=E,o=function(){R.postMessage(null)}}else o=function(){v(E,0)};function A(e){$=e,S||(S=!0,o())}function M(t,n){j=v(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,A(k))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,o){var s=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,r){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=o+a,r={id:h++,callback:i,priorityLevel:r,startTime:o,expirationTime:a,sortIndex:-1},o>s?(r.sortIndex=o,t(c,r),null===n(u)&&r===n(c)&&(g?(y(j),j=-1):g=!0,M(w,o-s))):(r.sortIndex=a,t(u,r),m||p||(m=!0,A(k))),r},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(tt)),tt)),te.exports);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=new Set,c={};function h(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(c[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function y(e,t,n,r,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new y(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new y(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new y(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new y(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new y(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new y(e,6,!1,e,null,!1,!1)}
vendor: 122,393 bytes, line 1
1),["rowSpan","start"].forEach(function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function k(e,t,n,r){var i,o=b.hasOwnProperty(t)?b[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;return"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?(i=t,(!!p.call(v,i)||!p.call(g,i)&&(m.test(i)?v[i]=!0:(g[i]=!0,!1)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(x,w);b[t]=new y(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(x,w);b[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(x,w);b[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});var S=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.element"),j=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),M=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),L=Symbol.iterator;function _(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var B,V=Object.assign;function W(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var q=!1;function J(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(1!==s||1!==a)do if(s--,0>--a||i[s]!==o[a]){var l="\n"+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ee(e,t){null!=(t=t.checked)&&k(e,"checked",t,!1)}function et(e,t){ee(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r){e.removeAttribute("value");return}t.hasOwnProperty("value")?er(e,t.type,n):t.hasOwnProperty("defaultValue")&&er(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function en(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function er(e,t,n){("number"!==t||X(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ei=Array.isArray;function eo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(i=0,n=""+H(n),t=null;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function es(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(l(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ea(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(l(92));if(ei(n)){if(1<n.length)throw Error(l(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function el(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function eu(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ec(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eh(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ec(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ed,ep,em=(ed=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ep=ep||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ep.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ed(e,t,n,r)})}:ed);function eg(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ev={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ey=["Webkit","ms","Moz","O"];function eb(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ev.hasOwnProperty(e)&&ev[e]?(""+t).trim():t+"px"}function ex(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=eb(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ev).forEach(function(e){ey.forEach(function(t){ev[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=ev[e]})});var ew=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ek(e,t){if(t){if(ew[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(l(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(l(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(l(62))}}function eS(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var e$=null;function ej(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var eO=null,eC=null,eU=null;function eE(e){if(e=rL(e)){if("function"!=typeof eO)throw Error(l(280));var t=e.stateNode;t&&(t=rB(t),eO(e.stateNode,e.type,t))}}function eT(e){eC?eU?eU.push(e):eU=[e]:eC=e}function eR(){if(eC){var e=eC,t=eU;if(eU=eC=null,eE(e),t)for(e=0;e<t.length;e++)eE(t[e])}}function eA(e,t){return e(t)}function eM(){}var eP=!1;function eD(e,t,n){if(eP)return e(t,n);eP=!0;try{return eA(e,t,n)}finally{eP=!1,(null!==eC||null!==eU)&&(eM(),eR())}}function eI(e,t){var n=e.stateNode;if(null===n)return null;var r=rB(n);if(null===r)return null;switch(n=r[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,typeof n));return n}var eN=!1;if(f)try{var eF={};Object.defineProperty(eF,"passive",{get:function(){eN=!0}}),window.addEventListener("test",eF,eF),window.removeEventListener("test",eF,eF)}catch(e){eN=!1}function ez(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var eL=!1,e_=null,eB=!1,eV=null,eW={onError:function(e){eL=!0,e_=e}};function eq(e,t,n,r,i,o,s,a,l){eL=!1,e_=null,ez.apply(eW,arguments)}function eJ(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function eH(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function eK(e){if(eJ(e)!==e)throw Error(l(188))}function eG(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=eJ(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return eK(i),e;if(o===r)return eK(i),t;o=o.sibling}throw Error(l(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}var eQ=a.unstable_scheduleCallback,eX=a.unstable_cancelCallback,eY=a.unstable_shouldYield,eZ=a.unstable_requestPaint,e0=a.unstable_now,e1=a.unstable_getCurrentPriorityLevel,e2=a.unstable_ImmediatePriority,e3=a.unstable_UserBlockingPriority,e4=a.unstable_NormalPriority,e5=a.unstable_LowPriority,e6=a.unstable_IdlePriority,e8=null,e9=null,tn=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(tr(e)/ti|0)|0},tr=Math.log,ti=Math.LN2,to=64,ts=4194304;function ta(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tl(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~i;0!==a?r=ta(a):0!=(o&=s)&&(r=ta(o))}else 0!=(s=n&~i)?r=ta(s):0!==o&&(r=ta(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-tn(t)),r|=e[n],t&=~i;return r}function tu(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function tc(){var e=to;return 0==(4194240&(to<<=1))&&(to=64),e}function th(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function td(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-tn(t)]=n}function tf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var tp=0;function tm(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var tg,tv,ty,tb,tx,tw=!1,tk=[],tS=null,t$=null,tj=null,tO=new Map,tC=new Map,tU=[],tE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tT(e,t){switch(e){case"focusin":case"focusout":tS=null;break;case"dragenter":case"dragleave":t$=null;break;case"mouseover":case"mouseout":tj=null;break;case"pointerover":case"pointerout":tO.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tC.delete(t.pointerId)}}function tR(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=rL(t))&&tv(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function tA(e){var t=rz(e.target);if(null!==t){var n=eJ(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=eH(n))){e.blockedOn=t,tx(e.priority,function(){ty(n)});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tM(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=tW(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=rL(n))&&tv(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);e$=r,n.target.dispatchEvent(r),e$=null,t.shift()}return!0}function tP(e,t,n){tM(e)&&n.delete(t)}function tD(){tw=!1,null!==tS&&tM(tS)&&(tS=null),null!==t$&&tM(t$)&&(t$=null),null!==tj&&tM(tj)&&(tj=null),tO.forEach(tP),tC.forEach(tP)}function tI(e,t){e.blockedOn===t&&(e.blockedOn=null,tw||(tw=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,tD)))}function tN(e){function t(t){return tI(t,e)}if(0<tk.length){tI(tk[0],e);for(var n=1;n<tk.length;n++){var r=tk[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==tS&&tI(tS,e),null!==t$&&tI(t$,e),null!==tj&&tI(tj,e),tO.forEach(t),tC.forEach(t),n=0;n<tU.length;n++)(r=tU[n]).blockedOn===e&&(r.blockedOn=null);for(;0<tU.length&&null===(n=tU[0]).blockedOn;)tA(n),null===n.blockedOn&&tU.shift()}var tF=S.ReactCurrentBatchConfig,tz=!0;function tL(e,t,n,r){var i=tp,o=tF.transition;tF.transition=null;try{tp=1,tB(e,t,n,r)}finally{tp=i,tF.transition=o}}function t_(e,t,n,r){var i=tp,o=tF.transition;tF.transition=null;try{tp=4,tB(e,t,n,r)}finally{tp=i,tF.transition=o}}function tB(e,t,n,r){if(tz){var i=tW(e,t,n,r);if(null===i)rh(e,t,r,tV,n),tT(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return tS=tR(tS,e,t,n,r,i),!0;case"dragenter":return t$=tR(t$,e,t,n,r,i),!0;case"mouseover":return tj=tR(tj,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return tO.set(o,tR(tO.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,tC.set(o,tR(tC.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(tT(e,r),4&t&&-1<tE.indexOf(e)){for(;null!==i;){var o=rL(i);if(null!==o&&tg(o),null===(o=tW(e,t,n,r))&&rh(e,t,r,tV,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else rh(e,t,r,null,n)}}var tV=null;function tW(e,t,n,r){if(tV=null,null!==(e=rz(e=ej(r)))){if(null===(t=eJ(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=eH(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}return tV=e,null}function tq(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(e1()){case e2:return 1;case e3:return 4;case e4:case e5:return 16;case e6:return 536870912;default:return 16}default:return 16}}var tJ=null,tH=null,tK=null;function tG(){if(tK)return tK;var e,t,n=tH,r=n.length,i="value"in tJ?tJ.value:tJ.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return tK=i.slice(e,1<t?1-t:void 0)}function tQ(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tX(){return!0}function tY(){return!1}function tZ(e){function t(t,n,r,i,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?tX:tY,this.isPropagationStopped=tY,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tX)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tX)},persist:function(){},isPersistent:tX}),t}var t0,t1,t2,t3={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},t4=tZ(t3),t5=V({},t3,{view:0,detail:0}),t6=tZ(t5),t8=V({},t5,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nl,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==t2&&(t2&&"mousemove"===e.type?(t0=e.screenX-t2.screenX,t1=e.screenY-t2.screenY):t1=t0=0,t2=e),t0)},movementY:function(e){return"movementY"in e?e.movementY:t1}}),t9=tZ(t8),t7=tZ(V({},t8,{dataTransfer:0})),ne=tZ(V({},t5,{relatedTarget:0})),nt=tZ(V({},t3,{animationName:0,elapsedTime:0,pseudoElement:0})),nn=tZ(V({},t3,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),nr=tZ(V({},t3,{data:0})),ni={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},no={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ns={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function na(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=ns[e])&&!!t[e]}function nl(){return na}var nu=tZ(V({},t5,{key:function(e){if(e.key){var t=ni[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tQ(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?no[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nl,charCode:function(e){return"keypress"===e.type?tQ(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tQ(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),nc=tZ(V({},t8,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nh=tZ(V({},t5,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nl})),nd=tZ(V({},t3,{propertyName:0,elapsedTime:0,pseudoElement:0})),nf=tZ(V({},t8,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),np=[9,13,27,32],nm=f&&"CompositionEvent"in window,ng=null;f&&"documentMode"in document&&(ng=document.documentMode);var nv=f&&"TextEvent"in window&&!ng,ny=f&&(!nm||ng&&8<ng&&11>=ng),nb=!1;function nx(e,t){switch(e){case"keyup":return -1!==np.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nw(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nk=!1,nS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function n$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nS[e.type]:"textarea"===t}function nj(e,t,n,r){eT(r),0<(t=rf(t,"onChange")).length&&(n=new t4("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nO=null,nC=null;function nU(e){ro(e,0)}function nE(e){if(Q(r_(e)))return e}function nT(e,t){if("change"===e)return t}var nR=!1;if(f){if(f){var nA="oninput"in document;if(!nA){var nM=document.createElement("div");nM.setAttribute("oninput","return;"),nA="function"==typeof nM.oninput}e=nA}else e=!1;nR=e&&(!document.documentMode||9<document.documentMode)}function nP(){nO&&(nO.detachEvent("onpropertychange",nD),nC=nO=null)}function nD(e){if("value"===e.propertyName&&nE(nC)){var t=[];nj(t,nC,e,ej(e)),eD(nU,t)}}function nI(e,t,n){"focusin"===e?(nP(),nO=t,nC=n,nO.attachEvent("onpropertychange",nD)):"focusout"===e&&nP()}function nN(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nE(nC)}function nF(e,t){if("click"===e)return nE(t)}function nz(e,t){if("input"===e||"change"===e)return nE(t)}var nL="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function n_(e,t){if(nL(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!p.call(t,i)||!nL(e[i],t[i]))return!1}return!0}function nB(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nV(e,t){var n,r=nB(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nB(r)}}function nW(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=X(e.document)}return t}function nq(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nJ=f&&"documentMode"in document&&11>=document.documentMode,nH=null,nK=null,nG=null,nQ=!1;function nX(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nQ||null==nH||nH!==X(r)||(r="selectionStart"in(r=nH)&&nq(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nG&&n_(nG,r)||(nG=r,0<(r=rf(nK,"onSelect")).length&&(t=new t4("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nH)))}function nY(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nZ={animationend:nY("Animation","AnimationEnd"),animationiteration:nY("Animation","AnimationIteration"),animationstart:nY("Animation","AnimationStart"),transitionend:nY("Transition","TransitionEnd")},n0={},n1={};function n2(e){if(n0[e])return n0[e];if(!nZ[e])return e;var t,n=nZ[e];for(t in n)if(n.hasOwnProperty(t)&&t in n1)return n0[e]=n[t];return e}f&&(n1=document.createElement("div").style,"AnimationEvent"in window||(delete nZ.animationend.animation,delete nZ.animationiteration.animation,delete nZ.animationstart.animation),"TransitionEvent"in window||delete nZ.transitionend.transition);var n3=n2("animationend"),n4=n2("animationiteration"),n5=n2("animationstart"),n6=n2("transitionend"),n8=new Map,n9="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function n7(e,t){n8.set(e,t),h(t,[e])}for(var re=0;re<n9.length;re++){var rt=n9[re];n7(rt.toLowerCase(),"on"+(rt[0].toUpperCase()+rt.slice(1)))}n7(n3,"onAnimationEnd"),n7(n4,"onAnimationIteration"),n7(n5,"onAnimationStart"),n7("dblclick","onDoubleClick"),n7("focusin","onFocus"),n7("focusout","onBlur"),n7(n6,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(rn));function ri(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,a,u){if(eq.apply(this,arguments),eL){if(eL){var c=e_;eL=!1,e_=null}else throw Error(l(198));eB||(eB=!0,eV=c)}}(r,t,void 0,e),e.currentTarget=null}function ro(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;ri(i,a,u),o=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;ri(i,a,u),o=l}}}if(eB)throw e=eV,eB=!1,eV=null,e}function rs(e,t){var n=t[rI];void 0===n&&(n=t[rI]=new Set);var r=e+"__bubble";n.has(r)||(rc(t,e,2,!1),n.add(r))}function ra(e,t,n){var r=0;t&&(r|=4),rc(n,e,r,t)}var rl="_reactListening"+Math.random().toString(36).slice(2);function ru(e){if(!e[rl]){e[rl]=!0,u.forEach(function(t){"selectionchange"!==t&&(rr.has(t)||ra(t,!1,e),ra(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[rl]||(t[rl]=!0,ra("selectionchange",!1,t))}}function rc(e,t,n,r){switch(tq(t)){case 1:var i=tL;break;case 4:i=t_;break;default:i=tB}n=i.bind(null,t,n,e),i=void 0,eN&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function rh(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=rz(a)))return;if(5===(l=s.tag)||6===l){r=o=s;continue e}a=a.parentNode}}r=r.return}eD(function(){var r=o,i=ej(n),s=[];e:{var a=n8.get(e);if(void 0!==a){var l=t4,u=e;switch(e){case"keypress":if(0===tQ(n))break e;case"keydown":case"keyup":l=nu;break;case"focusin":u="focus",l=ne;break;case"focusout":u="blur",l=ne;break;case"beforeblur":case"afterblur":l=ne;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=t9;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=t7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=nh;break;case n3:case n4:case n5:l=nt;break;case n6:l=nd;break;case"scroll":l=t6;break;case"wheel":l=nf;break;case"copy":case"cut":case"paste":l=nn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=nc}var c=0!=(4&t),h=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var f,p=r;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==d&&null!=(m=eI(p,d))&&c.push(rd(p,m,f))),h)break;p=p.return}0<c.length&&(a=new l(a,u,null,n,i),s.push({event:a,listeners:c}))}}if(0==(7&t)){if(a="mouseover"===e||"pointerover"===e,l="mouseout"===e||"pointerout"===e,!(a&&n!==e$&&(u=n.relatedTarget||n.fromElement)&&(rz(u)||u[rD]))&&(l||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,null!==(u=u?rz(u):null)&&(h=eJ(u),u!==h||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=t9,m="onMouseLeave",d="onMouseEnter",p="mouse",("pointerout"===e||"pointerover"===e)&&(c=nc,m="onPointerLeave",d="onPointerEnter",p="pointer"),h=null==l?a:r_(l),f=null==u?a:r_(u),(a=new c(m,p+"leave",l,n,i)).target=h,a.relatedTarget=f,m=null,rz(i)===r&&((c=new c(d,p+"enter",u,n,i)).target=f,c.relatedTarget=h,m=c),h=m,l&&u)t:{for(c=l,d=u,p=0,f=c;f;f=rp(f))p++;for(f=0,m=d;m;m=rp(m))f++;for(;0<p-f;)c=rp(c),p--;for(;0<f-p;)d=rp(d),f--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break t;c=rp(c),d=rp(d)}c=null}else c=null;null!==l&&rm(s,a,l,c,!1),null!==u&&null!==h&&rm(s,h,u,c,!0)}e:{if("select"===(l=(a=r?r_(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g,v=nT;else if(n$(a)){if(nR)v=nz;else{v=nN;var y=nI}}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(v=nF);if(v&&(v=v(e,r))){nj(s,v,n,i);break e}y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&er(a,"number",a.value)}switch(y=r?r_(r):window,e){case"focusin":(n$(y)||"true"===y.contentEditable)&&(nH=y,nK=r,nG=null);break;case"focusout":nG=nK=nH=null;break;case"mousedown":nQ=!0;break;case"contextmenu":case"mouseup":case"dragend":nQ=!1,nX(s,n,i);break;case"selectionchange":if(nJ)break;case"keydown":case"keyup":nX(s,n,i)}if(nm)t:{switch(e){case"compositionstart":var b="onCompositionStart";break t;case"compositionend":b="onCompositionEnd";break t;case"compositionupdate":b="onCompositionUpdate";break t}b=void 0}else nk?nx(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(ny&&"ko"!==n.locale&&(nk||"onCompositionStart"!==b?"onCompositionEnd"===b&&nk&&(g=tG()):(tH="value"in(tJ=i)?tJ.value:tJ.textContent,nk=!0)),0<(y=rf(r,b)).length&&(b=new nr(b,e,null,n,i),s.push({event:b,listeners:y}),g?b.data=g:null!==(g=nw(n))&&(b.data=g))),(g=nv?function(e,t){switch(e){case"compositionend":return nw(t);case"keypress":if(32!==t.which)return null;return nb=!0," ";case"textInput":return" "===(e=t.data)&&nb?null:e;default:return null}}(e,n):function(e,t){if(nk)return"compositionend"===e||!nm&&nx(e,t)?(e=tG(),tK=tH=tJ=null,nk=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ny&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=rf(r,"onBeforeInput")).length&&(i=new nr("onBeforeInput","beforeinput",null,n,i),s.push({event:i,listeners:r}),i.data=g)}ro(s,t)})}function rd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rf(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=eI(e,n))&&r.unshift(rd(e,o,i)),null!=(o=eI(e,t))&&r.push(rd(e,o,i))),e=e.return}return r}function rp(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function rm(e,t,n,r,i){for(var o=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,i?null!=(l=eI(n,o))&&s.unshift(rd(n,l,a)):i||null!=(l=eI(n,o))&&s.push(rd(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var rg=/\r\n?/g,rv=/\u0000|\uFFFD/g;function ry(e){return("string"==typeof e?e:""+e).replace(rg,"\n").replace(rv,"")}function rb(e,t,n){if(t=ry(t),ry(e)!==t&&n)throw Error(l(425))}function rx(){}var rw=null,rk=null;function rS(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var r$="function"==typeof setTimeout?setTimeout:void 0,rj="function"==typeof clearTimeout?clearTimeout:void 0,rO="function"==typeof Promise?Promise:void 0,rC="function"==typeof queueMicrotask?queueMicrotask:void 0!==rO?function(e){return rO.resolve(null).then(e).catch(rU)}:r$;function rU(e){setTimeout(function(){throw e})}function rE(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType){if("/$"===(n=i.data)){if(0===r){e.removeChild(i),tN(t);return}r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++}n=i}while(n);tN(t)}function rT(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function rR(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var rA=Math.random().toString(36).slice(2),rM="__reactFiber$"+rA,rP="__reactProps$"+rA,rD="__reactContainer$"+rA,rI="__reactEvents$"+rA,rN="__reactListeners$"+rA,rF="__reactHandles$"+rA;function rz(e){var t=e[rM];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rD]||n[rM]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=rR(e);null!==e;){if(n=e[rM])return n;e=rR(e)}return t}n=(e=n).parentNode}return null}function rL(e){return(e=e[rM]||e[rD])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function r_(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(l(33))}function rB(e){return e[rP]||null}var rV=[],rW=-1;function rq(e){return{current:e}}function rJ(e){0>rW||(e.current=rV[rW],rV[rW]=null,rW--)}function rH(e,t){rV[++rW]=e.current,e.current=t}var rK={},rG=rq(rK),rQ=rq(!1),rX=rK;function rY(e,t){var n=e.type.contextTypes;if(!n)return rK;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rZ(e){return null!=(e=e.childContextTypes)}function r0(){rJ(rQ),rJ(rG)}function r1(e,t,n){if(rG.current!==rK)throw Error(l(168));rH(rG,t),rH(rQ,n)}function r2(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(l(108,function(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case O:return"Fragment";case j:return"Portal";case R:return"Profiler";case T:return"StrictMode";case D:return"Suspense";case I:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case M:return(t.displayName||"Context")+".Consumer";case A:return(t._context.displayName||"Context")+".Provider";case P:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case N:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case F:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(t);case 8:return t===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}(e)||"Unknown",i));return V({},n,r)}function r3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rK,rX=rG.current,rH(rG,e),rH(rQ,rQ.current),!0}function r4(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=r2(e,t,rX),r.__reactInternalMemoizedMergedChildContext=e,rJ(rQ),rJ(rG),rH(rG,e)):rJ(rQ),rH(rQ,n)}var r5=null,r6=!1,r8=!1;function r9(e){null===r5?r5=[e]:r5.push(e)}function r7(){if(!r8&&null!==r5){r8=!0;var e=0,t=tp;try{var n=r5;for(tp=1;e<n.length;e++){var r=n[e];do r=r(!0);while(null!==r)}r5=null,r6=!1}catch(t){throw null!==r5&&(r5=r5.slice(e+1)),eQ(e2,r7),t}finally{tp=t,r8=!1}}return null}var ie=[],it=0,ir=null,ii=0,io=[],is=0,ia=null,il=1,iu="";function ic(e,t){ie[it++]=ii,ie[it++]=ir,ir=e,ii=t}function ih(e,t,n){io[is++]=il,io[is++]=iu,io[is++]=ia,ia=e;var r=il;e=iu;var i=32-tn(r)-1;r&=~(1<<i),n+=1;var o=32-tn(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,il=1<<32-tn(t)+i|n<<i|r,iu=o+e}else il=1<<o|n<<i|r,iu=e}function id(e){null!==e.return&&(ic(e,1),ih(e,1,0))}function ip(e){for(;e===ir;)ir=ie[--it],ie[it]=null,ii=ie[--it],ie[it]=null;for(;e===ia;)ia=io[--is],io[is]=null,iu=io[--is],io[is]=null,il=io[--is],io[is]=null}var im=null,ig=null,iv=!1,iy=null;function ib(e,t){var n=aY(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ix(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,im=e,ig=rT(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,im=e,ig=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==ia?{id:il,overflow:iu}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=aY(18,null,null,0)).stateNode=t,n.return=e,e.child=n,im=e,ig=null,!0);default:return!1}}function iw(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ik(e){if(iv){var t=ig;if(t){var n=t;if(!ix(e,t)){if(iw(e))throw Error(l(418));t=rT(n.nextSibling);var r=im;t&&ix(e,t)?ib(r,n):(e.flags=-4097&e.flags|2,iv=!1,im=e)}}else{if(iw(e))throw Error(l(418));e.flags=-4097&e.flags|2,iv=!1,im=e}}}function iS(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;im=e}function i$(e){if(e!==im)return!1;if(!iv)return iS(e),iv=!0,!1;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!rS(e.type,e.memoizedProps)),t&&(t=ig)){if(iw(e))throw ij(),Error(l(418));for(;t;)ib(e,t),t=rT(t.nextSibling)}if(iS(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));e:{for(t=0,e=e.nextSibling;e;){if(8===e.nodeType){var t,n=e.data;if("/$"===n){if(0===t){ig=rT(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ig=null}}else ig=im?rT(e.stateNode.nextSibling):null;return!0}function ij(){for(var e=ig;e;)e=rT(e.nextSibling)}function iO(){ig=im=null,iv=!1}function iC(e){null===iy?iy=[e]:iy.push(e)}var iU=S.ReactCurrentBatchConfig;function iE(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(l(309));var r=n.stateNode}if(!r)throw Error(l(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function iT(e,t){throw Error(l(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iR(e){return(0,e._init)(e._payload)}function iA(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=a0(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function a(e,t,n,r){return null===t||6!==t.tag?(t=a4(n,e.mode,r)).return=e:(t=i(t,n)).return=e,t}function u(e,t,n,r){var o=n.type;return o===O?h(e,t,n.props.children,r,n.key):(null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===F&&iR(o)===t.type)?(r=i(t,n.props)).ref=iE(e,t,n):(r=a1(n.type,n.key,n.props,null,e.mode,r)).ref=iE(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=a5(n,e.mode,r)).return=e:(t=i(t,n.children||[])).return=e,t}function h(e,t,n,r,o){return null===t||7!==t.tag?(t=a2(n,e.mode,r,o)).return=e:(t=i(t,n)).return=e,t}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=a4(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case $:return(n=a1(t.type,t.key,t.props,null,e.mode,n)).ref=iE(e,null,t),n.return=e,n;case j:return(t=a5(t,e.mode,n)).return=e,t;case F:return d(e,(0,t._init)(t._payload),n)}if(ei(t)||_(t))return(t=a2(t,e.mode,n,null)).return=e,t;iT(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:a(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case $:return n.key===i?u(e,t,n,r):null;case j:return n.key===i?c(e,t,n,r):null;case F:return f(e,t,(i=n._init)(n._payload),r)}if(ei(n)||_(n))return null!==i?null:h(e,t,n,r,null);iT(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return a(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case $:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case j:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case F:return p(e,t,n,(0,r._init)(r._payload),i)}if(ei(r)||_(r))return h(t,e=e.get(n)||null,r,i,null);iT(t,r)}return null}return function a(u,c,h,m){if("object"==typeof h&&null!==h&&h.type===O&&null===h.key&&(h=h.props.children),"object"==typeof h&&null!==h){switch(h.$$typeof){case $:e:{for(var g=h.key,v=c;null!==v;){if(v.key===g){if((g=h.type)===O){if(7===v.tag){n(u,v.sibling),(c=i(v,h.props.children)).return=u,u=c;break e}}else if(v.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===F&&iR(g)===v.type){n(u,v.sibling),(c=i(v,h.props)).ref=iE(u,v,h),c.return=u,u=c;break e}n(u,v);break}t(u,v),v=v.sibling}h.type===O?((c=a2(h.props.children,u.mode,m,h.key)).return=u,u=c):((m=a1(h.type,h.key,h.props,null,u.mode,m)).ref=iE(u,c,h),m.return=u,u=m)}return s(u);case j:e:{for(v=h.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(u,c.sibling),(c=i(c,h.children||[])).return=u,u=c;break e}n(u,c);break}t(u,c),c=c.sibling}(c=a5(h,u.mode,m)).return=u,u=c}return s(u);case F:return a(u,c,(v=h._init)(h._payload),m)}if(ei(h))return function(i,s,a,l){for(var u=null,c=null,h=s,m=s=0,g=null;null!==h&&m<a.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=f(i,h,a[m],l);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(i,h),s=o(v,s,m),null===c?u=v:c.sibling=v,c=v,h=g}if(m===a.length)return n(i,h),iv&&ic(i,m),u;if(null===h){for(;m<a.length;m++)null!==(h=d(i,a[m],l))&&(s=o(h,s,m),null===c?u=h:c.sibling=h,c=h);return iv&&ic(i,m),u}for(h=r(i,h);m<a.length;m++)null!==(g=p(h,i,m,a[m],l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),s=o(g,s,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach(function(e){return t(i,e)}),iv&&ic(i,m),u}(u,c,h,m);if(_(h))return function(i,s,a,u){var c=_(a);if("function"!=typeof c)throw Error(l(150));if(null==(a=c.call(a)))throw Error(l(151));for(var h=c=null,m=s,g=s=0,v=null,y=a.next();null!==m&&!y.done;g++,y=a.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===h?c=b:h.sibling=b,h=b,m=v}if(y.done)return n(i,m),iv&&ic(i,g),c;if(null===m){for(;!y.done;g++,y=a.next())null!==(y=d(i,y.value,u))&&(s=o(y,s,g),null===h?c=y:h.sibling=y,h=y);return iv&&ic(i,g),c}for(m=r(i,m);!y.done;g++,y=a.next())null!==(y=p(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===h?c=y:h.sibling=y,h=y);return e&&m.forEach(function(e){return t(i,e)}),iv&&ic(i,g),c}(u,c,h,m);iT(u,h)}return"string"==typeof h&&""!==h||"number"==typeof h?(h=""+h,null!==c&&6===c.tag?(n(u,c.sibling),(c=i(c,h)).return=u):(n(u,c),(c=a4(h,u.mode,m)).return=u),s(u=c)):n(u,c)}}var iM=iA(!0),iP=iA(!1),iD=rq(null),iI=null,iN=null,iF=null;function iz(){iF=iN=iI=null}function iL(e){var t=iD.current;rJ(iD),e._currentValue=t}function i_(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function iB(e,t){iI=e,iF=iN=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(sh=!0),e.firstContext=null)}function iV(e){var t=e._currentValue;if(iF!==e){if(e={context:e,memoizedValue:t,next:null},null===iN){if(null===iI)throw Error(l(308));iN=e,iI.dependencies={lanes:0,firstContext:e}}else iN=iN.next=e}return t}var iW=null;function iq(e){null===iW?iW=[e]:iW.push(e)}function iJ(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,iq(t)):(n.next=i.next,i.next=n),t.interleaved=n,iH(e,r)}function iH(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var iK=!1;function iG(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iQ(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function iX(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function iY(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&s9)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,iH(e,n)}return null===(i=r.interleaved)?(t.next=t,iq(r)):(t.next=i.next,i.next=t),r.interleaved=t,iH(e,n)}function iZ(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tf(e,n)}}function i0(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function i1(e,t,n,r){var i=e.updateQueue;iK=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?o=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==o){var h=i.baseState;for(s=0,c=u=l=null,a=o;;){var d=a.lane,f=a.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(d=t,f=n,m.tag){case 1:if("function"==typeof(p=m.payload)){h=p.call(f,h,d);break e}h=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(d="function"==typeof(p=m.payload)?p.call(f,h,d):p))break e;h=V({},h,d);break e;case 2:iK=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[a]:d.push(a))}else f={eventTime:f,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=f,l=h):c=c.next=f,s|=d;if(null===(a=a.next)){if(null===(a=i.shared.pending))break;a=(d=a).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do s|=i.lane,i=i.next;while(i!==t)}else null===o&&(i.shared.lanes=0);as|=s,e.lanes=s,e.memoizedState=h}}function i2(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(l(191,i));i.call(r)}}}var i3={},i4=rq(i3),i5=rq(i3),i6=rq(i3);function i8(e){if(e===i3)throw Error(l(174));return e}function i9(e,t){switch(rH(i6,t),rH(i5,e),rH(i4,i3),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eh(null,"");break;default:t=eh(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}rJ(i4),rH(i4,t)}function i7(){rJ(i4),rJ(i5),rJ(i6)}function oe(e){i8(i6.current);var t=i8(i4.current),n=eh(t,e.type);t!==n&&(rH(i5,e),rH(i4,n))}function ot(e){i5.current===e&&(rJ(i4),rJ(i5))}var on=rq(0);function or(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oi=[];function oo(){for(var e=0;e<oi.length;e++)oi[e]._workInProgressVersionPrimary=null;oi.length=0}var os=S.ReactCurrentDispatcher,oa=S.ReactCurrentBatchConfig,ol=0,ou=null,oc=null,oh=null,od=!1,of=!1,op=0,om=0;function og(){throw Error(l(321))}function ov(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nL(e[n],t[n]))return!1;return!0}function oy(e,t,n,r,i,o){if(ol=o,ou=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=null===e||null===e.memoizedState?o1:o2,e=n(r,i),of){o=0;do{if(of=!1,op=0,25<=o)throw Error(l(301));o+=1,oh=oc=null,t.updateQueue=null,os.current=o3,e=n(r,i)}while(of)}if(os.current=o0,t=null!==oc&&null!==oc.next,ol=0,oh=oc=ou=null,od=!1,t)throw Error(l(300));return e}function ob(){var e=0!==op;return op=0,e}function ox(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oh?ou.memoizedState=oh=e:oh=oh.next=e,oh}function ow(){if(null===oc){var e=ou.alternate;e=null!==e?e.memoizedState:null}else e=oc.next;var t=null===oh?ou.memoizedState:oh.next;if(null!==t)oh=t,oc=e;else{if(null===e)throw Error(l(310));e={memoizedState:(oc=e).memoizedState,baseState:oc.baseState,baseQueue:oc.baseQueue,queue:oc.queue,next:null},null===oh?ou.memoizedState=oh=e:oh=oh.next=e}return oh}function ok(e,t){return"function"==typeof t?t(e):t}function oS(e){var t=ow(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=oc,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var a=s=null,u=null,c=o;do{var h=c.lane;if((ol&h)===h)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(a=u=d,s=r):u=u.next=d,ou.lanes|=h,as|=h}c=c.next}while(null!==c&&c!==o);null===u?s=r:u.next=a,nL(r,t.memoizedState)||(sh=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do o=i.lane,ou.lanes|=o,as|=o,i=i.next;while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function o$(e){var t=ow(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);nL(o,t.memoizedState)||(sh=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function oj(){}function oO(e,t){var n=ou,r=ow(),i=t(),o=!nL(r.memoizedState,i);if(o&&(r.memoizedState=i,sh=!0),r=r.queue,oF(oE.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==oh&&1&oh.memoizedState.tag){if(n.flags|=2048,oM(9,oU.bind(null,n,r,i,t),void 0,null),null===s7)throw Error(l(349));0!=(30&ol)||oC(n,t,i)}return i}function oC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ou.updateQueue)?(t={lastEffect:null,stores:null},ou.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function oU(e,t,n,r){t.value=n,t.getSnapshot=r,oT(t)&&oR(e)}function oE(e,t,n){return n(function(){oT(t)&&oR(e)})}function oT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nL(e,n)}catch(e){return!0}}function oR(e){var t=iH(e,1);null!==t&&aO(t,e,1,-1)}function oA(e){var t=ox();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ok,lastRenderedState:e},t.queue=e,e=e.dispatch=oQ.bind(null,ou,e),[t.memoizedState,e]}function oM(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ou.updateQueue)?(t={lastEffect:null,stores:null},ou.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function oP(){return ow().memoizedState}function oD(e,t,n,r){var i=ox();ou.flags|=e,i.memoizedState=oM(1|t,n,void 0,void 0===r?null:r)}function oI(e,t,n,r){var i=ow();r=void 0===r?null:r;var o=void 0;if(null!==oc){var s=oc.memoizedState;if(o=s.destroy,null!==r&&ov(r,s.deps)){i.memoizedState=oM(t,n,o,r);return}}ou.flags|=e,i.memoizedState=oM(1|t,n,o,r)}function oN(e,t){return oD(8390656,8,e,t)}function oF(e,t){return oI(2048,8,e,t)}function oz(e,t){return oI(4,2,e,t)}function oL(e,t){return oI(4,4,e,t)}function o_(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function oB(e,t,n){return n=null!=n?n.concat([e]):null,oI(4,4,o_.bind(null,t,e),n)}function oV(){}function oW(e,t){var n=ow();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ov(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function oq(e,t){var n=ow();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ov(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oJ(e,t,n){return 0==(21&ol)?(e.baseState&&(e.baseState=!1,sh=!0),e.memoizedState=n):(nL(n,t)||(n=tc(),ou.lanes|=n,as|=n,e.baseState=!0),t)}function oH(e,t){var n=tp;tp=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{tp=n,oa.transition=r}}function oK(){return ow().memoizedState}function oG(e,t,n){var r=aj(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oX(e)?oY(t,n):null!==(n=iJ(e,t,n,r))&&(aO(n,e,r,a$()),oZ(n,t,r))}function oQ(e,t,n){var r=aj(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oX(e))oY(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,nL(a,s)){var l=t.interleaved;null===l?(i.next=i,iq(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(e){}finally{}null!==(n=iJ(e,t,i,r))&&(aO(n,e,r,i=a$()),oZ(n,t,r))}}function oX(e){var t=e.alternate;return e===ou||null!==t&&t===ou}function oY(e,t){of=od=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oZ(e,t,n){if(0!=(4194240&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tf(e,n)}}var o0={readContext:iV,useCallback:og,useContext:og,useEffect:og,useImperativeHandle:og,useInsertionEffect:og,useLayoutEffect:og,useMemo:og,useReducer:og,useRef:og,useState:og,useDebugValue:og,useDeferredValue:og,useTransition:og,useMutableSource:og,useSyncExternalStore:og,useId:og,unstable_isNewReconciler:!1},o1={readContext:iV,useCallback:function(e,t){return ox().memoizedState=[e,void 0===t?null:t],e},useContext:iV,useEffect:oN,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oD(4194308,4,o_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oD(4194308,4,e,t)},useInsertionEffect:function(e,t){return oD(4,2,e,t)},useMemo:function(e,t){var n=ox();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ox();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=oG.bind(null,ou,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ox().memoizedState=e},useState:oA,useDebugValue:oV,useDeferredValue:function(e){return ox().memoizedState=e},useTransition:function(){var e=oA(!1),t=e[0];return e=oH.bind(null,e[1]),ox().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ou,i=ox();if(iv){if(void 0===n)throw Error(l(407));n=n()}else{if(n=t(),null===s7)throw Error(l(349));0!=(30&ol)||oC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,oN(oE.bind(null,r,o,e),[e]),r.flags|=2048,oM(9,oU.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ox(),t=s7.identifierPrefix;if(iv){var n=iu,r=il;t=":"+t+"R"+(n=(r&~(1<<32-tn(r)-1)).toString(32)+n),0<(n=op++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=om++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},o2={readContext:iV,useCallback:oW,useContext:iV,useEffect:oF,useImperativeHandle:oB,useInsertionEffect:oz,useLayoutEffect:oL,useMemo:oq,useReducer:oS,useRef:oP,useState:function(){return oS(ok)},useDebugValue:oV,useDeferredValue:function(e){return oJ(ow(),oc.memoizedState,e)},useTransition:function(){return[oS(ok)[0],ow().memoizedState]},useMutableSource:oj,useSyncExternalStore:oO,useId:oK,unstable_isNewReconciler:!1},o3={readContext:iV,useCallback:oW,useContext:iV,useEffect:oF,useImperativeHandle:oB,useInsertionEffect:oz,useLayoutEffect:oL,useMemo:oq,useReducer:o$,useRef:oP,useState:function(){return o$(ok)},useDebugValue:oV,useDeferredValue:function(e){var t=ow();return null===oc?t.memoizedState=e:oJ(t,oc.memoizedState,e)},useTransition:function(){return[o$(ok)[0],ow().memoizedState]},useMutableSource:oj,useSyncExternalStore:oO,useId:oK,unstable_isNewReconciler:!1};function o4(e,t){if(e&&e.defaultProps)for(var n in t=V({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function o5(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:V({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var o6={isMounted:function(e){return!!(e=e._reactInternals)&&eJ(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=a$(),i=aj(e),o=iX(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=iY(e,o,i))&&(aO(t,e,i,r),iZ(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=a$(),i=aj(e),o=iX(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=iY(e,o,i))&&(aO(t,e,i,r),iZ(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=a$(),r=aj(e),i=iX(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=iY(e,i,r))&&(aO(t,e,r,n),iZ(t,e,r))}};function o8(e,t,n,r,i,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!t.prototype||!t.prototype.isPureReactComponent||!n_(n,r)||!n_(i,o)}function o9(e,t,n){var r=!1,i=rK,o=t.contextType;return"object"==typeof o&&null!==o?o=iV(o):(i=rZ(t)?rX:rG.current,o=(r=null!=(r=t.contextTypes))?rY(e,i):rK),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=o6,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function o7(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&o6.enqueueReplaceState(t,t.state,null)}function se(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},iG(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=iV(o):(o=rZ(t)?rX:rG.current,i.context=rY(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(o5(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&o6.enqueueReplaceState(i,i.state,null),i1(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function st(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=J(e.type,!1);case 11:return e=J(e.type.render,!1);case 1:return e=J(e.type,!0);default:return""}}(r),r=r.return;while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function sn(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function sr(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var si="function"==typeof WeakMap?WeakMap:Map;function so(e,t,n){(n=iX(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ap||(ap=!0,am=r),sr(e,t)},n}function ss(e,t,n){(n=iX(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){sr(e,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){sr(e,t),"function"!=typeof r&&(null===ag?ag=new Set([this]):ag.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function sa(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new si;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=aH.bind(null,e,t,n),t.then(e,e))}function sl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function su(e,t,n,r,i){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=iX(-1,1)).tag=2,iY(n,t,1))),n.lanes|=1):(e.flags|=65536,e.lanes=i),e}var sc=S.ReactCurrentOwner,sh=!1;function sd(e,t,n,r){t.child=null===e?iP(t,null,n,r):iM(t,e.child,n,r)}function sf(e,t,n,r,i){n=n.render;var o=t.ref;return(iB(t,i),r=oy(e,t,n,r,o,i),n=ob(),null===e||sh)?(iv&&n&&id(t),t.flags|=1,sd(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sA(e,t,i))}function sp(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||aZ(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=a1(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,sm(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:n_)(s,r)&&e.ref===t.ref)return sA(e,t,i)}return t.flags|=1,(e=a0(o,r)).ref=t.ref,e.return=t,t.child=e}function sm(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(n_(o,r)&&e.ref===t.ref){if(sh=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,sA(e,t,i);0!=(131072&e.flags)&&(sh=!0)}}return sy(e,t,n,r,i)}function sg(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},rH(ar,an),an|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,rH(ar,an),an|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,rH(ar,an),an|=r}}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,rH(ar,an),an|=r;return sd(e,t,i,n),t.child}function sv(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function sy(e,t,n,r,i){var o=rZ(n)?rX:rG.current;return(o=rY(t,o),iB(t,i),n=oy(e,t,n,r,o,i),r=ob(),null===e||sh)?(iv&&r&&id(t),t.flags|=1,sd(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sA(e,t,i))}function sb(e,t,n,r,i){if(rZ(n)){var o=!0;r3(t)}else o=!1;if(iB(t,i),null===t.stateNode)sR(e,t),o9(t,n,r),se(t,n,r,i),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;u="object"==typeof u&&null!==u?iV(u):rY(t,u=rZ(n)?rX:rG.current);var c=n.getDerivedStateFromProps,h="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;h||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&o7(t,s,r,u),iK=!1;var d=t.memoizedState;s.state=d,i1(t,r,s,i),l=t.memoizedState,a!==r||d!==l||rQ.current||iK?("function"==typeof c&&(o5(t,n,c,r),l=t.memoizedState),(a=iK||o8(t,n,a,r,d,l,u))?(h||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,iQ(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:o4(t.type,a),s.props=u,h=t.pendingProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?iV(l):rY(t,l=rZ(n)?rX:rG.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==h||d!==l)&&o7(t,s,r,l),iK=!1,d=t.memoizedState,s.state=d,i1(t,r,s,i);var p=t.memoizedState;a!==h||d!==p||rQ.current||iK?("function"==typeof f&&(o5(t,n,f,r),p=t.memoizedState),(u=iK||o8(t,n,u,r,d,p,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,p,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return sx(e,t,n,r,o,i)}function sx(e,t,n,r,i,o){sv(e,t);var s=0!=(128&t.flags);if(!r&&!s)return i&&r4(t,n,!1),sA(e,t,o);r=t.stateNode,sc.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=iM(t,e.child,null,o),t.child=iM(t,null,a,o)):sd(e,t,a,o),t.memoizedState=r.state,i&&r4(t,n,!0),t.child}function sw(e){var t=e.stateNode;t.pendingContext?r1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&r1(e,t.context,!1),i9(e,t.containerInfo)}function sk(e,t,n,r,i){return iO(),iC(i),t.flags|=256,sd(e,t,n,r),t.child}var sS={dehydrated:null,treeContext:null,retryLane:0};function s$(e){return{baseLanes:e,cachePool:null,transitions:null}}function sj(e,t,n){var r,i=t.pendingProps,o=on.current,s=!1,a=0!=(128&t.flags);if((r=a)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(s=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(o|=1),rH(on,1&o),null===e)return(ik(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(a=i.children,e=i.fallback,s?(i=t.mode,s=t.child,a={mode:"hidden",children:a},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=a):s=a3(a,i,0,null),e=a2(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=s$(n),t.memoizedState=sS,e):sO(t,a));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,sC(e,t,s,r=sn(Error(l(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=a3({mode:"visible",children:r.children},i,0,null),o=a2(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&iM(t,e.child,null,s),t.child.memoizedState=s$(s),t.memoizedState=sS,o);if(0==(1&t.mode))return sC(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var a=r.dgst;return r=a,sC(e,t,s,r=sn(o=Error(l(419)),r,void 0))}if(a=0!=(s&e.childLanes),sh||a){if(null!==(r=s7)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,iH(e,i),aO(r,e,i,-1))}return az(),sC(e,t,s,r=sn(Error(l(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=aG.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ig=rT(i.nextSibling),im=t,iv=!0,iy=null,null!==e&&(io[is++]=il,io[is++]=iu,io[is++]=ia,il=e.id,iu=e.overflow,ia=t),t=sO(t,r.children),t.flags|=4096,t)}(e,t,a,i,r,o,n);if(s){s=i.fallback,a=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 0==(1&a)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=a0(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=a0(r,s):(s=a2(s,a,n,null),s.flags|=2),s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,a=null===(a=e.child.memoizedState)?s$(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~n,t.memoizedState=sS,i}return e=(s=e.child).sibling,i=a0(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function sO(e,t){return(t=a3({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function sC(e,t,n,r){return null!==r&&iC(r),iM(t,e.child,null,n),e=sO(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sU(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),i_(e.return,t,n)}function sE(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function sT(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(sd(e,t,r.children,n),0!=(2&(r=on.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&sU(e,n,t);else if(19===e.tag)sU(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(rH(on,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(i=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===or(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sE(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===or(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sE(t,!0,n,null,o);break;case"together":sE(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sR(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sA(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),as|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=a0(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=a0(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sM(e,t){if(!iv)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sP(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}t=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},n=function(){},r=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,i8(i4.current);var o,s=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),s=[];break;case"select":i=V({},i,{value:void 0}),r=V({},r,{value:void 0}),s=[];break;case"textarea":i=es(e,i),r=es(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=rx)}for(u in ek(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u]){if("style"===u){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(c.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null))}for(u in r){var l=r[u];if(a=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(null!=l||null!=a)){if("style"===u){if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l}else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,a=a?a.__html:void 0,null!=l&&a!==l&&(s=s||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(c.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&rs("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},i=function(e,t,n,r){n!==r&&(t.flags|=4)};var sD=!1,sI=!1,sN="function"==typeof WeakSet?WeakSet:Set,sF=null;function sz(e,t){var n=e.ref;if(null!==n){if("function"==typeof n)try{n(null)}catch(n){aJ(e,t,n)}else n.current=null}}function sL(e,t,n){try{n()}catch(n){aJ(e,t,n)}}var s_=!1;function sB(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&sL(t,n,o)}i=i.next}while(i!==r)}}function sV(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sW(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sq(e){return 5===e.tag||3===e.tag||4===e.tag}function sJ(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sq(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var sH=null,sK=!1;function sG(e,t,n){for(n=n.child;null!==n;)sQ(e,t,n),n=n.sibling}function sQ(e,t,n){if(e9&&"function"==typeof e9.onCommitFiberUnmount)try{e9.onCommitFiberUnmount(e8,n)}catch(e){}switch(n.tag){case 5:sI||sz(n,t);case 6:var r=sH,i=sK;sH=null,sG(e,t,n),sH=r,sK=i,null!==sH&&(sK?(e=sH,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):sH.removeChild(n.stateNode));break;case 18:null!==sH&&(sK?(e=sH,n=n.stateNode,8===e.nodeType?rE(e.parentNode,n):1===e.nodeType&&rE(e,n),tN(e)):rE(sH,n.stateNode));break;case 4:r=sH,i=sK,sH=n.stateNode.containerInfo,sK=!0,sG(e,t,n),sH=r,sK=i;break;case 0:case 11:case 14:case 15:if(!sI&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,void 0!==s&&(0!=(2&o)?sL(n,t,s):0!=(4&o)&&sL(n,t,s)),i=i.next}while(i!==r)}sG(e,t,n);break;case 1:if(!sI&&(sz(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){aJ(n,t,e)}sG(e,t,n);break;case 21:default:sG(e,t,n);break;case 22:1&n.mode?(sI=(r=sI)||null!==n.memoizedState,sG(e,t,n),sI=r):sG(e,t,n)}}function sX(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new sN),t.forEach(function(t){var r=aQ.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function sY(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=t,s=o;e:for(;null!==s;){switch(s.tag){case 5:sH=s.stateNode,sK=!1;break e;case 3:case 4:sH=s.stateNode.containerInfo,sK=!0;break e}s=s.return}if(null===sH)throw Error(l(160));sQ(e,o,i),sH=null,sK=!1;var a=i.alternate;null!==a&&(a.return=null),i.return=null}catch(e){aJ(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)sZ(t,e),t=t.sibling}function sZ(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(sY(t,e),s0(e),4&r){try{sB(3,e,e.return),sV(3,e)}catch(t){aJ(e,e.return,t)}try{sB(5,e,e.return)}catch(t){aJ(e,e.return,t)}}break;case 1:sY(t,e),s0(e),512&r&&null!==n&&sz(n,n.return);break;case 5:if(sY(t,e),s0(e),512&r&&null!==n&&sz(n,n.return),32&e.flags){var i=e.stateNode;try{eg(i,"")}catch(t){aJ(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,a=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===a&&"radio"===o.type&&null!=o.name&&ee(i,o),eS(a,s);var c=eS(a,o);for(s=0;s<u.length;s+=2){var h=u[s],d=u[s+1];"style"===h?ex(i,d):"dangerouslySetInnerHTML"===h?em(i,d):"children"===h?eg(i,d):k(i,h,d,c)}switch(a){case"input":et(i,o);break;case"textarea":el(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?eo(i,!!o.multiple,p,!1):!!o.multiple!==f&&(null!=o.defaultValue?eo(i,!!o.multiple,o.defaultValue,!0):eo(i,!!o.multiple,o.multiple?[]:"",!1))}i[rP]=o}catch(t){aJ(e,e.return,t)}}break;case 6:if(sY(t,e),s0(e),4&r){if(null===e.stateNode)throw Error(l(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){aJ(e,e.return,t)}}break;case 3:if(sY(t,e),s0(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{tN(t.containerInfo)}catch(t){aJ(e,e.return,t)}break;case 4:default:sY(t,e),s0(e);break;case 13:sY(t,e),s0(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,o&&(null===i.alternate||null===i.alternate.memoizedState)&&(ah=e0())),4&r&&sX(e);break;case 22:if(h=null!==n&&null!==n.memoizedState,1&e.mode?(sI=(c=sI)||h,sY(t,e),sI=c):sY(t,e),s0(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!h&&0!=(1&e.mode))for(sF=e,h=e.child;null!==h;){for(d=sF=h;null!==sF;){switch(p=(f=sF).child,f.tag){case 0:case 11:case 14:case 15:sB(4,f,f.return);break;case 1:sz(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){aJ(r,n,e)}}break;case 5:sz(f,f.return);break;case 22:if(null!==f.memoizedState){s2(d);continue}}null!==p?(p.return=f,sF=p):s2(d)}h=h.sibling}e:for(h=null,d=e;;){if(5===d.tag){if(null===h){h=d;try{i=d.stateNode,c?(o=i.style,"function"==typeof o.setProperty?o.setProperty("display","none","important"):o.display="none"):(a=d.stateNode,s=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,a.style.display=eb("display",s))}catch(t){aJ(e,e.return,t)}}}else if(6===d.tag){if(null===h)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){aJ(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:sY(t,e),s0(e),4&r&&sX(e);case 21:}}function s0(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sq(n)){var r=n;break e}n=n.return}throw Error(l(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(eg(i,""),r.flags&=-33);var o=sJ(e);!function e(t,n,r){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=sJ(e);!function e(t,n,r){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=rx));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,a,s);break;default:throw Error(l(161))}}catch(t){aJ(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function s1(e){for(;null!==sF;){var t=sF;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:sI||sV(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!sI){if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:o4(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}}var o=t.updateQueue;null!==o&&i2(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}i2(t,s,n)}break;case 5:var a=t.stateNode;if(null===n&&4&t.flags){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var h=c.memoizedState;if(null!==h){var d=h.dehydrated;null!==d&&tN(d)}}}break;default:throw Error(l(163))}sI||512&t.flags&&sW(t)}catch(e){aJ(t,t.return,e)}}if(t===e){sF=null;break}if(null!==(n=t.sibling)){n.return=t.return,sF=n;break}sF=t.return}}function s2(e){for(;null!==sF;){var t=sF;if(t===e){sF=null;break}var n=t.sibling;if(null!==n){n.return=t.return,sF=n;break}sF=t.return}}function s3(e){for(;null!==sF;){var t=sF;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sV(4,t)}catch(e){aJ(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){aJ(t,i,e)}}var o=t.return;try{sW(t)}catch(e){aJ(t,o,e)}break;case 5:var s=t.return;try{sW(t)}catch(e){aJ(t,s,e)}}}catch(e){aJ(t,t.return,e)}if(t===e){sF=null;break}var a=t.sibling;if(null!==a){a.return=t.return,sF=a;break}sF=t.return}}var s4=Math.ceil,s5=S.ReactCurrentDispatcher,s6=S.ReactCurrentOwner,s8=S.ReactCurrentBatchConfig,s9=0,s7=null,ae=null,at=0,an=0,ar=rq(0),ai=0,ao=null,as=0,aa=0,al=0,au=null,ac=null,ah=0,ad=1/0,af=null,ap=!1,am=null,ag=null,av=!1,ay=null,ab=0,ax=0,aw=null,ak=-1,aS=0;function a$(){return 0!=(6&s9)?e0():-1!==ak?ak:ak=e0()}function aj(e){return 0==(1&e.mode)?1:0!=(2&s9)&&0!==at?at&-at:null!==iU.transition?(0===aS&&(aS=tc()),aS):0!==(e=tp)?e:e=void 0===(e=window.event)?16:tq(e.type)}function aO(e,t,n,r){if(50<ax)throw ax=0,aw=null,Error(l(185));td(e,n,r),(0==(2&s9)||e!==s7)&&(e===s7&&(0==(2&s9)&&(aa|=n),4===ai&&aR(e,at)),aC(e,r),1===n&&0===s9&&0==(1&t.mode)&&(ad=e0()+500,r6&&r7()))}function aC(e,t){var n,r=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-tn(o),a=1<<s,l=i[s];-1===l?(0==(a&n)||0!=(a&r))&&(i[s]=function(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}(e,t);var i=tl(e,e===s7?at:0);if(0===i)null!==r&&eX(r),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=r&&eX(r),1===t)0===e.tag?(n=aA.bind(null,e),r6=!0,r9(n)):r9(aA.bind(null,e)),rC(function(){0==(6&s9)&&r7()}),r=null;else{switch(tm(i)){case 1:r=e2;break;case 4:r=e3;break;case 16:default:r=e4;break;case 536870912:r=e6}r=eQ(r,aU.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function aU(e,t){if(ak=-1,aS=0,0!=(6&s9))throw Error(l(327));var n=e.callbackNode;if(aW()&&e.callbackNode!==n)return null;var r=tl(e,e===s7?at:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=aL(e,r);else{t=r;var i=s9;s9|=2;var o=aF();for((s7!==e||at!==t)&&(af=null,ad=e0()+500,aI(e,t));;)try{(function(){for(;null!==ae&&!eY();)a_(ae)})();break}catch(t){aN(e,t)}iz(),s5.current=o,s9=i,null!==ae?t=0:(s7=null,at=0,t=ai)}if(0!==t){if(2===t&&0!==(i=tu(e))&&(r=i,t=aE(e,i)),1===t)throw n=ao,aI(e,0),aR(e,r),aC(e,e0()),n;if(6===t)aR(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!nL(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=aL(e,r))&&0!==(o=tu(e))&&(r=o,t=aE(e,o)),1===t))throw n=ao,aI(e,0),aR(e,r),aC(e,e0()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(l(345));case 2:case 5:aV(e,ac,af);break;case 3:if(aR(e,r),(130023424&r)===r&&10<(t=ah+500-e0())){if(0!==tl(e,0))break;if(((i=e.suspendedLanes)&r)!==r){a$(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=r$(aV.bind(null,e,ac,af),t);break}aV(e,ac,af);break;case 4:if(aR(e,r),(4194240&r)===r)break;for(i=-1,t=e.eventTimes;0<r;){var s=31-tn(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=e0()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*s4(r/1960))-r)){e.timeoutHandle=r$(aV.bind(null,e,ac,af),r);break}aV(e,ac,af);break;default:throw Error(l(329))}}}return aC(e,e0()),e.callbackNode===n?aU.bind(null,e):null}function aE(e,t){var n=au;return e.current.memoizedState.isDehydrated&&(aI(e,t).flags|=256),2!==(e=aL(e,t))&&(t=ac,ac=n,null!==t&&aT(t)),e}function aT(e){null===ac?ac=e:ac.push.apply(ac,e)}function aR(e,t){for(t&=~al,t&=~aa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-tn(t),r=1<<n;e[n]=-1,t&=~r}}function aA(e){if(0!=(6&s9))throw Error(l(327));aW();var t=tl(e,0);if(0==(1&t))return aC(e,e0()),null;var n=aL(e,t);if(0!==e.tag&&2===n){var r=tu(e);0!==r&&(t=r,n=aE(e,r))}if(1===n)throw n=ao,aI(e,0),aR(e,t),aC(e,e0()),n;if(6===n)throw Error(l(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,aV(e,ac,af),aC(e,e0()),null}function aM(e,t){var n=s9;s9|=1;try{return e(t)}finally{0===(s9=n)&&(ad=e0()+500,r6&&r7())}}function aP(e){null!==ay&&0===ay.tag&&0==(6&s9)&&aW();var t=s9;s9|=1;var n=s8.transition,r=tp;try{if(s8.transition=null,tp=1,e)return e()}finally{tp=r,s8.transition=n,0==(6&(s9=t))&&r7()}}function aD(){an=ar.current,rJ(ar)}function aI(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rj(n)),null!==ae)for(n=ae.return;null!==n;){var r=n;switch(ip(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&r0();break;case 3:i7(),rJ(rQ),rJ(rG),oo();break;case 5:ot(r);break;case 4:i7();break;case 13:case 19:rJ(on);break;case 10:iL(r.type._context);break;case 22:case 23:aD()}n=n.return}if(s7=e,ae=e=a0(e.current,null),at=an=t,ai=0,ao=null,al=aa=as=0,ac=au=null,null!==iW){for(t=0;t<iW.length;t++)if(null!==(r=(n=iW[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var s=o.next;o.next=i,r.next=s}n.pending=r}iW=null}return e}function aN(e,t){for(;;){var n=ae;try{if(iz(),os.current=o0,od){for(var r=ou.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}od=!1}if(ol=0,oh=oc=ou=null,of=!1,op=0,s6.current=null,null===n||null===n.return){ai=1,ao=t,ae=null;break}e:{var o=e,s=n.return,a=n,u=t;if(t=at,a.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,h=a,d=h.tag;if(0==(1&h.mode)&&(0===d||11===d||15===d)){var f=h.alternate;f?(h.updateQueue=f.updateQueue,h.memoizedState=f.memoizedState,h.lanes=f.lanes):(h.updateQueue=null,h.memoizedState=null)}var p=sl(s);if(null!==p){p.flags&=-257,su(p,s,a,o,t),1&p.mode&&sa(o,c,t),t=p,u=c;var m=t.updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){sa(o,c,t),az();break e}u=Error(l(426))}else if(iv&&1&a.mode){var v=sl(s);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),su(v,s,a,o,t),iC(st(u,a));break e}}o=u=st(u,a),4!==ai&&(ai=2),null===au?au=[o]:au.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=so(o,u,t);i0(o,y);break e;case 1:a=u;var b=o.type,x=o.stateNode;if(0==(128&o.flags)&&("function"==typeof b.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===ag||!ag.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=ss(o,a,t);i0(o,w);break e}}o=o.return}while(null!==o)}aB(n)}catch(e){t=e,ae===n&&null!==n&&(ae=n=n.return);continue}break}}function aF(){var e=s5.current;return s5.current=o0,null===e?o0:e}function az(){(0===ai||3===ai||2===ai)&&(ai=4),null===s7||0==(268435455&as)&&0==(268435455&aa)||aR(s7,at)}function aL(e,t){var n=s9;s9|=2;var r=aF();for((s7!==e||at!==t)&&(af=null,aI(e,t));;)try{(function(){for(;null!==ae;)a_(ae)})();break}catch(t){aN(e,t)}if(iz(),s9=n,s5.current=r,null!==ae)throw Error(l(261));return s7=null,at=0,ai}function a_(e){var t=o(e.alternate,e,an);e.memoizedProps=e.pendingProps,null===t?aB(e):ae=t,s6.current=null}function aB(e){var o=e;do{var s=o.alternate;if(e=o.return,0==(32768&o.flags)){if(null!==(s=function(e,o,s){var a=o.pendingProps;switch(ip(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sP(o),null;case 1:case 17:return rZ(o.type)&&r0(),sP(o),null;case 3:return a=o.stateNode,i7(),rJ(rQ),rJ(rG),oo(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(null===e||null===e.child)&&(i$(o)?o.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&o.flags)||(o.flags|=1024,null!==iy&&(aT(iy),iy=null))),n(e,o),sP(o),null;case 5:ot(o);var u=i8(i6.current);if(s=o.type,null!==e&&null!=o.stateNode)r(e,o,s,a,u),e.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!a){if(null===o.stateNode)throw Error(l(166));return sP(o),null}if(e=i8(i4.current),i$(o)){a=o.stateNode,s=o.type;var h=o.memoizedProps;switch(a[rM]=o,a[rP]=h,e=0!=(1&o.mode),s){case"dialog":rs("cancel",a),rs("close",a);break;case"iframe":case"object":case"embed":rs("load",a);break;case"video":case"audio":for(u=0;u<rn.length;u++)rs(rn[u],a);break;case"source":rs("error",a);break;case"img":case"image":case"link":rs("error",a),rs("load",a);break;case"details":rs("toggle",a);break;case"input":Z(a,h),rs("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!h.multiple},rs("invalid",a);break;case"textarea":ea(a,h),rs("invalid",a)}for(var d in ek(s,h),u=null,h)if(h.hasOwnProperty(d)){var f=h[d];"children"===d?"string"==typeof f?a.textContent!==f&&(!0!==h.suppressHydrationWarning&&rb(a.textContent,f,e),u=["children",f]):"number"==typeof f&&a.textContent!==""+f&&(!0!==h.suppressHydrationWarning&&rb(a.textContent,f,e),u=["children",""+f]):c.hasOwnProperty(d)&&null!=f&&"onScroll"===d&&rs("scroll",a)}switch(s){case"input":G(a),en(a,h,!0);break;case"textarea":G(a),eu(a);break;case"select":case"option":break;default:"function"==typeof h.onClick&&(a.onclick=rx)}a=u,o.updateQueue=a,null!==a&&(o.flags|=4)}else{d=9===u.nodeType?u:u.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ec(s)),"http://www.w3.org/1999/xhtml"===e?"script"===s?((e=d.createElement("div")).innerHTML="<script></script>",e=e.removeChild(e.firstChild)):"string"==typeof a.is?e=d.createElement(s,{is:a.is}):(e=d.createElement(s),"select"===s&&(d=e,a.multiple?d.multiple=!0:a.size&&(d.size=a.size))):e=d.createElementNS(e,s),e[rM]=o,e[rP]=a,t(e,o,!1,!1),o.stateNode=e;e:{switch(d=eS(s,a),s){case"dialog":rs("cancel",e),rs("close",e),u=a;break;case"iframe":case"object":case"embed":rs("load",e),u=a;break;case"video":case"audio":for(u=0;u<rn.length;u++)rs(rn[u],e);u=a;break;case"source":rs("error",e),u=a;break;case"img":case"image":case"link":rs("error",e),rs("load",e),u=a;break;case"details":rs("toggle",e),u=a;break;case"input":Z(e,a),u=Y(e,a),rs("invalid",e);break;case"option":default:u=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},u=V({},a,{value:void 0}),rs("invalid",e);break;case"textarea":ea(e,a),u=es(e,a),rs("invalid",e)}for(h in ek(s,u),f=u)if(f.hasOwnProperty(h)){var p=f[h];"style"===h?ex(e,p):"dangerouslySetInnerHTML"===h?null!=(p=p?p.__html:void 0)&&em(e,p):"children"===h?"string"==typeof p?("textarea"!==s||""!==p)&&eg(e,p):"number"==typeof p&&eg(e,""+p):"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&"autoFocus"!==h&&(c.hasOwnProperty(h)?null!=p&&"onScroll"===h&&rs("scroll",e):null!=p&&k(e,h,p,d))}switch(s){case"input":G(e),en(e,a,!1);break;case"textarea":G(e),eu(e);break;case"option":null!=a.value&&e.setAttribute("value",""+H(a.value));break;case"select":e.multiple=!!a.multiple,null!=(h=a.value)?eo(e,!!a.multiple,h,!1):null!=a.defaultValue&&eo(e,!!a.multiple,a.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=rx)}switch(s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(o.flags|=4)}null!==o.ref&&(o.flags|=512,o.flags|=2097152)}return sP(o),null;case 6:if(e&&null!=o.stateNode)i(e,o,e.memoizedProps,a);else{if("string"!=typeof a&&null===o.stateNode)throw Error(l(166));if(s=i8(i6.current),i8(i4.current),i$(o)){if(a=o.stateNode,s=o.memoizedProps,a[rM]=o,(h=a.nodeValue!==s)&&null!==(e=im))switch(e.tag){case 3:rb(a.nodeValue,s,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&rb(a.nodeValue,s,0!=(1&e.mode))}h&&(o.flags|=4)}else(a=(9===s.nodeType?s:s.ownerDocument).createTextNode(a))[rM]=o,o.stateNode=a}return sP(o),null;case 13:if(rJ(on),a=o.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(iv&&null!==ig&&0!=(1&o.mode)&&0==(128&o.flags))ij(),iO(),o.flags|=98560,h=!1;else if(h=i$(o),null!==a&&null!==a.dehydrated){if(null===e){if(!h)throw Error(l(318));if(!(h=null!==(h=o.memoizedState)?h.dehydrated:null))throw Error(l(317));h[rM]=o}else iO(),0==(128&o.flags)&&(o.memoizedState=null),o.flags|=4;sP(o),h=!1}else null!==iy&&(aT(iy),iy=null),h=!0;if(!h)return 65536&o.flags?o:null}if(0!=(128&o.flags))return o.lanes=s,o;return(a=null!==a)!=(null!==e&&null!==e.memoizedState)&&a&&(o.child.flags|=8192,0!=(1&o.mode)&&(null===e||0!=(1&on.current)?0===ai&&(ai=3):az())),null!==o.updateQueue&&(o.flags|=4),sP(o),null;case 4:return i7(),n(e,o),null===e&&ru(o.stateNode.containerInfo),sP(o),null;case 10:return iL(o.type._context),sP(o),null;case 19:if(rJ(on),null===(h=o.memoizedState))return sP(o),null;if(a=0!=(128&o.flags),null===(d=h.rendering)){if(a)sM(h,!1);else{if(0!==ai||null!==e&&0!=(128&e.flags))for(e=o.child;null!==e;){if(null!==(d=or(e))){for(o.flags|=128,sM(h,!1),null!==(a=d.updateQueue)&&(o.updateQueue=a,o.flags|=4),o.subtreeFlags=0,a=s,s=o.child;null!==s;)h=s,e=a,h.flags&=14680066,null===(d=h.alternate)?(h.childLanes=0,h.lanes=e,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=d.childLanes,h.lanes=d.lanes,h.child=d.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=d.memoizedProps,h.memoizedState=d.memoizedState,h.updateQueue=d.updateQueue,h.type=d.type,e=d.dependencies,h.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return rH(on,1&on.current|2),o.child}e=e.sibling}null!==h.tail&&e0()>ad&&(o.flags|=128,a=!0,sM(h,!1),o.lanes=4194304)}}else{if(!a){if(null!==(e=or(d))){if(o.flags|=128,a=!0,null!==(s=e.updateQueue)&&(o.updateQueue=s,o.flags|=4),sM(h,!0),null===h.tail&&"hidden"===h.tailMode&&!d.alternate&&!iv)return sP(o),null}else 2*e0()-h.renderingStartTime>ad&&1073741824!==s&&(o.flags|=128,a=!0,sM(h,!1),o.lanes=4194304)}h.isBackwards?(d.sibling=o.child,o.child=d):(null!==(s=h.last)?s.sibling=d:o.child=d,h.last=d)}if(null!==h.tail)return o=h.tail,h.rendering=o,h.tail=o.sibling,h.renderingStartTime=e0(),o.sibling=null,s=on.current,rH(on,a?1&s|2:1&s),o;return sP(o),null;case 22:case 23:return aD(),a=null!==o.memoizedState,null!==e&&null!==e.memoizedState!==a&&(o.flags|=8192),a&&0!=(1&o.mode)?0!=(1073741824&an)&&(sP(o),6&o.subtreeFlags&&(o.flags|=8192)):sP(o),null;case 24:case 25:return null}throw Error(l(156,o.tag))}(s,o,an))){ae=s;return}}else{if(null!==(s=function(e,t){switch(ip(t),t.tag){case 1:return rZ(t.type)&&r0(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return i7(),rJ(rQ),rJ(rG),oo(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ot(t),null;case 13:if(rJ(on),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(l(340));iO()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return rJ(on),null;case 4:return i7(),null;case 10:return iL(t.type._context),null;case 22:case 23:return aD(),null;default:return null}}(s,o))){s.flags&=32767,ae=s;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ai=6,ae=null;return}}if(null!==(o=o.sibling)){ae=o;return}ae=o=e}while(null!==o);0===ai&&(ai=5)}function aV(e,t,n){var r=tp,i=s8.transition;try{s8.transition=null,tp=1,function(e,t,n,r){do aW();while(null!==ay);if(0!=(6&s9))throw Error(l(327));n=e.finishedWork;var i=e.finishedLanes;if(null!==n){if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(l(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-tn(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===s7&&(ae=s7=null,at=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||av||(av=!0,s=function(){return aW(),null},eQ(e4,s)),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=s8.transition,s8.transition=null;var s,a,u=tp;tp=1;var c=s9;s9|=4,s6.current=null,function(e,t){if(rw=tz,nq(e=nW())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i,o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;var a=0,u=-1,c=-1,h=0,d=0,f=e,p=null;t:for(;;){for(;f!==n||0!==o&&3!==f.nodeType||(u=a+o),f!==s||0!==r&&3!==f.nodeType||(c=a+r),3===f.nodeType&&(a+=f.nodeValue.length),null!==(i=f.firstChild);)p=f,f=i;for(;;){if(f===e)break t;if(p===n&&++h===o&&(u=a),p===s&&++d===r&&(c=a),null!==(i=f.nextSibling))break;p=(f=p).parentNode}f=i}n=-1===u||-1===c?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(rk={focusedElem:e,selectionRange:n},tz=!1,sF=t;null!==sF;)if(e=(t=sF).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,sF=e;else for(;null!==sF;){t=sF;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:o4(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(l(163))}}catch(e){aJ(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,sF=e;break}sF=t.return}m=s_,s_=!1}(e,n),sZ(n,e),function(e){var t=nW(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!!t&&!!n&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&nq(n)){if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=nV(n,o);var s=nV(n,r);i&&s&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(rk),tz=!!rw,rk=rw=null,e.current=n,sF=a=n,function e(t,n,r){for(var i=0!=(1&t.mode);null!==sF;){var o=sF,s=o.child;if(22===o.tag&&i){var a=null!==o.memoizedState||sD;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||sI;l=sD;var c=sI;if(sD=a,(sI=u)&&!c)for(sF=o;null!==sF;)u=(a=sF).child,22===a.tag&&null!==a.memoizedState?s3(o):null!==u?(u.return=a,sF=u):s3(o);for(;null!==s;)sF=s,e(s),s=s.sibling;sF=o,sD=l,sI=c}s1(t)}else 0!=(8772&o.subtreeFlags)&&null!==s?(s.return=o,sF=s):s1(t)}}(a),eZ(),s9=c,tp=u,s8.transition=o}else e.current=n;if(av&&(av=!1,ay=e,ab=i),0===(o=e.pendingLanes)&&(ag=null),function(e){if(e9&&"function"==typeof e9.onCommitFiberRoot)try{e9.onCommitFiberRoot(e8,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),aC(e,e0()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(ap)throw ap=!1,e=am,am=null,e;0!=(1&ab)&&0!==e.tag&&aW(),0!=(1&(o=e.pendingLanes))?e===aw?ax++:(ax=0,aw=e):ax=0,r7()}}(e,t,n,r)}finally{s8.transition=i,tp=r}return null}function aW(){if(null!==ay){var e=tm(ab),t=s8.transition,n=tp;try{if(s8.transition=null,tp=16>e?16:e,null===ay)var r=!1;else{if(e=ay,ay=null,ab=0,0!=(6&s9))throw Error(l(331));var i=s9;for(s9|=4,sF=e.current;null!==sF;){var o=sF,s=o.child;if(0!=(16&sF.flags)){var a=o.deletions;if(null!==a){for(var u=0;u<a.length;u++){var c=a[u];for(sF=c;null!==sF;){var h=sF;switch(h.tag){case 0:case 11:case 15:sB(8,h,o)}var d=h.child;if(null!==d)d.return=h,sF=d;else for(;null!==sF;){var f=(h=sF).sibling,p=h.return;if(function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&(delete n[rM],delete n[rP],delete n[rI],delete n[rN],delete n[rF]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(h),h===c){sF=null;break}if(null!==f){f.return=p,sF=f;break}sF=p}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}sF=o}}if(0!=(2064&o.subtreeFlags)&&null!==s)s.return=o,sF=s;else for(;null!==sF;){if(o=sF,0!=(2048&o.flags))switch(o.tag){case 0:case 11:case 15:sB(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,sF=y;break}sF=o.return}}var b=e.current;for(sF=b;null!==sF;){var x=(s=sF).child;if(0!=(2064&s.subtreeFlags)&&null!==x)x.return=s,sF=x;else for(s=b;null!==sF;){if(a=sF,0!=(2048&a.flags))try{switch(a.tag){case 0:case 11:case 15:sV(9,a)}}catch(e){aJ(a,a.return,e)}if(a===s){sF=null;break}var w=a.sibling;if(null!==w){w.return=a.return,sF=w;break}sF=a.return}}if(s9=i,r7(),e9&&"function"==typeof e9.onPostCommitFiberRoot)try{e9.onPostCommitFiberRoot(e8,e)}catch(e){}r=!0}return r}finally{tp=n,s8.transition=t}}return!1}function aq(e,t,n){t=so(e,t=st(n,t),1),e=iY(e,t,1),t=a$(),null!==e&&(td(e,1,t),aC(e,t))}function aJ(e,t,n){if(3===e.tag)aq(e,e,n);else for(;null!==t;){if(3===t.tag){aq(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ag||!ag.has(r))){e=ss(t,e=st(n,e),1),t=iY(t,e,1),e=a$(),null!==t&&(td(t,1,e),aC(t,e));break}}t=t.return}}function aH(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=a$(),e.pingedLanes|=e.suspendedLanes&n,s7===e&&(at&n)===n&&(4===ai||3===ai&&(130023424&at)===at&&500>e0()-ah?aI(e,0):al|=n),aC(e,t)}function aK(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ts,0==(130023424&(ts<<=1))&&(ts=4194304)));var n=a$();null!==(e=iH(e,t))&&(td(e,t,n),aC(e,n))}function aG(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),aK(e,n)}function aQ(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),aK(e,n)}function aX(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function aY(e,t,n,r){return new aX(e,t,n,r)}function aZ(e){return!(!(e=e.prototype)||!e.isReactComponent)}function a0(e,t){var n=e.alternate;return null===n?((n=aY(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function a1(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)aZ(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case O:return a2(n.children,i,o,t);case T:s=8,i|=8;break;case R:return(e=aY(12,n,t,2|i)).elementType=R,e.lanes=o,e;case D:return(e=aY(13,n,t,i)).elementType=D,e.lanes=o,e;case I:return(e=aY(19,n,t,i)).elementType=I,e.lanes=o,e;case z:return a3(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case M:s=9;break e;case P:s=11;break e;case N:s=14;break e;case F:s=16,r=null;break e}throw Error(l(130,null==e?e:typeof e,""))}return(t=aY(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function a2(e,t,n,r){return(e=aY(7,e,r,t)).lanes=n,e}function a3(e,t,n,r){return(e=aY(22,e,r,t)).elementType=z,e.lanes=n,e.stateNode={isHidden:!1},e}function a4(e,t,n){return(e=aY(6,e,null,t)).lanes=n,e}function a5(e,t,n){return(t=aY(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function a6(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=th(0),this.expirationTimes=th(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=th(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function a8(e,t,n,r,i,o,s,a,l){return e=new a6(e,t,n,a,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=aY(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iG(o),e}function a9(e){if(!e)return rK;e=e._reactInternals;e:{if(eJ(e)!==e||1!==e.tag)throw Error(l(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rZ(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(l(171))}if(1===e.tag){var n=e.type;if(rZ(n))return r2(e,n,t)}return t}function a7(e,t,n,r,i,o,s,a,l){return(e=a8(n,r,!0,e,i,o,s,a,l)).context=a9(null),n=e.current,(o=iX(r=a$(),i=aj(n))).callback=null!=t?t:null,iY(n,o,i),e.current.lanes=i,td(e,i,r),aC(e,r),e}function le(e,t,n,r){var i=t.current,o=a$(),s=aj(i);return n=a9(n),null===t.context?t.context=n:t.pendingContext=n,(t=iX(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=iY(i,t,s))&&(aO(e,i,s,o),iZ(e,i,s)),s}function lt(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ln(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function lr(e,t){ln(e,t),(e=e.alternate)&&ln(e,t)}o=function(e,t,n){if(null!==e){if(e.memoizedProps!==t.pendingProps||rQ.current)sh=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return sh=!1,function(e,t,n){switch(t.tag){case 3:sw(t),iO();break;case 5:oe(t);break;case 1:rZ(t.type)&&r3(t);break;case 4:i9(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;rH(iD,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState)){if(null!==r.dehydrated)return rH(on,1&on.current),t.flags|=128,null;if(0!=(n&t.child.childLanes))return sj(e,t,n);return rH(on,1&on.current),null!==(e=sA(e,t,n))?e.sibling:null}rH(on,1&on.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return sT(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),rH(on,on.current),!r)return null;break;case 22:case 23:return t.lanes=0,sg(e,t,n)}return sA(e,t,n)}(e,t,n);sh=0!=(131072&e.flags)}}else sh=!1,iv&&0!=(1048576&t.flags)&&ih(t,ii,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sR(e,t),e=t.pendingProps;var i=rY(t,rG.current);iB(t,n),i=oy(null,t,r,e,i,n);var o=ob();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rZ(r)?(o=!0,r3(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,iG(t),i.updater=o6,t.stateNode=i,i._reactInternals=t,se(t,r,e,n),t=sx(null,t,r,!0,o,n)):(t.tag=0,iv&&o&&id(t),sd(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sR(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return aZ(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===N)return 14}return 2}(r),e=o4(r,e),i){case 0:t=sy(null,t,r,e,n);break e;case 1:t=sb(null,t,r,e,n);break e;case 11:t=sf(null,t,r,e,n);break e;case 14:t=sp(null,t,r,o4(r.type,e),n);break e}throw Error(l(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:o4(r,i),sy(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:o4(r,i),sb(e,t,r,i,n);case 3:e:{if(sw(t),null===e)throw Error(l(387));r=t.pendingProps,i=(o=t.memoizedState).element,iQ(e,t),i1(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){i=st(Error(l(423)),t),t=sk(e,t,r,n,i);break e}if(r!==i){i=st(Error(l(424)),t),t=sk(e,t,r,n,i);break e}for(ig=rT(t.stateNode.containerInfo.firstChild),im=t,iv=!0,iy=null,n=iP(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(iO(),r===i){t=sA(e,t,n);break e}sd(e,t,r,n)}t=t.child}return t;case 5:return oe(t),null===e&&ik(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,rS(r,i)?s=null:null!==o&&rS(r,o)&&(t.flags|=32),sv(e,t),sd(e,t,s,n),t.child;case 6:return null===e&&ik(t),null;case 13:return sj(e,t,n);case 4:return i9(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=iM(t,null,r,n):sd(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:o4(r,i),sf(e,t,r,i,n);case 7:return sd(e,t,t.pendingProps,n),t.child;case 8:case 12:return sd(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,rH(iD,r._currentValue),r._currentValue=s,null!==o){if(nL(o.value,s)){if(o.children===i.children&&!rQ.current){t=sA(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var a=o.dependencies;if(null!==a){s=o.child;for(var u=a.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=iX(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var h=(c=c.shared).pending;null===h?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),i_(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(l(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),i_(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}sd(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,iB(t,n),r=r(i=iV(i)),t.flags|=1,sd(e,t,r,n),t.child;case 14:return i=o4(r=t.type,t.pendingProps),i=o4(r.type,i),sp(e,t,r,i,n);case 15:return sm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:o4(r,i),sR(e,t),t.tag=1,rZ(r)?(e=!0,r3(t)):e=!1,iB(t,n),o9(t,r,i),se(t,r,i,n),sx(null,t,r,!0,e,n);case 19:return sT(e,t,n);case 22:return sg(e,t,n)}throw Error(l(156,t.tag))};var li="function"==typeof reportError?reportError:function(e){console.error(e)};function lo(e){this._internalRoot=e}function ls(e){this._internalRoot=e}function la(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ll(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function lu(){}function lc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if("function"==typeof i){var a=i;i=function(){var e=lt(s);a.call(e)}}le(t,s,e,i)}else s=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=lt(s);o.call(e)}}var s=a7(t,r,e,0,null,!1,!1,"",lu);return e._reactRootContainer=s,e[rD]=s.current,ru(8===e.nodeType?e.parentNode:e),aP(),s}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var a=r;r=function(){var e=lt(l);a.call(e)}}var l=a8(e,0,!1,null,null,!1,!1,"",lu);return e._reactRootContainer=l,e[rD]=l.current,ru(8===e.nodeType?e.parentNode:e),aP(function(){le(t,l,n,r)}),l}(n,t,e,i,r);return lt(s)}ls.prototype.render=lo.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(l(409));le(e,t,null,null)},ls.prototype.unmount=lo.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;aP(function(){le(null,e,null,null)}),t[rD]=null}},ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=tb();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tU.length&&0!==t&&t<tU[n].priority;n++);tU.splice(n,0,e),0===n&&tA(e)}},tg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ta(t.pendingLanes);0!==n&&(tf(t,1|n),aC(t,e0()),0==(6&s9)&&(ad=e0()+500,r7()))}break;case 13:aP(function(){var t=iH(e,1);null!==t&&aO(t,e,1,a$())}),lr(e,1)}},tv=function(e){if(13===e.tag){var t=iH(e,134217728);null!==t&&aO(t,e,134217728,a$()),lr(e,134217728)}},ty=function(e){if(13===e.tag){var t=aj(e),n=iH(e,t);null!==n&&aO(n,e,t,a$()),lr(e,t)}},tb=function(){return tp}
1,tx=function(e,t){var n=tp;try{return tp=e,t()}finally{tp=n}},eO=function(e,t,n){switch(t){case"input":if(et(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=rB(r);if(!i)throw Error(l(90));Q(r),et(r,i)}}}break;case"textarea":el(e,n);break;case"select":null!=(t=n.value)&&eo(e,!!n.multiple,t,!1)}},eA=aM,eM=aP;var lh={findFiberByHostInstance:rz,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ld={bundleType:lh.bundleType,version:lh.version,rendererPackageName:lh.rendererPackageName,rendererConfig:lh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=eG(e))?null:e.stateNode},findFiberByHostInstance:lh.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lf.isDisabled&&lf.supportsFiber)try{e8=lf.inject(ld),e9=lf}catch(e){}}return e7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={usingClientEntryPoint:!1,Events:[rL,r_,rB,eT,eR,aM]},e7.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!la(t))throw Error(l(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:j,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},e7.createRoot=function(e,t){if(!la(e))throw Error(l(299));var n=!1,r="",i=li;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=a8(e,1,!1,null,null,n,!1,r,i),e[rD]=t.current,ru(8===e.nodeType?e.parentNode:e),new lo(t)},e7.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw Error(l(268,e=Object.keys(e).join(",")))}return e=null===(e=eG(t))?null:e.stateNode},e7.flushSync=function(e){return aP(e)},e7.hydrate=function(e,t,n){if(!ll(t))throw Error(l(200));return lc(null,e,t,!0,n)},e7.hydrateRoot=function(e,t,n){if(!la(e))throw Error(l(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",s=li;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=a7(t,null,e,1,null!=n?n:null,i,!1,o,s),e[rD]=t.current,ru(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ls(t)},e7.render=function(e,t,n){if(!ll(t))throw Error(l(200));return lc(null,e,t,!1,n)},e7.unmountComponentAtNode=function(e){if(!ll(e))throw Error(l(40));return!!e._reactRootContainer&&(aP(function(){lc(null,null,e,!1,function(){e._reactRootContainer=null,e[rD]=null})}),!0)},e7.unstable_batchedUpdates=aM,e7.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ll(n))throw Error(l(200));if(null==e||void 0===e._reactInternals)throw Error(l(38));return lc(e,t,n,!1,r)},e7.version="18.3.1-next-f1338f8080-20240426",e7}();var tn=e9.exports;let tr=ea(tn);var ti=tr.unstable_batchedUpdates;eH.setBatchNotifyFunction(ti),eK=console;var to=eg.createContext(void 0),ts=eg.createContext(!1);function ta(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=to),window.ReactQueryClientContext):to}var tl=function(){var e=eg.useContext(ta(eg.useContext(ts)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},tu=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;eg.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var o=ta(r);return eg.createElement(ts.Provider,{value:r},eg.createElement(o.Provider,{value:t},i))},tc=eg.createContext((u=!1,{clearReset:function(){u=!1},reset:function(){u=!0},isReset:function(){return u}}));function th(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}let td=new e1({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1}}}),tf=em.createContext({}),tp=({children:e,apiUrl:t,apiKey:n,projectId:r,branch:i})=>ep.jsx(tf.Provider,{value:{apiUrl:t,apiKey:n,projectId:r,branch:i},children:ep.jsx(tu,{client:td,children:e})}),tm=[],tg=[];function tv(e){return e>=127462&&e<=127487}function ty(e,t,n){if(t==e.length)return t;t&&tx(e.charCodeAt(t))&&tw(e.charCodeAt(t-1))&&t--;let r=tb(e,t);for(t+=tk(r);t<e.length;){let i=tb(e,t);if(8205==r||8205==i||n&&function(e){if(e<768)return!1;for(let t=0,n=tm.length;;){let r=t+n>>1;if(e<tm[r])n=r;else{if(!(e>=tg[r]))return!0;t=r+1}if(t==n)return!1}}(i))t+=tk(i),r=i;else if(tv(i)){let n=0,r=t-2;for(;r>=0&&tv(tb(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function tb(e,t){let n=e.charCodeAt(t);if(!tw(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return tx(r)?(n-55296<<10)+(r-56320)+65536:n}function tx(e){return e>=56320&&e<57344}function tw(e){return e>=55296&&e<56320}function tk(e){return e<65536?1:2}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?tg:tm).push(n+=e[t])})();class tS{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=tR(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),tj.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=tR(this,e,t);let n=[];return this.decompose(e,t,n,0),tj.from(n,t-e)}eq(e){if(e==this)return!0;
vendor: 4,838 bytes, line 1
1if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new tC(this),i=new tC(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new tC(this,e)}iterRange(e,t=this.length){return new tU(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new tE(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new t$(e):tj.from(t$.split(e,[])):tS.empty}}class t$ extends tS{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((t?n:s)>=e)return new tT(r,s,n,o);r=s+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new t$(tO(this.text,[""],e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=tO(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new t$(t,e.length+i.length));else{let e=t.length>>1;n.push(new t$(t.slice(0,e)),new t$(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof t$))return super.replace(e,t,n);[e,t]=tR(this,e,t);let r=tO(this.text,tO(n.text,tO(this.text,[""],0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new t$(r,i):tj.from(t$.split(r,[]),i)}sliceString(e,t=this.length,n="\n"){[e,t]=tR(this,e,t);let r="";for(let i=0,o=0;i<=t&&o<this.text.length;o++){let s=this.text[o],a=i+s.length;i>e&&o&&(r+=n),e<a&&t>i&&(r+=s.slice(Math.max(0,e-i),t-i)),i=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new t$(n,r)),n=[],r=-1);return r>-1&&t.push(new t$(n,r)),t}}class tj extends tS{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,r);r=s+1,n=a+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i<this.children.length;i++){let s=this.children[i],a=o+s.length;if(e<=a&&t>=o){let i=r&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!i?n.push(s):s.decompose(e-o,t-o,n,i)}o=a+1}}replace(e,t,n){if([e,t]=tR(this,e,t),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let o=this.children[r],s=i+o.length;if(e>=i&&t<=s){let a=o.replace(e-i,t-i,n),l=this.lines-o.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let i=this.children.slice();return i[r]=a,new tj(i,this.length-(t-e)+n.length)}return super.replace(i,s,a)}i=s+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=tR(this,e,t);let r="";for(let i=0,o=0;i<this.children.length&&o<=t;i++){let s=this.children[i],a=o+s.length;o>e&&i&&(r+=n),e<a&&t>o&&(r+=s.sliceString(e-o,t-o,n)),o=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof tj))return 0;let n=0,[r,i,o,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==s)return n;let a=this.children[r],l=e.children[i];if(a!=l)return n+a.scanIdentical(l,t);n+=a.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new t$(n,t)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,s=[],a=0,l=-1,u=[];function c(){0!=a&&(s.push(1==u.length?u[0]:tj.from(u,l)),l=-1,a=u.length=0)}for(let t of e)!function e(t){let n;if(t.lines>i&&t instanceof tj)for(let n of t.children)e(n);else t.lines>o&&(a>o||!a)?(c(),s.push(t)):t instanceof t$&&a&&(n=u[u.length-1])instanceof t$&&t.lines+n.lines<=32?(a+=t.lines,l+=t.length+1,u[u.length-1]=new t$(n.text.concat(t.text),n.length+1+t.length)):(a+t.lines>r&&c(),a+=t.lines,l+=t.length+1,u.push(t))}(t);return c(),1==s.length?s[0]:new tj(s,t)}}function tO(e,t,n=0,r=1e9){for(let i=0,o=0,s=!0;o<e.length&&i<=r;o++){let a=e[o],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),s?(t[t.length-1]+=a,s=!1):t.push(a)),i=l+1}return t}tS.empty=new t$([""],0);class tC{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof t$?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,s=r instanceof t$?r.text.length:r.children.length;if(o==(t>
10?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof t$){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof t$?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class tU{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new tC(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class tE{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(tS.prototype[Symbol.iterator]=function(){return this.iter()},tC.prototype[Symbol.iterator]=tU.prototype[Symbol.iterator]=tE.prototype[Symbol.iterator]=function(){return this});class tT{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function tR(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function tA(e,t,n=!0,r=!0){return function(e,t,n=!0,r=!0){return(n?ty:function(e,t,n){for(;t>0;){let r=ty(e,t-2,n);if(r<t)return r;t--}return 0})(e,t,r)}(e,t,n,r)}function tM(e,t){let n=e.charCodeAt(t);if(!(n>=55296&&n<56320)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return r>=56320&&r<57344?(n-55296<<10)+(r-56320)+65536:n}function tP(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}let tD=/\r\n?|\n/;var tI=((c=tI||(tI={}))[c.Simple=0]="Simple",c[c.TrackDel=1]="TrackDel",c[c.TrackBefore=2]="TrackBefore",c[c.TrackAfter=3]="TrackAfter",c);class tN{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e,t=!1){t_(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new tN(e)}composeDesc(e){return this.empty?e:e.empty?this:tV(this,e)}mapDesc(e,t=!1){return e.empty?this:tB(this,e,t)}mapPos(e,t=-1,n=tI.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],a=this.sections[o++],l=r+s;if(a<0){if(l>e)return i+(e-r);i+=s}else{if(n!=tI.Simple&&l>=e&&(n==tI.TrackDel&&r<e&&l>e||n==tI.TrackBefore&&r<e||n==tI.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!s)return e==r||t<0?i:i+a;i+=a}r=l}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],o=this.sections[n++],s=r+i;if(o>=0&&r<=t&&s>=e)return!(r<e)||!(s>t)||"cover";r=s}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new tN(e)}static create(e){return new tN(e)}}class tF extends tN{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return t_(this,(t,n,r,i,o)=>e=e.replace(r,r+(n-t),o),!1),e}
1mapDesc(e,t=!1){return tB(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r<t.length;r+=2){let o=t[r],s=t[r+1];if(s>=0){t[r]=s,t[r+1]=o;let a=r>>1;for(;n.length<a;)n.push(tS.empty);n.push(o?e.slice(i,i+o):tS.empty)}i+=o}return new tF(t,n)}compose(e){return this.empty?e:e.empty?this:tV(this,e,!0)}map(e,t=!1){return e.empty?this:tB(this,e,t,!0)}iterChanges(e,t=!1){t_(this,e,t)}get desc(){return tN.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new tW(this);n:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s<a||s==a&&0==i.len;){if(i.done)break n;let e=Math.min(i.len,a-s);tz(r,e,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;tz(t,e,o),o>0&&tL(n,t,i.text),i.forward(e),s+=e}let l=e[o++];for(;s<l;){if(i.done)break n;let e=Math.min(i.len,l-s);tz(t,e,-1),tz(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),s+=e}}return{changes:new tF(t,n),filtered:tN.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,s=null;function a(e=!1){if(!e&&!r.length)return;o<t&&tz(r,t-o,-1);let n=new tF(r,i);s=s?s.compose(n.map(s)):n,r=[],i=[],o=0}return!function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof tF){if(l.length!=t)throw RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);a(),s=s?s.compose(l.map(s)):l}else{let{from:e,to:s=e,insert:u}=l;if(e>s||e<0||s>t)throw RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let c=u?"string"==typeof u?tS.of(u.split(n||tD)):u:tS.empty,h=c.length;if(e==s&&0==h)return;e<o&&a(),e>o&&tz(r,e-o,-1),tz(r,s-e,h),tL(i,r,c),o=s}}(e),a(!s),s}static empty(e){return new tF(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if("number"==typeof i)t.push(i,-1);else if(!Array.isArray(i)||"number"!=typeof i[0]||i.some((e,t)=>t&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==i.length)t.push(i[0],0);else{for(;n.length<r;)n.push(tS.empty);n[r]=tS.of(i.slice(1)),t.push(i[0],n[r].length)}}return new tF(t,n)}static createSet(e,t){return new tF(e,t)}}function tz(e,t,n,r=!1){if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function tL(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(tS.empty);e.push(n)}}function t_(e,t,n){let r=e.inserted;for(let i=0,o=0,s=0;s<e.sections.length;){let a=e.sections[s++],l=e.sections[s++];if(l<0)i+=a,o+=a;else{let u=i,c=o,h=tS.empty;for(;u+=a,c+=l,l&&r&&(h=h.append(r[s-2>>1])),!n&&s!=e.sections.length&&!(e.sections[s+1]<0);)a=e.sections[s++],l=e.sections[s++];t(i,u,o,c,h),i=u,o=c}}}function tB(e,t,n,r=!1){let i=[],o=r?[]:null,s=new tW(e),a=new tW(t);for(let e=-1;;){if(s.done&&a.len||a.done&&s.len)throw Error("Mismatched change set lengths");if(-1==s.ins&&-1==a.ins){let e=Math.min(s.len,a.len);tz(i,e,-1),s.forward(e),a.forward(e)}else if(a.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(a.len<s.len||a.len==s.len&&!n))){let t=a.len;for(tz(i,a.ins,-1);t;){let n=Math.min(s.len,t);s.ins>=0&&e<s.i&&s.len<=n&&(tz(i,0,s.ins),o&&tL(o,i,s.text),e=s.i),s.forward(n),t-=n}a.next()}else if(s.ins>=0){let t=0,n=s.len;for(;n;)if(-1==a.ins){let e=Math.min(n,a.len);t+=e,n-=e,a.forward(e)}else if(0==a.ins&&a.len<n)n-=a.len,a.next();else break;tz(i,t,e<s.i?s.ins:0),o&&e<s.i&&tL(o,i,s.text),e=s.i,s.forward(s.len-n)}else if(s.done&&a.done)return o?tF.createSet(i,o):tN.create(i);else throw Error("Mismatched change set lengths")}}function tV(e,t,n=!1){let r=[],i=n?[]:null,o=new tW(e),s=new tW(t);for(let e=!1;;){if(o.done&&s.done)return i?tF.createSet(r,i):tN.create(r);if(0==o.ins)tz(r,o.len,0,e),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw Error("Mismatched change set lengths");{let t=Math.min(o.len2,s.len),n=r.length;if(-1==o.ins){let n=-1==s.ins?-1:s.off?0:s.ins;tz(r,t,n,e),i&&n&&tL(i,r,s.text)}else -1==s.ins?(tz(r,o.off?0:o.len,t,e),i&&tL(i,r,o.textBit(t))):(tz(r,o.off?0:o.len,s.off?0:s.ins,e),i&&!s.off&&tL(i,r,s.text));e=(o.ins>t||s.ins>=0&&s.len>t)&&(e||r.length>n),o.forward2(t),s.forward(t)}}else tz(r,0,s.ins,e),i&&tL(i,r,s.text),s.next()}}class tW{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?tS.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?tS.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}
vendor: 4,295 bytes, line 1
1forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class tq{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new tq(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return tJ.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return tJ.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return tJ.range(e.anchor,e.head)}static create(e,t,n){return new tq(e,t,n)}}class tJ{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:tJ.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new tJ([this.main],0)}addRange(e,t=!0){return tJ.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,tJ.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new tJ(e.ranges.map(e=>tq.fromJSON(e)),e.main)}static single(e,t=e){return new tJ([tJ.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return tJ.normalized(e.slice(),t);n=i.to}return new tJ(e,t)}static cursor(e,t=0,n,r){return tq.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!=r?r:16777215)<<6)}static range(e,t,n,r){let i=(null!=n?n:16777215)<<6|(null==r?7:Math.min(6,r));return t<e?tq.create(t,e,48|i):tq.create(e,t,(t>e?8:0)|i)}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;n<e.length;n++){let r=e[n],i=e[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let o=i.from,s=Math.max(r.to,i.to);n<=t&&t--,e.splice(--n,2,r.anchor>r.head?tJ.range(s,o):tJ.range(o,s))}}return new tJ(e,t)}}function tH(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let tK=0;class tG{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=tK++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new tG(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:tQ),!!e.static,e.enables)}of(e){return new tX([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new tX(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new tX(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function tQ(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class tX{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=tK++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,s=2==this.type,a=!1,l=!1,u=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:((null!==(t=e[n.id])&&void 0!==t?t:1)&1)==0&&u.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||tZ(e,u)){let t=n(e);if(s?!tY(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>
1{let a,l=t.config.address[i];if(null!=l){let i=ne(t,l);if(this.dependencies.every(n=>n instanceof tG?t.facet(n)===e.facet(n):!(n instanceof t1)||t.field(n,!1)==e.field(n,!1))||(s?tY(a=n(e),i,r):r(a=n(e),i)))return e.values[o]=i,0}else a=n(e);return e.values[o]=a,1}}}}function tY(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function tZ(e,t){let n=!1;for(let r of t)1&t7(e,r)&&(n=!0);return n}let t0=tG.define({static:!0});class t1{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new t1(tK++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(t0).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,t0.of({field:this,create:e})]}get extension(){return this}}let t2={lowest:4,low:3,default:2,high:1,highest:0};function t3(e){return t=>new t5(t,e)}let t4={highest:t3(t2.highest),high:t3(t2.high),default:t3(t2.default),low:t3(t2.low),lowest:t3(t2.lowest)};class t5{constructor(e,t){this.inner=e,this.prec=t}}class t6{of(e){return new t8(this,e)}reconfigure(e){return t6.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class t8{constructor(e,t){this.compartment=e,this.inner=t}}class t9{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r,i,o=[],s=Object.create(null),a=new Map;for(let n of(r=[[],[],[],[],[]],i=new Map,!function e(n,o){let s=i.get(n);if(null!=s){if(s<=o)return;let e=r[s].indexOf(n);e>-1&&r[s].splice(e,1),n instanceof t8&&a.delete(n.compartment)}if(i.set(n,o),Array.isArray(n))for(let t of n)e(t,o);else if(n instanceof t8){if(a.has(n.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=t.get(n.compartment)||n.inner;a.set(n.compartment,r),e(r,o)}else if(n instanceof t5)e(n.inner,n.prec);else if(n instanceof t1)r[o].push(n),n.provides&&e(n.provides,o);else if(n instanceof tX)r[o].push(n),n.facet.extensions&&e(n.facet.extensions,t2.default);else{let t=n.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${n}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,o)}}(e,t2.default),r.reduce((e,t)=>e.concat(t))))n instanceof t1?o.push(n):(s[n.facet.id]||(s[n.facet.id]=[])).push(n);let l=Object.create(null),u=[],c=[];for(let e of o)l[e.id]=c.length<<1,c.push(t=>e.slot(t));let h=null==n?void 0:n.config.facets;for(let e in s){let t=s[e],r=t[0].facet,i=h&&h[e]||[];if(t.every(e=>0==e.type)){if(l[r.id]=u.length<<1|1,tQ(i,t))u.push(n.facet(r));else{let e=r.combine(t.map(e=>e.value));u.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}}else{for(let e of t)0==e.type?(l[e.id]=u.length<<1|1,u.push(e.value)):(l[e.id]=c.length<<1,c.push(t=>e.dynamicSlot(t)));l[r.id]=c.length<<1,c.push(e=>(function(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),o=r.filter(e=>!(1&e)),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<r.length;t++){let o=ne(e,r[t]);if(2==i[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of r)t7(e,t);return e.values[s]=a(e),1},update(e,n){if(!tZ(e,o))return 0;let r=a(e);return t.compare(r,e.values[s])?0:(e.values[s]=r,1)},reconfigure(e,i){let o=tZ(e,r),l=i.config.facets[t.id],u=i.facet(t);if(l&&!o&&tQ(n,l))return e.values[s]=u,0;let c=a(e);return t.compare(c,u)?(e.values[s]=u,0):(e.values[s]=c,1)}}})(e,r,t))}}return new t9(e,a,c.map(e=>e(l)),l,u,s)}}function t7(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function ne(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let nt=tG.define(),nn=tG.define({combine:e=>e.some(e=>e),static:!0}),nr=tG.define({combine:e=>e.length?e[0]:void 0,static:!0}),ni=tG.define(),no=tG.define(),ns=tG.define(),na=tG.define({combine:e=>!!e.length&&e[0]});
vendor: 1,984 bytes, line 1
1class nl{constructor(e,t){this.type=e,this.value=t}static define(){return new nu}}class nu{of(e){return new nl(this,e)}}class nc{constructor(e){this.map=e}of(e){return new nh(this,e)}}class nh{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new nh(this.type,t)}is(e){return this.type==e}static define(e={}){return new nc(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}nh.reconfigure=nh.define(),nh.appendConfig=nh.define();class nd{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&tH(n,t.newLength),i.some(e=>e.type==nd.time)||(this.annotations=i.concat(nd.time.of(Date.now())))}static create(e,t,n,r,i,o){return new nd(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(nd.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function nf(e,t,n){var r;let i,o,s;return n?(i=t.changes,o=tF.empty(t.changes.length),s=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(i)),{changes:s,selection:t.selection?t.selection.map(o):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:nh.mapEffects(e.effects,i).concat(nh.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}
1function np(e,t,n){let r=t.selection,i=ng(t.annotations);return t.userEvent&&(i=i.concat(nd.userEvent.of(t.userEvent))),{changes:t.changes instanceof tF?t.changes:tF.of(t.changes||[],n,e.facet(nr)),selection:r&&(r instanceof tJ?r:tJ.single(r.anchor,r.head)),effects:ng(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}nd.time=nl.define(),nd.userEvent=nl.define(),nd.addToHistory=nl.define(),nd.remote=nl.define();let nm=[];function ng(e){return null==e?nm:Array.isArray(e)?e:[e]}var nv=((h=nv||(nv={}))[h.Word=0]="Word",h[h.Space=1]="Space",h[h.Other=2]="Other",h);let ny=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{r=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class nb{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)t7(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null==n){if(t)throw RangeError("Field is not present in this state");return}return t7(this,n),ne(this,n)}update(...e){return function e(t,n,r){let i=np(t,n.length?n[0]:{},t.doc.length);n.length&&!1===n[0].filter&&(r=!1);for(let e=1;e<n.length;e++){!1===n[e].filter&&(r=!1);let o=!!n[e].sequential;i=nf(i,np(t,n[e],o?i.changes.newLength:t.doc.length),o)}let o=nd.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return function(e){let t=e.startState,n=t.facet(ns),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=nf(r,np(t,o,e.changes.newLength),!0))}return r==e?e:nd.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(r?function(t){let n=t.startState,r=!0;for(let e of n.facet(ni)){let n=e(t);if(!1===n){r=!1;break}Array.isArray(n)&&(r=!0===r?n:function(e,t){let n=[];for(let r=0,i=0;;){let o,s;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],s=e[r++];else{if(!(i<t.length))return n;o=t[i++],s=t[i++]}!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}(r,n))}if(!0!==r){let e,i;if(!1===r)i=t.changes.invertedDesc,e=tF.empty(n.doc.length);else{let n=t.changes.filter(r);e=n.changes,i=n.filtered.mapDesc(n.changes).invertedDesc}t=nd.create(n,e,t.selection&&t.selection.map(i),nh.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let i=n.facet(no);for(let r=i.length-1;r>=0;r--){let o=i[r](t);t=o instanceof nd?o:Array.isArray(o)&&1==o.length&&o[0]instanceof nd?o[0]:e(n,ng(o),!1)}return t}(o):o)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(t6.reconfigure)?(n&&(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),n=null),i.set(t.value.compartment,t.value.extension)):t.is(nh.reconfigure)?(n=null,r=t.value):t.is(nh.appendConfig)&&(n=null,r=ng(r).concat(t.value));t=n?e.startState.values.slice():new nb(n=t9.resolve(r,i,this),this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values;let o=e.startState.facet(nn)?e.newSelection:e.newSelection.asSingle();new nb(n,e.newDoc,o,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:tJ.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=ng(n.effects);for(let n=1;n<t.ranges.length;n++){let s=e(t.ranges[n]),a=this.changes(s.changes),l=a.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(l);let u=r.mapDesc(a,!0);i.push(s.range.map(u)),r=r.compose(l),o=nh.mapEffects(o,l).concat(nh.mapEffects(ng(s.effects),u))}return{changes:r,selection:tJ.create(i,t.mainIndex),effects:o}}changes(e=[]){return e instanceof tF?e:tF.of(e,this.doc.length,this.facet(nb.lineSeparator))}toText(e){return tS.of(e.split(this.facet(nb.lineSeparator)||tD))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(t7(this,t),ne(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof t1&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={}
1,n){if(!e||"string"!=typeof e.doc)throw RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let i=n[t],o=e[t];r.push(i.init(e=>i.spec.fromJSON(o,e)))}}return nb.create({doc:e.doc,selection:tJ.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=t9.resolve(e.extensions||[],new Map),n=e.doc instanceof tS?e.doc:tS.of((e.doc||"").split(t.staticFacet(nb.lineSeparator)||tD)),r=e.selection?e.selection instanceof tJ?e.selection:tJ.single(e.selection.anchor,e.selection.head):tJ.single(0);return tH(r,n.length),t.staticFacet(nn)||(r=r.asSingle()),new nb(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(nb.tabSize)}get lineBreak(){return this.facet(nb.lineSeparator)||"\n"}get readOnly(){return this.facet(na)}phrase(e,...t){for(let t of this.facet(nb.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(nt))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){var t;return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return nv.Space;if(function(e){if(r)return r.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ny.test(n)))return!0}return!1}(e))return nv.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return nv.Word;return nv.Other}}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=tA(t,o,!1);if(i(t.slice(e,o))!=nv.Word)break;o=e}for(;s<r;){let e=tA(t,s);if(i(t.slice(s,e))!=nv.Word)break;s=e}return o==s?null:tJ.range(o+n,s+n)}}function nx(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],o=r[e];if(void 0===o)r[e]=i;else if(o===i||void 0===i);else if(Object.hasOwnProperty.call(n,e))r[e]=n[e](o,i);else throw Error("Config merge conflict for field "+e)}for(let e in t)void 0===r[e]&&(r[e]=t[e]);return r}nb.allowMultipleSelections=nn,nb.tabSize=tG.define({combine:e=>e.length?e[0]:4}),nb.lineSeparator=nr,nb.readOnly=na,nb.phrases=tG.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),nb.languageData=nt,nb.changeFilter=ni,nb.transactionFilter=no,nb.transactionExtender=ns,t6.reconfigure=nh.define();class nw{eq(e){return this==e}range(e,t=e){return nk.create(e,t,this)}}nw.prototype.startSide=nw.prototype.endSide=0,nw.prototype.point=!1,nw.prototype.mapMode=tI.TrackDel;let nk=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(t,n,r){return new e(t,n,r)}};function nS(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class n${constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let r=o+s>>1,a=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return a>=0?o:s;a>=0?s=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],o=-1,s=-1;for(let a=0;a<this.value.length;a++){let l=this.value[a],u=this.from[a]+e,c=this.to[a]+e,h,d;if(u==c){let e=t.mapPos(u,l.startSide,l.mapMode);if(null==e||(h=d=e,l.startSide!=l.endSide&&(d=t.mapPos(u,l.endSide))<h))continue}else if((h=t.mapPos(u,l.startSide))>(d=t.mapPos(c,l.endSide))||h==d&&l.startSide>0&&l.endSide<=0)continue;0>(d-h||l.endSide-l.startSide)||(o<0&&(o=h),l.point&&(s=Math.max(s,d-h)),n.push(l),r.push(h-o),i.push(d-o))}return{mapped:n.length?new n$(r,i,n,s):null,pos:o}}}class nj{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new nj(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;
vendor: 8,448 bytes, line 1
1for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(nS)),this.isEmpty)return t.length?nj.of(t):this;let s=new nU(this,null,-1).goto(0),a=0,l=[],u=new nO;for(;s.value||a<t.length;)if(a<t.length&&(s.from-t[a].from||s.startSide-t[a].value.startSide)>=0){let e=t[a++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(s.chunkIndex)<t[a].from)&&(!o||r>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&u.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||r>s.to||i<s.from||o(s.from,s.to,s.value))&&!u.addInner(s.from,s.to,s.value)&&l.push(nk.create(s.from,s.to,s.value)),s.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?nj.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],s=this.chunk[i],a=e.touchesRange(o,o+s.length);if(!1===a)r=Math.max(r,s.maxPoint),t.push(s),n.push(e.mapPos(o));else if(!0===a){let{mapped:i,pos:a}=s.map(o,e);i&&(r=Math.max(r,i.maxPoint),t.push(i),n.push(a))}}let i=this.nextLayer.map(e);return 0==t.length?i:new nj(n,t,i||nj.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(t>=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return nE.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return nE.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),a=nC(o,s,n),l=new nR(o,a,i),u=new nR(s,a,i);n.iterGaps((e,t,n)=>nA(l,e,u,t,n,r)),n.empty&&0==n.length&&nA(l,0,u,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=1e9-1);let i=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),o=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(i.length!=o.length)return!1;if(!i.length)return!0;let s=nC(i,o),a=new nR(i,s,0).goto(n),l=new nR(o,s,0).goto(n);for(;;){if(a.to!=l.to||!nM(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new nR(e,null,i).goto(t),s=t,a=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFrom<t?n.length+1:o.point.startSide<0?n.length:Math.min(n.length,a);r.point(s,e,o.point,n,i,o.pointRank),a=Math.min(o.openEnd(e),n.length)}else e>s&&(r.span(s,e,o.active,a),a=o.openEnd(e));if(o.to>n)return a+(o.point&&o.to>n?1:0);s=o.to,o.next()}}static of(e,t=!1){let n=new nO;for(let r of e instanceof nk?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(nS(t,r)>0)return e.slice().sort(nS);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return nj.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=nj.empty;r=r.nextLayer)t=new nj(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}nj.empty=new nj([],[],null,-1),nj.empty.nextLayer=nj.empty;class nO{finishChunk(e){this.chunks.push(new n$(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new nO)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(nj.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=nj.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function nC(e,t,n){let r=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&r.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=r.get(e.chunk[t]);null==o||(n?n.mapPos(o):o)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(o,o+e.chunk[t].length))||i.add(e.chunk[t])}return i}class nU{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){0>(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class nE{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new nU(o,t,n,i));return 1==r.length?r[0]:new nE(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)nT(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)nT(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),nT(this.heap,0)}}}function nT(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),0>n.compare(i))break;e[r]=n,e[t]=i,t=r}}class nR{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=nE.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}
1removeActive(e){nP(this.active,e),nP(this.activeTo,e),nP(this.activeRank,e),this.minActive=nI(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||r-this.activeTo[t])>0;)t++;nD(this.active,t,n),nD(this.activeTo,t,r),nD(this.activeRank,t,i),e&&nD(e,t,this.cursor.from),this.minActive=nI(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&0>(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&nP(n,r)}else if(this.cursor.value){if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else this.addActive(n),this.cursor.next()}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function nA(e,t,n,r,i,o){e.goto(t),n.goto(r);let s=r+i,a=r,l=r-t;for(;;){let t=e.to+l-n.to,r=t||e.endSide-n.endSide,i=r<0?e.to+l:n.to,u=Math.min(i,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&nM(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(a,u,e.point,n.point):u>a&&!nM(e.active,n.active)&&o.compareRange(a,u,e.active,n.active),i>s)break;(t||e.openEnd!=n.openEnd)&&o.boundChange&&o.boundChange(i),a=i,r<=0&&e.next(),r>=0&&n.next()}}function nM(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function nP(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function nD(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function nI(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)0>(t[i]-r||e[i].endSide-e[n].endSide)&&(n=i,r=t[i]);return n}function nN(e,t,n=e.length){let r=0;for(let i=0;i<n;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=tA(e,i));return r}let nF="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),nz="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),nL="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class n_{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(let t in e)!function e(t,i,o,s){let a=[],l=/^@(\w+)\b/.exec(t[0]),u=l&&"keyframes"==l[1];if(l&&null==i)return o.push(t[0]+";");for(let n in i){let s=i[n];if(/&/.test(n))e(n.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((e,t)=>e.concat(t)),s,o);else if(s&&"object"==typeof s){if(!l)throw RangeError("The value of a property ("+n+") should be a primitive value.");e(r(n),s,a,u)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+s+";")}(a.length||u)&&o.push((!n||l||s?t:t.map(n)).join(", ")+" {"+a.join(" ")+"}")}(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=nL[nF]||1;return nL[nF]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[nz],i=n&&n.nonce;r?i&&r.setNonce(i):r=new nV(e,i),r.mount(Array.isArray(t)?t:[t],e)}}let nB=new Map;class nV{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=nB.get(n);if(t)return e[nz]=t;this.sheet=new r.CSSStyleSheet,nB.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[nz]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t<e.length;t++){let o=e[t],s=this.modules.indexOf(o);if(s<i&&s>-1&&(this.modules.splice(s,1),i--,s=-1),-1==s){if(this.modules.splice(i++,0,o),n)for(let e=0;e<o.rules.length;e++)n.insertRule(o.rules[e],r++)}else{for(;i<s;)r+=this.modules[i++].rules.length;r+=o.rules.length,i++}}if(n)0>t.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var nW={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},nq={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},nJ="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),nH="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),nK=0;nK<10;nK++)nW[48+nK]=nW[96+nK]=String(nK);for(var nK=1;nK<=24;nK++)nW[nK+111]="F"+nK;for(var nK=65;nK<=90;nK++)nW[nK]=String.fromCharCode(nK+32),nq[nK]=String.fromCharCode(nK);for(var nG in nW)nq.hasOwnProperty(nG)||(nq[nG]=nW[nG]);function nQ(e){return(11==e.nodeType?e.getSelection?e:e.ownerDocument:e).getSelection()}function nX(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function nY(e,t){if(!t.anchorNode)return!1;try{return nX(e,t.anchorNode)}catch(e){return!1}}function nZ(e){return 3==e.nodeType?re(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function n0(e,t,n,r){return!!n&&(n3(e,t,n,r,-1)||n3(e,t,n,r,1))}function n1(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function n2(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function n3(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;
vendor: 16,790 bytes, line 1
1if(t==(i<0?0:n4(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=n1(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType||1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?n4(e):0}}}function n4(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function n5(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function n6(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||1>Math.abs(t.width-e.offsetWidth))&&(n=1),(r>.995&&r<1.005||!isFinite(r)||1>Math.abs(t.height-e.offsetHeight))&&(r=1),{scaleX:n,scaleY:r}}class n8{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?n4(t):0),n,Math.min(e.focusOffset,n?n4(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let n9=null;function n7(e){if(e.setActive)return e.setActive();if(n9)return e.focus(n9);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==n9?{get preventScroll(){return n9={preventScroll:!0},!0}}:void 0),!n9){n9=!1;for(let e=0;e<t.length;){let n=t[e++],r=t[e++],i=t[e++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=i&&(n.scrollLeft=i)}}}function re(e,t,n=t){let r=i||(i=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function rt(e,t,n,r){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let o=new KeyboardEvent("keydown",i);o.synthetic=!0,e.dispatchEvent(o);let s=new KeyboardEvent("keyup",i);return s.synthetic=!0,e.dispatchEvent(s),o.defaultPrevented||s.defaultPrevented}function rn(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function rr(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function ri(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r>0)return{node:n,offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;r=n4(n=n.childNodes[r-1])}else{if(!n.parentNode||n2(n))return null;r=n1(n),n=n.parentNode}}}function ro(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r<n.nodeValue.length)return{node:n,offset:r};if(1==n.nodeType&&r<n.childNodes.length){if("false"==n.contentEditable)return null;n=n.childNodes[r],r=0}else{if(!n.parentNode||n2(n))return null;r=n1(n)+1,n=n.parentNode}}}class rs{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new rs(e.parentNode,n1(e),t)}static after(e,t){return new rs(e.parentNode,n1(e)+1,t)}}let ra=[];class rl{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n=this.dom,r=null,i;for(let o of this.children){if(7&o.flags){if(!o.dom&&(i=r?r.nextSibling:n.firstChild)){let e=rl.get(i);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(i)}o.sync(e,t),o.flags&=-8}if(i=r?r.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&i!=o.dom&&(t.written=!0),o.dom.parentNode==n)for(;i&&i!=o.dom;)i=ru(i);else n.insertBefore(o.dom,i);r=o.dom}for((i=r?r.nextSibling:n.firstChild)&&t&&t.node==n&&(t.written=!0);i;)i=ru(i)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==n4(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!rl.get(n);)n=n.nextSibling;if(!n)return this.length;for(let e=0,t=0;;e++){let r=this.children[e];if(r.dom==n)return t;t+=r.length+r.breakAfter}}domBoundsAround(e,t,n=0){let r=-1,i=-1,o=-1,s=-1;for(let a=0,l=n,u=n;a<this.children.length;a++){let n=this.children[a],c=l+n.length;if(l<e&&c>t)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=a,i=l),l>t&&n.dom.parentNode==this.dom){o=a,s=u;break}u=c,l=c+n.breakAfter}return{from:i,to:s<0?n+this.length:s,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=ra){this.markDirty();for(let r=e;r<t;r++){let e=this.children[r];e.parent==this&&0>n.indexOf(e)&&e.destroy()}n.length<250?this.children.splice(e,t-e,...n):this.children=[].concat(this.children.slice(0,e),n,this.children.slice(t));for(let e=0;e<n.length;e++)n[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new rc(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,r,i,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function ru(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}rl.prototype.breakAfter=0;class rc{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function rh(e,t,n,r,i,o,s,a,l){let{children:u}=e,c=u.length?u[t]:null,h=o.length?o[o.length-1]:null,d=h?h.breakAfter:s;if(!(t==r&&c&&!s&&!d&&o.length<2&&c.merge(n,i,o.length?h:null,0==n,a,l))){if(r<u.length){let e=u[r];e&&(i<e.length||e.breakAfter&&(null==h?void 0:h.breakAfter))?(t==r&&(e=e.split(i),i=0),!d&&h&&e.merge(0,i,h,!0,0,l)?o[o.length-1]=e:((i||e.children.length&&!e.children[0].length)&&e.merge(0,i,null,!1,0,l),o.push(e))):(null==e?void 0:e.breakAfter)&&(h?h.breakAfter=1:s=1),r++}for(c&&(c.breakAfter=s,n>0&&(!s&&o.length&&c.merge(n,c.length,o[0],!1,a,0)?c.breakAfter=o.shift().breakAfter:(n<c.length||c.children.length&&0==c.children[c.children.length-1].length)&&c.merge(n,c.length,null,!1,a,0),t++));t<r&&o.length;)if(u[r-1].become(o[o.length-1]))r--,o.pop(),l=o.length?0:a;else if(u[t].become(o[0]))t++,o.shift(),a=o.length?0:l;else break;!o.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,a,l)&&t--,(t<r||o.length)&&e.replaceChildren(t,r,o)}}function rd(e,t,n,r,i,o){let s=e.childCursor(),{i:a,off:l}=s.findPos(n,1),{i:u,off:c}=s.findPos(t,-1),h=t-n;for(let e of r)h+=e.length;e.length+=h,rh(e,u,c,a,l,r,0,i,o)}let rf="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},rp="undefined"!=typeof document?document:{documentElement:{style:{}}},rm=/Edge\/(\d+)/.exec(rf.userAgent),rg=/MSIE \d/.test(rf.userAgent),rv=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rf.userAgent),ry=!!(rg||rv||rm),rb=!ry&&/gecko\/(\d+)/i.test(rf.userAgent),rx=!ry&&/Chrome\/(\d+)/.exec(rf.userAgent),rw="webkitFontSmoothing"in rp.documentElement.style,rk=!ry&&/Apple Computer/.test(rf.vendor),rS=rk&&(/Mobile\/\w+/.test(rf.userAgent)||rf.maxTouchPoints>2);var r$={mac:rS||/Mac/.test(rf.platform),windows:/Win/.test(rf.platform),linux:/Linux|X11/.test(rf.platform),ie:ry,ie_version:rg?rp.documentMode||6:rv?+rv[1]:rm?+rm[1]:0,gecko:rb,gecko_version:rb?+(/Firefox\/(\d+)/.exec(rf.userAgent)||[0,0])[1]:0,chrome:!!rx,chrome_version:rx?+rx[1]:0,ios:rS,android:/Android\b/.test(rf.userAgent),webkit:rw,safari:rk,webkit_version:rw?+(/\bAppleWebKit\/(\d+)/.exec(rf.userAgent)||[0,0])[1]:0,tabSize:null!=rp.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class rj extends rl{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags)&&(!n||n instanceof rj&&!(this.length-(t-e)+n.length>256)&&!(8&n.flags))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new rj(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new rs(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,s=0;0==t&&n<0||t==r&&n>=0?!(r$.chrome||r$.gecko)&&(t?(i--,s=1):o<r&&(o++,s=-1)):n<0?i--:o<r&&o++;let a=re(e,i,o).getClientRects();if(!a.length)return null;let l=a[(s?s<0:n>=0)?0:a.length-1];return r$.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,e=>e.width)||l),s?n5(l,s<0):l||null}(this.dom,e,t)}}class rO extends rl{constructor(e,t=[],n=0){for(let r of(super(),this.mark=e,this.children=t,this.length=n,t))r.setParent(this)}setAttrs(e){if(rn(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return(!n||!!(n instanceof rO&&n.mark.eq(this.mark))&&(!e||!(i<=0))&&(!(t<this.length)||!(o<=0)))&&(rd(this,e,t,n?n.children.slice():[],i-1,o-1),this.markDirty(),!0)}split(e){let t=[],n=0,r=-1,i=0;for(let o of this.children){let s=n+o.length;s>e&&t.push(n<e?o.split(e-n):o),r<0&&n>=e&&(r=i),n=s,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new rO(this.mark,t,o)}domAtPos(e){return rE(this,e)}coordsAt(e,t){return rT(this,e,t)}}class rC extends rl{static create(e,t,n){return new rC(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=rC.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,r,i,o){return(!n||n instanceof rC&&!!this.widget.compare(n.widget)&&(!(e>0)||!(i<=0))&&(!(t<this.length)||!(o<=0)))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e instanceof rC&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return tS.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,r=this.posAtStart;return n?n.slice(r,r+this.length):tS.empty}domAtPos(e){return(this.length?0==e:this.side>0)?rs.before(this.dom):rs.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let t=o?r.length-1:0;i=r[t],e>0?0!=t:t!=r.length-1&&!(i.top<i.bottom);t+=o?-1:1);return n5(i,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class rU extends rl{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof rU&&e.side==this.side}split(){return new rU(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?rs.before(this.dom):rs.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return tS.empty}get isHidden(){return!0}}function rE(e,t){let n=e.dom,{children:r}=e,i=0;for(let e=0;i<r.length;i++){let o=r[i],s=e+o.length;if(!(s==e&&0>=o.getSide())){if(t>e&&t<s&&o.dom.parentNode==n)return o.domAtPos(t-e);if(t<=e)break;e=s}}for(let e=i;e>0;e--){let t=r[e-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let e=i;e<r.length;e++){let t=r[e];if(t.dom.parentNode==n)return t.domAtPos(0)}return new rs(n,0)}function rT(e,t,n){let r=null,i=-1,o=null,s=-1;!function e(t,a){for(let l=0,u=0;l<t.children.length&&u<=a;l++){let c=t.children[l],h=u+c.length;h>=a&&(c.children.length?e(c,a-u):(!o||o.isHidden&&n>0)&&(h>a||u==h&&c.getSide()>0)?(o=c,s=a-u):(u<a||u==h&&0>c.getSide()&&!c.isHidden)&&(r=c,i=a-u)),u=h}}(e,t);let a=(n<0?r:o)||r||o;return a?a.coordsAt(Math.max(0,a==r?i:s),n):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=nZ(t);return n[n.length-1]||null}(e)}function rR(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}rj.prototype.children=rC.prototype.children=rU.prototype.children=ra;let rA=Object.create(null);function rM(e,t,n){if(e==t)return!0;e||(e=rA),t||(t=rA);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function rP(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}class rD{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return -1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var rI=((d=rI||(rI={}))[d.Text=0]="Text",d[d.WidgetBefore=1]="WidgetBefore",d[d.WidgetAfter=2]="WidgetAfter",d[d.WidgetRange=3]="WidgetRange",d);class rN extends nw{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new rF(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new rL(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:i,end:o}=r_(e,t);n=(i?t?-3e8:-1:5e8)-1,r=(o?t?2e8:1:-6e8)+1}return new rL(e,n,r,t,e.widget||null,!0)}static line(e){return new rz(e)}static set(e,t=!1){return nj.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}rN.none=nj.empty;class rF extends rN{constructor(e){let{start:t,end:n}=r_(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof rF&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&rM(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw RangeError("Mark decorations may not be empty");return super.range(e,t)}}rF.prototype.point=!1;class rz extends rN{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof rz&&this.spec.class==e.spec.class&&rM(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}
1rz.prototype.mapMode=tI.TrackBefore,rz.prototype.point=!0;class rL extends rN{constructor(e,t,n,r,i,o){super(t,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?tI.TrackBefore:tI.TrackAfter:tI.TrackDel}get type(){return this.startSide!=this.endSide?rI.WidgetRange:this.startSide<=0?rI.WidgetBefore:rI.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){var t,n;return e instanceof rL&&((t=this.widget)==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function r_(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function rB(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}rL.prototype.point=!0;class rV extends rl{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,o){if(n){if(!(n instanceof rV))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),rd(this,e,t,n?n.children.slice():[],i,o),!0}split(e){let t=new rV;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let e=n;e<this.children.length;e++)t.append(this.children[e],0);for(;n>0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){rM(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){!function e(t,n,r){let i,{children:o}=t;r>0&&n instanceof rO&&o.length&&(i=o[o.length-1])instanceof rO&&i.mark.eq(n.mark)?e(i,n.children[0],r-1):(o.push(n),n.setParent(t)),t.length+=n.length}(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=rR(t,this.attrs||{})),n&&(this.attrs=rR({class:n},this.attrs||{}))}domAtPos(e){return rE(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(rn(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(rP(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&rl.get(r) instanceof rO;)r=r.lastChild;if(!r||!this.length||"BR"!=r.nodeName&&(null===(n=rl.get(r))||void 0===n?void 0:n.isEditable)==!1&&(!r$.ios||!this.children.some(e=>e instanceof rj))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0,t;for(let n of this.children){if(!(n instanceof rj)||/[^ -~]/.test(n.text))return null;let r=nZ(n.dom);if(1!=r.length)return null;e+=r[0].width,t=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let n=rT(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(2>Math.abs(t-e.lineHeight)&&e.textHeight<t){let r=(t-e.textHeight)/2;return{top:n.top+r,bottom:n.bottom-r,left:n.left,right:n.left}}}return n}become(e){return e instanceof rV&&0==this.children.length&&0==e.children.length&&rM(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let n=0,r=0;n<e.children.length;n++){let i=e.children[n],o=r+i.length;if(o>=t){if(i instanceof rV)return i;if(o>t)break}r=o+i.breakAfter}return null}}class rW extends rl{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return(!n||n instanceof rW&&!!this.widget.compare(n.widget)&&(!(e>0)||!(i<=0))&&(!(t<this.length)||!(o<=0)))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return 0==e?rs.before(this.dom):rs.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new rW(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return ra}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):tS.empty}domBoundsAround(){return null}become(e){return e instanceof rW&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)||(this.widget instanceof rq?null:n5(this.dom.getBoundingClientRect(),this.length?0==e:t<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t!=n&&(e<0?t<0:n>0)}}class rq extends rD{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");
1return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class rJ{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof rW&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new rV),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(rH(new rU(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof rW||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(rH(new rj(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof rL){if(n.block)throw RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(n instanceof rL){if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new rW(n.widget||rK.block,s,n));else{let o=rC.create(n.widget||rK.inline,s,s?0:n.startSide),a=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e<t||n.startSide>0),l=!o.isEditable&&(e<t||i>r.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||a||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),a&&(u.append(rH(new rU(1),r),i),i=r.length+Math.max(0,i-r.length)),u.append(rH(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?e<t||i>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,r,i){let o=new rJ(e,t,n,i);return o.openEnd=nj.spans(r,t,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function rH(e,t){for(let n of t)e=new rO(n,[e],e.length);return e}class rK extends rD{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}rK.inline=new rK("span"),rK.block=new rK("div");var rG=((f=rG||(rG={}))[f.LTR=0]="LTR",f[f.RTL=1]="RTL",f);let rQ=rG.LTR,rX=rG.RTL;function rY(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}let rZ=rY("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),r0=rY("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),r1=Object.create(null),r2=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);r1[t]=n,r1[n]=-t}function r3(e){return e<=247?rZ[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?r0[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}let r4=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class r5{get dir(){return this.level%2?rX:rQ}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,r){let i=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=t&&s.to>=t){if(s.level==n)return o;(i<0||(0!=r?r<0?s.from<t:s.to>t:e[i].level>s.level))&&(i=o)}}if(i<0)throw RangeError("Index out of range");return i}}let r6=[];function r8(e){return[new r5(0,e,0)]}let r9="",r7=tG.define(),ie=tG.define(),it=tG.define(),ir=tG.define(),ii=tG.define(),io=tG.define(),is=tG.define(),ia=tG.define(),il=tG.define(),iu=tG.define({combine:e=>e.some(e=>e)}),ic=tG.define({combine:e=>e.some(e=>e)}),ih=tG.define();class id{constructor(e,t="nearest",n="nearest",r=5,i=5,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new id(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new id(tJ.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}let ip=nh.define({map:(e,t)=>e.map(t)}),im=nh.define();function ig(e,t,n){let r=e.facet(ir);
1r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}let iv=tG.define({combine:e=>!e.length||e[0]}),iy=0,ib=tG.define();class ix{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.extension=i(this)}static define(e,t){let{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new ix(iy++,e,n,r,e=>{let t=[ib.of(e)];return o&&t.push(i$.of(t=>{let n=t.plugin(e);return n?o(n):rN.none})),i&&t.push(i(e)),t})}static fromClass(e,t){return ix.define(t=>new e(t),t)}}class iw{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(ig(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){ig(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){ig(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let ik=tG.define(),iS=tG.define(),i$=tG.define(),ij=tG.define(),iO=tG.define(),iC=tG.define();function iU(e,t){let n=e.state.facet(iC);if(!n.length)return n;let r=n.map(t=>t instanceof Function?t(e):t),i=[];return nj.spans(r,t.from,t.to,{point(){},span(e,n,r,o){let s=e-t.from,a=n-t.from,l=i;for(let e=r.length-1;e>=0;e--,o--){let n=r[e].spec.bidiIsolate,i;if(null==n&&(n=function(e,t,n){for(let r=t;r<n;r++){let t=r3(e.charCodeAt(r));if(1==t)break;if(2==t||4==t)return rX}return rQ}(t.text,s,a)),o>0&&l.length&&(i=l[l.length-1]).to==s&&i.direction==n)i.to=a,l=i.inner;else{let e={from:s,to:a,direction:n,inner:[]};l.push(e),l=e.inner}}}}),i}let iE=tG.define();function iT(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(iE)){let s=o(e);s&&(null!=s.left&&(t=Math.max(t,s.left)),null!=s.right&&(n=Math.max(n,s.right)),null!=s.top&&(r=Math.max(r,s.top)),null!=s.bottom&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}let iR=tG.define();class iA{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new iA(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let r=0,i=0,o=0,s=0;;r++){let a=r==e.length?null:e[r],l=o-s,u=a?a.fromB:1e9;for(;i<t.length&&t[i]<u;){let e=t[i],r=t[i+1],o=Math.max(s,e),a=Math.min(u,r);if(o<=a&&new iA(o+l,a+l,o,a).addToSet(n),r>u)break;i+=2}if(!a)return n;new iA(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),o=a.toA,s=a.toB}}}class iM{constructor(e,t,n){for(let r of(this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=tF.empty(this.startState.doc.length),n))this.changes=this.changes.compose(r.changes);let r=[];this.changes.iterChangedRanges((e,t,n,i)=>r.push(new iA(e,t,n,i))),this.changedRanges=r}static create(e,t,n){return new iM(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}class iP extends rl{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=rN.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new rV],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new iA(0,0,0,e.state.doc.length)],0,null)}update(e){var t,n,r,i,o,s;let a,l;let u=e.changedRanges;this.minWidth>0&&u.length&&(u.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let c=-1;!(this.view.inputState.composing>=0)||this.view.observer.editContext||((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?c=this.domChanged.newSel.head:(n=e.changes,r=this.hasComposition,a=!1,r&&n.iterChangedRanges((e,t)=>{e<r.to&&t>r.from&&(a=!0)}),a||e.selectionSet||(c=e.state.selection.main.head)));let h=c>-1?function(e,t,n){let r=iD(e,n);if(!r)return null;let{node:i,from:o,to:s}=r,a=i.nodeValue;if(/[\n\r]/.test(a)||e.state.doc.sliceString(r.from,r.to)!=a)return null;let l=t.invertedDesc,u=new iA(l.mapPos(o),l.mapPos(s),o,s),c=[];for(let t=i.parentNode;;t=t.parentNode){let n=rl.get(t);if(n instanceof rO)c.push({node:t,deco:n.mark});else{if(n instanceof rV||"DIV"==t.nodeName&&t.parentNode==e.contentDOM)return{range:u,text:i,marks:c,line:t};if(t==e.contentDOM)return null;c.push({node:t,deco:new rF({inclusive:!0,attributes:function(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}(t),tagName:t.tagName.toLowerCase()})})}}}(this.view,e.changes,c):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:n}=this.hasComposition;u=new iA(t,n,e.changes.mapPos(t,-1),e.changes.mapPos(n,1)).addToSet(u.slice())}this.hasComposition=h?{from:h.range.fromB,to:h.range.toB}:null,(r$.ie||r$.chrome)&&!h&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let d=(i=this.decorations,o=this.updateDeco(),s=e.changes,l=new iI,nj.compare(i,o,s,l),l.changes);return u=iA.extendWithRanges(u,d),(!!(7&this.flags)||0!=u.length)&&(this.updateInner(u,e.startState.doc.length,h),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n
1);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=r$.chrome||r$.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(e=>e.flags&=-9);let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof rW&&e.widget instanceof rq&&i.push(e.dom);r.updateGaps(i)}updateChildren(e,t,n){let r=n?n.range.addToSet(e.slice()):e,i=this.childCursor(t);for(let e=r.length-1;;e--){let t=e>=0?r[e]:null;if(!t)break;let{fromA:o,toA:s,fromB:a,toB:l}=t,u,c,h,d;if(n&&n.range.fromB<l&&n.range.toB>a){let e=rJ.build(this.view.state.doc,a,n.range.fromB,this.decorations,this.dynamicDecorationMap),t=rJ.build(this.view.state.doc,n.range.toB,l,this.decorations,this.dynamicDecorationMap);c=e.breakAtStart,h=e.openStart,d=t.openEnd;let r=this.compositionView(n);t.breakAtStart?r.breakAfter=1:t.content.length&&r.merge(r.length,r.length,t.content[0],!1,t.openStart,0)&&(r.breakAfter=t.content[0].breakAfter,t.content.shift()),e.content.length&&r.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),u=e.content.concat(r).concat(t.content)}else({content:u,breakAtStart:c,openStart:h,openEnd:d}=rJ.build(this.view.state.doc,a,l,this.decorations,this.dynamicDecorationMap));let{i:f,off:p}=i.findPos(s,1),{i:m,off:g}=i.findPos(o,-1);rh(this,m,g,f,p,u,c,h,d)}n&&this.fixCompositionDOM(n)}updateEditContextFormatting(e){for(let t of(this.editContextFormatting=this.editContextFormatting.map(e.changes),e.transactions))for(let e of t.effects)e.is(im)&&(this.editContextFormatting=e.value)}compositionView(e){let t=new rj(e.text.nodeValue);for(let{deco:n}of(t.flags|=8,e.marks))t=new rO(n,[t],t.length);let n=new rV;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some(e=>7&e.flags)?1:0),this.markedForComposition.add(t);let n=rl.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let i=e.marks.length-1;i>=-1;i--)n=r.childPos(n.off,1),r=r.children[n.i],t(i>=0?e.marks[i].node:e.text,r)}updateSelection(e=!1,t=!1){var n;(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,o=!i&&!(this.view.state.facet(iv)||this.dom.tabIndex>-1)&&nY(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||t||o))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),u=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(r$.gecko&&a.empty&&!this.hasComposition&&1==(n=l).node.nodeType&&n.node.firstChild&&(0==n.offset||"false"==n.node.childNodes[n.offset-1].contentEditable)&&(n.offset==n.node.childNodes.length||"false"==n.node.childNodes[n.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(e,l.node.childNodes[l.offset]||null)),l=u=new rs(e,0),s=!0}let c=this.view.observer.selectionRange;!s&&c.focusNode&&(n0(l.node,l.offset,c.anchorNode,c.anchorOffset)&&n0(u.node,u.offset,c.focusNode,c.focusOffset)||this.suppressWidgetCursorChange(c,a))||(this.view.observer.ignore(()=>{r$.android&&r$.chrome&&this.dom.contains(c.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=nQ(this.view.root);if(e){if(a.empty){if(r$.gecko){var t,n;let e=(t=l.node,n=l.offset,1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(n<t.childNodes.length&&"false"==t.childNodes[n].contentEditable?2:0));if(e&&3!=e){let t=(1==e?ri:ro)(l.node,l.offset);t&&(l=new rs(t.node,t.offset))}}e.collapse(l.node,l.offset),null!=a.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=a.bidiLevel)}else if(e.extend){e.collapse(l.node,l.offset);try{e.extend(u.node,u.offset)}catch(e){}}else{let t=document.createRange();a.anchor>a.head&&([l,u]=[u,l]),t.setEnd(u.node,u.offset),t.setStart(l.node,l.offset),e.removeAllRanges(),e.addRange(t)}
vendor: 4,585 bytes, line 1
1}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new rs(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new rs(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&n0(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=nQ(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=rV.find(this,t.head);if(!o)return;let s=o.posAtStart;if(t.head==s||t.head==s+o.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&n.collapse(r,i)}moveToLine(e){let t=this.dom,n;if(e.node!=t)return e;for(let r=e.offset;!n&&r<t.childNodes.length;r++){let e=rl.get(t.childNodes[r]);e instanceof rV&&(n=e.domAtPos(0))}for(let r=e.offset-1;!n&&r>=0;r--){let e=rl.get(t.childNodes[r]);e instanceof rV&&(n=e.domAtPos(e.length))}return n?new rs(n.node,n.offset,!0):e}nearest(e){for(let t=e;t;){let e=rl.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(n<e.length||e instanceof rV)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,r=0;for(let i=this.length,o=this.children.length-1;o>=0;o--){let s=this.children[o],a=i-s.breakAfter,l=a-s.length;if(a<e)break;if(l<=e&&(l<e||s.covers(-1))&&(a>e||s.covers(1))&&(!n||s instanceof rV&&!(n instanceof rV&&t>=0)))n=s,r=l;else if(n&&l==e&&a==e&&s instanceof rW&&2>Math.abs(t)){if(s.deco.startSide<0)break;o&&(n=null)}i=l}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),r=this.children[t];if(!(r instanceof rV))return null;for(;r.children.length;){let{i:e,off:t}=r.childPos(n,1);for(;;e++){if(e==r.children.length)return null;if((r=r.children[e]).length)break}n=t}if(!(r instanceof rj))return null;let i=tA(r.text,n);if(i==n)return null;let o=re(r.dom,n,i).getClientRects();for(let e=0;e<o.length;e++){let t=o[e];if(e==o.length-1||t.top<t.bottom&&t.left<t.right)return t}return null}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==rG.LTR;for(let e=0,l=0;l<this.children.length;l++){let u=this.children[l],c=e+u.length;if(c>r)break;if(e>=n){let n=u.dom.getBoundingClientRect();if(t.push(n.height),o){let t=u.dom.lastChild,r=t?nZ(t):[];if(r.length){let t=r[r.length-1],o=a?t.right-n.left:n.right-t.left;o>s&&(s=o,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=c)}}}e=c+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?rG.RTL:rG.LTR}measureTextSize(){for(let e of this.children)if(e instanceof rV){let t=e.measureTextSize();if(t)return t}let e=document.createElement("div"),t,n,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let i=nZ(e.firstChild)[0];t=e.getBoundingClientRect().height,n=i?i.width/27:7,r=i?i.height:t,e.remove()}),{lineHeight:t,charWidth:n,textHeight:r}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new rc(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(rN.replace({widget:new rq(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return rN.set(e)}updateDeco(){let e=1,t=this.view.state.facet(i$).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),n=!1,r=this.view.state.facet(ij).map((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e});
1for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(nj.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=t.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let t of this.view.state.facet(ih))try{if(t(this.view,e.range,e))return!0}catch(e){ig(this.view.state,e,"scroll handler")}let{range:t}=e,n=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),r;if(!n)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let i=iT(this.view),o={left:n.left-i.left,top:n.top-i.top,right:n.right+i.right,bottom:n.bottom+i.bottom},{offsetWidth:s,offsetHeight:a}=this.view.scrollDOM;!function(e,t,n,r,i,o,s,a){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,h=!1;c&&!h;)if(1==c.nodeType){let e,d=c==l.body,f=1,p=1;if(d)e=function(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(h=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();({scaleX:f,scaleY:p}=n6(c,t)),e={left:t.left,right:t.left+c.clientWidth*f,top:t.top,bottom:t.top+c.clientHeight*p}}let m=0,g=0;if("nearest"==i)t.top<e.top?(g=-(e.top-t.top+s),n>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+g+s)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+s,n<0&&t.top-g<e.top&&(g=-(e.top+g-t.top+s)));else{let r=t.bottom-t.top,o=e.bottom-e.top;g=("center"==i&&r<=o?t.top+r/2-o/2:"start"==i||"center"==i&&n<0?t.top-s:t.bottom-o+s)-e.top}if("nearest"==r?t.left<e.left?(m=-(e.left-t.left+o),n>0&&t.right>e.right+m&&(m=t.right-e.right+m+o)):t.right>e.right&&(m=t.right-e.right+o,n<0&&t.left<e.left+m&&(m=-(e.left+m-t.left+o))):m=("center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==a?t.left-o:t.right-(e.right-e.left)+o)-e.left,m||g){if(d)u.scrollBy(m,g);else{let e=0,n=0;if(g){let e=c.scrollTop;c.scrollTop+=g/p,n=(c.scrollTop-e)*p}if(m){let t=c.scrollLeft;c.scrollLeft+=m/f,e=(c.scrollLeft-t)*f}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&1>Math.abs(e-m)&&(r="nearest"),n&&1>Math.abs(n-g)&&(i="nearest")}}if(d)break;c=c.assignedSlot||c.parentNode}else if(11==c.nodeType)c=c.host;else break}(this.view.scrollDOM,o,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==rG.LTR)}}function iD(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=ri(n.focusNode,n.focusOffset),i=ro(n.focusNode,n.focusOffset),o=r||i;if(i&&r&&i.node!=r.node){let t=rl.get(i.node);if(!t||t instanceof rj&&t.text!=i.node.nodeValue)o=i;else if(e.docView.lastCompositionAfterCursor){let e=rl.get(r.node);!e||e instanceof rj&&e.text!=r.node.nodeValue||(o=i)}}if(e.docView.lastCompositionAfterCursor=o!=r,!o)return null;let s=t-o.offset;return{from:s,to:s+o.node.nodeValue.length,node:o.node}}let iI=class{constructor(){this.changes=[]}compareRange(e,t){rB(e,t,this.changes)}comparePoint(e,t){rB(e,t,this.changes)}boundChange(e){rB(e,e,this.changes)}};function iN(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function iF(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function iz(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function iL(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,s=0;for(let a=0;a<r;a++){let r=re(e,a,a+1).getClientRects();for(let l=0;l<r.length;l++){let u=r[l];if(u.top==u.bottom)continue;s||(s=t-u.left);let c=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c<o){let n=t>=(u.left+u.right)/2,r=n;if((r$.chrome||r$.gecko)&&re(e,a).getBoundingClientRect().left==u.right&&(r=!n),c<=0)return{node:e,offset:a+(r?1:0)};i=a+(r?1:0),o=c}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function i_(e,t,n,r=-1){var i,o;let s=e.contentDOM.getBoundingClientRect(),a=s.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:c,y:h}=t,d=h-a;if(d<0)return 0;if(d>u)return e.state.doc.length;for(let t=e.viewState.heightOracle.textHeight/2,i=!1;(l=e.elementAtHeight(d)).type!=rI.Text;)for(;!((d=r>0?l.bottom+t:l.top-t)>=0)||!(d<=u);){if(i)return n?null:0;i=!0,r=-r}h=a+d;let f=l.from;if(f<e.viewport.from)return 0==e.viewport.from?0:n?null:iB(e,s,l,c,h);if(f>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:iB(e,s,l,c,h);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(c,h);g&&!e.contentDOM.contains(g)&&(g=null),!g&&(c=Math.max(s.left+1,Math.min(s.right-1,c)),(g=m.elementFromPoint(c,h))&&!e.contentDOM.contains(g)&&(g=null));let v,y=-1;if(g&&(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable)!=!1){if(p.caretPositionFromPoint){let e=p.caretPositionFromPoint(c,h);e&&({offsetNode:v,offset:y}=e)}else if(p.caretRangeFromPoint){let t=p.caretRangeFromPoint(c,h);t&&({startContainer:v,startOffset:y}=t,(!e.contentDOM.contains(v)||r$.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return re(e,r-1,r).getBoundingClientRect().left>n}(v,y,c)||r$.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return n-(1==e.nodeType?e.getBoundingClientRect():re(e,0,Math.max(e.n
1odeValue.length,1)).getBoundingClientRect()).left>5}(v,y,c))&&(v=void 0))}v&&(y=Math.min(n4(v),y))}if(!v||!e.docView.dom.contains(v)){let t=rV.find(e.docView,f);if(!t)return d>l.top+l.height/2?l.to:l.from;({node:v,offset:y}=function e(t,n,r){let i,o,s,a,l,u,c,h,d=!1;for(let m=t.firstChild;m;m=m.nextSibling){let t=nZ(m);for(let g=0;g<t.length;g++){var f,p;let v=t[g];u&&iN(u,v)&&(v=iF(iz(v,u.bottom),u.top));let y=(f=v).left>n?f.left-n:Math.max(0,n-f.right),b=(p=v).top>r?p.top-r:Math.max(0,r-p.bottom);if(0==y&&0==b)return 3==m.nodeType?iL(m,n,r):e(m,n,r);if(!l||h>b||h==b&&c>y){l=m,u=v,c=y,h=b;let e=b?r<v.top?-1:1:y?n<v.left?-1:1:0;d=!e||(e>0?g<t.length-1:g>0)}0==y?r>v.bottom&&(!s||s.bottom<v.bottom)?(i=m,s=v):r<v.top&&(!a||a.top>v.top)&&(o=m,a=v):s&&iN(s,v)?s=iz(s,v.bottom):a&&iN(a,v)&&(a=iF(a,v.top))}}if(s&&s.bottom>=r?(l=i,u=s):a&&a.top<=r&&(l=o,u=a),!l)return{node:t,offset:0};let m=Math.max(u.left,Math.min(u.right,n));if(3==l.nodeType)return iL(l,m,r);if(d&&"false"!=l.contentEditable)return e(l,m,r);let g=Array.prototype.indexOf.call(t.childNodes,l)+(n>=(u.left+u.right)/2?1:0);return{node:t,offset:g}}(t.dom,c,h))}let b=e.docView.nearest(v);if(!b)return null;if(!b.isWidget||(null===(o=b.dom)||void 0===o?void 0:o.nodeType)!=1)return b.localPosFromDOM(v,y)+b.posAtStart;{let e=b.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?b.posAtStart:b.posAtEnd}}function iB(e,t,n,r,i){let o=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;o+=Math.floor((i-n.top-(e.defaultLineHeight-t)*.5)/t)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+function(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=tA(e,r)}return e.length}(s,o,e.state.tabSize)}function iV(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==rI.Text))return e}return n}function iW(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let a=t,l=null;;){let t=function(e,t,n,r,i){var o;let s=r.head-e.from,a=r5.find(t,s,null!==(o=r.bidiLevel)&&void 0!==o?o:-1,r.assoc),l=t[a],u=l.side(i,n);if(s==u){let e=a+=i?1:-1;if(e<0||e>=t.length)return null;s=(l=t[a=e]).side(!i,n),u=l.side(i,n)}let c=tA(e.text,s,l.forward(i,n));(c<l.from||c>l.to)&&(c=u),r9=e.text.slice(Math.min(s,c),Math.max(s,c));let h=a==(i?t.length-1:0)?null:t[a+(i?1:-1)];return h&&c==u&&h.level+(i?0:1)<l.level?tJ.cursor(h.side(!i,n)+e.from,h.forward(i,n)?1:-1,h.level):tJ.cursor(c+e.from,l.forward(i,n)?-1:1,l.level)}(i,o,s,a,n),u=r9;if(!t){if(i.number==(n?e.state.doc.lines:1))return a;u="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(l){if(!l(u))return a}else{if(!r)return t;l=r(u)}a=t}}function iq(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,o)=>{if(t>e&&t<i){let o=r||n||(t-e<i-t?-1:1);t=o<0?e:i,r=o}});if(!r)return t}}function iJ(e,t,n){let r=iq(e.state.facet(iO).map(t=>t(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:tJ.cursor(r,r<n.from?1:-1)}class iH{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(nb.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+="ï¿¿"}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=r.nextSibling;if(i==t)break;let o=rl.get(r),s=rl.get(i);(o&&s?o.breakAfter:(o?o.breakAfter:n2(r))||n2(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,s;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(s=r.exec(t))&&(i=s.index,o=s[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),o>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=o-1);n=i+o}}readNode(e){if(e.cmIgnore)return;let t=rl.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(!function(e,t,n){for(;;){if(!t||n<n4(t))return!1;if(t==e)return!0;n=n1(t)+1,t=t.parentNode}}(e,n.node,n.offset)?0:t))}}class iK{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class iG{constructor(e,t,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:i,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=i||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new iK(n,r)),(i!=n||o!=r)&&t.push(new iK(i,o))),t}(e),n=new iH(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?tJ.single(n+t,r+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!nX(e.contentDOM,t.focu
1sNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!nX(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),s=e.viewport;if((r$.ios||r$.chrome)&&e.state.selection.main.empty&&n!=r&&(s.from>0||s.to<e.state.doc.length)){let t=Math.min(n,r),i=Math.max(n,r),o=s.from-t,a=s.to-i;(0==o||1==o||0==t)&&(0==a||-1==a||i==e.state.doc.length)&&(n=0,r=e.state.doc.length)}this.newSel=tJ.single(r,n)}}}function iQ(e,t){let n;let{newSel:r}=t,i=e.state.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:r,to:s}=t.bounds,a=i.from,l=null;(8===o||r$.android&&t.text.length<s-r)&&(a=i.to,l="end");let u=function(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o<i&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==i&&e.length==t.length)return null;let s=e.length,a=t.length;for(;s>0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if("end"==r){let e=Math.max(0,o-Math.min(s,a));n-=s+e-o}if(s<o&&e.length<t.length){let e=n<=o&&n>=s?o-n:0;o-=e,a=o+(a-s),s=o}else if(a<o){let e=n<=o&&n>=a?o-n:0;o-=e,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}(e.state.doc.sliceString(r,s,"ï¿¿"),t.text,a-r,l);u&&(r$.chrome&&13==o&&u.toB==u.from+2&&"ï¿¿ï¿¿"==t.text.slice(u.from,u.toB)&&u.toB--,n={from:r+u.from,to:r+u.toA,insert:tS.of(t.text.slice(u.from,u.toB).split("ï¿¿"))})}else r&&(!e.hasFocus&&e.state.facet(iv)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,i.to)}:n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:(r$.mac||r$.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=tJ.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:tS.of([" "])}):r$.chrome&&n&&n.from==n.to&&n.from==i.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=tJ.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:tS.of([" "])}),n)return iX(e,n,r,o);if(!r||r.main.eq(i))return!1;{let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}}function iX(e,t,n,r=-1){let i;if(r$.ios&&e.inputState.flushIOSKey(t))return!0;let o=e.state.selection.main;if(r$.android&&(t.to==o.to&&(t.from==o.from||t.from==o.from-1&&" "==e.state.sliceDoc(t.from,o.from))&&1==t.insert.length&&2==t.insert.lines&&rt(e.contentDOM,"Enter",13)||(t.from==o.from-1&&t.to==o.to&&0==t.insert.length||8==r&&t.insert.length<t.to-t.from&&t.to>o.head)&&rt(e.contentDOM,"Backspace",8)||t.from==o.from&&t.to==o.to+1&&0==t.insert.length&&rt(e.contentDOM,"Delete",46)))return!0;let s=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let a=()=>i||(i=function(e,t,n){let r,i=e.state,o=i.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=o.from<t.from?i.sliceDoc(o.from,t.from):"",s=o.to>t.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+s))}else{let s=i.changes(t),a=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let l=e.state.sliceDoc(t.from,t.to),u,c=n&&iD(e,n.main.head);if(c){let e=t.insert.length-(t.to-t.from);u={from:c.from,to:c.to-e}}else u=e.state.doc.lineAt(o.head);let h=o.to-t.to,d=o.to-o.from;r=i.changeByRange(n=>{if(n.from==o.from&&n.to==o.to)return{changes:s,range:a||n.map(s)};let r=n.to-h,c=r-l.length;if(n.to-n.from!=d||e.state.sliceDoc(c,r)!=l||n.to>=u.from&&n.from<=u.to)return{range:n};let f=i.changes({from:c,to:r,insert:t.insert}),p=n.to-o.to;return{changes:f,range:a?tJ.range(Math.max(0,a.anchor+p),Math.max(0,a.head+p)):n.map(f)}})}else r={changes:s,selection:a&&i.selection.replaceRange(a)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}
1(e,t,n));return e.state.facet(io).some(n=>n(e,t.from,t.to,s,a))||e.dispatch(a()),!0}class iY{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){var t;this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,r$.safari&&e.contentDOM.addEventListener("input",()=>null),r$.gecko&&(t=e.contentDOM.ownerDocument,of.has(t)||(of.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{})))}handleEvent(e){!(!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(r=rl.get(n))&&r.ignoreEvent(t))return!1;return!0}(this.view,e)||this.ignoreDuringComposition(e))&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec;if(e&&e.domEventHandlers)for(let r in e.domEventHandlers){let i=e.domEventHandlers[r];i&&n(r).handlers.push(iZ(t.value,i))}if(e&&e.domEventObservers)for(let r in e.domEventObservers){let i=e.domEventObservers[r];i&&n(r).observers.push(iZ(t.value,i))}}for(let e in i5)n(e).handlers.push(i5[e]);for(let e in i6)n(e).observers.push(i6[e]);return t}(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length,o=n[e];o&&!o.handlers.length!=i&&(r.removeEventListener(e,this.handleEvent),o=null),o||r.addEventListener(e,this.handleEvent,{passive:i})}for(let e in n)"scroll"==e||t[e]||r.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){let t;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),!!(9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))||((this.tabFocusMode>0&&27!=e.keyCode&&0>i2.indexOf(e.keyCode)&&(this.tabFocusMode=-1),r$.android&&r$.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))?(this.view.observer.delayAndroidKey(e.key,e.keyCode),!0):r$.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=i0.find(t=>t.keyCode==e.keyCode))&&!e.ctrlKey||i1.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(229!=e.keyCode&&this.view.observer.forceFlush(),!1))}flushIOSKey(e){let t=this.pendingIOSKey;return!(!t||"Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,rt(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(r$.safari&&!r$.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function iZ(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(e){ig(n.state,e)}}}let i0=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],i1="dthko",i2=[16,17,18,20,91,92,224,225];function i3(e){return .7*Math.max(0,e)+8}class i4{constructor(e,t,n,r){let i;this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=function(e){let t=e.ownerDocument,n,r;for(let i=e.parentNode;i&&i!=t.body&&(!n||!r);)if(1==i.nodeType)!r&&i.scrollHeight>i.clientHeight&&(r=i),!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(11==i.nodeType)i=i.host;else break;return{x:n,y:r}}(e.contentDOM),this.atoms=e.state.facet(iO).map(t=>t(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(nb.allowMultipleSelections)&&((i=e.state.facet(r7)).length?i[0](t):r$.mac?t.metaKey:t.ctrlKey),this.dragging=!!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=nQ(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let n=i[e];if(n.left<=t.clientX&&n.right>=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)&&1==oa(t)&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&10>Math.max(Math.abs((t=this.startEvent).clientX-e.clientX),Math.abs(t.clientY-e.clientY)))return;this.select(this.lastEvent=e);let n=0,r=0,i=0,o=0,s=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=iT(this.view);e.clientX-l.left<=i+6?n=-i3(i-e.clientX):e.clientX+l.right>=s-6&&(n=i3(e.clientX-s)),e.clientY-l.top<=o+6?r=-i3(o-e.clientY):e.clientY+l.bottom>=a-6&&(r=i3(e.clientY-a)),this.setScrollSpeed(n,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let r=e.ranges[n],i=null;if(r.empty){let e=iq(this.atoms,r.from,0);e!=r.from&&(i=tJ.cursor(e,-1))}else{let e=iq(this.atoms,r.from,-1),t=iq(this.atoms,r.to,1);(e!=r.from||t!=r.to)&&(i=tJ.range(r.from==r.anchor?e:t,r.from==r.head?e:t))}i&&(t||(t=e.ranges.slice()),t[n]=i)}return t?tJ.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,!1===this.dragging))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}let i5=Object.create(null),i6=Object.create(null),i8=r$.ie&&r$.ie_version<15||r$.ios&&r$.webkit_version<604;function i9(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}
1function i7(e,t){t=i9(e.state,ia,t);let{state:n}=e,r,i=1,o=n.toText(t),s=o.lines==n.selection.ranges.length;if(null!=ou&&n.selection.ranges.every(e=>e.empty)&&ou==o.toString()){let e=-1;r=n.changeByRange(r=>{let a=n.doc.lineAt(r.from);if(a.from==e)return{range:r};e=a.from;let l=n.toText((s?o.line(i++).text:t)+n.lineBreak);return{changes:{from:a.from,insert:l},range:tJ.cursor(r.from+l.length)}})}else r=s?n.changeByRange(e=>{let t=o.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:tJ.cursor(e.from+t.length)}}):n.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}function oe(e,t,n,r){if(1==r)return tJ.cursor(t,n);if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(0==i.length)return tJ.cursor(t);0==o?n=1:o==i.length&&(n=-1);let s=o,a=o;n<0?s=tA(i.text,o,!1):a=tA(i.text,o);let l=r(i.text.slice(s,a));for(;s>0;){let e=tA(i.text,s,!1);if(r(i.text.slice(e,s))!=l)break;s=e}for(;a<i.length;){let e=tA(i.text,a);if(r(i.text.slice(a,e))!=l)break;a=e}return tJ.range(s+i.from,a+i.from)}(e.state,t,n);{let n=rV.find(e.docView,t),r=e.state.doc.lineAt(n?n.posAtEnd:t),i=n?n.posAtStart:r.from,o=n?n.posAtEnd:r.to;return o<e.state.doc.length&&o==r.to&&o++,tJ.range(i,o)}}i6.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},i5.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),i6.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},i6.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},i5.mousedown=(e,t)=>{let n,r,i;if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let o=null;for(let n of e.state.facet(it))if(o=n(e,t))break;if(o||0!=t.button||(n=on(e,t),r=oa(t),i=e.state.selection,o={update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),i=i.map(e.changes))},get(t,o,s){let a=on(e,t),l,u=oe(e,a.pos,a.bias,r);if(n.pos!=a.pos&&!o){let t=oe(e,n.pos,n.bias,r),i=Math.min(t.from,u.from),o=Math.max(t.to,u.to);u=i<u.from?tJ.range(i,o):tJ.range(o,i)}return o?i.replaceRange(i.main.extend(u.from,u.to)):s&&1==r&&i.ranges.length>1&&(l=function(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:i}=e.ranges[n];if(r<=t&&i>=t)return tJ.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(i,a.pos))?l:s?i.addRange(u):tJ.create([u])}}),o){let n=!e.hasFocus;e.inputState.startMouseSelection(new i4(e,t,o,n)),n&&e.observer.ignore(()=>{n7(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let r=e.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}return!1};let ot=(e,t,n)=>t>=n.top&&t<=n.bottom&&e>=n.left&&e<=n.right;function on(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:function(e,t,n,r){let i=rV.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return -1;let s=i.coordsAt(o,-1);if(s&&ot(n,r,s))return -1;let a=i.coordsAt(o,1);return a&&ot(n,r,a)?1:s&&s.bottom>=r?-1:1}(e,n,t.clientX,t.clientY)}}let or=r$.ie&&r$.ie_version<=11,oi=null,oo=0,os=0;function oa(e){if(!or)return e.detail;let t=oi,n=os;return oi=e,os=Date.now(),oo=!t||n>Date.now()-400&&2>Math.abs(t.clientX-e.clientX)&&2>Math.abs(t.clientY-e.clientY)?(oo+1)%3:1}function ol(e,t,n,r){let i;if(!(n=i9(e.state,ia,n)))return;let o=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:s}=e.inputState,a=r&&s&&((i=e.state.facet(ie)).length?i[0](t):r$.mac?!t.altKey:!t.ctrlKey)?{from:s.from,to:s.to}:null,l={from:o,insert:n},u=e.state.changes(a?[a,l]:l);e.focus(),e.dispatch({changes:u,selection:{anchor:u.mapPos(o,-1),head:u.mapPos(o,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}i5.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let r=e.docView.nearest(t.target);if(r&&r.isWidget){let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=tJ.range(e,t))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",i9(e.state,il,e.state.sliceDoc(n.from,n.to))
vendor: 5,275 bytes, line 1
1),t.dataTransfer.effectAllowed="copyMove"),!1},i5.dragend=e=>(e.inputState.draggedContent=null,!1),i5.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&ol(e,t,r.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return ol(e,t,n,!0),!0}return!1},i5.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=i8?null:t.clipboardData;return n?(i7(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),i7(e,n.value)},50)}(e),!1)};let ou=null;i5.copy=i5.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:i9(e,il,t.join(e.lineBreak)),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;ou=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=i8?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(!function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}(e,n),!1)};let oc=nl.define();function oh(e,t){let n=[];for(let r of e.facet(is)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:oc.of(!0)}):null}function od(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=oh(e.state,t);n?e.dispatch(n):e.update([])}},10)}i6.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),od(e)},i6.blur=e=>{e.observer.clearSelectionRange(),od(e)},i6.compositionstart=i6.compositionupdate=e=>{!e.observer.editContext&&(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},i6.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,r$.chrome&&r$.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},i6.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},i5.beforeinput=(e,t)=>{var n,r;let i;if("insertReplacementText"==t.inputType&&e.observer.editContext){let r=null===(n=t.dataTransfer)||void 0===n?void 0:n.getData("text/plain"),i=t.getTargetRanges();if(r&&i.length){let t=i[0],n=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);return iX(e,{from:n,to:o,insert:e.state.toText(r)},null),!0}}if(r$.chrome&&r$.android&&(i=i0.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0;setTimeout(()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return r$.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),r$.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>i6.compositionend(e,t),20),!1};let of=new Set,op=["pre-wrap","normal","pre-line","break-spaces"],om=!1;class og{constructor(e){this.lineWrapping=e,this.doc=tS.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return op.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,i,o){let s=op.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,a){this.heightSamples={};for(let e=0;e<o.length;
vendor: 11,288 bytes, line 1
1e++){let t=o[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class ov{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class oy{constructor(e,t,n,r,i){this.from=e,this.length=t,this.top=n,this.height=r,this._content=i}get type(){return"number"==typeof this._content?rI.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof rL?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new oy(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var ob=((p=ob||(ob={}))[p.ByPos=0]="ByPos",p[p.ByHeight=1]="ByHeight",p[p.ByPosNoHeight=2]="ByPosNoHeight",p);class ox{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>.001&&(om=!0),this.height=e)}replace(e,t,n){return ox.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let s=r.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:u,toB:c}=r[s],h=i.lineAt(a,ob.ByPosNoHeight,n.setDoc(t),0,0),d=h.to>=l?h:i.lineAt(l,ob.ByPosNoHeight,n,0,0);for(c+=d.to-l,l=d.to;s>0&&h.from<=r[s-1].toA;)a=r[s-1].fromA,u=r[s-1].fromB,s--,a<h.from&&(h=i.lineAt(a,ob.ByPosNoHeight,n,0,0));u+=h.from-a,a=h.from;let f=oC.build(n.setDoc(o),e,u,c);i=ow(i,i.replace(a,l,f))}return i.updateHeight(n,0)}static empty(){return new oS(0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,r=0,i=0;for(;;)if(t==n){if(r>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else if(i>2*r){let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}else break}else if(r<i){let n=e[t++];n&&(r+=n.size)}else{let t=e[--n];t&&(i+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,n++),new oj(ox.of(e.slice(0,t)),o,ox.of(e.slice(n)))}}function ow(e,t){return e==t?e:(e.constructor!=t.constructor&&(om=!0),t)}ox.prototype.size=1;class ok extends ox{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,r){return new oy(r,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,r,i){return this.blockAt(0,n,r,i)}forEachLine(e,t,n,r,i,o){e<=i+this.length&&t>=i&&o(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class oS extends ok{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new oy(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof oS||r instanceof o$&&4&r.flags)&&10>Math.abs(this.length-r.length)?(r instanceof o$?r=new oS(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):ox.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(r.heights[r.index++]):(n||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class o$ extends ox{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,i=r-n+1,o,s=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);o=t/i,this.length>i+1&&(s=(this.height-t)/(this.length-i-1))}else o=this.height/i;return{firstLine:n,lastLine:r,perLine:o,perChar:s}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:s,perChar:a}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),o=t.doc.lineAt(i),l=s+o.length*a;return new oy(o.from,o.length,Math.max(n,e-l/2),l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/s))),{from:a,length:l}=t.doc.line(i+r);return new oy(a,l,n+s*r,s,0)}}lineAt(e,t,n,r,i){if(t==ob.ByHeight)return this.blockAt(e,n,r,i);if(t==ob.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new oy(t,r-t,0,0,0)}let{firstLine:o,perLine:s,perChar:a}=this.heightMetrics(n,i),l=n.doc.lineAt(e),u=s+l.length*a,c=l.number-o,h=r+s*c+a*(l.from-i-c);return new oy(l.from,l.length,Math.max(r,Math.min(h,r+this.height-u)),u,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(n,i);for(let u=e,c=r;u<=t;){let t=n.doc.lineAt(u);if(u==e){let n=t.number-s;c+=a*n+l*(e-i-n)}let r=a+l*t.length;o(new oy(t.from,t.length,c,r,0)),c+=r,u=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof o$?n[n.length-1]=new o$(e.length+r):n.push(null,new o$(r-1))}if(e>0){let t=n[0];t instanceof o$?n[0]=new o$(e+t.length):n.unshift(new o$(e-1),null)}return ox.of(n)}decomposeLeft(e,t){t.push(new o$(e-1),null)}decomposeRight(e,t){t.push(null,new o$(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),s=-1;for(r.from>t&&n.push(new o$(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==s?s=i:Math.abs(i-s)>=.001&&(s=-2);let a=new oS(t,i);a.outdated=!1,n.push(a),o+=t+1}o<=i&&n.push(null,new o$(i-o).updateHeight(e,o));let a=ox.of(n);return(s<0||Math.abs(a.height-this.height)>=.001||Math.abs(s-this.heightMetrics(e,t).perLine)>=.001)&&(om=!0),ow(this,a)}return(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class oj extends ox{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}lineAt(e,t,n,r,i){let o=r+this.left.height,s=i+this.left.length+this.break,a=t==ob.ByHeight?e<o:e<s,l=a?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,o,s);if(this.break||(a?l.to<s:l.from>s))return l;let u=t==ob.ByPosNoHeight?ob.ByPosNoHeight:ob.ByPos;return a?l.join(this.right.lineAt(s,u,n,o,s)):this.left.lineAt(s,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let s=r+this.left.height,a=i+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,n,r,i,o),t>=a&&this.right.forEachLine(e,t,n,s,a,o);else{let l=this.lineAt(a,ob.ByPos,n,r,i);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,i,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,s,a,o)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&oO(i,o-1),t<this.length){let e=i.length;this.decomposeRight(t,i),oO(i,e)}return ox.of(i)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&e>=++n&&t.push(null),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?ox.of(this.break?[e,null,t]:[e,t]):(this.left=ow(this.left,e),this.right=ow(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,s=t+i.length+this.break,a=null;return(r&&r.from<=t+i.length&&r.more?a=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=s+o.length&&r.more?a=o=o.updateHeight(e,s,n,r):o.updateHeight(e,s,n),a)?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function oO(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof o$&&(r=e[t+1])instanceof o$&&e.splice(t-1,3,new o$(n.length+1+r.length))}class oC{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof oS?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new oS(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new ok(o,r,n)):(o||i||r>=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new oS(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new o$(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof oS)return e;let t=new oS(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof oS||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new oS(0,-1));let n=e;for(let e of this.nodes)e instanceof oS&&e.updateHeight(this.oracle,n),n+=e?e.length:1;return this.nodes}static build(e,t,n,r){let i=new oC(n,e);return nj.spans(t,n,r,i,0),i.finish(n)}}class oU{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&rB(e,t,this.changes,5)}}class oE{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e,t){return rN.replace({widget:new oT(this.displaySize*(t?e.scaleY:e.scaleX),t)}
1).range(this.from,this.to)}}class oT extends rD{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class oR{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=oD,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=rG.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(iS).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new og(t),this.stateDeco=e.facet(i$).filter(e=>"function"!=typeof e),this.heightMap=ox.empty().applyChanges(this.stateDeco,tS.empty,this.heightOracle.setDoc(e.doc),[new iA(0,0,0,e.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=rN.set(this.lineGaps.map(e=>e.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new oA(t,n))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?oD:new oI(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(oN(e,this.scaler))})}update(e,t=null){var n,r;let i;this.state=e.state;let o=this.stateDeco;this.stateDeco=this.state.facet(i$).filter(e=>"function"!=typeof e);let s=e.changedRanges,a=iA.extendWithRanges(s,(n=this.stateDeco,r=e?e.changes:tF.empty(this.state.doc.length),i=new oU,nj.compare(o,n,r,i,0),i.changes)),l=this.heightMap.height,u=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);om=!1,this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),a),(this.heightMap.height!=l||om)&&(e.flags|=2),u?(this.scrollAnchorPos=e.changes.mapPos(u.from,-1),this.scrollAnchorHeight=u.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=a.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<c.from||t.range.head>c.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,t));let h=c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,e.flags|=this.updateForViewport(),(h||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(ic)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?rG.RTL:rG.LTR;let o=this.heightOracle.mustRefreshForWrapping(i),s=t.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let l=0,u=0;if(s.width&&s.height){let{scaleX:e,scaleY:n}=n6(t,s);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,l|=16,o=a=!0)}let c=(parseInt(n.paddingTop)||0)*this.scaleY,h=(parseInt(n.paddingBottom)||
10)*this.scaleY;(this.paddingTop!=c||this.paddingBottom!=h)&&(this.paddingTop=c,this.paddingBottom=h,l|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=16);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=rr(e.scrollDOM);let f=(this.printing?function(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}:function(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),s=Math.min(i.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let t=e.parentNode;t&&t!=r.body;)if(1==t.nodeType){let n=t,r=window.getComputedStyle(n);if((n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),s=Math.min(s,r.right),a=Math.max(a,r.top),l=Math.min(t==e.parentNode?i.innerHeight:l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else if(11==t.nodeType)t=t.host;else break;return{left:o-n.left,right:Math.max(o,s)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}})(t,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;let g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;
1if(g!=this.inView&&(this.inView=g,g&&(a=!0)),!this.inView&&!this.scrollTarget)return 0;let v=s.width;if((this.contentDOMWidth!=v||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,l|=16),a){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(o=!0),o||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:s,textHeight:a}=e.docView.measureTextSize();(o=n>0&&r.refresh(i,n,s,a,v/s,t))&&(e.docView.minWidth=0,l|=16)}for(let n of(p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),om=!1,this.viewports)){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(o?ox.empty().applyChanges(this.stateDeco,tS.empty,this.heightOracle,[new iA(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new ov(n.from,i))}om&&(l|=2)}let y=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(2&l&&(l|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),l|=this.updateForViewport()),(2&l||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,a=new oA(r.lineAt(o-1e3*n,ob.ByHeight,i,0,0).from,r.lineAt(s+(1-n)*1e3,ob.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),o=r.lineAt(e,ob.ByPos,i,0,0),s;s="center"==t.y?(o.top+o.bottom)/2-n/2:"start"==t.y||"nearest"==t.y&&e<a.from?o.top:o.bottom-n,a=new oA(r.lineAt(s-500,ob.ByHeight,i,0,0).from,r.lineAt(s+n+500,ob.ByHeight,i,0,0).to)}}return a}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new oA(this.heightMap.lineAt(n,ob.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,ob.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,ob.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,ob.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:s}=this;return(0==e||r<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||i>=s+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i<s+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new oE(t.mapPos(r.from),t.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,i=r>>1,o=r<<1;if(this.defaultTextDirection!=rG.LTR&&!n)return[];let s=[],a=(r,o,l,u)=>{if(o-r<i)return;let c=this.state.selection.main,h=[c.from];for(let e of(c.empty||h.push(c.to),h))if(e>r&&e<o){a(r,e-10,l,u),a(e+10,o,l,u);return}let d=function(e,t){for(let n of e)if(t(n))return n}(e,e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-r)<i&&Math.abs(e.to-o)<i&&!h.some(t=>e.from<t&&e.to>t));if(!d){if(o<l.to&&t&&n&&t.visibleRanges.some(e=>e.from<=o&&e.to>=o)){let e=t.moveToLineBoundary(tJ.cursor(o),!1,!0).head;e>r&&(o=e)}let e=this.gapSize(l,r,o,u),i=n||e<2e6?e:2e6;d=new oE(r,o,e,i)}s.push(d)},l=t=>{var i,s,l;let u,c,h,d,f;if(t.length<o||t.type!=rI.Text)return;let p=(i=t.from,s=t.to,l=this.stateDeco,h=[],d=i,f=0,nj.spans(l,i,s,{span(){},point(e,t){e>d&&(h.push({from:d,to:e}),f+=e-d),d=t}},20),d<s&&(h.push({from:d,to:s}),f+=s-d),{total:f,ranges:h});if(p.total<o)return;let m=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let e,n,i=r/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=m){let r=oP(p,m),o=((this.visibleBottom-this.visibleTop)/2+i)/t.height;e=r-o,n=r+o}else e=(this.visibleTop-t.top-i)/t.height,n=(this.visibleBottom-t.top+i)/t.height;u=oM(p,e),c=oM(p,n)}else{let n,i,o=p.total*this.heightOracle.charWidth,s=r*this.heightOracle.charWidth,a=0;if(o>2e6)for(let n of e)n.from>=t.from&&n.from<t.to&&n.size!=n.displaySize&&n.from*this.heightOracle.charWidth+a<this.pixelViewport.left&&(a=n.size-n.displaySize);let l=this.pixelViewport.left+a,h=this.pixelViewport.right+a;if(null!=m){let e=oP(p,m),t=((h-l)/2+s)/o;n=e-t,i=e+t}else n=(l-s)/o,i=(h+s)/o;u=oM(p,n),c=oM(p,i)}u>t.from&&a(t.from,u,t,p),c<t.to&&a(c,t.to,t,p)};for(let e of this.viewportLines)Array.isArray(e.type)?e.type.forEach(l):l(e);return s}gapSize(e,t,n,r){let i=oP(r,n)-oP(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){oE.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=rN.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];nj.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t})}
vendor: 4,088 bytes, line 1
1,point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let t=0;t<n.length&&!(8&r);t++){let i=this.visibleRanges[t],o=n[t];i.from==o.from&&i.to==o.to||(r|=4,e&&e.mapPos(i.from,-1)==o.from&&e.mapPos(i.to,1)==o.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||oN(this.heightMap.lineAt(e,ob.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||oN(this.heightMap.lineAt(this.scaler.fromDOM(e),ob.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return oN(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class oA{constructor(e,t){this.from=e,this.to=t}}function oM({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function oP(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}let oD={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};class oI{constructor(e,t,n){let r=0,i=0,o=0;for(let s of(this.viewports=n.map(({from:n,to:i})=>{let o=t.lineAt(n,ob.ByPos,e,0,0).top,s=t.lineAt(i,ob.ByPos,e,0,0).bottom;return r+=s-o,{from:n,to:i,top:o,bottom:s,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r),this.viewports))s.domTop=o+(s.top-i)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}eq(e){return e instanceof oI&&this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to)}}function oN(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new oy(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(e=>oN(e,t)):e._content)}let oF=tG.define({combine:e=>e.join(" ")}),oz=tG.define({combine:e=>e.indexOf(!0)>-1}),oL=n_.newName(),o_=n_.newName(),oB=n_.newName(),oV={"&light":"."+o_,"&dark":"."+oB};function oW(e,t,n){return new n_(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!n||!n[t])throw RangeError(`Unsupported selector: ${t}`);return n[t]}):e+" "+t})}let oq=oW("."+oL,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"}
vendor: 4,163 bytes, line 1
1,"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},oV),oJ={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},oH=r$.ie&&r$.ie_version<=11;class oK{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new n8,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(r$.ie&&r$.ie_version<=11||r$.ios&&e.composing)&&t.some(e=>
1"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&!1!==e.constructor.EDIT_CONTEXT&&!(r$.chrome&&r$.chrome_version<126)&&(this.editContext=new oX(e),e.state.facet(iv)&&(e.contentDOM.editContext=this.editContext.editContext)),oH&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){for(let t of(this.gapIntersection.disconnect(),e))this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(iv)?n.root.activeElement!=this.dom:!nY(this.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);if(i&&i.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(r$.ie&&r$.ie_version<=11||r$.android&&r$.chrome)&&!n.state.selection.main.empty&&r.focusNode&&n0(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=nQ(e.root);if(!t)return!1;let n=r$.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return oQ(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?oQ(e,n):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=nY(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,n4(n));;)if(r){if(1!=n.nodeType)return!1;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:r=n4(n=e)}else{if(n==e)return!0;r=n1(n),n=n.parentNode}}(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(11==n.nodeType)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,oJ),oH&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),oH&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;this.delayedAndroidKey||(this.flushingAndroidKey=this.view.win.requestAnimationFrame(()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&rt(this.dom,e.key,e.keyCode))})),this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?{from:t,to:n}=e:(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&nY(this.dom,this.selectionRange);
vendor: 8,532 bytes, line 1
1if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new iG(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=iQ(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=oG(t,e.previousSibling||e.target.previousSibling,-1),r=oG(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(iv)!=e.state.facet(iv)&&(e.view.contentDOM.editContext=e.state.facet(iv)?this.editContext.editContext:null))}destroy(){var e,t,n;for(let r of(this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect(),this.scrollTargets))r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function oG(e,t,n){for(;t;){let r=rl.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function oQ(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return n0(s.node,s.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}class oX{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});for(let n in this.handlers.textupdate=t=>{let{anchor:n}=e.state.selection.main,r=this.toEditorPos(t.updateRangeStart),i=this.toEditorPos(t.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:t.updateRangeStart,editorBase:r,drifted:!1});let o={from:r,to:i,insert:tS.of(t.text.split("\n"))};if(o.from==this.from&&n<this.from?o.from=n:o.to==this.to&&n>this.to&&(o.to=n),o.from!=o.to||o.insert.length){if(this.pendingContextChange=o,!e.state.readOnly){let n=this.to-this.from+(o.to-o.from+o.insert.length);iX(e,o,tJ.single(this.toEditorPos(t.selectionStart,n),this.toEditorPos(t.selectionEnd,n)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))}},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),o=this.toEditorPos(n.rangeEnd);t<o;t++){let n=e.coordsForChar(t);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if("None"!=t&&"None"!=r){let i=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(i<o){let e=`text-decoration: underline ${"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${"Thin"==r?1:2}px`;n.push(rN.mark({attributes:{style:e}}).range(i,o))}}}e.dispatch({effects:im.of(rN.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}},this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=nQ(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,o,s,a,l)=>{if(n)return;let u=l.length-(o-i);if(r&&o>=r.to){if(r.from==i&&r.to==o&&r.insert.eq(l)){r=this.pendingContextChange=null,t+=u,this.to+=u;return}r=null,this.revertPending(e.state)}if(i+=t,(o+=t)<=this.from)this.from+=u,this.to+=u;else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+l.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString()),this.to+=u}t+=u}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange;this.composing&&(this.composing.drifted||e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class oY{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="
1cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;for(let t of(this.dispatchTransactions=e.dispatchTransactions||n&&(e=>e.forEach(e=>n(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new oR(e.state||nb.create(e)),e.scrollTo&&e.scrollTo.is(ip)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ib).map(e=>new iw(e)),this.plugins))t.update(this);this.observer=new oK(this),this.inputState=new iY(this),this.inputState.ensureHandlers(this.plugins),this.docView=new iP(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=1==e.length&&e[0]instanceof nd?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,r,i=this.state;for(let t of e){if(t.startState!=i)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed){this.viewState.state=i;return}let o=this.hasFocus,s=0,a=null;e.some(e=>e.annotation(oc))?(this.inputState.notifiedFocused=o,s=1):o==this.inputState.notifiedFocused||(this.inputState.notifiedFocused=o,(a=oh(i,o))||(s=1));let l=this.observer.delayedAndroidKey,u=null;if(l?(this.observer.clearDelayedAndroidKey(),((u=this.observer.readChange())&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(u=null)):this.observer.clear(),i.facet(nb.phrases)!=this.state.facet(nb.phrases))return this.setState(i);r=iM.create(this,i,e),r.flags|=s;let c=this.viewState.scrollTarget;try{for(let t of(this.updateState=2,e)){if(c&&(c=c.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;c=new id(e.empty?e:tJ.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(ip)&&(c=e.value.clip(this.state))}this.viewState.update(r,c),this.bidiCache=o1.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(iR)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(oF)!=r.state.facet(oF)&&(this.viewState.mustMeasureContent=!0),(t||n||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!r.empty)for(let e of this.state.facet(ii))try{e(r)}catch(e){ig(this.state,e,"update listener")}(a||u)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),u&&!iQ(this,u)&&l.force&&rt(this.contentDOM,l.key,l.keyCode)})}setState(e){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);for(let t of(this.viewState=new oR(e),this.plugins=e.facet(ib).map(e=>new iw(e)),this.pluginMap.clear(),this.plugins))t.update(this);this.docView.destroy(),this.docView=new iP(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(ib),n=e.state.facet(ib);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new iw(i));else{let t=this.plugins[n];
1t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){ig(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0){if(rr(n))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}}this.updateState=1;let s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];4&s||([this.measureRequests,a]=[a,this.measureRequests]);let l=a.map(e=>{try{return e.read(this)}catch(e){return ig(this.state,e),o0}}),u=iM.create(this,this.state,[]),c=!1;u.flags|=s,t?t.flags|=s:t=u,this.updateState=2,!u.empty&&(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),(c=this.docView.update(u))&&this.docViewUpdate());for(let e=0;e<a.length;e++)if(l[e]!=o0)try{let t=a[e];t.write&&t.write(l[e],this)}catch(e){ig(this.state,e)}if(c&&this.docView.updateSelection(!0),!u.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}{let e=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)-o;if(e>1||e<-1){r+=e,n.scrollTop=r/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(ii))e(t)}get themeClasses(){return oL+" "+(this.state.facet(oz)?oB:o_)+" "+this.state.facet(oF)}updateAttrs(){let e=o2(this,ik,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(iv)?"true":"false",class:"cm-content",style:`${r$.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),o2(this,iS,t);let n=this.observer.ignore(()=>{let n=rP(this.contentDOM,this.contentAttrs,t),r=rP(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(oY.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(iR);let e=this.state.facet(oY.cspNonce);n_.mount(this.root,this.styleModules.concat(oq).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e&&!(this.measureRequests.indexOf(e)>-1)){if(null!=e.key){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return iJ(this,e,iW(this,e,t,n))}moveByGroup(e,t){return iJ(this,e,iW(this,e,t,t=>{var n;let r,i;return n=e.head,i=(r=this.state.charCategorizer(n))(t),e=>{let t=r(e);return i==nv.Space&&(i=t),i==t}}))}visualLineSide(e,t){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),i=n[t?n.length-1:0];return tJ.cursor(i.side(t,r)+e.from,i.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=iV(e,t.head),o=r&&i.type==rI.Text&&(e.lineWrapping||i.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),s=e.posAtCoords({x:n==(r==rG.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=s)return tJ.cursor(s,n?-1:1)}return tJ.cursor(n?i.to:i.from,n?-1:1)}(this,e,t,n)}
1moveVertically(e,t,n){return iJ(this,e,function(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return tJ.cursor(i,t.assoc);let s=t.goalColumn,a,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),c=e.documentTop;if(u)null==s&&(s=u.left-l.left),a=o<0?u.top:u.bottom;else{let t=e.viewState.lineBlockAt(i);null==s&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-t.from))),a=(o<0?t.top:t.bottom)+c}let h=l.left+s,d=null!=r?r:e.viewState.heightOracle.textHeight>>1;for(let t=0;;t+=10){let n=a+(d+t)*o,r=i_(e,{x:h,y:n},!1,o);if(n<l.top||n>l.bottom||(o<0?r<i:r>i)){let t=e.docView.coordsForChar(r),i=!t||n<t.top?-1:1;return tJ.cursor(r,i,void 0,s)}}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),i_(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return n5(n,i[r5.find(i,e-r.from,-1,t)].dir==rG.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(iu)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>oZ)return r8(e.length);let t=this.textDirectionAt(e.from),n;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||function e(t,n){if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i.from!=o.from||i.to!=o.to||i.direction!=o.direction||!e(i.inner,o.inner))return!1}return!0}(r.isolates,n=iU(this,e))))return r.order;n||(n=iU(this,e));let r=function(e,t,n){if(!e)return[new r5(0,0,t==rX?1:0)];if(t==rQ&&!n.length&&!r4.test(e))return r8(e.length);if(n.length)for(;e.length>r6.length;)r6[r6.length]=256;let r=[],i=t==rQ?0:1;return function e(t,n,r,i,o,s,a){let l=n%2?2:1;(function(e,t,n,r,i){for(let o=0;o<=r.length;o++){let s=o?r[o-1].to:t,a=o<r.length?r[o].from:n,l=o?256:i;for(let t=s,n=l,r=l;t<a;t++){let i=r3(e.charCodeAt(t));512==i?i=n:8==i&&4==r&&(i=16),r6[t]=4==i?2:i,7&i&&(r=i),n=i}for(let e=s,t=l,r=l;e<a;e++){let i=r6[e];if(128==i)e<a-1&&t==r6[e+1]&&24&t?i=r6[e]=t:r6[e]=256;else if(64==i){let i=e+1;for(;i<a&&64==r6[i];)i++;let o=e&&8==t||i<n&&8==r6[i]?1==r?1:8:256;for(let t=e;t<i;t++)r6[t]=o;e=i-1}else 8==i&&1==r&&(r6[e]=1);t=i,7&i&&(r=i)}}})(t,o,s,i,l),function(e,t,n,r,i){let o=1==i?2:1;for(let s=0,a=0,l=0;s<=r.length;s++){let u=s?r[s-1].to:t,c=s<r.length?r[s].from:n;for(let t=u,n,r,s;t<c;t++)if(r=r1[n=e.charCodeAt(t)]){if(r<0){for(let e=a-3;e>=0;e-=3)if(r2[e+1]==-r){let n=r2[e+2],r=2&n?i:4&n?1&n?o:i:0;r&&(r6[t]=r6[r2[e]]=r),a=e;break}}else if(189==r2.length)break;else r2[a++]=t,r2[a++]=n,r2[a++]=l}else if(2==(s=r6[t])||1==s){let e=s==i;l=e?0:1;for(let t=a-3;t>=0;t-=3){let n=r2[t+2];if(2&n)break;if(e)r2[t+2]|=2;else{if(4&n)break;r2[t+2]|=4}}}}}(t,o,s,i,l),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let s=i?n[i-1].to:e,a=i<n.length?n[i].from:t;for(let l=s;l<a;){let s=r6[l];if(256==s){let s=l+1;for(;;)if(s==a){if(i==n.length)break;s=n[i++].to,a=i<n.length?n[i].from:t}else if(256==r6[s])s++;else break;let u=1==o,c=u==((s<t?r6[s]:r)==1)?u?1:2:r;for(let t=s,r=i,o=r?n[r-1].to:e;t>l;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),r6[--t]=c;l=s}else o=s,l++}}}(o,s,i,l),function t(n,r,i,o,s,a,l){let u=o%2?2:1;if(o%2==s%2)for(let c=r,h=0;c<i;){let r=!0,d=!1;if(h==a.length||c<a[h].from){let e=r6[c];e!=u&&(r=!1,d=16==e)}let f=r||1!=u?null:[],p=r?o:o+1,m=c;r:for(;;)if(h<a.length&&m==a[h].from){if(d)break;let t=a[h];if(!r)for(let e=t.to,n=h+1;;){if(e==i)break r;if(n<a.length&&a[n].from==e)e=a[n++].to;else if(r6[e]==u)break r;else break}h++,f?f.push(t):(t.from>c&&l.push(new r5(c,t.from,p)),e(n,t.direction==rQ!=!(p%2)?o+1:o,s,t.inner,t.from,t.to,l),c=t.to),m=t.to}else if(m==i||(r?r6[m]!=u:r6[m]==u))break;else m++;f?t(n,c,m,o+1,s,f,l):c<m&&l.push(new r5(c,m,p)),c=m}else for(let c=i,h=a.length;c>r;){let i=!0,d=!1;if(!h||c>
1a[h-1].to){let e=r6[c-1];e!=u&&(i=!1,d=16==e)}let f=i||1!=u?null:[],p=i?o:o+1,m=c;r:for(;;)if(h&&m==a[h-1].to){if(d)break;let t=a[--h];if(!i)for(let e=t.from,n=h;;){if(e==r)break r;if(n&&a[n-1].to==e)e=a[--n].from;else if(r6[e-1]==u)break r;else break}f?f.push(t):(t.to<c&&l.push(new r5(t.to,c,p)),e(n,t.direction==rQ!=!(p%2)?o+1:o,s,t.inner,t.from,t.to,l),c=t.from),m=t.from}else if(m==r||(i?r6[m-1]!=u:r6[m-1]==u))break;else m--;f?t(n,m,c,o+1,s,f,l):m<c&&l.push(new r5(m,c,p)),c=m}}(t,o,s,n,r,i,a)}(e,i,i,n,0,e.length,r),r}(e.text,t,n);return this.bidiCache.push(new o1(e.from,e.to,t,n,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||r$.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{n7(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of(this.root.activeElement==this.contentDOM&&this.contentDOM.blur(),this.plugins))e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return ip.of(new id("number"==typeof e?tJ.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return ip.of(new id(tJ.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return ix.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return ix.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=n_.newName(),r=[oF.of(n),iR.of(oW(`.${n}`,e))];return t&&t.dark&&r.push(oz.of(!0)),r}static baseTheme(e){return t4.lowest(iR.of(oW("."+oL,e,oV)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&rl.get(n)||rl.get(e);return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}oY.styleModule=iR,oY.inputHandler=io,oY.clipboardInputFilter=ia,oY.clipboardOutputFilter=il,oY.scrollHandler=ih,oY.focusChangeEffect=is,oY.perLineTextDirection=iu,oY.exceptionSink=ir,oY.updateListener=ii,oY.editable=iv,oY.mouseSelectionStyle=it,oY.dragMovesSelection=ie,oY.clickAddsSelectionRange=r7,oY.decorations=i$,oY.outerDecorations=ij,oY.atomicRanges=iO,oY.bidiIsolatedRanges=iC,oY.scrollMargins=iE,oY.darkTheme=oz,oY.cspNonce=tG.define({combine:e=>e.length?e[0]:""}),oY.contentAttributes=iS,oY.editorAttributes=ik,oY.lineWrapping=oY.contentAttributes.of({class:"cm-lineWrapping"}),oY.announce=nh.define();let oZ=4096,o0={};class o1{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:rG.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir!=r||t.touchesRange(o.from,o.to)||n.push(new o1(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function o2(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&rR(o,n)}return n}let o3=r$.mac?"mac":r$.windows?"win":r$.linux?"linux":"key";function o4(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}let o5=t4.default(oY.domEventHandlers({keydown:(e,t)=>{var n,r,i,o,s;let a,l,u,c,h,d,f,p,m,g,v,y,b;return n=(a=t.state.facet(o6),(l=o8.get(a))||o8.set(a,l=function(e,t=o3){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,s,a)=>{var l,u;
1let c=n[e]||(n[e]=Object.create(null)),h=r.split(/ (?!$)/).map(e=>(function(e,t){let n,r,i,o;let s=e.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(let e=0;e<s.length-1;++e){let a=s[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))"mac"==t?o=!0:r=!0;else throw Error("Unrecognized modifier name: "+a)}return n&&(a="Alt-"+a),r&&(a="Ctrl-"+a),o&&(a="Meta-"+a),i&&(a="Shift-"+a),a})(e,t));for(let t=1;t<h.length;t++){let n=h.slice(0,t).join(" ");i(n,!0),c[n]||(c[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let r=o9={view:t,prefix:n,scope:e};return setTimeout(()=>{o9==r&&(o9=null)},4e3),!0}]})}let d=h.join(" ");i(d,!1);let f=c[d]||(c[d]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===u?void 0:u.slice())||[]});o&&f.run.push(o),s&&(f.preventDefault=!0),a&&(f.stopPropagation=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:i}=r;for(let t in e)e[t].run.push(e=>i(e,o7))}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault,r.stopPropagation)}return n}(a.reduce((e,t)=>e.concat(t),[]))),l),r=e,i=t,o="editor",o7=r,c=(65536>tM(u=("Esc"==(s=!(nJ&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||nH&&r.shiftKey&&r.key&&1==r.key.length||"Unidentified"==r.key)&&r.key||(r.shiftKey?nq:nW)[r.keyCode]||r.key||"Unidentified")&&(s="Escape"),"Del"==s&&(s="Delete"),"Left"==s&&(s="ArrowLeft"),"Up"==s&&(s="ArrowUp"),"Right"==s&&(s="ArrowRight"),"Down"==s&&(s="ArrowDown"),s),0)?1:2)==u.length&&" "!=u,h="",d=!1,f=!1,p=!1,o9&&o9.view==i&&o9.scope==o&&(h=o9.prefix+" ",0>i2.indexOf(r.keyCode)&&(f=!0,o9=null)),m=new Set,g=e=>{if(e){for(let t of e.run)if(!m.has(t)&&(m.add(t),t(i)))return e.stopPropagation&&(p=!0),!0;e.preventDefault&&(e.stopPropagation&&(p=!0),f=!0)}return!1},(v=n[o])&&(g(v[h+o4(u,r,!c)])?d=!0:c&&(r.altKey||r.metaKey||r.ctrlKey)&&!(r$.windows&&r.ctrlKey&&r.altKey)&&(y=nW[r.keyCode])&&y!=u?g(v[h+o4(y,r,!0)])?d=!0:r.shiftKey&&(b=nq[r.keyCode])!=u&&b!=y&&g(v[h+o4(b,r,!1)])&&(d=!0):c&&r.shiftKey&&g(v[h+o4(u,r,!0)])&&(d=!0),!d&&g(v._any)&&(d=!0)),f&&(d=!0),d&&p&&r.stopPropagation(),o7=null,d}})),o6=tG.define({enables:o5}),o8=new WeakMap,o9=null,o7=null;class se{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(!n.empty)return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==rG.LTR,s=e.contentDOM,a=s.getBoundingClientRect(),l=st(e),u=s.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),h=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=a.right-(c?parseInt(c.paddingRight):0),f=iV(e,r),p=iV(e,i),m=f.type==rI.Text?f:null,g=p.type==rI.Text?p:null;if(m&&(e.lineWrapping||f.widgetLineBreaks)&&(m=sn(e,r,1,m)),g&&(e.lineWrapping||p.widgetLineBreaks)&&(g=sn(e,i,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return y(b(n.from,n.to,m));{let t=m?b(n.from,null,m):x(f,!1),r=g?b(null,n.to,g):x(p,!0),i=[];return(m||f).to<(g||p).from-(m&&g?1:0)||f.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<r.top?i.push(v(h,t.bottom,d,r.top)):t.bottom<r.top&&e.elementAtHeight((t.bottom+r.top)/2).type==rI.Text&&(t.bottom=r.top=(t.bottom+r.top)/2),y(t).concat(i).concat(y(r))}function v(e,n,r,i){return new se(t,e-l.left,n-l.top,r-e,i-n)}function y({top:e,bottom:t,horizontal:n}
1){let r=[];for(let i=0;i<n.length;i+=2)r.push(v(n[i],e,n[i+1],t));return r}function b(t,n,r){let i=1e9,s=-1e9,a=[];function l(t,n,l,u,c){let f=e.coordsAtPos(t,t==r.to?-2:2),p=e.coordsAtPos(l,l==r.from?2:-2);f&&p&&(i=Math.min(f.top,p.top,i),s=Math.max(f.bottom,p.bottom,s),c==rG.LTR?a.push(o&&n?h:f.left,o&&u?d:p.right):a.push(!o&&u?h:p.left,!o&&n?d:f.right))}let u=null!=t?t:r.from,c=null!=n?n:r.to;for(let r of e.visibleRanges)if(r.to>u&&r.from<c)for(let i=Math.max(r.from,u),o=Math.min(r.to,c);;){let r=e.state.doc.lineAt(i);for(let s of e.bidiSpans(r)){let e=s.from+r.from,a=s.to+r.from;if(e>=o)break;a>i&&l(Math.max(e,i),null==t&&e<=u,Math.min(a,o),null==n&&a>=c,s.dir)}if((i=r.to+1)>=o)break}return 0==a.length&&l(u,null==t,c,null==n,e.textDirection),{top:i,bottom:s,horizontal:a}}function x(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n);{let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=st(e);return[new se(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}}}function st(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==rG.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function sn(e,t,n,r){let i=e.coordsAtPos(t,2*n);if(!i)return r;let o=e.dom.getBoundingClientRect(),s=(i.top+i.bottom)/2,a=e.posAtCoords({x:o.left+1,y:s}),l=e.posAtCoords({x:o.right-1,y:s});return null==a||null==l?r:{from:Math.max(r.from,Math.min(a,l)),to:Math.min(r.to,Math.max(a,l))}}class sr{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(si)!=e.state.facet(si)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(si);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((e,t)=>{var n;return n=this.drawn[t],!(e.constructor==n.constructor&&e.eq(n))})){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}let si=tG.define();function so(e){return[ix.define(t=>new sr(t,e)),si.of(e)]}let ss=!(r$.ios&&r$.webkit&&r$.webkit_version<534),sa=tG.define({combine:e=>nx(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function sl(e){return e.startState.facet(sa)!=e.state.facet(sa)}let su=so({above:!0,markers(e){let{state:t}=e,n=t.facet(sa),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty?!o||ss:n.drawRangeCursor){let t=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=i.empty?i:tJ.cursor(i.head,i.head>i.anchor?-1:1);for(let i of se.forRange(e,t,n))r.push(i)}}return r},update(e,t){e.transactions.some(e=>e.selection)&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=sl(e);return n&&sc(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){sc(t.state,e)},class:"cm-cursorLayer"});function sc(e,t){t.style.animationDuration=e.facet(sa).cursorBlinkRate+"ms"}let sh=so({above:!1,markers:e=>e.state.selection.ranges.map(t=>
1t.empty?[]:se.forRange(e,"cm-selectionBackground",t)).reduce((e,t)=>e.concat(t)),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||sl(e),class:"cm-selectionLayer"}),sd={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};ss&&(sd[".cm-line"].caretColor=sd[".cm-content"].caretColor="transparent !important");let sf=t4.highest(oY.theme(sd));function sp(e,t,n,r,i){t.lastIndex=0;for(let o=e.iterRange(n,r),s=n,a;!o.next().done;s+=o.value.length)if(!o.lineBreak)for(;a=t.exec(o.value);)i(s+a.index,a)}class sm{constructor(e){let{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else if(n)this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=o}createDeco(e){let t=new nO,n=t.add.bind(t);for(let{from:t,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))sp(e.state.doc,this.regexp,t,r,(t,r)=>this.addMatch(r,e,t,n));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return(e.docChanged&&e.changes.iterChanges((t,i,o,s)=>{s>e.view.viewport.from&&o<e.view.viewport.to&&(n=Math.min(o,n),r=Math.max(s,r))}),e.viewportMoved||r-n>1e3)?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),s=Math.min(i.to,r);if(s>o){let n=e.state.doc.lineAt(o),r=n.to<s?e.state.doc.lineAt(s):n,a=Math.max(i.from,n.from),l=Math.min(i.to,r.to);if(this.boundary){for(;o>n.from;o--)if(this.boundary.test(n.text[o-1-n.from])){a=o;break}for(;s<r.to;s++)if(this.boundary.test(r.text[s-r.from])){l=s;break}}let u=[],c,h=(e,t,n)=>u.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=a-n.from;(c=this.regexp.exec(n.text))&&c.index<l-n.from;)this.addMatch(c,e,c.index+n.from,h);else sp(e.state.doc,this.regexp,a,l,(t,n)=>this.addMatch(n,e,t,h));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>e<a||t>l,add:u})}}return t}}let sg=null!=/x/.unicode?"gu":"g",sv=RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]",sg),sy={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},sb=null,sx=tG.define({combine(e){let t=nx(e,{render:null,specialChars:sv,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==sb&&"undefined"!=typeof document&&document.body){let t=document.body.style;sb=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)!=null}return sb||!1}())&&(t.specialChars=RegExp("	|"+t.specialChars.source,sg)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,sg)),t}}),sw=null;class sk extends rD{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){var t;let n=(t=this.code)>=32?"•":10==t?"␤":String.fromCharCode(9216+t),r=e.state.phrase("Control character")+" "+(sy[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="
1cm-specialChar",o}ignoreEvent(){return!1}}class sS extends rD{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="	",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}let s$="-10000px";class sj{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e);let i=null;this.tooltipViews=this.tooltips.map(e=>i=n(e,i))}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter(e=>e);if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],s=t?[]:null;for(let n=0;n<i.length;n++){let r=i[n],a=-1;if(r){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==r.create&&(a=e)}if(a<0)o[n]=this.createTooltipView(r,n?o[n-1]:null),s&&(s[n]=!!r.above);else{let r=o[n]=this.tooltipViews[a];s&&(s[n]=t[a]),r.update&&r.update(e)}}}for(let e of this.tooltipViews)0>o.indexOf(e)&&(this.removeTooltipView(e),null===(n=e.destroy)||void 0===n||n.call(e));return t&&(s.forEach((e,n)=>t[n]=e),t.length=s.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function sO(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}let sC=tG.define({combine:e=>{var t,n,r;return{position:r$.ios?"absolute":(null===(t=e.find(e=>e.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find(e=>e.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find(e=>e.tooltipSpace))||void 0===r?void 0:r.tooltipSpace)||sO}}}),sU=new WeakMap,sE=ix.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(sC);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new sj(e,sM,(e,t)=>this.createTooltip(e,t),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let e of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(e.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(sC);if(r.position!=this.position&&!this.madeAbsolute){for(let e of(this.position=r.position,this.manager.tooltipViews))e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){for(let e of(this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",n.dom.appendChild(e)}return n.dom.style.position=this.position,n.dom.style.top=s$,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mou
vendor: 4,765 bytes, line 1
1nt&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;for(let t of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(r$.gecko)n=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==s$&&"0px"==e.style.left){let t=e.getBoundingClientRect();n=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(n||"absolute"==this.position){if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState)}let r=this.view.scrollDOM.getBoundingClientRect(),i=iT(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(sC).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){var t;if(e.makeAbsolute)for(let e of(this.madeAbsolute=!0,this.position="absolute",this.manager.tooltipViews))e.dom.style.position="absolute";let{visible:n,space:r,scaleX:i,scaleY:o}=e,s=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],u=this.manager.tooltipViews[a],{dom:c}=u,h=e.pos[a],d=e.size[a];if(!h||!1!==l.clip&&(h.bottom<=Math.max(n.top,r.top)||h.top>=Math.min(n.bottom,r.bottom)||h.right<Math.max(n.left,r.left)-.1||h.left>Math.min(n.right,r.right)+.1)){c.style.top=s$;continue}let f=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,p=f?7:0,m=d.right-d.left,g=null!==(t=sU.get(u))&&void 0!==t?t:d.bottom-d.top,v=u.offset||sA,y=this.view.textDirection==rG.LTR,b=d.width>r.right-r.left?y?r.left:r.right-d.width:y?Math.max(r.left,Math.min(h.left-(f?14:0)+v.x,r.right-m)):Math.min(Math.max(r.left,h.left-m+(f?14:0)-v.x),r.right-m),x=this.above[a];!l.strictSide&&(x?h.top-g-p-v.y<r.top:h.bottom+g+p+v.y>r.bottom)&&x==r.bottom-h.bottom>h.top-r.top&&(x=this.above[a]=!x);let w=(x?h.top-r.top:r.bottom-h.bottom)-p;if(w<g&&!1!==u.resize){if(w<this.view.defaultLineHeight){c.style.top=s$;continue}sU.set(u,g),c.style.height=(g=w)/o+"px"}else c.style.height&&(c.style.height="");let k=x?h.top-g-p-v.y:h.bottom+p+v.y,S=b+m;if(!0!==u.overlap)for(let e of s)e.left<S&&e.right>b&&e.top<k+g&&e.bottom>k&&(k=x?e.top-g-2-p:e.bottom+p+2);if("absolute"==this.position?(c.style.top=(k-e.parent.top)/o+"px",sT(c,(b-e.parent.left)/i)):(c.style.top=k/o+"px",sT(c,b/i)),f){let e=h.left+(y?v.x:-v.x)-(b+14-7);f.style.left=e/i+"px"}!0!==u.overlap&&s.push({left:b,top:k,right:S,bottom:k+g}),c.classList.toggle("cm-tooltip-above",x),c.classList.toggle("cm-tooltip-below",!x),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=s$}},{eventObservers:{scroll(){this.maybeMeasure()}}});function sT(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+"px")}let sR=oY.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),sA={x:0,y:0},sM=tG.define({enables:[sE,sR]}),sP=tG.define({combine:e=>e.reduce((e,t)=>
1e.concat(t),[])});class sD{static create(e){return new sD(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new sj(e,sP,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove())}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r){if(void 0===t)t=r;else if(t!==r)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}let sI=sM.compute([sP],e=>{let t=e.facet(sP);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos})),create:sD.create,above:t[0].above,arrow:t.some(e=>e.arrow)}});class sN{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return;let r,i=1;if(n instanceof rC)r=n.posAtStart;else{if(null==(r=e.posAtCoords(t)))return;let n=e.coordsAtPos(r);if(!n||t.y<n.top||t.y>n.bottom||t.x<n.left-e.defaultCharacterWidth||t.x>n.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find(e=>e.from<=r&&e.to>=r),s=o&&o.dir==rG.RTL?-1:1;i=t.x<n.left?-s:s}let o=this.source(e,r,i);if(null==o?void 0:o.then){let t=this.pending={pos:r};o.then(n=>{this.pending==t&&(this.pending=null,n&&!(Array.isArray(n)&&!n.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])}))},t=>ig(e.state,t,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(sE),t=e?e.manager.tooltips.findIndex(e=>e.create==sD.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r.length&&i&&!function(e,t){let{left:n,right:r,top:i,bottom:o}=e.getBoundingClientRect(),s;if(s=e.querySelector(".cm-tooltip-arrow")){let e=s.getBoundingClientRect();i=Math.min(e.top,i),o=Math.max(e.bottom,o)}return t.clientX>=n-4&&t.clientX<=r+4&&t.clientY>=i-4&&t.clientY<=o+4}(i.dom,e)||this.pending){let{pos:i}=r[0]||this.pending,o=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:i;(i==o?this.view.posAtCoords(this.lastMove)!=i:!function(e,t,n,r,i,o){let s=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.right<r||s.top>i||Math.min(s.bottom,a)<i)return!1;let l=e.posAtCoords({x:r,y:i},!1);return l>=t&&l<=n}(this.view,i,o,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}let sF=nh.define();class sz extends nw{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}sz.prototype.elementClass="",sz.prototype.toDOM=void 0,sz.prototype.mapM
1ode=tI.TrackBefore,sz.prototype.startSide=sz.prototype.endSide=-1,sz.prototype.point=!0;var sL=Object.defineProperty,s_=(e,t,n)=>t in e?sL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sB=(e,t,n)=>(s_(e,"symbol"!=typeof t?t+"":t,n),n);let sV=0;class sW{constructor(e,t){this.from=e,this.to=t}}class sq{constructor(e={}){this.id=sV++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=sK.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}sq.closedBy=new sq({deserialize:e=>e.split(" ")}),sq.openedBy=new sq({deserialize:e=>e.split(" ")}),sq.group=new sq({deserialize:e=>e.split(" ")}),sq.isolate=new sq({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),sq.contextHash=new sq({perNode:!0}),sq.lookAhead=new sq({perNode:!0}),sq.mounted=new sq({perNode:!0});class sJ{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[sq.mounted.id]}}let sH=Object.create(null);class sK{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):sH,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new sK(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(sq.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(sq.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}sK.none=new sK("",Object.create(null),0,8);class sG{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let r=null;for(let t of e){let e=t(n);e&&(r||(r=Object.assign({},n.props)),r[e[0].id]=e[1])}t.push(r?new sK(n.name,r,n.id,n.flags):n)}return new sG(t)}}let sQ=new WeakMap,sX=new WeakMap;(m=T||(T={}))[m.ExcludeBuffers=1]="ExcludeBuffers",m[m.IncludeAnonymous=2]="IncludeAnonymous",m[m.IgnoreMounts=4]="IgnoreMounts",m[m.IgnoreOverlays=8]="IgnoreOverlays";class sY{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length)for(let[e,t]of(this.props=Object.create(null),i))this.props["number"==typeof e?e:e.id]=t}toString(){let e=sJ.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new at(this.topNode,e)}cursorAt(e,t=0,n=0){let r=new at(sQ.get(this)||this.topNode);return r.moveTo(e,t),sQ.set(this,r._tree),r}get topNode(){return new s4(this,0,0,null)}resolve(e,t=0){let n=s2(sQ.get(this)||this.topNode,e,t,!1);return sQ.set(this,n),n}resolveInner(e,t=0){let n=s2(sX.get(this)||this.topNode,e,t,!0);return sX.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof s4?r:r.context.parent;e;e=e.parent)if(e.index<0){let o=e.parent;(i||(i=[r])).push(o.resolve(t,n)),e=o}else{let o=sJ.get(e.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let s=new s4(o.tree,o.overlay[0].from+e.from,-1,e);(i||(i=[r])).push(s2(s,t,n,!1))}}return i?s7(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,s=(o&T.IncludeAnonymous)>0;for(let e=this.cursor(o|T.IncludeAnonymous);;){let o=!1;if(e.from<=i&&e.to>=r&&(!s&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;o=!0}for(;o&&n&&(s||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;o=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];
vendor: 25,337 bytes, line 1
1if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:ao(sK.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new sY(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new sY(sK.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=1024,reused:o=[],minRepeatType:s=r.types.length}=e,a=Array.isArray(n)?new sZ(n,n.length):n,l=r.types,u=0,c=0;function h(e,t,n,i,o,s,a,l){let u=[],c=[];for(;e.length>i;)u.push(e.pop()),c.push(t.pop()+n-o);e.push(d(r.types[a],u,c,s-o,l-s)),t.push(o-n)}function d(e,t,n,r,i=0,o){if(u){let e=[sq.contextHash,u];o=o?[e].concat(o):[e]}if(i>25){let e=[sq.lookAhead,i];o=o?[e].concat(o):[e]}return new sY(e,t,n,r,o)}let f=[],p=[];for(;a.pos>0;)!function e(t,n,f,p,m,g){let{id:v,start:y,end:b,size:x}=a,w=c;for(;x<0;)if(a.next(),-1==x){let e=o[v];f.push(e),p.push(y-t);return}else if(-3==x){u=v;return}else if(-4==x){c=v;return}else throw RangeError(`Unrecognized record size: ${x}`);let k=l[v],S,$,j=y-t;if(b-y<=i&&($=function(e,t){let n=a.fork(),r=0,o=0,l=0,u=n.end-i,c={size:0,start:0,skip:0};i:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=o,c.skip=l,l+=4,r+=4,n.next();continue}let a=n.pos-e;if(e<0||a<i||n.start<u)break;let h=n.id>=s?4:0,d=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3==n.size)h+=4;else break i}else n.id>=s&&(h+=4);n.next()}o=d,r+=e,l+=h}return(t<0||r==e)&&(c.size=r,c.start=o,c.skip=l),c.size>4?c:void 0}(a.pos-n,m))){let e=new Uint16Array($.size-$.skip),n=a.pos-$.size,i=e.length;for(;a.pos>n;)i=function e(t,n,r){let{id:i,start:o,end:l,size:h}=a;if(a.next(),h>=0&&i<s){let s=r;if(h>4){let i=a.pos-(h-4);for(;a.pos>i;)r=e(t,n,r)}n[--r]=s,n[--r]=l-t,n[--r]=o-t,n[--r]=i}else -3==h?u=i:-4==h&&(c=i);return r}($.start,e,i);S=new s0(e,b-$.start,r),j=$.start-t}else{let t=a.pos-x;a.next();let n=[],o=[],l=v>=s?v:-1,u=0,c=b;for(;a.pos>t;)l>=0&&a.id==l&&a.size>=0?(a.end<=c-i&&(h(n,o,y,u,a.end,c,l,w),u=n.length,c=a.end),a.next()):g>2500?function(e,t,n,o){let s=[],l=0,u=-1;for(;a.pos>t;){let{id:e,start:t,end:n,size:r}=a;if(r>4)a.next();else{if(u>-1&&t<u)break;u<0&&(u=n-i),s.push(e,t,n),l++,a.next()}}if(l){let t=new Uint16Array(4*l),i=s[s.length-2];for(let e=s.length-3,n=0;e>=0;e-=3)t[n++]=s[e],t[n++]=s[e+1]-i,t[n++]=s[e+2]-i,t[n++]=n;n.push(new s0(t,s[2]-i,r)),o.push(i-e)}}(y,t,n,o):e(y,t,n,o,l,g+1);if(l>=0&&u>0&&u<n.length&&h(n,o,y,u,y,c,l,w),n.reverse(),o.reverse(),l>-1&&u>0){let e=function(e){return(t,n,r)=>{let i=0,o=t.length-1,s,a;if(o>=0&&(s=t[o])instanceof sY){if(!o&&s.type==e&&s.length==r)return s;(a=s.prop(sq.lookAhead))&&(i=n[o]+s.length+a)}return d(e,t,n,r,i)}}(k);S=ao(k,n,o,0,n.length,0,b-y,e,e)}else S=d(k,n,o,b-y,w-b)}f.push(S),p.push(j)}(e.start||0,e.bufferStart||0,f,p,-1,0);let m=null!==(t=e.length)&&void 0!==t?t:f.length?p[0]+f[0].length:0;return new sY(l[e.topID],f.reverse(),p.reverse(),m)}(e)}}sY.empty=new sY(sK.none,[],[],0);class sZ{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new sZ(this.buffer,this.index)}}class s0{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return sK.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,t,n,r,i){let{buffer:o}=this,s=-1;for(let a=e;a!=t&&!(s1(i,r,o[a+1],o[a+2])&&(s=a,n>0));a=o[a+3]);return s}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let s=e,a=0;s<t;){i[a++]=r[s++],i[a++]=r[s++]-n;let t=i[a++]=r[s++]-n;i[a++]=r[s++]-e,o=Math.max(o,t)}return new s0(i,o,this.set)}}function s1(e,t,n,r){switch(e){case -2:return n<t;case -1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function s2(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof s4&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=r?0:T.IgnoreOverlays;if(r)for(let r=e,s=r.parent;s;s=(r=s).parent)r instanceof s4&&r.index<0&&(null===(i=s.enter(t,n,o))||void 0===i?void 0:i.from)!=r.from&&(e=s);for(;;){let r=e.enter(t,n,o);if(!r)return e;e=r}}class s3{cursor(e=0){return new at(this,e)}getChild(e,t=null,n=null){let r=s5(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return s5(this,e,t,n)}resolve(e,t=0){return s2(this,e,t,!1)}resolveInner(e,t=0){return s2(this,e,t,!0)}matchContext(e){return s6(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class s4 extends s3{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,i=0){for(let o=this;;){for(let{children:s,positions:a}=o._tree,l=t>0?s.length:-1;e!=l;e+=t){let l=s[e],u=a[e]+o.from;if(s1(r,n,u,u+l.length)){if(l instanceof s0){if(i&T.ExcludeBuffers)continue;let s=l.findChild(0,l.buffer.length,t,n-u,r);if(s>-1)return new s9(new s8(o,l,e,u),null,s)}else if(i&T.IncludeAnonymous||!l.type.isAnonymous||an(l)){let s;if(!(i&T.IgnoreMounts)&&(s=sJ.get(l))&&!s.overlay)return new s4(s.tree,u,e,o);let a=new s4(l,u,e,o);return i&T.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?l.children.length-1:0,t,n,r)}}}if(i&T.IncludeAnonymous||!o.type.isAnonymous||(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,!(o=o._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&T.IgnoreOverlays)&&(r=sJ.get(this._tree))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e<n)&&(t<0?i>=n:i>n))return new s4(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function s5(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n){for(;!i.type.is(n);)if(!i.nextSibling())return o}for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function s6(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class s8{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class s9 extends s3{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new s9(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&T.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new s9(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new s9(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new s9(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new sY(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function s7(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(i.from>n.from||i.to<n.to)&&(n=i,t=r)}let r=n instanceof s4&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new ae(i,n)}class ae{constructor(e,t){this.heads=e,this.node=t}get next(){return s7(this.heads)}}class at{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof s4)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof s4?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&T.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&T.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&T.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&T.IncludeAnonymous||e instanceof s0||!e.type.isAnonymous||an(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)i:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break i}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new s9(this.buffer,t,this.stack[e]);return this.bufferNode=new s9(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;r&&t&&t(this),r=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return s6(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return s6(this.node,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function an(e){return e.children.some(e=>e instanceof s0||!e.type.isAnonymous||an(e))}let ar=new WeakMap;function ai(e,t){if(!e.isAnonymous||t instanceof s0||t.type!=e)return 1;let n=ar.get(t);if(null==n){for(let r of(n=1,t.children)){if(r.type!=e||!(r instanceof sY)){n=1;break}n+=ai(e,r)}ar.set(t,n)}return n}function ao(e,t,n,r,i,o,s,a,l){let u=0;for(let n=r;n<i;n++)u+=ai(e,t[n]);let c=Math.ceil(1.5*u/8),h=[],d=[];return function t(n,r,i,s,a){for(let u=i;u<s;){let i=u,f=r[u],p=ai(e,n[u]);for(u++;u<s;u++){let t=ai(e,n[u]);if(p+t>=c)break;p+=t}if(u==i+1){if(p>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}h.push(n[i])}else{let t=r[u-1]+n[u-1].length-f;h.push(ao(e,n,r,i,u,f,t,null,l))}d.push(f+a-o)}}(t,n,r,i,0),(a||l)(h,d,s)}class as{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new as(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let u=s<t.length?t[s]:null,c=u?u.fromA:1e9;if(c-a>=n)for(;o&&o.from<c;){let t=o;if(a>=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new as(e,n,t.tree,t.offset+l,s>0,!!u)}if(t&&r.push(t),o.to>c)break;o=i<e.length?e[i++]:null}if(!u)break;a=u.toA,l=u.toA-u.toB}return r}}class aa{startParse(e,t,n){return"string"==typeof e&&(e=new al(e)),n=n?n.length?n.map(e=>new sW(e.from,e.to)):[new sW(0,0)]:[new sW(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class al{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new sq({perNode:!0});class au{constructor(e,t,n,r,i,o,s,a,l,u=0,c){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=s,this.bufferBase=a,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new au(e,[],t,n,n,0,[],0,r?new ac(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,o=i.dynamicPrecedence(r);if(o&&(this.score+=o),0==n){this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r<i.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),this.reduceContext(r,this.reducePos);return}let s=this.stack.length-(n-1)*3-(262144&e?6:0),a=s?this.stack[s-2]:this.p.ranges[0].from,l=this.reducePos-a;l>=2e3&&!(!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t)&&t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=l));let u=s?this.stack[s-1]:0,c=this.bufferBase+this.buffer.length-u;if(r<i.minRepeatTerm||131072&e){let e=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,a,e,c+4,!0)}if(262144&e)this.state=this.stack[s];else{let e=this.stack[s-3];this.state=i.getGoto(e,r,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(r,a)}storeNode(e,t,n,r=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,r=this.buffer.length;if(0==r&&e.parent&&(r=e.bufferBase-e.parent.bufferBase,e=e.parent),r>0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t){e.buffer[r-2]=n;return}}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let{parser:i}=this.p;(r>this.pos||t<=i.maxNode)&&(this.pos=r,i.stateFlag(e,1)||(this.reducePos=r)),this.pushState(e,n),this.shiftContext(t,n),t<=i.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new au(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new ah(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(!(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,i;r<t.length;r+=2)(i=t[r+1])!=this.state&&this.p.parser.hasAction(i,e)&&n.push(t[r],i);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>1&t&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let r=t[e+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(65536&t))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=65535&t,i=this.stack.length-3*n;if(i<0||0>e.getGoto(this.stack[i],r,!1)){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(!(393216&t)){if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new ac(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class ac{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class ah{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=n}}let ad=class e{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new e(t,n,n-t.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new e(this.stack,this.pos,this.index)}};function af(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r<e.length;){let o=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(126==t){o=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),o+=i,n)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class ap{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let am=new ap;class ag{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=am,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(null==t)return -1;if((n=t)>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=n;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}
vendor: 7,946 bytes, line 1
1readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=am,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class av{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;!function(e,t,n,r,i,o){let s=0,a=1<<r,{dialect:l}=n.p.parser;i:for(;a&e[s];){let n=e[s+1];for(let r=s+3;r<n;r+=2)if((e[r+1]&a)>0){let n=e[r];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||function(e,t,n,r){let i=ab(n,r,t);return i<0||ab(n,r,e)<i}(n,t.token.value,i,o))){t.acceptToken(n);break}}let r=t.next,u=0,c=e[s+2];if(t.next<0&&c>u&&65535==e[n+3*c-3]){s=e[n+3*c-1];continue}for(;u<c;){let i=u+c>>1,o=n+i+(i<<1),a=e[o],l=e[o+1]||65536;if(r<a)c=i;else if(r>=l)u=i+1;else{s=e[o+2],t.advance();continue i}}break}}(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}av.prototype.contextual=av.prototype.fallback=av.prototype.extend=!1,av.prototype.fallback=av.prototype.extend=!1;class ay{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function ab(e,t,n){for(let r=t,i;65535!=(i=e[r]);r++)if(i==n)return r-t;return -1}let ax="u">typeof q&&q.env&&/\bparse\b/.test(q.env.LOG),aw=null;function ak(e,t,n){let r=e.cursor(T.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class aS{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?ak(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?ak(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],r=this.index[t];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=n.children[r],o=this.start[t]+n.positions[r];if(o>e)return this.nextStart=o,null;if(i instanceof sY){if(o==e){if(o<this.safeFrom)return null;let e=o+i.length;if(e<=this.safeTo){let t=i.prop(sq.lookAhead);if(!t||e+t<this.fragment.to)return i}}this.index[t]++,o+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+i.length}}}class a${constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new ap)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,a=0;for(let r=0;r<i.length;r++){if(!(1<<r&o))continue;let l=i[r],u=this.tokens[r];if(!(n&&!l.fallback)&&((l.contextual||u.start!=e.pos||u.mask!=o||u.context!=s)&&(this.updateCachedToken(u,l,e),u.mask=o,u.context=s),u.lookAhead>u.end+25&&(a=Math.max(u.lookAhead,a)),0!=u.value)){let r=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(n=u,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||((n=new ap).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new ap,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){1&i?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t<r;t+=3)if(this.actions[t]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:o}=e.p,{data:s}=o;for(let e=0;e<2;e++)for(let a=o.stateSlot(i,e?2:1);;a+=3){if(65535==s[a]){if(1==s[a+1])a=aE(s,a+2);else{0==r&&2==s[a+1]&&(r=this.putAction(aE(s,a+2),t,n,r));break}}s[a]==t&&(r=this.putAction(aE(s,a+1),t,n,r))}return r}}class aj{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new ag(t,r),this.tokens=new a$(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[au.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>4*e.bufferLength?new aS(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],r,i;if(this.bigReductionCount>300&&1==e.length){let[t]=e;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let s=e[o];for(;;){if(this.tokens.mainToken=null,s.pos>t)n.push(s);else{if(this.advanceStack(s,n,e))continue;{r||(r=[],i=[]),r.push(s);let e=this.tokens.getMainToken(s);i.push(e.value,e.end)}}break}}if(!n.length){let e=r&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(r);if(e)return ax&&console.log("Finish with "+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw ax&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&r){let e=null!=this.stoppedAt&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,i,n);if(e)return ax&&console.log("Force-finish "+this.stackID(e)),this.stackToTree(e.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(n.length>e)for(n.sort((e,t)=>t.score-e.score);n.length>e;)n.pop();n.some(e=>e.reducePos>t)&&this.recovering--}
1else if(n.length>1){i:for(let e=0;e<n.length-1;e++){let t=n[e];for(let r=e+1;r<n.length;r++){let i=n[r];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500){if((t.score-i.score||t.buffer.length-i.buffer.length)>0)n.splice(r--,1);else{n.splice(e--,1);continue i}}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let e=1;e<n.length;e++)n[e].pos<this.minStackPos&&(this.minStackPos=n[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let r=e.pos,{parser:i}=this,o=ax?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let s=this.fragments.nodeAt(r);s;){let r=this.parser.nodeSet.types[s.type.id]==s.type?i.getGoto(e.state,s.type.id):-1;if(r>-1&&s.length&&(!t||(s.prop(sq.contextHash)||0)==n))return e.useNode(s,r),ax&&console.log(o+this.stackID(e)+` (via reuse of ${i.getName(s.type.id)})`),!0;if(!(s instanceof sY)||0==s.children.length||s.positions[0]>0)break;let a=s.children[0];if(a instanceof sY&&0==s.positions[0])s=a;else break}}let s=i.stateSlot(e.state,4);if(s>0)return e.reduce(s),ax&&console.log(o+this.stackID(e)+` (via always-reduce ${i.getName(65535&s)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let s=0;s<a.length;){let l=a[s++],u=a[s++],c=a[s++],h=s==a.length||!n,d=h?e:e.split(),f=this.tokens.mainToken;if(d.apply(l,u,f?f.start:d.pos,c),ax&&console.log(o+this.stackID(d)+` (via ${65536&l?`reduce of ${i.getName(65535&l)}`:"shift"} for ${i.getName(u)} @ ${r}${d==e?"":", split"})`),h)return!0;d.pos>r?t.push(d):n.push(d)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return aO(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let o=0;o<e.length;o++){let s=e[o],a=t[o<<1],l=t[(o<<1)+1],u=ax?this.stackID(s)+" -> ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),ax&&console.log(u+this.stackID(s)+" (restarted)"),this.advanceFully(s,n))))continue;let c=s.split(),h=u;for(let e=0;c.forceReduce()&&e<10&&(ax&&console.log(h+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));e++)ax&&(h=this.stackID(c)+" -> ");for(let e of s.recoverByInsert(a))ax&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>s.pos?(l==s.pos&&(l++,a=0),s.recoverByDelete(a,l),ax&&console.log(u+this.stackID(s)+` (via recover-delete ${this.parser.getName(a)})`),aO(s,n)):(!r||r.score<s.score)&&(r=s)}return r}stackToTree(e){return e.close(),sY.build({buffer:ad.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(aw||(aw=new WeakMap)).get(e);return t||aw.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function aO(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class aC{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}class aU extends aa{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push("");let n=Object.keys(e.topRules).map(t=>e.topRules[t][1]),r=[];for(let e=0;e<t.length;e++)r.push([]);function i(e,t,n){r[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=sq[e]);for(let n=1;n<t.length;){let r=t[n++];if(r>=0)i(r,e,t[n++]);else{let o=t[n+-r];for(let s=-r;s>0;s--)i(t[n++],e,o);n++}}}this.nodeSet=new sG(t.map((t,i)=>sK.define({name:i>=this.minRepeatTerm?void 0:t,id:i,props:r[i],top:n.indexOf(i)>-1,error:0==i,skipped:e.skippedNodes&&e.skippedNodes.indexOf(i)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let o=af(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(aT),this.states=af(e.states,Uint32Array),this.data=af(e.stateData),this.goto=af(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new av(o,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new aj(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return -1;for(let i=r[t+1];;){let t=r[i++],o=1&t,s=r[i++];if(o&&n)return s;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return s;if(o)return -1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i=this.stateSlot(e,r?2:1),o;;i+=3){if(65535==(o=n[i])){if(1==n[i+1])o=n[i=aE(n,i+2)];else{if(2==n[i+1])return aE(n,i+2);break}}if(o==t||0==o)return aE(n,i+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==r;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=aE(this.data,n+2);else break}r=t(aE(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=aE(this.data,n+2);else break}if(!(1&this.data[n+2])){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(aU.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,r)=>{let i=e.specializers.find(e=>e.from==n.external);
1if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=aT(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n=this.dialects[t[e]],i;65535!=(i=this.data[n++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[i]=1;return new aC(e,n,r)}static deserialize(e){return new aU(e)}}function aE(e,t){return e[t]|e[t+1]<<16}function aT(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}function aR(e){let t=new Set(["{","}"]);return e&&t.add("#"),t}function aA(e){let t=new Set(["{"]);return e&&(t.add("#"),t.add("}")),t}function aM({input:e,escapable:t,ending:n,textToken:r}){return function(e,t,n,r){let i=e.pos;(function(e,t,n,r=0,i){let o,s=r,a=[];i:for(;-1!==(o=e.next);){let r=tP(o);switch(s){case 0:if("'"===r)s=2;else if(n.has(r))break i;a.push(r);break;case 2:s=t.has(r)?1:0,a.push(r);break;case 1:"'"===r&&("'"===tP(e.peek(1))?(e.advance(),a.push("'")):s=0),a.push(r)}e.advance()}a.join("")})(e,t,n),i<e.pos&&e.acceptToken(r)}(e,t,n,r)}let aP=new ay(e=>aM({input:e,escapable:aR(!1),ending:aA(!1),textToken:1})),aD=new ay(e=>aM({input:e,escapable:aR(!0),ending:aA(!0),textToken:2})),aI=aU
vendor: 21,185 bytes, line 1
1.deserialize({version:14,states:"/SQQOTOOQ]OUOOOOOO'#Ca'#CaOOOR'#Cm'#CmOhOSO'#C`OpOTO'#CtQOOOOOO!OOUO'#C}OOOO'#Cd'#CdO!aOSO'#CcOkOSO'#CcO!lOSO,58zOOOO,59`,59`OOOO,59i,59iO!qOWO,58}O!|OSO,58}O#UOSO,58}OOOR'#Co'#CoOOOR1G.f1G.fOOOO'#Ce'#CeO#aOSO1G.iO!tOWO1G.iOOOO'#Ch'#ChO#lOSO1G.mO#tOWO1G.iO$POSO1G.iO$XO`O7+$TO$aOSO7+$TO$iOSO7+$TO$tOSO7+$XO$|OpO7+$XO$wOSO7+$XO!tOWO7+$TO%XOWO7+$TOOOO'#Cf'#CfOOOO'#Cq'#CqO$[O`O'#CqO%dO`O<<GoO$XO`O<<GoO%oOSO<<GoO%wOpO<<GsO&SOSO<<GsOOOO'#Ci'#CiOOOO'#Ck'#CkO&XOSO'#CjOOOO'#Cr'#CrO%POpO<<GsO&aOpO<<GsO&lOpO<<GsO&tOSO<<GoO'POSO<<GsO!tOWO<<GoOOOO,59],59]O'XO`OAN=ZOOOO-E6o-E6oO'aO`OAN=ZO$XO`OAN=ZO%POpOAN=_O'lOpOAN=_O&lOpOAN=_O'wOpOAN=_O(SOUO,59UO(bOSO,59UOOOO,59^,59^O'oOpOAN=_OOOO-E6p-E6pO%SOpO'#CrO(gOSOAN=ZO(oOSOAN=_O(tOSOAN=ZO)POSOAN=_O)XO`OG22uO)aO`OG22uO&lOpOG22yO)lOpOG22yO)tOpOG22yO%POpOG22yOOOO'#Cl'#ClO*POSO1G.pO(SOUO1G.pO$XO`OG22uO*UOpOG22yO*aOSOG22uO*iOSOG22yO*nO`OLD(aO*vOpOLD(eO*yOpOLD(eO&lOpOLD(eOOOO7+$[7+$[O+ROSO7+$[O+WO`OLD(aO%POpOLD(eO$XO`OLD(aO+cOpOLD(eO+nOpO!$'LPO+vOpO!$'LPOOOO<<Gv<<GvO,RO`O!$'K{O&lOpO!$'LPO,ZO`O!$'K{O%POpO!$'LPO,fOpO!)9AkO,nOpO!)9AkO,yO`O!)9AgO&lOpO!)9AkO-ROpO!.K7VO-ZOpO!.K7VO-fOpO!4/,q",stateData:"-q~OPTOUQOrRO~OQVOUQOrRO~OiYOjWO~OPTOUQOrROghX~OQVOUQOrROgqXbqX~Oi_Ok^ObVX~ObaO~OieOlcOnfO~OkhObVa~OiiOkhObVa~OikOkjObVi~OioOknO~OipOlcOnfO~OkqObVi~OitOmrO~OkvObVq~OiwOkvObVq~OiyOkxO~Oi!OOozOp{O~Oi!TOlcOnfO~Oi!VOmrObVy~Ok!YObVy~Oi!ZOozOp{O~Ok!^O~OU!_Oi!`O~Oi!bOp{ObZy~Oi!dOp{O~Oi!eOk!YObVy~Oi!fOk!^O~OmrObV!R~Oi!iOmrObV!R~Oi!lOp{ObZ!R~Oi!nOozOp{O~OQVOUQOrROb`P~OU!qO~Ok!rObV!R~Ok!sO~Oi!tOk!rObV!R~Oi!uOk!sO~OmrObV!Z~Oi!vOmrObV!Z~Op{ObZ!Z~Oi!xOp{ObZ!Z~Ob!zO~Oi!}OozOp{O~Ok#OObV!Z~Ok#PO~OmrObV!c~Oi#QOp{ObZ!c~Ob#SO~Oi#TOmrObV!c~Oi#WOozOp{O~Op{ObZ!k~Oi#XOp{ObZ!k~OmrObV!k~Oi#ZOmrObV!k~Op{ObZ!s~Oi#]Op{ObZ!s~OmrObV!s~Op{ObZ!{~Oi#_Op{ObZ!{~Op{ObZ#T~Oop~",goto:"'TrPPPPs}P!V!Y!`!n!V#S#b#x$m%`sP%fP%i&PP&sPPPPPPPP&ySTOTXVPV!_!q]SOPTV!_!qRZSQXSR`YQd^SlehS!RpqR!g!Tdsjuv!X!Y!j!r!|#O#V]!Ut!V!i!v#T#ZQg^SmehS!SpqR!h!TQ!QnS!]x!OS!k!Z!^S!y!n!sS#U!}#PR#[#Wt}nx!P!Q![!]!^!k!m!s!w!y#P#R#U#Y#[#^k!a!O!Z!b!d!l!n!x!}#Q#W#X#]#_!a|nx!O!P!Q!Z![!]!^!b!d!k!l!m!n!s!w!x!y!}#P#Q#R#U#W#X#Y#[#]#^#_Q!p!_R!{!qRbZQujY!Wu!X!j!|#VQ!XvQ!j!YQ!|!rR#V#OQ!PnS![x!Q^!c!P![!m!w#R#Y#^S!m!]!^S!w!k!sS#R!y#PQ#Y#UR#^#[QUOR[TQUPQ]VT!o!_!q",nodeNames:"⚠ Text TextNested Root Expression ExpressionOpen { FormatExpression Param FormatFunction FormatStyle SelectExpression SelectFunction Offset SelectVariant VariantDescriptor VariantContent PluralPlaceholder } ExpressionClose Nested",maxTerm:34,skippedNodes:[0],repeatNodeCount:2,tokenData:"$Mn~R#POX'UX^,z^p'Upq,zqs+jst-ot{+j{|.u|}7o}!O.u!O!Q+j!Q!['U![!_+j!_!`7t!`!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#W'U#W#X<[#X#b'U#b#cNa#c#d!7X#d#e#(`#e#g'U#g#h#Ck#h#i$C]#i#o'U#o#p$Lc#p#q+j#q#r$Mi#r#s+j#s#y'U#y#z,z#z$f'U$f$g,z$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BY#BZ,z#BZ$IS'U$IS$I_,z$I_$Id'U$Id$I|+j$I|$JO,z$JO$JT'U$JT$JU,z$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KV$KW,z$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FU&FV,z&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U]'_!cmSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'US+o_mSOX+j^p+jq|+j}#q+j#r#y+j#z$f+j$g#BY+j#BZ$IS+j$I_$I|+j$JO$JT+j$JU$KV+j$KW&FU+j&FV;'S+j;'S;=`,n<%lO+jS,qP;=`<%l+j],wP;=`<%l'U~-PYi~X^,zpq,z#y#z,z$f$g,z#BY#BZ,z$IS$I_,z$I|$JO,z$JT$JU,z$KV$KW,z&FU&FV,zT-v_mSrPOX+j^p+jq|+j}#q+j#r#y+j#z$f+j$g#BY+j#BZ$IS+j$I_$I|+j$JO$JT+j$JU$KV+j$KW&FU+j&FV;'S+j;'S;=`,n<%lO+j[.z!cmSOX3V^p3Vq|+j}!Q+j!Q![3V![!c+j!c!}3V!}#R+j#R#S3V#S#T+j#T#o3V#o#q+j#r#s+j#s#y3V#z$f3V$g$n+j$n$o3V$o$p+j$p$q3V$q$s+j$s$t3V$t$u+j$u$v3V$v$x+j$x$|3V$|$}+j$}%R3V%R%S+j%S%V3V%V%W+j%W%o3V%o%p+j%p&a3V&a&b+j&b#BY3V#BZ$IS3V$I_$Id3V$Id$I|+j$JO$JT3V$JU$Je+j$Je$Jg3V$Jg$Jz+j$Jz$J{3V$J{$KV+j$KW%#t3V%#t%3d+j%3d%6z3V%6z%Dl+j%Dl%E[3V%E[&/x+j&/x&;O3V&;O&=t+j&=t&FU3V&FV&FY+j&FY&F^3V&F^&Fw+j&Fw&GW3V&GW&GX+j&GX;'S3V;'S;=`7i<%l?>`3V?>`?>b+j?>b?DR3V?DR?DT+j?DTO3V[3^!cmSpWOX3V^p3Vq|+j}!Q+j!Q![3V![!c+j!c!}3V!}#R+j#R#S3V#S#T+j#T#o3V#o#q+j#r#s+j#s#y3V#z$f3V$g$n+j$n$o3V$o$p+j$p$q3V$q$s+j$s$t3V$t$u+j$u$v3V$v$x+j$x$|3V$|$}+j$}%R3V%R%S+j%S%V3V%V%W+j%W%o3V%o%p+j%p&a3V&a&b+j&b#BY3V#BZ$IS3V$I_$Id3V$Id$I|+j$JO$JT3V$JU$Je+j$Je$Jg3V$Jg$Jz+j$Jz$J{3V$J{$KV+j$KW%#t3V%#t%3d+j%3d%6z3V%6z%Dl+j%Dl%E[3V%E[&/x+j&/x&;O3V&;O&=t+j&=t&FU3V&FV&FY+j&FY&F^3V&F^&Fw+j&Fw&GW3V&GW&GX+j&GX;'S3V;'S;=`7i<%l?>`3V?>`?>b+j?>b?DR3V?DR?DT+j?DTO3V[7lP;=`<%l3V~7tOk~[7y!emSOX3V^p3Vq{+j{|.u}!O.u!O!Q+j!Q![3V![!c+j!c!}3V!}#R+j#R#S3V#S#T+j#T#o3V#o#q+j#r#s+j#s#y3V#z$f3V$g$n+j$n$o3V$o$p+j$p$q3V$q$s+j$s$t3V$t$u+j$u$v3V$v$x+j$x$|3V$|$}+j$}%R3V%R%S+j%S%V3V%V%W+j%W%o3V%o%p+j%p&a3V&a&b+j&b#BY3V#BZ$IS3V$I_$Id3V$Id$I|+j$JO$JT3V$JU$Je+j$Je$Jg3V$Jg$Jz+j$Jz$J{3V$J{$KV+j$KW%#t3V%#t%3d+j%3d%6z3V%6z%Dl+j%Dl%E[3V%E[&/x+j&/x&;O3V&;O&=t+j&=t&FU3V&FV&FY+j&FY&F^3V&F^&Fw+j&Fw&GW3V&GW&GX+j&GX;'S3V;'S;=`7i<%l?>`3V?>`?>b+j?>b?DR3V?DR?DT+j?DTO3V_<e!dmSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#U@s#U#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_@|!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#h'U#h#iE_#i#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_Eh!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#X'U#X#YIy#Y#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_JU!clQmSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_Nj!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#i'U#i#j!${#j#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_!%U!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#a'U#a#b!)g#b#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_!)p!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#U'U#U#V!.R#V#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_!.[!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#X'U#X#Y!2m#Y#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_!2v!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#f'U#f#gIy#g#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U]!7b!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#Y'U#Y#Z!;s#Z#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U]!;|!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#Y'U#Y#Z!@_#Z#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U]!@h!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#g'U#g#h!Dy#h#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U]!ES!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#X'U#X#Y!Ie#Y#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U]!In!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#h'U#h#i!NP#i#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U]!NY!dmSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!]#$h!]!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U[#$mcmSOX+j^p+jq{+j{|#%x}!O#%x!O!Q+j!Q![#'S![#q+j#r#y+j#z$f+j$g#BY+j#BZ$IS+j$I_$I|+j$JO$JT+j$JU$KV+j$KW&FU+j&FV;'S+j;'S;=`,n<%lO+j[#%}amSOX+j^p+jq|+j}!Q+j!Q![#'S![#q+j#r#y+j#z$f+j$g#BY+j#BZ$IS+j$I_$I|+j$JO$JT+j$JU$KV+j$KW&FU+j&FV;'S+j;'S;=`,n<%lO+j[#'ZamSoWOX+j^p+jq|+j}!Q+j!Q![#'S![#q+j#r#y+j#z$f+j$g#BY+j#BZ$IS+j$I_$I|+j$JO$JT+j$JU$KV+j$KW&FU+j&FV;'S+j;'S;=`,n<%lO+j_#(i!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#`'U#`#a#,z#a#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_#-T!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#i'U#i#j#1f#j#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_#1o!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#f'U#f#g#6Q#g#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_#6Z!dmSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#U#:i#U#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_#:r!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#`'U#`#a#?T#a#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_#?`!cmSjPnQpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_#Ct!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#X'U#X#Y#HV#Y#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_#H`!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#`'U#`#a#Lq#a#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_#Lz!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#X'U#X#Y$#]#Y#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_$#f!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#V'U#V#W$'w#W#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_$(Q!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#h'U#h#i$,c#i#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_$,n!emSjPnQpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#c'U#c#d$1P#d#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_$1Y!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#f'U#f#g$5k#g#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_$5t!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#W'U#W#X$:V#X#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_$:`!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#]'U#]#^$>q#^#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_$>z!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#b'U#b#c#6Q#c#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_$Cf!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#]'U#]#^$Gw#^#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'U_$HQ!emSjPpWOX'U^p'Uq|+j}!Q+j!Q!['U![!c+j!c!}'U!}#R+j#R#S'U#S#T+j#T#a'U#a#bE_#b#o'U#o#q+j#r#s+j#s#y'U#z$f'U$g$n+j$n$o'U$o$p+j$p$q'U$q$s+j$s$t'U$t$u+j$u$v'U$v$x+j$x$|'U$|$}+j$}%R'U%R%S+j%S%V'U%V%W+j%W%o'U%o%p+j%p&a'U&a&b+j&b#BY'U#BZ$IS'U$I_$Id'U$Id$I|+j$JO$JT'U$JU$Je+j$Je$Jg'U$Jg$Jz+j$Jz$J{'U$J{$KV+j$KW%#t'U%#t%3d+j%3d%6z'U%6z%Dl+j%Dl%E['U%E[&/x+j&/x&;O'U&;O&=t+j&=t&FU'U&FV&FY+j&FY&F^'U&F^&Fw+j&Fw&GW'U&GW&GX+j&GX;'S'U;'S;=`,t<%l?>`'U?>`?>b+j?>b?DR'U?DR?DT+j?DTO'UT$Lj_UPmSOX+j^p+jq|+j}#q+j#r#y+j#z$f+j$g#BY+j#BZ$IS+j$I_$I|+j$JO$JT+j$JU$KV+j$KW&FU+j&FV;'S+j;'S;=`,n<%lO+j~$MnOb~",tokenizers:[
1aP,aD,0,1,2,3],topRules:{Root:[0,3],Nested:[1,20]},tokenPrec:582}),aN=e=>{let t=0;return{get next(){return e[t]?e.charCodeAt(t):-1},get pos(){return t},peek:n=>e[t+n]?e.charCodeAt(t+n):-1,advance(e=1){t+=e}}};function aF(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function az(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}let aL=e=>{let t=aN(e),n=[];for(;-1!==t.next;){let e=function(e){let t=0,n="open",r="",i="",o="",s="'",a,l={start:0,end:0},u={};i:for(;-1!==(a=e.next);){let c=tP(a);switch(t){case 0:"<"===c&&(t=1,l.start=e.pos);break;case 1:if("/"===c)n="close",t=2;else if(aF(a))r+=c,t=2;else break i;break;case 2:if(">"===c){if(""===r)break i;t=4}else if("/"===c){if(""===r)break i;n="self-closed",t=5}else if(az(a)){if(""===r)break i;t=6}else if(aF(a))r+=c;else break i;break;case 6:aF(a)?(i+=c,t=7):"/"===c?(n="self-closed",t=5):">"===c&&(t=4);break;case 7:if(aF(a))i+=c;else if(">"===c||"/"===c||"="===c||az(a))u[i]=!0,t=">"===c?4:"/"===c?5:"="===c?9:8;else break i;break;case 8:if(">"===c)t=4;else if("/"===c)t=5;else if("="===c)t=9;else if(aF(a))t=7,i=c;else if(!az(a))break i;break;case 9:if("'"===c||'"'===c)t=10,s=c;else if(!az(a))break i;break;case 10:c===s?(u[i]=`${s}${o}${s}`,i="",o="",t=6):o+=c;break;case 5:if(">"===c)t=4;else break i;break;case 4:break i}e.advance()}return 4===t&&r?(l.end=e.pos,{isTag:!0,type:n,name:r,params:u,position:l}):null}(t);e&&n.push(e)}return n},a_=(e,t)=>{let n,r;try{n=aI.configure({strict:!0,top:t?"Nested":"Root"}).parse(e)}catch(e){return null}let i=[],o=new Map;function s(t){return e.substring(t.from,t.to)}function a(t){var n;if(!e.substring(t.position.start,t.position.end).includes(`
2`)){if("tagOpen"===t.type){let e=null!=(n=o.get(t.name))?n:[];e.push(t),o.set(t.name,e)}else if("tagClose"===t.type){let e=o.get(t.name);e?(e.pop(),0===e.length&&o.delete(t.name)):t.error="missing_open_tag"}i.push(t)}}
2let l=n.cursor();do{let e=l.node;switch(r=!0,e.type.id){case 17:a({name:"#",type:"hash",position:{start:l.from,end:l.to},normalizedValue:"#"}),r=!1;break;case 4:{let t=e.firstChild.nextSibling;(null==t?void 0:t.type.id)===7&&a(function(e){let t=e.parent,n="",r,i=[];(function(e){let t=[],n=e.firstChild;for(;n;)t.push(n),n=n.nextSibling;return t})(e).forEach(e=>{let t=s(e);switch(e.type.id){case 8:n=t;break;case 9:r=t;break;case 10:i.push(t)}});let o=["{",n];return r&&(o.push(", "),o.push(r)),i.length&&o.push(`, ${i.join(" ")}`),o.push("}"),{position:{start:t.from,end:t.to},type:"variable",name:n,normalizedValue:o.join("")}}(t)),r=!1;break}case 1:case 2:aL(s(e)).forEach(t=>a(function(e){let t;return{position:e.position,type:"open"===e.type?"tagOpen":"close"===e.type?"tagClose":"tagSelfClosed",name:e.name,normalizedValue:(t="<","close"===e.type&&(t+="/"),t+=e.name,Object.entries(e.params).forEach(([e,n])=>{t+=` ${e}`,!0!==n&&(t+=`=${n}`)}),"self-closed"===e.type?t+=" />":t+=">",t)}}(et(ee({},t),{position:{start:t.position.start+e.from,end:t.position.end+e.from}})))),r=!1}}while(l.next(r));return o.forEach(e=>e.forEach(e=>{e.error="missing_close_tag"})),i};class aB extends rD{constructor(e,t){super(),this.value=e,this.examplePluralNum=t}toDOM(){var e;let t=document.createElement("span"),n=`placeholder-widget placeholder-${this.value.type}`;this.value.error&&(n+=` placeholder-error placeholder-error-${this.value.error}`),t.className=n;let r=document.createElement("span");return r.textContent="hash"!==this.value.type?this.value.name:`#${null!=(e=this.examplePluralNum)?e:""}`,t.appendChild(r),t}}function aV(e,t,n){let r=a_(e,n);return null===r?null:r.filter(e=>{if(t){let[n]=t;if(n>e.position.start&&n<e.position.end)return!1}return!0})}function aW(e,t){let n=new nO;return e.forEach(e=>{n.add(e.position.start,e.position.end,rN.widget({widget:new aB(e,t),side:1}))}),n.finish()}function aq(e,t){let n=e;return t.iterChanges((e,t,r,i)=>{n=function(e,t,n,r,i){let o=i-r-(n-t);return e.filter(e=>(!(t<e.position.end)||!(n>e.position.start))&&(n<e.position.start&&(e.position.start+=o,e.position.end+=o),!0))}(n,e,t,r,i)}),n}let aJ=e=>{let{noUpdates:t,allowedNewPlaceholders:n,nested:r,tooltips:i}=e;return t1.define({create(e){try{return aV(e.doc.toString(),void 0,r)||[]}catch(e){return[]}},update(e,i){if(t)return aq(e,i.changes);if(i.docChanged&&!t){let t;i.changes.iterChanges((e,n,r,i)=>{i-r-(n-e)<=1&&(t=[r,i])});let o=aV(i.state.doc.toString(),t,r);return null===o?aq(e,i.changes):n?aq(e,i.changes).filter(t=>!!(e.find(e=>e.name===t.name&&e.type===t.type&&e.position.start==e.position.start&&e.position.end==e.position.end)||n.find(e=>e.name===t.name&&e.type==e.type))):o}return e},provide(t){let n=[ix.fromClass(class{constructor(n){sB(this,"decorationSet"),this.decorationSet=aW(n.state.field(t),null==e?void 0:e.examplePluralNum)}update(n){this.decorationSet=aW(n.state.field(t),null==e?void 0:e.examplePluralNum)}},{decorations:e=>e.decorationSet,provide:e=>oY.atomicRanges.of(t=>{var n;return(null==(n=t.plugin(e))?void 0:n.decorationSet)||rN.none})})];return i&&n.push(function(e,t={}){let n=nh.define(),r=t1.define({create:()=>[],update(e,r){if(e.length&&(t.hideOnChange&&(r.docChanged||r.selection)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(r,e))),r.docChanged)){let t=[];for(let n of e){let e=r.changes.mapPos(n.pos,-1,tI.TrackDel);if(null!=e){let i=Object.assign(Object.create(null),n);i.pos=e,null!=i.end&&(i.end=r.changes.mapPos(i.end)),t.push(i)}}e=t}for(let t of r.effects)t.is(n)&&(e=t.value),t.is(sF)&&(e=[]);return e},provide:e=>sP.from(e)});return{active:r,extension:[r,ix.define(i=>new sN(i,e,r,n,t.hoverTime||300)),sI]}}((e,n,r)=>{let i=e.state.field(t).find(({position:e})=>n===e.start&&r>0);return i?{pos:i.position.start,end:i.position.end,create(){let e=document.createElement("div");return e.textContent=i.normalizedValue,{dom:e}}}:null})),n}})},aH=0;class aK{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=aH++}static define(e){if(null!=e&&e.base)throw Error("Can not derive from a modified tag");let t=new aK([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new aQ;return t=>t.modified.indexOf(e)>-1?t:aQ.get(t.base||t,t.modified.concat(e).sort((e,t)=>
2e.id-t.id))}}let aG=0;class aQ{constructor(){this.instances=[],this.id=aG++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var r;return n.base==e&&(r=n.modified,t.length==r.length&&t.every((e,t)=>e==r[t]))});if(n)return n;let r=[],i=new aK(r,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)r.push(aQ.get(t,e));return i}}function aX(e){let t=Object.create(null);for(let n in e){let r=e[n];for(let e of(Array.isArray(r)||(r=[r]),n.split(" ")))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(t+=r[0].length)==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw RangeError("Invalid path: "+e);let l=new aZ(r,i,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return aY.add(t)}let aY=new sq;class aZ{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function a0(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}aZ.empty=new aZ([],2,null);class a1{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:o,from:s,to:a}=e;if(s>=n||a<=t)return;o.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(o)));let l=r,u=function(e){let t=e.type.prop(aY);for(;t&&t.context&&!e.matchContext(t.context);
2)t=t.next;return t||null}(e)||aZ.empty,c=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(i,u.tags);if(c&&(l&&(l+=" "),l+=c,1==u.mode&&(r+=(r?" ":"")+c)),this.startSpan(Math.max(t,s),l),u.opaque)return;let h=e.tree&&e.tree.prop(sq.mounted);if(h&&h.overlay){let o=e.node.enter(h.overlay[0].from+s,1),u=this.highlighters.filter(e=>!e.scope||e.scope(h.tree.type)),c=e.firstChild();for(let d=0,f=s;;d++){let p=d<h.overlay.length?h.overlay[d]:null,m=p?p.from+s:a,g=Math.max(t,f),v=Math.min(n,m);if(g<v&&c)for(;e.from<v&&(this.highlightRange(e,g,v,r,i),this.startSpan(Math.min(v,e.to),l),!(e.to>=m||!e.nextSibling())););if(!p||m>n)break;(f=p.to+s)>t&&(this.highlightRange(o.cursor(),Math.max(t,p.from+s),Math.min(n,f),"",u),this.startSpan(Math.min(n,f),l))}c&&e.parent()}else if(e.firstChild()){h&&(r="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),l)}while(e.nextSibling());e.parent()}}}let a2=aK.define,a3=a2(),a4=a2(),a5=a2(a4),a6=a2(a4),a8=a2(),a9=a2(a8),a7=a2(a8),le=a2(),lt=a2(le),ln=a2(),lr=a2(),li=a2(),lo=a2(li),ls=a2(),la={comment:a3,lineComment:a2(a3),blockComment:a2(a3),docComment:a2(a3),name:a4,variableName:a2(a4),typeName:a5,tagName:a2(a5),propertyName:a6,attributeName:a2(a6),className:a2(a4),labelName:a2(a4),namespace:a2(a4),macroName:a2(a4),literal:a8,string:a9,docString:a2(a9),character:a2(a9),attributeValue:a2(a9),number:a7,integer:a2(a7),float:a2(a7),bool:a2(a8),regexp:a2(a8),escape:a2(a8),color:a2(a8),url:a2(a8),keyword:ln,self:a2(ln),null:a2(ln),atom:a2(ln),unit:a2(ln),modifier:a2(ln),operatorKeyword:a2(ln),controlKeyword:a2(ln),definitionKeyword:a2(ln),moduleKeyword:a2(ln),operator:lr,derefOperator:a2(lr),arithmeticOperator:a2(lr),logicOperator:a2(lr),bitwiseOperator:a2(lr),compareOperator:a2(lr),updateOperator:a2(lr),definitionOperator:a2(lr),typeOperator:a2(lr),controlOperator:a2(lr),punctuation:li,separator:a2(li),bracket:lo,angleBracket:a2(lo),squareBracket:a2(lo),paren:a2(lo),brace:a2(lo),content:le,heading:lt,heading1:a2(lt),heading2:a2(lt),heading3:a2(lt),heading4:a2(lt),heading5:a2(lt),heading6:a2(lt),contentSeparator:a2(le),list:a2(le),quote:a2(le),emphasis:a2(le),strong:a2(le),link:a2(le),monospace:a2(le),strikethrough:a2(le),inserted:a2(),deleted:a2(),changed:a2(),invalid:a2(),meta:ls,documentMeta:a2(ls),annotation:a2(ls),processingInstruction:a2(ls),definition:aK.defineModifier(),constant:aK.defineModifier(),function:aK.defineModifier(),standard:aK.defineModifier(),local:aK.defineModifier(),special:aK.defineModifier()};a0([{tag:la.link,class:"tok-link"},{tag:la.heading,class:"tok-heading"},{tag:la.emphasis,class:"tok-emphasis"},{tag:la.strong,class:"tok-strong"},{tag:la.keyword,class:"tok-keyword"},{tag:la.atom,class:"tok-atom"},{tag:la.bool,class:"tok-bool"},{tag:la.url,class:"tok-url"},{tag:la.labelName,class:"tok-labelName"},{tag:la.inserted,class:"tok-inserted"},{tag:la.deleted,class:"tok-deleted"},{tag:la.literal,class:"tok-literal"},{tag:la.string,class:"tok-string"},{tag:la.number,class:"tok-number"},{tag:[la.regexp,la.escape,la.special(la.string)],class:"tok-string2"},{tag:la.variableName,class:"tok-variableName"},{tag:la.local(la.variableName),class:"tok-variableName tok-local"},{tag:la.definition(la.variableName),class:"tok-variableName tok-definition"},{tag:la.special(la.variableName),class:"tok-variableName2"},{tag:la.definition(la.propertyName),class:"tok-propertyName tok-definition"},{tag:la.typeName,class:"tok-typeName"},{tag:la.namespace,class:"tok-namespace"},{tag:la.className,class:"tok-className"},{tag:la.macroName,class:"tok-macroName"},{tag:la.propertyName,class:"tok-propertyName"},{tag:la.operator,class:"tok-operator"},{tag:la.comment,class:"tok-comment"},{tag:la.meta,class:"tok-meta"},{tag:la.invalid,class:"tok-invalid"},{tag:la.punctuation,class:"tok-punctuation"}]);let ll=typeof Symbol>"u"?"__ͼ":Symbol.for("ͼ"),lu=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),lc="u">typeof globalThis?globalThis:"u">typeof window?window:{};class lh{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(let t in e)!function e(t,i,o,s){let a=[],l=/^@(\w+)\b/.exec(t[0]),u=l&&"keyframes"==l[1];if(l&&null==i)return o.push(t[0]+";");for(let n in i){let s=i[n];if(/&/.test(n))e(n.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((e,t)=>
vendor: 6,829 bytes, lines 2-4
2e.concat(t)),s,o);else if(s&&"object"==typeof s){if(!l)throw RangeError("The value of a property ("+n+") should be a primitive value.");e(r(n),s,a,u)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+s+";")}(a.length||u)&&o.push((!n||l||s?t:t.map(n)).join(", ")+" {"+a.join(" ")+"}")}(r(t),e[t],this.rules)}getRules(){return this.rules.join(`
3`)}static newName(){let e=lc[ll]||1;return lc[ll]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[lu],i=n&&n.nonce;r?i&&r.setNonce(i):r=new lf(e,i),r.mount(Array.isArray(t)?t:[t])}}let ld=new Map;class lf{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=ld.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[lu]=t;this.sheet=new r.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],ld.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let r=e.head||e;r.insertBefore(this.styleTag,r.firstChild)}this.modules=[],e[lu]=this}mount(e){let t=this.sheet,n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i],s=this.modules.indexOf(o);if(s<r&&s>-1&&(this.modules.splice(s,1),r--,s=-1),-1==s){if(this.modules.splice(r++,0,o),t)for(let e=0;e<o.rules.length;e++)t.insertRule(o.rules[e],n++)}else{for(;r<s;)n+=this.modules[r++].rules.length;n+=o.rules.length,r++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+`
4`;this.styleTag.textContent=e}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}let lp=new sq,lm=new sq;class lg{constructor(e,t,n=[],r=""){this.data=e,this.name=r,nb.prototype.hasOwnProperty("tree")||Object.defineProperty(nb.prototype,"tree",{get(){return lb(this)}}),this.parser=t,this.extension=[lU.of(this),nb.languageData.of((e,t,n)=>{let r=lv(e,t,n),i=r.type.prop(lp);if(!i)return[];let o=e.facet(i),s=r.type.prop(lm);if(s){let i=r.resolve(t-r.from,n);for(let t of s)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o})].concat(n)}isActiveAt(e,t,n=-1){return lv(e,t,n).type.prop(lp)==this.data}findRegions(e){let t=e.facet(lU);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(lp)==this.data){n.push({from:t,to:t+e.length});return}let i=e.prop(sq.mounted);if(i){if(i.tree.prop(lp)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let i=e.children[n];i instanceof sY&&r(i,e.positions[n]+t)}};return r(lb(e),0),n}get allowsNesting(){return!0}}function lv(e,t,n){let r=e.facet(lU),i=lb(e).topNode;if(!r||r.allowsNesting)for(let e=i;e;e=e.enter(t,n,T.ExcludeBuffers))e.type.isTop&&(i=e);return i}lg.setState=nh.define();class ly extends lg{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){var t;let n=(t=e.languageData,tG.define({combine:t?e=>e.concat(t):void 0}));return new ly(n,e.parser.configure({props:[lp.add(e=>e.isTop?n:void 0)]}),e.name)}configure(e,t){return new ly(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function lb(e){let t=e.field(lg.state,!1);return t?t.tree:sY.empty}class lx{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let lw=null;class lk{constructor(e,t,n=[],r,i,o,s,a){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new lk(e,t,[],sY.empty,0,n,[],null)}startParse(){return this.parser.startParse(new lx(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=sY.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(as.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(as.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=lw;lw=this;try{return e()}finally{lw=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=lS(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=as.applyChanges(n,t),r=sY.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length)for(let t of(s=[],this.skipped)){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&s.push({from:n,to:r})}}return new lk(this.parser,t,n,r,i,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=lS(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends aa{createParse(t,n,r){let i=r[0].from,o=r[r.length-1].to;return{parsedPos:i,advance(){let t=lw;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new sY(sK.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return lw}}
4function lS(e,t,n){return as.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class l${constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new l$(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=lk.create(e.facet(lU).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new l$(n)}}lg.state=t1.define({create:l$.init,update(e,t){for(let e of t.effects)if(e.is(lg.setState))return e.value;return t.startState.facet(lU)!=t.state.facet(lU)?l$.init(t.state):e.apply(t)}});let lj=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"u">typeof requestIdleCallback&&(lj=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let lO="u">typeof navigator&&!(null===(R=navigator.scheduling)||void 0===R)&&R.isInputPending?()=>navigator.scheduling.isInputPending():null,lC=ix.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(lg.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(lg.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=lj(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(lg.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!lO?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work(()=>lO&&lO()||Date.now()>o,r+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:lg.setState.of(new l$(i.context))})),this.chunkBudget>0&&!(a&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>ig(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),lU=tG.define({combine:e=>e.length?e[0]:null,enables:e=>[lg.state,lC,oY.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class lE{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class lT{constructor(e,t){let n;function r(e){let t=lh.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;let i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof lg?e=>e.prop(lp)==o.data:o?e=>e==o:void 0,this.style=a0(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new lh(n):null,this.themeType=t.themeType}static define(e,t){return new lT(e,t||{})}}let lR=tG.define(),lA=tG.define({combine:e=>e.length?[e[0]]:null});function lM(e){let t=e.facet(lR);return t.length?t:e.facet(lA)}class lP{constructor(e){this.markCache=Object.create(null),this.tree=lb(e.state),this.decorations=this.buildDeco(e,lM(e.state))}update(e){let t=lb(e.state),n=lM(e.state),r=n!=lM(e.startState);t.length<e.view.viewport.to&&!r&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n))}buildDeco(e,t){if(!t||!this.tree.length)return rN.none;let n=new nO;for(let{from:r,to:i}of e.visibleRanges)!function(e,t,n,r=0,i=e.length){let o=new a1(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=rN.mark({class:r})))},r,i);return n.finish()}}let lD=t4.high(ix.fromClass(lP,{decorations:e=>e.decorations})),lI=Object.create(null),lN=[sK.none],lF=[],lz=Object.create(null),lL=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invali
4d"],["header","heading"],["property","propertyName"]])lL[e]=function(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||la[n];r?"function"==typeof r?t.length?t=t.map(r):l_(n,`Modifier ${n} used at start of tag`):t.length?l_(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:l_(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(e=>e.id),o=lz[i];if(o)return o.id;let s=lz[i]=sK.define({id:lN.length,name:r,props:[aX({[r]:n})]});return lN.push(s),s.id}(lI,t);function l_(e,t){lF.indexOf(e)>-1||(lF.push(e),console.warn(t))}let lB=e=>ly.define({name:"icu-tolgee",parser:aI.configure({top:e?"Nested":"Root",props:[aX({TextRoot:la.string,Text:la.string,PluralPlaceholder:la.keyword,VariantDescriptor:la.keyword,FormatFunction:la.keyword,SelectFunction:la.keyword,Param:la.variableName,FormatStyle:la.variableName,"{ }":la.paren,Sep:la.separator,"< >":la.tagName,Slash:la.tagName,TagName:la.tagName})]})}),lV=e=>{var t;let n,r;return t=lT.define([{tag:la.variableName,color:e.other},{tag:la.keyword,color:e.function},{tag:la.bracket,color:e.other},{tag:la.tagName,color:e.other},{tag:la.content,color:e.main},{tag:la.string,color:e.main}]),n=[lD],t instanceof lT&&(t.module&&n.push(oY.styleModule.of(t.module)),r=t.themeType),r?n.push(lR.computeN([oY.darkTheme],e=>e.facet(oY.darkTheme)==("dark"==r)?[t]:[])):n.push(lR.of(t)),n};ix.fromClass(class{constructor(e){sB(this,"isolates"),sB(this,"tree"),this.isolates=lJ(e),this.tree=lb(e.state)}update(e){(e.docChanged||e.viewportChanged||lb(e.state)!=this.tree)&&(this.isolates=lJ(e.view),this.tree=lb(e.state))}},{provide:e=>{function t(t){var n,r;return null!=(n=null==(r=t.plugin(e))?void 0:r.isolates)?n:rN.none}return t4.lowest([oY.decorations.of(t),oY.bidiIsolatedRanges.of(t)])}});let lW=rN.mark({attributes:{style:"direction: ltr; unicode-bidi: isolate"},bidiIsolate:rG.LTR}),lq=rN.mark({attributes:{style:"direction: rtl; unicode-bidi: isolate"},bidiIsolate:rG.RTL});function lJ(e){let t=new nO;for(let{from:n,to:r}of e.visibleRanges)lb(e.state).iterate({from:n,to:r,enter(e){("HtmlTagOpen"===e.name||"HtmlTagClose"===e.name||"Expression"===e.name)&&t.add(e.from,e.to,lW),("TextRoot"===e.name||"Text"===e.name)&&t.add(e.from,e.to,lq)}});return t.finish()}let lH={variable:{border:"#7AD3C1",background:"#BEF3E9",text:"#008371"},tag:{border:"#F27FA6",background:"#F9C4D6",text:"#822343"},variant:{border:"#BBC2CB",background:"#F0F2F4",text:"#4D5B6E"}},lK=({styled:e,colors:t=lH,component:n="div"})=>e(n)`
5    white-space: pre-wrap;
6    & .placeholder-widget {
7      display: inline-flex;
8      vertical-align: text-top;
9      align-items: center;
10      justify-content: center;
11      min-width: 15px;
12      border: 1px solid ${t.variable.border};
13      background-color: ${t.variable.background};
14      color: ${t.variable.text};
15      border-radius: 10px;
16      padding: 0px 7px;
17      font-size: 12px;
18      user-select: none;
19      margin: 0px 1px;
20      overflow: hidden;
21
22      & > * {
23        display: grid;
24      }
25    }
26    & .placeholder-error {
27      background: #ff000054;
28    }
29
30    & .placeholder-tagOpen {
31      border: 1px solid ${t.tag.border};
32      background-color: ${t.tag.background};
33      color: ${t.tag.text};
34      border-radius: 10px 0px 0px 10px;
35      padding-right: 6px;
36    }
37
38    & .placeholder-tagClose {
39      border: 1px solid ${t.tag.border};
40      background-color: ${t.tag.background};
41      color: ${t.tag.text};
42      border-radius: 0px 10px 10px 0px;
43      padding-left: 6px;
44    }
45
46    & .placeholder-tagSelfClosed {
47      border: 1px solid ${t.tag.border};
48      background-color: ${t.tag.background};
49      color: ${t.tag.text};
50    }
51
52    // in rtl mode, revert the placeholders direction
53    &[dir="rtl"] .placeholder-tagOpen {
54      border-radius: 0px 10px 10px 0px;
55      padding-left: 6px;
56    }
57    &[dir="rtl"] .placeholder-tagClose {
58      border-radius: 10px 0px 0px 10px;
59      padding-right: 6px;
60    }
61  `,lG=e=>/^[^\p{White_Space}\p{Pattern_Syntax}]*$/uy.test(e),lQ=new Set(["{","}","#"]),lX=e=>{let t=0,n=[];for(let r of e)switch(t){case 0:"'"===r?(n.push(r),t=1):lQ.has(r)?(n.push("'"),n.push(r),t=2):n.push(r);break;case 1:lQ.has(r)?(n.push("'"),n.push("'"),n.push(r),t=2):("'"===r?(n.push("'"),n.push(r),n.push("'")):n.push(r),t=0);break;case 2:lQ.has(r)?n.push(r):"'"===r?(n.push("'"),n.push("'")):(n.push("'"),n.push(r),t=0)}return[1,2].includes(t)&&n.push("'"),n.join("")},lY=new Set(["{","}","#"]),lZ=new Set(["{","}"]),l0=e=>{let t,n=0,r=[];for(let i of e)switch(n){case 0:"'"===i?n=2:lZ.has(i)&&(r.push("'"),t=r.length,n=3),r.push(i);break;case 2:lY.has(i)?(t=r.length,n=1):n=0,r.push(i);break;case 1:"'"===i?n=4:lY.has(i)&&(t=r.length),r.push(i);break;case 4:"'"===i?(n=1,r.push("'")):(r.push(i),n=0);break;case 3:"'"===i?n=5:lZ.has(i)&&(t=r.length),r.push(i);break;case 5:"'"===i?(n=1,r.push("'")):(r.splice(t+1,0,"'"),r.push(i),n=0)}return[1,3].includes(n)?r.splice(t+1,0,"'"):2===n&&r.push("'"),r.join("")},l1=(e,t)=>{var n,r;let{parameter:i,variants:o}=e;if(!i)return null!=(n=o.other)?n:"";if(!lG(i))throw Error(`Parameter name "${i}
61" is invalid`);let s=[`{${i}, plural,`];o.other||(o.other="");let a=!0;for(let[e,n]of Object.entries(o)){let o=n||"";if(a&&o&&(a=!1),t)s.push(` ${e} {${lX(o)}}`);else try{r=`{${i}, plural, other {${o}}}`,aI.configure({strict:!0}).parse(r),s.push(` ${e} {${o}}`)}catch(t){s.push(` ${e} {${l0(o)}}`)}}return a?"":(s.push("}"),s.join(""))},l2=new Set(["{","}","#"]),l3=e=>{let t=0,n=[];for(let r of e)switch(t){case 0:"'"===r?t=1:n.push(r);break;case 1:l2.has(r)?t=2:("'"===r||n.push("'"),t=0),n.push(r);break;case 2:"'"===r?t=3:n.push(r);break;case 3:"'"===r?(t=2,n.push("'")):(n.push(r),t=0)}return 1===t&&n.push("'"),n.join("")},l4={0:4,4:8,5:12,6:14};function l5(e,t){return t.substring(e.from,e.to)}function l6(e){return{variants:{other:e}}}let l8=(e,t)=>{let n;try{n=aI.configure({strict:!0}).parse(e)}catch(t){return l6(e)}let r=n.cursor(),i={},o={},s=Object.keys(l4),a=Number(s[s.length-1]);for(let t=0;t<=a;t++){r.next();let n=r.node,o=l4[t];if(void 0!==o){if(o!==n.type.id)return l6(e);i[n.type.id]=n}}if(i[4].nextSibling||"plural"!==l5(i[12],e))return l6(e);let l=i[14];do{let n=l5(l.firstChild,e),r=function(e,t,n){let r=e.firstChild;do if((null==r?void 0:r.type.id)===16)return n?l3(l5(r,t)):l5(r,t);while(r=null==r?void 0:r.nextSibling);return""}(l,e,t);if(void 0!==o[n])return l6(e);o[n]=r}while(l=l.nextSibling);return{parameter:l5(i[8],e),variants:o}},l9=(e,t,n)=>t?l8(e||"",n):{variants:{other:e}},l7=["zero","one","two","few","many","other"],ue=e=>{try{return new Intl.PluralRules(e).resolvedOptions().pluralCategories}catch(e){return l7}},ut=(e,t)=>{try{return new Intl.PluralRules(e).select(t)}catch(e){return"other"}},un=[6,7,8,11,20,21,1e6,.5,.1,0],ur=[0,2,3,4,6],ui=[10,11,20,100,0,0,.1,2,3,4],uo=["zero","one","two","few","many","other"],us=e=>{let t=new Set(ue(e));return uo.filter(e=>t.has(e))},ua=(e,t,n)=>n.find(n=>ut(t,n)===e),ul=(e,t)=>{switch(t){case"zero":return ua("zero",e,[0]);case"one":return ua("one",e,[1]);case"two":return ua("two",e,[2]);case"few":return ua("few",e,ur);case"many":return ua("many",e,un);case"other":return ua("other",e,ui)}let n=Number(t.substring(1));return Number.isNaN(n)?void 0:n},uu=e=>["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","ur","yi"].indexOf(e.replace(/^([a-zA-Z]+)(.*?)$/,"$1"))>-1?"rtl":"ltr";function uc({text:e,nested:t}){if(!e)return 0;let n=a_(e,t);if(!n)return e.length;let r=n.reduce((e,t)=>e+(t.position.end-t.position.start),0);return e.length-r}let uh=e=>new Promise(t=>setTimeout(t,e));var ud={exports:{}},uf={};ud.exports=(A||(A=1,function(e){function t(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,o=e[r];if(0<i(o,t))e[r]=t,e[n]=o,n=r;else break}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else if(u<o&&0>i(c,n))e[r]=c,e[u]=n,r=u;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o,s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],h=1,d=null,f=3,p=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var i=n(c);null!==i;){if(null===i.callback)r(c);else if(i.startTime<=e)r(c),i.sortIndex=i.expirationTime,t(u,i);else break;i=n(c)}}function w(e){if(g=!1,x(e),!m){if(null!==n(u))m=!0,T();else{var t=n(c);null!==t&&R(w,t.startTime-e)}}}var k=!1,S=-1,$=5,j=-1;function O(){return!(e.unstable_now()-j<$)}function C(){if(k){var t=e.unstable_now();j=t;var i=!0;try{e:{m=!1,g&&(g=!1,y(S),S=-1),p=!0;var s=f;try{t:{for(x(t),d=n(u);null!==d&&!(d.expirationTime>t&&O());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var l=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){d.callback=l,x(t),i=!0;break t}d===n(u)&&r(u),x(t)}else r(u);d=n(u)}if(null!==d)i=!0;else{var h=n(c);null!==h&&R(w,h.startTime-t),i=!1}}break e}finally{d=null,f=s,p=!1}i=void 0}}finally{i?o():k=!1}}}if("function"==typeof b)o=function(){b(C)};else if("undefined"!=typeof MessageChannel){var U=new MessageChannel,E=U.port2;U.port1.onmessage=C,o=function(){E.postMessage(null)}}else o=function(){v(C,0)};function T(){k||(k=!0,o())}function R(t,n){S=v(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,T())},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,o){var s=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,r){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=o+a,r={id:h++,callback:i,priorityLevel:r,startTime:o,expirationTime:a,sortIndex:-1},o>s?(r.sortIndex=o,t(c,r),null===n(u)&&r===n(c)&&(g?(y(S),S=-1):g=!0,R(w,o-s))):(r.sortIndex=a,t(u,r),m||p||(m=!0,T())),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(uf)),uf);var up=ud.exports;let um=Symbol(),ug=Symbol(),uv="undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?em.useEffect:em.useLayoutEffect,uy=up.unstable_runWithPriority?e=>{try{up.unstable_runWithPriority(up.unstable_NormalPriority,e)}catch(t){if("Not implemented."===t.message)e();else throw t}}:e=>e(),ub=e=>({value:t,children:n})=>{let r=em.useRef(t),i=em.useRef(0),[o,s]=em.useState(null);o&&(o(t),s(null));let a=em.useRef();if(!a.current){let e=new Set;a.current={[um]:{v:r,n:i,l:e,u:(t,n)=>{tn.unstable_batchedUpdates(()=>{i.current+=1;let r={n:i.current};null!=n&&n.suspense&&(r.n*=-1,r.p=new Promise(e=>{s(()=>t=>{r.v=t,delete r.p,e(t)})}
61)),e.forEach(e=>e(r)),t()})}}}}return uv(()=>{r.current=t,i.current+=1,uy(()=>{a.current[um].l.forEach(e=>{e({n:i.current,v:t})})})},[t]),em.createElement(e,{value:a.current},n)},ux=e=>{let t=null==e?void 0:e.find(e=>e.base);return t?[t,...(e||[]).filter(e=>e!==t)]:e},uw=(e,t)=>t&&e.includes(t)?[t,...e.filter(e=>e!==t)]:e;function uk(e){return"string"==typeof e?[e]:Array.isArray(e)?e:void 0}let uS=(e,t)=>fetch(e,t);function u$(e){if(e)try{let[t,n]=e.split("_");if("tgpak"===t){let[e]=(function(e){let t=(e=e.toUpperCase()).length,n=0,r=0,i=0,o=new Uint8Array(5*t/8|0);for(let s=0;s<t;s++)r=r<<5|function(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".indexOf(e);if(-1===t)throw Error("Invalid character found: "+e);return t}(e[s]),(n+=5)>=8&&(o[i++]=r>>>n-8&255,n-=8);return function(e){let t=new Uint8Array(e),n=t.length,r="",i=65535;for(let e=0;e<n;e+=i)e+i>n&&(i=n-e),r+=String.fromCharCode.apply(null,t.subarray(e,e+i));return r}(o.buffer)})(n).split("_");return Number(e)}}catch(e){console.warn("Tolgee: Api key can't be parsed")}}class uj extends Error{constructor(e,t,n){super(t?`${t}: ${e}`:e),this.code=e,this.status=t,this.params=n,Object.setPrototypeOf(this,uj.prototype)}}function uO(...e){let t=function(...e){let t=e[0];return e.slice(1).forEach(e=>{var n,r;n=t,r=e,n=n.replace(/\/+$/,""),r=r.replace(/^\/+/,""),t=`${n}/${r}`}),t}(...e);try{let e="undefined"==typeof window?void 0:window.location.origin;return new URL(t,e)}catch(e){return new URL(t)}}let uC=(e,t)=>(null==t?void 0:t.code)?new uj(t.code,e,t.params):new uj("fetch_error",e),uU=((e=uS)=>(t,n)=>{let r=Object.fromEntries(new Headers(null==n?void 0:n.headers).entries());return r["x-api-key"]&&(r=Object.assign({"x-tolgee-sdk-type":"JS","x-tolgee-sdk-version":"prerelease"},r)),e(t,Object.assign(Object.assign({},n),{headers:r}))})();async function uE(e){let t=await e.text();try{if(t)return JSON.parse(t)}catch(e){throw new uj("fetch_error")}}let uT=e=>e?Object.entries(e).reduce((e,[t,n])=>Array.isArray(n)||"object"!=typeof n?et(ee({},e),{[t]:n}):ee(ee({},e),uT(n)),{}):{};async function uR(e,t,n){if(void 0===t.apiUrl)throw new uj("api_url_not_specified");if(!function(e){try{return uO(e) instanceof URL}catch(e){return!1}}(t.apiUrl))throw new uj("api_url_not_valid");if(void 0===t.apiKey)throw new uj("api_key_not_specified");return(n=n||{}).headers=n.headers||{},n.headers=et(ee({},n.headers),{"X-API-Key":t.apiKey}),uU(uO(t.apiUrl,e.toString()).toString(),n).then(async e=>{if(!e.ok){let t=await uE(e);throw uC(e.status,t)}let t=await uE(e);return"object"==typeof t&&null!==t&&(t._internal={version:e.headers.get("X-Tolgee-Version")}),t})}let uA=e=>e.replace("/projects/","/projects/{projectId}/");async function uM(e,t,n,r){var i,o,s;let a;let l=(null==n?void 0:n.path)||{},u=e,c=u$(r.apiKey)||r.projectId;void 0!==c&&(l.projectId=c,u=uA(u)),l&&Object.entries(l).forEach(([e,t])=>{u=u.replace(`{${e}}`,t)});let h=null==(i=null==n?void 0:n.content)?void 0:i["multipart/form-data"];h&&(a=new FormData,Object.entries(h).forEach(([e,t])=>{if(Array.isArray(t)){let n;"[object File]"===Object.prototype.toString.call(t)&&(n=t.name),t.forEach(t=>null==a?void 0:a.append(e,t,n));return}null==a||a.append(e,t)}));let d=JSON.stringify(null==(o=null==n?void 0:n.content)?void 0:o["application/json"]),f=null==n?void 0:n.query,p="",m=Object.keys(s=uT(f)).filter(e=>!!s[e]).map(e=>Array.isArray(s[e])?s[e].map(t=>encodeURIComponent(e)+"="+encodeURIComponent(t)).join("&"):encodeURIComponent(e)+"="+encodeURIComponent(s[e])).join("&");return m&&(p="?"+m),uR(u+p,r,{method:t,body:a||d,headers:d?{"Content-Type":"application/json"}:void 0})}let uP=e=>{let{url:t,method:n,options:r}=e,i=en(e,["url","method","options"]),o=em.useContext(tf);return function(e,t){var n=eg.useRef(!1),r=eg.useState(0)[1],i=tl(),o=eg.useContext(tc),s=i.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=eH.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=eH.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=eH.batchCalls(s.onSettled)),s.suspense&&("number"!=typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&!o.isReset()&&(s.retryOnMount=!1);var a=eg.useState(function(){return new t(i,s)})[0],l=a.getOptimisticResult(s);if(eg.useEffect(function(){n.current=!0,o.clearReset();var e=a.subscribe(eH.batchCalls(function(){n.current&&r(function(e){return e+1})}));return a.updateResult(),function(){n.current=!1,e()}},[o,a]),eg.useEffect(function(){a.setOptions(s,{listeners:!1})},[s,a]),s.suspense&&l.isLoading)throw a.fetchOptimistic(s).then(function(e){var t=e.data;null==s.onSuccess||s.onSuccess(t),null==s.onSettled||s.onSettled(t,null)}
61).catch(function(e){o.clearReset(),null==s.onError||s.onError(e),null==s.onSettled||s.onSettled(void 0,e)});if(l.isError&&!o.isReset()&&!l.isFetching&&th(s.suspense,s.useErrorBoundary,[l.error,a.getCurrentQuery()]))throw l.error;return"tracked"===s.notifyOnChangeProps&&(l=a.trackResult(l,s)),l}(eC([t,null==i?void 0:i.path,null==i?void 0:i.query],()=>uM(t,n,i,o),r),e2)},uD=e=>{let t=tl(),{url:n,method:r,options:i,invalidatePrefix:o}=e,s=em.useContext(tf),a=function(e,t,n){var r,i=eg.useRef(!1),o=eg.useState(0)[1],s=(r=void 0,eN(e)?"function"==typeof t?ew({},r,{mutationKey:e,mutationFn:t}):ew({},t,{mutationKey:e}):"function"==typeof e?ew({},t,{mutationFn:e}):ew({},e)),a=tl(),l=eg.useRef();l.current?l.current.setOptions(s):l.current=new e8(a,s);var u=l.current.getCurrentResult();eg.useEffect(function(){i.current=!0;var e=l.current.subscribe(eH.batchCalls(function(){i.current&&o(function(e){return e+1})}));return function(){i.current=!1,e()}},[]);var c=eg.useCallback(function(e,t){l.current.mutate(e,t).catch(eS)},[]);if(u.error&&th(void 0,l.current.options.useErrorBoundary,[u.error]))throw u.error;return ew({},u,{mutate:c,mutateAsync:u.mutate})}(e=>uM(n,r,e,s),i),l=e=>et(ee({},e),{onSuccess:(...n)=>{var r;void 0!==o&&uN(t,o),null==(r=null==e?void 0:e.onSuccess)||r.call(e,...n)}}),u=em.useCallback((e,t)=>a.mutate(e,l(t)),[a.mutate]),c=em.useCallback((e,t)=>a.mutateAsync(e,l(t)),[a.mutateAsync]);return et(ee({},a),{mutate:u,mutateAsync:c})},uI=e=>({predicate:t=>{var n;return null==(n=t.queryKey[0])?void 0:n.startsWith(e)}}),uN=(e,t)=>e.invalidateQueries(uI(t)),uF="__tolgee_dev_tools",uz="__tolgee_preferredLanguages",uL="data-tolgee-key-only",u_="data-tolgee-restricted",uB="_tolgee";function uV(){try{return JSON.parse(localStorage.getItem(uz)||"")}catch(e){return[]}}function uW(e){localStorage.setItem(uz,JSON.stringify(e))}let uq=(e,t,n,r)=>{let i=n.map(([n,i])=>r({language:n,namespace:t},e,i||void 0));return{revert:()=>i.forEach(e=>e.revert())}};function uJ({position:e}){return{x:e.x,y:e.y,width:e.width,height:e.height}}function uH(e){return new Promise(t=>{let n=document.createElement("img");n.src=e,n.onload=function(){t({width:n.width,height:n.height})}})}function uK({message:e,recievingMessage:t,data:n,attempts:r=1,timeout:i=300}){let o=!1,s=()=>new Promise((r,o)=>{let s=function(e,t){let n=n=>{var r,i;e.includes(null==(r=n.data)?void 0:r.type)&&t(null==(i=n.data)?void 0:i.data)};return window.addEventListener("message",n,!1),{unsubscribe(){window.removeEventListener("message",n)}}}(t,function(e){clearTimeout(a),l(),r(e)});window.postMessage({type:e,data:n},window.origin);let a=setTimeout(function(){l(),o()},i);function l(){s.unsubscribe()}});return{cancel(){o=!0},promise:(async()=>{for(let e=0;e<r;e++){if(o)return new Promise(()=>{});try{return await s()}catch(e){continue}}if(!o)throw`Didn't recieve ${t.join(" or ")} in time.`;return new Promise(()=>{})})()}}async function uG(){try{return await uK({message:"TOLGEE_PING",recievingMessage:["TOLGEE_PONG"],attempts:2}).promise,!0}catch(e){return!1}}let uQ=e=>{let[t,n]=em.useState(void 0),[r,i]=em.useState(!1),[o,s]=em.useState([]),[a,l]=em.useState(null);em.useEffect(()=>{uG().then(e=>n(e))},[]);let u=uD({url:"/v2/image-upload/{ids}",method:"delete"}),c=uD({url:"/v2/image-upload",method:"post"}),h=(e,t,n)=>c.mutateAsync({content:{"multipart/form-data":{image:e}}},{onSuccess(e){s(r=>[...r,et(ee(ee({},e),t),{keyReferences:n.map(e=>et(ee({},e),{keyId:-1})),justUploaded:!0})])}});async function d(e){await Promise.all(e.map(async e=>{let t=URL.createObjectURL(e),n=await uH(t);await h(e,n,[])}))}async function f(t,n,r){let o;i(!0);let{revert:s}=uq(t,n,r,e.changeTranslation);await uh(400);try{o=await uK({message:"TOLGEE_TAKE_SCREENSHOT",recievingMessage:["TOLGEE_SCREENSHOT_TAKEN"],timeout:3e3}).promise}catch(e){console.error(e);return}finally{s(),i(!1)}let a=e.findPositions(t,n),l={width:window.innerWidth,height:window.innerHeight},u=await uH(o),c=await fetch(o).then(e=>e.blob()),d=function(e,t,n){let r=t.width/e.width,i=t.height/e.height;return n.map(e=>{var{position:t}=e;return et(ee({},en(e,["position"])),{position:{x:t.x*r,y:t.y*i,width:t.width*r,height:t.height*i}})})}(l,u,a);h(c,u,d)}return{error:u.error||c.error,screenshotsUploading:c.isLoading,takingScreenshot:r,screenshots:o,setScreenshots:s,screenshotDetail:a,setScreenshotDetail:l,handleUploadImages:d,handleTakeScreenshot:f,handleRemoveScreenshot:function(e){let t=o.find(t=>
61t.id===e);(null==t?void 0:t.justUploaded)&&u.mutate({path:{ids:[t.id]}}),s(o.filter(t=>t.id!==e))},deleteImages:function(e){u.mutate({path:{ids:e}})},canTakeScreenshots:t}},uX=/^v[0-9]+\.[0-9]+\.[0-9]+$/,uY=(e,t)=>{if(t&&uX.test(t)&&e.localeCompare(t,"en",{numeric:!0,sensitivity:"base"})>0)return Error(`Requires minimal platform version ${e} (got ${t})`)},uZ={DISABLED:{name:"Disabled",color:"#7e7e7e",next:null},UNTRANSLATED:{name:"Untranslated",color:"#C4C4C4",next:null},TRANSLATED:{name:"Translated",color:"#FFCE00",next:"REVIEWED"},REVIEWED:{name:"Reviewed",color:"#17AD18",next:"TRANSLATED"}},u0=["REVIEWED","TRANSLATED"],u1=(e,t)=>null==t||!t.length||t.includes(e),u2=(e,t,n)=>{var r;let i=t=>{var n;return!!(null==(n=null==e?void 0:e.scopes)?void 0:n.includes(t))},o=i("keys.create"),s=!!t||o,a=i("translations.edit")&&s,l=i("translations.state-edit")&&s,u=i("keys.edit")&&s,c=i("keys.edit")&&s,h=i("keys.edit")&&s,d=i("screenshots.view"),f=i("screenshots.upload")&&s,p=i("screenshots.delete")&&s,m=i("translations.edit"),g=null==(r=null==t?void 0:t.tasks)?void 0:r.find(e=>null==e?void 0:e.userAssigned),v=e=>{var t;return null==(t=null==n?void 0:n.find(t=>t.tag===e))?void 0:t.id};return{canEditTags:u,canViewScreenshots:d,canUploadScreenshots:f,canDeleteScreenshots:p,canSubmitForm:a||l||u||f||p||g,canSendBigMeta:m,canEditPlural:c,canEditCharLimit:h,canEditState:n=>{var r;let i=null==(r=null==t?void 0:t.tasks)?void 0:r.find(e=>e.languageTag===n);return l&&u1(v(n),null==e?void 0:e.stateChangeLanguageIds)||(null==i?void 0:i.userAssigned)&&"REVIEW"===i.type},canEditTranslation:n=>{var r;let i=null==(r=null==t?void 0:t.tasks)?void 0:r.find(e=>e.languageTag===n);return a&&u1(v(n),null==e?void 0:e.translateLanguageIds)||(null==i?void 0:i.userAssigned)&&"TRANSLATE"===i.type}}},u3=(e,t,n)=>em.useMemo(()=>u2(e,t,n),[e,t,n]);function u4(e,t){return!e||(t?!Object.values(e.variants).join(""):!e.variants.other)}let[u5,u6,u8]=(e=>{let t=function(e){let t=em.createContext({[um]:{v:{current:null},n:{current:-1},l:new Set,u:e=>e()}});return t[ug]=t.Provider,t.Provider=ub(t.Provider),delete t.Consumer,t}(0),n=em.createContext(null);return[r=>{var{children:i}=r;let[o,s]=e(en(r,["children"])),a=em.useRef(s);a.current=s;let l=em.useMemo(()=>{let e={};return Object.keys(a.current).map(t=>{e[t]=(...e)=>{var n,r;return null==(r=(n=a.current)[t])?void 0:r.call(n,...e)}}),e},[a]);return ep.jsx(t.Provider,{value:o,children:ep.jsx(n.Provider,{value:l,children:i})})},()=>em.useContext(n),function(e){return function(e,t){let{v:{current:n},n:{current:r},l:i}=em.useContext(e)[um],o=t(n),[s,a]=em.useReducer((e,i)=>{if(!i)return[n,o];if("p"in i)throw i.p;if(i.n===r)return Object.is(e[1],o)?e:[n,o];try{if("v"in i){if(Object.is(e[0],i.v))return e;let n=t(i.v);if(Object.is(e[1],n))return e;return[i.v,n]}}catch(e){}return[...e]},[n,o]);return Object.is(s[1],o)||a(),uv(()=>(i.add(a),()=>{i.delete(a)}),[i]),s[1]}(t,e)}]})(e=>{var t,n,r,i,o,s,a,l,u,c,h,d,f,p,m,g,v,y,b,x;let[w,k]=em.useState(!1),[S,$]=em.useState({}),[j,O]=em.useState(!1),[C,U]=em.useState(e.namespace),[E,T]=em.useState(void 0),[R,A]=em.useState(),[M,P]=em.useState(),[D,I]=em.useState(),[N,F]=em.useState(),[z,L]=em.useState(!1),_=e.uiProps.branch,B=!!(null==(t=e.uiProps.filterTag)?void 0:t.length)&&E&&!e.uiProps.filterTag.find(e=>E.includes(e));em.useEffect(()=>{A(void 0),P(void 0),L(!1)},[e.keyName,e.namespace,e.uiProps.branch]);let V=uQ(e.uiProps),{screenshots:W,setScreenshots:q,screenshotDetail:J,setScreenshotDetail:H,screenshotsUploading:K,takingScreenshot:G,handleRemoveScreenshot:Q,handleUploadImages:X,deleteImages:Y,canTakeScreenshots:Z,error:er}=V,ei=en(V,["screenshots","setScreenshots","screenshotDetail","setScreenshotDetail","screenshotsUploading","takingScreenshot","handleRemoveScreenshot","handleUploadImages","deleteImages","canTakeScreenshots","error"]),eo=uP({url:"/v2/api-keys/current-permissions",method:"get",query:{projectId:Number(e.uiProps.projectId)}}),es=null==(r=null==(n=eo.data)?void 0:n.scopes)?void 0:r.includes("branch.protected-modify"),ea=null==(o=null==(i=eo.data)?void 0:i.project)?void 0:o.icuPlaceholders,el=uP({url:"/v2/projects/languages",method:"get",query:{size:1e3},options:{onSuccess(e){var t,n,r,i;let o;let s=(i=(null==(n=null==(t=e._embedded)?void 0:t.languages)?void 0:n.map(e=>e.tag))||[],0===(o=uV().filter(e=>i.includes(e))).length&&(o=i),o.slice(0,5));ep(void 0,null==(r=e._embedded)?void 0:r.languages),ed(s),uW(s)}}}),eu=uD({url:"/v2/projects/keys/create",method:"post"}),ec=em.useMemo(()=>{var e,t;return ux(null==(t=null==(e=el.data)?void 0:e._embedded)?void 0:t.languages)},[el.data]),[eh,ed]=em.useState(uV()),ef=uP({url:"/v2/projects/translations",method:"get",query:{filterKeyName:[e.keyName],filterNamespace:[C],languages:eh,branch:_},options:{enabled:!!eo.data,keepPreviousData:!0,onSuccess(t){var n,r,i,o,s,a,l;let u={},c=null==(r=null==(n=t._embedded)?void 0:n.keys)?void 0:r[0];if(c){let e=!!c.keyIsPlural;
61null==(i=t.selectedLanguages)||i.forEach(t=>{let n=null==c?void 0:c.translations[t.tag];u[t.tag]={value:l9((null==n?void 0:n.text)||"",e,!ea),state:(null==n?void 0:n.state)||"UNTRANSLATED"}}),void 0===M&&e&&P(null==c?void 0:c.keyPluralArgName)}else if(e.defaultValue){let t=l8(e.defaultValue,!ea);A(!!t.parameter),P(t.parameter)}ep(u,void 0),c?T((null==(o=null==c?void 0:c.keyTags)?void 0:o.map(e=>e.name))||[]):T([...null!=(s=e.uiProps.filterTag)?s:[],...null!=(a=e.uiProps.tagNewKeys)?a:[]]),q((null==(l=null==c?void 0:c.screenshots)?void 0:l.map(e=>et(ee({},e),{filename:e.filename,justUploaded:!1})))||[])}}});function ep(t,n){var r,i,o,s,a;let l=null!=t?t:ef.isSuccess?void 0:S,u=null!=n?n:null==(i=null==(r=el.data)?void 0:r._embedded)?void 0:i.languages;if(!l)return;if(!u){$(ee({},l));return}let c=u.find(e=>e.base);if(!(null==c?void 0:c.tag))return;let h=eh.includes(c.tag),d=u4(null==(o=null==l?void 0:l[c.tag])?void 0:o.value,ey);l&&h&&d&&e.defaultValue?$(et(ee({},l),{[c.tag]:{state:null!=(a=null==(s=null==l?void 0:l[c.tag])?void 0:s.state)?a:"UNTRANSLATED",value:l8(e.defaultValue,!ea)}})):$(ee({},l))}let eg=uP({url:"/v2/projects/branches/find",method:"get",query:{name:_},options:{retry:!1}});em.useEffect(()=>{var e;(null==(e=eg.data)?void 0:e.isProtected)&&!1===es&&L(!0)},[null==(s=eg.data)?void 0:s.isProtected,es]);let ev=null==(u=null==(l=null==(a=ef.data)?void 0:a._embedded)?void 0:l.keys)?void 0:u[0],ey=void 0!==R?R:!!(null==ev?void 0:ev.keyIsPlural),eb=ey?M||"value":void 0,ex=!!(null==(d=null==(h=null==(c=ef.data)?void 0:c._embedded)?void 0:h.keys)?void 0:d.length),ew=u3(eo.data,null==(m=null==(p=null==(f=null==ef?void 0:ef.data)?void 0:f._embedded)?void 0:p.keys)?void 0:m[0],null==(v=null==(g=el.data)?void 0:g._embedded)?void 0:v.languages),ek=uD({url:"/v2/projects/keys/{id}/complex-update",method:"put"}),eS=(null==(y=eo.data)?void 0:y.projectId)!==void 0?`${e.uiProps.apiUrl}/projects/${eo.data.projectId}/translations/single${_?`/tree/${encodeURIComponent(_)}`:""}?key=${encodeURIComponent(e.keyName)}${C?`&ns=${encodeURIComponent(C)}`:""}`:void 0,[e$,ej]=em.useState(void 0),[eO,eC]=em.useState(!1);async function eU(){O(!0);try{var t,n;let r={},i={};Object.entries(S).forEach(([e,t])=>{var n,o;let s=ew.canEditTranslation(e),a=ew.canEditState(e);s&&(r[e]=l1(et(ee({},t.value),{parameter:eb}),!ea)),u0.includes(t.state)&&(null==(o=null==(n=null==ev?void 0:ev.translations)?void 0:n[e])?void 0:o.state)!==t.state&&a&&(i[e]=t.state)});let o=ew.canSendBigMeta?(t=e.uiProps.findPositions(),n={keyName:e.keyName,keyNamespace:C},(function(e,t){let n=e.findIndex(e=>e.keyName===t.keyName&&(e.keyNamespace||void 0)===(t.keyNamespace||void 0))||0,r=n-50,i=n+50;return r<0&&(i+=0-r,r=0),i>e.length&&(r-=i-e.length,i=e.length),r<0&&(r=0),e.slice(r,i)})(t,n).map(e=>({keyName:e.keyName,namespace:e.keyNamespace||void 0}))):void 0;await (void 0===ev?eu.mutateAsync({content:{"application/json":{name:e.keyName,branch:_,namespace:C||void 0,translations:r,states:i,screenshots:W.map(e=>{var t;return{uploadedImageId:e.id,positions:null==(t=e.keyReferences)?void 0:t.map(uJ)}}),tags:E,relatedKeysInOrder:o,isPlural:ey,pluralArgName:eb,maxCharLimit:null!=eI?eI:null}}}):ek.mutateAsync({content:{"application/json":{name:e.keyName,branch:_,namespace:C||void 0,translations:r,states:i,screenshotIdsToDelete:eR(),screenshotsToAdd:eT().map(e=>{var t;return{uploadedImageId:e.id,positions:null==(t=e.keyReferences)?void 0:t.map(uJ)}}),tags:E,relatedKeysInOrder:o,isPlural:ey,pluralArgName:eb,maxCharLimit:null!=eI?eI:0}},path:{id:ev.keyId}})),uq(e.keyName,C,Object.entries(r),e.uiProps.changeTranslation),e.uiProps.onPermanentChange({key:e.keyName,namespace:C}),ef.refetch(),O(!1),k(!0),eO?(await uh(2e3),k(!1)):(await uh(400),e.onClose())}catch(e){console.error(e),e instanceof uj&&"operation_not_permitted_in_read_only_mode"===e.code?L(!0):F(e)}finally{O(!1),k(!1)}}function eE(){if(J)H(null);else{e.onClose(),eC(!1);let t=eT();t.length&&Y(t.map(e=>e.id)),q([])}}em.useEffect(()=>{let e=e=>{"Escape"===e.key&&eE()};if(!eO)return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[eO]);let eT=()=>W.filter(e=>e.justUploaded),eR=()=>{var e;return(null==(e=null==ev?void 0:ev.screenshots)?void 0:e.map(e=>e.id).filter(e=>!W.find(t=>
61t.id===e)))||[]},eA=uY("v3.42.0",null==(x=null==(b=ef.data)?void 0:b._internal)?void 0:x.version),eM=null==ec?void 0:ec.find(({base:e})=>e),eP=el.isFetching||ef.isLoading&&!ef.data||eo.isFetching,eD=eA||el.error||ef.error||eo.error||eu.error||ek.error||er,eI=void 0!==D?D:null==ev?void 0:ev.keyMaxCharLimit,eN=em.useMemo(()=>null!=eI&&!(eI<=0)&&Object.values(S).some(e=>{var t;let n=null==(t=e.value)?void 0:t.variants;return!!n&&Object.entries(n).some(([e,t])=>uc({text:t,nested:"other"!==e})>eI)}),[S,eI]),eF=eP||!ew.canSubmitForm||z;return[{input:e.keyName,fallbackNamespaces:e.fallbackNamespaces,uiProps:e.uiProps,selectedNs:C,loading:eP,saving:j,success:w,error:eD,availableLanguages:ec,selectedLanguages:uw(eh,null==eM?void 0:eM.tag),formDisabled:eF,readOnly:z,keyData:ev,translationsForm:S,container:e$,useBrowserWindow:eO,takingScreenshot:G,screenshotsUploading:K,screenshots:W,screenshotDetail:J,linkToPlatform:eS,keyExists:ex,maxCharLimit:eI,tags:E||[],permissions:ew,canTakeScreenshots:Z,isPlural:ey,_pluralArgName:M,pluralArgName:eb,pluralsSupported:void 0!==ea,icuPlaceholders:ea,submitError:N,filterTagMissing:B,isOverCharLimit:eN},{onInputChange:function(e,t){F(void 0),k(!1),$(n=>et(ee({},n),{[e]:et(ee({},n[e]),{value:t})}))},onStateChange:function(e,t){k(!1),$(n=>et(ee({},n),{[e]:et(ee({},n[e]),{state:t})}))},handleUploadImages:X,handleTakeScreenshot:function(){ei.handleTakeScreenshot(e.keyName,C,Object.entries(S).map(([e,t])=>[e,l1(et(ee({},t.value),{parameter:eb}),!ea)]))},handleRemoveScreenshot:Q,onSave:eU,onClose:eE,onSelectedLanguagesChange:function(e){e.length&&(ed(e),uW(e))},setContainer:ej,setUseBrowserWindow:eC,setScreenshotDetail:H,setSelectedNs:U,setTags:T,setIsPlural:A,setPluralArgName:P,setMaxCharLimit:I}]}),u9={black:"#000",white:"#fff"},u7={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ce={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ct={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},cn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},cr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ci={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},co={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function cs(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}let ca=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),cl="$$material";function cu(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function cc(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ch=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
61ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cd=cc(function(e){return ch.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),cf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++}
vendor: 4,157 bytes, line 61
61,t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),cp="-ms-",cm="-moz-",cg="-webkit-",cv="comm",cy="rule",cb="decl",cx="@keyframes",cw=Math.abs,ck=String.fromCharCode,cS=Object.assign;function c$(e,t,n){return e.replace(t,n)}function cj(e,t){return e.indexOf(t)}function cO(e,t){return 0|e.charCodeAt(t)}function cC(e,t,n){return e.slice(t,n)}function cU(e){return e.length}function cE(e,t){return t.push(e),e}var cT=1,cR=1,cA=0,cM=0,cP=0,cD="";function cI(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:cT,column:cR,length:s,return:""}}function cN(e,t){return cS(cI("",null,null,"",null,null,0),e,{length:-e.length},t)}function cF(){return cP=cM<cA?cO(cD,cM++):0,cR++,10===cP&&(cR=1,cT++),cP}function cz(){return cO(cD,cM)}function cL(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function c_(e){return cT=cR=1,cA=cU(cD=e),cM=0,[]}function cB(e){var t,n;return(t=cM-1,n=function e(t){for(;cF();)switch(cP){case t:return cM;case 34:case 39:34!==t&&39!==t&&e(cP);break;case 40:41===t&&e(t);break;case 92:cF()}return cM}(91===e?e+2:40===e?e+1:e),cC(cD,t,n)).trim()}function cV(e,t,n,r,i,o,s,a,l,u,c){for(var h=i-1,d=0===i?o:[""],f=d.length,p=0,m=0,g=0;p<r;++p)for(var v=0,y=cC(e,h+1,h=cw(m=s[p])),b=e;v<f;++v)(b=(m>0?d[v]+" "+y:c$(y,/&\f/g,d[v])).trim())&&(l[g++]=b);return cI(e,t,n,0===i?cy:a,l,u,c)}function cW(e,t,n,r){return cI(e,t,n,cb,cC(e,0,r),cC(e,r+1,-1),r)}function cq(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function cJ(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case cb:return e.return=e.return||e.value;case cv:return"";case cx:return e.return=e.value+"{"+cq(e.children,r)+"}";case cy:e.value=e.props.join(",")}return cU(n=cq(e.children,r))?e.return=e.value+"{"+n+"}":""}var cH=function(e,t,n){for(var r=0,i=0;r=i,i=cz(),38===r&&12===i&&(t[n]=1),!cL(i);)cF();return cC(cD,e,cM)},cK=function(e,t){var n=-1,r=44;do switch(cL(r)){case 0:38===r&&12===cz()&&(t[n]=1),e[n]+=cH(cM-1,t,n);break;case 2:e[n]+=cB(r);break;case 4:if(44===r){e[++n]=58===cz()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ck(r)}while(r=cF());return e},cG=function(e,t){var n;return n=cK(c_(e),t),cD="",n},cQ=new WeakMap,cX=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||cQ.get(n))&&!r){cQ.set(e,!0);for(var i=[],o=cG(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},cY=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},cZ=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case cb:e.return=function e(t,n){switch(45^cO(t,0)?(((n<<2^cO(t,0))<<2^cO(t,1))<<2^cO(t,2))<<2^cO(t,3):0){case 5103:return cg+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return cg+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return cg+t+cm+t+cp+t+t;case 6828:case 4268:return cg+t+cp+t+t;case 6165:return cg+t+cp+"flex-"+t+t;case 5187:return cg+t+c$(t,/(\w+).+(:[^]+)/,cg+"box-$1$2"+cp+"flex-$1$2")+t;case 5443:return cg+t+cp+"flex-item-"+c$(t,/flex-|-self/,"")+t;case 4675:return cg+t+cp+"flex-line-pack"+c$(t,/align-content|flex-|-self/,"")+t;case 5548:return cg+t+cp+c$(t,"shrink","negative")+t;case 5292:return cg+t+cp+c$(t,"basis","preferred-size")+t;case 6060:return cg+"box-"+c$(t,"-grow","")+cg+t+cp+c$(t,"grow","positive")+t;case 4554:return cg+c$(t,/([^-])(transform)/g,"$1"+cg+"$2")+t;case 6187:return c$(c$(c$(t,/(zoom-|grab)/,cg+"$1"),/(image-set)/,cg+"$1"),t,"")+t;
vendor: 4,226 bytes, line 61
61case 5495:case 3959:return c$(t,/(image-set\([^]*)/,cg+"$1$`$1");case 4968:return c$(c$(t,/(.+:)(flex-)?(.*)/,cg+"box-pack:$3"+cp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+cg+t+t;case 4095:case 3583:case 4068:case 2532:return c$(t,/(.+)-inline(.+)/,cg+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(cU(t)-1-n>6)switch(cO(t,n+1)){case 109:if(45!==cO(t,n+4))break;case 102:return c$(t,/(.+:)(.+)-([^]+)/,"$1"+cg+"$2-$3$1"+cm+(108==cO(t,n+3)?"$3":"$2-$3"))+t;case 115:return~cj(t,"stretch")?e(c$(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==cO(t,n+1))break;case 6444:switch(cO(t,cU(t)-3-(~cj(t,"!important")&&10))){case 107:return c$(t,":",":"+cg)+t;case 101:return c$(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+cg+(45===cO(t,14)?"inline-":"")+"box$3$1"+cg+"$2$3$1"+cp+"$2box$3")+t}break;case 5936:switch(cO(t,n+11)){case 114:return cg+t+cp+c$(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return cg+t+cp+c$(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return cg+t+cp+c$(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return cg+t+cp+t+t}return t}(e.value,e.length);break;case cx:return cq([cN(e,{value:c$(e.value,"@","@"+cg)})],r);case cy:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return cq([cN(e,{props:[c$(t,/:(read-\w+)/,":"+cm+"$1")]})],r);case"::placeholder":return cq([cN(e,{props:[c$(t,/:(plac\w+)/,":"+cg+"input-$1")]}),cN(e,{props:[c$(t,/:(plac\w+)/,":"+cm+"$1")]}),cN(e,{props:[c$(t,/:(plac\w+)/,cp+"input-$1")]})],r)}return""},i.map(o).join("")}}}],c0=function(e){var t,n,r,i,o,s,a=e.key;if("css"===a){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var u=e.stylisPlugins||cZ,c={},h=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)c[t[n]]=!0;h.push(e)});var d=(n=(t=[cX,cY].concat(u,[cJ,(r=function(e){s.insert(e)},function(e){!e.root&&(e=e.return)&&r(e)})])).length,function(e,r,i,o){for(var s="",a=0;a<n;a++)s+=t[a](e,r,i,o)||"";return s}),f=function(e){var t,n;return cq((n=function e(t,n,r,i,o,s,a,l,u){for(var c,h=0,d=0,f=a,p=0,m=0,g=0,v=1,y=1,b=1,x=0,w="",k=o,S=s,$=i,j=w;y;)switch(g=x,x=cF()){case 40:if(108!=g&&58==cO(j,f-1)){-1!=cj(j+=c$(cB(x),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:j+=cB(x);break;case 9:case 10:case 13:case 32:j+=function(e){for(;cP=cz();)if(cP<33)cF();else break;return cL(e)>2||cL(cP)>3?"":" "}(g);break;case 92:j+=function(e,t){for(var n;--t&&cF()&&!(cP<48)&&!(cP>102)&&(!(cP>57)||!(cP<65))&&(!(cP>70)||!(cP<97)););return n=cM+(t<6&&32==cz()&&32==cF()),cC(cD,e,n)}(cM-1,7);continue;case 47:switch(cz()){case 42:case 47:cE(cI(c=function(e,t){for(;cF();)if(e+cP===57)break;else if(e+cP===84&&47===cz())break;return"/*"+cC(cD,t,cM-1)+"*"+ck(47===e?e:cF())}(cF(),cM),n,r,cv,ck(cP),cC(c,2,-2),0),u);break;default:j+="/"}break;case 123*v:l[h++]=cU(j)*b;case 125*v:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+d:-1==b&&(j=c$(j,/\f/g,"")),m>0&&cU(j)-f&&cE(m>32?cW(j+";",i,r,f-1):cW(c$(j," ","")+";",i,r,f-2),u);break;case 59:j+=";";default:if(cE($=cV(j,n,r,h,d,o,l,w,k=[],S=[],f),s),123===x){if(0===d)e(j,n,$,$,k,s,f,l,S);else switch(99===p&&110===cO(j,3)?100:p){case 100:case 108:case 109:case 115:e(t,$,$,i&&cE(cV(t,$,$,0,0,o,l,w,o,k=[],f),S),o,S,f,l,i?k:S);break;default:e(j,$,$,$,[""],S,0,l,S)}}}h=d=m=0,v=b=1,w=j="",f=a;break;case 58:f=1+cU(j),m=g;default:if(v<1){if(123==x)--v;else if(125==x&&0==v++&&125==(cP=cM>0?cO(cD,--cM):0,cR--,10===cP&&(cR=1,cT--),cP))continue}switch(j+=ck(x),x*v){case 38:b=d>0?1:(j+="\f",-1);break;case 44:l[h++]=(cU(j)-1)*b,b=1;break;case 64:45===cz()&&(j+=cB(cF())),p=cz(),d=f=cU(w=j+=function(e){for(;!cL(cz());)cF();return cC(cD,e,cM)}(cM)),x++;break;case 45:45===g&&2==cU(j)&&(v=0)}}return s}("",null,null,null,[""],t=c_(t=e),0,[0],t),cD="",n),d)};o=function(e,t,n,r){s=n,f(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};
61var p={key:a,sheet:new cf({key:a,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:c,registered:{},insert:o};return p.sheet.hydrate(h),p},c1=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},c2=function(e,t,n){c1(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}},c3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},c4=/[A-Z]|^ms/g,c5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c6=function(e){return 45===e.charCodeAt(1)},c8=function(e){return null!=e&&"boolean"!=typeof e},c9=cc(function(e){return c6(e)?e:e.replace(c4,"-$&").toLowerCase()}),c7=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c5,function(e,t,n){return M={name:t,styles:n,next:M},t})}return 1===c3[e]||c6(e)||"number"!=typeof t||0===t?t:t+"px"};function he(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return M={name:n.name,styles:n.styles,next:M},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)M={name:r.name,styles:r.styles,next:M},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=he(e,t,n[i])+";";else for(var o in n){var s=n[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":c8(s)&&(r+=c9(o)+":"+c7(o,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var a=0;a<s.length;a++)c8(s[a])&&(r+=c9(o)+":"+c7(o,s[a])+";");else{var l=he(e,t,s);switch(o){case"animation":case"animationName":r+=c9(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var i=M,o=n(e);return M=i,he(e,t,o)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var ht=/label:\s*([^\s;\n{]+)\s*(;|$)/g,hn=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r,i=!0,o="";M=void 0;var s=e[0];null==s||void 0===s.raw?(i=!1,o+=he(n,t,s)):o+=s[0];for(var a=1;a<e.length;a++)o+=he(n,t,e[a]),i&&(o+=s[a]);ht.lastIndex=0;for(var l="";null!==(r=ht.exec(o));)l+="-"+r[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(o)+l,styles:o,next:M}},hr=!!ev.useInsertionEffect&&ev.useInsertionEffect,hi=hr||function(e){return e()},ho=hr||em.useLayoutEffect,hs=em.createContext("undefined"!=typeof document&&"undefined"!=typeof HTMLElement?c0({key:"css"}):null),ha=hs.Provider,hl=function(e){return em.forwardRef(function(t,n){return e(t,em.useContext(hs),n)})},hu=em.createContext({}),hc=hl(function(e,t){var n=hn([e.styles],void 0,em.useContext(hu)),r=em.useRef();return ho(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,s=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==s&&(o=!0,s.setAttribute("data-emotion",e),i.hydrate([s])),r.current=[i,o],function(){i.flush()}},[t]),ho(function(){var e=r.current,i=e[0];if(e[1]){e[1]=!1;return}if(void 0!==n.next&&c2(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function hh(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return hn(t)}var hd=function(){var e=hh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},hf=function(e){return"theme"!==e},hp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?cd:hf},hm=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},hg=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return c1(t,n,r),hi(function(){return c2(t,n,r)}),null},hv=(function e(t,n){var r,i,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var a=hm(t,n,o),l=a||hp(s),u=!l("as");return function(){var c=arguments,h=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&h.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)h.push.apply(h,c);else{h.push(c[0][0]);for(var d=c.length,f=1;f<d;f++)h.push(c[f],c[0][f])}var p=hl(function(e,t,n){var r,o,c,d=u&&e.as||s,f="",p=[],m=e;if(null==e.theme){for(var g in m={},e)m[g]=e[g];m.theme=em.useContext(hu)}"string"==typeof e.className?(r=t.registered,o=e.className,c="",o.split(" ").forEach(function(e){void 0!==r[e]?p.push(r[e]+";"):e&&(c+=e+" ")}),f=c):null!=e.className&&(f=e.className+" ");var v=hn(h.concat(p),t.registered,m);f+=t.key+"-"+v.name,void 0!==i&&(f+=" "+i);var y=u&&void 0===a?hp(d):l,b={};for(var x in e)(!u||"as"!==x)&&y(x)&&(b[x]=e[x]);return b.className=f,b.ref=n,em.createElement(em.Fragment,null,em.createElement(hg,{cache:t,serialized:v,isStringTag:"string"==typeof d}),em.createElement(d,b))});return p.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=s,p.__emotion_styles=h,p.__emotion_forwardProp=a,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(t,r){return e(t,ew({},n,r,{shouldForwardProp:hm(p,r,!0)})).apply(void 0,h)},p}}).bind();function hy(e){let{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?n:e):t;return ep.jsx(hc,{styles:r})}function hb(e,t){return hv(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){hv[e]=hv(e)}
61),"object"==typeof document&&(o=c0({key:"css",prepend:!0}));let hx=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},hw=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:hy,StyledEngineProvider:function(e){let{injectFirst:t,children:n}=e;return t&&o?ep.jsx(ha,{value:o,children:n}):n},ThemeContext:hu,css:hh,default:hb,internal_processStyles:hx,keyframes:hd},Symbol.toStringTag,{value:"Module"}));function hk(){return(hk=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}).apply(null,arguments)}function hS(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function h$(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function hj(e,t,n={clone:!0}){let r=n.clone?hk({},e):e;return h$(e)&&h$(t)&&Object.keys(t).forEach(i=>{"__proto__"!==i&&(h$(t[i])&&i in e&&h$(e[i])?r[i]=hj(e[i],t[i],n):n.clone?r[i]=h$(t[i])?function e(t){if(!h$(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(t[i]):t[i]:r[i]=t[i])}),r}let hO=Object.freeze(Object.defineProperty({__proto__:null,default:hj,isPlainObject:h$},Symbol.toStringTag,{value:"Module"})),hC=["values","unit","step"],hU=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>hk({},e,{[t.key]:t.val}),{})};function hE(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=hS(e,hC),o=hU(t),s=Object.keys(o);function a(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function l(e){let i="number"==typeof t[e]?t[e]:e;return`@media (max-width:${i-r/100}${n})`}function u(e,i){let o=s.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[s[o]]?t[s[o]]:i)-r/100}${n})`}return hk({keys:s,values:o,up:a,down:l,between:u,only:function(e){return s.indexOf(e)+1<s.length?u(e,s[s.indexOf(e)+1]):a(e)},not:function(e){let t=s.indexOf(e);return 0===t?a(s[1]):t===s.length-1?l(s[t]):u(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}let hT={borderRadius:4};function hR(e,t){return t?hj(e,t,{clone:!1}):e}let hA={xs:0,sm:600,md:900,lg:1200,xl:1536},hM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hA[e]}px)`};function hP(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||hM;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){let e=r.breakpoints||hM;return Object.keys(t).reduce((r,i)=>(-1!==Object.keys(e.values||hA).indexOf(i)?r[e.up(i)]=n(t[i],i):r[i]=t[i],r),{})}return n(t)}function hD(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}function hI(e,t){return e.reduce((e,t)=>{let n=e[t];return n&&0!==Object.keys(n).length||delete e[t],e},t)}function hN({values:e,breakpoints:t,base:n}){let r;let i=Object.keys(n||function(e,t){if("object"!=typeof e)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t));return 0===i.length?e:i.reduce((t,n,i)=>(Array.isArray(e)?(t[n]=null!=e[i]?e[i]:e[r],r=i):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t),{})}function hF(e){if("string"!=typeof e)throw Error(cs(7));return e.charAt(0).toUpperCase()+e.slice(1)}let hz=Object.freeze(Object.defineProperty({__proto__:null,default:hF},Symbol.toStringTag,{value:"Module"}));function hL(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function h_(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:hL(e,n)||r,t&&(i=t(i,r,e)),i}function hB(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;let o=e[t],s=hL(e.theme,r)||{};return hP(e,o,e=>{let r=h_(s,i,e);return(e===r&&"string"==typeof e&&(r=h_(s,i,`${t}${"default"===e?"":hF(e)}`,e)),!1===n)?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o}let hV={m:"margin",p:"padding"},hW={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hq={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hJ=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!hq[e])return[e];e=hq[e]}let[t,n]=e.split(""),r=hV[t],i=hW[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),hH=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hK=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function hG(e,t,n,r){var i;let o=null!=(i=hL(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>void 0}function hQ(e){return hG(e,"spacing",8)}function hX(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function hY(e,t){let n=hQ(e.theme);return Object.keys(e).map(r=>(function(e,t,n,r){var i;if(-1===t.indexOf(n))return null;let o=(i=hJ(n),e=>i.reduce((t,n)=>(t[n]=hX(r,e),t),{})),s=e[n];return hP(e,s,o)})(e,t,r,n)).reduce(hR,{})}function hZ(e){return hY(e,hH)}function h0(e){return hY(e,hK)}function h1(...e){let t=e.reduce((e,t)=>
61(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?hR(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function h2(e){return"number"!=typeof e?e:`${e}px solid`}function h3(e,t){return hB({prop:e,themeKey:"borders",transform:t})}hZ.propTypes={},hZ.filterProps=hH,h0.propTypes={},h0.filterProps=hK;let h4=h3("border",h2),h5=h3("borderTop",h2),h6=h3("borderRight",h2),h8=h3("borderBottom",h2),h9=h3("borderLeft",h2),h7=h3("borderColor"),de=h3("borderTopColor"),dt=h3("borderRightColor"),dn=h3("borderBottomColor"),dr=h3("borderLeftColor"),di=h3("outline",h2),ds=h3("outlineColor"),da=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=hG(e.theme,"shape.borderRadius",4);return hP(e,e.borderRadius,e=>({borderRadius:hX(t,e)}))}return null};da.propTypes={},da.filterProps=["borderRadius"],h1(h4,h5,h6,h8,h9,h7,de,dt,dn,dr,da,di,ds);let dl=e=>{if(void 0!==e.gap&&null!==e.gap){let t=hG(e.theme,"spacing",8);return hP(e,e.gap,e=>({gap:hX(t,e)}))}return null};dl.propTypes={},dl.filterProps=["gap"];let du=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=hG(e.theme,"spacing",8);return hP(e,e.columnGap,e=>({columnGap:hX(t,e)}))}return null};du.propTypes={},du.filterProps=["columnGap"];let dc=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=hG(e.theme,"spacing",8);return hP(e,e.rowGap,e=>({rowGap:hX(t,e)}))}return null};dc.propTypes={},dc.filterProps=["rowGap"];let dh=hB({prop:"gridColumn"}),dd=hB({prop:"gridRow"}),df=hB({prop:"gridAutoFlow"}),dp=hB({prop:"gridAutoColumns"}),dm=hB({prop:"gridAutoRows"}),dg=hB({prop:"gridTemplateColumns"});function dv(e,t){return"grey"===t?t:e}function dy(e){return e<=1&&0!==e?`${100*e}%`:e}h1(dl,du,dc,dh,dd,df,dp,dm,dg,hB({prop:"gridTemplateRows"}),hB({prop:"gridTemplateAreas"}),hB({prop:"gridArea"})),h1(hB({prop:"color",themeKey:"palette",transform:dv}),hB({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:dv}),hB({prop:"backgroundColor",themeKey:"palette",transform:dv}));let db=hB({prop:"width",transform:dy}),dx=e=>void 0!==e.maxWidth&&null!==e.maxWidth?hP(e,e.maxWidth,t=>{var n,r;let i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||hA[t];return i?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:dy(t)}}):null;dx.filterProps=["maxWidth"];let dw=hB({prop:"minWidth",transform:dy}),dk=hB({prop:"height",transform:dy}),dS=hB({prop:"maxHeight",transform:dy}),d$=hB({prop:"minHeight",transform:dy});hB({prop:"size",cssProperty:"width",transform:dy}),hB({prop:"size",cssProperty:"height",transform:dy}),h1(db,dx,dw,dk,dS,d$,hB({prop:"boxSizing"}));let dj={border:{themeKey:"borders",transform:h2},borderTop:{themeKey:"borders",transform:h2},borderRight:{themeKey:"borders",transform:h2},borderBottom:{themeKey:"borders",transform:h2},borderLeft:{themeKey:"borders",transform:h2},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:h2},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:da},color:{themeKey:"palette",transform:dv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:dv},backgroundColor:{themeKey:"palette",transform:dv},p:{style:h0},pt:{style:h0},pr:{style:h0},pb:{style:h0},pl:{style:h0},px:{style:h0},py:{style:h0},padding:{style:h0},paddingTop:{style:h0},paddingRight:{style:h0},paddingBottom:{style:h0},paddingLeft:{style:h0},paddingX:{style:h0},paddingY:{style:h0},paddingInline:{style:h0},paddingInlineStart:{style:h0},paddingInlineEnd:{style:h0},paddingBlock:{style:h0},paddingBlockStart:{style:h0},paddingBlockEnd:{style:h0},m:{style:hZ},mt:{style:hZ},mr:{style:hZ},mb:{style:hZ},ml:{style:hZ},mx:{style:hZ},my:{style:hZ},margin:{style:hZ},marginTop:{style:hZ},marginRight:{style:hZ},marginBottom:{style:hZ},marginLeft:{style:hZ},marginX:{style:hZ},marginY:{style:hZ},marginInline:{style:hZ},marginInlineStart:{style:hZ},marginInlineEnd:{style:hZ},marginBlock:{style:hZ},marginBlockStart:{style:hZ},marginBlockEnd:{style:hZ},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:dl},rowGap:{style:dc},columnGap:{style:du},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dy},maxWidth:{style:dx},minWidth:{transform:dy},height:{transform:dy},maxHeight:{transform:dy},minHeight:{transform:dy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function dO(){function e(e,t,n,r){let i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};let{cssProperty:s=e,themeKey:a,transform:l,style:u}=o;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};let c=hL(n,a)||{};return u?u(i):hP(i,t,t=>{let n=h_(c,l,t);return(t===n&&"string"==typeof t&&(n=h_(c,l,`${e}${"default"===t?"":hF(t)}`,t)),!1===s)?n:{[s]:n}})}return function t(n){var r;let{sx:i,theme:o={}}=n||{};if(!i)return null;let s=null!=(r=o.unstable_sxConfig)?r:dj;function a(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;let i=hD(o.breakpoints),a=Object.keys(i),l=i;return Object.keys(r).forEach(n=>{var i;let a="function"==typeof(i=r[n])?i(o):i;
61if(null!=a){if("object"==typeof a){if(s[n])l=hR(l,e(n,a,o,s));else{let e=hP({theme:o},a,e=>({[n]:e}));(function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)})(e,a)?l[n]=t({sx:a,theme:o}):l=hR(l,e)}}else l=hR(l,e(n,a,o,s))}}),hI(a,l)}return Array.isArray(i)?i.map(a):a(i)}}let dC=dO();function dU(e,t){return this.vars&&"function"==typeof this.getColorSchemeSelector?{[this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:this.palette.mode===e?t:{}}dC.filterProps=["sx"];let dE=["breakpoints","palette","spacing","shape"];function dT(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=hS(e,dE),a=hE(n),l=function(e=8){if(e.mui)return e;let t=hQ({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(i),u=hj({breakpoints:a,direction:"ltr",components:{},palette:hk({mode:"light"},r),spacing:l,shape:hk({},hT,o)},s);return u.applyStyles=dU,(u=t.reduce((e,t)=>hj(e,t),u)).unstable_sxConfig=hk({},dj,null==s?void 0:s.unstable_sxConfig),u.unstable_sx=function(e){return dC({sx:e,theme:this})},u}let dR=Object.freeze(Object.defineProperty({__proto__:null,default:dT,private_createBreakpoints:hE,unstable_applyStyles:dU},Symbol.toStringTag,{value:"Module"}));function dA(e=null){let t=em.useContext(hu);return t&&0!==Object.keys(t).length?t:e}let dM=dT();function dP(e=dM){return dA(e)}function dD({styles:e,themeId:t,defaultTheme:n={}}){let r=dP(n),i="function"==typeof e?e(t&&r[t]||r):e;return ep.jsx(hy,{styles:i})}let dI=["sx"],dN=e=>{var t,n;let r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:dj;return Object.keys(e).forEach(t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function dF(e){let t;let{sx:n}=e,{systemProps:r,otherProps:i}=dN(hS(e,dI));return t=Array.isArray(n)?[r,...n]:"function"==typeof n?(...e)=>{let t=n(...e);return h$(t)?hk({},r,t):r}:hk({},r,n),hk({},i,{sx:t})}let dz=Object.freeze(Object.defineProperty({__proto__:null,default:dC,extendSxProp:dF,unstable_createStyleFunctionSx:dO,unstable_defaultSxConfig:dj},Symbol.toStringTag,{value:"Module"})),dL=e=>e,d_=(s=dL,{configure(e){s=e},generate:e=>s(e),reset(){s=dL}});function dB(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r}let dV=["className","component"],dW={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function dq(e,t,n="Mui"){let r=dW[t];return r?`${n}-${r}`:`${d_.generate(e)}-${t}`}function dJ(e,t,n="Mui"){let r={};return t.forEach(t=>{r[t]=dq(e,t,n)}),r}var dH={exports:{}},dK={};dH.exports=function(){if(P)return dK;P=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case r:case o:case i:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case a:case u:case f:case d:case s:return e;default:return p}}case n:return p}}}return e=Symbol.for("react.module.reference"),dK.ContextConsumer=a,dK.ContextProvider=s,dK.Element=t,dK.ForwardRef=u,dK.Fragment=r,dK.Lazy=f,dK.Memo=d,dK.Portal=n,dK.Profiler=o,dK.StrictMode=i,dK.Suspense=c,dK.SuspenseList=h,dK.isAsyncMode=function(){return!1},dK.isConcurrentMode=function(){return!1},dK.isContextConsumer=function(e){return m(e)===a},dK.isContextProvider=function(e){return m(e)===s},dK.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},dK.isForwardRef=function(e){return m(e)===u},dK.isFragment=function(e){return m(e)===r},dK.isLazy=function(e){return m(e)===f},dK.isMemo=function(e){return m(e)===d},dK.isPortal=function(e){return m(e)===n},dK.isProfiler=function(e){return m(e)===o},dK.isStrictMode=function(e){return m(e)===i},dK.isSuspense=function(e){return m(e)===c},dK.isSuspenseList=function(e){return m(e)===h},dK.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===i||t===c||t===h||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===s||t.$$typeof===a||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},dK.typeOf=m,dK}();var dG=dH.exports;let dQ=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function dX(e){let t=`${e}`.match(dQ);return t&&t[1]||""}function dY(e,t=""){return e.displayName||e.name||dX(e)||t}function dZ(e,t,n){let r=dY(t);return e.displayName||(""!==r?`${n}(${r})`:n)}let d0=Object.freeze(Object.defineProperty({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return dY(e,"Component");if("object"==typeof e)switch(e.$$typeof){case dG.ForwardRef:return dZ(e,e.render,"ForwardRef");case dG.Memo:return dZ(e,e.type,"memo")}}},getFunctionName:dX},Symbol.toStringTag,{value:"Module"})),d1=["ownerState"],d2=["variants"],d3=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d4(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let d5=dT(),d6=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function d8({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function d9(e,t){let{ownerState:n}=t,r=hS(t,d1),i="function"==typeof e?e(hk({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(e=>d9(e,hk({ownerState:n},r)));
61if(i&&"object"==typeof i&&Array.isArray(i.variants)){let{variants:e=[]}=i,t=hS(i,d2);return e.forEach(e=>{let i=!0;"function"==typeof e.props?i=e.props(hk({ownerState:n},r,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)}),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(hk({ownerState:n},r,n)):e.style))}),t}return i}let d7=function(e={}){let{themeId:t,defaultTheme:n=d5,rootShouldForwardProp:r=d4,slotShouldForwardProp:i=d4}=e,o=e=>dC(hk({},e,{theme:d8(hk({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,s={})=>{var a;let l;hx(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:u,slot:c,skipVariantsResolver:h,skipSx:d,overridesResolver:f=(a=d6(c))?(e,t)=>t[a]:null}=s,p=hS(s,d3),m=void 0!==h?h:c&&"Root"!==c&&"root"!==c||!1,g=d||!1,v=d4;"Root"===c||"root"===c?v=r:c?v=i:"string"==typeof e&&e.charCodeAt(0)>96&&(v=void 0);let y=hb(e,hk({shouldForwardProp:v,label:l},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||h$(e)?r=>d9(e,hk({},r,{theme:d8({theme:r.theme,defaultTheme:n,themeId:t})})):e,x=(r,...i)=>{let s=b(r),a=i?i.map(b):[];u&&f&&a.push(e=>{let r=d8(hk({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[u]||!r.components[u].styleOverrides)return null;let i=r.components[u].styleOverrides,o={};return Object.entries(i).forEach(([t,n])=>{o[t]=d9(n,hk({},e,{theme:r}))}),f(e,o)}),u&&!m&&a.push(e=>{var r;let i=d8(hk({},e,{defaultTheme:n,themeId:t}));return d9({variants:null==i||null==(r=i.components)||null==(r=r[u])?void 0:r.variants},hk({},e,{theme:i}))}),g||a.push(o);let l=a.length-i.length;if(Array.isArray(r)&&l>0){let e=Array(l).fill("");(s=[...r,...e]).raw=[...r.raw,...e]}let c=y(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return y.withConfig&&(x.withConfig=y.withConfig),x}}();function fe(e,t){let n=hk({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=hk({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){let i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=hk({}
61,o),Object.keys(i).forEach(e=>{n[r][e]=fe(i[e],o[e])})):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])}),n}function ft({props:e,name:t,defaultTheme:n,themeId:r}){let i=dP(n);return r&&(i=i[r]||i),function(e){let{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?fe(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e})}let fn="undefined"!=typeof window?em.useLayoutEffect:em.useEffect,fr=Object.freeze(Object.defineProperty({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},Symbol.toStringTag,{value:"Module"}));function fi(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function fo(e,t=166){let n;function r(...i){clearTimeout(n),n=setTimeout(()=>{e.apply(this,i)},t)}return r.clear=()=>{clearTimeout(n)},r}function fs(e,t){var n,r;return em.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function fa(e){return e&&e.ownerDocument||document}function fl(e){return fa(e).defaultView||window}function fu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let fc=0,fh=ev["useId".toString()];function fd(e){if(void 0!==fh){let t=fh();return null!=e?e:t}return function(e){let[t,n]=em.useState(e),r=e||t;return em.useEffect(()=>{null==t&&(fc+=1,n(`mui-${fc}`))},[t]),r}(e)}function ff({controlled:e,default:t,name:n,state:r="value"}){let{current:i}=em.useRef(void 0!==e),[o,s]=em.useState(t),a=em.useCallback(e=>{i||s(e)},[]);return[i?e:o,a]}function fp(e){let t=em.useRef(e);return fn(()=>{t.current=e}),em.useRef((...e)=>(0,t.current)(...e)).current}function fm(...e){return em.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{fu(e,t)})},e)}let fg={},fv=[];class fy{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new fy}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function fb(){var e;let t=function(e,t){let n=em.useRef(fg);return n.current===fg&&(n.current=e(void 0)),n}(fy.create).current;return e=t.disposeEffect,em.useEffect(e,fv),t}let fx=!0,fw=!1,fk=new fy,fS={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function f$(e){e.metaKey||e.altKey||e.ctrlKey||(fx=!0)}function fj(){fx=!1}function fO(){"hidden"===this.visibilityState&&fw&&(fx=!0)}function fC(){let e=em.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",f$,!0),t.addEventListener("mousedown",fj,!0),t.addEventListener("pointerdown",fj,!0),t.addEventListener("touchstart",fj,!0),t.addEventListener("visibilitychange",fO,!0)}},[]),t=em.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return fx||function(e){let{type:t,tagName:n}=e;return"INPUT"===n&&!!fS[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(fw=!0,fk.start(100,()=>{fw=!1}),t.current=!1,!0)},ref:e}}function fU(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let fE=e=>{let t=em.useRef({});return em.useEffect(()=>{t.current=e}),t.current};function fT(e,t,n){let r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((e,r)=>{if(r){let i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}let fR=em.createContext(null);function fA(){return em.useContext(fR)}let fM="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function fP(e){let{children:t,theme:n}=e,r=fA(),i=em.useMemo(()=>{let e=null===r?n:"function"==typeof n?n(r):hk({},r,n);return null!=e&&(e[fM]=null!==r),e},[n,r]);return ep.jsx(fR.Provider,{value:i,children:t})}let fD=["value"],fI=em.createContext();function fN(e){let{value:t}=e,n=hS(e,fD);return ep.jsx(fI.Provider,hk({value:null==t||t},n))}let fF=()=>{let e=em.useContext(fI);return null!=e&&e},fz={};function fL(e,t,n,r=!1){return em.useMemo(()=>{let i=e&&t[e]||t;if("function"==typeof n){let o=n(i),s=e?hk({},t,{[e]:o}):o;return r?()=>s:s}return e?hk({},t,{[e]:n}):hk({},t,n)},[e,t,n,r])}function f_(e){let{children:t,theme:n,themeId:r}=e,i=dA(fz),o=fA()||fz,s=fL(r,i,n),a=fL(r,o,n,!0),l="rtl"===s.direction;return ep.jsx(fP,{theme:a,children:ep.jsx(hu.Provider,{value:s,children:ep.jsx(fN,{value:l,children:t})})})}let fB=["component","direction","spacing","divider","children","className","useFlexGap"],fV=dT(),fW=d7("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function fq(e){return ft({props:e,name:"MuiStack",defaultTheme:fV})}let fJ=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],fH=({ownerState:e,theme:t})=>{let n=hk({display:"flex",flexDirection:"column"},hP({theme:t},hN({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){let r=hQ(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),o=hN({values:e.direction,base:i}),s=hN({values:e.spacing,base:i});
61"object"==typeof o&&Object.keys(o).forEach((e,t,n)=>{if(!o[e]){let r=t>0?o[n[t-1]]:"column";o[e]=r}}),n=hj(n,hP({theme:t},s,(t,n)=>e.useFlexGap?{gap:hX(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${fJ(n?o[n]:e.direction)}`]:hX(r,t)}}))}return function(e,...t){let n=hD(e),r=[n,...t].reduce((e,t)=>hj(e,t),{});return hI(Object.keys(n),r)}(t.breakpoints,n)};var fK={},fG={exports:{}};fG.exports=function(e){return e&&e.__esModule?e:{default:e}},fG.exports.__esModule=!0,fG.exports.default=fG.exports;var fQ=fG.exports;let fX=el(ca),fY=el(fr);Object.defineProperty(fK,"__esModule",{value:!0});var fZ=fK.alpha=pn;fK.blend=function(e,t,n,r=1){let i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=f8(e),s=f8(t);return f7({type:"rgb",values:[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])]})},fK.colorChannel=void 0;var f0=fK.darken=pr;fK.decomposeColor=f8,fK.emphasize=function(e,t=.15){return pt(e)>.5?pr(e,t):pi(e,t)};var f1=fK.getContrastRatio=function(e,t){let n=pt(e),r=pt(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};fK.getLuminance=pt,fK.hexToRgb=f6,fK.hslToRgb=pe;var f2=fK.lighten=pi;fK.private_safeAlpha=function(e,t,n){try{return pn(e,t)}catch(t){return e}},fK.private_safeColorChannel=void 0,fK.private_safeDarken=function(e,t,n){try{return pr(e,t)}catch(t){return e}},fK.private_safeEmphasize=function e(t,n,r){try{return e(t)}catch(e){return t}},fK.private_safeLighten=function(e,t,n){try{return pi(e,t)}catch(t){return e}},fK.recomposeColor=f7,fK.rgbToHex=function(e){if(0===e.indexOf("#"))return e;let{values:t}=f8(e);return`#${t.map((e,t)=>(function(e){let t=e.toString(16);return 1===t.length?`0${t}`:t})(3===t?Math.round(255*e):e)).join("")}`};var f3=fQ(fX),f4=fQ(fY);function f5(e,t=0,n=1){return(0,f4.default)(e,t,n)}function f6(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function f8(e){let t;if(e.type)return e;if("#"===e.charAt(0))return f8(f6(e));let n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw Error((0,f3.default)(9,e));let i=e.substring(n+1,e.length-1);if("color"===r){if(t=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,f3.default)(10,t))}else i=i.split(",");return{type:r,values:i=i.map(e=>parseFloat(e)),colorSpace:t}}let f9=e=>{let t=f8(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};function f7(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function pe(e){let{values:t}=e=f8(e),n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),a="rgb",l=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(a+="a",l.push(t[3])),f7({type:a,values:l})}function pt(e){let t="hsl"===(e=f8(e)).type||"hsla"===e.type?f8(pe(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pn(e,t){return e=f8(e),t=f5(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,f7(e)}function pr(e,t){if(e=f8(e),t=f5(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return f7(e)}function pi(e,t){if(e=f8(e),t=f5(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return f7(e)}fK.colorChannel=f9,fK.private_safeColorChannel=(e,t)=>
61{try{return f9(e)}catch(t){return e}};let po=["mode","contrastThreshold","tonalOffset"],ps={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u9.white,default:u9.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},pa={text:{primary:u9.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:u9.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function pl(e,t,n,r){let i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=f2(e.main,i):"dark"===t&&(e.dark=f0(e.main,o)))}let pu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],pc={textTransform:"uppercase"},ph='"Roboto", "Helvetica", "Arial", sans-serif';function pd(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}let pf=["none",pd(0,2,1,-1,0,1,1,0,0,1,3,0),pd(0,3,1,-2,0,2,2,0,0,1,5,0),pd(0,3,3,-2,0,3,4,0,0,1,8,0),pd(0,2,4,-1,0,4,5,0,0,1,10,0),pd(0,3,5,-1,0,5,8,0,0,1,14,0),pd(0,3,5,-1,0,6,10,0,0,1,18,0),pd(0,4,5,-2,0,7,10,1,0,2,16,1),pd(0,5,5,-3,0,8,10,1,0,3,14,2),pd(0,5,6,-3,0,9,12,1,0,3,16,2),pd(0,6,6,-3,0,10,14,1,0,4,18,3),pd(0,6,7,-4,0,11,15,1,0,4,20,3),pd(0,7,8,-4,0,12,17,2,0,5,22,4),pd(0,7,8,-4,0,13,19,2,0,5,24,4),pd(0,7,9,-4,0,14,21,2,0,5,26,4),pd(0,8,9,-5,0,15,22,2,0,6,28,5),pd(0,8,10,-5,0,16,24,2,0,6,30,5),pd(0,8,11,-5,0,17,26,2,0,6,32,5),pd(0,9,11,-5,0,18,28,2,0,7,34,6),pd(0,9,12,-6,0,19,29,2,0,7,36,6),pd(0,10,13,-6,0,20,31,3,0,8,38,7),pd(0,10,13,-6,0,21,33,3,0,8,40,7),pd(0,10,14,-6,0,22,35,3,0,8,42,7),pd(0,11,14,-7,0,23,36,3,0,9,44,8),pd(0,11,15,-7,0,24,38,3,0,9,46,8)],pp=["duration","easing","delay"],pm={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},pg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pv(e){return`${Math.round(e)}ms`}function py(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}let pb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},px=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function pw(e={},...t){var n;let{mixins:r={},palette:i={},transitions:o={},typography:s={}}=e,a=cu(e,px);if(e.vars)throw Error(cs(18));let l=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=cu(e,po),o=e.primary||function(e="light"){return"dark"===e?{main:ct[200],light:ct[50],dark:ct[400]}:{main:ct[700],light:ct[400],dark:ct[800]}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:ce[200],light:ce[50],dark:ce[400]}:{main:ce[500],light:ce[300],dark:ce[700]}}(t),a=e.error||function(e="light"){return"dark"===e?{main:u7[500],light:u7[300],dark:u7[700]}:{main:u7[700],light:u7[400],dark:u7[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:cn[400],light:cn[300],dark:cn[700]}:{main:cn[700],light:cn[500],dark:cn[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:cr[400],light:cr[300],dark:cr[700]}:{main:cr[800],light:cr[500],dark:cr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ci[400],light:ci[300],dark:ci[700]}:{main:"#ed6c02",light:ci[500],dark:ci[900]}}(t);function h(e){return f1(e,pa.text.primary)>=n?pa.text.primary:ps.text.primary}
61let d=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=ew({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw Error(cs(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw Error(cs(12,t?` (${t})`:"",JSON.stringify(e.main)));return pl(e,"light",i,r),pl(e,"dark",o,r),e.contrastText||(e.contrastText=h(e.main)),e};return hj(ew({common:ew({},u9),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:co,contrastThreshold:n,getContrastText:h,augmentColor:d,tonalOffset:r},{dark:pa,light:ps}[t]),i)}(i),u=dT(e),c=hj(u,{mixins:(n=u.breakpoints,ew({toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}}},r)),palette:l,shadows:pf.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:r=ph,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:h}=n,d=cu(n,pu),f=i/14,p=h||(e=>`${e/u*f}rem`),m=(e,t,n,i,o)=>ew({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n},r===ph?{letterSpacing:`${Math.round(i/t*1e5)/1e5}em`}:{},o,c),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,pc),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,pc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hj(ew({htmlFontSize:u,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},g),d,{clone:!1})}(l,s),transitions:function(e){let t=ew({},pm,e.easing),n=ew({},pg,e.duration);return ew({getAutoHeightDuration:py,create:(e=["all"],r={})=>{let{duration:i=n.standard,easing:o=t.easeInOut,delay:s=0}=r;return cu(r,pp),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:pv(i)} ${o} ${"string"==typeof s?s:pv(s)}`).join(",")}},e,{easing:t,duration:n})}(o),zIndex:ew({},pb)});return c=hj(c,a),(c=t.reduce((e,t)=>hj(e,t),c)).unstable_sxConfig=ew({},dj,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return dC({sx:e,theme:this})},c}let pk=pw();function pS(){let e=dP(pk);return e[cl]||e}function p$({props:e,name:t}){return ft({props:e,name:t,defaultTheme:pk,themeId:cl})}var pj={},pO={exports:{}},pC={exports:{}};let pU=el(hw),pE=el(hO),pT=el(hz),pR=el(d0),pA=el(dR),pM=el(dz);Object.defineProperty(pj,"__esModule",{value:!0});var pP=pj.default=function(e={}){let{themeId:t,defaultTheme:n=pq,rootShouldForwardProp:r=pW,slotShouldForwardProp:i=pW}=e,o=e=>(0,pz.default)((0,pD.default)({},e,{theme:pH((0,pD.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,s={})=>{var a;let l;(0,pN.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:u,slot:c,skipVariantsResolver:h,skipSx:d,overridesResolver:f=(a=pJ(c))?(e,t)=>t[a]:null}=s,p=(0,pI.default)(s,pB),m=void 0!==h?h:c&&"Root"!==c&&"root"!==c||!1,g=d||!1,v=pW;"Root"===c||"root"===c?v=r:c?v=i:"string"==typeof e&&e.charCodeAt(0)>96&&(v=void 0);let y=(0,pN.default)(e,(0,pD.default)({shouldForwardProp:v,label:l},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,pE.isPlainObject)(e)?r=>pK(e,(0,pD.default)({},r,{theme:pH({theme:r.theme,defaultTheme:n,themeId:t})})):e,x=(r,...i)=>{let s=b(r),a=i?i.map(b):[];u&&f&&a.push(e=>{let r=pH((0,pD.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[u]||!r.components[u].styleOverrides)return null;let i=r.components[u].styleOverrides,o={};return Object.entries(i).forEach(([t,n])=>{o[t]=pK(n,(0,pD.default)({},e,{theme:r}))}),f(e,o)}),u&&!m&&a.push(e=>{var r;let i=pH((0,pD.default)({},e,{defaultTheme:n,themeId:t}));return pK({variants:null==i||null==(r=i.components)||null==(r=r[u])?void 0:r.variants},(0,pD.default)({},e,{theme:i}))}),g||a.push(o);let l=a.length-i.length;if(Array.isArray(r)&&l>0){let e=Array(l).fill("");(s=[...r,...e]).raw=[...r.raw,...e]}let c=y(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return y.withConfig&&(x.withConfig=y.withConfig),x}};pj.shouldForwardProp=pW,pj.systemDefaultTheme=void 0;var pD=fQ((D||(D=1,function(e){function t(){return e.exports=t=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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}
61e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(pO)),pO.exports)),pI=fQ((I||(I=1,pC.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},pC.exports.__esModule=!0,pC.exports.default=pC.exports),pC.exports)),pN=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=pV(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(pU);fQ(pT),fQ(pR);var pF=fQ(pA),pz=fQ(pM);let pL=["ownerState"],p_=["variants"],pB=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function pV(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(pV=function(e){return e?n:t})(e)}function pW(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let pq=pj.systemDefaultTheme=(0,pF.default)(),pJ=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function pH({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function pK(e,t){let{ownerState:n}=t,r=(0,pI.default)(t,pL),i="function"==typeof e?e((0,pD.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(e=>pK(e,(0,pD.default)({ownerState:n},r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){let{variants:e=[]}=i,t=(0,pI.default)(i,p_);return e.forEach(e=>{let i=!0;"function"==typeof e.props?i=e.props((0,pD.default)({ownerState:n},r,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)}),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,pD.default)({ownerState:n},r,n)):e.style))}),t}return i}function pG(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let pQ=e=>pG(e)&&"classes"!==e,pX=pP({themeId:cl,defaultTheme:pk,rootShouldForwardProp:pQ}),pY=["theme"];function pZ(e){let{theme:t}=e,n=cu(e,pY),r=t[cl];return ep.jsx(f_,ew({},n,{themeId:r?cl:void 0,theme:r||t}))}let p0=e=>((e<1?5.11916*e**2:4.5*Math.log(e+1)+2)/100).toFixed(2);function p1(e){return dq("MuiSvgIcon",e)}dJ("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);let p2=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],p3=e=>{let{color:t,fontSize:n,classes:r}=e;return fT({root:["root","inherit"!==t&&`color${hF(t)}`,`fontSize${hF(n)}`]},p1,r)},p4=pX("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${hF(n.color)}`],t[`fontSize${hF(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,l,u,c,h,d,f,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:({inherit:"inherit",small:(null==(o=e.typography)||null==(s=o.pxToRem)?void 0:s.call(o,20))||"1.25rem",medium:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"})[t.fontSize],color:null!=(h=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?h:({action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0})[t.color]}}),p5=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:s="svg",fontSize:a="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:h="0 0 24 24"}=n,d=cu(n,p2),f=em.isValidElement(r)&&"svg"===r.type,p=ew({},n,{color:o,component:s,fontSize:a,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:f}),m={};u||(m.viewBox=h);let g=p3(p);return ep.jsxs(p4,ew({as:s,className:dB(g.root,i),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,d,f&&r.props,{ownerState:p,children:[f?r.props.children:r,c?ep.jsx("title",{children:c}):null]}))});function p6(e,t){function n(n,r){return ep.jsx(p5,ew({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=p5.muiName,em.memo(em.forwardRef(n))}function p8(e,t){return(p8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p8(e,t)}p5.muiName="SvgIcon";let p7={disabled:!1},me=eg.createContext(null);var mt="unmounted",mn="exited",mr="entering",mi="entered",mo="exiting",ms=function(e){function t(t,n){r=e.call(this,t,n)||this;var r,i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=mn,r.appearStatus=mr):i=mi:i=t.unmountOnExit||t.mountOnEnter?mt:mn,r.state={status:i},r.nextCallback=null,r}p9(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===mt?{status:mn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;
61this.props.in?n!==mr&&n!==mi&&(t=mr):(n===mr||n===mi)&&(t=mo)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===mr?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:tr.findDOMNode(this)),this.performEnter(e)):this.performExit()):this.props.unmountOnExit&&this.state.status===mn&&this.setState({status:mt})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[tr.findDOMNode(this),r],o=i[0],s=i[1],a=this.getTimeouts(),l=r?a.appear:a.enter;if(!e&&!n||p7.disabled){this.safeSetState({status:mi},function(){t.props.onEntered(o)});return}this.props.onEnter(o,s),this.safeSetState({status:mr},function(){t.props.onEntering(o,s),t.onTransitionEnd(l,function(){t.safeSetState({status:mi},function(){t.props.onEntered(o,s)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:tr.findDOMNode(this);if(!t||p7.disabled){this.safeSetState({status:mn},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:mo},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:mn},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:tr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===mt)return null;var t=this.props,n=t.children,r=hS(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return eg.createElement(me.Provider,{value:null},"function"==typeof n?n(e,r):eg.cloneElement(eg.Children.only(n),r))},t}(eg.Component);function ma(){}function ml(e,t){var n=Object.create(null);return e&&em.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=t&&em.isValidElement(e)?t(e):e}),n}function mu(e,t,n){return null!=n[t]?n[t]:e.props[t]}ms.contextType=me,ms.propTypes={},ms.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ma,onEntering:ma,onEntered:ma,onExit:ma,onExiting:ma,onExited:ma},ms.UNMOUNTED=mt,ms.EXITED=mn,ms.ENTERING=mr,ms.ENTERED=mi,ms.EXITING=mo;var mc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mh=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}p9(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;
61return{children:t.firstRender?ml(e.children,function(t){return em.cloneElement(t,{onExited:o.bind(null,t),in:!0,appear:mu(t,"appear",e),enter:mu(t,"enter",e),exit:mu(t,"exit",e)})}):(Object.keys(r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];a[i[l][r]]=n(u)}a[l]=n(l)}for(r=0;r<o.length;r++)a[o[r]]=n(o[r]);return a}(i,n=ml(e.children))).forEach(function(t){var s=r[t];if(em.isValidElement(s)){var a=t in i,l=t in n,u=i[t],c=em.isValidElement(u)&&!u.props.in;l&&(!a||c)?r[t]=em.cloneElement(s,{onExited:o.bind(null,s),in:!0,exit:mu(s,"exit",e),enter:mu(s,"enter",e)}):l||!a||c?l&&a&&em.isValidElement(u)&&(r[t]=em.cloneElement(s,{onExited:o.bind(null,s),in:u.props.in,exit:mu(s,"exit",e),enter:mu(s,"enter",e)})):r[t]=em.cloneElement(s,{in:!1})}}),r),firstRender:!1}},n.handleExited=function(e,t){var n=ml(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=hk({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=hS(e,["component","childFactory"]),i=this.state.contextValue,o=mc(this.state.children).map(n);return(delete r.appear,delete r.enter,delete r.exit,null===t)?eg.createElement(me.Provider,{value:i},o):eg.createElement(me.Provider,{value:i},eg.createElement(t,r,o))},t}(eg.Component);function md(e,t){var n,r;let{timeout:i,easing:o,style:s={}}=e;return{duration:null!=(n=s.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:s.transitionDelay}}function mf(e){return dq("MuiPaper",e)}mh.propTypes={},mh.defaultProps={component:"div",childFactory:function(e){return e}},dJ("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);let mp=["className","component","elevation","square","variant"],mm=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return fT({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},mf,i)},mg=pX("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return ew({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&ew({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${fZ("#fff",p0(t.elevation))}, ${fZ("#fff",p0(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),mv=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:s=!1,variant:a="elevation"}=n,l=cu(n,mp),u=ew({},n,{component:i,elevation:o,square:s,variant:a}),c=mm(u);return ep.jsx(mg,ew({as:i,ownerState:u,className:dB(c.root,r),ref:t},l))});function my(e){return"string"==typeof e}function mb(e,t,n){return void 0===e||my(e)?t:hk({},t,{ownerState:hk({},t.ownerState,n)})}let mx=em.createContext({disableDefaultClasses:!1});function mw(e,t=[]){if(void 0===e)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function mk(e,t,n){return"function"==typeof e?e(t,n):e}function mS(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>
61!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function m$(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){let e=dB(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=hk({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),s=hk({},n,i,r);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}let s=mw(hk({},i,r)),a=mS(r),l=mS(i),u=t(s),c=dB(null==u?void 0:u.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),h=hk({},null==u?void 0:u.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),d=hk({},u,n,l,a);return c.length>0&&(d.className=c),Object.keys(h).length>0&&(d.style=h),{props:d,internalRef:u.ref}}let mj=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mO(e){var t;let{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=hS(e,mj),a=o?{}:mk(r,i),{props:l,internalRef:u}=m$(hk({},s,{externalSlotProps:a})),c=fm(u,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref);return mb(n,hk({},l,{ref:c}),i)}let mC=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],mU=["component","slots","slotProps"],mE=["component"];function mT(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:a}=t,l=cu(t,mC),{component:u,slots:c={[e]:void 0},slotProps:h={[e]:void 0}}=o,d=cu(o,mU),f=c[e]||r,p=mk(h[e],i),m=m$(ew({className:n},l,{externalForwardedProps:"root"===e?d:void 0,externalSlotProps:p})),{props:{component:g},internalRef:v}=m,y=cu(m.props,mE),b=fm(v,null==p?void 0:p.ref,t.ref),x=s?s(y):{},w=ew({},i,x),k="root"===e?g||u:g,S=mb(f,ew({},"root"===e&&!u&&!c[e]&&a,"root"!==e&&!c[e]&&a,y,k&&{as:k},{ref:b}),w);return Object.keys(x).forEach(e=>{delete S[e]}),[f,S]}let mR=dJ("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),mA=["center","classes","className"],mM=e=>e,mP,mD,mI,mN,mF=hd(mP||(mP=mM`
62  0% {
63    transform: scale(0);
64    opacity: 0.1;
65  }
66
67  100% {
68    transform: scale(1);
69    opacity: 0.3;
70  }
71`)),mz=hd(mD||(mD=mM`
72  0% {
73    opacity: 1;
74  }
75
76  100% {
77    opacity: 0;
78  }
79`)),mL=hd(mI||(mI=mM`
80  0% {
81    transform: scale(1);
82  }
83
84  50% {
85    transform: scale(0.92);
86  }
87
88  100% {
89    transform: scale(1);
90  }
91`)),m_=pX("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),mB=pX(function(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,h]=em.useState(!1),d=dB(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f=dB(n.child,c&&n.childLeaving,r&&n.childPulsate);return a||c||h(!0),em.useEffect(()=>{if(!a&&null!=l){let e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,a,u]),ep.jsx("span",{className:d,style:{width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},children:ep.jsx("span",{className:f})})},{name:"MuiTouchRipple",slot:"Ripple"})(mN||(mN=mM`
92  opacity: 0;
93  position: absolute;
94
95  &.${0} {
96    opacity: 0.3;
97    transform: scale(1);
98    animation-name: ${0};
99    animation-duration: ${0}ms;
100    animation-timing-function: ${0};
101  }
102
103  &.${0} {
104    animation-duration: ${0}ms;
105  }
106
107  & .${0} {
108    opacity: 1;
109    display: block;
110    width: 100%;
111    height: 100%;
112    border-radius: 50%;
113    background-color: currentColor;
114  }
115
116  & .${0} {
117    opacity: 0;
118    animation-name: ${0};
119    animation-duration: ${0}ms;
120    animation-timing-function: ${0};
121  }
122
123  & .${0} {
124    position: absolute;
125    /* @noflip */
126    left: 0px;
127    top: 0;
128    animation-name: ${0};
129    animation-duration: 2500ms;
130    animation-timing-function: ${0};
131    animation-iteration-count: infinite;
132    animation-delay: 200ms;
133  }
134`),mR.rippleVisible,mF,550,({theme:e})=>e.transitions.easing.easeInOut,mR.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,mR.child,mR.childLeaving,mz,550,({theme:e})=>e.transitions.easing.easeInOut,mR.childPulsate,mL,({theme:e})=>e.transitions.easing.easeInOut),mV=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,s=cu(n,mA),[a,l]=em.useState([]),u=em.useRef(0),c=em.useRef(null);em.useEffect(()=>{c.current&&(c.current(),c.current=null)},[a]);let h=em.useRef(!1),d=fb(),f=em.useRef(null),p=em.useRef(null),m=em.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:s}=e;l(e=>[...e,ep.jsx(mB,{classes:{ripple:dB(i.ripple,mR.ripple),rippleVisible:dB(i.rippleVisible,mR.rippleVisible),ripplePulsate:dB(i.ripplePulsate,mR.ripplePulsate),
134child:dB(i.child,mR.child),childLeaving:dB(i.childLeaving,mR.childLeaving),childPulsate:dB(i.childPulsate,mR.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)]),u.current+=1,c.current=s},[i]),g=em.useCallback((e={},t={},n=()=>{})=>{let i,o,s;let{pulsate:a=!1,center:l=r||t.pulsate,fakeElement:u=!1}=t;if((null==e?void 0:e.type)==="mousedown"&&h.current){h.current=!1;return}(null==e?void 0:e.type)==="touchstart"&&(h.current=!0);let c=u?null:p.current,g=c?c.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!l&&void 0!==e&&(0!==e.clientX||0!==e.clientY)&&(e.clientX||e.touches)){let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-g.left),o=Math.round(n-g.top)}else i=Math.round(g.width/2),o=Math.round(g.height/2);l?(s=Math.sqrt((2*g.width**2+g.height**2)/3))%2==0&&(s+=1):s=Math.sqrt((2*Math.max(Math.abs((c?c.clientWidth:0)-i),i)+2)**2+(2*Math.max(Math.abs((c?c.clientHeight:0)-o),o)+2)**2),null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:a,rippleX:i,rippleY:o,rippleSize:s,cb:n})},d.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:a,rippleX:i,rippleY:o,rippleSize:s,cb:n})},[r,m,d]),v=em.useCallback(()=>{g({},{pulsate:!0})},[g]),y=em.useCallback((e,t)=>{if(d.clear(),(null==e?void 0:e.type)==="touchend"&&f.current){f.current(),f.current=null,d.start(0,()=>{y(e,t)});return}f.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[d]);return em.useImperativeHandle(t,()=>({pulsate:v,start:g,stop:y}),[v,g,y]),ep.jsx(m_,ew({className:dB(mR.root,i.root,o),ref:p},s,{children:ep.jsx(mh,{component:null,exit:!0,children:a})}))});function mW(e){return dq("MuiButtonBase",e)}let mq=dJ("MuiButtonBase",["root","disabled","focusVisible"]),mJ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],mH=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=fT({root:["root",t&&"disabled",n&&"focusVisible"]},mW,i);return n&&r&&(o.root+=` ${r}`),o},mK=pX("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${mq.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mG=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:s,component:a="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:h=!1,LinkComponent:d="a",onBlur:f,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:k,onMouseUp:S,onTouchEnd:$,onTouchMove:j,onTouchStart:O,tabIndex:C=0,TouchRippleProps:U,touchRippleRef:E,type:T}=n,R=cu(n,mJ),A=em.useRef(null),M=em.useRef(null),P=fm(M,E),{isFocusVisibleRef:D,onFocus:I,onBlur:N,ref:F}=fC(),[z,L]=em.useState(!1);l&&z&&L(!1),em.useImperativeHandle(r,()=>({focusVisible:()=>{L(!0),A.current.focus()}}),[]);let[_,B]=em.useState(!1);em.useEffect(()=>{B(!0)},[]);let V=_&&!u&&!l;function W(e,t,n=c){return fp(r=>(t&&t(r),!n&&M.current&&M.current[e](r),!0))}em.useEffect(()=>{z&&h&&!u&&_&&M.current.pulsate()},[u,h,z,_]);let q=W("start",w),J=W("stop",m),H=W("stop",g),K=W("stop",S),G=W("stop",e=>{z&&e.preventDefault(),k&&k(e)}),Q=W("start",O),X=W("stop",$),Y=W("stop",j),Z=W("stop",e=>{N(e),!1===D.current&&L(!1),f&&f(e)},!1),ee=fp(e=>{A.current||(A.current=e.currentTarget),I(e),!0===D.current&&(L(!0),y&&y(e)),v&&v(e)}
134),et=()=>{let e=A.current;return a&&"button"!==a&&!("A"===e.tagName&&e.href)},en=em.useRef(!1),er=fp(e=>{h&&!en.current&&z&&M.current&&" "===e.key&&(en.current=!0,M.current.stop(e,()=>{M.current.start(e)})),e.target===e.currentTarget&&et()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&et()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))}),ei=fp(e=>{h&&" "===e.key&&M.current&&z&&!e.defaultPrevented&&(en.current=!1,M.current.stop(e,()=>{M.current.pulsate(e)})),x&&x(e),p&&e.target===e.currentTarget&&et()&&" "===e.key&&!e.defaultPrevented&&p(e)}),eo=a;"button"===eo&&(R.href||R.to)&&(eo=d);let es={};"button"===eo?(es.type=void 0===T?"button":T,es.disabled=l):(R.href||R.to||(es.role="button"),l&&(es["aria-disabled"]=l));let ea=fm(t,F,A),el=ew({},n,{centerRipple:i,component:a,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:h,tabIndex:C,focusVisible:z}),eu=mH(el);return ep.jsxs(mK,ew({as:eo,className:dB(eu.root,s),ownerState:el,onBlur:Z,onClick:p,onContextMenu:J,onFocus:ee,onKeyDown:er,onKeyUp:ei,onMouseDown:q,onMouseLeave:G,onMouseUp:K,onDragLeave:H,onTouchEnd:X,onTouchMove:Y,onTouchStart:Q,ref:ea,tabIndex:l?-1:C,type:T},es,R,{children:[o,V?ep.jsx(mV,ew({ref:P,center:i},U)):null]}))});function mQ(e){return dq("MuiAlert",e)}let mX=dJ("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function mY(e){return dq("MuiIconButton",e)}let mZ=dJ("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),m0=["edge","children","className","color","disabled","disableFocusRipple","size"],m1=e=>{let{classes:t,disabled:n,color:r,edge:i,size:o}=e;return fT({root:["root",n&&"disabled","default"!==r&&`color${hF(r)}`,i&&`edge${hF(i)}`,`size${hF(o)}`]},mY,t)},m2=pX(mG,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${hF(n.color)}`],n.edge&&t[`edge${hF(n.edge)}`],t[`size${hF(n.size)}`]]}})(({theme:e,ownerState:t})=>ew({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:fZ(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;let r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return ew({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&ew({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":ew({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fZ(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${mZ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),m3=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:s="default",disabled:a=!1,disableFocusRipple:l=!1,size:u="medium"}=n,c=cu(n,m0),h=ew({},n,{edge:r,color:s,disabled:a,disableFocusRipple:l,size:u}),d=m1(h);return ep.jsx(m2,ew({className:dB(d.root,o),centerRipple:!0,focusRipple:!l,disabled:a,ref:t},c,{ownerState:h,children:i}))}),m4=p6(ep.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}
134),"SuccessOutlined"),m5=p6(ep.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),m6=p6(ep.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),m8=p6(ep.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),m9=p6(ep.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),m7=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],ge=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return fT({root:["root",`color${hF(n||r)}`,`${t}${hF(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},mQ,i)},gt=pX(mv,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${hF(n.color||n.severity)}`]]}})(({theme:e})=>{let t="light"===e.palette.mode?f0:f2,n="light"===e.palette.mode?f2:f0;return ew({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${mX.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${mX.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.dark).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:ew({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})}))]})}),gn=pX("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),gr=pX("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),gi=pX("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),go={success:ep.jsx(m4,{fontSize:"inherit"}),warning:ep.jsx(m5,{fontSize:"inherit"}),error:ep.jsx(m6,{fontSize:"inherit"}),info:ep.jsx(m8,{fontSize:"inherit"})},gs=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiAlert"}),{action:r,children:i,className:o,closeText:s="Close",color:a,components:l={},componentsProps:u={},icon:c,iconMapping:h=go,onClose:d,role:f="alert",severity:p="success",slotProps:m={},slots:g={},variant:v="standard"}=n,y=cu(n,m7),b=ew({},n,{color:a,severity:p,variant:v,colorSeverity:a||p}),x=ge(b),w={slots:ew({closeButton:l.CloseButton,closeIcon:l.CloseIcon},g),slotProps:ew({},u,m)},[k,S]=mT("closeButton",{elementType:m3,externalForwardedProps:w,ownerState:b}),[$,j]=mT("closeIcon",{elementType:m9,externalForwardedProps:w,ownerState:b});return ep.jsxs(gt,ew({role:f,elevation:0,ownerState:b,className:dB(x.root,o),ref:t},y,{children:[!1!==c?ep.jsx(gn,{ownerState:b,className:x.icon,children:c||h[p]||go[p]}):null,ep.jsx(gr,{ownerState:b,className:x.message,children:i}),null!=r?ep.jsx(gi,{ownerState:b,className:x.action,children:r}):null,null==r&&d?ep.jsx(gi,{ownerState:b,className:x.action,children:ep.jsx(k,ew({size:"small","aria-label":s,title:s,color:"inherit",onClick:d},S,{children:ep.jsx($,ew({fontSize:"small"},j))}))}):null]}))});function ga(e){return dq("MuiTypography",e)}
134dJ("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);let gl=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gu=e=>{let{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e;return fT({root:["root",o,"inherit"!==e.align&&`align${hF(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},ga,s)},gc=pX("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${hF(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>ew({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),gh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gf=e=>gd[e]||e,gp=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiTypography"}),r=gf(n.color),i=dF(ew({},n,{color:r})),{align:o="inherit",className:s,component:a,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:h="body1",variantMapping:d=gh}=i,f=cu(i,gl),p=ew({},i,{align:o,color:r,className:s,component:a,gutterBottom:l,noWrap:u,paragraph:c,variant:h,variantMapping:d}),m=a||(c?"p":d[h]||gh[h])||"span",g=gu(p);return ep.jsx(gc,ew({as:m,ref:t,ownerState:p,className:dB(g.root,s)},f))});function gm(e){return dq("MuiAlertTitle",e)}dJ("MuiAlertTitle",["root"]);let gg=["className"],gv=e=>{let{classes:t}=e;return fT({root:["root"]},gm,t)},gy=pX(gp,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),gb=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiAlertTitle"}),{className:r}=n,i=cu(n,gg),o=gv(n);return ep.jsx(gy,ew({gutterBottom:!0,component:"div",ownerState:n,ref:t,className:dB(o.root,r)},i))}),gx="base";function gw(e,t){let n=dW[t];return n?`${gx}--${n}`:`${gx}-${e}-${t}`}function gk(e){let t=[],n=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,r)=>{let i=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===i||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e)||(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function gS(){return!0}function g$(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=gk,isEnabled:s=gS,open:a}=e,l=em.useRef(!1),u=em.useRef(null),c=em.useRef(null),h=em.useRef(null),d=em.useRef(null),f=em.useRef(!1),p=em.useRef(null),m=fm(t.ref,p),g=em.useRef(null);em.useEffect(()=>{a&&p.current&&(f.current=!n)},[n,a]),em.useEffect(()=>{if(!a||!p.current)return;let e=fa(p.current);return!p.current.contains(e.activeElement)&&(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),f.current&&p.current.focus()),()=>{i||(h.current&&h.current.focus&&(l.current=!0,h.current.focus()),h.current=null)}},[a]),em.useEffect(()=>{if(!a||!p.current)return;let e=fa(p.current),t=t=>{g.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===p.current&&t.shiftKey&&(l.current=!0,
134c.current&&c.current.focus())},n=()=>{let t=p.current;if(null===t)return;if(!e.hasFocus()||!s()||l.current){l.current=!1;return}if(t.contains(e.activeElement)||r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==d.current)d.current=null;else if(null!==d.current)return;if(!f.current)return;let n=[];if((e.activeElement===u.current||e.activeElement===c.current)&&(n=o(p.current)),n.length>0){var i,a;let e=!!((null==(i=g.current)?void 0:i.shiftKey)&&(null==(a=g.current)?void 0:a.key)==="Tab"),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);let i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,i,s,a,o]);let v=e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0};return ep.jsxs(em.Fragment,{children:[ep.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),em.cloneElement(t,{ref:m,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0,d.current=e.target;let n=t.props.onFocus;n&&n(e)}}),ep.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}let gj=em.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[o,s]=em.useState(null),a=fm(em.isValidElement(n)?n.ref:null,t);return(fn(()=>{!i&&s(("function"==typeof r?r():r)||document.body)},[r,i]),fn(()=>{if(o&&!i)return fu(t,o),()=>{fu(t,null)}},[t,o,i]),i)?em.isValidElement(n)?em.cloneElement(n,{ref:a}):ep.jsx(em.Fragment,{children:n}):ep.jsx(em.Fragment,{children:o?tn.createPortal(n,o):o})});function gO(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gC(e){return parseInt(fl(e).getComputedStyle(e).paddingRight,10)||0}function gU(e,t,n,r,i){let o=[t,n,...r];[].forEach.call(e.children,e=>{let t=-1===o.indexOf(e),n=!function(e){let t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&gO(e,i)})}function gE(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}class gT{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&gO(e.modalRef,!1);let r=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);gU(t,e.mount,e.modalRef,r,!0);let i=gE(this.containers,e=>e.container===t);return -1!==i?this.containers[i].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n}mount(e,t){let n=gE(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){let n=[],r=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=fa(e);return t.body===e?fl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){let e=fU(fa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${gC(r)+e}px`;let t=fa(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${gC(t)+e}px`})}if(r.parentNode instanceof DocumentFragment)e=fa(r).body;else{let t=r.parentElement,n=fl(r);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(r,t))}remove(e,t=!0){let n=this.modals.indexOf(e);if(-1===n)return n;let r=gE(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(
vendor: 16,334 bytes, line 134
134),e.modalRef&&gO(e.modalRef,t),gU(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&gO(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}let gR=new gT;var gA="bottom",gM="right",gP="left",gD="auto",gI=["top",gA,gM,gP],gN="start",gF="viewport",gz="popper",gL=gI.reduce(function(e,t){return e.concat([t+"-"+gN,t+"-end"])},[]),g_=[].concat(gI,[gD]).reduce(function(e,t){return e.concat([t,t+"-"+gN,t+"-end"])},[]),gB=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gV(e){return e?(e.nodeName||"").toLowerCase():null}function gW(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gq(e){var t=gW(e).Element;return e instanceof t||e instanceof Element}function gJ(e){var t=gW(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gH(e){if("undefined"==typeof ShadowRoot)return!1;var t=gW(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gK(e){return e.split("-")[0]}var gG=Math.max,gQ=Math.min,gX=Math.round;function gY(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function gZ(){return!/^((?!chrome|android).)*safari/i.test(gY())}function g0(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&gJ(e)&&(i=e.offsetWidth>0&&gX(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&gX(r.height)/e.offsetHeight||1);var s=(gq(e)?gW(e):window).visualViewport,a=!gZ()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,u=(r.top+(a&&s?s.offsetTop:0))/o,c=r.width/i,h=r.height/o;return{width:c,height:h,top:u,right:l+c,bottom:u+h,left:l,x:l,y:u}}function g1(e){var t=g0(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function g2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gH(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function g3(e){return gW(e).getComputedStyle(e)}function g4(e){return((gq(e)?e.ownerDocument:e.document)||window.document).documentElement}function g5(e){return"html"===gV(e)?e:e.assignedSlot||e.parentNode||(gH(e)?e.host:null)||g4(e)}function g6(e){return gJ(e)&&"fixed"!==g3(e).position?e.offsetParent:null}function g8(e){for(var t=gW(e),n=g6(e);n&&["table","td","th"].indexOf(gV(n))>=0&&"static"===g3(n).position;)n=g6(n);return n&&("html"===gV(n)||"body"===gV(n)&&"static"===g3(n).position)?t:n||function(e){var t=/firefox/i.test(gY());if(/Trident/i.test(gY())&&gJ(e)&&"fixed"===g3(e).position)return null;var n=g5(e);for(gH(n)&&(n=n.host);gJ(n)&&0>["html","body"].indexOf(gV(n));){var r=g3(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function g9(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function g7(e,t,n){return gG(e,gQ(t,n))}function ve(){return{top:0,right:0,bottom:0,left:0}}function vt(e){return Object.assign({},ve(),e)}function vn(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function vr(e){return e.split("-")[1]}var vi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vo(e){var t,n,r,i,o,s,a,l=e.popper,u=e.popperRect,c=e.placement,h=e.variation,d=e.offsets,f=e.position,p=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,v=e.isFixed,y=d.x,b=void 0===y?0:y,x=d.y,w=void 0===x?0:x,k="function"==typeof g?g({x:b,y:w}):{x:b,y:w};b=k.x,w=k.y;var S=d.hasOwnProperty("x"),$=d.hasOwnProperty("y"),j=gP,O="top",C=window;if(m){var U=g8(l),E="clientHeight",T="clientWidth";U===gW(l)&&"static"!==g3(U=g4(l)).position&&"absolute"===f&&(E="scrollHeight",T="scrollWidth"),("top"===c||(c===gP||c===gM)&&"end"===h)&&(O=gA,w-=(v&&U===C&&C.visualViewport?C.visualViewport.height:U[E])-u.height,w*=p?1:-1),(c===gP||("top"===c||c===gA)&&"end"===h)&&(j=gM,b-=(v&&U===C&&C.visualViewport?C.visualViewport.width:U[T])-u.width,b*=p?1:-1)}var R=Object.assign({position:f},m&&vi),A=!0===g?(t={x:b,y:w},n=gW(l),r=t.x,i=t.y,{x:gX(r*(o=n.devicePixelRatio||1))/o||0,y:gX(i*o)/o||0}):{x:b,y:w};return(b=A.x,w=A.y,p)?Object.assign({},R,((a={})[O]=$?"0":"",a[j]=S?"0":"",a.transform=1>=(C.devicePixelRatio||1)?"translate("+b+"px, "+w+"px)":"translate3d("+b+"px, "+w+"px, 0)",a)):Object.assign({},R,((s={})[O]=$?w+"px":"",s[j]=S?b+"px":"",s.transform="",s))}var vs={passive:!0},va={left:"right",right:"left",bottom:"top",top:"bottom"};function vl(e){return e.replace(/left|right|bottom|top/g,function(e){return va[e]})}var vu={start:"end",end:"start"};function vc(e){return e.replace(/start|end/g,function(e){return vu[e]})}function vh(e){var t=gW(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vd(e){return g0(g4(e)).left+vh(e).scrollLeft}function vf(e){var t=g3(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vp(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(gV(t))>=0?t.ownerDocument.body:gJ(t)&&vf(t)?t:e(g5(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=gW(r),s=i?[o].concat(o.visualViewport||[],vf(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(vp(g5(s)))}function vm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vg(e,t,n){var r,i,o,s,a,l,u,c,h,d;return t===gF?vm(function(e,t){var n=gW(e),r=g4(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var u=gZ();(u||!u&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+vd(e),y:l}}(e,n)):gq(t)?((r=g0(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):vm((i=g4(e),s=g4(i),a=vh(i),l=null==(o=i.ownerDocument)?void 0:o.body,u=gG(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=gG(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),h=-a.scrollLeft+vd(i),d=-a.scrollTop,"rtl"===g3(l||s).direction&&(h+=gG(s.clientWidth,l?l.clientWidth:0)-u),{width:u,height:c,x:h,y:d}))}function vv(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?gK(i):null,s=i?vr(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:a,y:n.y-r.height};break;case gA:t={x:a,y:n.y+n.height};break;case gM:t={x:n.x+n.width,y:l};break;case gP:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?g9(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case gN:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function vy(e,t){void 0===t&&(t={});var n,r,i,o,s,a,l,u,c=t,h=c.placement,d=void 0===h?e.placement:h,f=c.strategy,p=void 0===f?e.strategy:f,m=c.boundary,g=c.rootBoundary,v=c.elementContext,y=void 0===v?gz:v,b=c.altBoundary,x=c.padding,w=void 0===x?0:x,k=vt("number"!=typeof w?w:vn(w,gI)),S=e.rects.popper,$=e.elements[void 0!==b&&b?y===gz?"reference":gz:y],j=(n=gq($)?$:$.contextElement||g4(e.elements.popper),r=void 0===m?"clippingParents":m,i=void 0===g?gF:g,l=(a=[].concat("clippingParents"===r?(o=vp(g5(n)),gq(s=["absolute","fixed"].indexOf(g3(n).position)>=0&&gJ(n)?g8(n):n)?o.filter(function(e){return gq(e)&&g2(e,s)&&"body"!==gV(e)}):[]):[].concat(r),[i]))[0],(u=a.reduce(function(e,t){var r=vg(n,t,p);return e.top=gG(r.top,e.top),e.right=gQ(r.right,e.right),e.bottom=gQ(r.bottom,e.bottom),e.left=gG(r.left,e.left),e},vg(n,l,p))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),O=g0(e.elements.reference),C=vv({reference:O,element:S,strategy:"absolute",placement:d}),U=vm(Object.assign({},S,C)),E=y===gz?U:O,T={top:j.top-E.top+k.top,bottom:E.bottom-j.bottom+k.bottom,left:j.left-E.left+k.left,right:E.right-j.right+k.right},R=e.modifiersData.offset;if(y===gz&&R){var A=R[d];Object.keys(T).forEach(function(e){var t=[gM,gA].indexOf(e)>=0?1:-1,n=["top",gA].indexOf(e)>=0?"y":"x";T[e]+=A[n]*t})}return T}function vb(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function vx(e){return["top",gM,gA,gP].some(function(t){return e[t]>=0})}var vw={placement:"bottom",modifiers:[],strategy:"absolute"};function vk(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var vS=(y=void 0===(v=(g={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,l=gW(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,vs)}),a&&l.addEventListener("resize",n.update,vs),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,vs)}),a&&l.removeEventListener("resize",n.update,vs)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=vv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,s=void 0===o||o,a={placement:gK(t.placement),variation:vr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,vo(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,vo(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];gJ(i)&&gV(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});gJ(r)&&gV(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=g_.reduce(function(e,n){var r,i,s,a,l,u;return e[n]=(r=t.rects,s=[gP,"top"].indexOf(i=gK(n))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=a[1],l=l||0,u=(u||0)*s,[gP,gM].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=gK(g)===g,y=l||(v||!p?[vl(g)]:function(e){if(gK(e)===gD)return[];var t=vl(e);return[vc(e),t,vc(t)]}(g)),b=[g].concat(y).reduce(function(e,n){var r,i,o,s,a,l,d,f,g,v,y,b;return e.concat(gK(n)===gD?(i=(r={placement:n,boundary:c,rootBoundary:h,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=r.boundary,s=r.rootBoundary,a=r.padding,l=r.flipVariations,f=void 0===(d=r.allowedAutoPlacements)?g_:d,0===(y=(v=(g=vr(i))?l?gL:gL.filter(function(e){return vr(e)===g}):gI).filter(function(e){return f.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,n){return e[n]=vy(t,{placement:n,boundary:o,rootBoundary:s,padding:a})[gK(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),x=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,$=b[0],j=0;j<b.length;j++){var O=b[j],C=gK(O),U=vr(O)===gN,E=["top",gA].indexOf(C)>=0,T=E?"width":"height",R=vy(t,{placement:O,boundary:c,rootBoundary:h,altBoundary:d,padding:u}),A=E?U?gM:gP:U?gA:"top";x[T]>w[T]&&(A=vl(A));var M=vl(A),P=[];if(o&&P.push(R[C]<=0),a&&P.push(R[A]<=0,R[M]<=0),P.every(function(e){return e})){$=O,S=!1;break}k.set(O,P)}if(S)for(var D=p?3:1,I=function(e){var t=b.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return $=t,"break"},N=D;N>0&&"break"!==I(N);N--);t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,s=n.boundary,a=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,h=void 0===c||c,d=n.tetherOffset,f=void 0===d?0:d,p=vy(t,{boundary:s,rootBoundary:a,padding:u,altBoundary:l}),m=gK(t.placement),g=vr(t.placement),v=!g,y=g9(m),b="x"===y?"y":"x",x=t.modifiersData.popperOffsets,w=t.rects.reference,k=t.rects.popper,S="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,$="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(x){if(void 0===i||i){var C,U="y"===y?"top":gP,E="y"===y?gA:gM,T="y"===y?"height":"width",R=x[y],A=R+p[U],M=R-p[E],P=h?-k[T]/2:0,D=g===gN?w[T]:k[T],I=g===gN?-k[T]:-w[T],N=t.elements.arrow,F=h&&N?g1(N):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ve(),L=z[U],_=z[E],B=g7(0,w[T],F[T]),V=v?w[T]/2-P-B-L-$.mainAxis:D-B-L-$.mainAxis,W=v?-w[T]/2+P+B+_+$.mainAxis:I+B+_+$.mainAxis,q=t.elements.arrow&&g8(t.elements.arrow),J=q?"y"===y?q.clientTop||0:q.clientLeft||0:0,H=null!=(C=null==j?void 0:j[y])?C:0,K=g7(h?gQ(A,R+V-H-J):A,R,h?gG(M,R+W-H):M);x[y]=K,O[y]=K-R}if(void 0!==o&&o){var G,Q,X="x"===y?"top":gP,Y="x"===y?gA:gM,Z=x[b],ee="y"===b?"height":"width",et=Z+p[X],en=Z-p[Y],er=-1!==["top",gP].indexOf(m),ei=null!=(Q=null==j?void 0:j[b])?Q:0,eo=er?et:Z-w[ee]-k[ee]-ei+$.altAxis,es=er?Z+w[ee]+k[ee]-ei-$.altAxis:en,ea=h&&er?(G=g7(eo,Z,es))>es?es:G:g7(h?eo:et,Z,h?es:en);x[b]=ea,O[b]=ea-Z}t.modifiersData[r]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,l=gK(r.placement),u=g9(l),c=[gP,gM].indexOf(l)>=0?"height":"width";if(s&&a){var h=vt("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:vn(t,gI)),d=g1(s),f="y"===u?"top":gP,p="y"===u?gA:gM,m=r.rects.reference[c]+r.rects.reference[u]-a[u]-r.rects.popper[c],g=a[u]-r.rects.reference[u],v=g8(s),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=h[f],x=y-d[c]-h[p],w=y/2-d[c]/2+(m/2-g/2),k=g7(b,w,x);r.modifiersData[i]=((n={})[u]=k,n.centerOffset=k-w,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&g2(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.re
134cts.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=vy(t,{elementContext:"reference"}),a=vy(t,{altBoundary:!0}),l=vb(s,r),u=vb(a,i,o),c=vx(l),h=vx(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}}]}).defaultModifiers)?[]:v,x=void 0===(b=g.defaultOptions)?vw:b,function(e,t,n){void 0===n&&(n=x);var r,i,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},vw,x),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(n){var r,i,a,c,h,d="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},x,o.options,d),o.scrollParents={reference:gq(e)?vp(e):e.contextElement?vp(e.contextElement):[],popper:vp(t)};var f=(i=Object.keys(r=[].concat(y,o.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),a=new Map,c=new Set,h=[],i.forEach(function(e){a.set(e.name,e)}),i.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var n=a.get(t);n&&e(n)}}),h.push(t)}(e)}),gB.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=f.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:o,name:t,instance:l,options:void 0===n?{}:n});s.push(i||function(){})}}),l.update()},forceUpdate:function(){if(!a){var e,t,n,r,i,s,u,c,h,d,f,p,m=o.elements,g=m.reference,v=m.popper;if(vk(g,v)){o.rects={reference:(t=g8(v),n="fixed"===o.options.strategy,r=gJ(t),c=gJ(t)&&(s=gX((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,u=gX(i.height)/t.offsetHeight||1,1!==s||1!==u),h=g4(t),d=g0(g,c,n),f={scrollLeft:0,scrollTop:0},p={x:0,y:0},(r||!r&&!n)&&(("body"!==gV(t)||vf(h))&&(f=(e=t)!==gW(e)&&gJ(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:vh(e)),gJ(t)?(p=g0(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):h&&(p.x=vd(h))),{x:d.left+f.scrollLeft-p.x,y:d.top+f.scrollTop-p.y,width:d.width,height:d.height}),popper:g1(v)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var y=0;y<o.orderedModifiers.length;y++){if(!0===o.reset){o.reset=!1,y=-1;continue}var b=o.orderedModifiers[y],x=b.fn,w=b.options,k=void 0===w?{}:w,S=b.name;"function"==typeof x&&(o=x({state:o,options:k,name:S,instance:l})||o)}}}},update:(r=function(){return new Promise(function(e){l.forceUpdate(),e(o)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){u(),a=!0}};if(!vk(e,t))return l;function u(){s.forEach(function(e){return e()}),s=[]}return l.setOptions(n).then(function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l});let v$="Popper";function vj(e){return gw(v$,e)}!function(e,t){let n={};t.forEach(t=>{n[t]=gw(e,t)})}(v$,["root"]);let vO=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],vC=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function vU(e){return"function"==typeof e?e():e}let vE=()=>fT({root:["root"]},function(e){let{disableDefaultClasses:t}=em.useContext(mx);return n=>t?"":e(n)}(vj)),vT={},vR=em.forwardRef(function(e,t){var n;let{anchorEl:r,children:i,direction:o,disablePortal:s,modifiers:a,open:l,placement:u,popperOptions:c,popperRef:h,slotProps:d={},slots:f={},TransitionProps:p}=e,m=hS(e,vO),g=em.useRef(null),v=fm(g,t),y=em.useRef(null),b=fm(y,h),x=em.useRef(b);fn(()=>{x.current=b},[b]),em.useImperativeHandle(h,()=>y.current,[]);let w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,o),[k,S]=em.useState(w),[$,j]=em.useState(vU(r));em.useEffect(()=>{y.current&&y.current.forceUpdate()}),em.useEffect(()=>{r&&j(vU(r))},[r]),fn(()=>
134{if(!$||!l)return;let e=e=>{S(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),c&&null!=c.modifiers&&(t=t.concat(c.modifiers));let n=vS($,g.current,hk({placement:w},c,{modifiers:t}));return x.current(n),()=>{n.destroy(),x.current(null)}},[$,s,a,l,c,w]);let O={placement:k};null!==p&&(O.TransitionProps=p);let C=vE(),U=null!=(n=f.root)?n:"div",E=mO({elementType:U,externalSlotProps:d.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:C.root});return ep.jsx(U,hk({},E,{children:"function"==typeof i?i(O):i}))}),vA=em.forwardRef(function(e,t){let n;let{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:h="bottom",popperOptions:d=vT,popperRef:f,style:p,transition:m=!1,slotProps:g={},slots:v={}}=e,y=hS(e,vC),[b,x]=em.useState(!0);if(!l&&!c&&(!m||b))return null;if(o)n=o;else if(r){let e=vU(r);n=e&&void 0!==e.nodeType?fa(e).body:fa(null).body}
134let w=!c&&l&&(!m||b)?"none":void 0,k=m?{in:c,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return ep.jsx(gj,{disablePortal:a,container:n,children:ep.jsx(vR,hk({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:t,open:m?!b:c,placement:h,popperOptions:d,popperRef:f,slotProps:g,slots:v},y,{style:hk({position:"fixed",top:0,left:0,display:w},p),TransitionProps:k,children:i}))})}),vM=["onChange","maxRows","minRows","style","value"];function vP(e){return parseInt(e,10)||0}let vD={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},vI=em.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:o,value:s}=e,a=hS(e,vM),{current:l}=em.useRef(null!=s),u=em.useRef(null),c=fm(t,u),h=em.useRef(null),d=em.useCallback(()=>{let t=u.current,n=fl(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};let o=h.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");let s=n.boxSizing,a=vP(n.paddingBottom)+vP(n.paddingTop),l=vP(n.borderBottomWidth)+vP(n.borderTopWidth),c=o.scrollHeight;o.value="x";let d=o.scrollHeight,f=c;return i&&(f=Math.max(Number(i)*d,f)),r&&(f=Math.min(Number(r)*d,f)),{outerHeightStyle:(f=Math.max(f,d))+("border-box"===s?a+l:0),overflowing:1>=Math.abs(f-c)}},[r,i,e.placeholder]),f=em.useCallback(()=>{let e=d();if(null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflowing)return;let t=u.current;t.style.height=`${e.outerHeightStyle}px`,t.style.overflow=e.overflowing?"hidden":""},[d]);return fn(()=>{let e,t;let n=()=>{f()},r=fo(n),i=u.current,o=fl(i);return o.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(n)).observe(i),()=>{r.clear(),cancelAnimationFrame(e),o.removeEventListener("resize",r),t&&t.disconnect()}},[d,f]),fn(()=>{f()}),ep.jsxs(em.Fragment,{children:[ep.jsx("textarea",hk({value:s,onChange:e=>{l||f(),n&&n(e)},ref:c,rows:i,style:o},a)),ep.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:hk({},vD,o,{paddingTop:0,paddingBottom:0})})]})});function vN(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function vF(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return -1}let vz=function(e={}){let{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:s=!1}=e;return(e,{inputValue:a,getOptionLabel:l})=>{let u=s?a.trim():a;n&&(u=u.toLowerCase()),t&&(u=vN(u));let c=u?e.filter(e=>{let r=(o||l)(e);return n&&(r=r.toLowerCase()),t&&(r=vN(r)),"start"===i?0===r.indexOf(u):r.indexOf(u)>-1}):e;return"number"==typeof r?c.slice(0,r):c}}(),vL=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};var v_={};
134Object.defineProperty(v_,"__esModule",{value:!0});var vB=v_.default=void 0,vV=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=vW(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(ef());function vW(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(vW=function(e){return e?n:t})(e)}vB=v_.default=function(e=null){let t=vV.useContext(pU.ThemeContext);return t&&0!==Object.keys(t).length?t:e};let vq=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],vJ=pX(vA,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vH=em.forwardRef(function(e,t){var n;let r=vB(),i=p$({props:e,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:u,disablePortal:c,keepMounted:h,modifiers:d,open:f,placement:p,popperOptions:m,popperRef:g,transition:v,slots:y,slotProps:b}=i,x=cu(i,vq),w=null!=(n=null==y?void 0:y.root)?n:null==a?void 0:a.Root,k=ew({anchorEl:o,container:u,disablePortal:c,keepMounted:h,modifiers:d,open:f,placement:p,popperOptions:m,popperRef:g,transition:v},x);return ep.jsx(vJ,ew({as:s,direction:null==r?void 0:r.direction,slots:{root:w},slotProps:null!=b?b:l},k,{ref:t}))});function vK(e){return dq("MuiListSubheader",e)}dJ("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);let vG=["className","color","component","disableGutters","disableSticky","inset"],vQ=e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e;return fT({root:["root","default"!==n&&`color${hF(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]},vK,t)},vX=pX("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${hF(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>ew({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),vY=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiListSubheader"}),{className:r,color:i="default",component:o="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,u=cu(n,vG),c=ew({},n,{color:i,component:o,disableGutters:s,disableSticky:a,inset:l}),h=vQ(c);return ep.jsx(vX,ew({as:o,className:dB(h.root,r),ref:t,ownerState:c},u))});vY.muiSkipListHighlight=!0;let vZ=p6(ep.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function v0(e){return dq("MuiChip",e)}let v1=dJ("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),v2=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],v3=e=>{let{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e;return fT({root:["root",l,n&&"disabled",`size${hF(r)}
134`,`color${hF(i)}`,a&&"clickable",a&&`clickableColor${hF(i)}`,s&&"deletable",s&&`deletableColor${hF(i)}`,`${l}${hF(i)}`],label:["label",`label${hF(r)}`],avatar:["avatar",`avatar${hF(r)}`,`avatarColor${hF(i)}`],icon:["icon",`icon${hF(r)}`,`iconColor${hF(o)}`],deleteIcon:["deleteIcon",`deleteIcon${hF(r)}`,`deleteIconColor${hF(i)}`,`deleteIcon${hF(l)}Color${hF(i)}`]},v0,t)},v4=pX("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${v1.avatar}`]:t.avatar},{[`& .${v1.avatar}`]:t[`avatar${hF(a)}`]},{[`& .${v1.avatar}`]:t[`avatarColor${hF(r)}`]},{[`& .${v1.icon}`]:t.icon},{[`& .${v1.icon}`]:t[`icon${hF(a)}`]},{[`& .${v1.icon}`]:t[`iconColor${hF(i)}`]},{[`& .${v1.deleteIcon}`]:t.deleteIcon},{[`& .${v1.deleteIcon}`]:t[`deleteIcon${hF(a)}`]},{[`& .${v1.deleteIcon}`]:t[`deleteIconColor${hF(r)}`]},{[`& .${v1.deleteIcon}`]:t[`deleteIcon${hF(l)}Color${hF(r)}`]},t.root,t[`size${hF(a)}`],t[`color${hF(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${hF(r)})`],s&&t.deletable,s&&"default"!==r&&t[`deletableColor${hF(r)}`],t[l],t[`${l}${hF(r)}`]]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return ew({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${v1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${v1.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${v1.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${v1.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${v1.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${v1.icon}`]:ew({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&ew({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${v1.deleteIcon}`]:ew({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:fZ(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:fZ(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:fZ(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${v1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fZ(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${v1.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>ew({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fZ(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${v1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fZ(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${v1.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>ew({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${v1.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${v1.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${v1.avatar}`]:{marginLeft:4},[`& .${v1.avatarSmall}`]:{marginLeft:2},[`& .${v1.icon}`]:{marginLeft:4},[`& .${v1.iconSmall}`]:{marginLeft:2},[`& .${v1.deleteIcon}`]:{marginRight:5},[`& .${v1.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainCh
134annel} / 0.7)`:fZ(e.palette[t.color].main,.7)}`,[`&.${v1.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fZ(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${v1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:fZ(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${v1.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:fZ(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),v5=pX("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${hF(r)}`]]}})(({ownerState:e})=>ew({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7}));function v6(e){return"Backspace"===e.key||"Delete"===e.key}let v8=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiChip"}),{avatar:r,className:i,clickable:o,color:s="default",component:a,deleteIcon:l,disabled:u=!1,icon:c,label:h,onClick:d,onDelete:f,onKeyDown:p,onKeyUp:m,size:g="medium",variant:v="filled",tabIndex:y,skipFocusWhenDisabled:b=!1}=n,x=cu(n,v2),w=em.useRef(null),k=fm(w,t),S=e=>{e.stopPropagation(),f&&f(e)},$=!1!==o&&!!d||o,j=$||f?mG:a||"div",O=ew({},n,{component:j,disabled:u,size:g,color:s,iconColor:em.isValidElement(c)&&c.props.color||s,onDelete:!!f,clickable:$,variant:v}),C=v3(O),U=j===mG?ew({component:a||"div",focusVisibleClassName:C.focusVisible},f&&{disableRipple:!0}):{},E=null;f&&(E=l&&em.isValidElement(l)?em.cloneElement(l,{className:dB(l.props.className,C.deleteIcon),onClick:S}):ep.jsx(vZ,{className:dB(C.deleteIcon),onClick:S}));let T=null;r&&em.isValidElement(r)&&(T=em.cloneElement(r,{className:dB(C.avatar,r.props.className)}));let R=null;return c&&em.isValidElement(c)&&(R=em.cloneElement(c,{className:dB(C.icon,c.props.className)})),ep.jsxs(v4,ew({as:j,className:dB(C.root,i),disabled:!!$&&!!u||void 0,onClick:d,onKeyDown:e=>{e.currentTarget===e.target&&v6(e)&&e.preventDefault(),p&&p(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&v6(e)?f(e):"Escape"===e.key&&w.current&&w.current.blur()),m&&m(e)},ref:k,tabIndex:b&&u?-1:y,ownerState:O},U,x,{children:[T||R,ep.jsx(v5,{className:dB(C.label),ownerState:O,children:h}),E]}))});function v9({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}let v7=em.createContext(void 0);function ye(){return em.useContext(v7)}function yt(e){return ep.jsx(dD,ew({},e,{defaultTheme:pk,themeId:cl}))}function yn(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function yr(e,t=!1){return e&&(yn(e.value)&&""!==e.value||t&&yn(e.defaultValue)&&""!==e.defaultValue)}function yi(e){return dq("MuiInputBase",e)}let yo=dJ("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ys=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ya=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${hF(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},yl=(e,t)=>{let{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},yu=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:h,size:d,startAdornment:f,type:p}=e;return fT({root:["root",`color${hF(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",d&&"medium"!==d&&`size${hF(d)}`,c&&"multiline",f&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled","search"===p&&"inputTypeSearch",c&&"inputMultiline","small"===d&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]},yi,t)},yc=pX("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ya})(({theme:e,ownerState:t})=>ew({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",curs
134or:"text",display:"inline-flex",alignItems:"center",[`&.${yo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ew({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),yh=pX("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yl})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode,r=ew({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return ew({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${yo.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${yo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),yd=ep.jsx(yt,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),yf=em.forwardRef(function(e,t){var n;let r=p$({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:s,className:a,components:l={},componentsProps:u={},defaultValue:c,disabled:h,disableInjectingGlobalStyles:d,endAdornment:f,fullWidth:p=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:y,maxRows:b,minRows:x,multiline:w=!1,name:k,onBlur:S,onChange:$,onClick:j,onFocus:O,onKeyDown:C,onKeyUp:U,placeholder:E,readOnly:T,renderSuffix:R,rows:A,slotProps:M={},slots:P={},startAdornment:D,type:I="text",value:N}=r,F=cu(r,ys),z=null!=v.value?v.value:N,{current:L}=em.useRef(null!=z),_=em.useRef(),B=em.useCallback(e=>{},[]),V=fm(_,y,v.ref,B),[W,q]=em.useState(!1),J=ye(),H=v9({props:r,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=J?J.focused:W,em.useEffect(()=>{!J&&h&&W&&(q(!1),S&&S())},[J,h,W,S]);let K=J&&J.onFilled,G=J&&J.onEmpty,Q=em.useCallback(e=>{yr(e)?K&&K():G&&G()},[K,G]);fn(()=>{L&&Q({value:z})},[z,Q,L]),em.useEffect(()=>{Q(_.current)},[]);let X=g,Y=v;w&&"input"===X&&(Y=A?ew({type:void 0,minRows:A,maxRows:A},Y):ew({type:void 0,maxRows:b,minRows:x},Y),X=vI),em.useEffect(()=>{J&&J.setAdornedStart(!!D)},[J,D]);let Z=ew({},r,{color:H.color||"primary",disabled:H.disabled,endAdornment:f,error:H.error,focused:H.focused,formControl:J,fullWidth:p,hiddenLabel:H.hiddenLabel,multiline:w,size:H.size,startAdornment:D,type:I}),ee=yu(Z),et=P.root||l.Root||yc,en=M.root||u.root||{},er=P.input||l.Input||yh;return Y=ew({},Y,null!=(n=M.input)?n:u.input),ep.jsxs(em.Fragment,{children:[!d&&yd,ep.jsxs(et,ew({},en,!my(et)&&{ownerState:ew({},Z,en.ownerState)},{ref:t,onClick:e=>{_.current&&e.currentTarget===e.target&&_.current.focus(),j&&j(e)}},F,{className:dB(ee.root,en.className,a,T&&"MuiInputBase-readOnly"),children:[D,ep.jsx(v7.Provider,{value:null,children:ep.jsx(er,ew({ownerState:Z,"aria-invalid":H.error,"aria-describedby":i,autoComplete:o,autoFocus:s,defaultValue:c,disabled:H.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?_.current:{value:"x"})},name:k,placeholder:E,readOnly:T,required:H.required,rows:A,value:z,onKeyDown:C,onKeyUp:U,type:I},Y,!my(er)&&{as:X,ownerState:ew({},Z,Y.ownerState)},{ref:V,className:dB(ee.input,Y.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{S&&S(e),v.onBlur&&v.onBlur(e),J&&J.onBlur?J.onBlur(e):q(!1)},onChange:(e,...t)=>{if(!L){let t=e.target||_.current;if(null==t)throw Error(cs(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),$&&$(e,...t)},onFocus:e=>{if(H.disabled){e.stopPropagation();return}O&&O(e),v.onFocus&&v.onFocus(e),J&&J.onFocus?J.onFocus(e):q(!0)}}))}),f,R?R(ew({},H,{startAdornment:D})):null]}))]})});function yp(e){return dq("MuiInput",e)}let ym=ew({},yo,dJ("MuiInput",["root","underline","input"]));function yg(e){return dq("MuiOutlinedInput",e)}let yv=ew({},yo,dJ("MuiOutlinedInput",["root","notchedOutline","input"]));function yy(e){return dq("MuiFilledInput",e)}let yb=ew({},yo,dJ("MuiFilledInput",["root","underline","input"])),yx=p6(ep.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function yw(e){return dq("MuiAutocomplete",e)}let yk=dJ("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","
134input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),yS=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],y$=["ref"],yj=e=>{let{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:u,size:c}=e;return fT({root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${hF(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},yw,t)},yO=pX("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:s,size:a}=n;return[{[`& .${yk.tag}`]:t.tag},{[`& .${yk.tag}`]:t[`tagSize${hF(a)}`]},{[`& .${yk.inputRoot}`]:t.inputRoot},{[`& .${yk.input}`]:t.input},{[`& .${yk.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${yk.focused} .${yk.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${yk.clearIndicator}`]:{visibility:"visible"}},[`& .${yk.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${yk.inputRoot}`]:{flexWrap:"wrap",[`.${yk.hasPopupIcon}&, .${yk.hasClearIcon}&`]:{paddingRight:30},[`.${yk.hasPopupIcon}.${yk.hasClearIcon}&`]:{paddingRight:56},[`& .${yk.input}`]:{width:0,minWidth:30}},[`& .${ym.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ym.root}.${yo.sizeSmall}`]:{[`& .${ym.input}`]:{padding:"2px 4px 3px 0"}},[`& .${yv.root}`]:{padding:9,[`.${yk.hasPopupIcon}&, .${yk.hasClearIcon}&`]:{paddingRight:39},[`.${yk.hasPopupIcon}.${yk.hasClearIcon}&`]:{paddingRight:65},[`& .${yk.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${yk.endAdornment}`]:{right:9}},[`& .${yv.root}.${yo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${yk.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${yb.root}`]:{paddingTop:19,paddingLeft:8,[`.${yk.hasPopupIcon}&, .${yk.hasClearIcon}&`]:{paddingRight:39},[`.${yk.hasPopupIcon}.${yk.hasClearIcon}&`]:{paddingRight:65},[`& .${yb.input}`]:{padding:"7px 4px"},[`& .${yk.endAdornment}`]:{right:9}},[`& .${yb.root}.${yo.sizeSmall}`]:{paddingBottom:1,[`& .${yb.input}`]:{padding:"2.5px 4px"}},[`& .${yo.hiddenLabel}`]:{paddingTop:8},[`& .${yb.root}.${yo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${yk.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${yb.root}.${yo.hiddenLabel}.${yo.sizeSmall}`]:{[`& .${yk.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${yk.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0}
vendor: 4,368 bytes, line 134
134,variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${yk.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${yk.input}`]:{opacity:1}}}]}),yC=pX("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),yU=pX(m3,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),yE=pX(m3,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>ew({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),yT=pX(vH,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${yk.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),yR=pX(mv,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>ew({},e.typography.body1,{overflow:"auto"})),yA=pX("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),yM=pX("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),yP=pX("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${yk.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${yk.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${yk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fZ(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${yk.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fZ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${yk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fZ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),yD=pX(vY,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yI=pX("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${yk.option}`]:{paddingLeft:24}}),yN=em.forwardRef(function(e,t){var n,r,i,o;let s;let a=p$({props:e,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:h=!1,ChipProps:d,className:f,clearIcon:p=N||(N=ep.jsx(m9,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:g=!1,clearText:v="Clear",closeText:y="Close",componentsProps:b={},defaultValue:x=a.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:k=!1,disabled:S=!1,disabledItemsFocusable:$=!1,disableListWrap:j=!1,disablePortal:O=!1,filterSelectedOptions:C=!1,forcePopupIcon:U="auto",freeSolo:E=!1,fullWidth:T=!1,getLimitTagsText:R=e=>`+${e}`,getOptionLabel:A,groupBy:M,handleHomeEndKeys:P=!a.freeSolo,includeInputInList:D=!1,limitTags:I=-1,ListboxComponent:z="ul",ListboxProps:L,loading:_=!1,loadingText:B="Loading…",multiple:V=!1,noOptionsText:W="No options",openOnFocus:q=!1,openText:J="Open",Pa
134perComponent:H=mv,PopperComponent:K=vH,popupIcon:G=F||(F=ep.jsx(yx,{})),readOnly:Q=!1,renderGroup:X,renderInput:Y,renderOption:Z,renderTags:ee,selectOnFocus:et=!a.freeSolo,size:en="medium",slotProps:er={}}=a,ei=cu(a,yS),{getRootProps:eo,getInputProps:es,getInputLabelProps:ea,getPopupIndicatorProps:el,getClearProps:eu,getTagProps:ec,getListboxProps:eh,getOptionProps:ed,value:ef,dirty:eg,expanded:ev,id:ey,popupOpen:eb,focused:ex,focusedTag:ek,anchorEl:eS,setAnchorEl:e$,inputValue:ej,groupedOptions:eO}=function(e){let{unstable_isActiveElementInListbox:t=vL,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:d=!1,disabled:f,disabledItemsFocusable:p=!1,disableListWrap:m=!1,filterOptions:g=vz,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:b,getOptionKey:x,getOptionLabel:w=e=>{var t;return null!=(t=e.label)?t:e},groupBy:k,handleHomeEndKeys:S=!e.freeSolo,id:$,includeInputInList:j=!1,inputValue:O,isOptionEqualToValue:C=(e,t)=>e===t,multiple:U=!1,onChange:E,onClose:T,onHighlightChange:R,onInputChange:A,onOpen:M,open:P,openOnFocus:D=!1,options:I,readOnly:N=!1,selectOnFocus:F=!e.freeSolo,value:z}=e,L=fd($),_=w;_=e=>{let t=w(e);return"string"!=typeof t?String(t):t};let B=em.useRef(!1),V=em.useRef(!0),W=em.useRef(null),q=em.useRef(null),[J,H]=em.useState(null),[K,G]=em.useState(-1),Q=i?0:-1,X=em.useRef(Q),[Y,Z]=ff({controlled:z,default:c,name:u}),[ee,et]=ff({controlled:O,default:"",name:u,state:"inputValue"}),[en,er]=em.useState(!1),ei=em.useCallback((e,t)=>{let n;if((U?Y.length<t.length:null!==t)||a){if(U)n="";else if(null==t)n="";else{let e=_(t);n="string"==typeof e?e:""}ee!==n&&(et(n),A&&A(e,n,"reset"))}},[_,ee,U,A,et,a,Y]),[eo,es]=ff({controlled:P,default:!1,name:u,state:"open"}),[ea,el]=em.useState(!0),eu=!U&&null!=Y&&ee===_(Y),ec=eo&&!N,eh=ec?g(I.filter(e=>!(v&&(U?Y:[Y]).some(t=>null!==t&&C(e,t)))),{inputValue:eu&&ea?"":ee,getOptionLabel:_}):[],ed=fE({filteredOptions:eh,value:Y,inputValue:ee});em.useEffect(()=>{let e=Y!==ed.value;(!en||e)&&(!y||e)&&ei(null,Y)},[Y,ei,en,ed.value,y]);let ef=eo&&eh.length>0&&!N,ep=fp(e=>{-1===e?W.current.focus():J.querySelector(`[data-tag-index="${e}"]`).focus()});em.useEffect(()=>{U&&K>Y.length-1&&(G(-1),ep(-1))},[Y,U,K,ep]);let eg=fp(({event:e,index:t,reason:r="auto"})=>{if(X.current=t,-1===t?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${L}-option-${t}`),R&&R(e,-1===t?null:eh[t],r),!q.current)return;let i=q.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let o=q.current;if("listbox"!==q.current.getAttribute("role")&&(o=q.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===t){o.scrollTop=0;return}let s=q.current.querySelector(`[data-option-index="${t}"]`);if(s&&(s.classList.add(`${n}-focused`),"keyboard"===r&&s.classList.add(`${n}-focusVisible`),o.scrollHeight>o.clientHeight&&"mouse"!==r&&"touch"!==r)){let e=o.clientHeight+o.scrollTop,t=s.offsetTop+s.offsetHeight;t>e?o.scrollTop=t-o.clientHeight:s.offsetTop-s.offsetHeight*(k?1.3:0)<o.scrollTop&&(o.scrollTop=s.offsetTop-s.offsetHeight*(k?1.3:0))}}),ev=fp(({event:e,diff:t,direction:n="next",reason:i="auto"})=>{if(!ec)return;let o=function(e,t){if(!q.current||e<0||e>=eh.length)return -1;let n=e;for(;;){let r=q.current.querySelector(`[data-option-index="${n}"]`),i=!p&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!i)return n;if((n="next"===t?(n+1)%eh.length:(n-1+eh.length)%eh.length)===e)return -1}}((()=>{let e=eh.length-1;if("reset"===t)return Q;if("start"===t)return 0;if("end"===t)return e;let n=X.current+t;return n<0?-1===n&&j?-1:m&&-1!==X.current||Math.abs(t)>1?0:e:n>e?n===e+1&&j?-1:m||Math.abs(t)>1?e:0:n})(),n);if(eg({index:o,reason:i,event:e}),r&&"reset"!==t){if(-1===o)W.current.value=ee;else{let e=_(eh[o]);W.current.value=e,0===e.toLowerCase().indexOf(ee.toLowerCase())&&ee.length>0&&W.current.setSelectionRange(ee.length,e.length)}}}),ey=()=>{var e;if(-1!==X.current&&ed.filteredOptions&&ed.filteredOptions.length!==eh.length&&ed.inputValue===ee&&(U?Y.length===ed.value.length&&ed.value.every((e,t)=>_(Y[t])===_(e)):((e=ed.value)?_(e):"")===(Y?_(Y):""))){let e=ed.filteredOptions[X.current];
134if(e)return vF(eh,t=>_(t)===_(e))}return -1},eb=em.useCallback(()=>{if(!ec)return;let e=ey();if(-1!==e){X.current=e;return}let t=U?Y[0]:Y;if(0===eh.length||null==t){ev({diff:"reset"});return}if(q.current){if(null!=t){let e=eh[X.current];if(U&&e&&-1!==vF(Y,t=>C(e,t)))return;let n=vF(eh,e=>C(e,t));-1===n?ev({diff:"reset"}):eg({index:n});return}if(X.current>=eh.length-1){eg({index:eh.length-1});return}eg({index:X.current})}},[eh.length,!U&&Y,v,ev,eg,ec,ee,U]),ex=fp(e=>{fu(q,e),e&&eb()});em.useEffect(()=>{eb()},[eb]);let ew=e=>{!eo&&(es(!0),el(!0),M&&M(e))},ek=(e,t)=>{eo&&(es(!1),T&&T(e,t))},eS=(e,t,n,r)=>{if(U){if(Y.length===t.length&&Y.every((e,n)=>e===t[n]))return}else if(Y===t)return;E&&E(e,t,n,r),Z(t)},e$=em.useRef(!1),ej=(e,t,n="selectOption",r="options")=>{let i=n,o=t;if(U){let e=vF(o=Array.isArray(Y)?Y.slice():[],e=>C(t,e));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),i="removeOption")}ei(e,o),eS(e,o,i,{option:t}),d||e&&(e.ctrlKey||e.metaKey)||ek(e,i),(!0===s||"touch"===s&&e$.current||"mouse"===s&&!e$.current)&&W.current.blur()},eO=(e,t)=>{if(!U)return;""===ee&&ek(e,"toggleInput");let n=K;-1===K?""===ee&&"previous"===t&&(n=Y.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Y.length&&(n=-1)),G(n=function(e,t){if(-1===e)return -1;let n=e;for(;;){if("next"===t&&n===Y.length||"previous"===t&&-1===n)return -1;let e=J.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t)),ep(n)},eC=e=>{B.current=!0,et(""),A&&A(e,"","clear"),eS(e,U?[]:null,"clear")},eU=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(G(-1),ep(-1)),229!==t.which))switch(t.key){case"Home":ec&&S&&(t.preventDefault(),ev({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ec&&S&&(t.preventDefault(),ev({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ev({diff:-5,direction:"previous",reason:"keyboard",event:t}),ew(t);break;case"PageDown":t.preventDefault(),ev({diff:5,direction:"next",reason:"keyboard",event:t}),ew(t);break;case"ArrowDown":t.preventDefault(),ev({diff:1,direction:"next",reason:"keyboard",event:t}),ew(t);break;case"ArrowUp":t.preventDefault(),ev({diff:-1,direction:"previous",reason:"keyboard",event:t}),ew(t);break;case"ArrowLeft":eO(t,"previous");break;case"ArrowRight":eO(t,"next");break;case"Enter":if(-1!==X.current&&ec){let e=eh[X.current],n=!!b&&b(e);if(t.preventDefault(),n)return;ej(t,e,"selectOption"),r&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else y&&""!==ee&&!1===eu&&(U&&t.preventDefault(),ej(t,ee,"createOption","freeSolo"));break;case"Escape":ec?(t.preventDefault(),t.stopPropagation(),ek(t,"escape")):l&&(""!==ee||U&&Y.length>0)&&(t.preventDefault(),t.stopPropagation(),eC(t));break;case"Backspace":if(U&&!N&&""===ee&&Y.length>0){let e=-1===K?Y.length-1:K,n=Y.slice();n.splice(e,1),eS(t,n,"removeOption",{option:Y[e]})}break;case"Delete":if(U&&!N&&""===ee&&Y.length>0&&-1!==K){let e=Y.slice();e.splice(K,1),eS(t,e,"removeOption",{option:Y[K]})}}},eE=e=>{er(!0),D&&!B.current&&ew(e)},eT=e=>{if(t(q)){W.current.focus();return}er(!1),V.current=!0,B.current=!1,o&&-1!==X.current&&ec?ej(e,eh[X.current],"blur"):o&&y&&""!==ee?ej(e,ee,"blur","freeSolo"):a&&ei(e,Y),ek(e,"blur")},eR=e=>{let t=e.target.value;ee!==t&&(et(t),el(!1),A&&A(e,t,"input")),""===t?h||U||eS(e,null,"clear"):ew(e)},eA=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));X.current!==t&&eg({event:e,index:t,reason:"mouse"})},eM=e=>{eg({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),e$.current=!0},eP=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));ej(e,eh[t],"selectOption"),e$.current=!1},eD=e=>t=>{let n=Y.slice();n.splice(e,1),eS(t,n,"removeOption",{option:Y[e]})},eI=e=>{eo?ek(e,"toggleInput"):ew(e)},eN=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==L&&e.preventDefault()},eF=e=>{e.currentTarget.contains(e.target)&&(W.current.focus(),F&&V.current&&W.current.selectionEnd-W.current.selectionStart==0&&W.current.select(),V.current=!1)},ez=e=>{f||""!==ee&&eo||eI(e)},eL=y&&ee.length>0;eL=eL||(U?Y.length>0:null!==Y);let e_=eh;
134return k&&(e_=eh.reduce((e,t,n)=>{let r=k(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),f&&en&&eT(),{getRootProps:(e={})=>hk({"aria-owns":ef?`${L}-listbox`:null},e,{onKeyDown:eU(e),onMouseDown:eN,onClick:eF}),getInputLabelProps:()=>({id:`${L}-label`,htmlFor:L}),getInputProps:()=>({id:L,value:ee,onBlur:eT,onFocus:eE,onChange:eR,onMouseDown:ez,"aria-activedescendant":ec?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ef?`${L}-listbox`:void 0,"aria-expanded":ef,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:eC}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eI}),getTagProps:({index:e})=>hk({key:e,"data-tag-index":e,tabIndex:-1},!N&&{onDelete:eD(e)}),getListboxProps:()=>({role:"listbox",id:`${L}-listbox`,"aria-labelledby":`${L}-label`,ref:ex,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;let r=(U?Y:[Y]).some(e=>null!=e&&C(t,e)),i=!!b&&b(t);return{key:null!=(n=null==x?void 0:x(t))?n:_(t),tabIndex:-1,role:"option",id:`${L}-option-${e}`,onMouseMove:eA,onClick:eP,onTouchStart:eM,"data-option-index":e,"aria-disabled":i,"aria-selected":r}},id:L,inputValue:ee,value:Y,dirty:eL,expanded:ec&&J,popupOpen:ec,focused:en||-1!==K,anchorEl:J,setAnchorEl:H,focusedTag:K,groupedOptions:e_}}(ew({},a,{componentName:"Autocomplete"})),eC=!w&&!S&&eg&&!Q,eU=(!E||!0===U)&&!1!==U,{onMouseDown:eE}=es(),{ref:eT}=null!=L?L:{},eR=eh(),{ref:eA}=eR,eM=cu(eR,y$),eP=fm(eA,eT),eD=A||(e=>{var t;return null!=(t=e.label)?t:e}),eI=ew({},a,{disablePortal:O,expanded:ev,focused:ex,fullWidth:T,getOptionLabel:eD,hasClearIcon:eC,hasPopupIcon:eU,inputFocused:-1===ek,popupOpen:eb,size:en}),eN=yj(eI);if(V&&ef.length>0){let e=e=>ew({className:eN.tag,disabled:S},ec(e));s=ee?ee(ef,e,eI):ef.map((t,n)=>ep.jsx(v8,ew({label:eD(t),size:en},e({index:n}),d)))}if(I>-1&&Array.isArray(s)){let e=s.length-I;!ex&&e>0&&(s=s.splice(0,I)).push(ep.jsx("span",{className:eN.tag,children:R(e)},s.length))}let eF=X||(e=>ep.jsxs("li",{children:[ep.jsx(yD,{className:eN.groupLabel,ownerState:eI,component:"div",children:e.group}),ep.jsx(yI,{className:eN.groupUl,ownerState:eI,children:e.children})]},e.key)),ez=Z||((e,t)=>em.createElement("li",ew({},e,{key:e.key}),eD(t))),eL=(e,t)=>{let n=ed({option:e,index:t});return ez(ew({},n,{className:eN.option}),e,{selected:n["aria-selected"],index:t,inputValue:ej},eI)},e_=null!=(n=er.clearIndicator)?n:b.clearIndicator,eB=null!=(r=er.paper)?r:b.paper,eV=null!=(i=er.popper)?i:b.popper,eW=null!=(o=er.popupIndicator)?o:b.popupIndicator,eq=e=>ep.jsx(yT,ew({as:K,disablePortal:O,style:{width:eS?eS.clientWidth:null},ownerState:eI,role:"presentation",anchorEl:eS,open:eb},eV,{className:dB(eN.popper,null==eV?void 0:eV.className),children:ep.jsx(yR,ew({ownerState:eI,as:H},eB,{className:dB(eN.paper,null==eB?void 0:eB.className),children:e}))})),eJ=null;return!_&&eO.length>0?eJ=eq(ep.jsx(yP,ew({as:z,className:eN.listbox,ownerState:eI},eM,L,{ref:eP,children:eO.map((e,t)=>M?eF({key:e.key,group:e.group,children:e.options.map((t,n)=>eL(t,e.index+n))}):eL(e,t))}))):_&&0===eO.length?eJ=eq(ep.jsx(yA,{className:eN.loading,ownerState:eI,children:B})):0!==eO.length||E||_||(eJ=eq(ep.jsx(yM,{className:eN.noOptions,ownerState:eI,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:W}))),ep.jsxs(em.Fragment,{children:[ep.jsx(yO,ew({ref:t,className:dB(eN.root,f),ownerState:eI},eo(ei),{children:Y({id:ey,disabled:S,fullWidth:!0,size:"small"===en?"small":void 0,InputLabelProps:ea(),InputProps:ew({ref:e$,className:eN.inputRoot,startAdornment:s,onClick:e=>{e.target===e.currentTarget&&eE(e)}},(eC||eU)&&{endAdornment:ep.jsxs(yC,{className:eN.endAdornment,ownerState:eI,children:[eC?ep.jsx(yU,ew({},eu(),{"aria-label":v,title:v,ownerState:eI},e_,{className:dB(eN.clearIndicator,null==e_?void 0:e_.className),children:p})):null,eU?ep.jsx(yE,ew({},el(),{disabled:S,"aria-label":eb?y:J,title:eb?y:J,ownerState:eI},eW,{className:dB(eN.popupIndicator,null==eW?void 0:eW.className),children:G})):null]})}),inputProps:ew({className:eN.input,disabled:S,readOnly:Q},es())})})),eS?eJ:null]})}),yF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yz={entering:{opacity:1},entered:{opacity:1}},yL=em.forwardRef(function(e,t){let n=pS(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:s,easing:a,in:l,onEnter:u,onEntered:c,onEntering:h,onExit:d,onExited:f,onExiting:p,style:m,timeout:g=r,TransitionComponent:v=ms}=e,y=cu(e,yF),b=em.useRef(null),x=fm(b,s.ref,t),w=e=>t=>{if(e){let n=b.current;void 0===t?e(n):e(n,t)}},k=w(h),S=w((e,t)=>{let r=md({style:m,timeout:g,easing:a},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),$=w(c),j=w(p),O=w(e=>{let t=md({style:m,timeout:g,easing:a},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),d&&d(e)}),C=w(f);return ep.jsx(v,ew({appear:o,in:l,nodeRef:b,onEnter:S,onEntered:$,onEntering:k,onExit:O,onExited:C,onExiting:j,addEndListener:e=>{i&&i(b.current,e)},timeout:g},y,{children:(e,t)=>em.cloneElement(s,ew({style:ew({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},yz[e],m,s.props.style),ref:x},t))}))});function y_(e){return dq("MuiBackdrop",e)}dJ("MuiBackdrop",["root","invisible"]);let yB=["children","className","component","components","componentsProps","invisible","open","slotProps","
134slots","TransitionComponent","transitionDuration"],yV=e=>{let{classes:t,invisible:n}=e;return fT({root:["root",n&&"invisible"]},y_,t)},yW=pX("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>ew({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),yq=em.forwardRef(function(e,t){var n,r,i;let o=p$({props:e,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",components:u={},componentsProps:c={},invisible:h=!1,open:d,slotProps:f={},slots:p={},TransitionComponent:m=yL,transitionDuration:g}=o,v=cu(o,yB),y=ew({},o,{component:l,invisible:h}),b=yV(y),x=null!=(n=f.root)?n:c.root;return ep.jsx(m,ew({in:d,timeout:g},v,{children:ep.jsx(yW,ew({"aria-hidden":!0},x,{as:null!=(r=null!=(i=p.root)?i:u.Root)?r:l,className:dB(b.root,a,null==x?void 0:x.className),ownerState:ew({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:s}))}))}),yJ=dJ("MuiBox",["root"]),yH=function(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=hb("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(dC);return em.forwardRef(function(e,s){let a=dP(n),l=dF(e),{className:u,component:c="div"}=l,h=hS(l,dV);return ep.jsx(o,hk({as:c,ref:s,className:dB(u,i?i(r):r),theme:t&&a[t]||a},h))})}({themeId:cl,defaultTheme:pw(),defaultClassName:yJ.root,generateClassName:d_.generate});function yK(e){return dq("MuiButton",e)}let yG=dJ("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),yQ=em.createContext({}),yX=em.createContext(void 0),yY=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],yZ=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,a=fT({root:["root",o,`${o}${hF(t)}`,`size${hF(i)}`,`${o}Size${hF(i)}`,`color${hF(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${hF(i)}`],endIcon:["icon","endIcon",`iconSize${hF(i)}`]},yK,s);return ew({},s,a)},y0=e=>ew({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),y1=pX(mG,{shouldForwardProp:e=>pQ(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${hF(n.color)}`],t[`size${hF(n.size)}`],t[`${n.variant}Size${hF(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;let i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ew({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ew({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:fZ(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainCh
134annel} / ${e.vars.palette.action.hoverOpacity})`:fZ(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fZ(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ew({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yG.focusVisible}`]:ew({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yG.disabled}`]:ew({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${fZ(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yG.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yG.disabled}`]:{boxShadow:"none"}}),y2=pX("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,t[`iconSize${hF(n.size)}`]]}})(({ownerState:e})=>ew({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},y0(e))),y3=pX("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,t[`iconSize${hF(n.size)}`]]}})(({ownerState:e})=>ew({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},y0(e))),y4=em.forwardRef(function(e,t){let n=em.useContext(yQ),r=em.useContext(yX),i=p$({props:fe(n,e),name:"MuiButton"}),{children:o,color:s="primary",component:a="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:h=!1,endIcon:d,focusVisibleClassName:f,fullWidth:p=!1,size:m="medium",startIcon:g,type:v,variant:y="text"}=i,b=cu(i,yY),x=ew({},i,{color:s,component:a,disabled:u,disableElevation:c,disableFocusRipple:h,fullWidth:p,size:m,type:v,variant:y}),w=yZ(x),k=g&&ep.jsx(y2,{className:w.startIcon,ownerState:x,children:g}),S=d&&ep.jsx(y3,{className:w.endIcon,ownerState:x,children:d});return ep.jsxs(y1,ew({ownerState:x,className:dB(n.className,w.root,l,r||""),component:a,disabled:u,focusRipple:!h,focusVisibleClassName:dB(w.focusVisible,f),ref:t,type:v},b,{classes:w,children:[k,o,S]}))});function y5(e){return dq("PrivateSwitchBase",e)}dJ("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);let y6=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],y8=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e;return fT({root:["root",n&&"checked",r&&"disabled",i&&`edge${hF(i)}`],input:["input"]},y5,t)},y9=pX(mG)(({ownerState:e})=>ew({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),y7=pX("input",{shouldForwardProp:pQ}
134)({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),be=em.forwardRef(function(e,t){let{autoFocus:n,checked:r,checkedIcon:i,className:o,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:h,inputProps:d,inputRef:f,name:p,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b=!1,tabIndex:x,type:w,value:k}=e,S=cu(e,y6),[$,j]=ff({controlled:r,default:!!s,name:"SwitchBase",state:"checked"}),O=ye(),C=a;O&&void 0===C&&(C=O.disabled);let U="checkbox"===w||"radio"===w,E=ew({},e,{checked:$,disabled:C,disableFocusRipple:l,edge:u}),T=y8(E);return ep.jsxs(y9,ew({component:"span",className:dB(T.root,o),centerRipple:!0,focusRipple:!l,disabled:C,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),O&&O.onFocus&&O.onFocus(e)},onBlur:e=>{m&&m(e),O&&O.onBlur&&O.onBlur(e)},ownerState:E,ref:t},S,{children:[ep.jsx(y7,ew({autoFocus:n,checked:r,defaultChecked:s,className:T.input,disabled:C,id:U?h:void 0,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;j(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:E,tabIndex:x,type:w},"checkbox"===w&&void 0===k?{}:{value:k},d)),$?i:c]}))}),bt=p6(ep.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),bn=p6(ep.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),br=p6(ep.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function bi(e){return dq("MuiCheckbox",e)}let bo=dJ("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),bs=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ba=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,o=fT({root:["root",n&&"indeterminate",`color${hF(r)}`,`size${hF(i)}`]},bi,t);return ew({},t,o)},bl=pX(be,{shouldForwardProp:e=>pQ(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${hF(n.size)}`],"default"!==n.color&&t[`color${hF(n.color)}`]]}})(({theme:e,ownerState:t})=>ew({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fZ("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${bo.checked}, &.${bo.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),bu=ep.jsx(bn,{}),bc=ep.jsx(bt,{}),bh=ep.jsx(br,{}),bd=em.forwardRef(function(e,t){var n,r;let i=p$({props:e,name:"MuiCheckbox"}),{checkedIcon:o=bu,color:s="primary",icon:a=bc,indeterminate:l=!1,indeterminateIcon:u=bh,inputProps:c,size:h="medium",className:d}=i,f=cu(i,bs),p=l?u:a,m=l?u:o,g=ew({},i,{color:s,indeterminate:l,size:h}),v=ba(g);return ep.jsx(bl,ew({type:"checkbox",inputProps:ew({"data-indeterminate":l},c),icon:em.cloneElement(p,{fontSize:null!=(n=p.props.fontSize)?n:h}),checkedIcon:em.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:h}),ownerState:g,ref:t,className:dB(v.root,d)},f,{classes:v}))});function bf(e){return dq("MuiCircularProgress",e)}dJ("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);let bp=["className","color","disableShrink","size","style","thickness","value","variant"],bm=e=>e,bg,bv,by,bb,bx=hd(bg||(bg=bm`
135  0% {
136    transform: rotate(0deg);
137  }
138
139  100% {
140    transform: rotate(360deg);
141  }
142`)),bw=hd(bv||(bv=bm`
143  0% {
144    stroke-dasharray: 1px, 200px;
145    stroke-dashoffset: 0;
146  }
147
148  50% {
149    stroke-dasharray: 100px, 200px;
150    stroke-dashoffset: -15px;
151  }
152
153  100% {
154    stroke-dasharray: 100px, 200px;
155    stroke-dashoffset: -125px;
156  }
157`)),bk=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return fT({root:["root",n,`color${hF(r)}
157`],svg:["svg"],circle:["circle",`circle${hF(n)}`,i&&"circleDisableShrink"]},bf,t)},bS=pX("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${hF(n.color)}`]]}})(({ownerState:e,theme:t})=>ew({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>"indeterminate"===e.variant&&hh(by||(by=bm`
158      animation: ${0} 1.4s linear infinite;
159    `),bx)),b$=pX("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),bj=pX("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${hF(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>ew({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&hh(bb||(bb=bm`
160      animation: ${0} 1.4s ease-in-out infinite;
161    `),bw)),bO=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:s=40,style:a,thickness:l=3.6,value:u=0,variant:c="indeterminate"}=n,h=cu(n,bp),d=ew({},n,{color:i,disableShrink:o,size:s,thickness:l,value:u,variant:c}),f=bk(d),p={},m={},g={};if("determinate"===c){let e=2*Math.PI*((44-l)/2);p.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(u),p.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return ep.jsx(bS,ew({className:dB(f.root,r),style:ew({width:s,height:s},m,a),ownerState:d,ref:t,role:"progressbar"},g,h,{children:ep.jsx(b$,{className:f.svg,ownerState:d,viewBox:"22 22 44 44",children:ep.jsx(bj,{className:f.circle,style:p,ownerState:d,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))});function bC(e){return dq("MuiModal",e)}dJ("MuiModal",["root","hidden","backdrop"]);let bU=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],bE=e=>{let{open:t,exited:n,classes:r}=e;return fT({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},bC,r)},bT=pX("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>ew({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),bR=pX(yq,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),bA=em.forwardRef(function(e,t){var n,r,i,o,s,a;let l=p$({name:"MuiModal",props:e}),{BackdropComponent:u=bR,BackdropProps:c,className:h,closeAfterTransition:d=!1,children:f,container:p,component:m,components:g={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:$=!1,keepMounted:j=!1,onBackdropClick:O,open:C,slotProps:U,slots:E}=l,T=cu(l,bU),R=ew({},l,{closeAfterTransition:d,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:$,keepMounted:j}),{getRootProps:A,getBackdropProps:M,getTransitionProps:P,portalRef:D,isTopModal:I,exited:N,hasTransition:F}=function(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=gR,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:h}=e,d=em.useRef({}),f=em.useRef(null),p=em.useRef(null),m=fm(p,h),[g,v]=em.useState(!c),y=!!l&&l.props.hasOwnProperty("in"),b=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(b=!1);let x=()=>fa(f.current),w=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),k=()=>{i.mount(w(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=fp(()=>{let e=("function"==typeof t?t():t)||x().body;i.add(w(),e),p.current&&k()}),$=em.useCallback(()=>i.isTopModal(w()),[i]),j=fp(e=>{f.current=e,e&&(c&&$()?k():p.current&&gO(p.current,b))}),O=em.useCallback(()=>{i.remove(w(),b)},[b,i]);em.useEffect(()=>()=>{O()},[O]),em.useEffect(()=>
161{c?S():y&&o||O()},[c,O,y,o,S]);let C=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&$()&&!n&&(t.stopPropagation(),u&&u(t,"escapeKeyDown"))},U=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{let n=mw(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r=hk({},n,t);return hk({role:"presentation"},r,{onKeyDown:C(r),ref:m})},getBackdropProps:(e={})=>hk({"aria-hidden":!0},e,{onClick:U(e),open:c}),getTransitionProps:()=>({onEnter:fi(()=>{v(!1),s&&s()},null==l?void 0:l.props.onEnter),onExited:fi(()=>{v(!0),a&&a(),o&&O()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:j,isTopModal:$,exited:g,hasTransition:y}}(ew({},R,{rootRef:t})),z=ew({},R,{exited:N}),L=bE(z),_={};if(void 0===f.props.tabIndex&&(_.tabIndex="-1"),F){let{onEnter:e,onExited:t}=P();_.onEnter=e,_.onExited=t}let B=null!=(n=null!=(r=null==E?void 0:E.root)?r:g.Root)?n:bT,V=null!=(i=null!=(o=null==E?void 0:E.backdrop)?o:g.Backdrop)?i:u,W=null!=(s=null==U?void 0:U.root)?s:v.root,q=null!=(a=null==U?void 0:U.backdrop)?a:v.backdrop,J=mO({elementType:B,externalSlotProps:W,externalForwardedProps:T,getSlotProps:A,additionalProps:{ref:t,as:m},ownerState:z,className:dB(h,null==W?void 0:W.className,null==L?void 0:L.root,!z.open&&z.exited&&(null==L?void 0:L.hidden))}),H=mO({elementType:V,externalSlotProps:q,additionalProps:c,getSlotProps:e=>M(ew({},e,{onClick:t=>{O&&O(t),null!=e&&e.onClick&&e.onClick(t)}})),className:dB(null==q?void 0:q.className,null==c?void 0:c.className,null==L?void 0:L.backdrop),ownerState:z});return j||C||F&&!N?ep.jsx(gj,{ref:D,container:p,disablePortal:w,children:ep.jsxs(B,ew({},J,{children:[!$&&u?ep.jsx(V,ew({},H)):null,ep.jsx(g$,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:k,isEnabled:I,open:C,children:em.cloneElement(f,_)})]}))}):null});function bM(e){return dq("MuiDialog",e)}let bP=dJ("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),bD=em.createContext({}),bI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],bN=pX(yq,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),bF=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e;return fT({root:["root"],container:["container",`scroll${hF(n)}`],paper:["paper",`paperScroll${hF(n)}`,`paperWidth${hF(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]},bM,t)},bz=pX(bA,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),bL=pX("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${hF(n.scroll)}`]]}})(({ownerState:e})=>ew({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),b_=pX(mv,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`scrollPaper${hF(n.scroll)}`],t[`paperWidth${hF(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>ew({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${bP.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${bP.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${bP.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),bB=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiDialog"}),r=pS(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":s,BackdropComponent:a,BackdropProps:l,children:u,className:c,disableEscapeKeyDown:h=!1,fullScreen:d=!1,fullWidth:f=!1,maxWidth:p="sm",onBackdropClick:m,onClose:g,open:v,PaperComponent:y=mv,PaperProps:b={},scroll:x="paper",TransitionComponent:w=yL,transitionDuration:k=i,TransitionProps:S}=n,$=cu(n,bI),j=ew({},n,{disableEscapeKeyDown:h,fullScreen:d,fullWidth:f,maxWidth:p,scroll:x}),O=bF(j),C=em.useRef(),U=fd(s),E=em.useMemo(()=>({titleId:U}),[U]);return ep.jsx(bz,ew({className:dB(O.root,c),closeAfterTransition:!0,components:{Backdrop:bN},componentsProps:{backdrop:ew({transitionDuration:k,as:a},l)},disableEscapeKeyDown:h,onClose:g,open:v,ref:t,onClick:e=>{C.current&&(C.current=null,m&&m(e),g&&g(e,"backdropClick"))},ownerState:j},$,{children:ep.jsx(w,ew({appear:!0,in:v,timeout:k,role:"presentation"},S,{children:ep.jsx(bL,{className:dB(O.container),onMouseDown:e=>{C.current=e.target===e.currentTarget},ownerState:j,children:ep.jsx(b_,ew({as:y,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":U},b,{className:dB(O.paper,b.className),ownerState:j,children:ep.jsx(bD.Provider,{value:E,children:u})}))})}))}))});function bV(e){return dq("MuiDialogActions",e)}dJ("MuiDialogActions",["root","spacing"]);let bW=["className","disableSpacing"],bq=e=>{let{classes:t,disableSpacing:n}=e;return fT({root:["root",!n&&"spacing"]},bV,t)},bJ=pX("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>ew({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),bH=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1}=n,o=cu(n,bW),s=ew({},n,{disableSpacing:i}),a=bq(s);return ep.jsx(bJ,ew({className:dB(a.root,r),ownerState:s,ref:t},o))});function bK(e){return dq("MuiDialogContent",e)}function bG(e){return dq("MuiDialogTitle",e)}dJ("MuiDialogContent",["root","dividers"]);let bQ=dJ("MuiDialogTitle",["root"]),bX=["className","dividers"],bY=e=>{let{classes:t,dividers:n}=e;return fT({root:["root",n&&"dividers"]},bK,t)},bZ=pX("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>ew({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${bQ.root} + &`]:{paddingTop:0}})),b0=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiDialogContent"}),{className:r,dividers:i=!1}=n,o=cu(n,bX),s=ew({},n,{dividers:i}),a=bY(s);return ep.jsx(bZ,ew({className:dB(a.root,r),ownerState:s,ref:t},o))});function b1(e){return dq("MuiDialogContentText",e)}dJ("MuiDialogContentText",["root"]);let b2=["children","className"],b3=e=>{let{classes:t}=e,n=fT({root:["root"]},b1,t);return ew({},t,n)},b4=pX(gp,{shouldForwardProp:e=>pQ(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b5=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiDialogContentText"}),{className:r}=n,i=cu(n,b2),o=b3(i);return ep.jsx(b4,ew({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:i,className:dB(o.root,r)},n,{classes:o}))}),b6=["className","id"],b8=e=>{let{classes:t}=e;return fT({root:["root"]},bG,t)},b9=pX(gp,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),b7=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiDialogTitle"}),{className:r,id:i}=n,o=cu(n,b6),s=b8(n),{titleId:a=i}=em.useContext(bD);return ep.jsx(b9,ew({component:"h2",className:dB(s.root,r),ownerState:n,ref:t,variant:"h6",id:null!=i?i:a},o))}),xe=dJ("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),xt=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","
161slots","type"],xn=e=>{let{classes:t,disableUnderline:n}=e,r=fT({root:["root",!n&&"underline"],input:["input"]},yy,t);return ew({},t,r)},xr=pX(yc,{shouldForwardProp:e=>pQ(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...ya(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;let r="light"===e.palette.mode,i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return ew({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${yb.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${yb.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yb.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yb.disabled}, .${yb.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yb.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&ew({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),xi=pX(yh,{name:"MuiFilledInput",slot:"Input",overridesResolver:yl})(({theme:e,ownerState:t})=>ew({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),xo=em.forwardRef(function(e,t){var n,r,i,o;let s=p$({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:h=!1,slotProps:d,slots:f={},type:p="text"}=s,m=cu(s,xt),g=ew({},s,{fullWidth:u,inputComponent:c,multiline:h,type:p}),v=xn(s),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=d?d:l)?hj(y,null!=d?d:l):y,x=null!=(n=null!=(r=f.root)?r:a.Root)?n:xr,w=null!=(i=null!=(o=f.input)?o:a.Input)?i:xi;return ep.jsx(yf,ew({slots:{root:x,input:w},componentsProps:b,fullWidth:u,inputComponent:c,multiline:h,ref:t,type:p},m,{classes:v}))});function xs(e){return dq("MuiFormControl",e)}xo.muiName="Input",dJ("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);let xa=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xl=e=>{let{classes:t,margin:n,fullWidth:r}=e;return fT({root:["root","none"!==n&&`margin${hF(n)}`,r&&"fullWidth"]},xs,t)},xu=pX("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>ew({},t.root,t[`margin${hF(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>ew({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),xc=em.forwardRef(function(e,t){let n;let r=p$({props:e,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:h=!1,hiddenLabel:d=!1,margin:f="none",required:p=!1,size:m="medium",variant:g="outlined"}=r,v=cu(r,xa),y=ew({},r,{color:s,component:a,disabled:l,error:u,fullWidth:h,hiddenLabel:d,margin:f,required:p,size:m,variant:g}),b=xl(y),[x,w]=em.useState(()=>{let e=!1;
161return i&&em.Children.forEach(i,t=>{if(!fs(t,["Input","Select"]))return;let n=fs(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[k,S]=em.useState(()=>{let e=!1;return i&&em.Children.forEach(i,t=>{fs(t,["Input","Select"])&&(yr(t.props,!0)||yr(t.props.inputProps,!0))&&(e=!0)}),e}),[$,j]=em.useState(!1);l&&$&&j(!1);let O=void 0===c||l?$:c,C=em.useMemo(()=>({adornedStart:x,setAdornedStart:w,color:s,disabled:l,error:u,filled:k,focused:O,fullWidth:h,hiddenLabel:d,size:m,onBlur:()=>{j(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{j(!0)},registerEffect:n,required:p,variant:g}),[x,s,l,u,k,O,h,d,n,p,m,g]);return ep.jsx(v7.Provider,{value:C,children:ep.jsx(xu,ew({as:a,ownerState:y,className:dB(b.root,o),ref:t},v,{children:i}))})}),xh=function(e={}){let{createStyledComponent:t=fW,useThemeProps:n=fq,componentName:r="MuiStack"}=e,i=()=>fT({root:["root"]},e=>dq(r,e),{}),o=t(fH);return em.forwardRef(function(e,t){let r=dF(n(e)),{component:s="div",direction:a="column",spacing:l=0,divider:u,children:c,className:h,useFlexGap:d=!1}=r,f=hS(r,fB),p=i();return ep.jsx(o,hk({as:s,ownerState:{direction:a,spacing:l,useFlexGap:d},ref:t,className:dB(p.root,h)},f,{children:u?function(e,t){let n=em.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(em.cloneElement(t,{key:`separator-${i}`})),e),[])}(c,u):c}))})}({createStyledComponent:pX("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>p$({props:e,name:"MuiStack"})});function xd(e){return dq("MuiFormControlLabel",e)}let xf=dJ("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),xp=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],xm=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e;return fT({root:["root",n&&"disabled",`labelPlacement${hF(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]},xd,t)},xg=pX("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${xf.label}`]:t.label},t.root,t[`labelPlacement${hF(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>ew({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${xf.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${xf.label}`]:{[`&.${xf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),xv=pX("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${xf.error}`]:{color:(e.vars||e).palette.error.main}})),xy=em.forwardRef(function(e,t){var n,r;let i=p$({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:a,disabled:l,disableTypography:u,label:c,labelPlacement:h="end",required:d,slotProps:f={}}=i,p=cu(i,xp),m=ye(),g=null!=(n=null!=l?l:a.props.disabled)?n:null==m?void 0:m.disabled,v=null!=d?d:a.props.required,y={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===a.props[e]&&void 0!==i[e]&&(y[e]=i[e])});let b=v9({props:i,muiFormControl:m,states:["error"]}),x=ew({},i,{disabled:g,labelPlacement:h,required:v,error:b.error}),w=xm(x),k=null!=(r=f.typography)?r:s.typography,S=c;return null==S||S.type===gp||u||(S=ep.jsx(gp,ew({component:"span"},k,{className:dB(w.label,null==k?void 0:k.className),children:S}))),ep.jsxs(xg,ew({className:dB(w.root,o),ownerState:x,ref:t},p,{children:[em.cloneElement(a,y),v?ep.jsxs(xh,{display:"block",children:[S,ep.jsxs(xv,{ownerState:x,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):S]}))});function xb(e){return dq("MuiFormHelperText",e)}let xx=dJ("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),xw=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xk=e=>{let{classes:t,contained:n,size:r,disabled:i,error:o,filled:s,focused:a,required:l}=e;return fT({root:["root",i&&"disabled",o&&"error",r&&`size${hF(r)}
161`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]},xb,t)},xS=pX("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size&&t[`size${hF(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>ew({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${xx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${xx.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),x$=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:o="p"}=n,s=cu(n,xw),a=v9({props:n,muiFormControl:ye(),states:["variant","size","disabled","error","filled","focused","required"]}),l=ew({},n,{component:o,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),u=xk(l);return ep.jsx(xS,ew({as:o,ownerState:l,className:dB(u.root,i),ref:t},s,{children:" "===r?z||(z=ep.jsx("span",{className:"notranslate",children:"​"})):r}))});function xj(e){return dq("MuiFormLabel",e)}let xO=dJ("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),xC=["children","className","color","component","disabled","error","filled","focused","required"],xU=e=>{let{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:a}=e;return fT({root:["root",`color${hF(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]},xj,t)},xE=pX("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>ew({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>ew({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${xO.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${xO.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${xO.error}`]:{color:(e.vars||e).palette.error.main}})),xT=pX("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${xO.error}`]:{color:(e.vars||e).palette.error.main}})),xR=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiFormLabel"}),{children:r,className:i,component:o="label"}=n,s=cu(n,xC),a=v9({props:n,muiFormControl:ye(),states:["color","required","focused","disabled","error","filled"]}),l=ew({},n,{color:a.color||"primary",component:o,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),u=xU(l);return ep.jsxs(xE,ew({as:o,ownerState:l,className:dB(u.root,i),ref:t},s,{children:[r,a.required&&ep.jsxs(xT,{ownerState:l,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}),xA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xM(e){return`scale(${e}, ${e**2})`}let xP={entering:{opacity:1,transform:xM(1)},entered:{opacity:1,transform:"none"}},xD="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xI=em.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:o,in:s,onEnter:a,onEntered:l,onEntering:u,onExit:c,onExited:h,onExiting:d,style:f,timeout:p="auto",TransitionComponent:m=ms}=e,g=cu(e,xA),v=fb(),y=em.useRef(),b=pS(),x=em.useRef(null),w=fm(x,i.ref,t),k=e=>t=>{if(e){let n=x.current;void 0===t?e(n):e(n,t)}},S=k(u),$=k((e,t)=>{let n;let{duration:r,delay:i,easing:s}=md({style:f,timeout:p,easing:o},{mode:"enter"});"auto"===p?(n=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=n):n=r,e.style.transition=[b.transitions.create("opacity",{duration:n,delay:i}),b.transitions.create("transform",{duration:xD?n:.666*n,delay:i,easing:s})].join(","),a&&a(e,t)}),j=k(l),O=k(d),C=k(e=>{let t;let{duration:n,delay:r,easing:i}=md({style:f,timeout:p,easing:o},{mode:"exit"});"auto"===p?(t=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=t):t=n,e.style.transition=[b.transitions.create("opacity",{duration:t,delay:r}),b.transitions.create("transform",{duration:xD?t:.666*t,delay:xD?r:r||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=xM(.75),c&&c(e)}),U=k(h);return ep.jsx(m,ew({appear:r,in:s,nodeRef:x,onEnter:$,onEntered:j,onEntering:S,onExit:C,onExited:U,onExiting:O,addEndListener:e=>{"auto"===p&&v.start(y.current||0,e),n&&n(x.current,e)},timeout:"auto"===p?null:p},g,{children:(e,t)=>em.cloneElement(i,ew({style:ew({opacity:0,transform:xM(.75),visibility:"exited"!==e||s?void 0:"hidden"},xP[e],f,i.props.style),ref:w},t))}))});xI.muiSupportAuto=!0;let xN=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","
161slots","type"],xF=e=>{let{classes:t,disableUnderline:n}=e,r=fT({root:["root",!n&&"underline"],input:["input"]},yp,t);return ew({},t,r)},xz=pX(yc,{shouldForwardProp:e=>pQ(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...ya(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),ew({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ym.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ym.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ym.disabled}, .${ym.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ym.disabled}:before`]:{borderBottomStyle:"dotted"}})}),xL=pX(yh,{name:"MuiInput",slot:"Input",overridesResolver:yl})({}),x_=em.forwardRef(function(e,t){var n,r,i,o;let s=p$({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:h="input",multiline:d=!1,slotProps:f,slots:p={},type:m="text"}=s,g=cu(s,xN),v=xF(s),y={root:{ownerState:{disableUnderline:a}}},b=(null!=f?f:u)?hj(null!=f?f:u,y):y,x=null!=(n=null!=(r=p.root)?r:l.Root)?n:xz,w=null!=(i=null!=(o=p.input)?o:l.Input)?i:xL;return ep.jsx(yf,ew({slots:{root:x,input:w},slotProps:b,fullWidth:c,inputComponent:h,multiline:d,ref:t,type:m},g,{classes:v}))});function xB(e){return dq("MuiInputLabel",e)}x_.muiName="Input",dJ("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);let xV=["disableAnimation","margin","shrink","variant","className"],xW=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:a}=e,l=fT({root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&"normal"!==r&&`size${hF(r)}`,s],asterisk:[a&&"asterisk"]},xB,t);return ew({},t,l)},xq=pX(xR,{shouldForwardProp:e=>pQ(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${xO.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focu
161sed,t[n.variant]]}})(({theme:e,ownerState:t})=>ew({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&ew({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&ew({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&ew({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),xJ=em.forwardRef(function(e,t){let n=p$({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:i,className:o}=n,s=cu(n,xV),a=ye(),l=i;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);let u=v9({props:n,muiFormControl:a,states:["size","variant","required","focused"]}),c=ew({},n,{disableAnimation:r,formControl:a,shrink:l,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=xW(c);return ep.jsx(xq,ew({"data-shrink":l,ownerState:c,ref:t,className:dB(h.root,o)},s,{classes:h}))});function xH(e){return dq("MuiLink",e)}let xK=dJ("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),xG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xQ=e=>xG[e]||e,xX=({theme:e,ownerState:t})=>{let n=xQ(t.color),r=hL(e,`palette.${n}`,!1)||t.color,i=hL(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:fZ(r,.4)},xY=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],xZ=e=>{let{classes:t,component:n,focusVisible:r,underline:i}=e;return fT({root:["root",`underline${hF(i)}`,"button"===n&&"button",r&&"focusVisible"]},xH,t)},x0=pX(gp,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`underline${hF(n.underline)}`],"button"===n.component&&t.button]}})(({theme:e,ownerState:t})=>ew({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&ew({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:xX({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${xK.focusVisible}`]:{outline:"auto"}})),x1=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiLink"}),{className:r,color:i="primary",component:o="a",onBlur:s,onFocus:a,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:h}=n,d=cu(n,xY),{isFocusVisibleRef:f,onBlur:p,onFocus:m,ref:g}=fC(),[v,y]=em.useState(!1),b=fm(t,g),x=ew({},n,{color:i,component:o,focusVisible:v,underline:u,variant:c}),w=xZ(x);return ep.jsx(x0,ew({color:i,className:dB(w.root,r),classes:l,component:o,onBlur:e=>{p(e),!1===f.current&&y(!1),s&&s(e)},onFocus:e=>{m(e),!0===f.current&&y(!0),a&&a(e)},ref:b,ownerState:x,variant:c,sx:[...Object.keys(xG).includes(i)?[]:[{color:i}],...Array.isArray(h)?h:[h]]},d))}),x2=em.createContext({});function x3(e){return dq("MuiList",e)}dJ("MuiList",["root","padding","dense","subheader"]);let x4=["children","className","component","dense","disablePadding","subheader"],x5=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return fT({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},x3,t)},x6=pX("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>ew({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),x8=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:s=!1,disablePadding:a=!1,subheader:l}=n,u=cu(n,x4),c=em.useMemo(()=>({dense:s}),[s]),h=ew({},n,{component:o,dense:s,disablePadding:a}),d=x5(h);return ep.jsx(x2.Provider,{value:c,children:ep.jsxs(x6,ew({as:o,className:dB(d.root,i),ref:t,ownerState:h},u,{children:[l,r]}))})}),x9=dJ("MuiListItemIcon",["root","alignItemsFlexStart"]);function x7(e){return dq("MuiListItemText",e)}let we=dJ("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),wt=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],wn=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return fT({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},x7,t)},wr=pX("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${we.primary}`]:t.primary},{[`& .${we.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>ew({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),wi=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:o=!1,inset:s=!1,primary:a,primaryTypographyProps:l,secondary:u,secondaryTypographyProps:c}=n,h=cu(n,wt),{dense:d}=em.useContext(x2),f=null!=a?a:r,p=u,m=ew({},n,{disableTypography:o,inset:s,primary:!!f,secondary:!!p,dense:d}),g=wn(m);return null==f||f.type===gp||o||(f=ep.jsx(gp,ew({variant:d?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:f}))),null==p||p.type===gp||o||(p=ep.jsx(gp,ew({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},c,{children:p}))),ep.jsxs(wr,ew({className:dB(g.root,i),ownerState:m,ref:t},h,{children:[f,p]}))}),wo=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ws(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}
161function wa(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function wl(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function wu(e,t,n,r,i,o){let s=!1,a=i(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}let t=!r&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&wl(a,o)&&!t)return a.focus(),!0;a=i(e,a,n)}return!1}let wc=em.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:o,className:s,disabledItemsFocusable:a=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,h=cu(e,wo),d=em.useRef(null),f=em.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fn(()=>{r&&d.current.focus()},[r]),em.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!d.current.style.width;if(e.clientHeight<d.current.clientHeight&&n){let n=`${fU(fa(e))}px`;d.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,d.current.style.width=`calc(100% + ${n})`}return d.current}}),[]);let p=fm(d,t),m=-1;em.Children.forEach(o,(e,t)=>{if(!em.isValidElement(e)){m===t&&(m+=1)>=o.length&&(m=-1);return}e.props.disabled||("selectedMenu"===c&&e.props.selected?m=t:-1!==m||(m=t)),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1)>=o.length&&(m=-1)});let g=em.Children.map(o,(e,t)=>{if(t===m){let t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),em.cloneElement(e,t)}return e});return ep.jsx(x8,ew({role:"menu",ref:p,className:s,onKeyDown:e=>{let t=d.current,n=e.key,r=fa(t).activeElement;if("ArrowDown"===n)e.preventDefault(),wu(t,r,l,a,ws);else if("ArrowUp"===n)e.preventDefault(),wu(t,r,l,a,wa);else if("Home"===n)e.preventDefault(),wu(t,null,l,a,ws);else if("End"===n)e.preventDefault(),wu(t,null,l,a,wa);else if(1===n.length){let i=f.current,o=n.toLowerCase(),s=performance.now();i.keys.length>0&&(s-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=s,i.keys.push(o);let l=r&&!i.repeating&&wl(r,i);i.previousKeyMatched&&(l||wu(t,r,!1,a,ws,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},h,{children:g}))});function wh(e){return dq("MuiPopover",e)}dJ("MuiPopover",["root","paper"]);let wd=["onEntering"],wf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],wp=["slotProps"];function wm(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function wg(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function wv(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function wy(e){return"function"==typeof e?e():e}let wb=e=>{let{classes:t}=e;return fT({root:["root"],paper:["paper"]},wh,t)},wx=pX(bA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ww=pX(mv,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wk=em.forwardRef(function(e,t){var n,r,i;let o=p$({props:e,name:"MuiPopover"}),{action:s,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:h,className:d,container:f,elevation:p=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:y,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:w=xI,transitionDuration:k="auto",TransitionProps:{onEntering:S}={},disableScrollLock:$=!1}=o,j=cu(o.TransitionProps,wd),O=cu(o,wf),C=null!=(n=null==b?void 0:b.paper)?n:v,U=em.useRef(),E=fm(U,C.ref),T=ew({}
161,o,{anchorOrigin:l,anchorReference:c,elevation:p,marginThreshold:m,externalPaperSlotProps:C,transformOrigin:x,TransitionComponent:w,transitionDuration:k,TransitionProps:j}),R=wb(T),A=em.useCallback(()=>{if("anchorPosition"===c)return u;let e=wy(a),t=(e&&1===e.nodeType?e:fa(U.current).body).getBoundingClientRect();return{top:t.top+wm(t,l.vertical),left:t.left+wg(t,l.horizontal)}},[a,l.horizontal,l.vertical,u,c]),M=em.useCallback(e=>({vertical:wm(e,x.vertical),horizontal:wg(e,x.horizontal)}),[x.horizontal,x.vertical]),P=em.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===c)return{top:null,left:null,transformOrigin:wv(n)};let r=A(),i=r.top-n.vertical,o=r.left-n.horizontal,s=i+t.height,l=o+t.width,u=fl(wy(a)),h=u.innerHeight-m,d=u.innerWidth-m;if(null!==m&&i<m){let e=i-m;i-=e,n.vertical+=e}else if(null!==m&&s>h){let e=s-h;i-=e,n.vertical+=e}if(null!==m&&o<m){let e=o-m;o-=e,n.horizontal+=e}else if(l>d){let e=l-d;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:wv(n)}},[a,c,A,M,m]),[D,I]=em.useState(g),N=em.useCallback(()=>{let e=U.current;if(!e)return;let t=P(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)},[P]);em.useEffect(()=>($&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[a,$,N]),em.useEffect(()=>{g&&N()}),em.useImperativeHandle(s,()=>g?{updatePosition:()=>{N()}}:null,[g,N]),em.useEffect(()=>{if(!g)return;let e=fo(()=>{N()}),t=fl(a);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[a,g,N]);let F=k;"auto"!==k||w.muiSupportAuto||(F=void 0);let z=f||(a?fa(wy(a)).body:void 0),L=null!=(r=null==y?void 0:y.root)?r:wx,_=null!=(i=null==y?void 0:y.paper)?i:ww,B=mO({elementType:_,externalSlotProps:ew({},C,{style:D?C.style:ew({},C.style,{opacity:0})}),additionalProps:{elevation:p,ref:E},ownerState:T,className:dB(R.paper,null==C?void 0:C.className)}),V=mO({elementType:L,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:O,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:T,className:dB(R.root,d)}),{slotProps:W}=V,q=cu(V,wp);return ep.jsx(L,ew({},q,!my(L)&&{slotProps:W,disableScrollLock:$},{children:ep.jsx(w,ew({appear:!0,in:g,onEntering:(e,t)=>{S&&S(e,t),N()},onExited:()=>{I(!1)},timeout:F},j,{children:ep.jsx(_,ew({},B,{children:h}))}))}))});function wS(e){return dq("MuiMenu",e)}dJ("MuiMenu",["root","paper","list"]);let w$=["onEntering"],wj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wO={vertical:"top",horizontal:"right"},wC={vertical:"top",horizontal:"left"},wU=e=>{let{classes:t}=e;return fT({root:["root"],paper:["paper"],list:["list"]},wS,t)},wE=pX(wk,{shouldForwardProp:e=>pQ(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wT=pX(ww,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wR=pX(wc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),wA=em.forwardRef(function(e,t){var n,r;let i=p$({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:h,PaperProps:d={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:y={}}=i,b=cu(i.TransitionProps,w$),x=cu(i,wj),w=fF(),k=ew({},i,{autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:d,transitionDuration:p,TransitionProps:b,variant:g}),S=wU(k),$=o&&!l&&h,j=em.useRef(null),O=-1;em.Children.map(s,(e,t)=>{em.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected?O=t:-1!==O||(O=t)))});let C=null!=(n=v.paper)?n:wT,U=null!=(r=y.paper)?r:d,E=mO({elementType:v.root,externalSlotProps:y.root,ownerState:k,className:[S.root,a]}),T=mO({elementType:C,externalSlotProps:U,ownerState:k,className:S.paper});
161return ep.jsx(wE,ew({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?wO:wC,slots:{paper:C,root:v.root},slotProps:{root:E,paper:T},open:h,ref:t,transitionDuration:p,TransitionProps:ew({onEntering:(e,t)=>{j.current&&j.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},b),ownerState:k},x,{classes:f,children:ep.jsx(wR,ew({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:j,autoFocus:o&&(-1===O||l),autoFocusItem:$,variant:g},u,{className:dB(S.list,u.className),children:s}))}))});function wM(e){return dq("MuiMenuItem",e)}let wP=dJ("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wD=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],wI=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,a=fT({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},wM,s);return ew({},s,a)},wN=pX(mG,{shouldForwardProp:e=>pQ(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>ew({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wP.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fZ(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wP.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fZ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wP.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fZ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fZ(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wP.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wP.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xe.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xe.inset}`]:{marginLeft:52},[`& .${we.root}`]:{marginTop:0,marginBottom:0},[`& .${we.inset}`]:{paddingLeft:36},[`& .${x9.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ew({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${x9.root} svg`]:{fontSize:"1.25rem"}}))),wF=em.forwardRef(function(e,t){let n;let r=p$({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:h,className:d}=r,f=cu(r,wD),p=em.useContext(x2),m=em.useMemo(()=>({dense:s||p.dense||!1,disableGutters:l}),[p.dense,s,l]),g=em.useRef(null);fn(()=>{i&&g.current&&g.current.focus()},[i]);let v=ew({},r,{dense:m.dense,divider:a,disableGutters:l}),y=wI(r),b=fm(g,t);return r.disabled||(n=void 0!==h?h:-1),ep.jsx(x2.Provider,{value:m,children:ep.jsx(wN,ew({ref:b,role:c,tabIndex:n,component:o,focusVisibleClassName:dB(y.focusVisible,u),className:dB(y.root,d)},f,{ownerState:v,classes:y}))})});function wz(e){return dq("MuiNativeSelect",e)}let wL=dJ("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),w_=["className","disabled","error","IconComponent","inputRef","variant"],wB=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e;return fT({select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${hF(n)}`,o&&"iconOpen",r&&"disabled"]},wz,t)},wV=({ownerState:e,theme:t})=>ew({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ew({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroun
161dChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${wL.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),wW=pX("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pQ,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${wL.multiple}`]:t.multiple}]}})(wV),wq=({ownerState:e,theme:t})=>ew({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${wL.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),wJ=pX("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${hF(n.variant)}`],n.open&&t.iconOpen]}})(wq),wH=em.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:o,inputRef:s,variant:a="standard"}=e,l=cu(e,w_),u=ew({},e,{disabled:r,variant:a,error:i}),c=wB(u);return ep.jsxs(em.Fragment,{children:[ep.jsx(wW,ew({ownerState:u,className:dB(c.select,n),disabled:r,ref:s||t},l)),e.multiple?null:ep.jsx(wJ,{as:o,ownerState:u,className:c.icon})]})}),wK=["children","classes","className","label","notched"],wG=pX("fieldset",{shouldForwardProp:pQ})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),wQ=pX("legend",{shouldForwardProp:pQ})(({ownerState:e,theme:t})=>ew({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&ew({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))),wX=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wY=e=>{let{classes:t}=e,n=fT({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yg,t);return ew({},t,n)},wZ=pX(yc,{shouldForwardProp:e=>pQ(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:ya})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ew({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yv.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yv.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${yv.focused} .${yv.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${yv.error} .${yv.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yv.disabled} .${yv.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ew({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),w0=pX(function(e){let{className:t,label:n,notched:r}=e,i=cu(e,wK),o=null!=n&&""!==n,s=ew({},e,{notched:r,withLabel:o});return ep.jsx(wG,ew({"aria-hidden":!0,className:t,ownerState:s},i,{children:ep.jsx(wQ,{ownerState:s,children:o?ep.jsx("span",{children:n}):L||(L=ep.jsx("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroun
161dChannel} / 0.23)`:t}}),w1=pX(yh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yl})(({theme:e,ownerState:t})=>ew({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),w2=em.forwardRef(function(e,t){var n,r,i,o,s;let a=p$({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:h,multiline:d=!1,notched:f,slots:p={},type:m="text"}=a,g=cu(a,wX),v=wY(a),y=ye(),b=v9({props:a,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=ew({},a,{color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:y,fullWidth:u,hiddenLabel:b.hiddenLabel,multiline:d,size:b.size,type:m}),w=null!=(n=null!=(r=p.root)?r:l.Root)?n:wZ,k=null!=(i=null!=(o=p.input)?o:l.Input)?i:w1;return ep.jsx(yf,ew({slots:{root:w,input:k},renderSuffix:e=>ep.jsx(w0,{ownerState:x,className:v.notchedOutline,label:null!=h&&""!==h&&b.required?s||(s=ep.jsxs(em.Fragment,{children:[h," ","*"]})):h,notched:void 0!==f?f:!!(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},g,{classes:ew({},v,{notchedOutline:null})}))});function w3(e){return dq("MuiSelect",e)}w2.muiName="Input";let w4=dJ("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),w5=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],w6=pX("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${w4.select}`]:t.select},{[`&.${w4.select}`]:t[n.variant]},{[`&.${w4.error}`]:t.error},{[`&.${w4.multiple}`]:t.multiple}]}})(wV,{[`&.${w4.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),w8=pX("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${hF(n.variant)}`],n.open&&t.iconOpen]}})(wq),w9=pX("input",{shouldForwardProp:e=>pG(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function w7(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}let ke=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e;return fT({select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${hF(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},w3,t)},kt=em.forwardRef(function(e,t){var n,r;let i,o,s;let{"aria-describedby":a,"aria-label":l,autoFocus:u,autoWidth:c,children:h,className:d,defaultOpen:f,defaultValue:p,disabled:m,displayEmpty:g,error:v=!1,IconComponent:y,inputRef:b,labelId:x,MenuProps:w={},multiple:k,name:S,onBlur:$,onChange:j,onClose:O,onFocus:C,onOpen:U,open:E,readOnly:T,renderValue:R,SelectDisplayProps:A={},tabIndex:M,value:P,variant:D="standard"}=e,I=cu(e,w5),[N,F]=ff({controlled:P,default:p,name:"Select"}),[z,L]=ff({controlled:E,default:f,name:"Select"}),B=em.useRef(null),V=em.useRef(null),[W,q]=em.useState(null),{current:J}=em.useRef(null!=E),[H,K]=em.useState(),G=fm(t,b),Q=em.useCallback(e=>{V.current=e,e&&q(e)},[]),X=null==W?void 0:W.parentNode;em.useImperativeHandle(G,()=>({focus:()=>{V.current.focus()},node:B.current,value:N}),[N]),em.useEffect(()=>{f&&z&&W&&!J&&(K(c?null:X.clientWidth),V.current.focus())},[W,c]),em.useEffect(()=>{u&&V.current.focus()},[u]),em.useEffect(()=>{if(!x)return;let e=fa(V.current).getElementById(x);if(e){let t=()=>{getSelection().isCollapsed&&V.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[x]);let Y=(e,t)=>
161{e?U&&U(t):O&&O(t),J||(K(c?null:X.clientWidth),L(e))},Z=em.Children.toArray(h),ee=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(k){n=Array.isArray(N)?N.slice():[];let t=N.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),N!==n&&(F(n),j)){let r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:S}}),j(i,e)}k||Y(!1,t)}},et=null!==W&&z;delete I["aria-invalid"];let en=[],er=!1;(yr({value:N})||g)&&(R?i=R(N):er=!0);let ei=Z.map(e=>{let t;if(!em.isValidElement(e))return null;if(k){if(!Array.isArray(N))throw Error(cs(2));(t=N.some(t=>w7(t,e.props.value)))&&er&&en.push(e.props.children)}else(t=w7(N,e.props.value))&&er&&(o=e.props.children);return em.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ee(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});er&&(i=k?0===en.length?null:en.reduce((e,t,n)=>(e.push(t),n<en.length-1&&e.push(", "),e),[]):o);let eo=H;!c&&J&&W&&(eo=X.clientWidth),s=void 0!==M?M:m?null:0;let es=A.id||(S?`mui-component-select-${S}`:void 0),ea=ew({},e,{variant:D,value:N,open:et,error:v}),el=ke(ea),eu=ew({},w.PaperProps,null==(n=w.slotProps)?void 0:n.paper),ec=fd();return ep.jsxs(em.Fragment,{children:[ep.jsx(w6,ew({ref:Q,tabIndex:s,role:"combobox","aria-controls":ec,"aria-disabled":m?"true":void 0,"aria-expanded":et?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[x,es].filter(Boolean).join(" ")||void 0,"aria-describedby":a,onKeyDown:e=>{T||-1===[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)||(e.preventDefault(),Y(!0,e))},onMouseDown:m||T?null:e=>{0===e.button&&(e.preventDefault(),V.current.focus(),Y(!0,e))},onBlur:e=>{!et&&$&&(Object.defineProperty(e,"target",{writable:!0,value:{value:N,name:S}}),$(e))},onFocus:C},A,{ownerState:ea,className:dB(A.className,el.select,d),id:es,children:null!=(r=i)&&("string"!=typeof r||r.trim())?i:_||(_=ep.jsx("span",{className:"notranslate",children:"​"}))})),ep.jsx(w9,ew({"aria-invalid":v,value:Array.isArray(N)?N.join(","):N,name:S,ref:B,"aria-hidden":!0,onChange:e=>{let t=Z.find(t=>t.props.value===e.target.value);void 0!==t&&(F(t.props.value),j&&j(e,t))},tabIndex:-1,disabled:m,className:el.nativeInput,autoFocus:u,ownerState:ea},I)),ep.jsx(w8,{as:y,className:el.icon,ownerState:ea}),ep.jsx(wA,ew({id:`menu-${S||""}`,anchorEl:X,open:et,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:ew({"aria-labelledby":x,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:ec},w.MenuListProps),slotProps:ew({},w.slotProps,{paper:ew({},eu,{style:ew({minWidth:eo},null!=eu?eu.style:null)})}),children:ei}))]})}),kn=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],kr=["root"],ki=e=>{let{classes:t}=e;return t},ko={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pQ(e)&&"variant"!==e,slot:"Root"},ks=pX(x_,ko)(""),ka=pX(w2,ko)(""),kl=pX(xo,ko)(""),ku=em.forwardRef(function(e,t){let n=p$({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:i,classes:o={},className:s,defaultOpen:a=!1,displayEmpty:l=!1,IconComponent:u=yx,id:c,input:h,inputProps:d,label:f,labelId:p,MenuProps:m,multiple:g=!1,native:v=!1,onClose:y,onOpen:b,open:x,renderValue:w,SelectDisplayProps:k,variant:S="outlined"}=n,$=cu(n,kn),j=v?wH:kt,O=v9({props:n,muiFormControl:ye(),states:["variant","error"]}),C=O.variant||S,U=ew({},n,{variant:C,classes:o}),E=ki(U),T=cu(E,kr),R=h||({standard:ep.jsx(ks,{ownerState:U}),outlined:ep.jsx(ka,{label:f,ownerState:U}),filled:ep.jsx(kl,{ownerState:U})})[C],A=fm(t,R.ref);return ep.jsx(em.Fragment,{children:em.cloneElement(R,ew({inputComponent:j,inputProps:ew({children:i,error:O.error,IconComponent:u,variant:C,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:a,displayEmpty:l,labelId:p,MenuProps:m,onClose:y,onOpen:b,open:x,renderValue:w,SelectDisplayProps:ew({id:c},k)},d,{classes:d?hj(T,d.classes):T},h?h.props.inputProps:{})},(g&&v||l)&&"outlined"===C?{notched:!0}:{},{ref:A,className:dB(R.props.className,s,E.root)},!h&&{variant:C},$))})});function kc(e){return dq("MuiTooltip",e)}ku.muiName="Select";let kh=dJ("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),kd=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","
161slotProps","slots","title","TransitionComponent","TransitionProps"],kf=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e;return fT({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${hF(o.split("-")[0])}`],arrow:["arrow"]},kc,t)},kp=pX(vH,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>ew({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${kh.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${kh.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${kh.arrow}`]:ew({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${kh.arrow}`]:ew({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),km=pX("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${hF(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ew({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:fZ(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(16/14*1e5)/1e5}em`,fontWeight:e.typography.fontWeightRegular},{[`.${kh.popper}[data-popper-placement*="left"] &`]:ew({transformOrigin:"right center"},t.isRtl?ew({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ew({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${kh.popper}[data-popper-placement*="right"] &`]:ew({transformOrigin:"left center"},t.isRtl?ew({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ew({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${kh.popper}[data-popper-placement*="top"] &`]:ew({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${kh.popper}[data-popper-placement*="bottom"] &`]:ew({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),kg=pX("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:fZ(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})),kv=!1,ky=new fy,kb={x:0,y:0};function kx(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}let kw=em.forwardRef(function(e,t){var n,r,i,o,s,a,l,u,c,h,d,f,p,m,g,v,y,b,x;let w=p$({props:e,name:"MuiTooltip"}),{arrow:k=!1,children:S,components:$={},componentsProps:j={},describeChild:O=!1,disableFocusListener:C=!1,disableHoverListener:U=!1,disableInteractive:E=!1,disableTouchListener:T=!1,enterDelay:R=100,enterNextDelay:A=0,enterTouchDelay:M=700,followCursor:P=!1,id:D,leaveDelay:I=0,leaveTouchDelay:N=1500,onClose:F,onOpen:z,open:L,placement:_="bottom",PopperComponent:B,PopperProps:V={},slotProps:W={},slots:q={},title:J,TransitionComponent:H=xI,TransitionProps:K}=w,G=cu(w,kd),Q=em.isValidElement(S)?S:ep.jsx("span",{children:S}),X=pS(),Y=fF(),[Z,ee]=em.useState(),[et,en]=em.useState(null),er=em.useRef(!1),ei=E||P,eo=fb(),es=fb(),ea=fb(),el=fb(),[eu,ec]=ff({controlled:L,default:!1,name:"Tooltip",state:"open"}),eh=eu,ed=fd(D),ef=em.useRef(),eg=fp(()=>{void 0!==ef.current&&(document.body.style.WebkitUserSelect=ef.current,ef.current=void 0),el.clear()});em.useEffect(()=>eg,[eg]);let ev=e=>{ky.clear(),kv=!0,ec(!0),z&&!eh&&z(e)},ey=fp(e=>{ky.start(800+I,()=>{kv=!1}),ec(!1),F&&eh&&F(e),eo.start(X.transitions.duration.shortest,()=>{er.current=!1})}),eb=e=>{er.current&&"touchstart"!==e.type||(Z&&Z.removeAttribute("title"),es.clear(),ea.clear(),R||kv&&A?es.start(kv?A:R,()=>{ev(e)}):ev(e))},ex=e=>{es.clear(),ea.start(I,()=>{ey(e)})},{isFocusVisibleRef:ek,onBlur:eS,onFocus:e$,ref:ej}=fC(),[,eO]=em.useState(!1),eC=e=>{eS(e),!1===ek.current&&(eO(!1),ex(e))},eU=e=>{Z||ee(e.currentTarget),e$(e),!0===ek.current&&(eO(!0),eb(e))},eE=e=>{er.current=!0;let t=Q.props;t.onTouchStart&&t.onTouchStart(e)};em.useEffect(()=>{if(eh)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&ey(e)}},[ey,eh]);let eT=fm(Q.ref,ej,ee,t);J||0===J||(eh=!1);let eR=em.useRef(),eA={},eM="string"==typeof J;O?(eA.title=eh||!eM||U?null:J,eA["aria-describedby"]=eh?ed:null):(eA["aria-label"]=eM?J:null,eA["aria-labelledby"]=eh&&!eM?ed:null);let eP=ew({},eA,G,Q.props,{className:dB(G.className,Q.props.className),onTouchStart:eE,ref:eT},P?{onMouseMove:e=>{let t=Q.props;t.onMouseMove&&t.onMouseMove(e),kb={x:e.clientX,y:e.clientY}
161,eR.current&&eR.current.update()}}:{}),eD={};T||(eP.onTouchStart=e=>{eE(e),ea.clear(),eo.clear(),eg(),ef.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",el.start(M,()=>{document.body.style.WebkitUserSelect=ef.current,eb(e)})},eP.onTouchEnd=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),eg(),ea.start(N,()=>{ey(e)})}),U||(eP.onMouseOver=kx(eb,eP.onMouseOver),eP.onMouseLeave=kx(ex,eP.onMouseLeave),ei||(eD.onMouseOver=eb,eD.onMouseLeave=ex)),C||(eP.onFocus=kx(eU,eP.onFocus),eP.onBlur=kx(eC,eP.onBlur),ei||(eD.onFocus=eU,eD.onBlur=eC));let eI=em.useMemo(()=>{var e;let t=[{name:"arrow",enabled:!!et,options:{element:et,padding:4}}];return null!=(e=V.popperOptions)&&e.modifiers&&(t=t.concat(V.popperOptions.modifiers)),ew({},V.popperOptions,{modifiers:t})},[et,V]),eN=ew({},w,{isRtl:Y,arrow:k,disableInteractive:ei,placement:_,PopperComponentProp:B,touch:er.current}),eF=kf(eN),ez=null!=(n=null!=(r=q.popper)?r:$.Popper)?n:kp,eL=null!=(i=null!=(o=null!=(s=q.transition)?s:$.Transition)?o:H)?i:xI,e_=null!=(a=null!=(l=q.tooltip)?l:$.Tooltip)?a:km,eB=null!=(u=null!=(c=q.arrow)?c:$.Arrow)?u:kg,eV=mb(ez,ew({},V,null!=(h=W.popper)?h:j.popper,{className:dB(eF.popper,null==V?void 0:V.className,null==(d=null!=(f=W.popper)?f:j.popper)?void 0:d.className)}),eN),eW=mb(eL,ew({},K,null!=(p=W.transition)?p:j.transition),eN),eq=mb(e_,ew({},null!=(m=W.tooltip)?m:j.tooltip,{className:dB(eF.tooltip,null==(g=null!=(v=W.tooltip)?v:j.tooltip)?void 0:g.className)}),eN),eJ=mb(eB,ew({},null!=(y=W.arrow)?y:j.arrow,{className:dB(eF.arrow,null==(b=null!=(x=W.arrow)?x:j.arrow)?void 0:b.className)}),eN);return ep.jsxs(em.Fragment,{children:[em.cloneElement(Q,eP),ep.jsx(ez,ew({as:null!=B?B:vH,placement:_,anchorEl:P?{getBoundingClientRect:()=>({top:kb.y,left:kb.x,right:kb.x,bottom:kb.y,width:0,height:0})}:Z,popperRef:eR,open:!!Z&&eh,id:ed,transition:!0},eD,eV,{popperOptions:eI,children:({TransitionProps:e})=>ep.jsx(eL,ew({timeout:X.transitions.duration.shorter},e,eW,{children:ep.jsxs(e_,ew({},eq,{children:[J,k?ep.jsx(eB,ew({},eJ,{ref:en})):null]}))}))}))]})});function kk(e){return dq("MuiTextField",e)}dJ("MuiTextField",["root"]);let kS=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],k$={standard:x_,filled:xo,outlined:w2},kj=e=>{let{classes:t}=e;return fT({root:["root"]},kk,t)},kO=pX(xc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kC=em.forwardRef(function(e,t){let n=p$({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:o,className:s,color:a="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:h,fullWidth:d=!1,helperText:f,id:p,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:y,label:b,maxRows:x,minRows:w,multiline:k=!1,name:S,onBlur:$,onChange:j,onFocus:O,placeholder:C,required:U=!1,rows:E,select:T=!1,SelectProps:R,type:A,value:M,variant:P="outlined"}=n,D=cu(n,kS),I=ew({},n,{autoFocus:i,color:a,disabled:u,error:c,fullWidth:d,multiline:k,required:U,select:T,variant:P}),N=kj(I),F={};"outlined"===P&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),T&&(R&&R.native||(F.id=void 0),F["aria-describedby"]=void 0);let z=fd(p),L=f&&z?`${z}-helper-text`:void 0,_=b&&z?`${z}-label`:void 0,B=k$[P],V=ep.jsx(B,ew({"aria-describedby":L,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:d,multiline:k,name:S,rows:E,maxRows:x,minRows:w,type:A,value:M,id:z,inputRef:y,onBlur:$,onChange:j,onFocus:O,placeholder:C,inputProps:g},F,v));return ep.jsxs(kO,ew({className:dB(N.root,s),disabled:u,error:c,fullWidth:d,ref:t,required:U,color:a,variant:P,ownerState:I},D,{children:[null!=b&&""!==b&&ep.jsx(xJ,ew({htmlFor:z,id:_},m,{children:b})),T?ep.jsx(ku,ew({"aria-describedby":L,id:z,labelId:_,value:M,input:V},R,{children:o})):V,f&&ep.jsx(x$,ew({id:L},h,{children:f}))]}))}),kU=e=>{let t=em.useRef(null),[n,r]=em.useState(null),{setContainer:i,onClose:o}=u6(),s=u8(e=>e.container);em.useEffect(()=>{let e=document.createElement("div");e.style.width="100vw",e.style.height="100vh",e.style.position="relative",i(e)},[]),em.useEffect(()=>{if(s){let e=window.open("","_blank","width=600,height=600,left=2
16100,top=200,toolbar=0");if(!e)return;e.document.title="Tolgee - Translate Text",e.document||alert("Please allow popups to open new window."),t.current=e,e.document.body.style.margin="0px",e.document.body.style.background="white",e.document.body.appendChild(s);let n=()=>{i(void 0),e.close(),o()};e.onbeforeunload=()=>{i(void 0),o()};let a=e=>{"Escape"===e.key&&o()},l=()=>{n()};return e.document.addEventListener("keydown",a,!0),window.addEventListener("beforeunload",l,!0),r(e),()=>{var n;e.document.removeEventListener("keydown",a,!0),window.removeEventListener("beforeunload",l,!0),i(void 0),null==(n=t.current)||n.close(),r(null)}}},[s]),em.useEffect(()=>{null==n||n.focus()});let a=eg.useMemo(()=>c0({key:"external",container:null==n?void 0:n.document.head,prepend:!0}),[n]);return n&&s?tn.createPortal(ep.jsx(ha,{value:a,children:e.children}),s):null},kE=({children:e})=>{let{onClose:t}=u6(),n=u8(e=>e.useBrowserWindow),r=u8(e=>e.takingScreenshot);return ep.jsx(ep.Fragment,{children:n?ep.jsx(kU,{children:e}):ep.jsx(bB,{disableRestoreFocus:!0,disableEnforceFocus:!0,disablePortal:!0,open:!0,onClose:t,"aria-labelledby":"form-dialog-title",maxWidth:"lg",style:{zIndex:2147483e3,visibility:r?"hidden":"visible"},children:ep.jsx(ep.Fragment,{children:e})})})},kT=p6(ep.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),kR=p6(ep.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"Backup"),kA=p6([ep.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),ep.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"CameraAlt"),kM=p6(ep.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),kP=p6(ep.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined"),kD=p6(ep.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),kI=p6(ep.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),kN=p6(ep.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),kF=p6(ep.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline"),kz=p6(ep.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff"),kL=p6(ep.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew"),k_={variable:{border:"#7AD3C1",background:"#BEF3E9",text:"#008371"},tag:{border:"#F27FA6",background:"#F9C4D6",text:"#822343"},variant:{border:"#BBC2CB",background:"#F0F2F4",text:"#4D5B6E"}},kB=pX("div")`
162  display: grid;
163  gap: 2px;
164`,kV=pX("div")`
165  padding-top: 4px;
166`,kW=pX("div")`
167  display: grid;
168  grid-template-columns: 56px 1fr;
169  gap: 8px;
170`,kq=pX("div")`
171  color: ${({theme:e})=>e.palette.text.secondary};
172  font-size: 14px;
173`,kJ=pX("div")`
174  box-sizing: border-box;
175  display: flex;
176  align-items: center;
177  justify-content: center;
178  height: 24px;
179  border: 1px solid ${k_.variant.border};
180  background-color: ${k_.variant.background};
181  color: ${k_.variant.text};
182  border-radius: 12px;
183  padding: 0px 9px;
184  font-size: 14px;
185  user-select: none;
186  margin: 0px 1px;
187  text-transform: capitalize;
188  white-space: nowrap;
189  & > * {
190    margin-top: -1px;
191  }
192`,kH=pX("div")`
193  display: block;
194`,kK=({locale:e,render:t,value:n,showEmpty:r,activeVariant:i,variantPaddingTop:o})=>{var s;let a=em.useMemo(()=>{let t=new Set(Object.keys(n.variants)),r=us(e);r.forEach(e=>t.delete(e));let i=Array.from(t).map(t=>[t,ul(e,t)]);return r.forEach(t=>{i.push([t,ul(e,t)])}),i},[e]);return n.parameter?ep.jsxs(kB,{children:[ep.jsx(kq,{"data-cy":"translation-plural-parameter",children:n.parameter}),ep.jsx(kW,{children:a.filter(([e])=>r||n.variants[e]).map(([r,s])=>{let a=i&&i!==r?.5:1;return ep.jsxs(eg.Fragment,{children:[ep.jsx(kJ,{sx:{opacity:a,marginTop:o},children:ep.jsx("div",{children:r})}),ep.jsx(kH,{sx:{opacity:a},"data-cy":"translation-plural-variant",children:t({variant:r,content:n.variants[r]||"",exampleValue:s,locale:e})})]},r)})})]}):ep.jsx(kV,{children:t({content:null!=(s=n.variants.other)?s:"",locale:e,variant:void 0})})},kG=pX("div")`
195  border: 1px solid
196    ${({theme:e})=>"dark"===e.palette.mode?"#535e6c":"#bfbfbf"};
197  overflow: hidden;
198  border-radius: 4px;
199  cursor: text;
200  background: ${({theme:e})=>e.palette.background.default};
201  padding: 1px;
202
203  &:hover {
204    border: 1px solid ${({theme:e})=>e.palette.grey[700]};
205  }
206
207  &:focus-within {
208    border-color: ${({theme:e})=>e.palette.grey[900]};
209  }
210
211  & > * {
212    padding: 8px 10px;
213  }
214`,kQ=e=>{var{children:t}=e,n=en(e,["children"]);return ep.jsx(kG,et(ee({onMouseDown:e=>e.preventDefault(),onClick:e=>{let t=e.target.querySelector(".cm-content");null==t||t.focus()}},n),{children:t}))},kX=0;class kY{constructor(e,t){this.from=e,this.to=t}}class kZ{constructor(e={}){this.id=kX++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=k2.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}kZ.closedBy=new kZ({deserialize:e=>e.split(" ")}),kZ.openedBy=new kZ({deserialize:e=>e.split(" ")}),kZ.group=new kZ({deserialize:e=>e.split(" ")}),kZ.isolate=new kZ({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),kZ.contextHash=new kZ({perNode:!0}),kZ.lookAhead=new kZ({perNode:!0}),kZ.mounted=new kZ({perNode:!0});class k0{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[kZ.mounted.id]}}let k1=Object.create(null);class k2{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):k1,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new k2(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(kZ.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(kZ.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}k2.none=new k2("",Object.create(null),0,8);let k3=new WeakMap,k4=new WeakMap;(w=B||(B={}))[w.ExcludeBuffers=1]="ExcludeBuffers",w[w.IncludeAnonymous=2]="IncludeAnonymous",w[w.IgnoreMounts=4]="IgnoreMounts",w[w.IgnoreOverlays=8]="IgnoreOverlays";class k5{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length)for(let[e,t]of(this.props=Object.create(null),i))this.props["number"==typeof e?e:e.id]=t}toString(){let e=k0.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Sl(this.topNode,e)}
vendor: 1,175 bytes, line 214
214cursorAt(e,t=0,n=0){let r=new Sl(k3.get(this)||this.topNode);return r.moveTo(e,t),k3.set(this,r._tree),r}get topNode(){return new St(this,0,0,null)}resolve(e,t=0){let n=k7(k3.get(this)||this.topNode,e,t,!1);return k3.set(this,n),n}resolveInner(e,t=0){let n=k7(k4.get(this)||this.topNode,e,t,!0);return k4.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof St?r:r.context.parent;e;e=e.parent)if(e.index<0){let o=e.parent;(i||(i=[r])).push(o.resolve(t,n)),e=o}else{let o=k0.get(e.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let s=new St(o.tree,o.overlay[0].from+e.from,-1,e);(i||(i=[r])).push(k7(s,t,n,!1))}}return i?Ss(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,s=(o&B.IncludeAnonymous)>0;for(let e=this.cursor(o|B.IncludeAnonymous);;){let o=!1;if(e.from<=i&&e.to>=r&&(!s&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;o=!0}for(;o&&n&&(s||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;o=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];
214if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Sd(k2.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new k5(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new k5(k2.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=1024,reused:o=[],minRepeatType:s=r.types.length}=e,a=Array.isArray(n)?new k6(n,n.length):n,l=r.types,u=0,c=0;function h(e,t,n,i,o,s,a,l,u){let c=[],h=[];for(;e.length>i;)c.push(e.pop()),h.push(t.pop()+n-o);e.push(d(r.types[a],c,h,s-o,l-s,u)),t.push(o-n)}function d(e,t,n,r,i,o,s){if(o){let e=[kZ.contextHash,o];s=s?[e].concat(s):[e]}if(i>25){let e=[kZ.lookAhead,i];s=s?[e].concat(s):[e]}return new k5(e,t,n,r,s)}let f=[],p=[];for(;a.pos>0;)!function e(t,n,f,p,m,g){let{id:v,start:y,end:b,size:x}=a,w=c,k=u;for(;x<0;){if(a.next(),-1==x){let e=o[v];f.push(e),p.push(y-t);return}if(-3==x){u=v;return}if(-4==x){c=v;return}throw RangeError(`Unrecognized record size: ${x}`)}let S=l[v],$,j,O=y-t;if(b-y<=i&&(j=function(e,t){let n=a.fork(),r=0,o=0,l=0,u=n.end-i,c={size:0,start:0,skip:0};o:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=o,c.skip=l,l+=4,r+=4,n.next();continue}let a=n.pos-e;if(e<0||a<i||n.start<u)break;let h=n.id>=s?4:0,d=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3==n.size)h+=4;else break o}else n.id>=s&&(h+=4);n.next()}o=d,r+=e,l+=h}return(t<0||r==e)&&(c.size=r,c.start=o,c.skip=l),c.size>4?c:void 0}(a.pos-n,m))){let e=new Uint16Array(j.size-j.skip),n=a.pos-j.size,i=e.length;for(;a.pos>n;)i=function e(t,n,r){let{id:i,start:o,end:l,size:h}=a;if(a.next(),h>=0&&i<s){let s=r;if(h>4){let i=a.pos-(h-4);for(;a.pos>i;)r=e(t,n,r)}n[--r]=s,n[--r]=l-t,n[--r]=o-t,n[--r]=i}else -3==h?u=i:-4==h&&(c=i);return r}(j.start,e,i);$=new k8(e,b-j.start,r),O=j.start-t}else{let t=a.pos-x;a.next();let n=[],o=[],l=v>=s?v:-1,u=0,c=b;for(;a.pos>t;)l>=0&&a.id==l&&a.size>=0?(a.end<=c-i&&(h(n,o,y,u,a.end,c,l,w,k),u=n.length,c=a.end),a.next()):g>2500?function(e,t,n,o){let s=[],l=0,u=-1;for(;a.pos>t;){let{id:e,start:t,end:n,size:r}=a;if(r>4)a.next();else if(u>-1&&t<u)break;else u<0&&(u=n-i),s.push(e,t,n),l++,a.next()}if(l){let t=new Uint16Array(4*l),i=s[s.length-2];for(let e=s.length-3,n=0;e>=0;e-=3)t[n++]=s[e],t[n++]=s[e+1]-i,t[n++]=s[e+2]-i,t[n++]=n;n.push(new k8(t,s[2]-i,r)),o.push(i-e)}}(y,t,n,o):e(y,t,n,o,l,g+1);if(l>=0&&u>0&&u<n.length&&h(n,o,y,u,y,c,l,w,k),n.reverse(),o.reverse(),l>-1&&u>0){let e=function(e,t){return(n,r,i)=>{let o=0,s=n.length-1,a,l;if(s>=0&&(a=n[s])instanceof k5){if(!s&&a.type==e&&a.length==i)return a;(l=a.prop(kZ.lookAhead))&&(o=r[s]+a.length+l)}return d(e,n,r,i,o,t)}}(S,k);$=Sd(S,n,o,0,n.length,0,b-y,e,e)}else $=d(S,n,o,b-y,w-b,k)}f.push($),p.push(O)}(e.start||0,e.bufferStart||0,f,p,-1,0);let m=null!==(t=e.length)&&void 0!==t?t:f.length?p[0]+f[0].length:0;return new k5(l[e.topID],f.reverse(),p.reverse(),m)}(e)}}k5.empty=new k5(k2.none,[],[],0);class k6{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new k6(this.buffer,this.index)}}class k8{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return k2.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,t,n,r,i){let{buffer:o}=this,s=-1;for(let a=e;a!=t&&(!k9(i,r,o[a+1],o[a+2])||(s=a,!(n>0)));a=o[a+3]);return s}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let s=e,a=0;s<t;){i[a++]=r[s++],i[a++]=r[s++]-n;let t=i[a++]=r[s++]-n;i[a++]=r[s++]-e,o=Math.max(o,t)}return new k8(i,o,this.set)}}function k9(e,t,n,r){switch(e){case -2:return n<t;case -1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function k7(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);
vendor: 5,453 bytes, line 214
214){let t=!r&&e instanceof St&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=r?0:B.IgnoreOverlays;if(r)for(let r=e,s=r.parent;s;s=(r=s).parent)r instanceof St&&r.index<0&&(null===(i=s.enter(t,n,o))||void 0===i?void 0:i.from)!=r.from&&(e=s);for(;;){let r=e.enter(t,n,o);if(!r)return e;e=r}}class Se{cursor(e=0){return new Sl(this,e)}getChild(e,t=null,n=null){let r=Sn(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return Sn(this,e,t,n)}resolve(e,t=0){return k7(this,e,t,!1)}resolveInner(e,t=0){return k7(this,e,t,!0)}matchContext(e){return Sr(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class St extends Se{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,i=0){for(let o=this;;){for(let{children:s,positions:a}=o._tree,l=t>0?s.length:-1;e!=l;e+=t){let l=s[e],u=a[e]+o.from;if(k9(r,n,u,u+l.length)){if(l instanceof k8){if(i&B.ExcludeBuffers)continue;let s=l.findChild(0,l.buffer.length,t,n-u,r);if(s>-1)return new So(new Si(o,l,e,u),null,s)}else if(i&B.IncludeAnonymous||!l.type.isAnonymous||Su(l)){let s;if(!(i&B.IgnoreMounts)&&(s=k0.get(l))&&!s.overlay)return new St(s.tree,u,e,o);let a=new St(l,u,e,o);return i&B.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?l.children.length-1:0,t,n,r)}}}if(i&B.IncludeAnonymous||!o.type.isAnonymous||(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,!(o=o._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&B.IgnoreOverlays)&&(r=k0.get(this._tree))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e<n)&&(t<0?i>=n:i>n))return new St(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Sn(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n){for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return o}for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function Sr(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class Si{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class So extends Se{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new So(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&B.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new So(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new So(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new So(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new k5(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Ss(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(i.from>n.from||i.to<n.to)&&(n=i,t=r)}let r=n instanceof St&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new Sa(i,n)}class Sa{constructor(e,t){this.heads=e,this.node=t}get next(){return Ss(this.heads)}}class Sl{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof St)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;
vendor: 4,136 bytes, line 214
214for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof St?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&B.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&B.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&B.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&B.IncludeAnonymous||e instanceof k8||!e.type.isAnonymous||Su(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)o:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break o}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new So(this.buffer,t,this.stack[e]);return this.bufferNode=new So(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return Sr(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return Sr(this._tree,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function Su(e){return e.children.some(e=>e instanceof k8||!e.type.isAnonymous||Su(e))}let Sc=new WeakMap;function Sh(e,t){if(!e.isAnonymous||t instanceof k8||t.type!=e)return 1;let n=Sc.get(t);if(null==n){for(let r of(n=1,t.children)){if(r.type!=e||!(r instanceof k5)){
214n=1;break}n+=Sh(e,r)}Sc.set(t,n)}return n}function Sd(e,t,n,r,i,o,s,a,l){let u=0;for(let n=r;n<i;n++)u+=Sh(e,t[n]);let c=Math.ceil(1.5*u/8),h=[],d=[];return!function t(n,r,i,s,a){for(let u=i;u<s;){let i=u,f=r[u],p=Sh(e,n[u]);for(u++;u<s;u++){let t=Sh(e,n[u]);if(p+t>=c)break;p+=t}if(u==i+1){if(p>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}h.push(n[i])}else{let t=r[u-1]+n[u-1].length-f;h.push(Sd(e,n,r,i,u,f,t,null,l))}d.push(f+a-o)}}(t,n,r,i,0),(a||l)(h,d,s)}class Sf{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new Sf(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let u=s<t.length?t[s]:null,c=u?u.fromA:1e9;if(c-a>=n)for(;o&&o.from<c;){let t=o;if(a>=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new Sf(e,n,t.tree,t.offset+l,s>0,!!u)}if(t&&r.push(t),o.to>c)break;o=i<e.length?e[i++]:null}if(!u)break;a=u.toA,l=u.toA-u.toB}return r}}class Sp{startParse(e,t,n){return"string"==typeof e&&(e=new Sm(e)),n=n?n.length?n.map(e=>new kY(e.from,e.to)):[new kY(0,0)]:[new kY(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class Sm{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new kZ({perNode:!0});let Sg=0,Sv=class e{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=Sg++}static define(t){if(null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let n=new e([],null,[]);if(n.set.push(n),t)for(let e of t.set)n.set.push(e);return n}static defineModifier(){let e=new Sb;return t=>t.modified.indexOf(e)>-1?t:Sb.get(t.base||t,t.modified.concat(e).sort((e,t)=>e.id-t.id))}},Sy=0;class Sb{constructor(){this.instances=[],this.id=Sy++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var r;return n.base==e&&(r=n.modified,t.length==r.length&&t.every((e,t)=>e==r[t]))});if(n)return n;let r=[],i=new Sv(r,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)r.push(Sb.get(t,e));return i}}let Sx=new kZ;class Sw{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function Sk(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}Sw.empty=new Sw([],2,null);class SS{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:o,from:s,to:a}=e;if(s>=n||a<=t)return;o.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(o)));let l=r,u=function(e){let t=e.type.prop(Sx);for(;t&&t.context&&!e.matchContext(t.context);
214)t=t.next;return t||null}(e)||Sw.empty,c=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(i,u.tags);if(c&&(l&&(l+=" "),l+=c,1==u.mode&&(r+=(r?" ":"")+c)),this.startSpan(Math.max(t,s),l),u.opaque)return;let h=e.tree&&e.tree.prop(kZ.mounted);if(h&&h.overlay){let o=e.node.enter(h.overlay[0].from+s,1),u=this.highlighters.filter(e=>!e.scope||e.scope(h.tree.type)),c=e.firstChild();for(let d=0,f=s;;d++){let p=d<h.overlay.length?h.overlay[d]:null,m=p?p.from+s:a,g=Math.max(t,f),v=Math.min(n,m);if(g<v&&c)for(;e.from<v&&(this.highlightRange(e,g,v,r,i),this.startSpan(Math.min(v,e.to),l),!(e.to>=m)&&e.nextSibling()););if(!p||m>n)break;(f=p.to+s)>t&&(this.highlightRange(o.cursor(),Math.max(t,p.from+s),Math.min(n,f),"",u),this.startSpan(Math.min(n,f),l))}c&&e.parent()}else if(e.firstChild()){h&&(r="");do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),l)}while(e.nextSibling());e.parent()}}}let S$=Sv.define,Sj=S$(),SO=S$(),SC=S$(SO),SU=S$(SO),SE=S$(),ST=S$(SE),SR=S$(SE),SA=S$(),SM=S$(SA),SP=S$(),SD=S$(),SI=S$(),SN=S$(SI),SF=S$(),Sz={comment:Sj,lineComment:S$(Sj),blockComment:S$(Sj),docComment:S$(Sj),name:SO,variableName:S$(SO),typeName:SC,tagName:S$(SC),propertyName:SU,attributeName:S$(SU),className:S$(SO),labelName:S$(SO),namespace:S$(SO),macroName:S$(SO),literal:SE,string:ST,docString:S$(ST),character:S$(ST),attributeValue:S$(ST),number:SR,integer:S$(SR),float:S$(SR),bool:S$(SE),regexp:S$(SE),escape:S$(SE),color:S$(SE),url:S$(SE),keyword:SP,self:S$(SP),null:S$(SP),atom:S$(SP),unit:S$(SP),modifier:S$(SP),operatorKeyword:S$(SP),controlKeyword:S$(SP),definitionKeyword:S$(SP),moduleKeyword:S$(SP),operator:SD,derefOperator:S$(SD),arithmeticOperator:S$(SD),logicOperator:S$(SD),bitwiseOperator:S$(SD),compareOperator:S$(SD),updateOperator:S$(SD),definitionOperator:S$(SD),typeOperator:S$(SD),controlOperator:S$(SD),punctuation:SI,separator:S$(SI),bracket:SN,angleBracket:S$(SN),squareBracket:S$(SN),paren:S$(SN),brace:S$(SN),content:SA,heading:SM,heading1:S$(SM),heading2:S$(SM),heading3:S$(SM),heading4:S$(SM),heading5:S$(SM),heading6:S$(SM),contentSeparator:S$(SA),list:S$(SA),quote:S$(SA),emphasis:S$(SA),strong:S$(SA),link:S$(SA),monospace:S$(SA),strikethrough:S$(SA),inserted:S$(),deleted:S$(),changed:S$(),invalid:S$(),meta:SF,documentMeta:S$(SF),annotation:S$(SF),processingInstruction:S$(SF),definition:Sv.defineModifier(),constant:Sv.defineModifier(),function:Sv.defineModifier(),standard:Sv.defineModifier(),local:Sv.defineModifier(),special:Sv.defineModifier()};Sk([{tag:Sz.link,class:"tok-link"},{tag:Sz.heading,class:"tok-heading"},{tag:Sz.emphasis,class:"tok-emphasis"},{tag:Sz.strong,class:"tok-strong"},{tag:Sz.keyword,class:"tok-keyword"},{tag:Sz.atom,class:"tok-atom"},{tag:Sz.bool,class:"tok-bool"},{tag:Sz.url,class:"tok-url"},{tag:Sz.labelName,class:"tok-labelName"},{tag:Sz.inserted,class:"tok-inserted"},{tag:Sz.deleted,class:"tok-deleted"},{tag:Sz.literal,class:"tok-literal"},{tag:Sz.string,class:"tok-string"},{tag:Sz.number,class:"tok-number"},{tag:[Sz.regexp,Sz.escape,Sz.special(Sz.string)],class:"tok-string2"},{tag:Sz.variableName,class:"tok-variableName"},{tag:Sz.local(Sz.variableName),class:"tok-variableName tok-local"},{tag:Sz.definition(Sz.variableName),class:"tok-variableName tok-definition"},{tag:Sz.special(Sz.variableName),class:"tok-variableName2"},{tag:Sz.definition(Sz.propertyName),class:"tok-propertyName tok-definition"},{tag:Sz.typeName,class:"tok-typeName"},{tag:Sz.namespace,class:"tok-namespace"},{tag:Sz.className,class:"tok-className"},{tag:Sz.macroName,class:"tok-macroName"},{tag:Sz.propertyName,class:"tok-propertyName"},{tag:Sz.operator,class:"tok-operator"},{tag:Sz.comment,class:"tok-comment"},{tag:Sz.meta,class:"tok-meta"},{tag:Sz.invalid,class:"tok-invalid"},{tag:Sz.punctuation,class:"tok-punctuation"}]);let SL=new kZ,S_=new kZ;class SB{constructor(e,t,n=[],r=""){this.data=e,this.name=r,nb.prototype.hasOwnProperty("tree")||Object.defineProperty(nb.prototype,"tree",{get(){return SW(this)}}),this.parser=t,this.extension=[SZ.of(this),nb.languageData.of((e,t,n)=>{let r=SV(e,t,n),i=r.type.prop(SL);if(!i)return[];let o=e.facet(i),s=r.type.prop(S_);if(s){let i=r.resolve(t-r.from,n);for(let t of s)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o}
vendor: 6,024 bytes, line 214
214)].concat(n)}isActiveAt(e,t,n=-1){return SV(e,t,n).type.prop(SL)==this.data}findRegions(e){let t=e.facet(SZ);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(SL)==this.data){n.push({from:t,to:t+e.length});return}let i=e.prop(kZ.mounted);if(i){if(i.tree.prop(SL)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let i=e.children[n];i instanceof k5&&r(i,e.positions[n]+t)}};return r(SW(e),0),n}get allowsNesting(){return!0}}function SV(e,t,n){let r=e.facet(SZ),i=SW(e).topNode;if(!r||r.allowsNesting)for(let e=i;e;e=e.enter(t,n,B.ExcludeBuffers))e.type.isTop&&(i=e);return i}function SW(e){let t=e.field(SB.state,!1);return t?t.tree:k5.empty}SB.setState=nh.define();class Sq{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let SJ=null;class SH{constructor(e,t,n=[],r,i,o,s,a){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new SH(e,t,[],k5.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Sq(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=k5.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(Sf.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Sf.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=SJ;SJ=this;try{return e()}finally{SJ=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=SK(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=Sf.applyChanges(n,t),r=k5.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length)for(let t of(s=[],this.skipped)){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&s.push({from:n,to:r})}}return new SH(this.parser,t,n,r,i,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=SK(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Sp{createParse(t,n,r){let i=r[0].from,o=r[r.length-1].to;return{parsedPos:i,advance(){let t=SJ;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new k5(k2.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return SJ}}function SK(e,t,n){return Sf.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class SG{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new SG(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=SH.create(e.facet(SZ).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new SG(n)}}SB.state=t1.define({create:SG.init,update(e,t){for(let e of t.effects)if(e.is(SB.setState))return e.value;return t.startState.facet(SZ)!=t.state.facet(SZ)?SG.init(t.state):e.apply(t)}});let SQ=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(SQ=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let SX="undefined"!=typeof navigator&&(null===(V=navigator.scheduling)||void 0===V?void 0:V.isInputPending)?()=>navigator.scheduling.isInputPending():null,SY=ix.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(SB.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(SB.state);
214t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=SQ(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(SB.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!SX?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work(()=>SX&&SX()||Date.now()>o,r+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:SB.setState.of(new SG(i.context))})),this.chunkBudget>0&&!(a&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>ig(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),SZ=tG.define({combine:e=>e.length?e[0]:null,enables:e=>[SB.state,SY,oY.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]}),S0=tG.define(),S1=tG.define({combine:e=>{if(!e.length)return"  ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function S2(e){let t=e.facet(S1);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function S3(e,t){let n="",r=e.tabSize,i=e.facet(S1)[0];if("	"==i){for(;t>=r;)n+="	",t-=r;i=" "}for(let e=0;e<t;e++)n+=i;return n}function S4(e,t){for(let n of(e instanceof nb&&(e=new S5(e)),e.state.facet(S0))){let r=n(e,t);if(void 0!==r)return r}let n=SW(e.state);return n.length>=t?function(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t!=r.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return S8(r,e,n)}(e,n,t):null}class S5{constructor(e,t={}){this.state=e,this.options=t,this.unit=S2(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return nN(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let S6=new kZ;function S8(e,t,n){for(let r=e;r;r=r.next){let e=function(e){let t=e.type.prop(S6);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(kZ.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>(function(e,t,n,r,i){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.from<s?n:null;e=i.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:1*e.unit)})(e,!0,0,void 0,n&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?S9:null}(r.node);if(e)return e(S7.create(t,n,r))}return 0}function S9(){return 0}class S7 extends S5{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}
214static create(e,t,n){return new S7(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return S8(this.context.next,this.base,this.pos)}}class $e{constructor(e,t){let n;function r(e){let t=n_.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;let i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof SB?e=>e.prop(SL)==o.data:o?e=>e==o:void 0,this.style=Sk(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new n_(n):null,this.themeType=t.themeType}static define(e,t){return new $e(e,t||{})}}let $t=tG.define(),$n=tG.define({combine:e=>e.length?[e[0]]:null});function $r(e){let t=e.facet($t);return t.length?t:e.facet($n)}class $i{constructor(e){this.markCache=Object.create(null),this.tree=SW(e.state),this.decorations=this.buildDeco(e,$r(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=SW(e.state),n=$r(e.state),r=n!=$r(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<i.to&&!r&&t.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return rN.none;let n=new nO;for(let{from:r,to:i}of e.visibleRanges)!function(e,t,n,r=0,i=e.length){let o=new SS(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=rN.mark({class:r})))},r,i);return n.finish()}}let $o=t4.high(ix.fromClass($i,{decorations:e=>e.decorations})),$s=$e.define([{tag:Sz.meta,color:"#404740"},{tag:Sz.link,textDecoration:"underline"},{tag:Sz.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Sz.emphasis,fontStyle:"italic"},{tag:Sz.strong,fontWeight:"bold"},{tag:Sz.strikethrough,textDecoration:"line-through"},{tag:Sz.keyword,color:"#708"},{tag:[Sz.atom,Sz.bool,Sz.url,Sz.contentSeparator,Sz.labelName],color:"#219"},{tag:[Sz.literal,Sz.inserted],color:"#164"},{tag:[Sz.string,Sz.deleted],color:"#a11"},{tag:[Sz.regexp,Sz.escape,Sz.special(Sz.string)],color:"#e40"},{tag:Sz.definition(Sz.variableName),color:"#00f"},{tag:Sz.local(Sz.variableName),color:"#30a"},{tag:[Sz.typeName,Sz.namespace],color:"#085"},{tag:Sz.className,color:"#167"},{tag:[Sz.special(Sz.variableName),Sz.macroName],color:"#256"},{tag:Sz.definition(Sz.propertyName),color:"#00c"},{tag:Sz.comment,color:"#940"},{tag:Sz.invalid,color:"#f00"}]),$a=new kZ;function $l(e,t,n){let r=e.prop(t<0?kZ.openedBy:kZ.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function $u(e){let t=e.type.prop($a);return t?t(e.node):e}function $c(e,t,n,r={}){let i=r.maxScanDistance||1e4,o=r.brackets||"()[]{}",s=SW(e),a=s.resolveInner(t,n);for(let e=a;e;e=e.parent){let r=$l(e.type,n,o);if(r&&e.from<e.to){let i=$u(e);if(i&&(n>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return function(e,t,n,r,i,o,s){let a=r.parent,l={from:i.from,to:i.to},u=0,c=null==a?void 0:a.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(0==u&&o.indexOf(c.type.name)>-1&&c.from<c.to){let e=$u(c);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if($l(c.type,n,s))u++;else if($l(c.type,-n,s)){if(0==u){let e=$u(c);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}u--}}while(n<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}(0,0,n,e,i,r,o)}}return function(e,t,n,r,i,o,s){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let e=0;!c.next().done&&e<=o;){let o=c.value;n<0&&(e+=o.length);let a=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=s.indexOf(o[e]);if(!(t<0)&&r.resolveInner(a+e,1).type==i){if(t%2==0==n>0)h++;else{if(1==h)return{start:u,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};h--}}}n>0&&(e+=o.length)}return c.done?{start:u,matched:!1}:null}(e,t,n,s,a.type,i,o)}let $h=Object.create(null),$d=[k2.none],$f=[],$p=Object.create(null),$m=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invali
214d"],["header","heading"],["property","propertyName"]])$m[e]=function(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||Sz[n];r?"function"==typeof r?t.length?t=t.map(r):$g(n,`Modifier ${n} used at start of tag`):t.length?$g(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:$g(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(e=>e.id),o=$p[i];if(o)return o.id;let s=$p[i]=k2.define({id:$d.length,name:r,props:[function(e){let t=Object.create(null);for(let n in e){let r=e[n];for(let e of(Array.isArray(r)||(r=[r]),n.split(" ")))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(t+=r[0].length)==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw RangeError("Invalid path: "+e);let l=new Sw(r,i,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return Sx.add(t)}({[r]:n})]});return $d.push(s),s.id}($h,t);function $g(e,t){$f.indexOf(e)>-1||($f.push(e),console.warn(t))}function $v(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}let $y=$v(function(e,t,n=t.selection.ranges){let r=[],i=-1;for(let{from:e,to:o}of n){let n=r.length,s=1e9,a=$w(t,e).line;if(a){for(let n=e;n<=o;){let l=t.doc.lineAt(n);if(l.from>i&&(e==o||o>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+a.length)==a?e:-1;e<l.text.length&&e<s&&(s=e),r.push({line:l,comment:n,token:a,indent:e,empty:t,single:!1})}n=l.to+1}if(s<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=s);r.length==n+1&&(r[n].single=!0)}}if(2!=e&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:o,single:s}of r)(s||!o)&&e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null},0),$b=$v($k,0),$x=$v((e,t)=>$k(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t)),0);function $w(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function $k(e,t,n=t.selection.ranges){let r=n.map(e=>$w(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>(function(e,{open:t,close:n},r,i){let o,s,a=e.sliceDoc(r-50,r),l=e.sliceDoc(i,i+50),u=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,h=a.length-u;if(a.slice(h-t.length,h)==t&&l.slice(c,c+n.length)==n)return{open:{pos:r-u,margin:u&&1},close:{pos:i+c,margin:c&&1}};i-r<=100?o=s=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+50),s=e.sliceDoc(i-50,i));let d=/^\s*/.exec(o)[0].length,f=/\s*$/.exec(s)[0].length,p=s.length-f-n.length;return o.slice(d,d+t.length)==t&&s.slice(p,p+n.length)==n?{open:{pos:r+d+t.length,margin:/\s/.test(o.charAt(d+t.length))?1:0},close:{pos:i-f-n.length,margin:/\s/.test(s.charAt(p-1))?1:0}}:null})(t,r[n],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:o,close:s}=n;e.push({from:o.pos-i.open.length,to:o.pos+o.margin},{from:s.pos-s.margin,to:s.pos+i.close.length})}return{changes:e}}return null}let $S=nl.define(),$$=nl.define(),$j=tG.define(),$O=tG.define({combine:e=>nx(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),$C=t1.define({create:()=>$L.empty,update(e,t){let n=t.state.facet($O),r=t.annotation($S);if(r){let i=$M.fromTransaction(t,r.selection),o=r.side,s=0==o?e.undone:e.done;return s=i?$P(s,s.length,n.minDepth,i):$N(s,t.startState.selection),new $L(0==o?r.rest:s,0==o?s:r.rest)}let i=t.annotation($$);
214if(("full"==i||"before"==i)&&(e=e.isolate()),!1===t.annotation(nd.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=$M.fromTransaction(t),s=t.annotation(nd.time),a=t.annotation(nd.userEvent);return o?e=e.addChanges(o,s,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),("full"==i||"after"==i)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new $L(e.done.map($M.fromJSON),e.undone.map($M.fromJSON))});function $U(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field($C,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}let $E=$U(0,!1),$T=$U(1,!1),$R=$U(0,!0),$A=$U(1,!0);class $M{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new $M(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new $M(e.changes&&tF.fromJSON(e.changes),[],e.mapped&&tN.fromJSON(e.mapped),e.startSelection&&tJ.fromJSON(e.startSelection),e.selectionsAfter.map(tJ.fromJSON))}static fromTransaction(e,t){let n=$I;for(let t of e.startState.facet($j)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new $M(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,$I)}static selection(e){return new $M(void 0,$I,void 0,void 0,e)}}function $P(e,t,n,r){let i=e.slice(t+1>n+20?t-n-1:0,t);return i.push(r),i}function $D(e,t){return e.length?t.length?e.concat(t):e:t}let $I=[];function $N(e,t){if(!e.length)return[$M.selection([t])];{let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),$P(e,e.length-1,1e9,n.setSelAfter(r)))}}function $F(e,t){if(!e.length)return e;let n=e.length,r=$I;for(;n;){let i=function(e,t,n){let r=$D(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):$I,n);if(!e.changes)return $M.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new $M(i,nh.mapEffects(e.effects,t),s,e.startSelection.map(o),r)}(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[$M.selection(r)]:$I}let $z=/^(input\.type|delete)($|\.)/;class $L{constructor(e,t,n=0,r){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new $L(this.done,this.undone):this}addChanges(e,t,n,r,i){var o,s;let a,l,u=this.done,c=u[u.length-1];return new $L(u=c&&c.changes&&!c.changes.empty&&e.changes&&(!n||$z.test(n))&&(!c.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,(o=c.changes,s=e.changes,a=[],l=!1,o.iterChangedRanges((e,t)=>a.push(e,t)),s.iterChangedRanges((e,t,n,r)=>{for(let e=0;e<a.length;){let t=a[e++],i=a[e++];r>=t&&n<=i&&(l=!0)}}),l))||"input.type.compose"==n)?$P(u,u.length-1,r.minDepth,new $M(e.changes.compose(c.changes),$D(e.effects,c.effects),c.mapped,c.startSelection,$I)):$P(u,u.length,r.minDepth,e),$I,t,n)}addSelection(e,t,n,r){var i;let o=this.done.length?this.done[this.done.length-1].selectionsAfter:$I;return o.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(i=o[o.length-1]).ranges.length==e.ranges.length&&0===i.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length?this:new $L($N(this.done,e),this.undone,t,n)}addMapping(e){return new $L($F(this.done,e),$F(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||t.selection;if(n&&i.selectionsAfter.length){let n,s;return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:$S.of({side:e,rest:(n=r[r.length-1],(s=r.slice())[r.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),s),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}if(!i.changes)return null;{let n=1==r.length?$I:r.slice(0,r.length-1);
vendor: 14,678 bytes, line 214
214return i.mapped&&(n=$F(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:$S.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}}function $_(e,t){return tJ.create(e.ranges.map(t),e.mainIndex)}function $B(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function $V({state:e,dispatch:t},n){let r=$_(e.selection,n);return!r.eq(e.selection,!0)&&(t($B(e,r)),!0)}function $W(e,t){return tJ.cursor(t?e.to:e.from)}function $q(e,t){return $V(e,n=>n.empty?e.moveByChar(n,t):$W(n,t))}function $J(e){return e.textDirectionAt(e.state.selection.main.head)==rG.LTR}$L.empty=new $L($I,$I);let $H=e=>$q(e,!$J(e)),$K=e=>$q(e,$J(e));function $G(e,t){return $V(e,n=>n.empty?e.moveByGroup(n,t):$W(n,t))}function $Q(e,t,n){let r,i,o=SW(e).resolveInner(t.head),s=n?kZ.closedBy:kZ.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;!function(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}(e,t,s)?r=n?t.to:t.from:o=t}return i=o.type.prop(s)&&(r=n?$c(e,o.from,1):$c(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,tJ.cursor(i,n?-1:1)}function $X(e,t){return $V(e,n=>{if(!n.empty)return $W(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}let $Y=e=>$X(e,!1),$Z=e=>$X(e,!0);function $0(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(oY.scrollMargins)){let i=t(e);(null==i?void 0:i.top)&&(n=Math.max(null==i?void 0:i.top,n)),(null==i?void 0:i.bottom)&&(r=Math.max(null==i?void 0:i.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function $1(e,t){let n,r=$0(e),{state:i}=e,o=$_(i.selection,n=>n.empty?e.moveVertically(n,t,r.height):$W(n,t));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),a=s.top+r.marginTop,l=s.bottom-r.marginBottom;t&&t.top>a&&t.bottom<l&&(n=oY.scrollIntoView(o.main.head,{y:"start",yMargin:t.top-a}))}return e.dispatch($B(i,o),{effects:n}),!0}let $2=e=>$1(e,!1),$3=e=>$1(e,!0);function $4(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=tJ.cursor(r.from+n))}return i}function $5(e,t){let n=$_(e.state.selection,e=>{let n=t(e);return tJ.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch($B(e.state,n)),!0)}function $6(e,t){return $5(e,n=>e.moveByChar(n,t))}let $8=e=>$6(e,!$J(e)),$9=e=>$6(e,$J(e));function $7(e,t){return $5(e,n=>e.moveByGroup(n,t))}function je(e,t){return $5(e,n=>e.moveVertically(n,t))}let jt=e=>je(e,!1),jn=e=>je(e,!0);function jr(e,t){return $5(e,n=>e.moveVertically(n,t,$0(e).height))}let ji=e=>jr(e,!1),jo=e=>jr(e,!0),js=({state:e,dispatch:t})=>(t($B(e,{anchor:0})),!0),ja=({state:e,dispatch:t})=>(t($B(e,{anchor:e.doc.length})),!0),jl=({state:e,dispatch:t})=>(t($B(e,{anchor:e.selection.main.anchor,head:0})),!0),ju=({state:e,dispatch:t})=>(t($B(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function jc(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:o}=r;if(i==o){let s=t(r);s<i?(n="delete.backward",s=jh(e,s,!1)):s>i&&(n="delete.forward",s=jh(e,s,!0)),i=Math.min(i,s),o=Math.max(o,s)}else i=jh(e,i,!1),o=jh(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:tJ.cursor(i,i<r.head?-1:1)}});return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?oY.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function jh(e,t,n){if(e instanceof oY)for(let r of e.state.facet(oY.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}let jd=(e,t)=>jc(e,n=>{let r=n.from,{state:i}=e,o=i.doc.lineAt(r),s,a;if(!t&&r>o.from&&r<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,r-o.from))){if("	"==s[s.length-1])return r-1;let e=nN(s,i.tabSize)%S2(i)||S2(i);for(let t=0;t<e&&" "==s[s.length-1-t];t++)r--;a=r}else(a=tA(o.text,r-o.from,t,t)+o.from)==r&&o.number!=(t?i.doc.lines:1)?a+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(o.text.slice(a-o.from,r-o.from))&&(a=tA(o.text,a-o.from,!1,!1)+o.from);return a}),jf=e=>jd(e,!1),jp=e=>jd(e,!0),jm=(e,t)=>jc(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),s=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let a=tA(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,a)-o.from,Math.max(r,a)-o.from),u=s(l);if(null!=e&&u!=e)break;(" "!=l||r!=n.head)&&(e=u),r=a}return r}),jg=e=>jm(e,!1);function jv(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function jy(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of jv(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),s=o.length+1;if(n)for(let n of(r.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak}),t.ranges))i.push(tJ.range(Math.min(e.doc.length,n.anchor+s),Math.min(e.doc.length,n.head+s)));else for(let n of(r.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text}),t.ranges))i.push(tJ.range(n.anchor-s,n.head-s))}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:tJ.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function jb(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of jv(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}let jx=jk(!1),jw=jk(!0);function jk(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),s=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=SW(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),o;return r&&i&&r.to<=t&&i.from>=t&&(o=r.type.prop(kZ.closedBy))&&o.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let a=new S5(t,{simulateBreak:r,simulateDoubleBreak:!!s}),l=S4(a,r);for(null==l&&(l=nN(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));i<o.to&&/\s/.test(o.text[i-o.from]);)i++;s?{from:r,to:i}=s:r>o.from&&r<o.from+100&&!/\S/.test(o.text.slice(0,r))&&(r=o.from);let u=["",S3(t,l)];return s&&u.push(S3(t,a.lineIndent(o.from,-1))),{changes:{from:r,to:i,insert:tS.of(u)},range:tJ.cursor(r+1+u[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function jS(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let o=r.from;o<=r.to;){let s=e.doc.lineAt(o);s.number>n&&(r.empty||r.to>s.from)&&(t(s,i,r),n=s.number),o=s.to+1}let o=e.changes(i);return{changes:i,range:tJ.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}let j$=[{key:"Ctrl-b",run:$H,shift:$8,preventDefault:!0},{key:"Ctrl-f",run:$K,shift:$9},{key:"Ctrl-p",run:$Y,shift:jt},{key:"Ctrl-n",run:$Z,shift:jn},{key:"Ctrl-a",run:e=>$V(e,t=>tJ.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>$5(e,t=>tJ.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>$V(e,t=>tJ.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>$5(e,t=>tJ.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:jp},{key:"Ctrl-h",run:jf},{key:"Ctrl-k",run:e=>jc(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:jg},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:tS.of(["",""])},range:tJ.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:tA(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:tA(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:tJ.cursor(o)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:$3}],jj=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>$V(e,t=>$Q(e.state,t,!$J(e))),shift:e=>$5(e,t=>$Q(e.state,t,!$J(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>$V(e,t=>$Q(e.state,t,$J(e))),shift:e=>$5(e,t=>$Q(e.state,t,$J(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>jy(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>jb(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>jy(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>jb(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=tJ.create([n.main]):n.main.empty||(r=tJ.create([tJ.cursor(n.main.head)])),!!r&&(t($B(e,r)),!0)}},{key:"Mod-Enter",run:jw},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=jv(e).map(({from:t,to:n})=>tJ.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:tJ.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=$_(e.selection,t=>{var n;let r=SW(e).resolveStack(t.from,1);for(let e=r;e;e=e.next){let{node:r}=e;if((r.from<t.from&&r.to>=t.to||r.to>t.to&&r.from<=t.from)&&(null===(n=r.parent)||void 0===n?void 0:n.parent))return tJ.range(r.to,r.from)}return t});return t($B(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(jS(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=nN(r,e.tabSize),o=0,s=S3(e,Math.max(0,i-S2(e)));for(;o<r.length&&o<s.length&&r.charCodeAt(o)==s.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+r.length,insert:s.slice(o)})}),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(jS(e,(t,n)=>{n.push({from:t.from,insert:e.facet(S1)})}),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new S5(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=jS(e,(t,i,o)=>{let s=S4(r,t.from);if(null==s)return;/\S/.test(t.text)||(s=0);let a=/^\s*/.exec(t.text)[0],l=S3(e,s);(a!=l||o.from<t.from+a.length)&&(n[t.from]=s,i.push({from:t.from,to:t.from+a.length,insert:l}))});return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(jv(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=$_(t.selection,t=>e.moveVertically(t,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>{let n,r;return n=!1,r=$_(e.selection,t=>{let r=$c(e,t.head,-1)||$c(e,t.head,1)||t.head>0&&$c(e,t.head-1,1)||t.head<e.doc.length&&$c(e,t.head+1,-1);if(!r||!r.end)return t;n=!0;let i=r.start.from==t.head?r.end.to:r.end.from;return tJ.cursor(i)}),!!n&&(t($B(e,r)),!0)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=$w(e.state,n.from);return r.line?$y(e):!!r.block&&$x(e)}},{key:"Alt-A",run:$b}].concat([{key:"ArrowLeft",run:$H,shift:$8,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>$G(e,!$J(e)),shift:e=>$7(e,!$J(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>$V(e,t=>$4(e,t,!$J(e))),shift:e=>$5(e,t=>$4(e,t,!$J(e))),preventDefault:!0},{key:"ArrowRight",run:$K,shift:$9,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>$G(e,$J(e)),shift:e=>$7(e,$J(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>$V(e,t=>$4(e,t,$J(e))),shift:e=>$5(e,t=>$4(e,t,$J(e))),preventDefault:!0},{key:"ArrowUp",run:$Y,shift:jt,preventDefault:!0},{mac:"Cmd-ArrowUp",run:js,shift:jl},{mac:"Ctrl-ArrowUp",run:$2,shift:ji},{key:"ArrowDown",run:$Z,shift:jn,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ja,shift:ju},{mac:"Ctrl-ArrowDown",run:$3,shift:jo},{key:"PageUp",run:$2,shift:ji},{key:"PageDown",run:$3,shift:jo},{key:"Home",run:e=>$V(e,t=>$4(e,t,!1)),shift:e=>$5(e,t=>$4(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:js,shift:jl},{key:"End",run:e=>$V(e,t=>$4(e,t,!0)),shift:e=>$5(e,t=>$4(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:ja,shift:ju},{key:"Enter",run:jx},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:jf,shift:jf},{key:"Delete",run:jp},{key:"Mod-Backspace",mac:"Alt-Backspace",run:jg},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>jm(e,!0)},{mac:"Mod-Backspace",run:e=>jc(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)})},{mac:"Mod-Delete",run:e=>jc(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})}].concat(j$.map(e=>({mac:e.key,run:e.run,shift:e.shift})))),jO=[function(e={}){return[sx.of(e),sw||(sw=ix.fromClass(class{constructor(e){this.view=e,this.decorations=rN.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(sx)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new sm({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=tM(t[0],0);if(9==o){let e=i.lineAt(r),t=n.state.tabSize,o=nN(e.text,t,r-e.from);return rN.replace({widget:new sS((t-o%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=rN.replace({widget:new sk(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(sx);e.startState.facet(sx)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}(),function(e={}){return[$C,$O.of(e),oY.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?$E:"historyRedo"==e.inputType?$T:null;return!!n&&(e.preventDefault(),n(t))}})]}(),function(e={}){return[sa.of(e),su,sh,sf,ic.of(!0)]}(),(k={fallback:!0},a=[$o],$s instanceof $e&&($s.module&&a.push(oY.styleModule.of($s.module)),l=$s.themeType),
214(null==k?void 0:k.fallback)?a.push($n.of($s)):l?a.push($t.computeN([oY.darkTheme],e=>e.facet(oY.darkTheme)==("dark"==l)?[$s]:[])):a.push($t.of($s)),a),o6.of([...jj,{key:"Mod-z",run:$E,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:$T,preventDefault:!0},{linux:"Ctrl-Shift-z",run:$T,preventDefault:!0},{key:"Mod-u",run:$R,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:$A,preventDefault:!0}])],jC={function:"#007300",other:"#002bff",main:"#2C3C52"},jU=pX("div")`
215  font-size: 14px;
216  display: grid;
217
218  & .cm-editor {
219    outline: none !important;
220  }
221
222  & .cm-line {
223    font-size: 15px !important;
224    font-family: ${({theme:e})=>e.typography.fontFamily} !important;
225    padding: 0px 1px !important;
226  }
227
228  & .cm-content {
229    padding: 0px !important;
230  }
231
232  & .cm-cursor {
233    border-color: ${({theme:e})=>e.palette.text.primary} !important;
234  }
235`,jE=({value:e,onChange:t,onFocus:n,onBlur:r,mode:i,direction:o,autofocus:s,shortcuts:a,minHeight:l,locale:u,editorRef:c,examplePluralNum:h,nested:d,disabled:f})=>{let p=em.useRef(null),m=em.useRef(),g=em.useRef(new t6),v=em.useRef(new t6),y=em.useRef(new t6),b=em.useRef(a),x=pS(),w=function(e){let t=em.useRef(e);return t.current=e,t}({onChange:t,onFocus:n,onBlur:r}),k=em.useRef(new t6),S=em.useMemo(()=>lK({styled:pX,colors:k_,component:jU}),[]);return b.current=a,em.useEffect(()=>{let t=null==a?void 0:a.map((e,t)=>et(ee({},e),{run:e=>{var n,r,i,o;return null!=(o=null==(i=null==(n=b.current)?void 0:(r=n[t]).run)?void 0:i.call(r,e))&&o}})),n=new oY({parent:p.current,state:nb.create({doc:e,extensions:[jO,t4.highest(o6.of(null!=t?t:[])),oY.lineWrapping,oY.updateListener.of(e=>{var t,n,r,i,o,s;e.focusChanged&&(e.view.hasFocus?null==(n=null==(t=w.current)?void 0:t.onFocus)||n.call(t):null==(i=null==(r=w.current)?void 0:r.onBlur)||i.call(r)),e.docChanged&&(null==(s=null==(o=w.current)?void 0:o.onChange)||s.call(o,e.state.doc.toString()))}),oY.contentAttributes.of({spellcheck:"true",lang:u||""}),lV(jC),k.current.of([]),g.current.of([]),v.current.of([]),y.current.of([])]})});s&&n.focus(),m.current=n},[x.palette.mode]),em.useEffect(()=>{var e,t;let n="placeholders"===i?[aJ({examplePluralNum:h,nested:!!d,tooltips:!0})]:[],r="plain"===i?[]:[new lE(lB(!!d))];null==(t=m.current)||t.dispatch({selection:m.current.state.selection,effects:[null==(e=g.current)?void 0:e.reconfigure(n),k.current.reconfigure(r)]})},[i,d,h]),em.useEffect(()=>{var t,n;let r=null==(t=m.current)?void 0:t.state,i=null==r?void 0:r.doc.toString();if(r&&i!==e){let t=r.update({changes:{from:0,to:r.doc.length,insert:e||""}});null==(n=m.current)||n.update([t])}},[e]),em.useEffect(()=>{let e=m.current.state.doc.length;return m.current.dispatch({selection:{anchor:e}}),()=>{m.current.destroy()}},[]),em.useEffect(()=>{var e;null==(e=m.current)||e.dispatch({effects:y.current.reconfigure(nb.readOnly.of(!!f))})},[f]),em.useEffect(()=>{c&&(c.current=m.current)}),ep.jsx(S,{"data-cy":"global-editor",ref:p,disabled:f,dir:o,style:{minHeight:l,direction:o}})},jT=pX("div")`
236  display: flex;
237  justify-content: space-between;
238  align-items: center;
239  font-size: 12px;
240`,jR=pX("span")`
241  color: ${({theme:e})=>e.palette.error.main};
242`,jA=pX("span")`
243  margin-left: auto;
244  color: ${({theme:e,over:t})=>t?e.palette.error.main:e.palette.text.secondary};
245`,jM=({currentCount:e,maxLimit:t})=>{if(null==t||t<=0)return null;let n=e>t;return ep.jsxs(jT,{children:[n&&ep.jsxs(jR,{children:["Limit exceeded by ",e-t," character",e-t!=1?"s":""]}),ep.jsxs(jA,{over:n,children:[e,"/",t]})]})},jP=({locale:e,value:t,onChange:n,activeVariant:r,onActiveVariantChange:i,autofocus:o,activeEditorRef:s,editorProps:a,mode:l,maxCharLimit:u})=>{let c=u8(e=>e.icuPlaceholders)?l:"plain";return ep.jsx(kK,{value:t,locale:e,showEmpty:!0,activeVariant:r,variantPaddingTop:"8px",render:({content:l,variant:h,exampleValue:d})=>{let f=h||"other";return ep.jsxs(ep.Fragment,{children:[ep.jsx(kQ,{"data-cy":"translation-editor","data-cy-variant":h,"data-cy-language":e,children:ep.jsx(jE,ee({mode:c,value:l,onChange:e=>{null==n||n(et(ee({},t),{variants:et(ee({},t.variants),{[f]:e})}))},onFocus:()=>null==i?void 0:i(f),direction:uu(e),autofocus:f===r&&o,minHeight:t.parameter?"unset":"50px",locale:e,editorRef:f===r?s:void 0,examplePluralNum:d,nested:!!h},a))}),t.parameter&&ep.jsx(jM,{currentCount:uc({text:l,nested:!!h}),maxLimit:u})]})}})};function jD(){let e=document.getElementById(uF);(null==e?void 0:e.isConnected)||((e=document.createElement("div")).id=uF,e.style.height="0px",e.style.overflow="hidden",document.body.appendChild(e));let t=e.shadowRoot;t||(e.attachShadow({mode:"open"}),t=e.shadowRoot);let n=t.firstElementChild;return n||(n=document.createElement("div"),t.appendChild(n)),n}let jI=e=>ep.jsx(kw,ee({disableInteractive:!0,PopperProps:{container:jD(),style:{zIndex:2147483e3}}},e)),jN=pX(m3)`
246  display: flex;
247  cursor: pointer;
248  width: 30px;
249  height: 30px;
250  margin: -8px;
251`,jF=function(e){var{children:t,className:n,onClick:r,tooltip:i}=e,o=en(e,["children","className","onClick","tooltip"]);let s=ep.jsx(jN,et(ee({size:"small",className:n,onClick:r},o),{children:t}));return i&&!o.disabled?ep.jsx(jI,{title:i,children:s}):s},jz=e=>{var{state:t}=e,n=en(e,["state"]);let r={sx:{fontSize:19}};return"REVIEWED"===t?ep.jsx(kM,ee(ee({},n),r)):ep.jsx(kP,ee(ee({},n),r))},jL=({state:e,onStateChange:t,className:n,disabled:r,language:i})=>{var o,s;let a=null==(o=uZ[e||"TRANSLATED"])?void 0:o.next,l=null!=a?a:null==(s=uZ.TRANSLATED)?void 0:s.next;return ep.jsx(ep.Fragment,{children:l&&ep.jsx(jF,{"data-cy":"translation-state-button","data-cy-language":i,onClick:()=>null==t?void 0:t(l),className:n,tooltip:ep.jsxs(yH,{sx:{whiteSpace:"nowrap"},children:["Mark as ",uZ[l].name]}
251),disabled:r||!a,children:ep.jsx(jz,{state:e})})})},j_=pX(yH)`
252  display: flex;
253  flex-wrap: wrap;
254  gap: 8px;
255`,jB=pX("div")`
256  display: flex;
257  gap: 16px;
258  padding-right: 4px;
259`,jV=({state:e,mode:t,stateChangeEnabled:n,onModeToggle:r,onStateChange:i,controlsProps:o,language:s})=>ep.jsx(j_,et(ee({},o),{children:ep.jsxs(jB,{children:[r&&ep.jsx(jF,{onClick:r,onMouseDown:e=>{e.preventDefault()},color:"placeholders"===t?"default":"primary","data-cy":"translations-cell-switch-mode",tooltip:"placeholders"===t?"Hide placeholders":"Display placeholders",children:ep.jsx(kN,{style:{fontSize:19}})}),n&&ep.jsx(jL,{state:e,onStateChange:i,language:s})]})})),jW=pX("div")`
260  display: flex;
261  margin-top: 16px;
262  margin-bottom: 4px;
263  font-size: 14px;
264  color: ${({theme:e})=>e.palette.text.secondary};
265  justify-content: space-between;
266`,jq=pX("div")`
267  display: grid;
268  grid-template-columns: auto 1fr;
269  gap: 12px;
270  position: relative;
271
272  &.disabled {
273    opacity: 0.5;
274  }
275
276  &.disabled .cm-cursor {
277    display: none !important;
278  }
279
280  &.notPlural {
281    grid-template-columns: 1fr;
282  }
283`,jJ=pX("div")`
284  margin-top: 4px;
285  width: 5px;
286
287  &.notPlural {
288    position: absolute;
289    top: 1px;
290    left: 1px;
291    bottom: 1px;
292    border-radius: 3px 0px 0px 3px;
293  }
294`,jH=({disabled:e,language:t,value:n,state:r,stateChangePermitted:i,onChange:o,onStateChange:s})=>{var a,l,u,c;let h=em.useRef(null),d=u8(e=>e.pluralArgName),f=u8(e=>e.icuPlaceholders),p=u8(e=>e.maxCharLimit),m=!d,g="UNTRANSLATED"===r?void 0:r,v=u4(n,!m)?"UNTRANSLATED":null!=g?g:"TRANSLATED",[y,b]=em.useState("placeholders");return ep.jsxs(ep.Fragment,{children:[ep.jsxs(jW,{children:[ep.jsx("div",{children:(null==t?void 0:t.name)||(null==t?void 0:t.tag)}),ep.jsx(jV,{state:v,onStateChange:e=>s(e),language:null==t?void 0:t.tag,stateChangeEnabled:i,mode:y,onModeToggle:f&&!e?()=>b("syntax"===y?"placeholders":"syntax"):void 0})]}),ep.jsxs(jq,{className:dB({disabled:e,notPlural:m}),"data-cy":"translation-field","data-cy-language":null==t?void 0:t.tag,children:[ep.jsx(jI,{title:null==(a=uZ[v])?void 0:a.name,children:ep.jsx(jJ,{className:dB({notPlural:m}),style:{background:null==(l=uZ[v])?void 0:l.color},onClick:()=>{var e;null==(e=h.current)||e.focus()}})}),ep.jsx(jP,{mode:y,value:n?et(ee({},n),{parameter:d}):{variants:{other:""},parameter:d},onChange:o,locale:(null==t?void 0:t.tag)||"en",editorProps:{direction:"ltr",disabled:e},maxCharLimit:p})]}),m&&ep.jsx(jM,{currentCount:uc({text:null!=(c=null==(u=null==n?void 0:n.variants)?void 0:u.other)?c:"",nested:!1}),maxLimit:p})]})},jK=hd`
295  0%   { background-position: 0%; }
296  100% { background-position: 100%; }
297`,jG=pX("div")`
298  margin-top: 10px;
299  padding: 5px;
300  border: 1px solid #ccc;
301  width: 100%;
302  border-radius: 5px;
303  font-style: inherit;
304  font-family: inherit;
305  box-sizing: border-box;
306  display: block;
307  height: 42px;
308  background: linear-gradient(
309    90deg,
310    rgba(0, 0, 0, 0),
311    rgba(0, 0, 0, 0),
312    rgba(0, 0, 0, 0.1),
313    rgba(0, 0, 0, 0),
314    rgba(0, 0, 0, 0)
315  );
316  background-size: 500% 500%;
317  animation: ${jK} 1.5s linear infinite alternate;
318`,jQ=()=>{let{onInputChange:e,onStateChange:t}=u6(),n=u8(e=>e.permissions),r=u8(e=>e.selectedLanguages),i=r.length?r:uV(),o=u8(e=>e.availableLanguages),s=u8(e=>e.translationsForm),a=u8(e=>e.formDisabled),l=u8(e=>e.loading),u=u8(e=>e.keyData);return ep.jsx(ep.Fragment,{children:l?ep.jsx(()=>ep.jsx(ep.Fragment,{children:i.map(e=>ep.jsx(jG,{},e))}),{}):r.map(r=>{let i=null==o?void 0:o.find(e=>e.tag===r),l=n.canEditTranslation(r),c=n.canEditState(r),h=null==u?void 0:u.translations[r],d=s[r];return ep.jsx(eg.Fragment,{children:ep.jsx(jH,{disabled:a||!l||(null==h?void 0:h.state)==="DISABLED",language:i,value:null==d?void 0:d.value,onChange:t=>e(r,t),onStateChange:e=>t(r,e),state:null==d?void 0:d.state,stateChangePermitted:c})},r)})})},jX=pX(xc)`
319  min-width: 200px;
320`,jY=pX(ku)`
321  & .${w4.icon} {
322    width: 24px;
323    height: 24px;
324    top: calc(50% - 12px);
325  }
326`,jZ=()=>{let{onSelectedLanguagesChange:e}=u6(),t=u8(e=>e.availableLanguages),n=u8(e=>e.selectedLanguages),r=t?[...t].map(e=>({label:e.name,value:e.tag})):[],i=r.filter(e=>n.includes(e.value)),o=t=>{e("string"==typeof t?t.split(","):t)};return ep.jsx(ep.Fragment,{children:t&&ep.jsx(jX,{variant:"outlined",size:"small",style:{maxWidth:250},children:ep.jsx(jY,{"data-cy":"language-select",multiple:!0,value:i.map(e=>e.value),onChange:e=>o(e.target.value),input:ep.jsx(w2,{}),renderValue:e=>e.join(", "),MenuProps:{style:{zIndex:2147483e3},disablePortal:!0},children:r.map(e=>ep.jsxs(wF,{"data-cy":"language-select-item",value:e.value,dense:!0,children:[ep.jsx(bd,{size:"small",checked:!!i.find(t=>t.value===e.value)}),ep.jsx(wi,{children:e.label})]},e.value))})})})},j0=pX(y4)`
327  position: 'relative';
328`,j1=pX("div")`
329  position: absolute;
330  top: 0;
331  bottom: 0;
332  left: 0;
333  right: 0;
334  display: flex;
335  align-items: center;
336  justify-content: center;
337`,j2=e=>{var{children:t,loading:n,disabled:r}=e,i=en(e,["children","loading","disabled"]);let o=n||r;return ep.jsxs(j0,et(ee({},i),{disabled:o,children:[n&&ep.jsx(j1,{children:ep.jsx(bO,{size:25})}),t]}))},j3=e=>{let t=[];for(let n=0;n<e.length;n++)"file"===e[n].kind&&t.push(e[n].getAsFile());return t},j4=pX("div")`
338  position: relative;
339  display: flex;
340  overflow: visible;
341  flex-wrap: wrap;
342`,j5=pX("div")`
343  border: 1px dashed lightgrey;
344  z-index: 2;
345  position: absolute;
346  width: 100%;
347  height: 100%;
348  pointer-events: none;
349  display: flex;
350  align-items: center;
351  justify-content: center;
352  opacity: 0;
353  transition: opacity 0.2s;
354  &.valid {
355    backdrop-filter: blur(5px);
356    border: 1px solid ${cr[200]};
357    background-color: ${cr[50]};
358    opacity: 0.9;
359  }
360  &.invalid {
361    border: 1px solid ${u7[200]};
362    opacity: 0.9;
363    background-color: ${u7[50]};
364    backdrop-filter: blur(5px);
365  }
366`,j6=pX(kR)`
367  filter: drop-shadow(1px 1px 0px ${cr[200]})
368    drop-shadow(-1px 1px 0px ${cr[200]})
369    drop-shadow(1px -1px 0px ${cr[200]})
370    drop-shadow(-1px -1px 0px ${cr[200]});
371  font-size: 100;
372  color: ${({theme:e})=>e.palette.common.white};
373`,j8=pX(kz)`
374  filter: drop-shadow(1px 1px 0px ${u7[200]})
375    drop-shadow(-1px 1px 0px ${u7[200]}) drop-shadow(1px -1px 0px ${u7[200]})
376    drop-shadow(-1px -1px 0px ${u7[200]});
377  font-size: 100;
378  color: ${({theme:e})=>e.palette.common.white};
379`,j9=e=>{var{validateAndUpload:t,enabled:n}=e,r=en(e,["validateAndUpload","enabled"]);let[i,o]=em.useState(null),[s,a]=em.useState(null),l=async e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.items&&t(j3(e.dataTransfer.items)),o(null)},u={};return n&&(u={onDrop:l,onDragEnter:e=>{if(e.stopPropagation(),e.preventDefault(),a(e.target),e.dataTransfer.items){if(j3(e.dataTransfer.items).length>20){o("invalid");return}o("valid")}},onDragLeave:e=>{e.stopPropagation(),e.preventDefault(),e.target===s&&o(null)},onDragOver:e=>{e.stopPropagation(),e.preventDefault()}}),ep.jsx(ep.Fragment,{children:ep.jsxs(j4,et(ee({},u),{"data-cy":"dropzone",children:[ep.jsxs(j5,{className:dB({valid:"valid"===i,invalid:"invalid"===i}),children:["valid"===i&&ep.jsx(j6,{}),"invalid"===i&&ep.jsx(j8,{})]}),r.children]}))})},j7=pX("span")`
380  display: inline;
381`,Oe=pX("span")`
382  display: inline-flex;
383  vertical-align: text-top;
384  align-items: center;
385  justify-content: center;
386  min-width: 15px;
387  border: 1px solid #bbc2cb;
388  background-color: #f0f2f4;
389  color: #4d5b6e;
390  border-radius: 10px;
391  padding: 0px 7px;
392  font-size: 12px;
393  user-select: none;
394  margin: 0px 4px 0px 1px;
395  overflow: hidden;
396  font-family: monospace;
397`,Ot=({name:e})=>{let t=e.indexOf("\x04");return t<=0?ep.jsx(j7,{children:e.replace("\x04","")}):ep.jsxs(j7,{children:[ep.jsx(Oe,{children:e.slice(0,t)}),e.slice(t+1)]})},On={primary:"#ff0000",secondary:"#ffc0cb"},Or=({screenshot:e,showTooltips:t,className:n})=>{var r,i;let o=null==(r=e.keyReferences)?void 0:r.filter(e=>e.position);return(null==o?void 0:o.length)?ep.jsxs("svg",{viewBox:`0 0 ${e.width} ${e.height}`,className:n,style:{width:e.width,maxWidth:"100%"},"data-cy":"screenshot-image",children:[ep.jsx("image",{href:e.src,width:e.width,height:e.height}),null==(i=e.keyReferences)?void 0:i.map((n,r)=>{if(n.position){let i=ep.jsx("rect",{width:n.position.width+4,height:n.position.height+4,x:n.position.x-2,y:n.position.y-2,fill:"transparent",stroke:n.keyId===e.highlightedKeyId||-1===n.keyId?On.primary:On.secondary,strokeWidth:4,paintOrder:"stroke",rx:2},r);return t?ep.jsx(jI,{title:ep.jsx(Ot,{name:n.keyName}),placement:"right",children:i},r):i}return null})]}):ep.jsx("img",{src:e.src,className:n,style:{maxWidth:"100%"},"data-cy":"screenshot-image",alt:"Screenshot"})},Oi=pX("div")`
398  border: 1px solid ${({theme:e})=>e.palette.grey[300]};
399  position: relative;
400  box-sizing: border-box;
401  width: 98px;
402  height: 98px;
403  align-items: center;
404  justify-content: center;
405  display: flex;
406  margin: 1px;
407  cursor: pointer;
408  overflow: visible;
409`,Oo=pX("div")`
410  display: flex;
411  align-items: center;
412  justify-content: center;
413  overflow: hidden;
414  width: 100%;
415  height: 100%;
416`,Os=pX(m3)`
417  position: absolute;
418  z-index: 2;
419  font-size: 20px;
420  right: -8px;
421  top: -8px;
422  padding: 2px;
423  background-color: rgba(62, 62, 62, 0.9);
424  color: rgba(255, 255, 255, 0.8);
425  visibility: hidden;
426  opacity: 0;
427  transition:
428    visibility 0.1s linear,
429    opacity 0.1s linear;
430  &:hover {
431    background-color: rgba(62, 62, 62, 1);
432    color: rgba(255, 255, 255, 0.9);
433  }
434  &.hover {
435    opacity: 1;
436    visibility: visible;
437  }
438`,Oa=pX(kD)`
439  font-size: 20px;
440`,Ol=e=>{var t;let[n,r]=em.useState(!1),i=e.data;return ep.jsxs(Oi,{onMouseOver:()=>{r(!0)},onMouseOut:()=>{r(!1)},children:[e.onDelete&&ep.jsx(jI,{title:"Delete",children:ep.jsx(Os,{onClick:()=>{var t;null==(t=e.onDelete)||t.call(e,e.data.id)},className:dB({hover:n}),children:ep.jsx(Oa,{})})}),ep.jsx(Oo,{onClick:e.onClick,"aria-label":"Screenshot",children:ep.jsx(Or,{screenshot:{src:i.fileUrl,width:i.width,height:i.height,highlightedKeyId:null!=(t=e.keyId)?t:-1,keyReferences:i.keyReferences}})},e.data.id)]})},Ou=({keyId:e,screenshot:t,onClose:n})=>ep.jsx(bB,{open:!0,disablePortal:!0,disableEnforceFocus:!0,maxWidth:"lg",style:{zIndex:2147483e3},onClose:n,children:ep.jsx(yH,{display:"grid",children:t&&ep.jsx(Or,{showTooltips:!0,screenshot:{src:t.fileUrl,width:t.width,height:t.height,highlightedKeyId:null!=e?e:-1,keyReferences:t.keyReferences}})})}),Oc=pX("div")`
441  display: flex;
442  margin: 0px 0px 26px 0px;
443  font-size: 19px;
444`,Oh=pX("div")`
445  margin: 8px 0px;
446`,Od=pX("div")`
447  display: flex;
448  justify-content: flex-end;
449  margin: ${({theme:e})=>e.spacing(1)};
450  min-height: 36px;
451`,Of=({onClose:e})=>{let[t,n]=em.useState(!1);return em.useEffect(()=>{let e=()=>{n(!0)};return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[]),ep.jsx(bB,{open:!0,disableEnforceFocus:!0,disablePortal:!0,style:{zIndex:2147483e3},onClose:e,children:t?ep.jsxs(ep.Fragment,{children:[ep.jsxs(b0,{children:[ep.jsx(Oc,{children:"Browser extension required"}),ep.jsx(Oh,{children:"After installing the extension, you need to reload this page."})]}),ep.jsx(Od,{children:ep.jsx(y4,{onClick:()=>{window.location.reload()},color:"primary",variant:"contained",children:"Reload"})})]}):ep.jsxs(ep.Fragment,{children:[ep.jsxs(b0,{children:[ep.jsx(Oc,{children:"Browser extension required"}),ep.jsx(Oh,{children:"To make automatic screenshots please install Tolgee browser extension."})]}),ep.jsxs(Od,{children:[ep.jsx(y4,{onClick:e,color:"secondary",children:"Cancel"}),ep.jsx(y4,{component:"a",color:"primary",variant:"contained",style:{marginLeft:10},href:"https://chrome.google.com/webstore/detail/tolgee-tools/hacnbapajkkfohnonhbmegojnddagfnj",rel:"noreferrer noopener",target:"_blank",children:"Install"})]})]})})},Op=pX("div")`
452  display: flex;
453  flex-direction: column;
454  height: 100px;
455  width: 100%;
456  align-items: center;
457  justify-content: center;
458  text-align: center;
459  flex-grow: 1;
460  border: 1px dashed lightgrey;
461`,Om=pX("div")`
462  display: flex;
463  width: 100px;
464  height: 100px;
465  align-items: center;
466  justify-content: center;
467  margin: 1px;
468`,Og=pX("div")`
469  display: flex;
470  justify-content: space-between;
471  align-items: flex-end;
472`,Ov=pX("div")`
473  display: flex;
474`,Oy=pX("div")`
475  color: ${({theme:e})=>e.palette.text.secondary};
476`,Ob=["image/png","image/jpeg","image/gif"],Ox=()=>{let e=em.useRef(null),{handleUploadImages:t,handleRemoveScreenshot:n,handleTakeScreenshot:r,setScreenshotDetail:i}=u6(),o=u8(e=>{var t;return null==(t=e.keyData)?void 0:t.keyId}),s=u8(e=>e.screenshots),a=u8(e=>e.screenshotDetail),l=u8(e=>e.canTakeScreenshots),u=u8(e=>e.screenshotsUploading),c=u8(e=>e.permissions),[h,d]=em.useState(!1),f=c.canUploadScreenshots,p=c.canDeleteScreenshots,m=e=>{let t=[];e.length>
47620&&t.push("Too many files"),e.forEach(e=>{0>Ob.indexOf(e.type)&&t.push(`${e.name}: unsupported format`)});let n=0===t.length;return{errors:t,valid:n}},g=e=>{let{valid:n}=m(e);n&&t(e)},v=()=>{var t;null==(t=e.current)||t.dispatchEvent(new MouseEvent("click"))},y=!!window.chrome;return ep.jsxs(ep.Fragment,{children:[ep.jsx("input",{type:"file",style:{display:"none"},ref:e,onChange:e=>(function(e){let t=e.target.files;if(!t)return;let n=[];for(let e=0;e<t.length;e++){let r=t.item(e);r&&n.push(r)}g(n)})(e),multiple:!0,accept:Ob.join(",")}),ep.jsxs(Og,{children:[ep.jsx(jW,{children:"Screenshots"}),ep.jsx(Ov,{children:f&&ep.jsxs(ep.Fragment,{children:[(y||l)&&ep.jsx(jI,{title:"Take screenshot",children:ep.jsx(m3,{sx:{fontSize:24},onClick:l?r:()=>d(!0),children:ep.jsx(kA,{})})}),ep.jsx(jI,{title:"Add image",children:ep.jsx(m3,{sx:{fontSize:24},onClick:v,children:ep.jsx(kT,{})})})]})})]}),ep.jsxs(j9,{validateAndUpload:g,enabled:f,children:[s.length?s.map(e=>ep.jsx(Ol,{keyId:o,data:e,onClick:()=>i(e),onDelete:p||e.justUploaded?n:void 0},e.id)):null,u&&ep.jsx(Om,{children:ep.jsx(bO,{})}),!s.length&&!u&&ep.jsxs(Op,{style:{cursor:f?"pointer":"default"},onClick:f?v:void 0,children:[ep.jsxs(Oy,{children:["There are no screenshots.",l&&f&&" Take screenshot by camera icon."]}),f&&ep.jsx(Oy,{children:"Add some by dropping or clicking on plus."})]})]}),a&&ep.jsx(Ou,{keyId:o,screenshot:a,onClose:()=>i(null)}),h&&ep.jsx(Of,{onClose:()=>d(!1)})]})},Ow=e=>e||"<default>",Ok=({onChange:e,options:t,value:n})=>{let r=1===t.length,i=r&&""===t[0];return ep.jsx(ep.Fragment,{children:!i&&ep.jsxs(ep.Fragment,{children:[ep.jsx(jW,{children:"Namespace"}),r?Ow(t[0]):ep.jsx(xc,{variant:"outlined",size:"small",style:{maxWidth:250},children:ep.jsx(ku,{displayEmpty:!0,value:n,onChange:t=>e(t.target.value),input:ep.jsx(w2,{}),renderValue:e=>Ow(e),MenuProps:{style:{zIndex:2147483e3},disablePortal:!0},children:t.map(e=>ep.jsx(wF,{value:e,dense:!0,children:ep.jsx(wi,{children:Ow(e)})},e))})})]})})},OS=pX("div")`
477  display: flex;
478  outline: 0;
479  cursor: default;
480  padding: 4px 4px;
481  border-radius: 12px;
482  align-items: center;
483  height: 24px;
484  font-size: 14px;
485  background: ${({theme:e})=>e.palette.grey[200]};
486  border: 1px solid transparent;
487  max-width: 100%;
488  box-sizing: border-box;
489
490  & input {
491    color: ${({theme:e})=>e.palette.text.primary};
492  }
493
494  &.preview {
495    background: ${({theme:e})=>e.palette.background.default};
496    border: 1px solid ${({theme:e})=>e.palette.text.secondary};
497    color: ${({theme:e})=>e.palette.text.secondary};
498  }
499
500  &.hover {
501    &:focus-within,
502    &:hover {
503      border: 1px solid ${({theme:e})=>e.palette.primary.main};
504      color: ${({theme:e})=>e.palette.primary.main};
505    }
506  }
507
508  &.clickable {
509    cursor: pointer;
510  }
511`,O$=({children:e,role:t,onClick:n,className:r})=>{switch(t){case"add":return ep.jsx(OS,{as:"button","data-cy":"translations-tag-ad
511d",className:dB("preview","clickable","hover",r),onClick:n,children:e});case"input":return ep.jsx(OS,{"data-cy":"translations-tag-input",className:dB("preview","hover",r),onClick:n,children:e});default:return ep.jsx(OS,{"data-cy":"translations-tag",className:dB({hover:!!n,clickable:!!n,[r||""]:!0}),onClick:n,children:e})}},Oj=pX("div")`
512  margin-left: 6px;
513  margin-right: 6px;
514  margin-top: -1px;
515  flex-shrink: 1;
516  overflow: hidden;
517  text-overflow: ellipsis;
518  white-space: nowrap;
519`,OO=pX(kI)`
520  margin-left: -6px;
521  padding: 1px;
522  cursor: pointer;
523  width: 20px;
524  height: 20px;
525  color: ${({theme:e})=>e.palette.text.secondary};
526`,OC=pX(O$)`
527  &.selected {
528    border-color: ${({theme:e})=>e.palette.primary.main};
529    border-width: 1px;
530  }
531`,OU=({name:e,onDelete:t,onClick:n,selected:r})=>ep.jsxs(OC,{onClick:n?()=>null==n?void 0:n(e):void 0,className:dB({selected:r}),children:[ep.jsx(Oj,{children:e}),t&&ep.jsx(OO,{role:"button","data-cy":"translations-tag-close",onClick:t})]});function OE(e,t){return t}let OT=pX(kI)`
532  font-size: 20px;
533  cursor: pointer;
534  padding: 2px;
535`,OR=({onClick:e})=>ep.jsx(OT,{role:"button","data-cy":"translations-tag-close",onClick:e}),OA=e=>{var t,{children:n}=e,r=en(e,["children"]);return ep.jsx(vH,et(ee({},r),{disablePortal:!0,style:{minWidth:null==(t=r.style)?void 0:t.width},placement:"bottom-start",modifiers:[{name:"offset",options:{offset:()=>[0,3]}}],children:n}))},OM=pX(O$)`
536  & .autocomplete {
537    display: flex;
538    align-items: center;
539    width: 150px;
540    overflow: hidden;
541  }
542
543  & .MuiAutocomplete-noOptions,
544  & .MuiAutocomplete-loading,
545  & .MuiAutocomplete-option {
546    padding: 6px 16px;
547  }
548`,OP=pX("input")`
549  display: flex;
550  border: 0px;
551  background: transparent;
552  padding: 0px 4px;
553  outline: 0px;
554  min-width: 0px;
555  width: 100%;
556  font-size: 14;
557  flex-shrink: 1;
558`,OD=pX("span")`
559  white-space: nowrap;
560  overflow: hidden;
561`,OI=({onClose:e,onAdd:t,className:n,autoFocus:r,existing:i,placeholder:o})=>{var s,a,l,u,c,h,d,f,p,m;let[g,v]=em.useState(""),[y]=(h=(c=em.useReducer(OE,g))[0],d=c[1],f=function(e,t,n){var r=this,i=em.useRef(null),o=em.useRef(0),s=em.useRef(null),a=em.useRef([]),l=em.useRef(),u=em.useRef(),c=em.useRef(e),h=em.useRef(!0);c.current=e;var d="undefined"!=typeof window,f=!t&&0!==t&&d;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,v="debounceOnServer"in n&&!!n.debounceOnServer,y=g?Math.max(+n.maxWait||0,t):null;return em.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]),em.useMemo(function(){var e=function(e){var t=a.current,n=l.current;return a.current=l.current=null,o.current=e,u.current=c.current.apply(n,t)},n=function(e,t){f&&cancelAnimationFrame(s.current),s.current=f?requestAnimationFrame(e):setTimeout(e,t)},b=function(e){if(!h.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||g&&e-o.current>=y},x=function(t){return s.current=null,m&&a.current?e(t):(a.current=l.current=null,u.current)},w=function e(){var r=Date.now();if(b(r))return x(r);if(h.current){var s=t-(r-i.current);n(e,g?Math.min(s,y-(r-o.current)):s)}},k=function(){if(d||v){var c=Date.now(),f=b(c);if(a.current=[].slice.call(arguments),l.current=r,i.current=c,f){if(!s.current&&h.current)return o.current=i.current,n(w,t),p?e(i.current):u.current;if(g)return n(w,t),e(i.current)}return s.current||n(w,t),u.current}};return k.cancel=function(){s.current&&(f?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,a.current=i.current=l.current=s.current=null},k.isPending=function(){return!!s.current},k.flush=function(){return s.current?x(Date.now()):u.current},k},[p,g,t,y,m,f,d,v])}(em.useCallback(function(e){return d(e)},[d]),500,u),m=(p=em.useRef(g)).current,m===g||(f(g),p.current=g),[h,f]),b=uP({url:"/v2/projects/tags",method:"get",query:{search:y},options:{cacheTime:0,keepPreviousData:!0}}),x=t=>{"Escape"===t.key&&(null==e||e())},w=((null==(l=null==(a=null==(s=b.data)?void 0:s._embedded)?void 0:a.tags)?void 0:l.map(({name:e})=>e))||[]).filter((e,t,n)=>n.indexOf(e)===t).map(e=>({label:e,value:e,isAdd:!1}));return ep.jsx(OM,{role:"input",className:n,children:ep.jsx(yN,{className:"autocomplete",loading:b.isFetching,autoHighlight:!0,noOptionsText:"Nothing found",PopperComponent:OA,options:w,filterOptions:e=>{let t=e.filter(e=>e.value.toLowerCase().startsWith(y.toLowerCase()));return""===y||e.find(e=>e.value===y)||t.push({value:y,label:"",isAdd:!0}),t.filter(e=>!(null==i?void 0:i.includes(e.value)))},inputValue:g,onInputChange:(e,t)=>
561{v(t)},onChange:(e,n)=>{"string"!=typeof n&&t(n.value)},getOptionLabel:()=>"",isOptionEqualToValue:()=>!0,renderOption:(e,t)=>ep.jsx(wF,et(ee({},e),{children:ep.jsx(OD,{"data-cy":"tag-autocomplete-option",children:t.isAdd?`Add "${y}"`:t.label})})),ListboxProps:{style:{padding:0}},renderInput:t=>ep.jsxs("div",{className:"autocomplete",ref:t.InputProps.ref,children:[ep.jsx(OP,et(ee({},t.inputProps),{"data-cy":"tag-autocomplete-input",size:0,onKeyUp:x,autoFocus:r,placeholder:o})),e&&ep.jsx(OR,{onClick:e})]})})})},ON=pX("div")`
562  display: flex;
563  flex-wrap: wrap;
564  align-items: flex-start;
565  position: relative;
566
567  & > * {
568    margin: 0px 3px 3px 0px;
569  }
570`;function OF(){let e=u8(e=>e.tags),t=u8(e=>e.permissions.canEditTags),{setTags:n}=u6();return ep.jsxs(ON,{children:[e.map(e=>ep.jsx(OU,{name:e,onDelete:t?()=>n(t=>t.filter(t=>t!==e)):void 0},e)),t&&ep.jsx(OI,{existing:e,onAdd:t=>!e.includes(t)&&n(e=>[...e,t]),placeholder:"Add tag..."}),!e.length&&!t&&"No tags"]})}let Oz=({checked:e,onChange:t,label:n,fieldLabel:r,dataCy:i,children:o})=>ep.jsxs(yH,{display:"grid",children:[ep.jsx(yH,{justifyContent:"start",display:"flex",alignItems:"center",children:ep.jsx(xy,{"data-cy":i,control:ep.jsx(bd,{checked:e,onChange:t,size:"small"}),label:n})}),e&&o&&ep.jsxs(yH,{display:"grid",children:[r&&ep.jsx(jW,{style:{marginTop:4},children:r}),o]})]}),OL=()=>{let e=u8(e=>e.isPlural),t=u8(e=>e._pluralArgName),n=u8(e=>e.pluralArgName),{setIsPlural:r,setPluralArgName:i}=u6();return ep.jsx(Oz,{checked:e,onChange:()=>r(!e),label:"Use plural forms",fieldLabel:"Variable name",dataCy:"key-plural-checkbox",children:ep.jsx(kC,{value:t,onChange:e=>i(e.target.value),placeholder:n,size:"small",disabled:!e,sx:{maxWidth:300},"data-cy":"key-plural-variable-name"})})},O_=()=>{let e=u8(e=>e.maxCharLimit),{setMaxCharLimit:t}=u6(),[n,r]=em.useState(null!=e&&e>0);return ep.jsx(Oz,{checked:n,onChange:()=>{n?(r(!1),t(void 0)):r(!0)},label:ep.jsxs(yH,{display:"inline-flex",alignItems:"center",gap:"4px",children:["Character limit",ep.jsx(jI,{title:"Placeholders and HTML tags are not counted to the character limit",children:ep.jsx(yH,{component:"span",display:"inline-flex",children:ep.jsx(kF,{style:{width:15,height:15}})})})]}),fieldLabel:"Maximum",dataCy:"key-char-limit-checkbox",children:ep.jsx(kC,{value:e||"",onChange:e=>{let n=e.target.value;if(""===n)t(0);else{let e=parseInt(n,10);isNaN(e)||t(Math.max(1,e))}},type:"number",size:"small",inputProps:{min:1},sx:{maxWidth:300},"data-cy":"key-char-limit-input"})})},OB=pX("a")``,OV=pX(kL)`
571  width: 17px;
572  height: 17px;
573  position: relative;
574  top: 3px;
575  margin-left: 1px;
576`,OW=({href:e,children:t})=>ep.jsxs(OB,{href:e,target:"_blank",rel:"noreferrer noopener",children:[t,ep.jsx(OV,{})]}),Oq=({error:e,severity:t="error"})=>{let n=u8(e=>e.uiProps.apiUrl);return ep.jsx(gs,{sx:{mt:2},severity:t,children:e instanceof uj?function({code:e,params:t,message:n},r){switch(e){case"operation_not_permitted":return ep.jsxs(ep.Fragment,{children:[ep.jsx(gb,{children:"Operation not permitted"}),!!(null==t?void 0:t.length)&&"Missing scopes: "+(null==t?void 0:t.join(", "))]});case"invalid_project_api_key":return ep.jsxs(ep.Fragment,{children:[ep.jsx(gb,{children:"Invalid API key"}),"Check it in the code or in the chrome plugin. ",ep.jsx(OJ,{})]});case"api_url_not_specified":return ep.jsxs(ep.Fragment,{children:[ep.jsx(gb,{children:"Oops... I miss the API url"}),"Add it in the code or via the chrome plugin. ",ep.jsx(OJ,{})]});case"api_url_not_valid":return ep.jsxs(ep.Fragment,{children:[ep.jsxs(gb,{children:["API url is not correct (",r,")"]}),"Check it in the code or in the chrome plugin. ",ep.jsx(OJ,{})]});case"api_key_not_specified":return ep.jsxs(ep.Fragment,{children:[ep.jsx(gb,{children:"Oops... I miss the API key"}),"Add it in the code or via the chrome plugin. ",ep.jsx(OJ,{})]});case"permissions_not_sufficient_to_edit":return ep.jsxs(ep.Fragment,{children:[ep.jsx(gb,{children:"Sorry, you don't have permissions to make changes"}),"Update your API key or ask admin for more permissions ",ep.jsx(OH,{})]});case"operation_not_permitted_in_read_only_mode":return ep.jsxs(ep.Fragment,{children:[ep.jsx(gb,{children:"Read-only mode"}),"This branch is protected or your access is read-only."]});case"branch_not_found":return ep.jsxs(ep.Fragment,{children:[ep.jsx(gb,{children:"Branch not found"}),"Check the branch name or switch to an existing branch."]});case"fetch_error":return`Failed to fetch (${r})`;default:return n}}(e,uO(n).toString()):e.message})};function OJ(){return ep.jsx(OW,{href:"https://tolgee.io/js-sdk/in-context",children:"Learn more in Docs"})}function OH(){return ep.jsx(OW,{href:"https://tolgee.io/platform/account_settings/api_keys_and_pat_tokens",children:"Learn more in Docs"})}let OK=pX("div")`
577  display: inline-flex;
578  outline: 0;
579  cursor: default;
580  padding: 1px 8px;
581  border-radius: 12px;
582  align-items: center;
583  font-size: 14px;
584  background: ${({theme:e})=>e.palette.grey[200]};
585  border: 1px solid transparent;
586  max-width: 100%;
587  box-sizing: border-box;
588  border: 1px solid ${({theme:e})=>e.palette.text.secondary};
589  margin: -2px 0px;
590  cursor: pointer;
591  &:focus-within,
592  &:hover {
593    border: 1px solid ${({theme:e})=>e.palette.primary.main};
594    color: ${({theme:e})=>e.palette.primary.main};
595  }
596`,OG=({name:e})=>{let{setTags:t}=u6();return ep.jsx(OK,{onClick:()=>{t(t=>[...t.filter(t=>t!==e),e])},children:e})},OQ=({tags:e})=>ep.jsx(ep.Fragment,{children:e.map((t,n)=>0===n?ep.jsx(eg.Fragment,{children:ep.jsx(OG,{name:t})},t):n<e.length-1?ep.jsxs(eg.Fragment,{children:[", ",ep.jsx(OG,{name:t})]},t):ep.jsxs(eg.Fragment,{children:[" ","or ",ep.jsx(OG,{name:t})]},t))}),OX=()=>{let e=u8(e=>e.uiProps.filterTag);return u8(e=>e.filterTagMissing)?e?ep.jsxs(gs,{severity:"error",sx:{mt:1,mb:1,fontSize:15},children:[ep.jsx(gb,{children:"Missing Required Tag"}),e.length>1?ep.jsxs(yH,{children:["This app is configured to use only keys tagged with the"," ",ep.jsx(OQ,{tags:e}),". Add one of them to continue."]}):ep.jsxs(yH,{children:["This app is configured to use only keys tagged with the"," ",ep.jsx(OQ,{tags:e}),". Add this tag to continue."]}),ep.jsx(yH,{mt:1,children:ep.jsx("a",{href:"https://docs.tolgee.io/js-sdk/filter_by_tags",target:"_blank",rel:"noopener noreferrer",children:"Read more in the docs"})})]}):void 0:null},OY=pX("div")`
597  font-family: Rubik, Roboto, Arial;
598  padding: 20px;
599  box-sizing: border-box;
600  max-width: 100%;
601  width: 700px;
602  display: flex;
603  flex-direction: column;
604`,OZ=pX("div")`
605  display: flex;
606  align-items: center;
607  gap: 5px;
608`,O0=pX("div")`
609  display: flex;
610  margin: 0px;
611  font-size: 19px;
612`,O1=pX("div")`
613  display: flex;
614  justify-content: flex-end;
615  align-items: center;
616  flex-grow: 1;
617`,O2=pX(jW)`
618  justify-content: start;
619  gap: 4px;
620  align-items: center;
621`,O3=pX("p")`
622  margin: 0px;
623`,O4=pX("span")`
624  color: grey;
625`,O5=pX(x1)`
626  display: grid;
627  font-size: 16px;
628  margin: 0px 0px;
629`,O6=pX("div")`
630  margin-top: 10px;
631`,O8=pX("div")`
632  margin-top: 5px;
633`,O9=pX("div")`
634  margin-top: 10px;
635`,O7=pX("div")`
636  display: flex;
637  justify-content: flex-end;
638  margin-top: 20px;
639  min-height: 36px;
640`,Ce=()=>{let e=pS(),{setUseBrowserWindow:t,onClose:n,onSave:r,setSelectedNs:i}=u6(),o=u8(e=>e.pluralsSupported),s=u8(e=>e.linkToPlatform),a=u8(e=>e.useBrowserWindow),l=u8(e=>e.input),u=u8(e=>e.keyData),c=u8(e=>e.formDisabled),h=u8(e=>e.readOnly),d=u8(e=>e.loading),f=u8(e=>e.error),p=u8(e=>e.submitError),m=u8(e=>e.saving),g=u8(e=>e.success),v=u8(e=>e.keyExists),y=u8(e=>e.fallbackNamespaces),b=u8(e=>e.selectedNs),x=u8(e=>e.permissions),w=u8(e=>e.filterTagMissing),k=u8(e=>e.isOverCharLimit),S=u8(e=>e.uiProps.branch),[$,j]=em.useState(!1),O=x.canViewScreenshots,C=x.canEditPlural&&o,U=!d&&!f,E=f||p,T=(null==u?void 0:u.ke
640yId)!==void 0;return ep.jsxs(OY,et(ee({},{[u_]:"true"}),{children:[ep.jsxs(OZ,{children:[ep.jsx("a",{href:s,target:"_blank",rel:"noreferrer noopener",id:"_tolgee_platform_link",children:ep.jsx("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",opacity:"0.99",fill:e.palette.primary.main,style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,height:23},children:ep.jsx("path",{d:"M97.16,7.27a16.94,16.94,0,0,0-1.9,24.47,16.36,16.36,0,0,0,5,3.83,3.23,3.23,0,0,1-2.9,5.77,23.14,23.14,0,0,1-11.41-13C73.83,31.1,63.46,37.09,52.82,46.51c-27.44,24.3-34.35,61.74-16.38,85.26-4.57,5.79-8,12.22-8.9,18.69a20.88,20.88,0,0,0,5.62,18c9.18,9.61,21.42,7.13,31.26,5.14,6.58-1.34,12.8-2.6,16.5-.23,3.22,2.07,3.47,3.87,3.61,4.45,2.1,9.32-5.79,13.89-7.67,16.27a1.48,1.48,0,0,0,1.13,2.4c3.48,0,9-1.18,12.34-4.08s7.16-7.9,5.89-16.32c-.08-.5-.18-1-.32-1.58-.86-3.35-3.1-7.57-8.61-11.09-7.72-4.95-17-3.07-25.22-1.41-9.76,2-16,2.85-20.37-1.71a9.13,9.13,0,0,1-2.46-8.19c.54-3.77,2.65-7.89,5.62-11.86,21.71,16.89,56.87,13.47,82.67-9.39a75.34,75.34,0,0,0,20.81-28.09A23.14,23.14,0,0,1,134.8,89a3.23,3.23,0,0,1,6.08-2.19,16.37,16.37,0,0,0,3.2,5.39,16.85,16.85,0,1,0,11.48-28,3.23,3.23,0,0,1-.51-6.44,23.41,23.41,0,0,1,12.88,2.69c2.6-14.08,3.34-31.41-2.06-37.51-4.08-4.61-20.62-8-35.18-7.76A23.48,23.48,0,0,1,130.8,25a3.23,3.23,0,0,1-6.33-1.28A16.94,16.94,0,0,0,97.16,7.27Zm63.25,21a5.29,5.29,0,0,1-.57,6.19c-1.29,1.14-2.72-.51-4.1-2.06s-3.1-3.42-1.81-4.56A5.74,5.74,0,0,1,160.41,28.27Z"})})}),ep.jsx(O0,{children:"Quick translation"}),!a&&ep.jsx(jI,{title:"Open in separate window",children:ep.jsx(m3,{onClick:()=>t(!0),color:"inherit",size:"small",children:ep.jsx(kL,{fontSize:"small"})})}),ep.jsx(O1,{children:!d&&ep.jsx(jZ,{})})]}),S&&ep.jsxs(ep.Fragment,{children:[ep.jsx(O2,{children:"Branch"}),ep.jsx(O3,{children:S})]}),ep.jsxs(O2,{children:["Key",s&&ep.jsx(jI,{title:"Open key in Tolgee platform",children:ep.jsx(O5,{role:"button",href:s,target:"_blank",rel:"noreferrer noopener",sx:{color:"inherit"},children:ep.jsx(kL,{})})})]}),ep.jsxs(O3,{children:[ep.jsx(Ot,{name:l}),ep.jsx(O4,{children:!v&&U&&" (key doesn't exist yet)"})]}),ep.jsx(Ok,{options:y,value:b,onChange:i}),U&&ep.jsxs(O8,{children:[ep.jsx(jW,{children:"Tags"}),ep.jsx(OF,{}),w&&ep.jsx(OX,{})]}),U&&ep.jsxs(yH,{display:"flex",gap:4,alignItems:"flex-start",children:[C&&ep.jsx(OL,{}),x.canEditCharLimit&&ep.jsx(O_,{})]}),!f&&ep.jsx(O6,{children:ep.jsx(jQ,{})}),O&&U&&ep.jsx(O9,{children:ep.jsx(Ox,{})}),c&&U&&ep.jsx(Oq,{error:new uj(h?"operation_not_permitted_in_read_only_mode":"permissions_not_sufficient_to_edit"),severity:"info"}),E&&ep.jsx(Oq,{error:E}),ep.jsxs(O7,{children:[ep.jsx(y4,{onClick:n,color:"secondary",children:a?"Close":"Cancel"}),ep.jsx(j2,{loading:m,disabled:m||c||w||k&&!T,onClick:()=>{k&&T?j(!0):r()},color:"primary",variant:"contained",style:{marginLeft:"10px"},"data-cy":"key-form-submit",children:g?"Saved! ✓":(null==u?void 0:u.keyId)===void 0?"Create":"Update"})]}),$&&ep.jsxs(bB,{open:!0,disablePortal:!0,disableEnforceFocus:!0,style:{zIndex:2147483e3},onClose:()=>j(!1),children:[ep.jsx(b7,{children:"Translation length is exceeded"}),ep.jsx(b0,{children:ep.jsx(b5,{children:"Character limit for translation is exceeded. Are you sure you want to save it?"})}),ep.jsxs(bH,{children:[ep.jsx(y4,{onClick:()=>j(!1),color:"secondary","data-cy":"char-limit-confirmation-cancel",children:"Cancel"}),ep.jsx(y4,{onClick:()=>{j(!1),r()},color:"primary",variant:"contained","data-cy":"char-limit-confirmation-save",children:"Save"})]})]})]}))},Ct=pw({typography:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',htmlFontSize:0},palette:{primary:{main:"#EC407A"},secondary:{main:"#2B5582"},text:{secondary:"#808080"},background:{default:"rgb(255, 255, 255)"}},zIndex:{modal:2147483e3}});Ct=pw(Ct,{components:{MuiButton:{styleOverrides:{root:{whiteSpace:"nowrap"}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:12,boxShadow:"1px 1px 6px rgba(0, 0, 0, 0.25)",borderRadius:"11px",color:"black",backgroundColor:"white"}}},MuiSvgIcon:{styleOverrides:{fontSizeSmall:{width:"19px",height:"19px"}}}}});let Cn=hh`
641  :host > * {
642    all: initial;
643  }
644`;function Cr({children:e}){let t=em.useRef(c0({key:"tolgee-dev-tools",prepend:!0,container:jD()}));
644return ep.jsxs(ha,{value:t.current,children:[ep.jsx(yt,{styles:Cn}),ep.jsx(pZ,{theme:Ct,children:e})]})}let Ci=()=>ep.jsx(Cr,{children:ep.jsx(kE,{children:ep.jsx(Ce,{})})}),Co=({uiProps:e,keyData:t})=>{let[n,r]=em.useState(!0);return em.useEffect(()=>{r(!0)},[t]),ep.jsx(tp,{apiUrl:e.apiUrl,apiKey:e.apiKey,projectId:e.projectId,branch:e.branch,children:n&&ep.jsx(u5,{uiProps:e,defaultValue:t.defaultValue||"",keyName:t.key,fallbackNamespaces:t.fallbackNamespaces,namespace:t.namespace,onClose:function(){r(!1)},children:ep.jsx(Ci,{})})})};W=tn.createRoot;let Cs=pX(wF)`
645  display: flex;
646  flex-direction: column;
647  height: 50px;
648  justify-content: center;
649  align-items: flex-start;
650`,Ca=pX("div")`
651  display: flex;
652  padding: 3px;
653`,Cl=pX("div")`
654  display: flex;
655  margin-top: -5px;
656  padding: 3px;
657  font-weight: bold;
658  font-size: 12px;
659  font-family: Monospace, 'Courier New', Courier;
660`;class Cu extends eg.Component{constructor(e){super(e),er(this,"state",{opened:!1}),er(this,"keyDown",e=>{"Escape"===e.key&&(this.setState(e=>et(ee({},e),{opened:!1})),this.state.onSelect&&this.state.onSelect(void 0))}),this.state=et(ee({},e.initialState),{opened:!0})}componentDidMount(){document.addEventListener("keydown",this.keyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.keyDown)}render(){return ep.jsx(Cr,{children:this.state.opened&&ep.jsx(wA,{disablePortal:!0,disableEnforceFocus:!0,anchorEl:this.state.target,anchorOrigin:{vertical:"bottom",horizontal:"center"},open:!0,onClose:()=>{var e,t;this.setState({opened:!1}),null==(t=(e=this.state).onSelect)||t.call(e,void 0)},container:jD(),style:{zIndex:2147483e3},children:Array.from(this.state.keys||[]).map(([e,t],n)=>ep.jsxs(Cs,{onClick:()=>{var t,n;null==(n=(t=this.state).onSelect)||n.call(t,e),setTimeout(()=>{this.setState({opened:!1})})},children:[ep.jsx(Ca,{"data-testid":"key_context_menu_translation",children:t}),ep.jsx(Cl,{"data-testid":"key_context_menu_key",children:e})]},n))})})}}let Cc=e=>{let t,n,r;function i(){let e=jD();if(t!==e){t=e;let i=document.createElement("div");t.appendChild(i),n=W(i);let o=document.createElement("div");t.appendChild(o),r=W(o)}}let o={openKeyDialog(t){i(),n.render(ep.jsx(Co,{uiProps:e,keyData:t}))},getKey:async e=>await new Promise(t=>{i(),r.render(ep.jsx(Cu,{initialState:et(ee({},e),{onSelect(e){t(e)}})},Math.random()))}),async handleElementClick(e,t){i();let n=e[0].key,r=new Map(e.map(({key:e,translation:t,defaultValue:n})=>[e,t||n]));if(r.size>1&&(n=await o.getKey({keys:r,target:t})),n){let t=e.find(e=>e.key===n);o.openKeyDialog({key:n,namespace:t.namespace,defaultValue:t.defaultValue,fallbackNamespaces:t.fallbackNamespaces})}}};return o},Ch=()=>(e,t)=>{let n;return eo()||(n=e=>Cc(e)),t.setUi(n),e},Cd=()=>(e,t)=>(t.setDevBackend({getRecord({apiUrl:e,apiKey:t,projectId:n,branch:r,language:i,namespace:o,filterTag:s,fetch:a}){var l;let u;let c=null!=(l=u$(t))?l:n;if(u=void 0!==c?uO(e,`/v2/projects/${c}/translations/${i}`):uO(e,`/v2/projects/translations/${i}`),r&&u.searchParams.append("branch",r),o&&u.searchParams.append("ns",o),null==s||s.forEach(e=>{u.searchParams.append("filterTag",e)}),"tgpat"===function(e){if(!e)return;let[t]=e.split("_");return"tgpak"===t?"tgpak":"tgpat"===t?"tgpat":"legacy"}(t)&&void 0===n)throw Error("You need to specify 'projectId' when using PAT key");return a(u.toString(),{headers:{"X-API-Key":t||"","Content-Type":"application/json"},next:{revalidate:0}}).then(e=>{if(e.ok)return e.json().then(e=>e[i]);throw Error(e.statusText)})}}),e);function Cf(e){return e.textContent}function Cp(e,t){e.textContent=t}function Cm(e,t){var n;let r=void 0===e.key||void 0===t.key||t.key===e.key,i=void 0===e.ns||void 0===t.ns||(null==(n=e.ns)?void 0:n.findIndex(e=>{var n;return null==(n=t.ns)?void 0:n.includes(e)}))!==-1;return r&&i}let Cg={position:"fixed",boxSizing:"content-box",zIndex:String(Number.MAX_SAFE_INTEGER),contain:"layout",display:"block",borderStyle:"solid",borderRadius:"4px"},Cv={capture:!0},Cy={capture:!0,passive:!0},Cb=new Map([["Control","ctrlKey"],["Alt","altKey"],["Meta","metaKey"],["Shift","shiftKey"]]);function Cx(){let e,t=!1,n=function(){let e=new Map;return Object.freeze({set(t,n){e.set(t,n)},get:t=>t&&e.get(t),remove:t=>e.delete(t),forEachElement(t){e.forEach((e,n)=>t(n,e))}})}();return Object.freeze({run(r){e=function({mouseHighlight:e,options:r,
660wrapper:i,onClick:o}){if(eo())return{stop(){t=!1},wrapper:i};let s=function(e){let t=Object.freeze({getSuitableParent(n){let r=n.parentElement?n.parentElement:n.ownerElement&&n.ownerElement||void 0;if(void 0===r)throw console.error(n),Error("No suitable parent found for node above.");return!e.passToParent||Array.isArray(e.passToParent)&&-1===e.passToParent.findIndex(e=>r.tagName.toLowerCase()===e.toLowerCase())||"function"==typeof e.passToParent&&!e.passToParent(r)?r:t.getSuitableParent(r)}});return t}(r),a=function(e,t){let n=Object.freeze({handleAttributes(n,r=!0){var i,o;let s=[],a=Object.fromEntries(Object.entries(e.tagAttributes).map(([e,t])=>[e.toUpperCase(),t]));if(n.nodeType===Node.ELEMENT_NODE){let e=null!=(i=a[n.tagName.toUpperCase()])?i:[];"*"in a&&(e=e.concat(a["*"])),s.push(...e.filter(e=>n.hasAttribute(e)).map(e=>n.getAttributeNode(e)).filter(e=>t.testAttribute(e)))}if(r){let e=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,e=>{var t,n;return(null==(t=a[e.tagName.toUpperCase()])?void 0:t.some(t=>e.hasAttribute(t)))||(null==(n=a["*"])?void 0:n.some(t=>e.hasAttribute(t)))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;e.nextNode();){let n=e.currentNode,r=null!=(o=a[n.tagName.toUpperCase()])?o:[];"*"in a&&(r=r.concat(a["*"])),s.push(...r.filter(e=>n.hasAttribute(e)).map(e=>n.getAttributeNode(e)).filter(e=>t.testAttribute(e)))}}return s},handleChildList(e){let t=[];return t.push(...e.flatMap(e=>n.handleAttributes(e,!0))),t.push(...e.flatMap(e=>n.handleText(e))),t},handleText(e){if(e.nodeType===Node.TEXT_NODE)return t.testTextNode(e)?[e]:[];let n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,e=>t.testTextNode(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();)n.push(r.currentNode);return n}});return n}(r,i),l=function(e,t,n){let r=function({highlightColor:e,highlightWidth:t}){return Object.freeze({initHighlighter(n,r){r.highlight=()=>{if(!n.isConnected)return;let i=function(e){for(;e;){if(null!==e.getAttribute("disabled"))return!1;e=e.parentElement}return!0}(n),o=r.highlightEl;o||((o=document.createElement("div")).classList.add("_tolgee-highlighter"),Object.entries(Cg).forEach(([e,t])=>{o.style[e]=t}),o.style.borderColor=e,r.highlightEl=o,document.body.appendChild(o));let s=n.getBoundingClientRect();o.style.pointerEvents=i?"none":"auto",o.style.borderWidth=t+"px",o.style.top=s.top-t+"px",o.style.left=s.left-t+"px",o.style.width=s.width+"px",o.style.height=s.height+"px"},r.unhighlight=()=>{var e;null==(e=r.highlightEl)||e.remove(),r.highlightEl=void 0}}})}({highlightColor:e.highlightColor,highlightWidth:e.highlightWidth}),i=function({highlightKeys:e,elementStore:t,onClick:n,options:r}){var i,o;let s,a;let l=new Set,u=[],c=(null==(i=r.targetElement)?void 0:i.getRootNode())||document,h=(null==(o=r.targetElement)?void 0:o.ownerDocument)||document;function d(){var e;let n=t.get(s);n&&(n.preventClean=!1,null==(e=n.unhighlight)||e.call(n),s=void 0)}function f(){let e;let n=a;n&&S()&&(e=function(e){for(let n of e){let e=k(n,e=>t.get(e));if(void 0!==e)return e||void 0}}(c.elementsFromPoint(n.x,n.y)||[])),function(e){var n;if(s!==e){d();let r=t.get(e);r&&(r.preventClean=!0,null==(n=r.highlight)||n.call(r),s=e)}}(e)}function p(e){for(let[t,n]of Cb.entries())l.has(t)&&!e[n]?l.delete(t):!l.has(t)&&e[n]&&l.add(t)}function m(e){p(e),S()&&!k(e.target,e=>e.id===uF)&&(e.stopPropagation(),e.preventDefault())}function g(e){p(e),a={x:e.clientX,y:e.clientY},f()}function v(e){p(e),f()}function y(e){p(e),f()}function b(){var e;let n=t.get(s);null==(e=null==n?void 0:n.highlight)||e.call(n)}function x(e){m(e),p(e),a={x:e.clientX,y:e.clientY},f(),S()&&s&&(n(s),d())}function w(e,t,n){h.addEventListener(e,t,n),u.push([e,t,n])}function k(e,t){return e.id===uF?null:t(e)?e:(null==e?void 0:e.parentElement)?k(e.parentElement,t):void 0}function S(){for(let t of e)if(!l.has(t))return!1;return!0}return Object.freeze({stop(){!function(){for(let e of u)h.removeEventListener(...e);u=[]}()},run(){w("keydown",v,Cv),w("keyup",y,Cv),w("mousemove",g,Cy),w("scroll",b,Cy),w("click",x,Cv),w("mouseenter",m,Cv),w("mouseover",m,Cv),w("mouseout",m,Cv),w("mouseleave",m,Cv),w("mousedown",m,Cv),w("mouseup",m,Cv)}})}({highlightKeys:e.highlightKeys,elementStore:t,onClick(e){let r=t.get(e);n({target:e,keysAndDefaults:Array.from(r.nodes.values()).reduce((e,t)=>
660[...e,...t.keys.map(e=>({key:e.key,defaultValue:e.defaultValue,ns:e.ns}))],[])})},options:e});function o(t){return -1!==e.restrictedElements.indexOf(t.tagName.toLowerCase())||null!==t.closest(`[${u_}]`)}function s(e,n){var r;n.highlightEl&&(null==(r=n.unhighlight)||r.call(n)),e.removeAttribute(uB),t.remove(e)}return Object.freeze({isRestricted:o,register(e,n,i){if(o(e))return;let s=t.get(e);s||(s={element:e,nodes:new Map},t.set(e,s),e.setAttribute(uB,"true")),s.nodes.set(n,i),r.initHighlighter(e,s)},forEachElement:t.forEachElement,cleanupLingeringKeyAttributes(){t.forEachElement((e,t)=>{if(!t.preventClean){for(let[e]of t.nodes)e.nodeType===Node.ATTRIBUTE_NODE&&e.name===uL&&null===e.ownerElement&&t.nodes.delete(e);0===t.nodes.size&&s(e,t)}})},cleanupRemovedNodes(e){t.forEachElement((t,n)=>{!n.preventClean&&(e.has(t)||function(e,t){for(let[n]of e.nodes)t.has(n)&&e.nodes.delete(n)}(n,e),(e.has(t)||0===n.nodes.size)&&s(t,n))})},findAll(e,n){let r=[];return t.forEachElement((t,i)=>{for(let t of i.nodes.values())if(t.keys.find(t=>Cm({key:e,ns:uk(n)},{key:t.key,ns:uk(t.ns)}))){r.push(i);break}}),r},run(e){e&&i.run()},stop(){i.stop(),t.forEachElement((e,t)=>{var n;t.highlightEl&&(null==(n=t.unhighlight)||n.call(t))})}})}(r,n,o);function u(e){for(let t of e){let e=t.parentElement;if(e&&l.isRestricted(e))continue;let n=Cf(t),r=n?i.unwrap(n):null;if(r){let{text:e,keys:i}=r;Cp(t,e);let o={oldTextContent:n,keys:i},a=s.getSuitableParent(t);l.register(a,t,o)}}}function c(e){let t=s.getSuitableParent(e);l.register(t,e,{oldTextContent:"",keys:[{key:Cf(e)}],keyAttributeOnly:!0})}function h(e,t){if(e.nodeType===Node.ATTRIBUTE_NODE&&e.name===uL){c(e);return}if(e.nodeType===Node.ELEMENT_NODE){let t=e.getAttributeNode(uL);t&&c(t)}if(!t)return;let n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,e=>e.hasAttribute(uL)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;n.nextNode();)c(n.currentNode.getAttributeNode(uL))}let d=new MutationObserver(e=>{if(!t)return;let n=e.filter(e=>"childList"===e.type).flatMap(e=>Array.from(e.removedNodes)),r=new Set(n);for(let e of n){if(e.nodeType===Node.ELEMENT_NODE)for(let t=0;t<e.attributes.length;t++)r.add(e.attributes[t]);let t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT);for(;t.nextNode();){let e=t.currentNode;if(e.nodeType===Node.ELEMENT_NODE)for(let t=0;t<e.attributes.length;t++)r.add(e.attributes[t]);r.add(e)}}r.size>0&&l.cleanupRemovedNodes(r),e.some(e=>"attributes"===e.type&&e.attributeName===uL)&&l.cleanupLingeringKeyAttributes();let i=new Set;for(let t of e)switch(t.type){case"characterData":a.handleText(t.target).forEach(e=>i.add(e));break;case"childList":h(t.target,!0),t.addedNodes.length>0&&a.handleChildList(Array.from(t.addedNodes)).forEach(e=>i.add(e)),t.removedNodes.length>0&&a.handleChildList(Array.from(t.removedNodes)).forEach(e=>i.delete(e));break;case"attributes":t.attributeName===uL&&h(t.target,!1),a.handleAttributes(t.target,!1).forEac
660h(e=>i.add(e))}u([...i])}),f=r.targetElement||document;t=!0,l.run(e),h(f,!0),u(a.handleChildList([f]));let p=new Set;return p.add(uL),Object.values(r.tagAttributes).forEach(e=>e.forEach(e=>p.add(e.toLowerCase()))),d.observe(f,{attributes:!0,attributeFilter:[...p],childList:!0,subtree:!0,characterData:!0}),{stop(){t=!1,l.stop(),d.disconnect()},elementRegistry:l,wrapper:i}}(r)},stop(){null==e||e.stop()},forEachElement(t){var n,r;null==(r=null==(n=null==e?void 0:e.elementRegistry)?void 0:n.forEachElement)||r.call(n,t)},highlight(t,n){var r;let i=(null==(r=null==e?void 0:e.elementRegistry)?void 0:r.findAll(t,n))||[];return i.forEach(e=>{var t;return null==(t=e.highlight)?void 0:t.call(e)}),{unhighlight(){i.forEach(e=>{var t;return null==(t=e.unhighlight)?void 0:t.call(e)})}}},findPositions(t,n){var r;let i=(null==(r=null==e?void 0:e.elementRegistry)?void 0:r.findAll(t,n))||[],o=[];return i.sort((e,t)=>e.element.compareDocumentPosition(t.element)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1),i.forEach(e=>{let r=e.element.getBoundingClientRect();e.nodes.forEach(e=>{e.keys.forEach(e=>{Cm({key:t,ns:uk(n)},{key:e.key,ns:uk(e.ns)})&&o.push({position:{x:r.x,y:r.y,width:r.width,height:r.height},keyName:e.key,keyNamespace:e.ns||""})})})}),o},unwrap:t=>e?e.wrapper.unwrap(t):{text:t,keys:[]},wrap:t=>e?e.wrapper.wrap(t):t.translation||""})}var Cw={};!function(e){function t(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),i=[],o=0;;){var s=t<e.length;if(!s||o>=n-1){var a=r.subarray(0,o);if(i.push(String.fromCharCode.apply(null,a)),!s)return i.join("");e=e.subarray(t),t=0,o=0}var l=e[t++];if((128&l)==0)r[o++]=l;else if((224&l)==192){var u=63&e[t++];r[o++]=(31&l)<<6|u}else if((240&l)==224){var u=63&e[t++],c=63&e[t++];r[o++]=(31&l)<<12|u<<6|c}else if((248&l)==240){var u=63&e[t++],c=63&e[t++],h=(7&l)<<18|u<<12|c<<6|63&e[t++];h>65535&&(h-=65536,r[o++]=h>>>10&1023|55296,h=56320|1023&h),r[o++]=h}}}var n="Failed to ",r=function(e,t,r){if(e)throw Error("".concat(n).concat(t,": the '").concat(r,"' option is unsupported."))},i="function"==typeof J&&J.from,o=i?function(e){return J.from(e)}:function(e){for(var t=0,n=e.length,r=0,i=Math.max(32,n+(n>>>1)+7),o=new Uint8Array(i>>>3<<3);t<n;){var s=e.charCodeAt(t++);if(s>=55296&&s<=56319){if(t<n){var a=e.charCodeAt(t);(64512&a)==56320&&(++t,s=((1023&s)<<10)+(1023&a)+65536)}if(s>=55296&&s<=56319)continue}if(r+4>o.length){i+=8,i*=1+t/e.length*2;var l=new Uint8Array(i=i>>>3<<3);l.set(o),o=l}if((4294967168&s)==0){o[r++]=s;continue}if((4294965248&s)==0)o[r++]=s>>>6&31|192;else if((4294901760&s)==0)o[r++]=s>>>12&15|224,o[r++]=s>>>6&63|128;else{if((4292870144&s)!=0)continue;o[r++]=s>>>18&7|240,o[r++]=s>>>12&63|128,o[r++]=s>>>6&63|128}o[r++]=63&s|128}return o.slice?o.slice(0,r):o.subarray(0,r)};function s(){this.encoding="utf-8"}s.prototype.encode=function(e,t){return r(t&&t.stream,"encode","stream"),o(e)};var a=!i&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,l=["utf-8","utf8","unicode-1-1-utf-8"],u=t;i?u=function(e,t){return(e instanceof J?e:J.from(e.buffer,e.byteOffset,e.byteLength)).toString(t)}:a&&(u=function(e){try{return function(e){var t;try{var n=new Blob([e],{type:"text/plain;charset=UTF-8"});t=URL.createObjectURL(n);var r=new XMLHttpRequest;return r.open("GET",t,!1),r.send(),r.responseText}finally{t&&URL.revokeObjectURL(t)}}(e)}catch(n){return t(e)}});var c="construct 'TextDecoder'",h="".concat(n," ").concat(c,": the ");function d(e,t){if(r(t&&t.fatal,c,"fatal"),e=e||"utf-8",!(i?J.isEncoding(e):-1!==l.indexOf(e.toLowerCase())))throw RangeError("".concat(h," encoding label provided ('").concat(e,"') is invalid."));this.encoding=e,this.fatal=!1,this.ignoreBOM=!1}d.prototype.decode=function(e,t){var n;return r(t&&t.stream,"decode","stream"),e instanceof Uint8Array?n=e:n=new Uint8Array(e.buffer instanceof ArrayBuffer?e.buffer:e),u(n,this.encoding)},e.TextEncoder=e.TextEncoder||s,e.TextDecoder=e.TextDecoder||d}("undefined"!=typeof window?window:es);let Ck=ei({__proto__:null,default:Cw},[Cw]);null==(S=console.assert)||S.call(console,Ck);let CS=["‌","‍"],C$=RegExp(`([${CS.join("")}]{9})+`,"g");function Cj(e){var t;let n=Array.from(e).map(e=>CS.indexOf(e)).map(String).join("").match(/(.{9})/g);return t=Uint8Array.from((null==n?void 0:n.map(e=>parseInt(e.slice(0,8),2)))||[]),new TextDecoder().decode(new Uint8Array(t))}let CO=()=>()=>{let e=Cx();return Object.freeze(et(ee({},e),{run(t){let n=function({fullKeyEncode:e}){let t=function(){let e=[];return Object.freeze({valueToNumber(t){let n=e.indexOf(t);return -1===n&&(n=e.length,e.push(t)),n},numberToValue:t=>e[t]})}();function n(e){return JSON.stringify({k:e.key,n:e.ns||void 0,d:e.defaultValue})}function r(e){var t;return Array.from((t=e+"\n",Array.from(new TextEncoder().encode(t))).map(Number).map(e=>(function(e){let t=8-e.length;return"0".repeat(t)+e})(e.toString(2))+"0").join("")).map(e=>CS[Number(e)]).join("")}return Object.freeze({unwrap(e){let n=[];return(function(e){var t;let n=null==(t=e.match(C$))?void 0:t.filter(e=>e.length>8);return(null==n?void 0:n.map(Cj))||[]}
660)(e).forEach(e=>{e.split("\n").filter(e=>e.length).map(e=>{if("{"===e[0])return e;{let n=Number(e);return t.numberToValue(n)}}).forEach(e=>{let t=function(e){try{return JSON.parse(e||"{}")}catch(e){console.error(e);return}}(e);if(t){let{k:e,d:r,n:i}=t;n.push({key:e,defaultValue:r,ns:i})}})}),{text:e.replace(C$,""),keys:n}},wrap({key:i,defaultValue:o,translation:s,ns:a}){let l;if(e)l=r(n({key:i,ns:a}));else{let e=n({key:i,ns:a,defaultValue:o});l=r(String(t.valueToNumber(e)))}let u=s||"";return"string"==typeof u?u+l:u},testTextNode(e){var t,n,r;return null!=(r=(null==(t=e.textContent)?void 0:t.includes(`${CS[0]}${CS[0]}`))||(null==(n=e.textContent)?void 0:n.includes(`${CS[1]}${CS[0]}`)))&&r},testAttribute:e=>e.value.includes(`${CS[0]}${CS[0]}`)||e.value.includes(`${CS[1]}${CS[0]}`)})}({fullKeyEncode:t.options.fullKeyEncode});e.run(et(ee({},t),{wrapper:n}))},retranslate(){},outputNotFormattable:!1}))},CC=()=>()=>{let e=Cx();return Object.freeze(et(ee({},e),{run(t){let n=function({inputPrefix:e,inputSuffix:t,translate:n}){function r(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(e){return"string"==typeof e?e.replace(/[,:|\\]/g,"\\$&"):"number"==typeof e||"bigint"==typeof e?e.toString():(console.warn(`Parameters of type "${typeof e}" are not supported in "text" wrapper mode.`),e)}return Object.freeze({wrap({key:n,params:r,defaultValue:o,ns:s}){let a=Object.entries(r||{}).map(([e,t])=>`${i(e)}:${i(t)}`).join(",");a=a.length?`:${a}`:"";let l=void 0!==o?`,${i(o)}`:"",u="string"==typeof s?[s]:s,c=(null==u?void 0:u.length)?`|${u.map(e=>i(e)).join("|")}`:"";return`${e}${i(n)}${c}${l}${a}${t}`},unwrap(i){let o;let s=RegExp(function(){let n=r(e),i=r(t);return`(\\\\?)(${n}(.*?)${i})`}(),"gs"),a=[],l=!1,u=0,c="";for(;null!==(o=s.exec(i));){let e=o[1],[t,r,s,h]=o,{index:d,input:f}=o;if(c+=f.substr(u,d-u),u=d+t.length,"\\"===e){if(!function(e,t){let n=0;for(;e>-1&&"\\"===t[e-1];)n++,e--;return n%2==1}(d,i)){c+=s;continue}e=""}let p=function(e){let{key:t,params:r,defaultValue:i,ns:o}=function(e){let t=!1,n="",r="",i="KEY",o={key:"",ns:void 0,params:{},defaultValue:void 0},s=e=>{o.ns=e};for(let a of e){if("\\"===a&&!t){t=!0;continue}if(t){t=!1,n+=a;continue}if("KEY"===i&&","===a){i="DEFAULT_VALUE",o.key=n,n="";continue}if("KEY"===i&&"|"===a){i="NAMESPACE",o.key=n,n="";continue}if("NAMESPACE"===i&&","===a){i="DEFAULT_VALUE",s(n),n="";continue}if("KEY"===i&&":"===a){i="PARAM_NAME",o.key=n,n="";continue}if("DEFAULT_VALUE"===i&&":"===a){i="PARAM_NAME",o.defaultValue=n,n="";continue}if("PARAM_NAME"===i&&":"===a){i="PARAM_VALUE",r=n,n="";continue}if("PARAM_VALUE"===i&&","===a){i="PARAM_NAME",o.params[r]=n,n="";continue}n+=a}return"KEY"===i&&(o.key=n),"DEFAULT_VALUE"===i&&(o.defaultValue=n),"PARAM_VALUE"===i&&(o.params[r]=n),"NAMESPACE"===i&&s(n),o}(e);return{translated:n({key:t,params:r,defaultValue:i,ns:o,noWrap:!0}),key:t,params:r,defaultValue:i,ns:o}}(h);a.push({key:p.key,params:p.params,defaultValue:p.defaultValue,ns:p.ns}),l=!0,c+=e+p.translated}return(c+=i.substring(u),l)?{text:c,keys:a}:{text:i,keys:[]}},testTextNode(n){var r,i,o;return null!=(o=(null==(r=n.textContent)?void 0:r.includes(e))&&(null==(i=n.textContent)?void 0:i.includes(t)))&&o},testAttribute:n=>n.value.includes(e)&&n.value.includes(t)})}({inputPrefix:t.options.inputPrefix,inputSuffix:t.options.inputSuffix,translate:t.translate});e.run(et(ee({},t),{wrapper:n}))},retranslate(){e.forEachElement((t,n)=>{for(let[t,r]of n.nodes.entries()){if(r.keyAttributeOnly)return;let n=e.unwrap(r.oldTextContent);n&&Cp(t,n.text)}})},outputNotFormattable:!0}))},CU=()=>(e,t)=>("text"===e.getInitialOptions().observerType?t.setObserver(CC()):t.setObserver(CO()),e);function CE(e){return eo()?()=>{}:(window.__tolgee={getVisibleKeys(){let t=window.innerWidth,n=window.innerHeight;return e.findPositions().filter(({position:e})=>e.x+e.width>0&&e.y+e.height>0&&e.x<t&&e.y<n)},highlight:(t,n)=>e.highlight(t,n),isRunning:()=>e.isRunning()},()=>{delete window.__tolgee})}let CT=e=>(t,n)=>{let{credentials:r}=e||{};t.addPlugin(Cd()),n.hasUi()||t.addPlugin(Ch()),n.hasObserver()||t.addPlugin(CU()),r&&t.overrideCredentials(r);let i=CE(t);return t.on("running",({value:e})=>{i(),e&&(i=CE(t))}),t}}}]);

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